@dsh-plugin/dsh-ui-components-vue 0.1.0-dev.44257063091 → 0.1.0-dev.45000630522

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,421 +1,483 @@
1
- import * as N from "@arco-design/web-vue";
2
- import Ot, { Progress as Be, Table as Ue, InputTag as Ke, Alert as Ge, Result as Ze, Spin as Ye, InputNumber as Qe, Tag as Je, Tree as Xe, ConfigProvider as et, Collapse as Yt, Button as Lt, Drawer as It, Modal as Bt, Scrollbar as lt, Input as Et } from "@arco-design/web-vue";
1
+ import * as z from "@arco-design/web-vue";
2
+ import Ft, { Textarea as zt, Progress as He, Table as re, Card as we, InputTag as et, Alert as tt, Result as at, Spin as Ee, InputNumber as nt, Tag as rt, Tree as ot, ConfigProvider as lt, Collapse as Ht, Pagination as Ne, Button as Rt, ButtonGroup as jt, Drawer as qt, Modal as Wt, Scrollbar as dt, Link as Ut, Input as Kt } from "@arco-design/web-vue";
3
3
  export * from "@arco-design/web-vue";
4
- import { CollapseItem as yn, Breadcrumb as wn, CollapseItem as Dn, Collapse as Sn, Empty as kn, Divider as Mn, TypographyText as An, Textarea as xn } from "@arco-design/web-vue";
5
- import { defineComponent as F, inject as we, h, shallowRef as W, onBeforeUnmount as me, mergeProps as De, useId as Se, onMounted as fe, onUpdated as ke, ref as q, computed as J, shallowReactive as ye, provide as it, watch as le, Teleport as st, TransitionGroup as Nt, nextTick as re, createTextVNode as Ft, Fragment as Ht, cloneVNode as Ee, isVNode as ut, onBeforeUpdate as Rt, getCurrentInstance as ct } from "vue";
6
- import { configProviderInjectionKey as Fe } from "@arco-design/web-vue/es/config-provider/context.js";
7
- function qt(e, t) {
4
+ import { CollapseItem as Ln, Breadcrumb as En, CollapseItem as Nn, Collapse as Fn, Empty as zn, Divider as Hn, TypographyText as Rn } from "@arco-design/web-vue";
5
+ import { defineComponent as N, inject as me, h as m, shallowRef as W, onBeforeUnmount as pe, mergeProps as ce, useId as ke, onMounted as ve, onUpdated as Ae, ref as j, computed as Z, shallowReactive as Me, provide as We, onBeforeMount as Gt, watch as le, Teleport as ft, TransitionGroup as Zt, nextTick as se, getCurrentInstance as Ue, createTextVNode as Qt, Fragment as Jt, cloneVNode as Re, isVNode as ht, onBeforeUpdate as Xt } from "vue";
6
+ import { configProviderInjectionKey as xe } from "@arco-design/web-vue/es/config-provider/context.js";
7
+ import ea from "@arco-design/web-vue/es/icon/icon-info-circle-fill/index.js";
8
+ function ta(e, t) {
8
9
  for (var a = 0; a < t.length; a++) {
9
- const i = t[a];
10
- if (typeof i != "string" && !Array.isArray(i)) {
11
- for (const n in i)
10
+ const l = t[a];
11
+ if (typeof l != "string" && !Array.isArray(l)) {
12
+ for (const n in l)
12
13
  if (n !== "default" && !(n in e)) {
13
- const r = Object.getOwnPropertyDescriptor(i, n);
14
+ const r = Object.getOwnPropertyDescriptor(l, n);
14
15
  r && Object.defineProperty(e, n, r.get ? r : {
15
16
  enumerable: !0,
16
- get: () => i[n]
17
+ get: () => l[n]
17
18
  });
18
19
  }
19
20
  }
20
21
  }
21
22
  return Object.freeze(Object.defineProperty(e, Symbol.toStringTag, { value: "Module" }));
22
23
  }
23
- const jt = F({
24
+ const aa = N({
24
25
  name: "DshProgress",
25
26
  inheritAttrs: !1,
26
- props: Be.props,
27
+ props: He.props,
27
28
  setup(e, { attrs: t, slots: a }) {
28
- const i = e, n = we(Fe, void 0), r = () => i.type === "circle" && i.showText === !1 && !a.text && !i.steps && i.width === void 0 && ((i.size ?? (n == null ? void 0 : n.size)) === void 0 || (i.size ?? (n == null ? void 0 : n.size)) === "medium");
29
- return () => h(Be, {
30
- ...t,
31
- ...e,
32
- class: [t.class, { "dsh-hero-progress-circle": r(), "dsh-hero-progress-circle-default-stroke": r() && i.strokeWidth === void 0 }],
33
- width: r() ? 36 : i.width,
34
- strokeWidth: i.strokeWidth ?? (i.type === "line" && !i.steps ? 8 : void 0)
35
- }, a);
29
+ const l = e, n = me(xe, void 0), r = () => l.type === "circle" && l.showText === !1 && !a.text && !l.steps && l.width === void 0 && ((l.size ?? (n == null ? void 0 : n.size)) === void 0 || (l.size ?? (n == null ? void 0 : n.size)) === "medium");
30
+ return () => {
31
+ const o = l.size ?? (n == null ? void 0 : n.size), i = o === "small" ? 4 : o === "large" ? 12 : 8, s = l.type === "line" && o !== "mini" && !l.steps, c = l.strokeWidth ?? (s ? i : void 0), v = Object.fromEntries(Object.entries(t).filter(([g]) => g === "role" || g.startsWith("aria-")));
32
+ return m("div", { style: { display: "contents" } }, [m("span", {
33
+ class: "dsh-progress-reader",
34
+ role: "progressbar",
35
+ "aria-valuemin": 0,
36
+ "aria-valuemax": 100,
37
+ "aria-valuenow": Number(((l.percent ?? 0) * 100).toFixed(10)),
38
+ ...v
39
+ }), m(He, {
40
+ ...t,
41
+ ...e,
42
+ "aria-hidden": "true",
43
+ class: [t.class, { "dsh-progress-line-four": s && c === 4, "dsh-hero-progress-circle": r(), "dsh-hero-progress-circle-default-stroke": r() && l.strokeWidth === void 0 }],
44
+ width: r() ? 36 : l.width,
45
+ strokeWidth: c
46
+ }, a)]);
47
+ };
36
48
  }
37
49
  });
38
- function te(e, t) {
50
+ function X(e, t) {
39
51
  return Object.assign(e, {
40
- install(a, i) {
52
+ install(a, l) {
41
53
  function n(r, o) {
42
54
  return o === void 0 ? a.component(r) : a.component(r, o === t ? e : o);
43
55
  }
44
- t.install({ ...a, component: n }, i);
56
+ t.install({ ...a, component: n }, l);
45
57
  }
46
58
  });
47
59
  }
48
- const Wt = te(jt, Be), zt = te(F({
60
+ const na = X(aa, He), tn = zt, ra = Object.assign(X(N({
49
61
  name: "DshTable",
50
62
  inheritAttrs: !1,
51
- setup(e, { attrs: t, slots: a, expose: i }) {
63
+ props: { contentSized: Boolean, loadingStyle: String },
64
+ setup(e, { attrs: t, slots: a, expose: l }) {
52
65
  const n = W(), r = W(!1);
53
66
  let o;
54
- return i(new Proxy({}, {
55
- get: (s, c) => {
56
- var p;
57
- return (p = n.value) == null ? void 0 : p[c];
67
+ return l(new Proxy({}, {
68
+ get: (i, s) => {
69
+ var c;
70
+ return (c = n.value) == null ? void 0 : c[s];
58
71
  },
59
- has: (s, c) => n.value !== void 0 && c in n.value
60
- })), me(() => clearTimeout(o)), () => h(Ue, De(t, {
61
- ref: n,
62
- class: "dsh-scroll-table",
63
- "data-scrolling": r.value || void 0,
64
- onScrollCapture() {
65
- r.value = !0, clearTimeout(o), o = setTimeout(() => {
66
- r.value = !1;
67
- }, 900);
68
- }
72
+ has: (i, s) => n.value !== void 0 && s in n.value
73
+ })), pe(() => clearTimeout(o)), () => {
74
+ const i = e.loadingStyle === "blur", s = t.loading, c = typeof s == "object" && s !== null ? s : { loading: s === !0 || s === "" }, v = i && c.loading === !0, g = m(re, ce(t, {
75
+ ...e.contentSized ? { scroll: { x: "max-content", minWidth: "100%", ...t.scroll } } : {},
76
+ ...i ? { loading: !1, inert: v || void 0 } : {},
77
+ ref: n,
78
+ class: ["dsh-scroll-table", { "dsh-table--content-sized": e.contentSized }],
79
+ "data-scrolling": r.value || void 0,
80
+ onScrollCapture() {
81
+ r.value = !0, clearTimeout(o), o = setTimeout(() => {
82
+ r.value = !1;
83
+ }, 900);
84
+ }
85
+ }), a);
86
+ return i ? m("div", { class: "dsh-table-loading", "aria-busy": v || void 0 }, [
87
+ g,
88
+ v && m("div", { class: "dsh-table-loading__indicator" }, m(Ce, { ...c, loading: !0 }, { element: a["loading-icon"] }))
89
+ ]) : g;
90
+ };
91
+ }
92
+ }), re), {
93
+ Column: re.Column,
94
+ Thead: re.Thead,
95
+ Tbody: re.Tbody,
96
+ Tr: re.Tr,
97
+ Th: re.Th,
98
+ Td: re.Td
99
+ }), oa = Object.assign(X(N({
100
+ name: "DshCard",
101
+ inheritAttrs: !1,
102
+ props: { variant: String, glassOpacity: Number, tight: Boolean },
103
+ setup(e, { attrs: t, slots: a }) {
104
+ return () => m(we, ce(t, {
105
+ class: { "dsh-card--glass": e.variant === "glass", "dsh-card--flat": e.variant === "flat", "dsh-card--tight": e.tight },
106
+ style: e.variant === "glass" && Number.isFinite(e.glassOpacity) ? { "--dsh-glass-opacity": e.glassOpacity } : void 0
69
107
  }), a);
70
108
  }
71
- }), Ue), Ut = te(F({
109
+ }), we), { Meta: we.Meta, Grid: we.Grid }), la = X(N({
72
110
  name: "DshInputTag",
73
111
  inheritAttrs: !1,
74
- setup(e, { attrs: t, slots: a, expose: i }) {
112
+ setup(e, { attrs: t, slots: a, expose: l }) {
75
113
  const n = W();
76
- return i(new Proxy({}, {
114
+ return l(new Proxy({}, {
77
115
  get: (r, o) => {
78
- var s;
79
- return (s = n.value) == null ? void 0 : s[o];
116
+ var i;
117
+ return (i = n.value) == null ? void 0 : i[o];
80
118
  },
81
119
  has: (r, o) => n.value !== void 0 && o in n.value
82
- })), () => h(Ke, { ...t, ref: n, class: ["dsh-hero-input-tag", t.class] }, a);
120
+ })), () => m(et, { ...t, ref: n, class: ["dsh-hero-input-tag", t.class] }, a);
83
121
  }
84
- }), Ke), de = {
122
+ }), et), he = {
85
123
  info: "M8 13.5a5.5 5.5 0 1 0 0-11a5.5 5.5 0 0 0 0 11M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14m1-9.5a1 1 0 1 1-2 0a1 1 0 0 1 2 0m-.25 3a.75.75 0 0 0-1.5 0V11a.75.75 0 0 0 1.5 0z",
86
124
  success: "M13.5 8a5.5 5.5 0 1 1-11 0a5.5 5.5 0 0 1 11 0M15 8A7 7 0 1 1 1 8a7 7 0 0 1 14 0m-3.9-1.55a.75.75 0 1 0-1.2-.9L7.419 8.858L6.03 7.47a.75.75 0 0 0-1.06 1.06l2 2a.75.75 0 0 0 1.13-.08z",
87
125
  warning: "M7.134 2.994L2.217 11.5a1 1 0 0 0 .866 1.5h9.834a1 1 0 0 0 .866-1.5L8.866 2.993a1 1 0 0 0-1.732 0m3.03-.75c-.962-1.665-3.366-1.665-4.329 0L.918 10.749c-.963 1.666.24 3.751 2.165 3.751h9.834c1.925 0 3.128-2.085 2.164-3.751zM8 5a.75.75 0 0 1 .75.75v2a.75.75 0 0 1-1.5 0v-2A.75.75 0 0 1 8 5m1 5.75a1 1 0 1 1-2 0a1 1 0 0 1 2 0",
88
126
  error: "M8 13.5a5.5 5.5 0 1 0 0-11a5.5 5.5 0 0 0 0 11M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14m1-4.5a1 1 0 1 1-2 0a1 1 0 0 1 2 0M8.75 5a.75.75 0 0 0-1.5 0v2.5a.75.75 0 0 0 1.5 0z"
89
- }, Kt = te(F({
127
+ }, ia = X(N({
90
128
  name: "DshAlert",
91
129
  inheritAttrs: !1,
92
- setup(e, { attrs: t, slots: a, expose: i }) {
130
+ setup(e, { attrs: t, slots: a, expose: l }) {
93
131
  const n = W();
94
- return i(new Proxy({}, {
132
+ return l(new Proxy({}, {
95
133
  get: (r, o) => {
96
- var s;
97
- return (s = n.value) == null ? void 0 : s[o];
134
+ var i;
135
+ return (i = n.value) == null ? void 0 : i[o];
98
136
  },
99
137
  has: (r, o) => n.value !== void 0 && o in n.value
100
138
  })), () => {
101
- const r = t.type ?? "info", o = typeof r == "string" && r in de ? de[r] : void 0;
102
- return h(Ge, { ...t, ref: n }, {
139
+ const r = t.type ?? "info", o = typeof r == "string" && r in he ? he[r] : void 0;
140
+ return m(tt, { ...t, ref: n }, {
103
141
  ...a,
104
- ...o && !a.icon ? { icon: () => h("svg", { "aria-hidden": !0, fill: "none", height: 16, role: "presentation", viewBox: "0 0 16 16", width: 16, xmlns: "http://www.w3.org/2000/svg" }, [
105
- h("path", { "clip-rule": "evenodd", d: o, fill: "currentColor", "fill-rule": "evenodd" })
142
+ ...o && !a.icon ? { icon: () => m("svg", { "aria-hidden": !0, fill: "none", height: 16, role: "presentation", viewBox: "0 0 16 16", width: 16, xmlns: "http://www.w3.org/2000/svg" }, [
143
+ m("path", { "clip-rule": "evenodd", d: o, fill: "currentColor", "fill-rule": "evenodd" })
106
144
  ]) } : {}
107
145
  });
108
146
  };
109
147
  }
110
- }), Ge), Gt = te(F({
148
+ }), tt), sa = X(N({
111
149
  name: "DshResult",
112
150
  inheritAttrs: !1,
113
151
  setup(e, { attrs: t, slots: a }) {
114
152
  return () => {
115
- const i = t.status === void 0 ? "info" : t.status, n = typeof i == "string" && i in de ? de[i] : void 0;
116
- return h(Ze, t, {
153
+ const l = t.status === void 0 ? "info" : t.status, n = typeof l == "string" && l in he ? he[l] : void 0;
154
+ return m(at, t, {
117
155
  ...a,
118
- ...n && !a.icon ? { icon: () => h("svg", { class: "dsh-result-icon", "aria-hidden": !0, fill: "none", viewBox: "0 0 16 16" }, [h("path", { d: n, fill: "currentColor", "fill-rule": "evenodd", "clip-rule": "evenodd" })]) } : {}
156
+ ...n && !a.icon ? { icon: () => m("svg", { class: "dsh-result-icon", "aria-hidden": !0, fill: "none", viewBox: "0 0 16 16" }, [m("path", { d: n, fill: "currentColor", "fill-rule": "evenodd", "clip-rule": "evenodd" })]) } : {}
119
157
  });
120
158
  };
121
159
  }
122
- }), Ze), He = te(F({
160
+ }), at), Ce = X(N({
123
161
  name: "DshSpin",
124
162
  inheritAttrs: !1,
125
- props: Ye.props,
163
+ props: { ...Ee.props, loadingStyle: String },
126
164
  setup(e, { attrs: t, slots: a }) {
127
- const i = Se(), n = we(Fe, void 0), r = e, o = () => h("svg", { class: "dsh-spinner-icon", viewBox: "0 0 24 24", "aria-hidden": !0, style: r.size ? { width: `${r.size}px`, height: `${r.size}px` } : void 0 }, [
128
- h("defs", {}, [
129
- h("linearGradient", { id: `${i}-1`, x1: "50%", x2: "50%", y1: "5.271%", y2: "91.793%" }, [h("stop", { offset: "0%", "stop-color": "currentColor" }), h("stop", { offset: "100%", "stop-color": "currentColor", "stop-opacity": 0.55 })]),
130
- h("linearGradient", { id: `${i}-2`, x1: "50%", x2: "50%", y1: "15.24%", y2: "87.15%" }, [h("stop", { offset: "0%", "stop-color": "currentColor", "stop-opacity": 0 }), h("stop", { offset: "100%", "stop-color": "currentColor", "stop-opacity": 0.55 })])
165
+ const l = ke(), n = me(xe, void 0), r = e, o = () => m("svg", { class: "dsh-spinner-icon", viewBox: "0 0 24 24", "aria-hidden": !0, style: r.size ? { width: `${r.size}px`, height: `${r.size}px` } : void 0 }, [
166
+ m("defs", {}, [
167
+ m("linearGradient", { id: `${l}-1`, x1: "50%", x2: "50%", y1: "5.271%", y2: "91.793%" }, [m("stop", { offset: "0%", "stop-color": "currentColor" }), m("stop", { offset: "100%", "stop-color": "currentColor", "stop-opacity": 0.55 })]),
168
+ m("linearGradient", { id: `${l}-2`, x1: "50%", x2: "50%", y1: "15.24%", y2: "87.15%" }, [m("stop", { offset: "0%", "stop-color": "currentColor", "stop-opacity": 0 }), m("stop", { offset: "100%", "stop-color": "currentColor", "stop-opacity": 0.55 })])
131
169
  ]),
132
- h("path", { d: "M8.749.021a1.5 1.5 0 0 1 .497 2.958A7.5 7.5 0 0 0 3 10.375a7.5 7.5 0 0 0 7.5 7.5v3c-5.799 0-10.5-4.7-10.5-10.5C0 5.23 3.726.865 8.749.021", fill: `url(#${i}-1)`, transform: "translate(1.5 1.625)" }),
133
- h("path", { d: "M15.392 2.673a1.5 1.5 0 0 1 2.119-.115A10.48 10.48 0 0 1 21 10.375c0 5.8-4.701 10.5-10.5 10.5v-3a7.5 7.5 0 0 0 5.007-13.084a1.5 1.5 0 0 1-.115-2.118", fill: `url(#${i}-2)`, transform: "translate(1.5 1.625)" })
170
+ m("path", { d: "M8.749.021a1.5 1.5 0 0 1 .497 2.958A7.5 7.5 0 0 0 3 10.375a7.5 7.5 0 0 0 7.5 7.5v3c-5.799 0-10.5-4.7-10.5-10.5C0 5.23 3.726.865 8.749.021", fill: `url(#${l}-1)`, transform: "translate(1.5 1.625)" }),
171
+ m("path", { d: "M15.392 2.673a1.5 1.5 0 0 1 2.119-.115A10.48 10.48 0 0 1 21 10.375c0 5.8-4.701 10.5-10.5 10.5v-3a7.5 7.5 0 0 0 5.007-13.084a1.5 1.5 0 0 1-.115-2.118", fill: `url(#${l}-2)`, transform: "translate(1.5 1.625)" })
134
172
  ]);
135
- return () => h(Ye, { ...e, ...t }, r.dot || a.icon || a.element || n != null && n.slots.loading ? a : { ...a, element: o });
173
+ return () => {
174
+ const { loadingStyle: i, ...s } = r, c = i === "blur" && a.default, v = r.dot || a.icon || a.element || n != null && n.slots.loading ? a : { ...a, element: o };
175
+ return m(Ee, ce(s, t, {
176
+ class: { "dsh-spin--blur": c },
177
+ "aria-busy": c && r.loading ? !0 : void 0
178
+ }), c ? {
179
+ ...v,
180
+ default: () => {
181
+ var g;
182
+ return m("div", { class: "dsh-spin-content", inert: r.loading || void 0 }, (g = a.default) == null ? void 0 : g.call(a));
183
+ }
184
+ } : v);
185
+ };
136
186
  }
137
- }), Ye), Zt = te(F({
187
+ }), Ee), ua = X(N({
138
188
  name: "DshInputNumber",
139
189
  inheritAttrs: !1,
140
- setup(e, { attrs: t, slots: a, expose: i }) {
190
+ setup(e, { attrs: t, slots: a, expose: l }) {
141
191
  const n = W();
142
- i(new Proxy({}, {
143
- get: (o, s) => {
144
- var c;
145
- return (c = n.value) == null ? void 0 : c[s];
192
+ l(new Proxy({}, {
193
+ get: (o, i) => {
194
+ var s;
195
+ return (s = n.value) == null ? void 0 : s[i];
146
196
  },
147
- has: (o, s) => n.value !== void 0 && s in n.value
197
+ has: (o, i) => n.value !== void 0 && i in n.value
148
198
  }));
149
199
  const r = () => {
150
- var s;
151
- const o = (s = n.value) == null ? void 0 : s.$el;
200
+ var i;
201
+ const o = (i = n.value) == null ? void 0 : i.$el;
152
202
  if (!(!(o instanceof HTMLElement) || !o.classList.contains("arco-input-number-mode-button")))
153
- for (const c of o.querySelectorAll(".arco-input-number-step-button :is(.arco-icon-minus,.arco-icon-plus)")) {
154
- const p = c.querySelector("path");
155
- p && (c.setAttribute("viewBox", "0 0 16 16"), c.setAttribute("stroke", "none"), p.setAttribute("fill", "currentColor"), p.setAttribute("fill-rule", "evenodd"), p.setAttribute("clip-rule", "evenodd"), p.setAttribute("d", c.classList.contains("arco-icon-minus") ? "M1.75 8a.75.75 0 0 1 .75-.75h11a.75.75 0 0 1 0 1.5h-11A.75.75 0 0 1 1.75 8" : "M8 1.75a.75.75 0 0 1 .75.75v4.75h4.75a.75.75 0 0 1 0 1.5H8.75v4.75a.75.75 0 0 1-1.5 0V8.75H2.5a.75.75 0 0 1 0-1.5h4.75V2.5A.75.75 0 0 1 8 1.75"));
203
+ for (const s of o.querySelectorAll(".arco-input-number-step-button :is(.arco-icon-minus,.arco-icon-plus)")) {
204
+ const c = s.querySelector("path");
205
+ c && (s.setAttribute("viewBox", "0 0 16 16"), s.setAttribute("stroke", "none"), c.setAttribute("fill", "currentColor"), c.setAttribute("fill-rule", "evenodd"), c.setAttribute("clip-rule", "evenodd"), c.setAttribute("d", s.classList.contains("arco-icon-minus") ? "M1.75 8a.75.75 0 0 1 .75-.75h11a.75.75 0 0 1 0 1.5h-11A.75.75 0 0 1 1.75 8" : "M8 1.75a.75.75 0 0 1 .75.75v4.75h4.75a.75.75 0 0 1 0 1.5H8.75v4.75a.75.75 0 0 1-1.5 0V8.75H2.5a.75.75 0 0 1 0-1.5h4.75V2.5A.75.75 0 0 1 8 1.75"));
156
206
  }
157
207
  };
158
- return fe(r), ke(r), () => h(Qe, { ...t, ref: n }, a);
208
+ return ve(r), Ae(r), () => m(nt, { ...t, ref: n }, a);
159
209
  }
160
- }), Qe), Qt = te(F({
210
+ }), nt), ca = X(N({
161
211
  name: "DshTag",
162
212
  inheritAttrs: !1,
163
213
  setup(e, { attrs: t, slots: a }) {
164
- const i = W(), n = () => {
165
- var s;
166
- const r = (s = i.value) == null ? void 0 : s.$el;
214
+ const l = W(), n = () => {
215
+ var i;
216
+ const r = (i = l.value) == null ? void 0 : i.$el;
167
217
  if (!(r instanceof HTMLElement))
168
218
  return;
169
219
  const o = r.querySelector(".arco-tag-close-btn");
170
220
  o && !o.hasAttribute("tabindex") && (o.tabIndex = 0);
171
221
  };
172
- return fe(n), ke(n), () => h(Je, De(t, { ref: i, onKeydown: (r) => {
222
+ return ve(n), Ae(n), () => m(rt, ce(t, { ref: l, onKeydown: (r) => {
173
223
  r.defaultPrevented || !["Enter", " "].includes(r.key) || !(r.target instanceof HTMLElement) || !r.target.classList.contains("arco-tag-close-btn") || (r.preventDefault(), r.target.click());
174
224
  } }), {
175
225
  ...a,
176
- "close-icon": a["close-icon"] ?? (() => h("svg", { class: "dsh-tag-close-icon", viewBox: "0 0 16 16", fill: "none", "aria-hidden": !0 }, [h("path", { d: "M3.47 3.47a.75.75 0 0 1 1.06 0L8 6.94l3.47-3.47a.75.75 0 1 1 1.06 1.06L9.06 8l3.47 3.47a.75.75 0 1 1-1.06 1.06L8 9.06l-3.47 3.47a.75.75 0 0 1-1.06-1.06L6.94 8 3.47 4.53a.75.75 0 0 1 0-1.06Z", fill: "currentColor", "fill-rule": "evenodd", "clip-rule": "evenodd" })]))
226
+ default: a.default ? () => {
227
+ var r;
228
+ return m("span", { class: "dsh-tag-label" }, (r = a.default) == null ? void 0 : r.call(a));
229
+ } : void 0,
230
+ "close-icon": a["close-icon"] ?? (() => m("svg", { class: "dsh-tag-close-icon", viewBox: "0 0 16 16", fill: "none", "aria-hidden": !0 }, [m("path", { d: "M3.47 3.47a.75.75 0 0 1 1.06 0L8 6.94l3.47-3.47a.75.75 0 1 1 1.06 1.06L9.06 8l3.47 3.47a.75.75 0 1 1-1.06 1.06L8 9.06l-3.47 3.47a.75.75 0 0 1-1.06-1.06L6.94 8 3.47 4.53a.75.75 0 0 1 0-1.06Z", fill: "currentColor", "fill-rule": "evenodd", "clip-rule": "evenodd" })]))
177
231
  });
178
232
  }
179
- }), Je), Jt = te(F({
233
+ }), rt), da = X(N({
180
234
  name: "DshTree",
181
235
  inheritAttrs: !1,
182
- setup(e, { attrs: t, slots: a, expose: i }) {
236
+ setup(e, { attrs: t, slots: a, expose: l }) {
183
237
  const n = W();
184
- return i(new Proxy({}, {
238
+ return l(new Proxy({}, {
185
239
  get: (r, o) => {
186
- var s;
187
- return (s = n.value) == null ? void 0 : s[o];
240
+ var i;
241
+ return (i = n.value) == null ? void 0 : i[o];
188
242
  },
189
243
  has: (r, o) => n.value !== void 0 && o in n.value
190
- })), () => h(Xe, { ...t, ref: n }, { ...a, extra: (r) => {
244
+ })), () => m(ot, { ...t, ref: n }, { ...a, extra: (r) => {
191
245
  var o;
192
246
  return [
193
247
  ...((o = a.extra) == null ? void 0 : o.call(a, r)) ?? [],
194
- h("svg", { class: "dsh-tree-half-indicator", style: { display: "none" }, "aria-hidden": !0, viewBox: "0 0 24 24", width: 12, height: 12, fill: "none", stroke: "currentColor", "stroke-width": 3, "stroke-linecap": "round" }, [h("line", { x1: 21, x2: 3, y1: 12, y2: 12 })])
248
+ m("svg", { class: "dsh-tree-half-indicator", style: { display: "none" }, "aria-hidden": !0, viewBox: "0 0 24 24", width: 12, height: 12, fill: "none", stroke: "currentColor", "stroke-width": 3, "stroke-linecap": "round" }, [m("line", { x1: 21, x2: 3, y1: 12, y2: 12 })])
195
249
  ];
196
250
  } });
197
251
  }
198
- }), Xe), Le = /* @__PURE__ */ new WeakMap();
199
- function Xt(e) {
200
- let t = Le.get(e);
201
- t || (t = { users: 0, stop: ea(e) }, Le.set(e, t));
252
+ }), ot), Fe = /* @__PURE__ */ new WeakMap();
253
+ function fa(e) {
254
+ let t = Fe.get(e);
255
+ t || (t = { users: 0, stop: ha(e) }, Fe.set(e, t));
202
256
  const a = t;
203
257
  return a.users++, () => {
204
- a.users--, a.users === 0 && (a.stop(), Le.delete(e));
258
+ a.users--, a.users === 0 && (a.stop(), Fe.delete(e));
205
259
  };
206
260
  }
207
- function ea(e) {
208
- const t = ".dsh-toast-region,.arco-message-wrapper,.arco-notification-wrapper", a = ".dsh-toast,.arco-message,.arco-notification", i = /* @__PURE__ */ new Set();
261
+ function ha(e) {
262
+ const t = ".dsh-toast-region,.arco-message-wrapper,.arco-notification-wrapper", a = ".dsh-toast,.arco-message,.arco-notification", l = /* @__PURE__ */ new Set();
209
263
  let n = 0;
210
264
  const r = () => {
211
- n || (n = requestAnimationFrame(c));
212
- }, o = new ResizeObserver(r), s = (l, x, w) => {
213
- l.style.getPropertyValue(x) !== w && l.style.setProperty(x, w);
214
- }, c = () => {
215
- var x;
265
+ n || (n = requestAnimationFrame(s));
266
+ }, o = new ResizeObserver(r), i = (f, h, A) => {
267
+ f.style.getPropertyValue(h) !== A && f.style.setProperty(h, A);
268
+ }, s = () => {
269
+ var h;
216
270
  n = 0;
217
- const l = /* @__PURE__ */ new Set();
218
- for (const w of e.querySelectorAll(t)) {
219
- const $ = Array.from(w.querySelectorAll(a)).reverse(), u = $.filter((Y) => {
220
- var L;
221
- return Y.style.opacity !== "0" && !Y.classList.contains("dsh-toast-slide-leave-active") && !((L = Y.parentElement) != null && L.className.includes("-exit"));
222
- }), m = u.length > 1 && (w.matches(":hover") || w.contains(document.activeElement));
223
- w.dataset.dshToastStack = String(u.length), w.dataset.dshToastDirection = w.className.includes("bottom") || (x = w.dataset.position) != null && x.startsWith("bottom") ? "bottom" : "top";
224
- let V = 0, A = 0;
225
- for (const [Y, L] of u.entries()) {
226
- const P = getComputedStyle(L), f = Array.from(L.children).filter((O) => !O.className.toString().includes("close")), S = L.style.height ? parseFloat(P.height) : Math.max(0, ...f.map((O) => O.offsetHeight)) + parseFloat(P.paddingTop) + parseFloat(P.paddingBottom) + parseFloat(P.borderTopWidth) + parseFloat(P.borderBottomWidth);
227
- Y === 0 && (A = S), s(L, "--dsh-toast-index", String(Y)), s(L, "--dsh-toast-offset", `${V}px`), s(L, "--dsh-toast-height", `${S}px`), s(L, "--dsh-toast-front-height", `${A}px`), s(L, "--dsh-toast-layer", String(u.length - Y)), L.dataset.dshToastIndex = String(Y), L.toggleAttribute("inert", Y >= 3), L.setAttribute("aria-hidden", String(Y >= 3));
228
- const v = L.querySelector(":scope > .arco-message-close-btn,:scope > .arco-notification-close-btn");
229
- v && (v.setAttribute("role", "button"), v.setAttribute("aria-label", "关闭通知"), v.tabIndex = Y < 3 && (Y === 0 || m) ? 0 : -1);
230
- const C = L.matches(".dsh-toast") ? L : L.parentElement;
231
- C && (C.dataset.dshToastItem = "");
232
- for (const O of f)
233
- l.add(O), i.has(O) || o.observe(O);
234
- V += S + 12;
271
+ const f = /* @__PURE__ */ new Set();
272
+ for (const A of e.querySelectorAll(t)) {
273
+ const T = Array.from(A.querySelectorAll(a)).reverse(), d = T.filter((P) => {
274
+ var Y;
275
+ return P.style.opacity !== "0" && !P.classList.contains("dsh-toast-slide-leave-active") && !((Y = P.parentElement) != null && Y.className.includes("-exit"));
276
+ }), w = d.length > 1 && (A.matches(":hover") || A.contains(document.activeElement));
277
+ A.dataset.dshToastStack = String(d.length), A.dataset.dshToastDirection = A.className.includes("bottom") || (h = A.dataset.position) != null && h.startsWith("bottom") ? "bottom" : "top";
278
+ let C = 0, b = 0;
279
+ for (const [P, Y] of d.entries()) {
280
+ const L = getComputedStyle(Y), x = Array.from(Y.children).filter((D) => !D.className.toString().includes("close")), M = Y.style.height ? parseFloat(L.height) : Math.max(0, ...x.map((D) => D.offsetHeight)) + parseFloat(L.paddingTop) + parseFloat(L.paddingBottom) + parseFloat(L.borderTopWidth) + parseFloat(L.borderBottomWidth);
281
+ P === 0 && (b = M), i(Y, "--dsh-toast-index", String(P)), i(Y, "--dsh-toast-offset", `${C}px`), i(Y, "--dsh-toast-height", `${M}px`), i(Y, "--dsh-toast-front-height", `${b}px`), i(Y, "--dsh-toast-layer", String(d.length - P)), Y.dataset.dshToastIndex = String(P), Y.toggleAttribute("inert", P >= 3), Y.setAttribute("aria-hidden", String(P >= 3));
282
+ const $ = Y.querySelector(":scope > .arco-message-close-btn,:scope > .arco-notification-close-btn");
283
+ $ && ($.setAttribute("role", "button"), $.setAttribute("aria-label", "关闭通知"), $.tabIndex = P < 3 && (P === 0 || w) ? 0 : -1);
284
+ const u = Y.matches(".dsh-toast") ? Y : Y.parentElement;
285
+ u && (u.dataset.dshToastItem = "");
286
+ for (const D of x)
287
+ f.add(D), l.has(D) || o.observe(D);
288
+ C += M + 12;
235
289
  }
236
- for (const Y of $.filter((L) => !u.includes(L)))
237
- Y.dataset.dshToastIndex = "exiting";
238
- s(w, "--dsh-toast-front-height", `${A}px`);
290
+ for (const P of T.filter((Y) => !d.includes(Y)))
291
+ P.dataset.dshToastIndex = "exiting";
292
+ i(A, "--dsh-toast-front-height", `${b}px`);
239
293
  }
240
- for (const w of i)
241
- l.has(w) || o.unobserve(w);
242
- i.clear(), l.forEach((w) => i.add(w));
243
- }, p = new MutationObserver(r);
244
- p.observe(e, { childList: !0, subtree: !0, characterData: !0, attributes: !0, attributeFilter: ["class"] });
245
- const d = (l) => {
246
- const x = l.target;
247
- !l.defaultPrevented && x instanceof HTMLElement && x.matches(".arco-message-close-btn,.arco-notification-close-btn") && (l.key === "Enter" || l.key === " ") && (l.preventDefault(), x.click());
248
- }, M = ["pointerover", "pointerout", "focusin", "focusout"];
249
- return M.forEach((l) => e.addEventListener(l, r)), e.addEventListener("keydown", d), c(), () => {
250
- p.disconnect(), o.disconnect(), cancelAnimationFrame(n), M.forEach((l) => e.removeEventListener(l, r)), e.removeEventListener("keydown", d);
294
+ for (const A of l)
295
+ f.has(A) || o.unobserve(A);
296
+ l.clear(), f.forEach((A) => l.add(A));
297
+ }, c = new MutationObserver(r);
298
+ c.observe(e, { childList: !0, subtree: !0, characterData: !0, attributes: !0, attributeFilter: ["class"] });
299
+ const v = (f) => {
300
+ const h = f.target;
301
+ !f.defaultPrevented && h instanceof HTMLElement && h.matches(".arco-message-close-btn,.arco-notification-close-btn") && (f.key === "Enter" || f.key === " ") && (f.preventDefault(), h.click());
302
+ }, g = ["pointerover", "pointerout", "focusin", "focusout"];
303
+ return g.forEach((f) => e.addEventListener(f, r)), e.addEventListener("keydown", v), s(), () => {
304
+ c.disconnect(), o.disconnect(), cancelAnimationFrame(n), g.forEach((f) => e.removeEventListener(f, r)), e.removeEventListener("keydown", v);
251
305
  };
252
306
  }
253
- const Re = Symbol("dsh-theme");
254
- function se() {
255
- const e = we(Re);
307
+ const Ke = Symbol("dsh-theme");
308
+ function ue() {
309
+ const e = me(Ke);
256
310
  if (!e)
257
311
  throw new Error("DSH 浮层组件必须在 DshProvider 内使用");
258
312
  return e;
259
313
  }
260
- function ta(e) {
261
- it(Re, { ...se(), container: e });
314
+ function ma(e) {
315
+ We(Ke, { ...ue(), container: e });
262
316
  }
263
- const Ha = F({
317
+ const an = N({
264
318
  name: "DshProvider",
265
319
  inheritAttrs: !1,
266
320
  props: {
267
321
  theme: { type: String, default: "auto" },
322
+ overlayInset: [Number, String],
323
+ overlayRadius: [Number, String],
268
324
  radius: { type: String, default: "md" },
269
325
  reducedMotion: { type: Boolean, default: void 0 },
270
- locale: et.props.locale,
326
+ locale: lt.props.locale,
271
327
  rtl: Boolean
272
328
  },
273
329
  setup(e, { attrs: t, slots: a }) {
274
- const i = W(), n = W(), r = q("light"), o = q(!1), s = q(!1), c = J(() => e.theme === "auto" ? r.value : e.theme), p = J(() => e.reducedMotion ?? s.value ? "reduced" : "full"), d = ye([]), M = ye([]), l = /* @__PURE__ */ new Map();
275
- let x = 0, w = !1, $;
276
- const u = (f) => {
277
- var v;
278
- clearTimeout(l.get(f)), l.delete(f);
279
- const S = d.findIndex((C) => C.internalId === f);
280
- if (S >= 0) {
281
- const C = d.splice(S, 1)[0];
282
- (v = C == null ? void 0 : C.onClose) == null || v.call(C, C.id ?? f);
330
+ const l = W(), n = W(), r = j(!1), o = j("light"), i = j(!1), s = j(!1), c = Z(() => e.theme === "auto" ? o.value : e.theme), v = Z(() => e.reducedMotion ?? s.value ? "reduced" : "full"), g = Me([]), f = Me([]), h = /* @__PURE__ */ new Map();
331
+ let A = 0, T = !1, d;
332
+ const w = (M) => {
333
+ var u;
334
+ clearTimeout(h.get(M)), h.delete(M);
335
+ const $ = g.findIndex((D) => D.internalId === M);
336
+ if ($ >= 0) {
337
+ const D = g.splice($, 1)[0];
338
+ (u = D == null ? void 0 : D.onClose) == null || u.call(D, D.id ?? M);
283
339
  }
284
- }, m = (f) => {
285
- if (clearTimeout(l.get(f.internalId)), !n.value)
340
+ }, C = (M) => {
341
+ if (clearTimeout(h.get(M.internalId)), !n.value)
286
342
  return;
287
- const S = f.duration ?? 4e3;
288
- S > 0 && l.set(f.internalId, setTimeout(() => u(f.internalId), S));
289
- }, V = (f) => {
290
- if (w)
343
+ const $ = M.duration ?? 3e3;
344
+ $ > 0 && h.set(M.internalId, setTimeout(() => w(M.internalId), $));
345
+ }, b = (M) => {
346
+ if (T)
291
347
  throw new Error("DshProvider 已卸载,无法显示消息");
292
- const S = typeof f == "string" ? { content: f } : f, v = S.id === void 0 ? void 0 : d.find((O) => O.id === S.id && O.kind === S.kind);
293
- if (v) {
294
- const O = { ...v, ...S };
295
- return d[d.indexOf(v)] = O, m(O), { close: () => u(v.internalId) };
348
+ const $ = typeof M == "string" ? { content: M } : M, u = $.id === void 0 ? void 0 : g.find((I) => I.id === $.id && I.kind === $.kind);
349
+ if (u) {
350
+ const I = { ...u, ...$ };
351
+ return g[g.indexOf(u)] = I, C(I), { close: () => w(u.internalId) };
296
352
  }
297
- const C = { ...S, internalId: ++x };
298
- return d.push(C), m(C), { close: () => u(C.internalId) };
299
- }, A = (f) => (S) => V({ ...typeof S == "string" ? { content: S } : S, type: f }), Y = {
300
- show: V,
301
- info: A("info"),
302
- success: A("success"),
303
- warning: A("warning"),
304
- error: A("error"),
305
- clear: (f, S) => [...d].filter(
306
- (v) => (f === void 0 || (v.position ?? "top") === f) && (S === void 0 || v.kind === S)
307
- ).forEach((v) => u(v.internalId)),
308
- remove: (f, S) => [...d].filter((v) => v.id === f && (S === void 0 || v.kind === S)).forEach((v) => u(v.internalId))
353
+ const D = { ...$, internalId: ++A };
354
+ return g.push(D), C(D), { close: () => w(D.internalId) };
355
+ }, P = (M) => ($) => b({ ...typeof $ == "string" ? { content: $ } : $, type: M }), Y = {
356
+ show: b,
357
+ info: P("info"),
358
+ success: P("success"),
359
+ warning: P("warning"),
360
+ error: P("error"),
361
+ clear: (M, $) => [...g].filter(
362
+ (u) => (M === void 0 || (u.position ?? "top") === M) && ($ === void 0 || u.kind === $)
363
+ ).forEach((u) => w(u.internalId)),
364
+ remove: (M, $) => [...g].filter((u) => u.id === M && ($ === void 0 || u.kind === $)).forEach((u) => w(u.internalId))
309
365
  };
310
- it(Re, { container: n, toast: Y, mountOverlay: (f) => {
311
- if (w)
366
+ We(Ke, { container: n, toast: Y, mountOverlay: (M) => {
367
+ if (T)
312
368
  throw new Error("DshProvider 已卸载,无法打开浮层");
313
- const S = { id: ++x, content: f };
314
- return M.push(S), () => {
315
- const v = M.indexOf(S);
316
- v >= 0 && M.splice(v, 1);
369
+ const $ = { id: ++A, content: M };
370
+ return f.push($), () => {
371
+ const u = f.indexOf($);
372
+ u >= 0 && f.splice(u, 1);
317
373
  };
318
- }, locale: J(() => {
319
- var f;
320
- return ((f = e.locale) == null ? void 0 : f.locale) ?? "zh-CN";
321
- }) });
322
- const P = () => {
323
- const f = n.value;
324
- if (!f || !i.value)
374
+ }, locale: Z(() => {
375
+ var M;
376
+ return ((M = e.locale) == null ? void 0 : M.locale) ?? "zh-CN";
377
+ }), rtl: Z(() => e.rtl) });
378
+ const x = () => {
379
+ const M = n.value;
380
+ if (!M || !l.value)
325
381
  return;
326
- f.className = "dsh-ui dsh-ui-portal", f.dataset.theme = c.value, f.dataset.radius = e.radius, f.dataset.motion = p.value, f.dataset.hostTheme = String(e.theme === "auto" && o.value), f.dir = e.rtl ? "rtl" : "ltr", f.removeAttribute("style");
327
- const S = getComputedStyle(i.value);
328
- for (let v = 0; v < S.length; v++) {
329
- const C = S.item(v);
330
- C.startsWith("--") && f.style.setProperty(C, S.getPropertyValue(C));
382
+ M.className = "dsh-ui dsh-ui-portal", M.dataset.theme = c.value, M.dataset.radius = e.radius, M.dataset.motion = v.value, M.dataset.hostTheme = String(e.theme === "auto" && i.value), e.overlayInset !== void 0 || e.overlayRadius !== void 0 ? M.dataset.overlayFrame = "" : delete M.dataset.overlayFrame, M.dir = e.rtl ? "rtl" : "ltr", M.removeAttribute("style");
383
+ const u = getComputedStyle(l.value);
384
+ for (let D = 0; D < u.length; D++) {
385
+ const I = u.item(D);
386
+ I.startsWith("--") && M.style.setProperty(I, u.getPropertyValue(I));
331
387
  }
388
+ for (const [D, I] of [["inset", e.overlayInset], ["radius", e.overlayRadius]])
389
+ I !== void 0 && M.style.setProperty("--dsh-overlay-" + D, typeof I == "number" ? I + "px" : I);
332
390
  };
333
- return fe(() => {
334
- const f = document.createElement("div");
335
- f.className = "dsh-ui dsh-ui-portal", document.body.appendChild(f), n.value = f;
336
- const S = Xt(f);
337
- d.forEach(m);
338
- const v = window.matchMedia("(prefers-color-scheme: dark)"), C = window.matchMedia("(prefers-reduced-motion: reduce)"), O = () => {
339
- const T = document.body.getAttribute("data-ds-dark-theme"), b = document.body.getAttribute("arco-theme");
340
- o.value = T !== null, r.value = T !== null ? T === "false" || T === "0" ? "light" : "dark" : b !== null ? b === "dark" ? "dark" : "light" : v.matches ? "dark" : "light", s.value = C.matches, re(P);
341
- }, _ = new MutationObserver(O);
342
- _.observe(document.body, { attributes: !0, attributeFilter: ["data-ds-dark-theme", "arco-theme", "style", "class"] }), v.addEventListener("change", O), C.addEventListener("change", O), $ = () => {
343
- S(), _.disconnect(), v.removeEventListener("change", O), C.removeEventListener("change", O);
344
- }, O();
345
- }), le([c, p, () => e.radius, () => e.rtl], P, { flush: "post" }), ke(P), me(() => {
346
- var f;
347
- w = !0, $ == null || $();
348
- for (const S of l.values())
349
- clearTimeout(S);
350
- l.clear(), (f = n.value) == null || f.remove(), n.value = void 0;
351
- }), () => h(et, { locale: e.locale, rtl: e.rtl, updateAtScroll: !0, global: !1 }, {
391
+ return Gt(() => {
392
+ const M = document.createElement("div");
393
+ M.className = "dsh-ui dsh-ui-portal", document.body.appendChild(M), n.value = M;
394
+ }), ve(() => {
395
+ r.value = !0;
396
+ const M = fa(n.value);
397
+ g.forEach(C);
398
+ const $ = window.matchMedia("(prefers-color-scheme: dark)"), u = window.matchMedia("(prefers-reduced-motion: reduce)"), D = () => {
399
+ const B = document.body.getAttribute("data-ds-dark-theme"), p = document.body.getAttribute("arco-theme");
400
+ i.value = B !== null, o.value = B !== null ? B === "false" || B === "0" ? "light" : "dark" : p !== null ? p === "dark" ? "dark" : "light" : $.matches ? "dark" : "light", s.value = u.matches, se(x);
401
+ }, I = new MutationObserver(D);
402
+ for (let B = l.value ?? null; B; B = B.parentElement)
403
+ I.observe(B, { attributes: !0 });
404
+ $.addEventListener("change", D), u.addEventListener("change", D), d = () => {
405
+ M(), I.disconnect(), $.removeEventListener("change", D), u.removeEventListener("change", D);
406
+ }, D();
407
+ }), le([c, v, () => e.radius, () => e.rtl, () => e.overlayInset, () => e.overlayRadius], x, { flush: "post" }), Ae(x), pe(() => {
408
+ var M;
409
+ T = !0, d == null || d();
410
+ for (const $ of h.values())
411
+ clearTimeout($);
412
+ h.clear(), (M = n.value) == null || M.remove(), n.value = void 0;
413
+ }), () => m(lt, { locale: e.locale, rtl: e.rtl, updateAtScroll: !0, global: !1 }, {
352
414
  default: () => {
353
- var f;
415
+ var M;
354
416
  return [
355
- h("div", {
417
+ m("div", {
356
418
  ...t,
357
- ref: i,
419
+ ref: l,
358
420
  class: ["dsh-ui", t.class],
359
421
  "data-theme": c.value,
360
422
  "data-radius": e.radius,
361
- "data-motion": p.value,
362
- "data-host-theme": String(e.theme === "auto" && o.value),
423
+ "data-motion": v.value,
424
+ "data-host-theme": String(e.theme === "auto" && i.value),
363
425
  dir: e.rtl ? "rtl" : "ltr"
364
- }, (f = a.default) == null ? void 0 : f.call(a)),
365
- ...M.map((S) => h("div", { key: S.id, style: { display: "contents" } }, [S.content()])),
366
- n.value ? h(
367
- st,
426
+ }, (M = a.default) == null ? void 0 : M.call(a)),
427
+ ...f.map(($) => m("div", { key: $.id, style: { display: "contents" } }, [$.content()])),
428
+ r.value && n.value ? m(
429
+ ft,
368
430
  { to: n.value },
369
- ["top", "bottom", "topLeft", "topRight", "bottomLeft", "bottomRight"].map((S) => h(Nt, {
431
+ ["top", "bottom", "topLeft", "topRight", "bottomLeft", "bottomRight"].map(($) => m(Zt, {
370
432
  tag: "div",
371
433
  name: "dsh-toast-slide",
372
434
  class: "dsh-toast-region",
373
- "data-position": S,
435
+ "data-position": $,
374
436
  "aria-label": "通知",
375
437
  style: {
376
- top: S.startsWith("top") ? "16px" : "auto",
377
- bottom: S.startsWith("bottom") ? "16px" : "auto",
378
- left: S.endsWith("Left") ? "16px" : S.endsWith("Right") ? "auto" : "50%",
379
- right: S.endsWith("Right") ? "16px" : "auto",
380
- transform: S.endsWith("Left") || S.endsWith("Right") ? "none" : "translateX(-50%)"
438
+ top: $.startsWith("top") ? "calc(16px + var(--dsh-overlay-inset, 0px))" : "auto",
439
+ bottom: $.startsWith("bottom") ? "calc(16px + var(--dsh-overlay-inset, 0px))" : "auto",
440
+ left: $.endsWith("Left") ? "calc(16px + var(--dsh-overlay-inset, 0px))" : $.endsWith("Right") ? "auto" : "50%",
441
+ right: $.endsWith("Right") ? "calc(16px + var(--dsh-overlay-inset, 0px))" : "auto",
442
+ transform: $.endsWith("Left") || $.endsWith("Right") ? "none" : "translateX(-50%)"
381
443
  }
382
- }, { default: () => d.filter((v) => (v.position ?? "top") === S).map(
383
- (v) => {
384
- var C;
385
- return h("div", {
386
- key: v.internalId,
387
- class: ["dsh-toast", v.class],
388
- "data-type": v.type ?? "info",
389
- style: v.style,
390
- role: v.type === "error" ? "alert" : "status",
444
+ }, { default: () => g.filter((u) => (u.position ?? "top") === $).map(
445
+ (u) => {
446
+ var D;
447
+ return m("div", {
448
+ key: u.internalId,
449
+ class: ["dsh-toast", u.class],
450
+ "data-type": u.type ?? "info",
451
+ style: u.style,
452
+ role: u.type === "error" ? "alert" : "status",
391
453
  onMouseenter: () => {
392
- v.resetOnHover !== !1 && clearTimeout(l.get(v.internalId));
454
+ u.resetOnHover !== !1 && clearTimeout(h.get(u.internalId));
393
455
  },
394
456
  onMouseleave: () => {
395
- v.resetOnHover !== !1 && m(v);
457
+ u.resetOnHover !== !1 && C(u);
396
458
  },
397
- onFocusin: () => clearTimeout(l.get(v.internalId)),
398
- onFocusout: () => m(v)
459
+ onFocusin: () => clearTimeout(h.get(u.internalId)),
460
+ onFocusout: () => C(u)
399
461
  }, [
400
- v.showIcon ?? v.type !== "normal" ? h("div", { class: "dsh-toast-indicator", "aria-hidden": !0 }, [
401
- v.icon ? v.icon() : v.type === "loading" ? h(He, { size: 16 }) : h("svg", { class: "dsh-toast-default-icon", viewBox: "0 0 16 16", fill: "none" }, h("path", {
402
- d: de[v.type && v.type in de ? v.type : "info"],
462
+ u.showIcon ?? u.type !== "normal" ? m("div", { class: "dsh-toast-indicator", "aria-hidden": !0 }, [
463
+ u.icon ? u.icon() : u.type === "loading" ? m(Ce, { size: 16 }) : m("svg", { class: "dsh-toast-default-icon", viewBox: "0 0 16 16", fill: "none" }, m("path", {
464
+ d: he[u.type && u.type in he ? u.type : "info"],
403
465
  fill: "currentColor",
404
466
  "fill-rule": "evenodd",
405
467
  "clip-rule": "evenodd"
406
468
  }))
407
469
  ]) : null,
408
- h("div", { class: "dsh-toast-content" }, [
409
- v.title ? h("div", { class: "dsh-toast-title" }, [typeof v.title == "function" ? v.title() : v.title]) : null,
410
- h("div", { class: v.title ? "dsh-toast-description" : "dsh-toast-title" }, [typeof v.content == "function" ? v.content() : v.content]),
411
- (C = v.footer) == null ? void 0 : C.call(v)
470
+ m("div", { class: "dsh-toast-content" }, [
471
+ u.title ? m("div", { class: "dsh-toast-title" }, [typeof u.title == "function" ? u.title() : u.title]) : null,
472
+ m("div", { class: u.title ? "dsh-toast-description" : "dsh-toast-title" }, [typeof u.content == "function" ? u.content() : u.content]),
473
+ (D = u.footer) == null ? void 0 : D.call(u)
412
474
  ]),
413
- v.closable !== !1 ? h("button", {
475
+ u.closable !== !1 ? m("button", {
414
476
  type: "button",
415
477
  class: "dsh-toast-close",
416
478
  "aria-label": "关闭通知",
417
- onClick: () => u(v.internalId)
418
- }, [v.closeIconElement ?? v.closeIcon ? (v.closeIconElement ?? v.closeIcon)() : h("svg", { class: "dsh-toast-default-close-icon", viewBox: "0 0 16 16", fill: "none", "aria-hidden": !0 }, h("path", {
479
+ onClick: () => w(u.internalId)
480
+ }, [u.closeIconElement ?? u.closeIcon ? (u.closeIconElement ?? u.closeIcon)() : m("svg", { class: "dsh-toast-default-close-icon", viewBox: "0 0 16 16", fill: "none", "aria-hidden": !0 }, m("path", {
419
481
  d: "M3.47 3.47a.75.75 0 0 1 1.06 0L8 6.94l3.47-3.47a.75.75 0 1 1 1.06 1.06L9.06 8l3.47 3.47a.75.75 0 1 1-1.06 1.06L8 9.06l-3.47 3.47a.75.75 0 0 1-1.06-1.06L6.94 8 3.47 4.53a.75.75 0 0 1 0-1.06Z",
420
482
  fill: "currentColor",
421
483
  "fill-rule": "evenodd",
@@ -429,785 +491,727 @@ const Ha = F({
429
491
  }
430
492
  });
431
493
  }
432
- }), tt = /* @__PURE__ */ new Map();
494
+ }), je = /* @__PURE__ */ new Map();
433
495
  function U(e, t, a) {
434
- const i = F({
496
+ const l = N({
435
497
  name: `Dsh${t}`,
436
498
  inheritAttrs: !1,
437
- setup(r, { attrs: o, slots: s, expose: c }) {
438
- const { container: p, locale: d } = se(), M = W(o.defaultValue ?? o["default-value"]), l = q(""), x = W(), w = W(), $ = q(!!(o.defaultPopupVisible ?? o["default-popup-visible"])), u = W();
439
- return c(new Proxy({}, {
440
- get: (m, V) => {
441
- var A;
442
- return (A = x.value) == null ? void 0 : A[V];
499
+ setup(r, { attrs: o, slots: i, expose: s }) {
500
+ const { container: c, locale: v } = ue(), g = W(o.defaultValue ?? o["default-value"]), f = j(""), h = W();
501
+ let A;
502
+ function T(b) {
503
+ var Y;
504
+ const P = b.el instanceof HTMLElement ? b.el : (Y = b.el) == null ? void 0 : Y.nextElementSibling;
505
+ P instanceof HTMLElement && (A == null || A.removeAttribute("id"), A = void 0, !(typeof o.id != "string" || !o.id) && (A = P.querySelector('input:not([type="hidden"])') ?? P, A.id = o.id));
506
+ }
507
+ const d = W(), w = j(!!(o.defaultPopupVisible ?? o["default-popup-visible"])), C = W();
508
+ return s(new Proxy({}, {
509
+ get: (b, P) => {
510
+ var Y;
511
+ return (Y = h.value) == null ? void 0 : Y[P];
443
512
  },
444
- has: (m, V) => x.value !== void 0 && V in x.value
513
+ has: (b, P) => h.value !== void 0 && P in h.value
445
514
  })), () => {
446
- var O;
447
- if (!p.value)
448
- return null;
449
- const m = { ...o };
515
+ var B;
516
+ const b = { ...o };
517
+ if (t === "Mention" && (o.type ?? "textarea") === "textarea" && (b.type = "textarea", b.class = ["dsh-mention", o.class], b.textareaAttrs = { rows: o.rows ?? 1, ...o.textareaAttrs ?? o["textarea-attrs"] }, delete b["textarea-attrs"]), t === "Tooltip" && (b.position = o.position ?? "bottom"), t === "Menu") {
518
+ const p = o.itemWidth ?? o["item-width"];
519
+ b.class = [o.class, { "dsh-menu--centered": o.centered === !0 || o.centered === "" }], b.style = [o.style, typeof p == "string" || typeof p == "number" ? { "--dsh-menu-item-width": typeof p == "number" ? p + "px" : p } : void 0], delete b.centered, delete b.itemWidth, delete b["item-width"];
520
+ }
450
521
  if (t === "Popconfirm")
451
- for (const [_, T] of [["cancelButtonProps", "cancel-button-props"], ["okButtonProps", "ok-button-props"]])
452
- m[_] = { size: "small", ...o[_] ?? o[T] ?? {} }, delete m[T];
453
- if (["Select", "AutoComplete", "Cascader", "TreeSelect", "DatePicker", "RangePicker", "TimePicker", "ColorPicker"].includes(t) && (m.triggerProps = { popupOffset: 8, ...o.triggerProps ?? o["trigger-props"] ?? {} }, delete m["trigger-props"]), ["Tooltip", "Popover", "Dropdown", "Popconfirm"].includes(t)) {
454
- const _ = o.showArrow ?? o["show-arrow"], T = _ !== void 0 && _ !== !1;
455
- m.popupOffset = o.popupOffset ?? o["popup-offset"] ?? (t === "Tooltip" ? T ? 7 : 3 : 8), (t === "Tooltip" || t === "Popover" || t === "Popconfirm") && (m.showArrow = T, delete m["show-arrow"]);
522
+ for (const [p, y] of [["cancelButtonProps", "cancel-button-props"], ["okButtonProps", "ok-button-props"]])
523
+ b[p] = { size: "small", ...o[p] ?? o[y] ?? {} }, delete b[y];
524
+ if (["Select", "AutoComplete", "Cascader", "TreeSelect", "DatePicker", "RangePicker", "TimePicker", "ColorPicker"].includes(t) && (b.triggerProps = { popupOffset: 8, ...o.triggerProps ?? o["trigger-props"] ?? {} }, delete b["trigger-props"]), ["Tooltip", "Popover", "Dropdown", "Popconfirm"].includes(t)) {
525
+ const p = o.showArrow ?? o["show-arrow"], y = p !== void 0 && p !== !1;
526
+ b.popupOffset = o.popupOffset ?? o["popup-offset"] ?? (t === "Tooltip" ? y ? 7 : 3 : 8), (t === "Tooltip" || t === "Popover" || t === "Popconfirm") && (b.showArrow = y, delete b["show-arrow"]);
456
527
  }
457
- t === "Dsubmenu" && (m.popupOffset = o.popupOffset ?? o["popup-offset"] ?? 7);
458
- const V = a === "triggerProps" ? "trigger-props" : "preview-props", A = a ? m[a] ?? o[V] : void 0, Y = typeof A == "object" && A !== null ? { ...A } : {}, L = a ? Y.popupContainer ?? Y["popup-container"] : o.popupContainer ?? o["popup-container"];
459
- delete Y["popup-container"], delete m["popup-container"], a && delete m[V];
460
- const P = a ? { [a]: { ...Y, popupContainer: L ?? p.value } } : { popupContainer: L ?? p.value }, f = ["Tooltip", "Popover", "Popconfirm", "Dropdown", "Dsubmenu"].includes(t), S = o.alignPoint ?? o["align-point"];
461
- f && (S === void 0 || S === !1) && m.popupTranslate === void 0 && m["popup-translate"] === void 0 && L === void 0 && (m.popupTranslate = Object.defineProperties({}, Object.fromEntries(
462
- ["top", "tl", "tr", "bottom", "bl", "br", "left", "lt", "lb", "right", "rt", "rb"].map((_) => [_, { enumerable: !0, get() {
463
- var D, g, y;
464
- const T = t === "Dsubmenu" ? ((D = w.value) == null ? void 0 : D.closest(".arco-dropdown-option")) ?? (((g = x.value) == null ? void 0 : g.$el) instanceof Element ? x.value.$el : void 0) : w.value ?? (((y = x.value) == null ? void 0 : y.$el) instanceof Element ? x.value.$el : void 0), b = T == null ? void 0 : T.getBoundingClientRect();
465
- return b ? ["top", "tl", "tr"].includes(_) ? [0, Math.ceil(b.top) - b.top] : ["bottom", "bl", "br"].includes(_) ? [0, Math.floor(b.bottom) - b.bottom] : ["left", "lt", "lb"].includes(_) ? [Math.ceil(b.left) - b.left, 0] : [Math.ceil(b.right) - b.right, 0] : [0, 0];
528
+ t === "Dsubmenu" && (b.popupOffset = o.popupOffset ?? o["popup-offset"] ?? 7);
529
+ const P = a === "triggerProps" ? "trigger-props" : "preview-props", Y = a ? b[a] ?? o[P] : void 0, L = typeof Y == "object" && Y !== null ? { ...Y } : {}, x = a ? L.popupContainer ?? L["popup-container"] : o.popupContainer ?? o["popup-container"];
530
+ delete L["popup-container"], delete b["popup-container"], a && delete b[P];
531
+ const M = a ? { [a]: { ...L, popupContainer: x ?? c.value } } : { popupContainer: x ?? c.value }, $ = ["Tooltip", "Popover", "Popconfirm", "Dropdown", "Dsubmenu"].includes(t), u = o.alignPoint ?? o["align-point"];
532
+ $ && (u === void 0 || u === !1) && b.popupTranslate === void 0 && b["popup-translate"] === void 0 && x === void 0 && (b.popupTranslate = Object.defineProperties({}, Object.fromEntries(
533
+ ["top", "tl", "tr", "bottom", "bl", "br", "left", "lt", "lb", "right", "rt", "rb"].map((p) => [p, { enumerable: !0, get() {
534
+ var V, k, O;
535
+ const y = t === "Dsubmenu" ? ((V = d.value) == null ? void 0 : V.closest(".arco-dropdown-option")) ?? (((k = h.value) == null ? void 0 : k.$el) instanceof Element ? h.value.$el : void 0) : d.value ?? (((O = h.value) == null ? void 0 : O.$el) instanceof Element ? h.value.$el : void 0), S = y == null ? void 0 : y.getBoundingClientRect();
536
+ return S ? ["top", "tl", "tr"].includes(p) ? [0, Math.ceil(S.top) - S.top] : ["bottom", "bl", "br"].includes(p) ? [0, Math.floor(S.bottom) - S.bottom] : ["left", "lt", "lb"].includes(p) ? [Math.ceil(S.left) - S.left, 0] : [Math.ceil(S.right) - S.right, 0] : [0, 0];
466
537
  } }])
467
538
  )));
468
- let v = f ? {
469
- ...s,
470
- default: (..._) => {
471
- var T;
472
- return (T = s.default) == null ? void 0 : T.call(s, ..._).map(function b(D) {
473
- if (D.type === Ht && Array.isArray(D.children)) {
474
- const g = Ee(D);
475
- return g.children = D.children.map((y) => ut(y) ? b(y) : y), g;
539
+ let D = $ ? {
540
+ ...i,
541
+ default: (...p) => {
542
+ var y;
543
+ return (y = i.default) == null ? void 0 : y.call(i, ...p).map(function S(V) {
544
+ if (V.type === Jt && Array.isArray(V.children)) {
545
+ const k = Re(V);
546
+ return k.children = V.children.map((O) => ht(O) ? S(O) : O), k;
476
547
  }
477
- return Ee(D, {
478
- ref: (g) => {
479
- var k;
480
- const y = g instanceof Element ? g : (g == null ? void 0 : g.$el) instanceof Element ? g.$el : void 0;
481
- y && (!((k = w.value) != null && k.isConnected) || y.compareDocumentPosition(w.value) & Node.DOCUMENT_POSITION_FOLLOWING) && (w.value = y);
548
+ return Re(V, {
549
+ ref: (k) => {
550
+ var _;
551
+ const O = k instanceof Element ? k : (k == null ? void 0 : k.$el) instanceof Element ? k.$el : void 0;
552
+ O && (!((_ = d.value) != null && _.isConnected) || O.compareDocumentPosition(d.value) & Node.DOCUMENT_POSITION_FOLLOWING) && (d.value = O);
482
553
  },
483
- ...["Popover", "Popconfirm"].includes(t) ? { class: { "dsh-popover-trigger-open": o.popupVisible ?? o["popup-visible"] ?? $.value } } : {}
554
+ ...["Popover", "Popconfirm"].includes(t) ? { class: { "dsh-popover-trigger-open": o.popupVisible ?? o["popup-visible"] ?? w.value } } : {}
484
555
  }, !0);
485
556
  });
486
557
  }
487
- } : s;
488
- if (t === "Popconfirm" && !s.icon && (o.type === void 0 || o.type === "info") && (v = { ...v, icon: () => [h("svg", { viewBox: "0 0 16 16", width: 16, height: 16, fill: "none", style: { color: "var(--accent)" }, "aria-hidden": !0 }, [h("path", { d: "M8 13.5a5.5 5.5 0 1 0 0-11a5.5 5.5 0 0 0 0 11M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14m1-9.5a1 1 0 1 1-2 0a1 1 0 0 1 2 0m-.25 3a.75.75 0 0 0-1.5 0V11a.75.75 0 0 0 1.5 0z", fill: "currentColor", "fill-rule": "evenodd", "clip-rule": "evenodd" })])] }), t === "Tooltip" && m.showArrow && !(o.arrowClass ?? o["arrow-class"])) {
489
- const _ = o.arrowStyle ?? o["arrow-style"], T = (_ == null ? void 0 : _.backgroundColor) ?? (_ == null ? void 0 : _.background) ?? o.backgroundColor ?? o["background-color"];
490
- v = { ...v, content: () => {
491
- var b;
558
+ } : i;
559
+ if (t === "Popconfirm" && !i.icon && (o.type === void 0 || o.type === "info") && (D = { ...D, icon: () => [m("svg", { viewBox: "0 0 16 16", width: 16, height: 16, fill: "none", style: { color: "var(--accent)" }, "aria-hidden": !0 }, [m("path", { d: "M8 13.5a5.5 5.5 0 1 0 0-11a5.5 5.5 0 0 0 0 11M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14m1-9.5a1 1 0 1 1-2 0a1 1 0 0 1 2 0m-.25 3a.75.75 0 0 0-1.5 0V11a.75.75 0 0 0 1.5 0z", fill: "currentColor", "fill-rule": "evenodd", "clip-rule": "evenodd" })])] }), t === "Tooltip" && b.showArrow && !(o.arrowClass ?? o["arrow-class"])) {
560
+ const p = o.arrowStyle ?? o["arrow-style"], y = (p == null ? void 0 : p.backgroundColor) ?? (p == null ? void 0 : p.background) ?? o.backgroundColor ?? o["background-color"];
561
+ D = { ...D, content: () => {
562
+ var S;
492
563
  return [
493
- ...((b = s.content) == null ? void 0 : b.call(s)) ?? [Ft(String(o.content ?? ""))],
494
- h(st, { to: u.value ?? p.value, disabled: !u.value }, [
495
- h("svg", {
564
+ ...((S = i.content) == null ? void 0 : S.call(i)) ?? [Qt(String(o.content ?? ""))],
565
+ m(ft, { to: C.value ?? c.value, disabled: !C.value }, [
566
+ m("svg", {
496
567
  class: "dsh-tooltip-arrow",
497
568
  "aria-hidden": !0,
498
569
  width: 12,
499
570
  height: 12,
500
571
  viewBox: "0 0 12 12",
501
572
  fill: "none",
502
- style: { fill: T },
503
- onVnodeMounted: (D) => {
504
- re(() => {
505
- var y;
506
- const g = D.el;
507
- g.isConnected && (u.value = ((y = g.closest(".arco-trigger-popup-wrapper")) == null ? void 0 : y.querySelector(":scope > .arco-trigger-arrow")) ?? void 0);
573
+ style: { fill: y },
574
+ onVnodeMounted: (V) => {
575
+ se(() => {
576
+ var O;
577
+ const k = V.el;
578
+ k.isConnected && (C.value = ((O = k.closest(".arco-trigger-popup-wrapper")) == null ? void 0 : O.querySelector(":scope > .arco-trigger-arrow")) ?? void 0);
508
579
  });
509
580
  },
510
581
  onVnodeBeforeUnmount: () => {
511
- u.value = void 0;
582
+ C.value = void 0;
512
583
  }
513
- }, [h("path", { d: "M0 0C5.48483 8 6.5 8 12 0Z" })])
584
+ }, [m("path", { d: "M0 0C5.48483 8 6.5 8 12 0Z" })])
514
585
  ])
515
586
  ];
516
587
  } };
517
588
  }
518
- if (t === "Select" && (o.allowSearch ?? o["allow-search"]) !== void 0 && (o.allowSearch ?? o["allow-search"]) !== !1 && Array.isArray(o.options) && !s.header) {
519
- const _ = String(o.inputValue ?? o["input-value"] ?? l.value), T = o.filterOption ?? o["filter-option"];
520
- m.showHeaderOnEmpty = !0, m.fallbackOption = !1, m.placeholder = o.placeholder ?? "Select an item", m.allowSearch = !1, delete m["allow-search"], m.inputValue = void 0, delete m["input-value"], m.options = T === !1 ? o.options : o.options.filter((b) => typeof T == "function" ? T(_, b) : String(b.label ?? b.value ?? b).toLocaleLowerCase().includes(_.toLocaleLowerCase())), v = { ...v, header: () => [h("div", { class: "dsh-select-search" }, h("div", { class: "dsh-select-search__group" }, h("input", {
589
+ if (t === "Select" && (o.allowSearch ?? o["allow-search"]) !== void 0 && (o.allowSearch ?? o["allow-search"]) !== !1 && Array.isArray(o.options) && !i.header) {
590
+ const p = String(o.inputValue ?? o["input-value"] ?? f.value);
591
+ b.showHeaderOnEmpty = !0, b.placeholder = o.placeholder ?? "Select an item", b.allowSearch = !1, delete b["allow-search"], b.inputValue = p, delete b["input-value"], D = { ...D, header: () => [m("div", { class: "dsh-select-search" }, m("div", { class: "dsh-select-search__group" }, m("input", {
521
592
  type: "search",
522
593
  "aria-label": "搜索",
523
- value: _,
524
- autofocus: m.options.length > 0,
525
- onInput(b) {
526
- const D = b.target.value;
527
- l.value = D;
528
- for (const g of ["onUpdate:inputValue", "onInputValueChange", "onSearch"]) {
529
- const y = o[g];
530
- for (const k of Array.isArray(y) ? y : [y])
531
- typeof k == "function" && k(D);
594
+ value: p,
595
+ autofocus: !0,
596
+ onInput(y) {
597
+ const S = y.target.value;
598
+ f.value = S;
599
+ for (const V of ["onUpdate:inputValue", "onInputValueChange", "onSearch"]) {
600
+ const k = o[V];
601
+ for (const O of Array.isArray(k) ? k : [k])
602
+ typeof O == "function" && O(S);
532
603
  }
533
604
  },
534
- onKeydown(b) {
535
- var D, g;
536
- ["ArrowDown", "ArrowUp", "Enter", "Escape"].includes(b.key) && (b.preventDefault(), (g = (D = x.value) == null ? void 0 : D.$el) == null || g.dispatchEvent(new KeyboardEvent("keydown", { key: b.key, bubbles: !0 })));
605
+ onKeydown(y) {
606
+ var S, V;
607
+ ["ArrowDown", "ArrowUp", "Enter", "Escape"].includes(y.key) && (y.preventDefault(), (V = (S = h.value) == null ? void 0 : S.$el) == null || V.dispatchEvent(new KeyboardEvent("keydown", { key: y.key, bubbles: !0 })));
537
608
  }
538
609
  })))] };
539
610
  }
540
- if (t === "Select" && o.multiple && !s.label && !o.formatLabel && !o["format-label"]) {
541
- const _ = o.modelValue ?? o["model-value"] ?? M.value ?? [], b = new Intl.ListFormat(d.value).formatToParts(_.map((g, y) => String(y))).filter((g) => g.type === "literal").map((g) => g.value);
542
- v = { ...v, label: ({ data: g }) => {
543
- const y = _.findIndex((k) => (typeof k == "object" && k ? k.value : k) === g.value);
544
- return [h("span", { class: "dsh-select-summary" }, [g.label ?? String(g.value), b[y] ?? ""])];
611
+ if (t === "Select" && (o.multiple === "" || o.multiple === !0) && !i.label && !o.formatLabel && !o["format-label"]) {
612
+ const p = o.modelValue ?? o["model-value"] ?? g.value ?? [], S = new Intl.ListFormat(v.value).formatToParts(p.map((k, O) => String(O))).filter((k) => k.type === "literal").map((k) => k.value);
613
+ D = { ...D, label: ({ data: k }) => {
614
+ const O = p.findIndex((_) => (typeof _ == "object" && _ ? _.value : _) === k.value);
615
+ return [m("span", { class: "dsh-select-summary" }, [k.label ?? String(k.value), S[O] ?? ""])];
545
616
  } };
546
- const D = o.onChange;
547
- m.onChange = (g, ...y) => {
548
- M.value = g;
549
- for (const k of Array.isArray(D) ? D : [D])
550
- typeof k == "function" && k(g, ...y);
617
+ const V = o.onChange;
618
+ b.onChange = (k, ...O) => {
619
+ g.value = k;
620
+ for (const _ of Array.isArray(V) ? V : [V])
621
+ typeof _ == "function" && _(k, ...O);
551
622
  };
552
623
  }
553
624
  if (t === "AutoComplete") {
554
- const _ = ((O = m.triggerProps) == null ? void 0 : O.popupVisible) ?? $.value;
555
- v = {
556
- ...v,
557
- ...s.suffix ? {} : { suffix: () => [h("span", { class: ["dsh-combobox-indicator", { "dsh-combobox-indicator--open": _ }], "aria-hidden": !0 })] },
558
- ...Array.isArray(o.data) && !o.data.length && !s.footer ? { footer: () => {
559
- var T;
560
- return [h("div", { class: "dsh-autocomplete-empty" }, h("span", { class: "dsh-autocomplete-empty__text" }, ((T = s.empty) == null ? void 0 : T.call(s)) ?? (d.value.startsWith("zh") ? "无结果" : "No results found")))];
625
+ const p = ((B = b.triggerProps) == null ? void 0 : B.popupVisible) ?? w.value;
626
+ D = {
627
+ ...D,
628
+ ...i.suffix ? {} : { suffix: () => [m("span", { class: ["dsh-combobox-indicator", { "dsh-combobox-indicator--open": p }], "aria-hidden": !0 })] },
629
+ ...Array.isArray(o.data) && !o.data.length && !i.footer ? { footer: () => {
630
+ var y;
631
+ return [m("div", { class: "dsh-autocomplete-empty" }, m("span", { class: "dsh-autocomplete-empty__text" }, ((y = i.empty) == null ? void 0 : y.call(i)) ?? (v.value.startsWith("zh") ? "无结果" : "No results found")))];
561
632
  } } : {}
562
633
  };
563
634
  }
564
- const C = ["Popover", "Popconfirm", "AutoComplete"].includes(t) ? {
565
- onPopupVisibleChange(_) {
566
- $.value = _;
567
- const T = o.onPopupVisibleChange;
568
- Array.isArray(T) ? T.forEach((b) => {
569
- typeof b == "function" && b(_);
570
- }) : typeof T == "function" && T(_);
635
+ const I = ["Popover", "Popconfirm", "AutoComplete"].includes(t) ? {
636
+ onPopupVisibleChange(p) {
637
+ w.value = p;
638
+ const y = o.onPopupVisibleChange;
639
+ Array.isArray(y) ? y.forEach((S) => {
640
+ typeof S == "function" && S(p);
641
+ }) : typeof y == "function" && y(p);
571
642
  }
572
643
  } : {};
573
- return h(e, { ...m, ...P, ...C, ref: x }, v);
644
+ return t === "Select" ? (delete b.id, m(e, ce(b, M, { ref: h, onVnodeMounted: T, onVnodeUpdated: T }), D)) : m(e, { ...b, ...M, ...I, ref: h }, D);
574
645
  };
575
646
  }
576
647
  });
577
- tt.set(e, i);
648
+ je.set(e, l);
578
649
  const n = e.install;
579
- return n && Object.assign(i, {
650
+ return n && Object.assign(l, {
580
651
  install(r, o) {
581
- function s(c, p) {
582
- return p === void 0 ? r.component(c) : r.component(c, tt.get(p) ?? p);
652
+ function i(s, c) {
653
+ return c === void 0 ? r.component(s) : r.component(s, je.get(c) ?? c);
583
654
  }
584
- n({ ...r, component: s }, o);
655
+ n({ ...r, component: i }, o);
585
656
  }
586
- }), i;
657
+ }), l;
587
658
  }
588
- const dt = U(N.AutoComplete, "AutoComplete", "triggerProps"), Ra = dt, ft = U(N.Cascader, "Cascader"), aa = U(N.ColorPicker, "ColorPicker"), ht = U(N.DatePicker, "DatePicker"), Me = U(N.MonthPicker, "MonthPicker"), Ae = U(N.QuarterPicker, "QuarterPicker"), xe = U(N.WeekPicker, "WeekPicker"), $e = U(N.YearPicker, "YearPicker"), mt = U(N.RangePicker, "RangePicker"), vt = U(N.Dropdown, "Dropdown"), pt = U(N.Dsubmenu, "Dsubmenu"), gt = U(N.DropdownButton, "DropdownButton"), bt = U(N.Select, "Select"), na = U(N.TreeSelect, "TreeSelect"), ra = U(N.TimePicker, "TimePicker"), oa = U(N.Tooltip, "Tooltip"), la = U(N.Popover, "Popover"), ia = U(N.Popconfirm, "Popconfirm"), sa = U(N.Trigger, "Trigger"), ua = U(N.Mention, "Mention"), yt = U(N.Menu, "Menu", "triggerProps"), wt = U(N.Image, "Image", "previewProps"), Dt = U(N.ImagePreview, "ImagePreview"), St = U(N.ImagePreviewGroup, "ImagePreviewGroup");
589
- Object.assign(ft, { CascaderPanel: N.CascaderPanel });
590
- Object.assign(ht, { MonthPicker: Me, QuarterPicker: Ae, WeekPicker: xe, YearPicker: $e, RangePicker: mt });
591
- Object.assign(vt, { Option: N.Doption, Group: N.Dgroup, Submenu: pt, Button: gt });
592
- Object.assign(bt, { Option: N.Option, OptGroup: N.Optgroup });
593
- Object.assign(yt, { Item: N.MenuItem, ItemGroup: N.MenuItemGroup, SubMenu: N.SubMenu });
594
- Object.assign(wt, { Preview: Dt, PreviewGroup: St });
595
- function ca(e, t = !1) {
659
+ const mt = U(z.AutoComplete, "AutoComplete", "triggerProps"), nn = mt, vt = U(z.Cascader, "Cascader"), va = U(z.ColorPicker, "ColorPicker"), gt = U(z.DatePicker, "DatePicker"), $e = U(z.MonthPicker, "MonthPicker"), Pe = U(z.QuarterPicker, "QuarterPicker"), _e = U(z.WeekPicker, "WeekPicker"), Te = U(z.YearPicker, "YearPicker"), pt = U(z.RangePicker, "RangePicker"), bt = U(z.Dropdown, "Dropdown"), yt = U(z.Dsubmenu, "Dsubmenu"), wt = U(z.DropdownButton, "DropdownButton"), Dt = U(z.Select, "Select"), ga = U(z.TreeSelect, "TreeSelect"), pa = U(z.TimePicker, "TimePicker"), St = U(z.Tooltip, "Tooltip"), ba = U(z.Popover, "Popover"), ya = U(z.Popconfirm, "Popconfirm"), wa = U(z.Trigger, "Trigger"), Da = U(z.Mention, "Mention"), Ge = N({
660
+ name: "DshMenuItem",
661
+ inheritAttrs: !1,
662
+ props: z.MenuItem.props,
663
+ setup(e, { attrs: t, slots: a }) {
664
+ const l = Ue();
665
+ return () => m(z.MenuItem, { ...t, ...e, key: l == null ? void 0 : l.vnode.key }, a.action ? {
666
+ ...a,
667
+ default: () => {
668
+ var n, r;
669
+ return m("div", { class: "dsh-menu-item-content" }, [
670
+ m("span", null, (n = a.default) == null ? void 0 : n.call(a)),
671
+ m("span", {
672
+ class: "dsh-menu-item-action",
673
+ inert: e.disabled || void 0,
674
+ onClick: (o) => o.stopPropagation(),
675
+ onKeydown: (o) => o.stopPropagation()
676
+ }, (r = a.action) == null ? void 0 : r.call(a))
677
+ ]);
678
+ }
679
+ } : a);
680
+ }
681
+ });
682
+ je.set(z.MenuItem, Ge);
683
+ const Mt = U(z.Menu, "Menu", "triggerProps"), Sa = N({
684
+ name: "DshHintIcon",
685
+ inheritAttrs: !1,
686
+ props: { content: String, label: String },
687
+ setup(e, { attrs: t, slots: a }) {
688
+ return () => m(St, { content: e.content, trigger: ["hover", "focus"] }, {
689
+ ...a.content ? { content: a.content } : {},
690
+ default: () => m("button", {
691
+ ...t,
692
+ type: "button",
693
+ class: ["dsh-hint-icon", t.class],
694
+ "aria-label": e.label ?? e.content ?? "Info",
695
+ onClick: (l) => l.stopPropagation()
696
+ }, [m(ea, { "aria-hidden": !0 })])
697
+ });
698
+ }
699
+ }), kt = U(z.Image, "Image", "previewProps"), At = U(z.ImagePreview, "ImagePreview"), xt = U(z.ImagePreviewGroup, "ImagePreviewGroup");
700
+ Object.assign(vt, { CascaderPanel: z.CascaderPanel });
701
+ Object.assign(gt, { MonthPicker: $e, QuarterPicker: Pe, WeekPicker: _e, YearPicker: Te, RangePicker: pt });
702
+ Object.assign(bt, { Option: z.Doption, Group: z.Dgroup, Submenu: yt, Button: wt });
703
+ Object.assign(Dt, { Option: z.Option, OptGroup: z.Optgroup });
704
+ Object.assign(Mt, { Item: Ge, ItemGroup: z.MenuItemGroup, SubMenu: z.SubMenu });
705
+ Object.assign(kt, { Preview: At, PreviewGroup: xt });
706
+ function Ma(e, t = !1) {
596
707
  if (typeof e != "string")
597
708
  return {};
598
709
  let a;
599
- const i = e.trim().replace(/^#/, "");
600
- if (/^(?:[a-f\d]{3}|[a-f\d]{4}|[a-f\d]{6}|[a-f\d]{8})$/i.test(i)) {
601
- const $ = i.length < 5 ? [...i].map((u) => u.repeat(2)).join("") : i;
602
- a = [0, 2, 4, 6].map((u) => u === 6 ? $.length === 8 ? parseInt($.slice(u, u + 2), 16) / 255 : 1 : parseInt($.slice(u, u + 2), 16));
710
+ const l = e.trim().replace(/^#/, "");
711
+ if (/^(?:[a-f\d]{3}|[a-f\d]{4}|[a-f\d]{6}|[a-f\d]{8})$/i.test(l)) {
712
+ const T = l.length < 5 ? [...l].map((d) => d.repeat(2)).join("") : l;
713
+ a = [0, 2, 4, 6].map((d) => d === 6 ? T.length === 8 ? parseInt(T.slice(d, d + 2), 16) / 255 : 1 : parseInt(T.slice(d, d + 2), 16));
603
714
  } else {
604
- const $ = e.match(/^rgba?\(\s*([\d.]+)[,\s]+([\d.]+)[,\s]+([\d.]+)(?:\s*[,/]\s*([\d.]+))?\s*\)$/i);
605
- if (!$)
715
+ const T = e.match(/^rgba?\(\s*([\d.]+)[,\s]+([\d.]+)[,\s]+([\d.]+)(?:\s*[,/]\s*([\d.]+))?\s*\)$/i);
716
+ if (!T)
606
717
  return {};
607
- a = [Number($[1]), Number($[2]), Number($[3]), $[4] === void 0 ? 1 : Number($[4])];
718
+ a = [Number(T[1]), Number(T[2]), Number(T[3]), T[4] === void 0 ? 1 : Number(T[4])];
608
719
  }
609
- const [n, r, o] = a, s = t ? 1 : a[3], c = Math.max(n, r, o), p = Math.min(n, r, o), d = c - p;
610
- let M = d === 0 ? 0 : c === n ? ((r - o) / d + 6) % 6 : c === r ? (o - n) / d + 2 : (n - r) / d + 4;
611
- M *= 60;
612
- const l = c ? d / c * 100 : 0, x = c / 255 * 100;
720
+ const [n, r, o] = a, i = t ? 1 : a[3], s = Math.max(n, r, o), c = Math.min(n, r, o), v = s - c;
721
+ let g = v === 0 ? 0 : s === n ? ((r - o) / v + 6) % 6 : s === r ? (o - n) / v + 2 : (n - r) / v + 4;
722
+ g *= 60;
723
+ const f = s ? v / s * 100 : 0, h = s / 255 * 100;
613
724
  return {
614
725
  "--dsh-color": `rgb(${n}, ${r}, ${o})`,
615
- "--dsh-color-current": `rgb(${n} ${r} ${o} / ${s})`,
726
+ "--dsh-color-current": `rgb(${n} ${r} ${o} / ${i})`,
616
727
  "--dsh-color-transparent": `rgb(${n} ${r} ${o} / 0)`,
617
- "--dsh-color-hue": `hsl(${M} 100% 50%)`,
618
- "--dsh-color-x": `${Number(l.toFixed(2))}%`,
619
- "--dsh-color-y": `${Number((100 - x).toFixed(2))}%`,
620
- "--dsh-color-hue-x": `${Math.round(M) / 360 * 100}%`,
621
- "--dsh-color-alpha-x": `${s * 100}%`
728
+ "--dsh-color-hue": `hsl(${g} 100% 50%)`,
729
+ "--dsh-color-x": `${Number(f.toFixed(2))}%`,
730
+ "--dsh-color-y": `${Number((100 - h).toFixed(2))}%`,
731
+ "--dsh-color-hue-x": `${Math.round(g) / 360 * 100}%`,
732
+ "--dsh-color-alpha-x": `${i * 100}%`
622
733
  };
623
734
  }
624
- const Ne = F({
735
+ const qe = N({
625
736
  name: "DshColorPicker",
626
737
  inheritAttrs: !1,
627
738
  props: { showFormatControls: Boolean },
628
- setup(e, { attrs: t, slots: a, expose: i }) {
739
+ setup(e, { attrs: t, slots: a, expose: l }) {
629
740
  const n = W(t.defaultValue ?? t["default-value"]), r = W();
630
- return i(new Proxy({}, { get: (o, s) => {
631
- var c;
632
- return (c = r.value) == null ? void 0 : c[s];
633
- }, has: (o, s) => r.value !== void 0 && s in r.value })), () => {
634
- const { class: o, style: s, ...c } = t, p = t.modelValue ?? t["model-value"] ?? n.value, d = t.disabledAlpha ?? t["disabled-alpha"], M = ca(p, d !== void 0 && d !== !1), l = t.triggerProps ?? t["trigger-props"] ?? {}, x = e.showFormatControls || t.format === "rgb", w = t.hideTrigger ?? t["hide-trigger"], $ = w !== void 0 && w !== !1;
635
- return h("span", {
636
- class: ["dsh-color-trigger", $ && "dsh-color-panel", $ && x && "dsh-color-panel--advanced", !$ && o],
637
- style: $ ? M : [M, s]
638
- }, [h(aa, {
639
- ...c,
741
+ return l(new Proxy({}, { get: (o, i) => {
742
+ var s;
743
+ return (s = r.value) == null ? void 0 : s[i];
744
+ }, has: (o, i) => r.value !== void 0 && i in r.value })), () => {
745
+ const { class: o, style: i, ...s } = t, c = t.modelValue ?? t["model-value"] ?? n.value, v = t.disabledAlpha ?? t["disabled-alpha"], g = Ma(c, v !== void 0 && v !== !1), f = t.triggerProps ?? t["trigger-props"] ?? {}, h = e.showFormatControls || t.format === "rgb", A = t.hideTrigger ?? t["hide-trigger"], T = A !== void 0 && A !== !1;
746
+ return m("span", {
747
+ class: ["dsh-color-trigger", T && "dsh-color-panel", T && h && "dsh-color-panel--advanced", !T && o],
748
+ style: T ? g : [g, i]
749
+ }, [m(va, {
750
+ ...s,
640
751
  ref: r,
641
- ...$ ? { class: o, style: s } : {},
642
- triggerProps: { ...l, contentClass: [l.contentClass, "dsh-color-panel", { "dsh-color-panel--advanced": x }], contentStyle: { ...M, ...l.contentStyle } },
643
- "onUpdate:modelValue": (u) => {
644
- n.value = u;
645
- const m = t["onUpdate:modelValue"];
646
- typeof m == "function" && m(u);
752
+ ...T ? { class: o, style: i } : {},
753
+ triggerProps: { ...f, contentClass: [f.contentClass, "dsh-color-panel", { "dsh-color-panel--advanced": h }], contentStyle: { ...g, ...f.contentStyle } },
754
+ "onUpdate:modelValue": (d) => {
755
+ n.value = d;
756
+ const w = t["onUpdate:modelValue"];
757
+ typeof w == "function" && w(d);
647
758
  }
648
759
  }, a)]);
649
760
  };
650
761
  }
651
762
  });
652
- Object.assign(Ne, { install(e, t) {
653
- e.component(`${(t == null ? void 0 : t.componentPrefix) ?? "A"}ColorPicker`, Ne);
763
+ Object.assign(qe, { install(e, t) {
764
+ e.component(`${(t == null ? void 0 : t.componentPrefix) ?? "A"}ColorPicker`, qe);
654
765
  } });
655
- function kt(e) {
766
+ function Ct(e) {
656
767
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
657
768
  }
658
- var ge = { exports: {} }, da = ge.exports, at;
659
- function fa() {
660
- return at || (at = 1, (function(e, t) {
661
- (function(a, i) {
662
- e.exports = i();
663
- })(da, (function() {
664
- var a = 1e3, i = 6e4, n = 36e5, r = "millisecond", o = "second", s = "minute", c = "hour", p = "day", d = "week", M = "month", l = "quarter", x = "year", w = "date", $ = "Invalid Date", u = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, m = /\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, V = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(b) {
665
- var D = ["th", "st", "nd", "rd"], g = b % 100;
666
- return "[" + b + (D[(g - 20) % 10] || D[g] || D[0]) + "]";
667
- } }, A = function(b, D, g) {
668
- var y = String(b);
669
- return !y || y.length >= D ? b : "" + Array(D + 1 - y.length).join(g) + b;
670
- }, Y = { s: A, z: function(b) {
671
- var D = -b.utcOffset(), g = Math.abs(D), y = Math.floor(g / 60), k = g % 60;
672
- return (D <= 0 ? "+" : "-") + A(y, 2, "0") + ":" + A(k, 2, "0");
673
- }, m: function b(D, g) {
674
- if (D.date() < g.date()) return -b(g, D);
675
- var y = 12 * (g.year() - D.year()) + (g.month() - D.month()), k = D.clone().add(y, M), I = g - k < 0, E = D.clone().add(y + (I ? -1 : 1), M);
676
- return +(-(y + (g - k) / (I ? k - E : E - k)) || 0);
677
- }, a: function(b) {
678
- return b < 0 ? Math.ceil(b) || 0 : Math.floor(b);
679
- }, p: function(b) {
680
- return { M, y: x, w: d, d: p, D: w, h: c, m: s, s: o, ms: r, Q: l }[b] || String(b || "").toLowerCase().replace(/s$/, "");
681
- }, u: function(b) {
682
- return b === void 0;
683
- } }, L = "en", P = {};
684
- P[L] = V;
685
- var f = "$isDayjsObject", S = function(b) {
686
- return b instanceof _ || !(!b || !b[f]);
687
- }, v = function b(D, g, y) {
769
+ var De = { exports: {} }, ka = De.exports, it;
770
+ function Aa() {
771
+ return it || (it = 1, (function(e, t) {
772
+ (function(a, l) {
773
+ e.exports = l();
774
+ })(ka, (function() {
775
+ var a = 1e3, l = 6e4, n = 36e5, r = "millisecond", o = "second", i = "minute", s = "hour", c = "day", v = "week", g = "month", f = "quarter", h = "year", A = "date", T = "Invalid Date", d = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, w = /\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, C = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(p) {
776
+ var y = ["th", "st", "nd", "rd"], S = p % 100;
777
+ return "[" + p + (y[(S - 20) % 10] || y[S] || y[0]) + "]";
778
+ } }, b = function(p, y, S) {
779
+ var V = String(p);
780
+ return !V || V.length >= y ? p : "" + Array(y + 1 - V.length).join(S) + p;
781
+ }, P = { s: b, z: function(p) {
782
+ var y = -p.utcOffset(), S = Math.abs(y), V = Math.floor(S / 60), k = S % 60;
783
+ return (y <= 0 ? "+" : "-") + b(V, 2, "0") + ":" + b(k, 2, "0");
784
+ }, m: function p(y, S) {
785
+ if (y.date() < S.date()) return -p(S, y);
786
+ var V = 12 * (S.year() - y.year()) + (S.month() - y.month()), k = y.clone().add(V, g), O = S - k < 0, _ = y.clone().add(V + (O ? -1 : 1), g);
787
+ return +(-(V + (S - k) / (O ? k - _ : _ - k)) || 0);
788
+ }, a: function(p) {
789
+ return p < 0 ? Math.ceil(p) || 0 : Math.floor(p);
790
+ }, p: function(p) {
791
+ return { M: g, y: h, w: v, d: c, D: A, h: s, m: i, s: o, ms: r, Q: f }[p] || String(p || "").toLowerCase().replace(/s$/, "");
792
+ }, u: function(p) {
793
+ return p === void 0;
794
+ } }, Y = "en", L = {};
795
+ L[Y] = C;
796
+ var x = "$isDayjsObject", M = function(p) {
797
+ return p instanceof I || !(!p || !p[x]);
798
+ }, $ = function p(y, S, V) {
688
799
  var k;
689
- if (!D) return L;
690
- if (typeof D == "string") {
691
- var I = D.toLowerCase();
692
- P[I] && (k = I), g && (P[I] = g, k = I);
693
- var E = D.split("-");
694
- if (!k && E.length > 1) return b(E[0]);
800
+ if (!y) return Y;
801
+ if (typeof y == "string") {
802
+ var O = y.toLowerCase();
803
+ L[O] && (k = O), S && (L[O] = S, k = O);
804
+ var _ = y.split("-");
805
+ if (!k && _.length > 1) return p(_[0]);
695
806
  } else {
696
- var B = D.name;
697
- P[B] = D, k = B;
807
+ var E = y.name;
808
+ L[E] = y, k = E;
698
809
  }
699
- return !y && k && (L = k), k || !y && L;
700
- }, C = function(b, D) {
701
- if (S(b)) return b.clone();
702
- var g = typeof D == "object" ? D : {};
703
- return g.date = b, g.args = arguments, new _(g);
704
- }, O = Y;
705
- O.l = v, O.i = S, O.w = function(b, D) {
706
- return C(b, { locale: D.$L, utc: D.$u, x: D.$x, $offset: D.$offset });
810
+ return !V && k && (Y = k), k || !V && Y;
811
+ }, u = function(p, y) {
812
+ if (M(p)) return p.clone();
813
+ var S = typeof y == "object" ? y : {};
814
+ return S.date = p, S.args = arguments, new I(S);
815
+ }, D = P;
816
+ D.l = $, D.i = M, D.w = function(p, y) {
817
+ return u(p, { locale: y.$L, utc: y.$u, x: y.$x, $offset: y.$offset });
707
818
  };
708
- var _ = (function() {
709
- function b(g) {
710
- this.$L = v(g.locale, null, !0), this.parse(g), this.$x = this.$x || g.x || {}, this[f] = !0;
819
+ var I = (function() {
820
+ function p(S) {
821
+ this.$L = $(S.locale, null, !0), this.parse(S), this.$x = this.$x || S.x || {}, this[x] = !0;
711
822
  }
712
- var D = b.prototype;
713
- return D.parse = function(g) {
714
- this.$d = (function(y) {
715
- var k = y.date, I = y.utc;
823
+ var y = p.prototype;
824
+ return y.parse = function(S) {
825
+ this.$d = (function(V) {
826
+ var k = V.date, O = V.utc;
716
827
  if (k === null) return /* @__PURE__ */ new Date(NaN);
717
- if (O.u(k)) return /* @__PURE__ */ new Date();
828
+ if (D.u(k)) return /* @__PURE__ */ new Date();
718
829
  if (k instanceof Date) return new Date(k);
719
830
  if (typeof k == "string" && !/Z$/i.test(k)) {
720
- var E = k.match(u);
721
- if (E) {
722
- var B = E[2] - 1 || 0, H = (E[7] || "0").substring(0, 3);
723
- return I ? new Date(Date.UTC(E[1], B, E[3] || 1, E[4] || 0, E[5] || 0, E[6] || 0, H)) : new Date(E[1], B, E[3] || 1, E[4] || 0, E[5] || 0, E[6] || 0, H);
831
+ var _ = k.match(d);
832
+ if (_) {
833
+ var E = _[2] - 1 || 0, H = (_[7] || "0").substring(0, 3);
834
+ return O ? new Date(Date.UTC(_[1], E, _[3] || 1, _[4] || 0, _[5] || 0, _[6] || 0, H)) : new Date(_[1], E, _[3] || 1, _[4] || 0, _[5] || 0, _[6] || 0, H);
724
835
  }
725
836
  }
726
837
  return new Date(k);
727
- })(g), this.init();
728
- }, D.init = function() {
729
- var g = this.$d;
730
- this.$y = g.getFullYear(), this.$M = g.getMonth(), this.$D = g.getDate(), this.$W = g.getDay(), this.$H = g.getHours(), this.$m = g.getMinutes(), this.$s = g.getSeconds(), this.$ms = g.getMilliseconds();
731
- }, D.$utils = function() {
732
- return O;
733
- }, D.isValid = function() {
734
- return this.$d.toString() !== $;
735
- }, D.isSame = function(g, y) {
736
- var k = C(g);
737
- return this.startOf(y) <= k && k <= this.endOf(y);
738
- }, D.isAfter = function(g, y) {
739
- return C(g) < this.startOf(y);
740
- }, D.isBefore = function(g, y) {
741
- return this.endOf(y) < C(g);
742
- }, D.$g = function(g, y, k) {
743
- return O.u(g) ? this[y] : this.set(k, g);
744
- }, D.unix = function() {
838
+ })(S), this.init();
839
+ }, y.init = function() {
840
+ var S = this.$d;
841
+ this.$y = S.getFullYear(), this.$M = S.getMonth(), this.$D = S.getDate(), this.$W = S.getDay(), this.$H = S.getHours(), this.$m = S.getMinutes(), this.$s = S.getSeconds(), this.$ms = S.getMilliseconds();
842
+ }, y.$utils = function() {
843
+ return D;
844
+ }, y.isValid = function() {
845
+ return this.$d.toString() !== T;
846
+ }, y.isSame = function(S, V) {
847
+ var k = u(S);
848
+ return this.startOf(V) <= k && k <= this.endOf(V);
849
+ }, y.isAfter = function(S, V) {
850
+ return u(S) < this.startOf(V);
851
+ }, y.isBefore = function(S, V) {
852
+ return this.endOf(V) < u(S);
853
+ }, y.$g = function(S, V, k) {
854
+ return D.u(S) ? this[V] : this.set(k, S);
855
+ }, y.unix = function() {
745
856
  return Math.floor(this.valueOf() / 1e3);
746
- }, D.valueOf = function() {
857
+ }, y.valueOf = function() {
747
858
  return this.$d.getTime();
748
- }, D.startOf = function(g, y) {
749
- var k = this, I = !!O.u(y) || y, E = O.p(g), B = function(X, K) {
750
- var Q = O.w(k.$u ? Date.UTC(k.$y, K, X) : new Date(k.$y, K, X), k);
751
- return I ? Q : Q.endOf(p);
752
- }, H = function(X, K) {
753
- return O.w(k.toDate()[X].apply(k.toDate("s"), (I ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(K)), k);
754
- }, R = this.$W, j = this.$M, z = this.$D, G = "set" + (this.$u ? "UTC" : "");
755
- switch (E) {
756
- case x:
757
- return I ? B(1, 0) : B(31, 11);
758
- case M:
759
- return I ? B(1, j) : B(0, j + 1);
760
- case d:
761
- var Z = this.$locale().weekStart || 0, oe = (R < Z ? R + 7 : R) - Z;
762
- return B(I ? z - oe : z + (6 - oe), j);
763
- case p:
764
- case w:
765
- return H(G + "Hours", 0);
859
+ }, y.startOf = function(S, V) {
860
+ var k = this, O = !!D.u(V) || V, _ = D.p(S), E = function(te, G) {
861
+ var J = D.w(k.$u ? Date.UTC(k.$y, G, te) : new Date(k.$y, G, te), k);
862
+ return O ? J : J.endOf(c);
863
+ }, H = function(te, G) {
864
+ return D.w(k.toDate()[te].apply(k.toDate("s"), (O ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(G)), k);
865
+ }, R = this.$W, F = this.$M, q = this.$D, K = "set" + (this.$u ? "UTC" : "");
866
+ switch (_) {
867
+ case h:
868
+ return O ? E(1, 0) : E(31, 11);
869
+ case g:
870
+ return O ? E(1, F) : E(0, F + 1);
871
+ case v:
872
+ var Q = this.$locale().weekStart || 0, ee = (R < Q ? R + 7 : R) - Q;
873
+ return E(O ? q - ee : q + (6 - ee), F);
766
874
  case c:
767
- return H(G + "Minutes", 1);
875
+ case A:
876
+ return H(K + "Hours", 0);
768
877
  case s:
769
- return H(G + "Seconds", 2);
878
+ return H(K + "Minutes", 1);
879
+ case i:
880
+ return H(K + "Seconds", 2);
770
881
  case o:
771
- return H(G + "Milliseconds", 3);
882
+ return H(K + "Milliseconds", 3);
772
883
  default:
773
884
  return this.clone();
774
885
  }
775
- }, D.endOf = function(g) {
776
- return this.startOf(g, !1);
777
- }, D.$set = function(g, y) {
778
- var k, I = O.p(g), E = "set" + (this.$u ? "UTC" : ""), B = (k = {}, k[p] = E + "Date", k[w] = E + "Date", k[M] = E + "Month", k[x] = E + "FullYear", k[c] = E + "Hours", k[s] = E + "Minutes", k[o] = E + "Seconds", k[r] = E + "Milliseconds", k)[I], H = I === p ? this.$D + (y - this.$W) : y;
779
- if (I === M || I === x) {
780
- var R = this.clone().set(w, 1);
781
- R.$d[B](H), R.init(), this.$d = R.set(w, Math.min(this.$D, R.daysInMonth())).$d;
782
- } else B && this.$d[B](H);
886
+ }, y.endOf = function(S) {
887
+ return this.startOf(S, !1);
888
+ }, y.$set = function(S, V) {
889
+ var k, O = D.p(S), _ = "set" + (this.$u ? "UTC" : ""), E = (k = {}, k[c] = _ + "Date", k[A] = _ + "Date", k[g] = _ + "Month", k[h] = _ + "FullYear", k[s] = _ + "Hours", k[i] = _ + "Minutes", k[o] = _ + "Seconds", k[r] = _ + "Milliseconds", k)[O], H = O === c ? this.$D + (V - this.$W) : V;
890
+ if (O === g || O === h) {
891
+ var R = this.clone().set(A, 1);
892
+ R.$d[E](H), R.init(), this.$d = R.set(A, Math.min(this.$D, R.daysInMonth())).$d;
893
+ } else E && this.$d[E](H);
783
894
  return this.init(), this;
784
- }, D.set = function(g, y) {
785
- return this.clone().$set(g, y);
786
- }, D.get = function(g) {
787
- return this[O.p(g)]();
788
- }, D.add = function(g, y) {
789
- var k, I = this;
790
- g = Number(g);
791
- var E = O.p(y), B = function(j) {
792
- var z = C(I);
793
- return O.w(z.date(z.date() + Math.round(j * g)), I);
895
+ }, y.set = function(S, V) {
896
+ return this.clone().$set(S, V);
897
+ }, y.get = function(S) {
898
+ return this[D.p(S)]();
899
+ }, y.add = function(S, V) {
900
+ var k, O = this;
901
+ S = Number(S);
902
+ var _ = D.p(V), E = function(F) {
903
+ var q = u(O);
904
+ return D.w(q.date(q.date() + Math.round(F * S)), O);
794
905
  };
795
- if (E === M) return this.set(M, this.$M + g);
796
- if (E === x) return this.set(x, this.$y + g);
797
- if (E === p) return B(1);
798
- if (E === d) return B(7);
799
- var H = (k = {}, k[s] = i, k[c] = n, k[o] = a, k)[E] || 1, R = this.$d.getTime() + g * H;
800
- return O.w(R, this);
801
- }, D.subtract = function(g, y) {
802
- return this.add(-1 * g, y);
803
- }, D.format = function(g) {
804
- var y = this, k = this.$locale();
805
- if (!this.isValid()) return k.invalidDate || $;
806
- var I = g || "YYYY-MM-DDTHH:mm:ssZ", E = O.z(this), B = this.$H, H = this.$m, R = this.$M, j = k.weekdays, z = k.months, G = k.meridiem, Z = function(K, Q, ee, ae) {
807
- return K && (K[Q] || K(y, I)) || ee[Q].slice(0, ae);
808
- }, oe = function(K) {
809
- return O.s(B % 12 || 12, K, "0");
810
- }, X = G || function(K, Q, ee) {
811
- var ae = K < 12 ? "AM" : "PM";
812
- return ee ? ae.toLowerCase() : ae;
906
+ if (_ === g) return this.set(g, this.$M + S);
907
+ if (_ === h) return this.set(h, this.$y + S);
908
+ if (_ === c) return E(1);
909
+ if (_ === v) return E(7);
910
+ var H = (k = {}, k[i] = l, k[s] = n, k[o] = a, k)[_] || 1, R = this.$d.getTime() + S * H;
911
+ return D.w(R, this);
912
+ }, y.subtract = function(S, V) {
913
+ return this.add(-1 * S, V);
914
+ }, y.format = function(S) {
915
+ var V = this, k = this.$locale();
916
+ if (!this.isValid()) return k.invalidDate || T;
917
+ var O = S || "YYYY-MM-DDTHH:mm:ssZ", _ = D.z(this), E = this.$H, H = this.$m, R = this.$M, F = k.weekdays, q = k.months, K = k.meridiem, Q = function(G, J, ae, ne) {
918
+ return G && (G[J] || G(V, O)) || ae[J].slice(0, ne);
919
+ }, ee = function(G) {
920
+ return D.s(E % 12 || 12, G, "0");
921
+ }, te = K || function(G, J, ae) {
922
+ var ne = G < 12 ? "AM" : "PM";
923
+ return ae ? ne.toLowerCase() : ne;
813
924
  };
814
- return I.replace(m, (function(K, Q) {
815
- return Q || (function(ee) {
816
- switch (ee) {
925
+ return O.replace(w, (function(G, J) {
926
+ return J || (function(ae) {
927
+ switch (ae) {
817
928
  case "YY":
818
- return String(y.$y).slice(-2);
929
+ return String(V.$y).slice(-2);
819
930
  case "YYYY":
820
- return O.s(y.$y, 4, "0");
931
+ return D.s(V.$y, 4, "0");
821
932
  case "M":
822
933
  return R + 1;
823
934
  case "MM":
824
- return O.s(R + 1, 2, "0");
935
+ return D.s(R + 1, 2, "0");
825
936
  case "MMM":
826
- return Z(k.monthsShort, R, z, 3);
937
+ return Q(k.monthsShort, R, q, 3);
827
938
  case "MMMM":
828
- return Z(z, R);
939
+ return Q(q, R);
829
940
  case "D":
830
- return y.$D;
941
+ return V.$D;
831
942
  case "DD":
832
- return O.s(y.$D, 2, "0");
943
+ return D.s(V.$D, 2, "0");
833
944
  case "d":
834
- return String(y.$W);
945
+ return String(V.$W);
835
946
  case "dd":
836
- return Z(k.weekdaysMin, y.$W, j, 2);
947
+ return Q(k.weekdaysMin, V.$W, F, 2);
837
948
  case "ddd":
838
- return Z(k.weekdaysShort, y.$W, j, 3);
949
+ return Q(k.weekdaysShort, V.$W, F, 3);
839
950
  case "dddd":
840
- return j[y.$W];
951
+ return F[V.$W];
841
952
  case "H":
842
- return String(B);
953
+ return String(E);
843
954
  case "HH":
844
- return O.s(B, 2, "0");
955
+ return D.s(E, 2, "0");
845
956
  case "h":
846
- return oe(1);
957
+ return ee(1);
847
958
  case "hh":
848
- return oe(2);
959
+ return ee(2);
849
960
  case "a":
850
- return X(B, H, !0);
961
+ return te(E, H, !0);
851
962
  case "A":
852
- return X(B, H, !1);
963
+ return te(E, H, !1);
853
964
  case "m":
854
965
  return String(H);
855
966
  case "mm":
856
- return O.s(H, 2, "0");
967
+ return D.s(H, 2, "0");
857
968
  case "s":
858
- return String(y.$s);
969
+ return String(V.$s);
859
970
  case "ss":
860
- return O.s(y.$s, 2, "0");
971
+ return D.s(V.$s, 2, "0");
861
972
  case "SSS":
862
- return O.s(y.$ms, 3, "0");
973
+ return D.s(V.$ms, 3, "0");
863
974
  case "Z":
864
- return E;
975
+ return _;
865
976
  }
866
977
  return null;
867
- })(K) || E.replace(":", "");
978
+ })(G) || _.replace(":", "");
868
979
  }));
869
- }, D.utcOffset = function() {
980
+ }, y.utcOffset = function() {
870
981
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
871
- }, D.diff = function(g, y, k) {
872
- var I, E = this, B = O.p(y), H = C(g), R = (H.utcOffset() - this.utcOffset()) * i, j = this - H, z = function() {
873
- return O.m(E, H);
982
+ }, y.diff = function(S, V, k) {
983
+ var O, _ = this, E = D.p(V), H = u(S), R = (H.utcOffset() - this.utcOffset()) * l, F = this - H, q = function() {
984
+ return D.m(_, H);
874
985
  };
875
- switch (B) {
876
- case x:
877
- I = z() / 12;
878
- break;
879
- case M:
880
- I = z();
986
+ switch (E) {
987
+ case h:
988
+ O = q() / 12;
881
989
  break;
882
- case l:
883
- I = z() / 3;
990
+ case g:
991
+ O = q();
884
992
  break;
885
- case d:
886
- I = (j - R) / 6048e5;
993
+ case f:
994
+ O = q() / 3;
887
995
  break;
888
- case p:
889
- I = (j - R) / 864e5;
996
+ case v:
997
+ O = (F - R) / 6048e5;
890
998
  break;
891
999
  case c:
892
- I = j / n;
1000
+ O = (F - R) / 864e5;
893
1001
  break;
894
1002
  case s:
895
- I = j / i;
1003
+ O = F / n;
1004
+ break;
1005
+ case i:
1006
+ O = F / l;
896
1007
  break;
897
1008
  case o:
898
- I = j / a;
1009
+ O = F / a;
899
1010
  break;
900
1011
  default:
901
- I = j;
1012
+ O = F;
902
1013
  }
903
- return k ? I : O.a(I);
904
- }, D.daysInMonth = function() {
905
- return this.endOf(M).$D;
906
- }, D.$locale = function() {
907
- return P[this.$L];
908
- }, D.locale = function(g, y) {
909
- if (!g) return this.$L;
910
- var k = this.clone(), I = v(g, y, !0);
911
- return I && (k.$L = I), k;
912
- }, D.clone = function() {
913
- return O.w(this.$d, this);
914
- }, D.toDate = function() {
1014
+ return k ? O : D.a(O);
1015
+ }, y.daysInMonth = function() {
1016
+ return this.endOf(g).$D;
1017
+ }, y.$locale = function() {
1018
+ return L[this.$L];
1019
+ }, y.locale = function(S, V) {
1020
+ if (!S) return this.$L;
1021
+ var k = this.clone(), O = $(S, V, !0);
1022
+ return O && (k.$L = O), k;
1023
+ }, y.clone = function() {
1024
+ return D.w(this.$d, this);
1025
+ }, y.toDate = function() {
915
1026
  return new Date(this.valueOf());
916
- }, D.toJSON = function() {
1027
+ }, y.toJSON = function() {
917
1028
  return this.isValid() ? this.toISOString() : null;
918
- }, D.toISOString = function() {
1029
+ }, y.toISOString = function() {
919
1030
  return this.$d.toISOString();
920
- }, D.toString = function() {
1031
+ }, y.toString = function() {
921
1032
  return this.$d.toUTCString();
922
- }, b;
923
- })(), T = _.prototype;
924
- return C.prototype = T, [["$ms", r], ["$s", o], ["$m", s], ["$H", c], ["$W", p], ["$M", M], ["$y", x], ["$D", w]].forEach((function(b) {
925
- T[b[1]] = function(D) {
926
- return this.$g(D, b[0], b[1]);
1033
+ }, p;
1034
+ })(), B = I.prototype;
1035
+ return u.prototype = B, [["$ms", r], ["$s", o], ["$m", i], ["$H", s], ["$W", c], ["$M", g], ["$y", h], ["$D", A]].forEach((function(p) {
1036
+ B[p[1]] = function(y) {
1037
+ return this.$g(y, p[0], p[1]);
927
1038
  };
928
- })), C.extend = function(b, D) {
929
- return b.$i || (b(D, _, C), b.$i = !0), C;
930
- }, C.locale = v, C.isDayjs = S, C.unix = function(b) {
931
- return C(1e3 * b);
932
- }, C.en = P[L], C.Ls = P, C.p = {}, C;
1039
+ })), u.extend = function(p, y) {
1040
+ return p.$i || (p(y, I, u), p.$i = !0), u;
1041
+ }, u.locale = $, u.isDayjs = M, u.unix = function(p) {
1042
+ return u(1e3 * p);
1043
+ }, u.en = L[Y], u.Ls = L, u.p = {}, u;
933
1044
  }));
934
- })(ge)), ge.exports;
935
- }
936
- var ha = fa();
937
- const ie = /* @__PURE__ */ kt(ha);
938
- function ma(e) {
939
- return (e.match(/YYYY|MM?|DD?|\[[^\]]*\]|./g) ?? []).map((t) => ({
940
- unit: t === "YYYY" ? "year" : /^M+$/.test(t) ? "month" : /^D+$/.test(t) ? "day" : void 0,
941
- text: t.startsWith("[") ? t.slice(1, -1) : t
942
- }));
943
- }
944
- function Ie(e) {
945
- if (e.year === void 0 || e.month === void 0 || e.day === void 0)
946
- return;
947
- const t = ie().date(1).year(Math.max(1, Math.min(9999, e.year))).month(Math.max(1, Math.min(12, e.month)) - 1);
948
- return t.date(Math.max(1, Math.min(e.day, t.daysInMonth()))).startOf("day");
1045
+ })(De)), De.exports;
949
1046
  }
950
- function va(e, t) {
951
- const { dates: a, range: i, draft: n, disabled: r, readonly: o } = t, s = a.map((l) => (l == null ? void 0 : l.format("YYYY-MM-DD")) ?? "").join("/");
952
- s !== n.source && (n.source = s, n.parts = a.map((l) => l ? { year: l.year(), month: l.month() + 1, day: l.date() } : {}));
953
- const c = (l, x, w) => {
954
- var m;
955
- const $ = (m = n.parts)[l] ?? (m[l] = {});
956
- $[x] = w;
957
- const u = Ie($);
958
- if (u && !t.disabledDate(u)) {
959
- const V = Array.from({ length: i ? 2 : 1 }, (A, Y) => Ie(n.parts[Y] ?? {}));
960
- V[l] = u, V.every((A) => !A || !t.disabledDate(A)) && t.change(V);
961
- }
962
- w === void 0 && a[l] && t.change([]), t.invalidate();
963
- }, p = (l, x) => {
964
- var u;
965
- const w = l.closest(".dsh-date-input"), $ = Array.from((w == null ? void 0 : w.querySelectorAll("[role=spinbutton]")) ?? []);
966
- (u = $[$.indexOf(l) + x]) == null || u.focus();
967
- }, d = Array.from({ length: i ? 2 : 1 }, (l, x) => e("div", { className: "dsh-date-input__field", key: x }, ...ma(t.format).map(({ unit: w, text: $ }, u) => {
968
- var P;
969
- if (!w)
970
- return e("span", { key: u, className: "dsh-date-input__literal", "aria-hidden": !0 }, $);
971
- const m = (P = n.parts)[x] ?? (P[x] = {}), V = m[w], A = w === "year" ? 9999 : w === "month" ? 12 : Ie({ year: m.year ?? 2e3, month: m.month ?? 1, day: 1 }).daysInMonth(), Y = `${x}-${w}`, L = (f, S) => {
972
- if (r || o || !/^\d+$/.test(f))
973
- return;
974
- const v = (n.target === Y ? n.buffer : "") + f, C = Number(v) > A ? f : v;
975
- n.target = Y, n.buffer = C, Number(C) > 0 && c(x, w, Math.min(A, Number(C))), (C.length >= (w === "year" ? 4 : 2) || +(C + "0") > A) && (n.buffer = "", p(S, 1));
976
- };
977
- return e("span", {
978
- key: u,
979
- className: "dsh-date-input__segment",
980
- role: "spinbutton",
981
- tabIndex: r ? -1 : 0,
982
- contentEditable: !r && !o,
983
- suppressContentEditableWarning: !0,
984
- spellCheck: !1,
985
- inputMode: "numeric",
986
- "aria-label": `${w}, ${t.label}${i ? x === 0 ? ", start" : ", end" : ""}`,
987
- "aria-valuenow": V,
988
- "aria-valuemin": 1,
989
- "aria-valuemax": A,
990
- "aria-disabled": r || void 0,
991
- "aria-readonly": o || void 0,
992
- "data-placeholder": V === void 0 || void 0,
993
- onFocus: () => {
994
- n.target = Y, n.buffer = "";
995
- },
996
- onClick: (f) => f.stopPropagation(),
997
- onBeforeInput: (f) => {
998
- var S;
999
- f.preventDefault(), L(f.data ?? ((S = f.nativeEvent) == null ? void 0 : S.data) ?? "", f.target);
1000
- },
1001
- onPaste: (f) => {
1002
- var S;
1003
- f.preventDefault(), L(((S = f.clipboardData) == null ? void 0 : S.getData("text")) ?? "", f.target);
1004
- },
1005
- onKeyDown: (f) => {
1006
- if (f.altKey && f.key === "ArrowDown") {
1007
- f.preventDefault(), t.toggle();
1008
- return;
1009
- }
1010
- if (f.key === "ArrowLeft" || f.key === "ArrowRight") {
1011
- f.preventDefault(), p(f.target, f.key === "ArrowLeft" ? -1 : 1);
1012
- return;
1013
- }
1014
- if (!(r || o)) {
1015
- if (/^\d$/.test(f.key)) {
1016
- f.preventDefault(), L(f.key, f.target);
1017
- return;
1018
- }
1019
- if (f.key === "Backspace" || f.key === "Delete") {
1020
- f.preventDefault(), n.buffer = "", c(x, w, void 0);
1021
- return;
1022
- }
1023
- if (["ArrowUp", "ArrowDown", "Home", "End"].includes(f.key)) {
1024
- f.preventDefault(), n.buffer = "";
1025
- const S = f.key === "Home" ? 1 : f.key === "End" ? A : (V ?? 0) + (f.key === "ArrowUp" ? 1 : -1);
1026
- c(x, w, S < 1 ? A : S > A ? 1 : S);
1027
- }
1028
- }
1029
- }
1030
- }, V === void 0 ? w === "year" ? "yyyy" : w === "month" ? "mm" : "dd" : String(V));
1031
- }))), M = [d[0]];
1032
- return i && M.push(e("span", { className: "dsh-date-input__separator", "aria-hidden": !0 }, "-"), d[1]), M.push(e("button", {
1033
- type: "button",
1034
- className: "dsh-date-input__trigger",
1035
- disabled: r,
1036
- "aria-label": "Calendar",
1037
- "aria-haspopup": "dialog",
1038
- "aria-expanded": t.open,
1039
- onClick: (l) => {
1040
- l.stopPropagation(), t.toggle();
1041
- }
1042
- }, e("span", { className: "dsh-date-input__indicator" }, e("svg", { viewBox: "0 0 13 14", width: 14, height: 14, fill: "none", "aria-hidden": !0 }, e("path", { fill: "currentColor", fillRule: "evenodd", clipRule: "evenodd", d: "M3.75 4.5A.75.75 0 0 1 3 3.75v-.748a1.5 1.5 0 0 0-1.5 1.5v1h10v-1a1.5 1.5 0 0 0-1.5-1.5v.75a.75.75 0 1 1-1.5 0v-.75h-4v.747a.75.75 0 0 1-.75.75ZM8.5 1.501h-4V.75a.75.75 0 0 0-1.5 0v.752a3 3 0 0 0-3 3v6a3 3 0 0 0 3 3h7a3 3 0 0 0 3-3v-6a3 3 0 0 0-3-3v-.75a.75.75 0 0 0-1.5 0v.75Zm-7 5.5v3.5a1.5 1.5 0 0 0 1.5 1.5h7a1.5 1.5 0 0 0 1.5-1.5v-3.5h-10Z" }))))), t.allowClear && a.some(Boolean) && !o && !r && M.push(e("button", { type: "button", className: "dsh-date-input__clear", "aria-label": "Clear", onClick: (l) => {
1043
- l.stopPropagation(), t.change([]);
1044
- } }, "×")), e("div", {
1045
- className: "dsh-date-input",
1046
- role: "group",
1047
- "aria-label": t.label,
1048
- "data-disabled": r || void 0,
1049
- onBlur: (l) => {
1050
- (!(l.relatedTarget instanceof Node) || !l.currentTarget.contains(l.relatedTarget)) && (n.source = "\0", n.buffer = "", t.invalidate());
1051
- },
1052
- onClick: () => {
1053
- !r && !o && t.toggle();
1054
- }
1055
- }, ...M);
1056
- }
1057
- var be = { exports: {} }, pa = be.exports, nt;
1058
- function ga() {
1059
- return nt || (nt = 1, (function(e, t) {
1060
- (function(a, i) {
1061
- e.exports = i();
1062
- })(pa, (function() {
1063
- var a = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" }, i = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, n = /\d/, r = /\d\d/, o = /\d\d?/, s = /\d*[^-_:/,()\s\d]+/, c = {}, p = function(u) {
1064
- return (u = +u) + (u > 68 ? 1900 : 2e3);
1065
- }, d = function(u) {
1066
- return function(m) {
1067
- this[u] = +m;
1047
+ var xa = Aa();
1048
+ const ie = /* @__PURE__ */ Ct(xa);
1049
+ var Se = { exports: {} }, Ca = Se.exports, st;
1050
+ function $a() {
1051
+ return st || (st = 1, (function(e, t) {
1052
+ (function(a, l) {
1053
+ e.exports = l();
1054
+ })(Ca, (function() {
1055
+ var a = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" }, l = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, n = /\d/, r = /\d\d/, o = /\d\d?/, i = /\d*[^-_:/,()\s\d]+/, s = {}, c = function(d) {
1056
+ return (d = +d) + (d > 68 ? 1900 : 2e3);
1057
+ }, v = function(d) {
1058
+ return function(w) {
1059
+ this[d] = +w;
1068
1060
  };
1069
- }, M = [/[+-]\d\d:?(\d\d)?|Z/, function(u) {
1070
- (this.zone || (this.zone = {})).offset = (function(m) {
1071
- if (!m || m === "Z") return 0;
1072
- var V = m.match(/([+-]|\d\d)/g), A = 60 * V[1] + (+V[2] || 0);
1073
- return A === 0 ? 0 : V[0] === "+" ? -A : A;
1074
- })(u);
1075
- }], l = function(u) {
1076
- var m = c[u];
1077
- return m && (m.indexOf ? m : m.s.concat(m.f));
1078
- }, x = function(u, m) {
1079
- var V, A = c.meridiem;
1080
- if (A) {
1081
- for (var Y = 1; Y <= 24; Y += 1) if (u.indexOf(A(Y, 0, m)) > -1) {
1082
- V = Y > 12;
1061
+ }, g = [/[+-]\d\d:?(\d\d)?|Z/, function(d) {
1062
+ (this.zone || (this.zone = {})).offset = (function(w) {
1063
+ if (!w || w === "Z") return 0;
1064
+ var C = w.match(/([+-]|\d\d)/g), b = 60 * C[1] + (+C[2] || 0);
1065
+ return b === 0 ? 0 : C[0] === "+" ? -b : b;
1066
+ })(d);
1067
+ }], f = function(d) {
1068
+ var w = s[d];
1069
+ return w && (w.indexOf ? w : w.s.concat(w.f));
1070
+ }, h = function(d, w) {
1071
+ var C, b = s.meridiem;
1072
+ if (b) {
1073
+ for (var P = 1; P <= 24; P += 1) if (d.indexOf(b(P, 0, w)) > -1) {
1074
+ C = P > 12;
1083
1075
  break;
1084
1076
  }
1085
- } else V = u === (m ? "pm" : "PM");
1086
- return V;
1087
- }, w = { A: [s, function(u) {
1088
- this.afternoon = x(u, !1);
1089
- }], a: [s, function(u) {
1090
- this.afternoon = x(u, !0);
1091
- }], Q: [n, function(u) {
1092
- this.month = 3 * (u - 1) + 1;
1093
- }], S: [n, function(u) {
1094
- this.milliseconds = 100 * +u;
1095
- }], SS: [r, function(u) {
1096
- this.milliseconds = 10 * +u;
1097
- }], SSS: [/\d{3}/, function(u) {
1098
- this.milliseconds = +u;
1099
- }], s: [o, d("seconds")], ss: [o, d("seconds")], m: [o, d("minutes")], mm: [o, d("minutes")], H: [o, d("hours")], h: [o, d("hours")], HH: [o, d("hours")], hh: [o, d("hours")], D: [o, d("day")], DD: [r, d("day")], Do: [s, function(u) {
1100
- var m = c.ordinal, V = u.match(/\d+/);
1101
- if (this.day = V[0], m) for (var A = 1; A <= 31; A += 1) m(A).replace(/\[|\]/g, "") === u && (this.day = A);
1102
- }], w: [o, d("week")], ww: [r, d("week")], M: [o, d("month")], MM: [r, d("month")], MMM: [s, function(u) {
1103
- var m = l("months"), V = (l("monthsShort") || m.map((function(A) {
1104
- return A.slice(0, 3);
1105
- }))).indexOf(u) + 1;
1106
- if (V < 1) throw new Error();
1107
- this.month = V % 12 || V;
1108
- }], MMMM: [s, function(u) {
1109
- var m = l("months").indexOf(u) + 1;
1110
- if (m < 1) throw new Error();
1111
- this.month = m % 12 || m;
1112
- }], Y: [/[+-]?\d+/, d("year")], YY: [r, function(u) {
1113
- this.year = p(u);
1114
- }], YYYY: [/\d{4}/, d("year")], Z: M, ZZ: M };
1115
- function $(u) {
1116
- var m, V;
1117
- m = u, V = c && c.formats;
1118
- for (var A = (u = m.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, (function(C, O, _) {
1119
- var T = _ && _.toUpperCase();
1120
- return O || V[_] || a[_] || V[T].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (function(b, D, g) {
1121
- return D || g.slice(1);
1077
+ } else C = d === (w ? "pm" : "PM");
1078
+ return C;
1079
+ }, A = { A: [i, function(d) {
1080
+ this.afternoon = h(d, !1);
1081
+ }], a: [i, function(d) {
1082
+ this.afternoon = h(d, !0);
1083
+ }], Q: [n, function(d) {
1084
+ this.month = 3 * (d - 1) + 1;
1085
+ }], S: [n, function(d) {
1086
+ this.milliseconds = 100 * +d;
1087
+ }], SS: [r, function(d) {
1088
+ this.milliseconds = 10 * +d;
1089
+ }], SSS: [/\d{3}/, function(d) {
1090
+ this.milliseconds = +d;
1091
+ }], s: [o, v("seconds")], ss: [o, v("seconds")], m: [o, v("minutes")], mm: [o, v("minutes")], H: [o, v("hours")], h: [o, v("hours")], HH: [o, v("hours")], hh: [o, v("hours")], D: [o, v("day")], DD: [r, v("day")], Do: [i, function(d) {
1092
+ var w = s.ordinal, C = d.match(/\d+/);
1093
+ if (this.day = C[0], w) for (var b = 1; b <= 31; b += 1) w(b).replace(/\[|\]/g, "") === d && (this.day = b);
1094
+ }], w: [o, v("week")], ww: [r, v("week")], M: [o, v("month")], MM: [r, v("month")], MMM: [i, function(d) {
1095
+ var w = f("months"), C = (f("monthsShort") || w.map((function(b) {
1096
+ return b.slice(0, 3);
1097
+ }))).indexOf(d) + 1;
1098
+ if (C < 1) throw new Error();
1099
+ this.month = C % 12 || C;
1100
+ }], MMMM: [i, function(d) {
1101
+ var w = f("months").indexOf(d) + 1;
1102
+ if (w < 1) throw new Error();
1103
+ this.month = w % 12 || w;
1104
+ }], Y: [/[+-]?\d+/, v("year")], YY: [r, function(d) {
1105
+ this.year = c(d);
1106
+ }], YYYY: [/\d{4}/, v("year")], Z: g, ZZ: g };
1107
+ function T(d) {
1108
+ var w, C;
1109
+ w = d, C = s && s.formats;
1110
+ for (var b = (d = w.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, (function(u, D, I) {
1111
+ var B = I && I.toUpperCase();
1112
+ return D || C[I] || a[I] || C[B].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (function(p, y, S) {
1113
+ return y || S.slice(1);
1122
1114
  }));
1123
- }))).match(i), Y = A.length, L = 0; L < Y; L += 1) {
1124
- var P = A[L], f = w[P], S = f && f[0], v = f && f[1];
1125
- A[L] = v ? { regex: S, parser: v } : P.replace(/^\[|\]$/g, "");
1115
+ }))).match(l), P = b.length, Y = 0; Y < P; Y += 1) {
1116
+ var L = b[Y], x = A[L], M = x && x[0], $ = x && x[1];
1117
+ b[Y] = $ ? { regex: M, parser: $ } : L.replace(/^\[|\]$/g, "");
1126
1118
  }
1127
- return function(C) {
1128
- for (var O = {}, _ = 0, T = 0; _ < Y; _ += 1) {
1129
- var b = A[_];
1130
- if (typeof b == "string") T += b.length;
1119
+ return function(u) {
1120
+ for (var D = {}, I = 0, B = 0; I < P; I += 1) {
1121
+ var p = b[I];
1122
+ if (typeof p == "string") B += p.length;
1131
1123
  else {
1132
- var D = b.regex, g = b.parser, y = C.slice(T), k = D.exec(y)[0];
1133
- g.call(O, k), C = C.replace(k, "");
1124
+ var y = p.regex, S = p.parser, V = u.slice(B), k = y.exec(V)[0];
1125
+ S.call(D, k), u = u.replace(k, "");
1134
1126
  }
1135
1127
  }
1136
- return (function(I) {
1137
- var E = I.afternoon;
1138
- if (E !== void 0) {
1139
- var B = I.hours;
1140
- E ? B < 12 && (I.hours += 12) : B === 12 && (I.hours = 0), delete I.afternoon;
1128
+ return (function(O) {
1129
+ var _ = O.afternoon;
1130
+ if (_ !== void 0) {
1131
+ var E = O.hours;
1132
+ _ ? E < 12 && (O.hours += 12) : E === 12 && (O.hours = 0), delete O.afternoon;
1141
1133
  }
1142
- })(O), O;
1134
+ })(D), D;
1143
1135
  };
1144
1136
  }
1145
- return function(u, m, V) {
1146
- V.p.customParseFormat = !0, u && u.parseTwoDigitYear && (p = u.parseTwoDigitYear);
1147
- var A = m.prototype, Y = A.parse;
1148
- A.parse = function(L) {
1149
- var P = L.date, f = L.utc, S = L.args;
1150
- this.$u = f;
1151
- var v = S[1];
1152
- if (typeof v == "string") {
1153
- var C = S[2] === !0, O = S[3] === !0, _ = C || O, T = S[2];
1154
- O && (T = S[2]), c = this.$locale(), !C && T && (c = V.Ls[T]), this.$d = (function(y, k, I, E) {
1137
+ return function(d, w, C) {
1138
+ C.p.customParseFormat = !0, d && d.parseTwoDigitYear && (c = d.parseTwoDigitYear);
1139
+ var b = w.prototype, P = b.parse;
1140
+ b.parse = function(Y) {
1141
+ var L = Y.date, x = Y.utc, M = Y.args;
1142
+ this.$u = x;
1143
+ var $ = M[1];
1144
+ if (typeof $ == "string") {
1145
+ var u = M[2] === !0, D = M[3] === !0, I = u || D, B = M[2];
1146
+ D && (B = M[2]), s = this.$locale(), !u && B && (s = C.Ls[B]), this.$d = (function(V, k, O, _) {
1155
1147
  try {
1156
- if (["x", "X"].indexOf(k) > -1) return new Date((k === "X" ? 1e3 : 1) * y);
1157
- var B = $(k)(y), H = B.year, R = B.month, j = B.day, z = B.hours, G = B.minutes, Z = B.seconds, oe = B.milliseconds, X = B.zone, K = B.week, Q = /* @__PURE__ */ new Date(), ee = j || (H || R ? 1 : Q.getDate()), ae = H || Q.getFullYear(), ve = 0;
1158
- H && !R || (ve = R > 0 ? R - 1 : Q.getMonth());
1159
- var pe, Pe = z || 0, Te = G || 0, Ve = Z || 0, Oe = oe || 0;
1160
- return X ? new Date(Date.UTC(ae, ve, ee, Pe, Te, Ve, Oe + 60 * X.offset * 1e3)) : I ? new Date(Date.UTC(ae, ve, ee, Pe, Te, Ve, Oe)) : (pe = new Date(ae, ve, ee, Pe, Te, Ve, Oe), K && (pe = E(pe).week(K).toDate()), pe);
1148
+ if (["x", "X"].indexOf(k) > -1) return new Date((k === "X" ? 1e3 : 1) * V);
1149
+ var E = T(k)(V), H = E.year, R = E.month, F = E.day, q = E.hours, K = E.minutes, Q = E.seconds, ee = E.milliseconds, te = E.zone, G = E.week, J = /* @__PURE__ */ new Date(), ae = F || (H || R ? 1 : J.getDate()), ne = H || J.getFullYear(), be = 0;
1150
+ H && !R || (be = R > 0 ? R - 1 : J.getMonth());
1151
+ var ye, Ye = q || 0, Ie = K || 0, Be = Q || 0, Le = ee || 0;
1152
+ return te ? new Date(Date.UTC(ne, be, ae, Ye, Ie, Be, Le + 60 * te.offset * 1e3)) : O ? new Date(Date.UTC(ne, be, ae, Ye, Ie, Be, Le)) : (ye = new Date(ne, be, ae, Ye, Ie, Be, Le), G && (ye = _(ye).week(G).toDate()), ye);
1161
1153
  } catch {
1162
1154
  return /* @__PURE__ */ new Date("");
1163
1155
  }
1164
- })(P, v, f, V), this.init(), T && T !== !0 && (this.$L = this.locale(T).$L), _ && P != this.format(v) && (this.$d = /* @__PURE__ */ new Date("")), c = {};
1165
- } else if (v instanceof Array) for (var b = v.length, D = 1; D <= b; D += 1) {
1166
- S[1] = v[D - 1];
1167
- var g = V.apply(this, S);
1168
- if (g.isValid()) {
1169
- this.$d = g.$d, this.$L = g.$L, this.init();
1156
+ })(L, $, x, C), this.init(), B && B !== !0 && (this.$L = this.locale(B).$L), I && L != this.format($) && (this.$d = /* @__PURE__ */ new Date("")), s = {};
1157
+ } else if ($ instanceof Array) for (var p = $.length, y = 1; y <= p; y += 1) {
1158
+ M[1] = $[y - 1];
1159
+ var S = C.apply(this, M);
1160
+ if (S.isValid()) {
1161
+ this.$d = S.$d, this.$L = S.$L, this.init();
1170
1162
  break;
1171
1163
  }
1172
- D === b && (this.$d = /* @__PURE__ */ new Date(""));
1164
+ y === p && (this.$d = /* @__PURE__ */ new Date(""));
1173
1165
  }
1174
- else Y.call(this, L);
1166
+ else P.call(this, Y);
1175
1167
  };
1176
1168
  };
1177
1169
  }));
1178
- })(be)), be.exports;
1170
+ })(Se)), Se.exports;
1179
1171
  }
1180
- var ba = ga();
1181
- const ya = /* @__PURE__ */ kt(ba);
1182
- ie.extend(ya);
1183
- function ue(e, t) {
1172
+ var Pa = $a();
1173
+ const _a = /* @__PURE__ */ Ct(Pa);
1174
+ ie.extend(_a);
1175
+ function de(e, t) {
1184
1176
  if (e == null || e === "")
1185
1177
  return;
1186
- const a = typeof e == "string" && t ? ie(e, t, !0) : void 0, i = a != null && a.isValid() ? a : ie(e);
1187
- return i.isValid() ? i.startOf("day") : void 0;
1178
+ const a = typeof e == "string" && t ? ie(e, t, !0) : void 0, l = a != null && a.isValid() ? a : ie(e);
1179
+ return l.isValid() ? l.startOf("day") : void 0;
1188
1180
  }
1189
- function rt(e, t) {
1190
- const a = e.startOf("month"), i = (a.day() - t + 7) % 7, n = a.subtract(i, "day"), r = Math.ceil((i + a.daysInMonth()) / 7) * 7;
1191
- return Array.from({ length: r }, (o, s) => n.add(s, "day"));
1181
+ function ut(e, t) {
1182
+ const a = e.startOf("month"), l = (a.day() - t + 7) % 7, n = a.subtract(l, "day"), r = Math.ceil((l + a.daysInMonth()) / 7) * 7;
1183
+ return Array.from({ length: r }, (o, i) => n.add(i, "day"));
1192
1184
  }
1193
- function wa(e, t, a, i) {
1194
- const n = e.startOf("month"), r = n.add(a ? 2 : 1, "month").subtract(1, "day"), o = t.isBefore(n, "day") ? n : t.isAfter(r, "day") ? r : t, s = r.diff(n, "day");
1195
- for (let c = 0; c <= s; c++) {
1196
- const p = o.add(c, "day");
1197
- if (!p.isAfter(r, "day") && !i(p))
1198
- return p;
1199
- const d = o.subtract(c, "day");
1200
- if (c && !d.isBefore(n, "day") && !i(d))
1201
- return d;
1185
+ function Ta(e, t, a, l) {
1186
+ const n = e.startOf("month"), r = n.add(a ? 2 : 1, "month").subtract(1, "day"), o = t.isBefore(n, "day") ? n : t.isAfter(r, "day") ? r : t, i = r.diff(n, "day");
1187
+ for (let s = 0; s <= i; s++) {
1188
+ const c = o.add(s, "day");
1189
+ if (!c.isAfter(r, "day") && !l(c))
1190
+ return c;
1191
+ const v = o.subtract(s, "day");
1192
+ if (s && !v.isBefore(n, "day") && !l(v))
1193
+ return v;
1202
1194
  }
1203
1195
  }
1204
- function Mt(e, t) {
1196
+ function $t(e, t) {
1205
1197
  return e.isAfter(t, "day") ? [t, e] : [e, t];
1206
1198
  }
1207
- function Da(e) {
1199
+ function Pt(e, t, a) {
1200
+ if (t.isBefore(e, "day"))
1201
+ return !1;
1202
+ if (!a)
1203
+ return !0;
1204
+ if (a(e, "start") || a(t, "end"))
1205
+ return !1;
1206
+ for (let l = e.add(1, "day"); l.isBefore(t, "day"); l = l.add(1, "day"))
1207
+ if (a(l, "start") && a(l, "end"))
1208
+ return !1;
1209
+ return !0;
1210
+ }
1211
+ function Va(e) {
1208
1212
  return /^(en-US|en-CA|ja|ko|zh-TW|zh-HK)/i.test(e) ? 0 : 1;
1209
1213
  }
1210
- function Sa(e, t, a, i = !1) {
1214
+ function Oa(e, t, a, l = !1) {
1211
1215
  switch (t) {
1212
1216
  case "ArrowLeft":
1213
1217
  return e.subtract(1, "day");
@@ -1222,95 +1226,223 @@ function Sa(e, t, a, i = !1) {
1222
1226
  case "End":
1223
1227
  return e.add(6 - (e.day() - a + 7) % 7, "day");
1224
1228
  case "PageUp":
1225
- return e.subtract(1, i ? "year" : "month");
1229
+ return e.subtract(1, l ? "year" : "month");
1226
1230
  case "PageDown":
1227
- return e.add(1, i ? "year" : "month");
1231
+ return e.add(1, l ? "year" : "month");
1228
1232
  default:
1229
1233
  return;
1230
1234
  }
1231
1235
  }
1232
- const ka = {
1236
+ const Ya = {
1233
1237
  previous: "M10.53 2.97a.75.75 0 0 1 0 1.06L6.56 8l3.97 3.97a.75.75 0 1 1-1.06 1.06l-4.5-4.5a.75.75 0 0 1 0-1.06l4.5-4.5a.75.75 0 0 1 1.06 0",
1234
1238
  next: "M5.47 2.97a.75.75 0 0 1 1.06 0l4.5 4.5a.75.75 0 0 1 0 1.06l-4.5 4.5a.75.75 0 1 1-1.06-1.06L9.44 8 5.47 4.03a.75.75 0 0 1 0-1.06Z"
1235
1239
  };
1236
- function Ma(e, t, a) {
1237
- const { month: i, range: n, locale: r, firstDay: o, yearOpen: s } = t, c = i.add(1, "month"), p = new Intl.DateTimeFormat(r, { month: "long", year: "numeric" }), d = p.format(i.toDate()), M = new Intl.DateTimeFormat(r, { weekday: "short" }), l = new Intl.DateTimeFormat(r, { dateStyle: "full" }), x = (f) => e("svg", { viewBox: "0 0 16 16", width: 16, height: 16, fill: "none", "aria-hidden": "true" }, e("path", { d: ka[f], fill: "currentColor", fillRule: "evenodd", clipRule: "evenodd" })), w = (f) => e("button", { type: "button", className: "dsh-calendar__nav", "aria-label": f < 0 ? "Previous" : "Next", onClick: () => a.month(i.add(f * (n ? 2 : 1), "month")) }, x(f < 0 ? "previous" : "next")), $ = t.anchor && t.hover ? Mt(t.anchor, t.hover) : t.selected, u = wa(i, t.focused, n, t.disabled), m = Array.from({ length: n ? 2 : 1 }, (f, S) => {
1238
- const v = i.add(S, "month"), C = rt(v, o), O = Array.from({ length: C.length / 7 }, (_, T) => e("tr", { key: T }, ...C.slice(T * 7, T * 7 + 7).map((b) => {
1239
- var B, H, R;
1240
- const D = b.month() !== v.month(), g = t.disabled(b), y = !D && n && !!((B = $[0]) != null && B.isSame(b, "day")), k = !D && n && !!((H = $[1]) != null && H.isSame(b, "day")), I = !D && (n ? !!($[0] && $[1] && !b.isBefore($[0], "day") && !b.isAfter($[1], "day")) : !!((R = t.selected[0]) != null && R.isSame(b, "day"))), E = !D && !g && !!(u != null && u.isSame(b, "day"));
1241
- return e("td", { key: b.format("YYYY-MM-DD"), role: "gridcell", "aria-selected": I, "aria-disabled": g || void 0 }, e("button", {
1240
+ function Ia(e, t, a) {
1241
+ const { month: l, range: n, locale: r, firstDay: o, yearOpen: i } = t, s = l.add(1, "month"), c = new Intl.DateTimeFormat(r, { month: "long", year: "numeric" }), v = c.format(l.toDate()), g = new Intl.DateTimeFormat(r, { weekday: "short" }), f = new Intl.DateTimeFormat(r, { dateStyle: "full" }), h = (x) => e("svg", { viewBox: "0 0 16 16", width: 16, height: 16, fill: "none", "aria-hidden": "true" }, e("path", { d: Ya[x], fill: "currentColor", fillRule: "evenodd", clipRule: "evenodd" })), A = (x) => e("button", { type: "button", className: "dsh-calendar__nav", "aria-label": x < 0 ? "Previous" : "Next", onClick: () => a.month(l.add(x * (n ? 2 : 1), "month")) }, h(x < 0 ? "previous" : "next")), T = t.anchor && t.hover ? $t(t.anchor, t.hover) : t.selected, d = Ta(l, t.focused, n, t.disabled), w = Array.from({ length: n ? 2 : 1 }, (x, M) => {
1242
+ const $ = l.add(M, "month"), u = ut($, o), D = Array.from({ length: u.length / 7 }, (I, B) => e("tr", { key: B }, ...u.slice(B * 7, B * 7 + 7).map((p) => {
1243
+ var E, H, R;
1244
+ const y = p.month() !== $.month(), S = t.disabled(p), V = !y && n && !!((E = T[0]) != null && E.isSame(p, "day")), k = !y && n && !!((H = T[1]) != null && H.isSame(p, "day")), O = !y && (n ? !!(T[0] && T[1] && !p.isBefore(T[0], "day") && !p.isAfter(T[1], "day")) : !!((R = t.selected[0]) != null && R.isSame(p, "day"))), _ = !y && !S && !!(d != null && d.isSame(p, "day"));
1245
+ return e("td", { key: p.format("YYYY-MM-DD"), role: "gridcell", "aria-selected": O, "aria-disabled": S || void 0 }, e("button", {
1242
1246
  type: "button",
1243
1247
  className: "dsh-calendar__cell arco-picker-cell",
1244
- "data-date": b.format("YYYY-MM-DD"),
1245
- "data-outside-month": D || void 0,
1246
- "data-selected": I || void 0,
1247
- "data-selection-start": y || void 0,
1248
+ "data-date": p.format("YYYY-MM-DD"),
1249
+ "data-outside-month": y || void 0,
1250
+ "data-selected": O || void 0,
1251
+ "data-selection-start": V || void 0,
1248
1252
  "data-selection-end": k || void 0,
1249
- "data-today": !D && b.isSame(ie(), "day") || void 0,
1250
- "data-disabled": g || void 0,
1251
- "aria-label": l.format(b.toDate()),
1252
- tabIndex: E && !s ? 0 : -1,
1253
- disabled: g,
1254
- onClick: () => a.select(b),
1255
- onMouseEnter: (j) => {
1256
- a.hover(b), t.anchor && !g && (a.focus(b), j.currentTarget.focus({ preventScroll: !0 }));
1253
+ "data-today": !y && p.isSame(ie(), "day") || void 0,
1254
+ "data-disabled": S || void 0,
1255
+ "aria-label": f.format(p.toDate()),
1256
+ tabIndex: _ && !i ? 0 : -1,
1257
+ disabled: S,
1258
+ onClick: () => a.select(p),
1259
+ onMouseEnter: (F) => {
1260
+ a.hover(p), t.anchor && !S && (a.focus(p), F.currentTarget.focus({ preventScroll: !0 }));
1257
1261
  },
1258
- onFocus: () => a.focus(b),
1259
- onKeyDown: (j) => {
1260
- const z = Sa(b, j.key, o, j.shiftKey);
1261
- z && (j.preventDefault(), !t.disabled(z) && (a.focus(z), !z.isSame(i, "month") && !(n && z.isSame(c, "month")) && a.month(z.startOf("month")), requestAnimationFrame(() => {
1262
- var Z;
1263
- const G = j.target.closest(".dsh-calendar");
1264
- (Z = G == null ? void 0 : G.querySelector(`[data-date="${z.format("YYYY-MM-DD")}"]:not([data-outside-month])`)) == null || Z.focus();
1262
+ onFocus: () => a.focus(p),
1263
+ onKeyDown: (F) => {
1264
+ const q = Oa(p, F.key, o, F.shiftKey);
1265
+ q && (F.preventDefault(), !t.disabled(q) && (a.focus(q), !q.isSame(l, "month") && !(n && q.isSame(s, "month")) && a.month(q.startOf("month")), requestAnimationFrame(() => {
1266
+ var Q;
1267
+ const K = F.target.closest(".dsh-calendar");
1268
+ (Q = K == null ? void 0 : K.querySelector(`[data-date="${q.format("YYYY-MM-DD")}"]:not([data-outside-month])`)) == null || Q.focus();
1265
1269
  })));
1266
1270
  }
1267
- }, n ? e("span", { className: "dsh-calendar__cell-button" }, b.date()) : String(b.date())));
1271
+ }, n ? e("span", { className: "dsh-calendar__cell-button" }, p.date()) : String(p.date())));
1268
1272
  })));
1269
1273
  return e(
1270
1274
  "table",
1271
- { className: "dsh-calendar__grid", key: S, role: "grid", "aria-label": p.format(v.toDate()) },
1272
- e("thead", {}, e("tr", {}, ...C.slice(0, 7).map((_) => e("th", { className: "dsh-calendar__weekday", key: _.day(), scope: "col" }, M.format(_.toDate()))))),
1273
- e("tbody", {}, ...O)
1275
+ { className: "dsh-calendar__grid", key: M, role: "grid", "aria-label": c.format($.toDate()) },
1276
+ e("thead", {}, e("tr", {}, ...u.slice(0, 7).map((I) => e("th", { className: "dsh-calendar__weekday", key: I.day(), scope: "col" }, g.format(I.toDate()))))),
1277
+ e("tbody", {}, ...D)
1274
1278
  );
1275
- }), V = n ? e("button", { type: "button", className: "dsh-calendar__heading", "aria-expanded": s, onClick: () => a.year(!s) }, d) : e("button", { type: "button", className: "dsh-calendar__year-trigger arco-picker-header-label", "aria-expanded": s, "data-open": s || void 0, onClick: () => a.year(!s) }, e("span", {}, d), x("next")), A = n ? e("span", { className: "dsh-calendar__heading dsh-calendar__heading--next" }, p.format(c.toDate())) : null, Y = Math.min(1900, Math.floor(i.year() / 100) * 100), L = Math.max(2099, Math.floor(i.year() / 100) * 100 + 99), P = s ? e("div", { className: "dsh-calendar__years", role: "listbox", "aria-label": "Year", tabIndex: -1, style: { top: "40px", height: `${28 + rt(i, o).length / 7 * 36}px` } }, ...Array.from({ length: L - Y + 1 }, (f, S) => {
1276
- const v = Y + S;
1279
+ }), C = n ? e("button", { type: "button", className: "dsh-calendar__heading", "aria-expanded": i, onClick: () => a.year(!i) }, v) : e("button", { type: "button", className: "dsh-calendar__year-trigger arco-picker-header-label", "aria-expanded": i, "data-open": i || void 0, onClick: () => a.year(!i) }, e("span", {}, v), h("next")), b = n ? e("span", { className: "dsh-calendar__heading dsh-calendar__heading--next" }, c.format(s.toDate())) : null, P = Math.min(1900, Math.floor(l.year() / 100) * 100), Y = Math.max(2099, Math.floor(l.year() / 100) * 100 + 99), L = i ? e("div", { className: "dsh-calendar__years", role: "listbox", "aria-label": "Year", tabIndex: -1, style: { top: "40px", height: `${28 + ut(l, o).length / 7 * 36}px` } }, ...Array.from({ length: Y - P + 1 }, (x, M) => {
1280
+ const $ = P + M;
1277
1281
  return e("button", {
1278
- key: v,
1282
+ key: $,
1279
1283
  type: "button",
1280
1284
  className: "dsh-calendar__year",
1281
1285
  role: "option",
1282
- "data-year": v,
1283
- "aria-selected": v === i.year(),
1284
- "data-selected": v === i.year() || void 0,
1285
- tabIndex: v === i.year() ? 0 : -1,
1286
- onClick: () => a.yearSelect(v),
1287
- onKeyDown: (C) => {
1288
- var T, b;
1289
- if (C.key === "Escape") {
1290
- C.preventDefault(), a.year(!1);
1286
+ "data-year": $,
1287
+ "aria-selected": $ === l.year(),
1288
+ "data-selected": $ === l.year() || void 0,
1289
+ tabIndex: $ === l.year() ? 0 : -1,
1290
+ onClick: () => a.yearSelect($),
1291
+ onKeyDown: (u) => {
1292
+ var B, p;
1293
+ if (u.key === "Escape") {
1294
+ u.preventDefault(), a.year(!1);
1291
1295
  return;
1292
1296
  }
1293
- const O = { ArrowLeft: -1, ArrowRight: 1, ArrowUp: -3, ArrowDown: 3 }[C.key];
1294
- if (O === void 0 && C.key !== "Home" && C.key !== "End")
1297
+ const D = { ArrowLeft: -1, ArrowRight: 1, ArrowUp: -3, ArrowDown: 3 }[u.key];
1298
+ if (D === void 0 && u.key !== "Home" && u.key !== "End")
1295
1299
  return;
1296
- C.preventDefault();
1297
- const _ = C.key === "Home" ? Y : C.key === "End" ? L : Math.max(Y, Math.min(L, v + (O ?? 0)));
1298
- (b = (T = C.target.closest(".dsh-calendar__years")) == null ? void 0 : T.querySelector(`[data-year="${_}"]`)) == null || b.focus();
1300
+ u.preventDefault();
1301
+ const I = u.key === "Home" ? P : u.key === "End" ? Y : Math.max(P, Math.min(Y, $ + (D ?? 0)));
1302
+ (p = (B = u.target.closest(".dsh-calendar__years")) == null ? void 0 : B.querySelector(`[data-year="${I}"]`)) == null || p.focus();
1299
1303
  }
1300
- }, v);
1304
+ }, $);
1301
1305
  })) : null;
1302
1306
  return e(
1303
1307
  "div",
1304
- { className: `dsh-calendar${n ? " dsh-calendar--range" : ""}`, "data-year-open": s || void 0 },
1305
- e("div", { className: "dsh-calendar__header" }, w(-1), V, A, w(1)),
1306
- e("div", { className: "dsh-calendar__grids" }, ...m),
1307
- P
1308
+ { className: `dsh-calendar${n ? " dsh-calendar--range" : ""}`, "data-year-open": i || void 0 },
1309
+ e("div", { className: "dsh-calendar__header" }, A(-1), C, b, A(1)),
1310
+ e("div", { className: "dsh-calendar__grids" }, ...w),
1311
+ L
1308
1312
  );
1309
1313
  }
1310
- const At = (e, t, ...a) => {
1311
- const { className: i, fillRule: n, clipRule: r, suppressContentEditableWarning: o, onKeyDown: s, onBeforeInput: c, onMouseEnter: p, onBlur: d, ...M } = t;
1312
- return h(e, { ...M, class: i, "fill-rule": n, "clip-rule": r, onKeydown: s, onBeforeinput: c, onMouseenter: p, onFocusout: d }, a);
1313
- }, xt = F({
1314
+ function Ba(e) {
1315
+ return (e.match(/YYYY|MM?|DD?|\[[^\]]*\]|./g) ?? []).map((t) => ({
1316
+ unit: t === "YYYY" ? "year" : /^M+$/.test(t) ? "month" : /^D+$/.test(t) ? "day" : void 0,
1317
+ text: t.startsWith("[") ? t.slice(1, -1) : t
1318
+ }));
1319
+ }
1320
+ function ze(e) {
1321
+ if (e.year === void 0 || e.month === void 0 || e.day === void 0)
1322
+ return;
1323
+ const t = ie().date(1).year(Math.max(1, Math.min(9999, e.year))).month(Math.max(1, Math.min(12, e.month)) - 1);
1324
+ return t.date(Math.max(1, Math.min(e.day, t.daysInMonth()))).startOf("day");
1325
+ }
1326
+ function La(e, t) {
1327
+ const { dates: a, range: l, draft: n, disabled: r, readonly: o } = t, i = a.map((f) => (f == null ? void 0 : f.format("YYYY-MM-DD")) ?? "").join("/");
1328
+ i !== n.source && (n.source = i, n.parts = a.map((f) => f ? { year: f.year(), month: f.month() + 1, day: f.date() } : {}));
1329
+ const s = (f, h, A) => {
1330
+ var w, C;
1331
+ const T = (w = n.parts)[f] ?? (w[f] = {});
1332
+ T[h] = A;
1333
+ const d = ze(T);
1334
+ if (d && !((C = t.disabledDate) != null && C.call(t, d, f === 0 ? "start" : "end"))) {
1335
+ const b = Array.from({ length: l ? 2 : 1 }, (L, x) => ze(n.parts[x] ?? {}));
1336
+ b[f] = d;
1337
+ const [P, Y] = b;
1338
+ (!l || P && Y && Pt(P, Y, t.disabledDate)) && t.change(b);
1339
+ }
1340
+ A === void 0 && a[f] && t.change([]), t.invalidate();
1341
+ }, c = (f, h) => {
1342
+ var d;
1343
+ const A = f.closest(".dsh-date-input"), T = Array.from((A == null ? void 0 : A.querySelectorAll("[role=spinbutton]")) ?? []);
1344
+ (d = T[T.indexOf(f) + h]) == null || d.focus();
1345
+ }, v = Array.from({ length: l ? 2 : 1 }, (f, h) => {
1346
+ var d;
1347
+ const A = typeof t.placeholder == "string" ? t.placeholder : (d = t.placeholder) == null ? void 0 : d[h], T = Object.values(n.parts[h] ?? {}).every((w) => w === void 0);
1348
+ return e("div", { className: "dsh-date-input__field", key: h, "data-placeholder": T && A || void 0 }, ...Ba(t.format).map(({ unit: w, text: C }, b) => {
1349
+ var $;
1350
+ if (!w)
1351
+ return e("span", { key: b, className: "dsh-date-input__literal", "aria-hidden": !0 }, C);
1352
+ const P = ($ = n.parts)[h] ?? ($[h] = {}), Y = P[w], L = w === "year" ? 9999 : w === "month" ? 12 : ze({ year: P.year ?? 2e3, month: P.month ?? 1, day: 1 }).daysInMonth(), x = `${h}-${w}`, M = (u, D) => {
1353
+ if (r || o || !/^\d+$/.test(u))
1354
+ return;
1355
+ const I = (n.target === x ? n.buffer : "") + u, B = Number(I) > L ? u : I;
1356
+ n.target = x, n.buffer = B, Number(B) > 0 && s(h, w, Math.min(L, Number(B))), (B.length >= (w === "year" ? 4 : 2) || +(B + "0") > L) && (n.buffer = "", c(D, 1));
1357
+ };
1358
+ return e("span", {
1359
+ key: b,
1360
+ className: "dsh-date-input__segment",
1361
+ role: "spinbutton",
1362
+ tabIndex: r ? -1 : 0,
1363
+ contentEditable: !r && !o,
1364
+ suppressContentEditableWarning: !0,
1365
+ spellCheck: !1,
1366
+ inputMode: "numeric",
1367
+ "aria-label": `${w}, ${t.label}${l ? h === 0 ? ", start" : ", end" : ""}`,
1368
+ "aria-valuenow": Y,
1369
+ "aria-valuemin": 1,
1370
+ "aria-valuemax": L,
1371
+ "aria-disabled": r || void 0,
1372
+ "aria-readonly": o || void 0,
1373
+ "data-placeholder": Y === void 0 || void 0,
1374
+ onFocus: () => {
1375
+ n.target = x, n.buffer = "";
1376
+ },
1377
+ onClick: (u) => u.stopPropagation(),
1378
+ onBeforeInput: (u) => {
1379
+ var D;
1380
+ u.preventDefault(), M(u.data ?? ((D = u.nativeEvent) == null ? void 0 : D.data) ?? "", u.target);
1381
+ },
1382
+ onPaste: (u) => {
1383
+ var D;
1384
+ u.preventDefault(), M(((D = u.clipboardData) == null ? void 0 : D.getData("text")) ?? "", u.target);
1385
+ },
1386
+ onKeyDown: (u) => {
1387
+ if (u.altKey && u.key === "ArrowDown") {
1388
+ u.preventDefault(), t.toggle();
1389
+ return;
1390
+ }
1391
+ if (u.key === "ArrowLeft" || u.key === "ArrowRight") {
1392
+ u.preventDefault(), c(u.target, u.key === "ArrowLeft" ? -1 : 1);
1393
+ return;
1394
+ }
1395
+ if (!(r || o)) {
1396
+ if (/^\d$/.test(u.key)) {
1397
+ u.preventDefault(), M(u.key, u.target);
1398
+ return;
1399
+ }
1400
+ if (u.key === "Backspace" || u.key === "Delete") {
1401
+ u.preventDefault(), n.buffer = "", s(h, w, void 0);
1402
+ return;
1403
+ }
1404
+ if (["ArrowUp", "ArrowDown", "Home", "End"].includes(u.key)) {
1405
+ u.preventDefault(), n.buffer = "";
1406
+ const D = u.key === "Home" ? 1 : u.key === "End" ? L : (Y ?? 0) + (u.key === "ArrowUp" ? 1 : -1);
1407
+ s(h, w, D < 1 ? L : D > L ? 1 : D);
1408
+ }
1409
+ }
1410
+ }
1411
+ }, Y === void 0 ? w === "year" ? "yyyy" : w === "month" ? "mm" : "dd" : String(Y).padStart(C.length, "0"));
1412
+ }));
1413
+ }), g = [v[0]];
1414
+ return l && g.push(e("span", { className: "dsh-date-input__separator", "aria-hidden": !0 }, "-"), v[1]), g.push(e("button", {
1415
+ type: "button",
1416
+ className: "dsh-date-input__trigger",
1417
+ id: t.id,
1418
+ disabled: r,
1419
+ "aria-label": "Calendar",
1420
+ "aria-haspopup": "dialog",
1421
+ "aria-expanded": t.open,
1422
+ onClick: (f) => {
1423
+ f.stopPropagation(), t.toggle();
1424
+ }
1425
+ }, e("span", { className: "dsh-date-input__indicator" }, e("svg", { viewBox: "0 0 13 14", width: 14, height: 14, fill: "none", "aria-hidden": !0 }, e("path", { fill: "currentColor", fillRule: "evenodd", clipRule: "evenodd", d: "M3.75 4.5A.75.75 0 0 1 3 3.75v-.748a1.5 1.5 0 0 0-1.5 1.5v1h10v-1a1.5 1.5 0 0 0-1.5-1.5v.75a.75.75 0 1 1-1.5 0v-.75h-4v.747a.75.75 0 0 1-.75.75ZM8.5 1.501h-4V.75a.75.75 0 0 0-1.5 0v.752a3 3 0 0 0-3 3v6a3 3 0 0 0 3 3h7a3 3 0 0 0 3-3v-6a3 3 0 0 0-3-3v-.75a.75.75 0 0 0-1.5 0v.75Zm-7 5.5v3.5a1.5 1.5 0 0 0 1.5 1.5h7a1.5 1.5 0 0 0 1.5-1.5v-3.5h-10Z" }))))), t.allowClear && a.some(Boolean) && !o && !r && g.push(e("button", { type: "button", className: "dsh-date-input__clear", "aria-label": "Clear", onClick: (f) => {
1426
+ var h;
1427
+ f.stopPropagation(), t.change([]), (h = t.onClear) == null || h.call(t);
1428
+ } }, "×")), e("div", {
1429
+ className: "dsh-date-input",
1430
+ role: "group",
1431
+ "aria-label": t.label,
1432
+ "data-size": t.size,
1433
+ "data-disabled": r || void 0,
1434
+ onBlur: (f) => {
1435
+ (!(f.relatedTarget instanceof Node) || !f.currentTarget.contains(f.relatedTarget)) && (n.source = "\0", n.buffer = "", t.invalidate());
1436
+ },
1437
+ onClick: () => {
1438
+ !r && !o && t.toggle();
1439
+ }
1440
+ }, ...g);
1441
+ }
1442
+ const _t = (e, t, ...a) => {
1443
+ const { className: l, fillRule: n, clipRule: r, suppressContentEditableWarning: o, onKeyDown: i, onBeforeInput: s, onMouseEnter: c, onBlur: v, ...g } = t;
1444
+ return m(e, { ...g, class: l, "fill-rule": n, "clip-rule": r, onKeydown: i, onBeforeinput: s, onMouseenter: c, onFocusout: v }, a);
1445
+ }, Tt = N({
1314
1446
  name: "DshCalendarPanel",
1315
1447
  props: {
1316
1448
  standalone: Boolean,
@@ -1319,314 +1451,341 @@ const At = (e, t, ...a) => {
1319
1451
  view: { type: Object, required: !0 },
1320
1452
  locale: { type: String, required: !0 },
1321
1453
  weekStart: Number,
1322
- disabled: { type: Function, required: !0 },
1454
+ disabled: Function,
1323
1455
  onSelect: { type: Function, required: !0 },
1324
1456
  onView: { type: Function, required: !0 }
1325
1457
  },
1326
1458
  setup(e) {
1327
- const t = W(e.view.startOf("month")), a = W(e.value.at(-1) ?? e.view), i = q(!1), n = W(), r = W(), o = W();
1459
+ const t = W(e.view.startOf("month")), a = W(e.value.at(-1) ?? e.view), l = j(!1), n = W(), r = W(), o = W();
1328
1460
  le(() => e.view.valueOf(), () => {
1329
1461
  t.value = e.view.startOf("month"), !a.value.isSame(t.value, "month") && !(e.range && a.value.isSame(t.value.add(1, "month"), "month")) && (a.value = e.view);
1330
1462
  });
1331
- async function s(d) {
1332
- var x, w;
1333
- if (await re(), d) {
1334
- const $ = document.activeElement;
1335
- if ($ !== d && !($ === document.body && (!d.isConnected || d.disabled)))
1463
+ async function i(g) {
1464
+ var A, T;
1465
+ if (await se(), g) {
1466
+ const d = document.activeElement;
1467
+ if (d !== g && !(d === document.body && (!g.isConnected || g.disabled)))
1336
1468
  return;
1337
1469
  }
1338
- const M = i.value ? ".dsh-calendar__year[data-selected]" : '.dsh-calendar__cell[tabindex="0"]', l = ((x = o.value) == null ? void 0 : x.querySelector(M)) ?? ((w = o.value) == null ? void 0 : w.querySelector(".dsh-calendar__year-trigger, .dsh-calendar__heading"));
1339
- l == null || l.focus({ preventScroll: !0 }), i.value && (l != null && l.parentElement) && (l.parentElement.scrollTop = Math.max(0, l.offsetTop - (l.parentElement.clientHeight - l.offsetHeight) / 2));
1470
+ const f = l.value ? ".dsh-calendar__year[data-selected]" : '.dsh-calendar__cell[tabindex="0"]', h = ((A = o.value) == null ? void 0 : A.querySelector(f)) ?? ((T = o.value) == null ? void 0 : T.querySelector(".dsh-calendar__year-trigger, .dsh-calendar__heading"));
1471
+ h == null || h.focus({ preventScroll: !0 }), l.value && (h != null && h.parentElement) && (h.parentElement.scrollTop = Math.max(0, h.offsetTop - (h.parentElement.clientHeight - h.offsetHeight) / 2));
1340
1472
  }
1341
- let c;
1342
- Rt(() => {
1343
- var d;
1344
- c = ((d = o.value) == null ? void 0 : d.querySelector(".dsh-calendar__cell:focus")) ?? void 0;
1345
- }), ke(() => {
1346
- c && s(c);
1347
- }), fe(() => {
1348
- e.standalone || s();
1349
- }), le(i, () => {
1350
- s();
1473
+ let s;
1474
+ Xt(() => {
1475
+ var g;
1476
+ s = ((g = o.value) == null ? void 0 : g.querySelector(".dsh-calendar__cell:focus")) ?? void 0;
1477
+ }), Ae(() => {
1478
+ s && i(s);
1479
+ }), ve(() => {
1480
+ e.standalone || i();
1481
+ }), le(l, () => {
1482
+ i();
1351
1483
  });
1352
- const p = (d) => {
1353
- e.onView(d);
1484
+ const c = (g) => {
1485
+ var f;
1486
+ return !!((f = e.disabled) != null && f.call(e, g, n.value ? "end" : "start"));
1487
+ }, v = (g) => {
1488
+ e.onView(g);
1354
1489
  };
1355
- return () => h("div", { ref: o, class: ["dsh-picker-popover", { "dsh-picker-popover--range": e.range, "dsh-calendar-standalone": e.standalone }] }, [Ma(At, {
1490
+ return () => m("div", { ref: o, class: ["dsh-picker-popover", { "dsh-picker-popover--range": e.range, "dsh-calendar-standalone": e.standalone }] }, [Ia(_t, {
1356
1491
  month: t.value,
1357
1492
  focused: a.value,
1358
1493
  selected: e.value,
1359
1494
  anchor: n.value,
1360
1495
  hover: r.value,
1361
1496
  range: e.range,
1362
- yearOpen: i.value,
1497
+ yearOpen: l.value,
1363
1498
  locale: e.locale,
1364
- firstDay: e.weekStart ?? Da(e.locale),
1365
- disabled: e.disabled
1499
+ firstDay: e.weekStart ?? Va(e.locale),
1500
+ disabled: c
1366
1501
  }, {
1367
- month: p,
1368
- focus: (d) => {
1369
- a.value = d;
1502
+ month: v,
1503
+ focus: (g) => {
1504
+ a.value = g;
1370
1505
  },
1371
- year: (d) => {
1372
- i.value = d;
1506
+ year: (g) => {
1507
+ l.value = g;
1373
1508
  },
1374
- hover: (d) => {
1375
- n.value && (r.value = d);
1509
+ hover: (g) => {
1510
+ n.value && (r.value = g);
1376
1511
  },
1377
- yearSelect: (d) => {
1378
- const M = t.value.year(d).date(Math.min(a.value.date(), t.value.year(d).daysInMonth()));
1379
- a.value = M, p(M), i.value = !1;
1512
+ yearSelect: (g) => {
1513
+ const f = t.value.year(g).date(Math.min(a.value.date(), t.value.year(g).daysInMonth()));
1514
+ a.value = f, v(f), l.value = !1;
1380
1515
  },
1381
- select: (d) => {
1382
- if (e.disabled(d))
1516
+ select: (g) => {
1517
+ if (c(g))
1383
1518
  return;
1384
- if (a.value = d, !e.range) {
1385
- e.onSelect([d], !0);
1519
+ if (a.value = g, !e.range) {
1520
+ e.onSelect([g], !0);
1386
1521
  return;
1387
1522
  }
1388
1523
  if (!n.value) {
1389
- n.value = d, r.value = d, e.onSelect([d], !1);
1524
+ n.value = g, r.value = g, e.onSelect([g], !1);
1390
1525
  return;
1391
1526
  }
1392
- const M = Mt(n.value, d);
1393
- let l = M[0];
1394
- for (; !l.isAfter(M[1], "day"); ) {
1395
- if (e.disabled(l))
1396
- return;
1397
- l = l.add(1, "day");
1398
- }
1399
- n.value = void 0, r.value = void 0, e.onSelect(M, !0);
1527
+ const f = $t(n.value, g);
1528
+ Pt(f[0], f[1], e.disabled) && (n.value = void 0, r.value = void 0, e.onSelect(f, !0));
1400
1529
  }
1401
1530
  })]);
1402
1531
  }
1403
- });
1404
- function $t(e) {
1405
- const t = e ? mt : ht, a = F({
1532
+ }), Ea = /* @__PURE__ */ new Set(["disabled", "readonly", "disabledInput", "showTime", "showNowBtn", "showConfirmBtn", "popupVisible", "defaultPopupVisible", "allowClear"]);
1533
+ function Vt(e) {
1534
+ const t = e ? pt : gt, a = N({
1406
1535
  name: e ? "DshRangePicker" : "DshDatePicker",
1407
1536
  inheritAttrs: !1,
1408
- setup(i, { attrs: n, slots: r, expose: o }) {
1409
- const s = se(), c = W(), p = W(), d = q(0), M = { parts: [], source: "", buffer: "" }, l = (P) => n[P] ?? n[P.replace(/[A-Z]/g, (f) => `-${f.toLowerCase()}`)], x = (P) => ue(P, String(l("valueFormat") ?? (typeof l("format") == "string" ? l("format") : "YYYY-MM-DD"))), w = W(l("defaultValue")), $ = q(!!l("defaultPopupVisible")), u = (P) => e && Array.isArray(P) ? P[0] : P, m = W(x(u(l("pickerValue") ?? l("defaultPickerValue") ?? l("modelValue") ?? l("defaultValue"))) ?? ie()), V = J(() => l("modelValue") === void 0 ? w.value : l("modelValue")), A = (P, ...f) => {
1410
- const S = n[P];
1411
- Array.isArray(S) ? S.forEach((v) => {
1412
- typeof v == "function" && v(...f);
1413
- }) : typeof S == "function" && S(...f);
1537
+ setup(l, { attrs: n, slots: r, expose: o }) {
1538
+ const i = ue(), s = me(xe, void 0), c = W(), v = W(), g = j(0), f = { parts: [], source: "", buffer: "" }, h = (x) => {
1539
+ const M = n[x] ?? n[x.replace(/[A-Z]/g, ($) => `-${$.toLowerCase()}`)];
1540
+ return M === "" && Ea.has(x) ? !0 : M;
1541
+ }, A = (x) => de(x, String(h("valueFormat") ?? (typeof h("format") == "string" ? h("format") : "YYYY-MM-DD"))), T = W(h("defaultValue")), d = j(!!h("defaultPopupVisible")), w = (x) => e && Array.isArray(x) ? x[0] : x, C = W(A(w(h("pickerValue") ?? h("defaultPickerValue") ?? h("modelValue") ?? h("defaultValue"))) ?? ie()), b = Z(() => "modelValue" in n || "model-value" in n ? h("modelValue") : T.value);
1542
+ le(() => {
1543
+ var x;
1544
+ return (x = A(w(b.value))) == null ? void 0 : x.valueOf();
1545
+ }, (x) => {
1546
+ x !== void 0 && (C.value = ie(x));
1547
+ });
1548
+ const P = (x, ...M) => {
1549
+ const $ = n[x];
1550
+ Array.isArray($) ? $.forEach((u) => {
1551
+ typeof u == "function" && u(...M);
1552
+ }) : typeof $ == "function" && $(...M);
1414
1553
  };
1415
- o(new Proxy({}, { get: (P, f) => {
1416
- var S;
1417
- return f === "focus" ? (v = 0) => {
1418
- var C, O, _, T;
1419
- p.value ? (O = (C = p.value.querySelectorAll(".dsh-date-input__field")[v]) == null ? void 0 : C.querySelector("[role=spinbutton]")) == null || O.focus() : (T = (_ = c.value) == null ? void 0 : _.focus) == null || T.call(_, v);
1420
- } : f === "blur" ? () => {
1421
- var v, C, O;
1422
- p.value ? (v = p.value.querySelector(":focus")) == null || v.blur() : (O = (C = c.value) == null ? void 0 : C.blur) == null || O.call(C);
1423
- } : (S = c.value) == null ? void 0 : S[f];
1424
- }, has: (P, f) => c.value !== void 0 && (f === "focus" || f === "blur" || f in c.value) }));
1425
- const Y = (P) => {
1426
- $.value = P, A("onUpdate:popupVisible", P), A("onPopupVisibleChange", P);
1427
- }, L = (P) => {
1428
- const f = l("valueFormat") ?? (typeof l("format") == "string" ? l("format") : "YYYY-MM-DD");
1429
- return f === "Date" ? P.toDate() : f === "timestamp" ? P.valueOf() : P.format(String(f));
1554
+ o(new Proxy({}, { get: (x, M) => {
1555
+ var $;
1556
+ return M === "focus" ? (u = 0) => {
1557
+ var D, I, B, p;
1558
+ v.value ? (I = (D = v.value.querySelectorAll(".dsh-date-input__field")[u]) == null ? void 0 : D.querySelector("[role=spinbutton]")) == null || I.focus() : (p = (B = c.value) == null ? void 0 : B.focus) == null || p.call(B, u);
1559
+ } : M === "blur" ? () => {
1560
+ var u, D, I;
1561
+ v.value ? (u = v.value.querySelector(":focus")) == null || u.blur() : (I = (D = c.value) == null ? void 0 : D.blur) == null || I.call(D);
1562
+ } : ($ = c.value) == null ? void 0 : $[M];
1563
+ }, has: (x, M) => c.value !== void 0 && (M === "focus" || M === "blur" || M in c.value) }));
1564
+ const Y = (x) => {
1565
+ d.value = x, P("onUpdate:popupVisible", x), P("onPopupVisibleChange", x);
1566
+ }, L = (x) => {
1567
+ const M = h("valueFormat") ?? (typeof h("format") == "string" ? h("format") : "YYYY-MM-DD");
1568
+ return M === "Date" ? x.toDate() : M === "timestamp" ? x.valueOf() : x.format(String(M));
1430
1569
  };
1431
1570
  return () => {
1432
- var g;
1433
- d.value;
1434
- const P = V.value, f = (e ? Array.isArray(P) ? P : [] : [P]).map(x).filter((y) => !!y), S = l("mode"), v = !!(l("panelRender") || l("showTime") || l("showNowBtn") === !0 || l("showConfirmBtn") || (g = l("shortcuts")) != null && g.length || r.extra || r.cell || l("utcOffset") !== void 0 || l("timezone") || S && S !== "date" || Array.isArray(l("disabled"))), C = l("triggerProps") ?? {}, O = () => h(xt, {
1571
+ var O;
1572
+ g.value;
1573
+ const x = b.value, M = (e ? Array.isArray(x) ? x : [] : [x]).map(A).filter((_) => !!_), $ = h("mode"), u = !!(h("panelRender") || h("showTime") || h("showNowBtn") === !0 || h("showConfirmBtn") || (O = h("shortcuts")) != null && O.length || r.extra || r.cell || h("utcOffset") !== void 0 || h("timezone") || $ && $ !== "date" || Array.isArray(h("disabled"))), D = h("triggerProps") ?? {}, I = h("disabledDate"), B = I ? (_, E) => I(_.toDate(), e ? E : void 0) : void 0, p = () => m(Tt, {
1435
1574
  range: e,
1436
- value: f,
1437
- view: x(u(l("pickerValue"))) ?? m.value,
1438
- locale: s.locale.value,
1439
- weekStart: l("dayStartOfWeek"),
1440
- disabled: (y) => {
1441
- const k = l("disabledDate");
1442
- return !!(k != null && k(y.toDate(), e ? f.length ? "end" : "start" : void 0));
1443
- },
1444
- onView: (y) => {
1445
- l("pickerValue") === void 0 && (m.value = y);
1446
- const k = e ? [y, y.add(1, "month")] : [y], I = k.map(L), E = k.map((H) => H.toDate()), B = k.map((H) => H.format("YYYY-MM-DD"));
1447
- A("onPickerValueChange", e ? I : I[0], e ? E : E[0], e ? B : B[0]);
1575
+ value: M,
1576
+ view: A(w(h("pickerValue"))) ?? C.value,
1577
+ locale: i.locale.value,
1578
+ weekStart: h("dayStartOfWeek"),
1579
+ disabled: B,
1580
+ onView: (_) => {
1581
+ h("pickerValue") === void 0 && (C.value = _);
1582
+ const E = e ? [_, _.add(1, "month")] : [_], H = E.map(L), R = E.map((q) => q.toDate()), F = E.map((q) => q.format("YYYY-MM-DD"));
1583
+ P("onPickerValueChange", e ? H : H[0], e ? R : R[0], e ? F : F[0]);
1448
1584
  },
1449
- onSelect: (y, k) => {
1450
- const I = y.map(L), E = y.map((R) => R.toDate()), B = y.map((R) => R.format(typeof l("format") == "string" ? String(l("format")) : "YYYY-MM-DD"));
1451
- if (e && A("onSelect", I, E, B), !k)
1585
+ onSelect: (_, E) => {
1586
+ const H = _.map(L), R = _.map((K) => K.toDate()), F = _.map((K) => K.format(typeof h("format") == "string" ? String(h("format")) : "YYYY-MM-DD"));
1587
+ if (e && P("onSelect", H, R, F), !E)
1452
1588
  return;
1453
- const H = e ? I : I[0];
1454
- y.every((R, j) => {
1455
- var z;
1456
- return (z = f[j]) == null ? void 0 : z.isSame(R, "day");
1457
- }) || (w.value = H, A("onUpdate:modelValue", H), A("onChange", H, e ? E : E[0], e ? B : B[0])), Y(!1);
1589
+ const q = e ? H : H[0];
1590
+ _.every((K, Q) => {
1591
+ var ee;
1592
+ return (ee = M[Q]) == null ? void 0 : ee.isSame(K, "day");
1593
+ }) || (T.value = q, P("onUpdate:modelValue", q), P("onChange", q, e ? R : R[0], e ? F : F[0])), Y(!1);
1458
1594
  }
1459
- }), _ = typeof l("format") == "string" ? String(l("format")) : s.locale.value.startsWith("en-US") ? "M/D/YYYY" : "YYYY-MM-DD", T = !v && !r.default && !r.prefix && !r["suffix-icon"] && !l("inputProps") && /^(?:YYYY|MM?|DD?|[\/\-.\s])+$/.test(_), b = (y) => {
1460
- var I, E;
1461
- if (y.length && y.some((B) => !B))
1595
+ }), y = typeof h("format") == "string" ? String(h("format")) : i.locale.value.startsWith("en-US") ? "M/D/YYYY" : "YYYY-MM-DD", S = !u && !r.default && !r.prefix && !r["suffix-icon"] && !h("inputProps") && /^(?:YYYY|MM?|DD?|[\/\-.\s])+$/.test(y), V = (_) => {
1596
+ var H, R;
1597
+ if (_.length && _.some((F) => !F))
1462
1598
  return;
1463
- const k = e ? y.map((B) => B ? L(B) : void 0) : y[0] ? L(y[0]) : void 0;
1464
- w.value = k, A("onUpdate:modelValue", k), A("onChange", k, e ? y.map((B) => B == null ? void 0 : B.toDate()) : (I = y[0]) == null ? void 0 : I.toDate(), e ? y.map((B) => B == null ? void 0 : B.format(_)) : (E = y[0]) == null ? void 0 : E.format(_));
1465
- }, D = T ? { ...r, default: () => {
1466
- const y = va(At, {
1467
- dates: e ? [x(Array.isArray(P) ? P[0] : void 0), x(Array.isArray(P) ? P[1] : void 0)] : [x(P)],
1599
+ const E = e ? _.map((F) => F ? L(F) : void 0) : _[0] ? L(_[0]) : void 0;
1600
+ T.value = E, P("onUpdate:modelValue", E), P("onChange", E, e ? _.map((F) => F == null ? void 0 : F.toDate()) : (H = _[0]) == null ? void 0 : H.toDate(), e ? _.map((F) => F == null ? void 0 : F.format(y)) : (R = _[0]) == null ? void 0 : R.format(y));
1601
+ }, k = S ? { ...r, default: () => {
1602
+ const _ = La(_t, {
1603
+ dates: e ? [A(Array.isArray(x) ? x[0] : void 0), A(Array.isArray(x) ? x[1] : void 0)] : [A(x)],
1468
1604
  range: e,
1469
- format: _,
1470
- label: String(l("aria-label") ?? "日期"),
1471
- disabled: !!l("disabled"),
1472
- readonly: !!(l("readonly") || l("disabledInput")),
1473
- open: !!(l("popupVisible") ?? $.value),
1474
- allowClear: l("allowClear") !== !1,
1475
- draft: M,
1605
+ format: y,
1606
+ id: n.id,
1607
+ size: h("size") ?? (s == null ? void 0 : s.size),
1608
+ placeholder: h("placeholder"),
1609
+ onClear: () => P("onClear"),
1610
+ label: String(h("aria-label") ?? "日期"),
1611
+ disabled: !!h("disabled"),
1612
+ readonly: !!(h("readonly") || h("disabledInput")),
1613
+ open: !!(h("popupVisible") ?? d.value),
1614
+ allowClear: h("allowClear") !== !1,
1615
+ draft: f,
1476
1616
  invalidate: () => {
1477
- d.value++;
1617
+ g.value++;
1478
1618
  },
1479
- change: b,
1480
- toggle: () => Y(!(l("popupVisible") ?? $.value)),
1481
- disabledDate: (k) => {
1482
- var I;
1483
- return !!((I = l("disabledDate")) != null && I(k.toDate()));
1484
- }
1619
+ change: V,
1620
+ toggle: () => Y(!(h("popupVisible") ?? d.value)),
1621
+ disabledDate: B
1485
1622
  });
1486
- return h("div", { ref: p, class: n.class, style: n.style }, [y]);
1623
+ return m("div", { ref: v, class: n.class, style: n.style }, [_]);
1487
1624
  } } : r;
1488
- return h(t, {
1625
+ return m(t, {
1489
1626
  ...n,
1490
1627
  ref: c,
1491
- modelValue: V.value,
1492
- popupVisible: l("popupVisible") ?? $.value,
1493
- triggerProps: { popupOffset: 8, ...C },
1494
- panelRender: v ? l("panelRender") : O,
1495
- "onUpdate:modelValue": (y) => {
1496
- w.value = y, A("onUpdate:modelValue", y);
1628
+ modelValue: b.value,
1629
+ popupVisible: h("popupVisible") ?? d.value,
1630
+ triggerProps: { popupOffset: 8, ...D },
1631
+ panelRender: u ? h("panelRender") : p,
1632
+ "onUpdate:modelValue": (_) => {
1633
+ T.value = _, P("onUpdate:modelValue", _);
1497
1634
  },
1498
- "onUpdate:popupVisible": (y) => {
1499
- $.value = y, A("onUpdate:popupVisible", y);
1635
+ "onUpdate:popupVisible": (_) => {
1636
+ d.value = _, P("onUpdate:popupVisible", _);
1500
1637
  },
1501
- onPopupVisibleChange: (y) => {
1502
- $.value = y, A("onPopupVisibleChange", y);
1638
+ onPopupVisibleChange: (_) => {
1639
+ d.value = _, P("onPopupVisibleChange", _);
1503
1640
  }
1504
- }, D);
1641
+ }, k);
1505
1642
  };
1506
1643
  }
1507
1644
  });
1508
- return Object.assign(a, { install(i, n) {
1645
+ return Object.assign(a, { install(l, n) {
1509
1646
  if (e) {
1510
- i.component(`${(n == null ? void 0 : n.componentPrefix) ?? "A"}RangePicker`, a);
1647
+ l.component(`${(n == null ? void 0 : n.componentPrefix) ?? "A"}RangePicker`, a);
1511
1648
  return;
1512
1649
  }
1513
- const r = /* @__PURE__ */ new Map([[N.DatePicker, a], [N.RangePicker, Ce], [N.MonthPicker, Me], [N.YearPicker, $e], [N.QuarterPicker, Ae], [N.WeekPicker, xe]]);
1514
- function o(s, c) {
1515
- return c === void 0 ? i.component(s) : i.component(s, r.get(c) ?? c);
1650
+ const r = /* @__PURE__ */ new Map([[z.DatePicker, a], [z.RangePicker, Ve], [z.MonthPicker, $e], [z.YearPicker, Te], [z.QuarterPicker, Pe], [z.WeekPicker, _e]]);
1651
+ function o(i, s) {
1652
+ return s === void 0 ? l.component(i) : l.component(i, r.get(s) ?? s);
1516
1653
  }
1517
- N.DatePicker.install({ ...i, component: o }, n);
1654
+ z.DatePicker.install({ ...l, component: o }, n);
1518
1655
  } }), a;
1519
1656
  }
1520
- const Ce = $t(!0), qa = Ce, Aa = Object.assign($t(!1), { RangePicker: Ce, MonthPicker: Me, YearPicker: $e, QuarterPicker: Ae, WeekPicker: xe }), Ct = Object.assign(F({
1657
+ const Ve = Vt(!0), rn = Ve, Na = Object.assign(Vt(!1), { RangePicker: Ve, MonthPicker: $e, YearPicker: Te, QuarterPicker: Pe, WeekPicker: _e }), Ot = Object.assign(N({
1521
1658
  name: "DshCalendar",
1522
1659
  inheritAttrs: !1,
1523
1660
  setup(e, { attrs: t, slots: a }) {
1524
- const { locale: i } = se(), n = we(Fe, void 0), r = (p) => t[p] ?? t[p.replace(/[A-Z]/g, (d) => `-${d.toLowerCase()}`)], o = W(ue(r("defaultValue")) ?? ie().startOf("day")), s = W(ue(r("defaultPageShowDate")) ?? ue(r("modelValue")) ?? o.value), c = (p, d) => {
1525
- const M = t[p];
1526
- for (const l of Array.isArray(M) ? M : [M])
1527
- typeof l == "function" && l(d);
1661
+ const { locale: l } = ue(), n = me(xe, void 0), r = (c) => t[c] ?? t[c.replace(/[A-Z]/g, (v) => `-${v.toLowerCase()}`)], o = W(de(r("defaultValue")) ?? ie().startOf("day")), i = W(de(r("defaultPageShowDate")) ?? de(r("modelValue")) ?? o.value), s = (c, v) => {
1662
+ const g = t[c];
1663
+ for (const f of Array.isArray(g) ? g : [g])
1664
+ typeof f == "function" && f(v);
1528
1665
  };
1529
1666
  return () => {
1530
- var u, m, V;
1531
- const p = ((u = n == null ? void 0 : n.locale) == null ? void 0 : u.locale) ?? i.value, d = (m = n == null ? void 0 : n.locale) == null ? void 0 : m.calendar, M = p === "en-US" ? { month: "MMM YYYY", year: "YYYY", days: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"] } : p === "zh-CN" ? { month: "YYYY 年 MM 月", year: "YYYY 年", days: ["日", "一", "二", "三", "四", "五", "六"] } : void 0, l = d && (!M || d.formatMonth !== M.month || d.formatYear !== M.year || ["sunday", "monday", "tuesday", "wednesday", "thursday", "friday", "saturday"].some((A, Y) => {
1532
- var L, P;
1533
- return ((P = (L = d.week) == null ? void 0 : L.short) == null ? void 0 : P[A]) !== M.days[Y];
1534
- }) || Array.from({ length: 12 }, (A, Y) => new Date(2020, Y, 1)).some((A) => {
1667
+ var d, w, C;
1668
+ const c = ((d = n == null ? void 0 : n.locale) == null ? void 0 : d.locale) ?? l.value, v = (w = n == null ? void 0 : n.locale) == null ? void 0 : w.calendar, g = c === "en-US" ? { month: "MMM YYYY", year: "YYYY", days: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"] } : c === "zh-CN" ? { month: "YYYY 年 MM 月", year: "YYYY 年", days: ["日", "一", "二", "三", "四", "五", "六"] } : void 0, f = v && (!g || v.formatMonth !== g.month || v.formatYear !== g.year || ["sunday", "monday", "tuesday", "wednesday", "thursday", "friday", "saturday"].some((b, P) => {
1535
1669
  var Y, L;
1536
- return ((L = (Y = d.month) == null ? void 0 : Y.long) == null ? void 0 : L[new Intl.DateTimeFormat("en-US", { month: "long" }).format(A)]) !== new Intl.DateTimeFormat(p, { month: "long" }).format(A);
1670
+ return ((L = (Y = v.week) == null ? void 0 : Y.short) == null ? void 0 : L[b]) !== g.days[P];
1671
+ }) || Array.from({ length: 12 }, (b, P) => new Date(2020, P, 1)).some((b) => {
1672
+ var P, Y;
1673
+ return ((Y = (P = v.month) == null ? void 0 : P.long) == null ? void 0 : Y[new Intl.DateTimeFormat("en-US", { month: "long" }).format(b)]) !== new Intl.DateTimeFormat(c, { month: "long" }).format(b);
1537
1674
  }));
1538
- if (r("panel") === void 0 || r("panel") === !1 || (r("mode") ?? r("defaultMode") ?? "month") !== "month" || ["headerRender", "dateRender", "dateInnerContent", "monthRender", "panelOperations", "panelWidth"].some((A) => r(A) !== void 0) || !!r("panelTodayBtn") || !!r("isWeek") || l || (n == null ? void 0 : n.rtl) || (n == null ? void 0 : n.prefixCls) && n.prefixCls !== "arco" || Object.keys(a).length > 0)
1539
- return h(N.Calendar, t, a);
1540
- const w = ue(r("modelValue")) ?? o.value, $ = Object.fromEntries(Object.entries(t).filter(([A]) => ["id", "title", "role", "tabindex"].includes(A) || /^(aria-|data-)/.test(A) || /^on[A-Z]/.test(A) && !["onChange", "onPanelChange", "onUpdate:modelValue"].includes(A)));
1541
- return h("div", { ...$, class: ["arco-calendar dsh-hero-calendar", t.class], style: t.style }, [h(xt, {
1675
+ if (r("panel") === void 0 || r("panel") === !1 || (r("mode") ?? r("defaultMode") ?? "month") !== "month" || ["headerRender", "dateRender", "dateInnerContent", "monthRender", "panelOperations", "panelWidth"].some((b) => r(b) !== void 0) || !!r("panelTodayBtn") || !!r("isWeek") || f || (n == null ? void 0 : n.rtl) || (n == null ? void 0 : n.prefixCls) && n.prefixCls !== "arco" || Object.keys(a).length > 0)
1676
+ return m(z.Calendar, t, a);
1677
+ const A = de(r("modelValue")) ?? o.value, T = Object.fromEntries(Object.entries(t).filter(([b]) => ["id", "title", "role", "tabindex"].includes(b) || /^(aria-|data-)/.test(b) || /^on[A-Z]/.test(b) && !["onChange", "onPanelChange", "onUpdate:modelValue"].includes(b)));
1678
+ return m("div", { ...T, class: ["arco-calendar dsh-hero-calendar", t.class], style: t.style }, [m(Tt, {
1542
1679
  standalone: !0,
1543
1680
  range: !1,
1544
- value: [w],
1545
- view: ue(r("pageShowDate")) ?? s.value,
1546
- locale: ((V = n == null ? void 0 : n.locale) == null ? void 0 : V.locale) ?? i.value,
1681
+ value: [A],
1682
+ view: de(r("pageShowDate")) ?? i.value,
1683
+ locale: ((C = n == null ? void 0 : n.locale) == null ? void 0 : C.locale) ?? l.value,
1547
1684
  weekStart: r("dayStartOfWeek") ?? 0,
1548
- disabled: (A) => {
1549
- var Y;
1550
- return !!((Y = r("disabledDate")) != null && Y(A));
1685
+ disabled: (b) => {
1686
+ var P;
1687
+ return !!((P = r("disabledDate")) != null && P(b));
1551
1688
  },
1552
- onView: (A) => {
1553
- r("pageShowDate") === void 0 && (s.value = A), c("onPanelChange", A.toDate());
1689
+ onView: (b) => {
1690
+ r("pageShowDate") === void 0 && (i.value = b), s("onPanelChange", b.toDate());
1554
1691
  },
1555
- onSelect: (A) => {
1692
+ onSelect: (b) => {
1556
1693
  if (r("allowSelect") === !1)
1557
1694
  return;
1558
- const Y = A[0];
1559
- o.value = Y, r("pageShowDate") === void 0 && (s.value = Y), c("onUpdate:modelValue", Y.toDate()), c("onChange", Y.toDate()), c("onPanelChange", Y.toDate());
1695
+ const P = b[0];
1696
+ o.value = P, r("pageShowDate") === void 0 && (i.value = P), s("onUpdate:modelValue", P.toDate()), s("onChange", P.toDate()), s("onPanelChange", P.toDate());
1560
1697
  }
1561
1698
  })]);
1562
1699
  };
1563
1700
  }
1564
1701
  }), { install(e, t) {
1565
- function a(i, n) {
1566
- return n === void 0 ? e.component(i) : e.component(i, n === N.Calendar ? Ct : n);
1702
+ function a(l, n) {
1703
+ return n === void 0 ? e.component(l) : e.component(l, n === z.Calendar ? Ot : n);
1567
1704
  }
1568
- N.Calendar.install({ ...e, component: a }, t);
1569
- } }), ja = /* @__PURE__ */ qt({
1705
+ z.Calendar.install({ ...e, component: a }, t);
1706
+ } }), on = /* @__PURE__ */ ta({
1570
1707
  __proto__: null,
1571
- Alert: Kt,
1572
- AutoComplete: dt,
1573
- Calendar: Ct,
1574
- Cascader: ft,
1575
- ColorPicker: Ne,
1576
- DatePicker: Aa,
1577
- Dropdown: vt,
1578
- DropdownButton: gt,
1579
- Dsubmenu: pt,
1580
- Image: wt,
1581
- ImagePreview: Dt,
1582
- ImagePreviewGroup: St,
1583
- InputNumber: Zt,
1584
- InputTag: Ut,
1585
- Mention: ua,
1586
- Menu: yt,
1587
- MonthPicker: Me,
1588
- Popconfirm: ia,
1589
- Popover: la,
1590
- Progress: Wt,
1591
- QuarterPicker: Ae,
1592
- RangePicker: Ce,
1593
- Result: Gt,
1594
- Select: bt,
1595
- Spin: He,
1596
- Table: zt,
1597
- Tag: Qt,
1598
- TimePicker: ra,
1599
- Tooltip: oa,
1600
- Tree: Jt,
1601
- TreeSelect: na,
1602
- Trigger: sa,
1603
- WeekPicker: xe,
1604
- YearPicker: $e,
1605
- default: Ot
1606
- }, [N]), Wa = F({
1708
+ Alert: ia,
1709
+ AutoComplete: mt,
1710
+ Calendar: Ot,
1711
+ Card: oa,
1712
+ Cascader: vt,
1713
+ ColorPicker: qe,
1714
+ DatePicker: Na,
1715
+ Dropdown: bt,
1716
+ DropdownButton: wt,
1717
+ Dsubmenu: yt,
1718
+ HintIcon: Sa,
1719
+ Image: kt,
1720
+ ImagePreview: At,
1721
+ ImagePreviewGroup: xt,
1722
+ InputNumber: ua,
1723
+ InputTag: la,
1724
+ Mention: Da,
1725
+ Menu: Mt,
1726
+ MenuItem: Ge,
1727
+ MonthPicker: $e,
1728
+ Popconfirm: ya,
1729
+ Popover: ba,
1730
+ Progress: na,
1731
+ QuarterPicker: Pe,
1732
+ RangePicker: Ve,
1733
+ Result: sa,
1734
+ Select: Dt,
1735
+ Spin: Ce,
1736
+ Table: ra,
1737
+ Tag: ca,
1738
+ TimePicker: pa,
1739
+ Tooltip: St,
1740
+ Tree: da,
1741
+ TreeSelect: ga,
1742
+ Trigger: wa,
1743
+ WeekPicker: _e,
1744
+ YearPicker: Te,
1745
+ default: Ft
1746
+ }, [z]), ln = X(Object.assign({}, Ne, {
1747
+ props: { ...Ne.props, baseSize: { type: Number, default: 5 } }
1748
+ }), Ne), sn = N({
1607
1749
  name: "DshAccordion",
1608
1750
  setup(e, { attrs: t, slots: a }) {
1609
- return () => h(Yt, { accordion: !0, ...t }, a);
1751
+ return () => m(Ht, { accordion: !0, ...t }, a);
1610
1752
  }
1611
- }), za = F({
1753
+ }), un = N({
1612
1754
  name: "DshSwitchGroup",
1613
1755
  props: { label: String, disabled: Boolean, orientation: { type: String, default: "vertical" } },
1614
1756
  setup(e, { slots: t }) {
1615
1757
  return () => {
1616
1758
  var a;
1617
- return h("fieldset", { class: "dsh-switch-group", disabled: e.disabled, "data-orientation": e.orientation }, [
1618
- e.label ? h("legend", e.label) : null,
1759
+ return m("fieldset", { class: "dsh-switch-group", disabled: e.disabled, "data-orientation": e.orientation }, [
1760
+ e.label ? m("legend", e.label) : null,
1619
1761
  (a = t.default) == null ? void 0 : a.call(t)
1620
1762
  ]);
1621
1763
  };
1622
1764
  }
1623
- }), Ua = F({
1765
+ }), cn = N({
1624
1766
  name: "DshSpinner",
1625
1767
  props: { label: { type: String, default: "正在加载" } },
1626
1768
  setup(e, { attrs: t, slots: a }) {
1627
- return () => h(He, { ...t, loading: !0, role: "status", "aria-label": e.label }, a);
1769
+ return () => m(Ce, { ...t, loading: !0, role: "status", "aria-label": e.label }, a);
1628
1770
  }
1629
- }), xa = F({
1771
+ }), Yt = { sm: "small", md: "medium", lg: "large" }, It = Symbol("dsh-button-group-size"), dn = N({
1772
+ name: "DshButtonGroup",
1773
+ inheritAttrs: !1,
1774
+ props: {
1775
+ size: String,
1776
+ type: String,
1777
+ status: String,
1778
+ shape: String,
1779
+ disabled: Boolean
1780
+ },
1781
+ setup(e, { attrs: t, slots: a }) {
1782
+ const l = Z(() => {
1783
+ const n = e.size;
1784
+ return n === "sm" || n === "md" || n === "lg" ? Yt[n] : n;
1785
+ });
1786
+ return We(It, l), () => m(jt, { ...t, ...e, size: l.value }, a);
1787
+ }
1788
+ }), Fa = N({
1630
1789
  name: "DshButton",
1631
1790
  inheritAttrs: !1,
1632
1791
  props: {
@@ -1639,54 +1798,54 @@ const Ce = $t(!0), qa = Ce, Aa = Object.assign($t(!1), { RangePicker: Ce, MonthP
1639
1798
  long: Boolean,
1640
1799
  loadingFixedWidth: Boolean,
1641
1800
  variant: { type: String, default: "primary" },
1642
- size: { type: String, default: "md" },
1801
+ size: String,
1643
1802
  radius: String,
1644
1803
  disabled: Boolean,
1645
1804
  loading: Boolean,
1646
1805
  iconOnly: Boolean,
1647
1806
  block: Boolean
1648
1807
  },
1649
- setup(e, { attrs: t, slots: a, expose: i }) {
1650
- const n = q();
1651
- return i({ focus: () => {
1652
- var r, o;
1653
- return (o = (r = n.value) == null ? void 0 : r.$el) == null ? void 0 : o.focus();
1808
+ setup(e, { attrs: t, slots: a, expose: l }) {
1809
+ const n = me(It, void 0), r = Z(() => e.size ? Yt[e.size] : n == null ? void 0 : n.value), o = Z(() => ({ mini: "sm", small: "sm", medium: "md", large: "lg" })[r.value ?? "medium"]), i = j();
1810
+ return l({ focus: () => {
1811
+ var s, c;
1812
+ return (c = (s = i.value) == null ? void 0 : s.$el) == null ? void 0 : c.focus();
1654
1813
  }, blur: () => {
1655
- var r, o;
1656
- return (o = (r = n.value) == null ? void 0 : r.$el) == null ? void 0 : o.blur();
1657
- } }), () => h(Lt, {
1814
+ var s, c;
1815
+ return (c = (s = i.value) == null ? void 0 : s.$el) == null ? void 0 : c.blur();
1816
+ } }), () => m(Rt, {
1658
1817
  ...e,
1659
1818
  ...t,
1660
- ref: n,
1819
+ ref: i,
1661
1820
  class: ["dsh-button", t.class],
1662
1821
  "data-variant": e.variant,
1663
- "data-size": e.size,
1822
+ "data-size": o.value,
1664
1823
  "data-radius": e.radius,
1665
1824
  "data-icon-only": e.iconOnly || void 0,
1666
1825
  type: e.type ?? (e.variant === "primary" || e.variant === "danger" ? "primary" : "secondary"),
1667
- size: { sm: "small", md: "medium", lg: "large" }[e.size],
1826
+ size: r.value,
1668
1827
  disabled: e.disabled,
1669
1828
  loading: e.loading,
1670
1829
  long: e.block || e.long,
1671
1830
  "aria-busy": e.loading || void 0
1672
1831
  }, { ...a, default: () => {
1673
- var r, o, s;
1674
- return [(r = a.startContent) == null ? void 0 : r.call(a), (o = a.default) == null ? void 0 : o.call(a), (s = a.endContent) == null ? void 0 : s.call(a)];
1832
+ var s, c, v;
1833
+ return [(s = a.startContent) == null ? void 0 : s.call(a), (c = a.default) == null ? void 0 : c.call(a), (v = a.endContent) == null ? void 0 : v.call(a)];
1675
1834
  } });
1676
1835
  }
1677
- }), Ka = F({
1836
+ }), fn = N({
1678
1837
  name: "DshCloseButton",
1679
1838
  setup(e, { attrs: t }) {
1680
- return () => h(xa, { variant: "ghost", iconOnly: !0, "aria-label": "关闭", ...t }, () => "×");
1839
+ return () => m(Fa, { variant: "ghost", iconOnly: !0, "aria-label": "关闭", ...t }, () => "×");
1681
1840
  }
1682
- }), qe = {
1841
+ }), Ze = {
1683
1842
  value: Number,
1684
1843
  min: { type: Number, default: 0 },
1685
1844
  max: { type: Number, default: 100 },
1686
1845
  label: String,
1687
1846
  showValue: Boolean
1688
1847
  };
1689
- function je(e, t, a) {
1848
+ function Qe(e, t, a) {
1690
1849
  if (!Number.isFinite(t) || !Number.isFinite(a) || a <= t)
1691
1850
  throw new RangeError("进度最大值必须大于最小值且均为有限数值");
1692
1851
  if (e === void 0)
@@ -1695,13 +1854,13 @@ function je(e, t, a) {
1695
1854
  throw new RangeError("进度值必须是有限数值");
1696
1855
  return Math.min(1, Math.max(0, (e - t) / (a - t)));
1697
1856
  }
1698
- const Ga = F({
1857
+ const hn = N({
1699
1858
  name: "DshProgressBar",
1700
- props: qe,
1859
+ props: Ze,
1701
1860
  setup(e, { attrs: t }) {
1702
1861
  return () => {
1703
- const a = je(e.value, e.min, e.max);
1704
- return h("div", {
1862
+ const a = Qe(e.value, e.min, e.max);
1863
+ return m("div", {
1705
1864
  ...t,
1706
1865
  class: ["dsh-progress", t.class],
1707
1866
  role: "progressbar",
@@ -1710,18 +1869,18 @@ const Ga = F({
1710
1869
  "aria-valuemax": e.max,
1711
1870
  "aria-valuenow": e.value === void 0 ? void 0 : e.min + a * (e.max - e.min),
1712
1871
  "data-indeterminate": e.value === void 0 || void 0
1713
- }, [e.label ? h("span", e.label) : null, h("div", { class: "dsh-progress__track" }, [
1714
- h("div", { class: "dsh-progress__fill", style: { width: `${a * 100}%` } })
1715
- ]), e.showValue && e.value !== void 0 ? h("span", `${Math.round(a * 100)}%`) : null]);
1872
+ }, [e.label ? m("span", e.label) : null, m("div", { class: "dsh-progress__track" }, [
1873
+ m("div", { class: "dsh-progress__fill", style: { width: `${a * 100}%` } })
1874
+ ]), e.showValue && e.value !== void 0 ? m("span", `${Math.round(a * 100)}%`) : null]);
1716
1875
  };
1717
1876
  }
1718
- }), Za = F({
1877
+ }), mn = N({
1719
1878
  name: "DshProgressCircle",
1720
- props: qe,
1879
+ props: Ze,
1721
1880
  setup(e, { attrs: t }) {
1722
1881
  return () => {
1723
- const a = je(e.value, e.min, e.max);
1724
- return h("div", {
1882
+ const a = Qe(e.value, e.min, e.max);
1883
+ return m("div", {
1725
1884
  ...t,
1726
1885
  class: ["dsh-progress-circle", t.class],
1727
1886
  role: "progressbar",
@@ -1730,9 +1889,9 @@ const Ga = F({
1730
1889
  "aria-valuemax": e.max,
1731
1890
  "aria-valuenow": e.value === void 0 ? void 0 : e.min + a * (e.max - e.min),
1732
1891
  "data-indeterminate": e.value === void 0 || void 0
1733
- }, [h("svg", { viewBox: "0 0 40 40", "aria-hidden": "true" }, [
1734
- h("circle", { cx: 20, cy: 20, r: 17, class: "dsh-progress-circle__track" }),
1735
- h("circle", {
1892
+ }, [m("svg", { viewBox: "0 0 40 40", "aria-hidden": "true" }, [
1893
+ m("circle", { cx: 20, cy: 20, r: 17, class: "dsh-progress-circle__track" }),
1894
+ m("circle", {
1736
1895
  cx: 20,
1737
1896
  cy: 20,
1738
1897
  r: 17,
@@ -1740,16 +1899,16 @@ const Ga = F({
1740
1899
  class: "dsh-progress-circle__fill",
1741
1900
  "stroke-dasharray": `${e.value === void 0 ? 25 : a * 100} 100`
1742
1901
  })
1743
- ]), e.showValue && e.value !== void 0 ? h("span", `${Math.round(a * 100)}%`) : null]);
1902
+ ]), e.showValue && e.value !== void 0 ? m("span", `${Math.round(a * 100)}%`) : null]);
1744
1903
  };
1745
1904
  }
1746
- }), Qa = F({
1905
+ }), vn = N({
1747
1906
  name: "DshMeter",
1748
- props: { ...qe, value: { type: Number, required: !0 } },
1907
+ props: { ...Ze, value: { type: Number, required: !0 } },
1749
1908
  setup(e, { attrs: t }) {
1750
1909
  return () => {
1751
- const a = je(e.value, e.min, e.max);
1752
- return h("div", {
1910
+ const a = Qe(e.value, e.min, e.max);
1911
+ return m("div", {
1753
1912
  ...t,
1754
1913
  role: "meter",
1755
1914
  class: ["dsh-meter", t.class],
@@ -1757,14 +1916,14 @@ const Ga = F({
1757
1916
  "aria-valuemin": e.min,
1758
1917
  "aria-valuemax": e.max,
1759
1918
  "aria-valuenow": e.min + a * (e.max - e.min)
1760
- }, [e.label ? h("span", e.label) : null, h("div", { class: "dsh-progress__track" }, [
1761
- h("div", { class: "dsh-progress__fill", style: { width: `${a * 100}%` } })
1762
- ]), e.showValue ? h("span", String(e.value)) : null]);
1919
+ }, [e.label ? m("span", e.label) : null, m("div", { class: "dsh-progress__track" }, [
1920
+ m("div", { class: "dsh-progress__fill", style: { width: `${a * 100}%` } })
1921
+ ]), e.showValue ? m("span", String(e.value)) : null]);
1763
1922
  };
1764
1923
  }
1765
- }), $a = 'button:not(:disabled), [href], input:not(:disabled), select:not(:disabled), textarea:not(:disabled), [tabindex]:not([tabindex="-1"])', ne = [];
1766
- function We(e, t, a) {
1767
- return F({
1924
+ }), za = 'button:not(:disabled), [href], input:not(:disabled), select:not(:disabled), textarea:not(:disabled), [tabindex]:not([tabindex="-1"])', oe = [];
1925
+ function Je(e, t, a) {
1926
+ return N({
1768
1927
  name: e,
1769
1928
  inheritAttrs: !1,
1770
1929
  props: {
@@ -1772,226 +1931,227 @@ function We(e, t, a) {
1772
1931
  defaultVisible: Boolean,
1773
1932
  title: String,
1774
1933
  label: String,
1934
+ scrollGutter: Boolean,
1775
1935
  escToClose: { type: Boolean, default: !0 },
1776
1936
  maskClosable: { type: Boolean, default: void 0 },
1777
1937
  popupContainer: { type: [String, Object] }
1778
1938
  },
1779
1939
  emits: ["update:visible", "ok", "cancel", "open", "close", "beforeOpen", "beforeClose"],
1780
- setup(i, { attrs: n, slots: r, emit: o, expose: s }) {
1781
- const c = se(), p = W();
1782
- ta(p);
1783
- const d = q(i.defaultVisible), M = J(() => i.visible ?? d.value), l = `dsh-dialog-${Se().replace(/[^a-zA-Z0-9_-]/g, "")}`, x = `${l}-title`;
1784
- let w, $, u;
1785
- le(c.container, (P) => {
1786
- var f;
1787
- if ((f = p.value) == null || f.remove(), P) {
1788
- const S = document.createElement("div");
1789
- S.dataset.dshDialogOwner = l, P.appendChild(S), p.value = S;
1940
+ setup(l, { attrs: n, slots: r, emit: o, expose: i }) {
1941
+ const s = ue(), c = W();
1942
+ ma(c);
1943
+ const v = j(l.defaultVisible), g = Z(() => l.visible ?? v.value), f = `dsh-dialog-${ke().replace(/[^a-zA-Z0-9_-]/g, "")}`, h = `${f}-title`;
1944
+ let A, T, d;
1945
+ le(s.container, (L) => {
1946
+ var x;
1947
+ if ((x = c.value) == null || x.remove(), L) {
1948
+ const M = document.createElement("div");
1949
+ M.dataset.dshDialogOwner = f, L.appendChild(M), c.value = M;
1790
1950
  } else
1791
- p.value = void 0;
1951
+ c.value = void 0;
1792
1952
  }, { immediate: !0, flush: "post" });
1793
- const m = (P) => {
1794
- d.value = P, o("update:visible", P);
1795
- }, V = () => m(!1), A = () => m(!0);
1796
- s({ open: A, close: V });
1797
- const Y = (P) => {
1798
- if (u == null || u(), u = void 0, w) {
1799
- const f = ne.indexOf(w);
1800
- f >= 0 && ne.splice(f, 1);
1953
+ const w = (L) => {
1954
+ v.value = L, o("update:visible", L);
1955
+ }, C = () => w(!1), b = () => w(!0);
1956
+ i({ open: b, close: C });
1957
+ const P = (L) => {
1958
+ if (d == null || d(), d = void 0, A) {
1959
+ const x = oe.indexOf(A);
1960
+ x >= 0 && oe.splice(x, 1);
1801
1961
  }
1802
- w = void 0, $ != null && $.isConnected && $.focus(), $ = void 0;
1803
- }, L = () => {
1804
- const P = typeof i.popupContainer == "string" ? document.querySelector(i.popupContainer) : i.popupContainer ?? c.container.value;
1805
- if (w = (P == null ? void 0 : P.querySelector(t ? `.${l} .arco-drawer` : `.${l}`)) ?? void 0, !w || ne.includes(w))
1962
+ A = void 0, T != null && T.isConnected && T.focus({ preventScroll: !0 }), T = void 0;
1963
+ }, Y = () => {
1964
+ const L = typeof l.popupContainer == "string" ? document.querySelector(l.popupContainer) : l.popupContainer ?? s.container.value;
1965
+ if (A = (L == null ? void 0 : L.querySelector(t ? `.${f} .arco-drawer` : `.${f}`)) ?? void 0, !A || oe.includes(A))
1806
1966
  return;
1807
- const f = w;
1808
- f.id = l, ne.push(f), f.setAttribute("role", a ? "alertdialog" : "dialog"), f.setAttribute("aria-modal", "true"), f.tabIndex = -1, i.label ? f.setAttribute("aria-label", i.label) : (i.title || r.header || r.title) && f.setAttribute("aria-labelledby", x);
1809
- const S = f.querySelector(".arco-modal-close-btn, .arco-drawer-close-btn");
1810
- S && (S.tabIndex = 0, S.setAttribute("aria-label", "关闭"));
1811
- const v = () => Array.from(f.querySelectorAll($a)).filter((T) => T.getClientRects().length > 0 && T.getAttribute("aria-hidden") !== "true" && !T.closest("[inert]")), C = (T) => {
1812
- if (ne[ne.length - 1] !== f || (S && T.target === S && (T.key === "Enter" || T.key === " ") && (T.preventDefault(), S.click()), T.key !== "Tab"))
1967
+ const x = A;
1968
+ x.id = f, oe.push(x), x.setAttribute("role", a ? "alertdialog" : "dialog"), x.setAttribute("aria-modal", "true"), x.tabIndex = -1, l.label ? x.setAttribute("aria-label", l.label) : (l.title || r.header || r.title) && x.setAttribute("aria-labelledby", h);
1969
+ const M = x.querySelector(".arco-modal-close-btn, .arco-drawer-close-btn");
1970
+ M && (M.tabIndex = 0, M.setAttribute("aria-label", "关闭"));
1971
+ const $ = () => Array.from(x.querySelectorAll(za)).filter((B) => B.getClientRects().length > 0 && B.getAttribute("aria-hidden") !== "true" && !B.closest("[inert]")), u = (B) => {
1972
+ if (oe[oe.length - 1] !== x || (M && B.target === M && (B.key === "Enter" || B.key === " ") && (B.preventDefault(), M.click()), B.key !== "Tab"))
1813
1973
  return;
1814
- const b = v(), D = b[0], g = b[b.length - 1];
1815
- !D || !g ? (T.preventDefault(), f.focus()) : T.shiftKey && (document.activeElement === D || document.activeElement === f) ? (T.preventDefault(), g.focus()) : !T.shiftKey && (document.activeElement === g || document.activeElement === f) && (T.preventDefault(), D.focus());
1816
- }, O = (T) => {
1817
- var D;
1818
- const b = T.target instanceof Element ? T.target.closest(".arco-trigger-popup") : null;
1819
- b && ((D = p.value) != null && D.contains(b)) || ne[ne.length - 1] === f && T.target instanceof Node && !f.contains(T.target) && (v()[0] ?? f).focus();
1974
+ const p = $(), y = p[0], S = p[p.length - 1];
1975
+ !y || !S ? (B.preventDefault(), x.focus()) : B.shiftKey && (document.activeElement === y || document.activeElement === x) ? (B.preventDefault(), S.focus()) : !B.shiftKey && (document.activeElement === S || document.activeElement === x) && (B.preventDefault(), y.focus());
1976
+ }, D = (B) => {
1977
+ var y;
1978
+ const p = B.target instanceof Element ? B.target.closest(".arco-trigger-popup") : null;
1979
+ p && ((y = c.value) != null && y.contains(p)) || oe[oe.length - 1] === x && B.target instanceof Node && !x.contains(B.target) && ($()[0] ?? x).focus();
1820
1980
  };
1821
- f.addEventListener("keydown", C), document.addEventListener("focusin", O), u = () => {
1822
- f.removeEventListener("keydown", C), document.removeEventListener("focusin", O);
1823
- }, (f.querySelector("[autofocus]") ?? f).focus();
1981
+ x.addEventListener("keydown", u), document.addEventListener("focusin", D), d = () => {
1982
+ x.removeEventListener("keydown", u), document.removeEventListener("focusin", D);
1983
+ }, (x.querySelector("[autofocus]") ?? x).focus({ preventScroll: !0 });
1824
1984
  };
1825
- return le(M, async (P) => {
1826
- P && typeof document < "u" ? ($ = document.activeElement instanceof HTMLElement ? document.activeElement : void 0, await re(), L()) : P || Y();
1827
- }, { immediate: !0, flush: "post" }), me(() => {
1828
- var P;
1829
- Y(), (P = p.value) == null || P.remove();
1985
+ return le(g, async (L) => {
1986
+ L && typeof document < "u" ? (T = document.activeElement instanceof HTMLElement ? document.activeElement : void 0, await se(), Y()) : L || P();
1987
+ }, { immediate: !0, flush: "post" }), pe(() => {
1988
+ var L;
1989
+ P(), (L = c.value) == null || L.remove();
1830
1990
  }), () => {
1831
- var C, O;
1832
- const P = { open: A, close: V, visible: M.value }, f = {
1991
+ var u, D;
1992
+ const L = { open: b, close: C, visible: g.value }, x = {
1833
1993
  ...n,
1834
- visible: M.value,
1835
- title: i.title,
1836
- popupContainer: i.popupContainer ?? c.container.value,
1837
- escToClose: i.escToClose,
1838
- maskClosable: i.maskClosable ?? !a,
1839
- "onUpdate:visible": m,
1840
- onOk: (_) => o("ok", _),
1841
- onCancel: (_) => o("cancel", _),
1994
+ visible: g.value,
1995
+ title: l.title,
1996
+ popupContainer: l.popupContainer ?? s.container.value,
1997
+ escToClose: l.escToClose,
1998
+ maskClosable: l.maskClosable ?? !a,
1999
+ "onUpdate:visible": w,
2000
+ onOk: (I) => o("ok", I),
2001
+ onCancel: (I) => o("cancel", I),
1842
2002
  onOpen: () => {
1843
- L(), o("open");
2003
+ Y(), o("open");
1844
2004
  },
1845
2005
  onClose: () => {
1846
- Y(), o("close");
2006
+ P(), o("close");
1847
2007
  },
1848
2008
  onBeforeOpen: () => o("beforeOpen"),
1849
2009
  onBeforeClose: () => o("beforeClose")
1850
- }, S = {
2010
+ }, M = {
1851
2011
  ...r,
1852
2012
  trigger: void 0,
1853
- title: i.title || r.header || r.title ? () => {
1854
- var _, T;
1855
- return h("span", { id: x }, ((_ = r.header) == null ? void 0 : _.call(r, P)) ?? ((T = r.title) == null ? void 0 : T.call(r, P)) ?? i.title);
2013
+ title: l.title || r.header || r.title ? () => {
2014
+ var I, B;
2015
+ return m("span", { id: h }, ((I = r.header) == null ? void 0 : I.call(r, L)) ?? ((B = r.title) == null ? void 0 : B.call(r, L)) ?? l.title);
1856
2016
  } : void 0,
1857
2017
  header: t && r.header ? () => {
1858
- var _;
1859
- return h("div", { id: x }, (_ = r.header) == null ? void 0 : _.call(r, P));
2018
+ var I;
2019
+ return m("div", { id: h }, (I = r.header) == null ? void 0 : I.call(r, L));
1860
2020
  } : void 0,
1861
- default: () => h(lt, { outerClass: "dsh-overlay-scroll", style: { maxHeight: "inherit", overflow: "auto" } }, {
2021
+ default: () => m(dt, { outerClass: l.scrollGutter ? "dsh-overlay-scroll dsh-overlay-scroll--gutter" : "dsh-overlay-scroll", style: { maxHeight: "inherit", overflow: "auto" } }, {
1862
2022
  default: () => {
1863
- var _;
1864
- return (_ = r.default) == null ? void 0 : _.call(r, P);
2023
+ var I;
2024
+ return (I = r.default) == null ? void 0 : I.call(r, L);
1865
2025
  }
1866
2026
  }),
1867
2027
  footer: r.footer ? () => {
1868
- var _;
1869
- return (_ = r.footer) == null ? void 0 : _.call(r, P);
2028
+ var I;
2029
+ return (I = r.footer) == null ? void 0 : I.call(r, L);
1870
2030
  } : void 0
1871
2031
  };
1872
- return [(O = (C = r.trigger) == null ? void 0 : C.call(r, P)) == null ? void 0 : O.map((_) => ut(_) ? Ee(_, {
2032
+ return [(D = (u = r.trigger) == null ? void 0 : u.call(r, L)) == null ? void 0 : D.map((I) => ht(I) ? Re(I, {
1873
2033
  "aria-haspopup": "dialog",
1874
- "aria-expanded": M.value,
1875
- "aria-controls": l,
1876
- class: { "dsh-overlay-trigger-open": M.value },
1877
- onClick: (T) => {
1878
- T.defaultPrevented || A();
2034
+ "aria-expanded": g.value,
2035
+ "aria-controls": f,
2036
+ class: { "dsh-overlay-trigger-open": g.value },
2037
+ onClick: (B) => {
2038
+ B.defaultPrevented || b();
1879
2039
  }
1880
- }) : _), c.container.value ? t ? h(It, {
1881
- ...f,
2040
+ }) : I), s.container.value ? t ? m(qt, {
2041
+ ...x,
1882
2042
  width: typeof n.width == "string" || typeof n.width == "number" ? n.width : "var(--dsh-drawer-width)",
1883
2043
  height: typeof n.height == "string" || typeof n.height == "number" ? n.height : "auto",
1884
- class: ["dsh-drawer", `dsh-drawer-${n.placement === "top" || n.placement === "bottom" ? n.placement : "side"}`, l, n.class]
1885
- }, S) : h(Bt, { ...f, alignCenter: !0, modalClass: ["dsh-modal", l, n.modalClass] }, S) : null];
2044
+ class: ["dsh-drawer", `dsh-drawer-${n.placement === "top" || n.placement === "bottom" ? n.placement : "side"}`, f, n.class]
2045
+ }, M) : m(Wt, { alignCenter: !0, ...x, modalClass: ["dsh-modal", f, n.modalClass] }, M) : null];
1886
2046
  };
1887
2047
  }
1888
2048
  });
1889
2049
  }
1890
- const Ca = We("DshModal", !1, !1), _a = We("DshDrawer", !0, !1), Ja = We("DshAlertDialog", !1, !0);
1891
- function Pa() {
1892
- return se().toast;
2050
+ const Ha = Je("DshModal", !1, !1), Ra = Je("DshDrawer", !0, !1), gn = Je("DshAlertDialog", !1, !0);
2051
+ function pn() {
2052
+ return ue().toast;
1893
2053
  }
1894
- function Xa() {
1895
- const e = Pa(), t = (i) => (n) => e.show({
1896
- ...typeof n == "string" ? { content: n } : n,
2054
+ function bn() {
2055
+ const { toast: e, rtl: t } = ue(), a = (n) => (r) => e.show({
2056
+ ...typeof r == "string" ? { content: r } : r,
1897
2057
  kind: "message",
1898
- type: i
1899
- }), a = (i) => (n) => e.show({
1900
- position: "topRight",
1901
- ...typeof n == "string" ? { content: n } : n,
2058
+ type: n
2059
+ }), l = (n) => (r) => e.show({
2060
+ position: t.value ? "topLeft" : "topRight",
2061
+ ...typeof r == "string" ? { content: r } : r,
1902
2062
  kind: "notification",
1903
- type: i
2063
+ type: n
1904
2064
  });
1905
2065
  return {
1906
2066
  message: {
1907
- info: t("info"),
1908
- success: t("success"),
1909
- warning: t("warning"),
1910
- error: t("error"),
1911
- loading: t("loading"),
1912
- normal: t("normal"),
1913
- clear: (i) => e.clear(i, "message")
1914
- },
1915
- notification: {
1916
2067
  info: a("info"),
1917
2068
  success: a("success"),
1918
2069
  warning: a("warning"),
1919
2070
  error: a("error"),
1920
- remove: (i) => e.remove(i, "notification"),
1921
- clear: (i) => e.clear(i, "notification")
2071
+ loading: a("loading"),
2072
+ normal: a("normal"),
2073
+ clear: (n) => e.clear(n, "message")
2074
+ },
2075
+ notification: {
2076
+ info: l("info"),
2077
+ success: l("success"),
2078
+ warning: l("warning"),
2079
+ error: l("error"),
2080
+ remove: (n) => e.remove(n, "notification"),
2081
+ clear: (n) => e.clear(n, "notification")
1922
2082
  }
1923
2083
  };
1924
2084
  }
1925
- const ot = /* @__PURE__ */ new WeakMap();
1926
- function en() {
1927
- const e = se(), t = ot.get(e.mountOverlay);
2085
+ const ct = /* @__PURE__ */ new WeakMap();
2086
+ function yn() {
2087
+ const e = ue(), t = ct.get(e.mountOverlay);
1928
2088
  if (t)
1929
2089
  return t;
1930
- const a = {}, i = /* @__PURE__ */ new Set(), n = (s) => {
1931
- const c = ye({ ...a, ...s, visible: !0 });
1932
- let p = !1;
1933
- const d = () => {
1934
- var l;
1935
- p || (p = !0, i.delete(d), M(), (l = c.onClose) == null || l.call(c));
1936
- }, M = e.mountOverlay(() => {
1937
- const { title: l, content: x, footer: w, ...$ } = c;
1938
- return h(Ca, {
1939
- ...$,
1940
- footer: typeof w == "boolean" ? w : !0,
1941
- "onUpdate:visible": (u) => {
1942
- c.visible = u;
2090
+ const a = {}, l = /* @__PURE__ */ new Set(), n = (i) => {
2091
+ const s = Me({ ...a, ...i, visible: !0 });
2092
+ let c = !1;
2093
+ const v = () => {
2094
+ var f;
2095
+ c || (c = !0, l.delete(v), g(), (f = s.onClose) == null || f.call(s));
2096
+ }, g = e.mountOverlay(() => {
2097
+ const { title: f, content: h, footer: A, ...T } = s;
2098
+ return m(Ha, {
2099
+ ...T,
2100
+ footer: typeof A == "boolean" ? A : !0,
2101
+ "onUpdate:visible": (d) => {
2102
+ s.visible = d;
1943
2103
  },
1944
- onClose: d
2104
+ onClose: v
1945
2105
  }, {
1946
- title: l === void 0 ? void 0 : () => typeof l == "function" ? l() : l,
1947
- default: () => typeof x == "function" ? x() : x,
1948
- footer: w !== void 0 && typeof w != "boolean" ? () => typeof w == "function" ? w() : w : void 0
2106
+ title: f === void 0 ? void 0 : () => typeof f == "function" ? f() : f,
2107
+ default: () => typeof h == "function" ? h() : h,
2108
+ footer: A !== void 0 && typeof A != "boolean" ? () => typeof A == "function" ? A() : A : void 0
1949
2109
  });
1950
2110
  });
1951
- return i.add(d), { close: d, update: (l) => Object.assign(c, l) };
2111
+ return l.add(v), { close: v, update: (f) => Object.assign(s, f) };
1952
2112
  }, o = {
1953
2113
  modal: {
1954
2114
  open: n,
1955
- confirm: (s) => n({ maskClosable: !1, ...s }),
1956
- info: (s) => n({ hideCancel: !0, ...s, messageType: "info" }),
1957
- success: (s) => n({ hideCancel: !0, ...s, messageType: "success" }),
1958
- warning: (s) => n({ hideCancel: !0, ...s, messageType: "warning" }),
1959
- error: (s) => n({ hideCancel: !0, ...s, messageType: "error" }),
1960
- config: (s) => {
1961
- Object.assign(a, s);
2115
+ confirm: (i) => n({ maskClosable: !1, ...i }),
2116
+ info: (i) => n({ hideCancel: !0, ...i, messageType: "info" }),
2117
+ success: (i) => n({ hideCancel: !0, ...i, messageType: "success" }),
2118
+ warning: (i) => n({ hideCancel: !0, ...i, messageType: "warning" }),
2119
+ error: (i) => n({ hideCancel: !0, ...i, messageType: "error" }),
2120
+ config: (i) => {
2121
+ Object.assign(a, i);
1962
2122
  },
1963
- destroyAll: () => [...i].forEach((s) => s())
2123
+ destroyAll: () => [...l].forEach((i) => i())
1964
2124
  },
1965
- drawer: { open: (s) => {
1966
- const c = ye({ ...s, visible: !0 });
1967
- let p = !1;
1968
- const d = () => {
1969
- var l;
1970
- p || (p = !0, M(), (l = c.onClose) == null || l.call(c));
1971
- }, M = e.mountOverlay(() => {
1972
- const { title: l, content: x, footer: w, header: $, ...u } = c;
1973
- return h(_a, {
1974
- ...u,
1975
- header: typeof $ == "boolean" ? $ : !0,
1976
- footer: typeof w == "boolean" ? w : !0,
1977
- "onUpdate:visible": (m) => {
1978
- c.visible = m;
2125
+ drawer: { open: (i) => {
2126
+ const s = Me({ ...i, visible: !0 });
2127
+ let c = !1;
2128
+ const v = () => {
2129
+ var f;
2130
+ c || (c = !0, g(), (f = s.onClose) == null || f.call(s));
2131
+ }, g = e.mountOverlay(() => {
2132
+ const { title: f, content: h, footer: A, header: T, ...d } = s;
2133
+ return m(Ra, {
2134
+ ...d,
2135
+ header: typeof T == "boolean" ? T : !0,
2136
+ footer: typeof A == "boolean" ? A : !0,
2137
+ "onUpdate:visible": (w) => {
2138
+ s.visible = w;
1979
2139
  },
1980
- onClose: d
2140
+ onClose: v
1981
2141
  }, {
1982
- title: l === void 0 ? void 0 : () => typeof l == "function" ? l() : l,
1983
- default: () => typeof x == "function" ? x() : x,
1984
- header: $ !== void 0 && typeof $ != "boolean" ? () => typeof $ == "function" ? $() : $ : void 0,
1985
- footer: w !== void 0 && typeof w != "boolean" ? () => typeof w == "function" ? w() : w : void 0
2142
+ title: f === void 0 ? void 0 : () => typeof f == "function" ? f() : f,
2143
+ default: () => typeof h == "function" ? h() : h,
2144
+ header: T !== void 0 && typeof T != "boolean" ? () => typeof T == "function" ? T() : T : void 0,
2145
+ footer: A !== void 0 && typeof A != "boolean" ? () => typeof A == "function" ? A() : A : void 0
1986
2146
  });
1987
2147
  });
1988
- return { close: d, update: (l) => Object.assign(c, l) };
2148
+ return { close: v, update: (f) => Object.assign(s, f) };
1989
2149
  } }
1990
2150
  };
1991
- return ot.set(e.mountOverlay, o), o;
2151
+ return ct.set(e.mountOverlay, o), o;
1992
2152
  }
1993
- function he(e, t, a, i = !0) {
1994
- const n = e.flatMap((c, p) => c.disabled ? [] : [p]);
2153
+ function ge(e, t, a, l = !0) {
2154
+ const n = e.flatMap((s, c) => s.disabled ? [] : [c]);
1995
2155
  if (n.length === 0)
1996
2156
  return -1;
1997
2157
  if (a === "Home")
@@ -2004,76 +2164,87 @@ function he(e, t, a, i = !0) {
2004
2164
  const o = n.indexOf(t);
2005
2165
  if (o === -1)
2006
2166
  return r > 0 ? n[0] : n[n.length - 1];
2007
- const s = o + r;
2008
- return n[i ? (s + n.length) % n.length : Math.max(0, Math.min(n.length - 1, s))];
2167
+ const i = o + r;
2168
+ return n[l ? (i + n.length) % n.length : Math.max(0, Math.min(n.length - 1, i))];
2009
2169
  }
2010
- function Ta(e, t, a) {
2011
- const i = a.trim().toLocaleLowerCase();
2012
- if (i.length === 0)
2170
+ function ja(e, t, a) {
2171
+ const l = a.trim().toLocaleLowerCase();
2172
+ if (l.length === 0)
2013
2173
  return -1;
2014
2174
  for (let n = 1; n <= e.length; n += 1) {
2015
2175
  const r = (t + n + e.length) % e.length, o = e[r];
2016
- if (!o.disabled && o.label.toLocaleLowerCase().startsWith(i))
2176
+ if (!o.disabled && o.label.toLocaleLowerCase().startsWith(l))
2017
2177
  return r;
2018
2178
  }
2019
2179
  return -1;
2020
2180
  }
2021
- function _t(e, t, a, i) {
2181
+ function Bt(e, t, a, l) {
2022
2182
  const n = Array.isArray(e) ? e : e === void 0 ? [] : [e], r = n.includes(t);
2023
- return a ? r ? !i && n.length === 1 ? [...n] : n.filter((o) => o !== t) : [...n, t] : r && i ? void 0 : t;
2183
+ return a ? r ? !l && n.length === 1 ? e : n.filter((o) => o !== t) : [...n, t] : r && l ? void 0 : t;
2024
2184
  }
2025
- function ce(e, t, a) {
2185
+ function fe(e, t, a) {
2026
2186
  return (a ? e.replace(/[^0-9]/g, "") : e).slice(0, t);
2027
2187
  }
2028
- function Va(e, t, a, i, n, r) {
2029
- const o = ce(t, n, r), s = ce(e.slice(0, a) + o + e.slice(i), n, r);
2030
- return { value: s, cursor: Math.min(a + o.length, s.length) };
2188
+ function qa(e, t, a, l, n, r) {
2189
+ const o = fe(t, n, r), i = fe(e.slice(0, a) + o + e.slice(l), n, r);
2190
+ return { value: i, cursor: Math.min(a + o.length, i.length) };
2031
2191
  }
2032
- function ze() {
2192
+ function Xe() {
2033
2193
  var t;
2034
- const e = ((t = ct()) == null ? void 0 : t.vnode.props) ?? {};
2194
+ const e = ((t = Ue()) == null ? void 0 : t.vnode.props) ?? {};
2035
2195
  return "modelValue" in e || "model-value" in e;
2036
2196
  }
2037
- const tn = F({
2197
+ const wn = N({
2038
2198
  name: "DshLink",
2039
2199
  inheritAttrs: !1,
2040
- props: { href: String, disabled: Boolean, external: Boolean },
2200
+ props: {
2201
+ href: String,
2202
+ disabled: Boolean,
2203
+ external: Boolean,
2204
+ loading: Boolean,
2205
+ icon: Boolean,
2206
+ hoverable: { type: Boolean, default: !0 },
2207
+ status: String
2208
+ },
2041
2209
  emits: ["click"],
2042
- setup(e, { attrs: t, slots: a, emit: i }) {
2210
+ setup(e, { attrs: t, slots: a, emit: l }) {
2043
2211
  return () => {
2044
- var n;
2045
- return h("a", {
2212
+ const n = e.disabled || e.loading;
2213
+ return m(Ut, {
2046
2214
  ...t,
2215
+ disabled: e.disabled,
2216
+ loading: e.loading,
2217
+ icon: e.icon,
2218
+ hoverable: e.hoverable,
2219
+ status: e.status,
2047
2220
  class: ["dsh-link", t.class],
2048
2221
  role: "link",
2049
- href: e.disabled ? void 0 : e.href,
2050
- target: e.disabled ? void 0 : e.external ? "_blank" : t.target,
2222
+ href: n ? void 0 : e.href,
2223
+ target: n ? void 0 : e.external ? "_blank" : t.target,
2051
2224
  rel: e.external || t.target === "_blank" ? `${t.rel ?? ""} noopener noreferrer`.trim() : t.rel,
2052
- tabindex: e.disabled ? -1 : t.tabindex,
2053
- "aria-disabled": e.disabled || void 0,
2054
- onClick(r) {
2055
- if (e.disabled) {
2056
- r.preventDefault(), r.stopImmediatePropagation();
2057
- return;
2058
- }
2059
- i("click", r);
2060
- }
2061
- }, (n = a.default) == null ? void 0 : n.call(a));
2225
+ tabindex: n ? -1 : t.tabindex,
2226
+ "aria-disabled": n || void 0,
2227
+ "aria-busy": e.loading || void 0,
2228
+ onClickCapture: n ? (r) => {
2229
+ r.preventDefault(), r.stopImmediatePropagation();
2230
+ } : t.onClickCapture,
2231
+ onClick: (r) => l("click", r)
2232
+ }, a);
2062
2233
  };
2063
2234
  }
2064
- }), an = F({
2235
+ }), Dn = N({
2065
2236
  name: "DshKbd",
2066
2237
  props: { keys: { type: Array, default: () => [] } },
2067
2238
  setup(e, { slots: t }) {
2068
2239
  return () => {
2069
2240
  var a;
2070
- return h("kbd", { class: "dsh-kbd" }, [
2071
- ...e.keys.map((i) => h("span", { class: "dsh-kbd__key", key: i }, i)),
2241
+ return m("kbd", { class: "dsh-kbd" }, [
2242
+ ...e.keys.map((l) => m("span", { class: "dsh-kbd__key", key: l }, l)),
2072
2243
  (a = t.default) == null ? void 0 : a.call(t)
2073
2244
  ]);
2074
2245
  };
2075
2246
  }
2076
- }), nn = F({
2247
+ }), Sn = N({
2077
2248
  name: "DshSurface",
2078
2249
  props: {
2079
2250
  as: { type: String, default: "div" },
@@ -2082,67 +2253,67 @@ const tn = F({
2082
2253
  setup(e, { slots: t }) {
2083
2254
  return () => {
2084
2255
  var a;
2085
- return h(e.as, { class: "dsh-surface", "data-variant": e.variant }, (a = t.default) == null ? void 0 : a.call(t));
2256
+ return m(e.as, { class: "dsh-surface", "data-variant": e.variant }, (a = t.default) == null ? void 0 : a.call(t));
2086
2257
  };
2087
2258
  }
2088
- }), rn = F({
2259
+ }), Mn = N({
2089
2260
  name: "DshHeader",
2090
2261
  setup(e, { slots: t }) {
2091
2262
  return () => {
2092
2263
  var a;
2093
- return h("header", { class: "dsh-header" }, (a = t.default) == null ? void 0 : a.call(t));
2264
+ return m("header", { class: "dsh-header" }, (a = t.default) == null ? void 0 : a.call(t));
2094
2265
  };
2095
2266
  }
2096
- }), Oa = F({
2267
+ }), Wa = N({
2097
2268
  name: "DshLabel",
2098
2269
  props: { required: Boolean },
2099
2270
  setup(e, { slots: t }) {
2100
2271
  return () => {
2101
2272
  var a;
2102
- return h("label", { class: "dsh-label" }, [(a = t.default) == null ? void 0 : a.call(t), e.required ? h("span", { "aria-hidden": "true", class: "dsh-label__required" }, " *") : null]);
2273
+ return m("label", { class: "dsh-label" }, [(a = t.default) == null ? void 0 : a.call(t), e.required ? m("span", { "aria-hidden": "true", class: "dsh-label__required" }, " *") : null]);
2103
2274
  };
2104
2275
  }
2105
- }), Ya = F({
2276
+ }), Ua = N({
2106
2277
  name: "DshDescription",
2107
2278
  setup(e, { slots: t }) {
2108
2279
  return () => {
2109
2280
  var a;
2110
- return h("div", { class: "dsh-description" }, (a = t.default) == null ? void 0 : a.call(t));
2281
+ return m("div", { class: "dsh-description" }, (a = t.default) == null ? void 0 : a.call(t));
2111
2282
  };
2112
2283
  }
2113
- }), Pt = F({
2284
+ }), Lt = N({
2114
2285
  name: "DshFieldError",
2115
2286
  setup(e, { slots: t }) {
2116
2287
  return () => {
2117
2288
  var a;
2118
- return h("div", { class: "dsh-field-error", "aria-live": "polite" }, (a = t.default) == null ? void 0 : a.call(t));
2289
+ return m("div", { class: "dsh-field-error", "aria-live": "polite" }, (a = t.default) == null ? void 0 : a.call(t));
2119
2290
  };
2120
2291
  }
2121
- }), on = Pt, ln = F({
2292
+ }), kn = Lt, An = N({
2122
2293
  name: "DshFieldset",
2123
2294
  props: { legend: String, disabled: Boolean },
2124
2295
  setup(e, { slots: t }) {
2125
2296
  return () => {
2126
- var a, i;
2127
- return h("fieldset", { class: "dsh-fieldset", disabled: e.disabled }, [
2128
- t.legend || e.legend ? h("legend", {}, ((a = t.legend) == null ? void 0 : a.call(t)) ?? e.legend) : null,
2129
- (i = t.default) == null ? void 0 : i.call(t)
2297
+ var a, l;
2298
+ return m("fieldset", { class: "dsh-fieldset", disabled: e.disabled }, [
2299
+ t.legend || e.legend ? m("legend", {}, ((a = t.legend) == null ? void 0 : a.call(t)) ?? e.legend) : null,
2300
+ (l = t.default) == null ? void 0 : l.call(t)
2130
2301
  ]);
2131
2302
  };
2132
2303
  }
2133
- }), sn = F({
2304
+ }), xn = N({
2134
2305
  name: "DshInputGroup",
2135
2306
  setup(e, { slots: t }) {
2136
2307
  return () => {
2137
2308
  var a;
2138
- return h("div", { class: "dsh-input-group" }, [
2139
- t.start ? h("span", { class: "dsh-input-group__start" }, t.start()) : null,
2309
+ return m("div", { class: "dsh-input-group" }, [
2310
+ t.start ? m("span", { class: "dsh-input-group__start" }, t.start()) : null,
2140
2311
  (a = t.default) == null ? void 0 : a.call(t),
2141
- t.end ? h("span", { class: "dsh-input-group__end" }, t.end()) : null
2312
+ t.end ? m("span", { class: "dsh-input-group__end" }, t.end()) : null
2142
2313
  ]);
2143
2314
  };
2144
2315
  }
2145
- }), Tt = {
2316
+ }), Et = {
2146
2317
  modelValue: String,
2147
2318
  defaultValue: { type: String, default: "" },
2148
2319
  id: String,
@@ -2156,86 +2327,88 @@ const tn = F({
2156
2327
  name: String,
2157
2328
  placeholder: String,
2158
2329
  type: { type: String, default: "text" }
2159
- }, La = F({
2330
+ }, Ka = N({
2160
2331
  name: "DshTextField",
2161
2332
  inheritAttrs: !1,
2162
- props: Tt,
2333
+ props: Et,
2163
2334
  emits: ["update:modelValue", "change", "input", "focus", "blur"],
2164
- setup(e, { attrs: t, slots: a, emit: i, expose: n }) {
2165
- const r = ze(), o = Se(), s = q(null), c = q(e.defaultValue);
2335
+ setup(e, { attrs: t, slots: a, emit: l, expose: n }) {
2336
+ const r = Xe(), o = ke(), i = j(null), s = j(e.defaultValue);
2166
2337
  return n({ focus: () => {
2167
- var p;
2168
- return (p = s.value) == null ? void 0 : p.focus();
2338
+ var c;
2339
+ return (c = i.value) == null ? void 0 : c.focus();
2169
2340
  }, blur: () => {
2170
- var p;
2171
- return (p = s.value) == null ? void 0 : p.blur();
2341
+ var c;
2342
+ return (c = i.value) == null ? void 0 : c.blur();
2172
2343
  } }), () => {
2173
- const p = e.id ?? `dsh-field-${o}`, d = !!(e.description || a.description), M = !!(e.errorMessage || a.error), l = [t["aria-describedby"], d ? `${p}-description` : "", M ? `${p}-error` : ""].filter(Boolean).join(" ") || void 0, { class: x, style: w, ...$ } = t;
2174
- return h("div", { class: ["dsh-field", x], style: w, "data-invalid": e.invalid || M || void 0 }, [
2175
- e.label || a.label ? h(Oa, { for: p, required: e.required }, { default: () => {
2176
- var u;
2177
- return ((u = a.label) == null ? void 0 : u.call(a)) ?? e.label;
2344
+ var w;
2345
+ const c = e.id ?? `dsh-field-${o}`, v = !!(e.description || a.description), g = !!(e.errorMessage || a.error), f = [t["aria-describedby"], v ? `${c}-description` : "", g ? `${c}-error` : ""].filter(Boolean).join(" ") || void 0, { class: h, style: A, "aria-labelledby": T, ...d } = t;
2346
+ return m("div", { class: ["dsh-field", h], style: A, "data-invalid": e.invalid || g || void 0 }, [
2347
+ e.label || a.label ? m(Wa, { for: c, required: e.required }, { default: () => {
2348
+ var C;
2349
+ return ((C = a.label) == null ? void 0 : C.call(a)) ?? e.label;
2178
2350
  } }) : null,
2179
- h(Et, {
2180
- ...$,
2181
- ref: s,
2351
+ m(Kt, {
2352
+ ...d,
2353
+ ref: i,
2182
2354
  type: e.type === "password" ? "password" : "text",
2183
2355
  inputAttrs: {
2184
2356
  ...typeof t.inputAttrs == "object" ? t.inputAttrs : {},
2185
- id: p,
2357
+ id: c,
2186
2358
  name: e.name,
2187
2359
  type: e.type,
2188
2360
  required: e.required,
2189
2361
  "aria-label": t["aria-label"],
2190
- "aria-invalid": e.invalid || M || void 0,
2191
- "aria-describedby": l,
2362
+ "aria-labelledby": T ?? ((w = t.inputAttrs) == null ? void 0 : w["aria-labelledby"]),
2363
+ "aria-invalid": e.invalid || g || void 0,
2364
+ "aria-describedby": f,
2192
2365
  "aria-required": e.required || void 0
2193
2366
  },
2194
2367
  placeholder: e.placeholder,
2195
- modelValue: r ? e.modelValue ?? "" : c.value,
2368
+ modelValue: r ? e.modelValue ?? "" : s.value,
2196
2369
  disabled: e.disabled,
2197
2370
  readonly: e.readonly,
2198
- error: e.invalid || M,
2199
- "onUpdate:modelValue": (u) => {
2200
- c.value = u, i("update:modelValue", u);
2371
+ error: e.invalid || g,
2372
+ "onUpdate:modelValue": (C) => {
2373
+ s.value = C, l("update:modelValue", C);
2201
2374
  },
2202
- onChange: (u, m) => i("change", u, m),
2203
- onInput: (u, m) => i("input", u, m),
2204
- onFocus: (u) => i("focus", u),
2205
- onBlur: (u) => i("blur", u)
2375
+ onChange: (C, b) => l("change", C, b),
2376
+ onInput: (C, b) => l("input", C, b),
2377
+ onFocus: (C) => l("focus", C),
2378
+ onBlur: (C) => l("blur", C)
2206
2379
  }, { prefix: a.prefix, suffix: a.suffix, prepend: a.prepend, append: a.append }),
2207
- d ? h(Ya, { id: `${p}-description` }, { default: () => {
2208
- var u;
2209
- return ((u = a.description) == null ? void 0 : u.call(a)) ?? e.description;
2380
+ v ? m(Ua, { id: `${c}-description` }, { default: () => {
2381
+ var C;
2382
+ return ((C = a.description) == null ? void 0 : C.call(a)) ?? e.description;
2210
2383
  } }) : null,
2211
- M ? h(Pt, { id: `${p}-error` }, { default: () => {
2212
- var u;
2213
- return ((u = a.error) == null ? void 0 : u.call(a)) ?? e.errorMessage;
2384
+ g ? m(Lt, { id: `${c}-error` }, { default: () => {
2385
+ var C;
2386
+ return ((C = a.error) == null ? void 0 : C.call(a)) ?? e.errorMessage;
2214
2387
  } }) : null
2215
2388
  ]);
2216
2389
  };
2217
2390
  }
2218
- }), un = F({
2391
+ }), Cn = N({
2219
2392
  name: "DshSearchField",
2220
2393
  inheritAttrs: !1,
2221
- props: Tt,
2394
+ props: Et,
2222
2395
  emits: ["update:modelValue", "search"],
2223
- setup(e, { attrs: t, slots: a, emit: i }) {
2224
- const n = ze(), r = q(e.defaultValue);
2225
- return () => h(La, De(t, {
2396
+ setup(e, { attrs: t, slots: a, emit: l }) {
2397
+ const n = Xe(), r = j(e.defaultValue);
2398
+ return () => m(Ka, ce(t, {
2226
2399
  ...e,
2227
2400
  type: "search",
2228
2401
  allowClear: !0,
2229
2402
  modelValue: n ? e.modelValue ?? "" : r.value,
2230
2403
  "onUpdate:modelValue": (o) => {
2231
- r.value = o, i("update:modelValue", o);
2404
+ r.value = o, l("update:modelValue", o);
2232
2405
  },
2233
2406
  onKeydown: (o) => {
2234
- o.key === "Enter" && !o.isComposing && !e.disabled && i("search", n ? e.modelValue ?? "" : r.value);
2407
+ o.key === "Enter" && !o.isComposing && !e.disabled && l("search", n ? e.modelValue ?? "" : r.value);
2235
2408
  }
2236
2409
  }), a);
2237
2410
  }
2238
- }), cn = F({
2411
+ }), $n = N({
2239
2412
  name: "DshInputOTP",
2240
2413
  inheritAttrs: !1,
2241
2414
  props: {
@@ -2249,47 +2422,47 @@ const tn = F({
2249
2422
  label: { type: String, default: "验证码" }
2250
2423
  },
2251
2424
  emits: ["update:modelValue", "complete", "change"],
2252
- setup(e, { attrs: t, emit: a, expose: i }) {
2253
- const n = ze(), r = q(null), o = q(ce(e.defaultValue, e.length, e.type === "numeric")), s = J(() => ce(n ? e.modelValue ?? "" : o.value, e.length, e.type === "numeric")), c = q(!1), p = q(0), d = () => {
2254
- var l;
2255
- p.value = ((l = r.value) == null ? void 0 : l.selectionStart) ?? 0;
2256
- }, M = (l, x) => {
2257
- const w = s.value;
2258
- o.value = l, a("update:modelValue", l), w !== l && (a("change", l), l.length === e.length && a("complete", l)), re(() => {
2259
- r.value && (r.value.value = s.value, r.value.setSelectionRange(x, x), d());
2425
+ setup(e, { attrs: t, emit: a, expose: l }) {
2426
+ const n = Xe(), r = j(null), o = j(fe(e.defaultValue, e.length, e.type === "numeric")), i = Z(() => fe(n ? e.modelValue ?? "" : o.value, e.length, e.type === "numeric")), s = j(!1), c = j(0), v = () => {
2427
+ var f;
2428
+ c.value = ((f = r.value) == null ? void 0 : f.selectionStart) ?? 0;
2429
+ }, g = (f, h) => {
2430
+ const A = i.value;
2431
+ o.value = f, a("update:modelValue", f), A !== f && (a("change", f), f.length === e.length && a("complete", f)), se(() => {
2432
+ r.value && (r.value.value = i.value, r.value.setSelectionRange(h, h), v());
2260
2433
  });
2261
2434
  };
2262
- return i({ focus: () => {
2263
- var l;
2264
- return (l = r.value) == null ? void 0 : l.focus();
2435
+ return l({ focus: () => {
2436
+ var f;
2437
+ return (f = r.value) == null ? void 0 : f.focus();
2265
2438
  }, blur: () => {
2266
- var l;
2267
- return (l = r.value) == null ? void 0 : l.blur();
2439
+ var f;
2440
+ return (f = r.value) == null ? void 0 : f.blur();
2268
2441
  } }), () => {
2269
- const { class: l, style: x, ...w } = t;
2270
- return h("div", {
2271
- class: ["dsh-otp", l],
2272
- style: x,
2442
+ const { class: f, style: h, ...A } = t;
2443
+ return m("div", {
2444
+ class: ["dsh-otp", f],
2445
+ style: h,
2273
2446
  "data-invalid": e.invalid || void 0,
2274
2447
  "data-disabled": e.disabled || void 0,
2275
- onMousedown($) {
2276
- var u;
2277
- !e.disabled && !$.defaultPrevented && ($.preventDefault(), (u = r.value) == null || u.focus());
2448
+ onMousedown(T) {
2449
+ var d;
2450
+ !e.disabled && !T.defaultPrevented && (T.preventDefault(), (d = r.value) == null || d.focus());
2278
2451
  }
2279
2452
  }, [
2280
- h("div", { class: "dsh-otp__cells", "aria-hidden": "true" }, Array.from({ length: e.length }, ($, u) => h("span", {
2453
+ m("div", { class: "dsh-otp__cells", "aria-hidden": "true" }, Array.from({ length: e.length }, (T, d) => m("span", {
2281
2454
  class: "dsh-otp__cell",
2282
- "data-active": c.value && Math.min(p.value, e.length - 1) === u || void 0,
2283
- "data-filled": !!s.value[u] || void 0,
2284
- onMousedown(m) {
2285
- var V, A;
2286
- e.disabled || (m.preventDefault(), (V = r.value) == null || V.focus(), (A = r.value) == null || A.setSelectionRange(Math.min(u, s.value.length), Math.min(u, s.value.length)), d());
2455
+ "data-active": s.value && Math.min(c.value, e.length - 1) === d || void 0,
2456
+ "data-filled": !!i.value[d] || void 0,
2457
+ onMousedown(w) {
2458
+ var C, b;
2459
+ e.disabled || (w.preventDefault(), (C = r.value) == null || C.focus(), (b = r.value) == null || b.setSelectionRange(Math.min(d, i.value.length), Math.min(d, i.value.length)), v());
2287
2460
  }
2288
- }, s.value[u] ?? ""))),
2289
- h("input", De(w, {
2461
+ }, i.value[d] ?? ""))),
2462
+ m("input", ce(A, {
2290
2463
  ref: r,
2291
2464
  class: "dsh-otp__input",
2292
- value: s.value,
2465
+ value: i.value,
2293
2466
  type: "text",
2294
2467
  inputmode: e.type === "numeric" ? "numeric" : "text",
2295
2468
  autocomplete: "one-time-code",
@@ -2299,78 +2472,85 @@ const tn = F({
2299
2472
  "aria-label": t["aria-label"] ?? e.label,
2300
2473
  "aria-invalid": e.invalid || void 0,
2301
2474
  onFocus: () => {
2302
- c.value = !0, d();
2475
+ s.value = !0, v();
2303
2476
  },
2304
2477
  onBlur: () => {
2305
- c.value = !1;
2478
+ s.value = !1;
2306
2479
  },
2307
- onSelect: d,
2308
- onKeyup: d,
2309
- onInput($) {
2310
- const u = $.target, m = ce(u.value.slice(0, u.selectionStart ?? 0), e.length, e.type === "numeric").length;
2311
- M(ce(u.value, e.length, e.type === "numeric"), m);
2480
+ onSelect: v,
2481
+ onKeyup: v,
2482
+ onInput(T) {
2483
+ const d = T.target, w = fe(d.value.slice(0, d.selectionStart ?? 0), e.length, e.type === "numeric").length;
2484
+ g(fe(d.value, e.length, e.type === "numeric"), w);
2312
2485
  },
2313
- onPaste($) {
2314
- var m, V;
2315
- if (e.disabled || e.readonly || !$.clipboardData)
2486
+ onPaste(T) {
2487
+ var w, C;
2488
+ if (e.disabled || e.readonly || !T.clipboardData)
2316
2489
  return;
2317
- $.preventDefault();
2318
- const u = Va(s.value, $.clipboardData.getData("text"), ((m = r.value) == null ? void 0 : m.selectionStart) ?? 0, ((V = r.value) == null ? void 0 : V.selectionEnd) ?? 0, e.length, e.type === "numeric");
2319
- M(u.value, u.cursor);
2490
+ T.preventDefault();
2491
+ const d = qa(i.value, T.clipboardData.getData("text"), ((w = r.value) == null ? void 0 : w.selectionStart) ?? 0, ((C = r.value) == null ? void 0 : C.selectionEnd) ?? 0, e.length, e.type === "numeric");
2492
+ g(d.value, d.cursor);
2320
2493
  }
2321
2494
  }))
2322
2495
  ]);
2323
2496
  };
2324
2497
  }
2325
- }), dn = F({
2498
+ }), Pn = N({
2326
2499
  name: "DshScrollShadow",
2327
- props: { maxHeight: { type: [Number, String], default: 240 } },
2500
+ props: { maxHeight: { type: [Number, String], default: 240 }, variant: String },
2328
2501
  setup(e, { slots: t }) {
2329
- const a = q(null), i = q({ top: !1, bottom: !1, left: !1, right: !1 });
2330
- let n, r;
2331
- const o = () => {
2332
- var c;
2333
- const s = (c = a.value) == null ? void 0 : c.querySelector(".arco-scrollbar-container");
2334
- s && (i.value = {
2335
- top: s.scrollTop > 1,
2336
- bottom: s.scrollTop + s.clientHeight < s.scrollHeight - 1,
2337
- left: s.scrollLeft > 1,
2338
- right: s.scrollLeft + s.clientWidth < s.scrollWidth - 1
2502
+ const a = j(null), l = j(!1);
2503
+ let n;
2504
+ const r = j({ top: !1, bottom: !1, left: !1, right: !1 });
2505
+ let o, i;
2506
+ const s = () => {
2507
+ var v;
2508
+ const c = (v = a.value) == null ? void 0 : v.querySelector(".arco-scrollbar-container");
2509
+ c && (r.value = {
2510
+ top: c.scrollTop > 1,
2511
+ bottom: c.scrollTop + c.clientHeight < c.scrollHeight - 1,
2512
+ left: c.scrollLeft > 1,
2513
+ right: c.scrollLeft + c.clientWidth < c.scrollWidth - 1
2339
2514
  });
2340
2515
  };
2341
- return fe(() => {
2342
- if (o(), typeof ResizeObserver < "u" && a.value) {
2343
- n = new ResizeObserver(o), n.observe(a.value);
2344
- const s = a.value.querySelector(".dsh-scroll-shadow__content");
2345
- s && n.observe(s);
2516
+ return ve(() => {
2517
+ if (s(), typeof ResizeObserver < "u" && a.value) {
2518
+ o = new ResizeObserver(s), o.observe(a.value);
2519
+ const c = a.value.querySelector(".dsh-scroll-shadow__content");
2520
+ c && o.observe(c);
2346
2521
  }
2347
2522
  if (a.value) {
2348
- r = new MutationObserver(o);
2349
- const s = a.value.querySelector(".dsh-scroll-shadow__content");
2350
- s && r.observe(s, { childList: !0, subtree: !0, characterData: !0 });
2523
+ i = new MutationObserver(s);
2524
+ const c = a.value.querySelector(".dsh-scroll-shadow__content");
2525
+ c && i.observe(c, { childList: !0, subtree: !0, characterData: !0 });
2351
2526
  }
2352
- }), me(() => {
2353
- n == null || n.disconnect(), r == null || r.disconnect();
2354
- }), () => h("div", {
2527
+ }), pe(() => {
2528
+ o == null || o.disconnect(), i == null || i.disconnect(), clearTimeout(n);
2529
+ }), () => m("div", {
2355
2530
  ref: a,
2356
- class: "dsh-scroll-shadow",
2357
- onScrollCapture: o,
2358
- "data-top": i.value.top || void 0,
2359
- "data-bottom": i.value.bottom || void 0,
2360
- "data-left": i.value.left || void 0,
2361
- "data-right": i.value.right || void 0
2362
- }, h(lt, { style: { height: "100%", overflow: "auto", maxHeight: typeof e.maxHeight == "number" ? `${e.maxHeight}px` : e.maxHeight }, outerStyle: { height: "100%", maxHeight: typeof e.maxHeight == "number" ? `${e.maxHeight}px` : e.maxHeight } }, { default: () => {
2363
- var s;
2364
- return h("div", { class: "dsh-scroll-shadow__content" }, (s = t.default) == null ? void 0 : s.call(t));
2531
+ class: ["dsh-scroll-shadow", { "dsh-scroll-shadow--page": e.variant === "page" }],
2532
+ "data-scrolling": l.value || void 0,
2533
+ onScrollCapture() {
2534
+ s(), e.variant === "page" && (l.value = !0, clearTimeout(n), n = setTimeout(() => {
2535
+ l.value = !1;
2536
+ }, 900));
2537
+ },
2538
+ "data-top": r.value.top || void 0,
2539
+ "data-bottom": r.value.bottom || void 0,
2540
+ "data-left": r.value.left || void 0,
2541
+ "data-right": r.value.right || void 0
2542
+ }, m(dt, { style: { height: "100%", overflow: "auto", maxHeight: typeof e.maxHeight == "number" ? `${e.maxHeight}px` : e.maxHeight }, outerStyle: { height: "100%", maxHeight: typeof e.maxHeight == "number" ? `${e.maxHeight}px` : e.maxHeight } }, { default: () => {
2543
+ var c;
2544
+ return m("div", { class: "dsh-scroll-shadow__content" }, (c = t.default) == null ? void 0 : c.call(t));
2365
2545
  } }));
2366
2546
  }
2367
2547
  });
2368
- function _e() {
2548
+ function Oe() {
2369
2549
  var t;
2370
- const e = ((t = ct()) == null ? void 0 : t.vnode.props) ?? {};
2550
+ const e = ((t = Ue()) == null ? void 0 : t.vnode.props) ?? {};
2371
2551
  return "modelValue" in e || "model-value" in e;
2372
2552
  }
2373
- const Vt = {
2553
+ const Nt = {
2374
2554
  options: { type: Array, default: () => [] },
2375
2555
  modelValue: [String, Number, Array],
2376
2556
  defaultValue: [String, Number, Array],
@@ -2378,51 +2558,53 @@ const Vt = {
2378
2558
  disabled: Boolean,
2379
2559
  allowEmpty: { type: Boolean, default: !0 },
2380
2560
  label: String
2381
- }, fn = F({
2561
+ }, _n = N({
2382
2562
  name: "DshListBox",
2383
- props: Vt,
2563
+ props: Nt,
2384
2564
  emits: ["update:modelValue", "change"],
2385
2565
  setup(e, { slots: t, emit: a }) {
2386
- const i = _e(), n = Se(), r = q(null), o = q(e.defaultValue), s = J(() => i ? e.modelValue : o.value), c = J(() => Array.isArray(s.value) ? s.value : s.value === void 0 ? [] : [s.value]), p = q(-1);
2387
- let d = "", M = 0;
2388
- const l = () => {
2389
- const u = e.options.findIndex((m) => !m.disabled && c.value.includes(m.value));
2390
- p.value = u < 0 ? he(e.options, -1, "Home") : u;
2566
+ const l = Oe(), n = ke(), r = j(null), o = j(e.defaultValue), i = Z(() => l ? e.modelValue : o.value), s = Z(() => Array.isArray(i.value) ? i.value : i.value === void 0 ? [] : [i.value]), c = j(-1);
2567
+ let v = "", g = 0;
2568
+ const f = () => {
2569
+ const d = e.options.findIndex((w) => !w.disabled && s.value.includes(w.value));
2570
+ c.value = d < 0 ? ge(e.options, -1, "Home") : d;
2391
2571
  };
2392
- le(() => e.options, l, { immediate: !0, deep: !0 });
2393
- const x = (u) => {
2394
- const m = e.options[u];
2395
- if (e.disabled || !m || m.disabled)
2572
+ le(() => e.options, f, { immediate: !0, deep: !0 });
2573
+ const h = (d) => {
2574
+ const w = e.options[d];
2575
+ if (e.disabled || !w || w.disabled)
2396
2576
  return;
2397
- p.value = u;
2398
- const V = _t(s.value, m.value, e.multiple, e.allowEmpty);
2399
- o.value = V, a("update:modelValue", V), a("change", V);
2400
- }, w = () => {
2401
- re(() => {
2402
- var u, m;
2403
- return (m = (u = r.value) == null ? void 0 : u.querySelector(`[data-index="${p.value}"]`)) == null ? void 0 : m.scrollIntoView({ block: "nearest" });
2577
+ c.value = d;
2578
+ const C = Bt(i.value, w.value, e.multiple, e.allowEmpty);
2579
+ C !== i.value && (o.value = C, a("update:modelValue", C), a("change", C));
2580
+ }, A = () => {
2581
+ se(() => {
2582
+ var d, w;
2583
+ return (w = (d = r.value) == null ? void 0 : d.querySelector(`[data-index="${c.value}"]`)) == null ? void 0 : w.scrollIntoView({ block: "nearest" });
2404
2584
  });
2405
- }, $ = (u) => {
2406
- if (!(e.disabled || u.isComposing)) {
2407
- if (["ArrowUp", "ArrowDown", "Home", "End"].includes(u.key))
2408
- u.preventDefault(), p.value = he(e.options, p.value, u.key), w();
2409
- else if (u.key === "Enter" || u.key === " ")
2410
- u.preventDefault(), x(p.value);
2411
- else if (e.multiple && (u.ctrlKey || u.metaKey) && u.key.toLowerCase() === "a") {
2412
- u.preventDefault();
2413
- const m = e.options.filter((V) => !V.disabled || c.value.includes(V.value)).map((V) => V.value);
2414
- o.value = m, a("update:modelValue", m), a("change", m);
2415
- } else if (u.key.length === 1 && !u.ctrlKey && !u.metaKey && !u.altKey) {
2416
- const m = Date.now();
2417
- d = m - M > 700 ? u.key : d + u.key, M = m;
2418
- const A = [...d].every((L) => L.toLocaleLowerCase() === u.key.toLocaleLowerCase()) ? u.key : d, Y = Ta(e.options, A.length > 1 ? p.value - 1 : p.value, A);
2419
- Y >= 0 && (p.value = Y, w()), u.preventDefault();
2585
+ }, T = (d) => {
2586
+ if (!(e.disabled || d.isComposing)) {
2587
+ if (["ArrowUp", "ArrowDown", "Home", "End"].includes(d.key))
2588
+ d.preventDefault(), c.value = ge(e.options, c.value, d.key), A();
2589
+ else if (d.key === "Enter" || d.key === " ")
2590
+ d.preventDefault(), h(c.value);
2591
+ else if (e.multiple && (d.ctrlKey || d.metaKey) && d.key.toLowerCase() === "a") {
2592
+ d.preventDefault();
2593
+ const w = e.options.filter((C) => !C.disabled || s.value.includes(C.value)).map((C) => C.value);
2594
+ if (w.length === s.value.length && w.every((C) => s.value.includes(C)))
2595
+ return;
2596
+ o.value = w, a("update:modelValue", w), a("change", w);
2597
+ } else if (d.key.length === 1 && !d.ctrlKey && !d.metaKey && !d.altKey) {
2598
+ const w = Date.now();
2599
+ v = w - g > 700 ? d.key : v + d.key, g = w;
2600
+ const b = [...v].every((Y) => Y.toLocaleLowerCase() === d.key.toLocaleLowerCase()) ? d.key : v, P = ja(e.options, b.length > 1 ? c.value - 1 : c.value, b);
2601
+ P >= 0 && (c.value = P, A()), d.preventDefault();
2420
2602
  }
2421
2603
  }
2422
2604
  };
2423
2605
  return () => {
2424
- var u;
2425
- return h("div", {
2606
+ var d;
2607
+ return m("div", {
2426
2608
  ref: r,
2427
2609
  class: "dsh-listbox",
2428
2610
  role: "listbox",
@@ -2430,38 +2612,38 @@ const Vt = {
2430
2612
  "aria-label": e.label,
2431
2613
  "aria-multiselectable": e.multiple || void 0,
2432
2614
  "aria-disabled": e.disabled || void 0,
2433
- "aria-activedescendant": p.value < 0 ? void 0 : `dsh-listbox-${n}-${p.value}`,
2434
- onKeydown: $,
2435
- onFocus: l
2436
- }, e.options.length === 0 ? (u = t.empty) == null ? void 0 : u.call(t) : e.options.map((m, V) => {
2437
- var A;
2438
- return h("div", {
2439
- key: m.value,
2440
- id: `dsh-listbox-${n}-${V}`,
2615
+ "aria-activedescendant": c.value < 0 ? void 0 : `dsh-listbox-${n}-${c.value}`,
2616
+ onKeydown: T,
2617
+ onFocus: f
2618
+ }, e.options.length === 0 ? (d = t.empty) == null ? void 0 : d.call(t) : e.options.map((w, C) => {
2619
+ var b;
2620
+ return m("div", {
2621
+ key: w.value,
2622
+ id: `dsh-listbox-${n}-${C}`,
2441
2623
  role: "option",
2442
- "aria-selected": c.value.includes(m.value),
2443
- "aria-disabled": e.disabled || m.disabled || void 0,
2444
- "data-selected": c.value.includes(m.value) || void 0,
2445
- "data-disabled": e.disabled || m.disabled || void 0,
2446
- "data-active": p.value === V || void 0,
2447
- "data-index": V,
2624
+ "aria-selected": s.value.includes(w.value),
2625
+ "aria-disabled": e.disabled || w.disabled || void 0,
2626
+ "data-selected": s.value.includes(w.value) || void 0,
2627
+ "data-disabled": e.disabled || w.disabled || void 0,
2628
+ "data-active": c.value === C || void 0,
2629
+ "data-index": C,
2448
2630
  class: "dsh-listbox__option",
2449
- onMousedown(Y) {
2450
- Y.preventDefault();
2631
+ onMousedown(P) {
2632
+ P.preventDefault();
2451
2633
  },
2452
2634
  onClick() {
2453
- var Y;
2454
- (Y = r.value) == null || Y.focus(), x(V);
2635
+ var P;
2636
+ (P = r.value) == null || P.focus(), h(C);
2455
2637
  }
2456
- }, ((A = t.option) == null ? void 0 : A.call(t, { option: m, selected: c.value.includes(m.value), active: p.value === V })) ?? [
2457
- h("span", { class: "dsh-listbox__label" }, m.label),
2458
- m.description ? h("span", { class: "dsh-description" }, m.description) : null,
2459
- h("span", { class: "dsh-listbox__indicator", "aria-hidden": "true" }, c.value.includes(m.value) ? "✓" : "")
2638
+ }, ((b = t.option) == null ? void 0 : b.call(t, { option: w, selected: s.value.includes(w.value), active: c.value === C })) ?? [
2639
+ m("span", { class: "dsh-listbox__label" }, w.label),
2640
+ w.description ? m("span", { class: "dsh-description" }, w.description) : null,
2641
+ m("span", { class: "dsh-listbox__indicator", "aria-hidden": "true" }, s.value.includes(w.value) ? "✓" : "")
2460
2642
  ]);
2461
2643
  }));
2462
2644
  };
2463
2645
  }
2464
- }), Ia = F({
2646
+ }), Ga = N({
2465
2647
  name: "DshToggleButton",
2466
2648
  inheritAttrs: !1,
2467
2649
  props: {
@@ -2470,120 +2652,127 @@ const Vt = {
2470
2652
  disabled: Boolean
2471
2653
  },
2472
2654
  emits: ["update:modelValue", "change", "click"],
2473
- setup(e, { attrs: t, slots: a, emit: i }) {
2474
- const n = _e(), r = q(e.defaultValue), o = J(() => n ? e.modelValue ?? !1 : r.value);
2655
+ setup(e, { attrs: t, slots: a, emit: l }) {
2656
+ const n = Oe(), r = j(e.defaultValue), o = Z(() => n ? e.modelValue ?? !1 : r.value);
2475
2657
  return () => {
2476
- var s;
2477
- return h("button", {
2658
+ var i;
2659
+ return m("button", {
2478
2660
  ...t,
2479
2661
  class: ["dsh-toggle-button", t.class],
2480
2662
  type: "button",
2481
2663
  disabled: e.disabled,
2482
2664
  "aria-pressed": o.value,
2483
2665
  "data-selected": o.value || void 0,
2484
- onClick(c) {
2485
- e.disabled || (r.value = !o.value, i("update:modelValue", r.value), i("change", r.value), i("click", c));
2666
+ onClick(s) {
2667
+ e.disabled || (r.value = !o.value, l("update:modelValue", r.value), l("change", r.value), l("click", s));
2486
2668
  }
2487
- }, (s = a.default) == null ? void 0 : s.call(a));
2669
+ }, (i = a.default) == null ? void 0 : i.call(a));
2488
2670
  };
2489
2671
  }
2490
- }), hn = F({
2672
+ }), Tn = N({
2491
2673
  name: "DshToggleButtonGroup",
2492
- props: { ...Vt, orientation: { type: String, default: "horizontal" } },
2674
+ props: { ...Nt, orientation: { type: String, default: "horizontal" } },
2493
2675
  emits: ["update:modelValue", "change"],
2494
2676
  setup(e, { slots: t, emit: a }) {
2495
- const i = _e(), n = q(null), r = q(e.defaultValue), o = J(() => i ? e.modelValue : r.value), s = J(() => Array.isArray(o.value) ? o.value : o.value === void 0 ? [] : [o.value]), c = q(-1);
2677
+ const l = Oe(), n = j(null), r = j(e.defaultValue), o = Z(() => l ? e.modelValue : r.value), i = Z(() => Array.isArray(o.value) ? o.value : o.value === void 0 ? [] : [o.value]), s = j(-1);
2496
2678
  le(() => e.options, () => {
2497
- var d;
2498
- if (!e.options[c.value] || (d = e.options[c.value]) != null && d.disabled) {
2499
- const M = e.options.findIndex((l) => !l.disabled && s.value.includes(l.value));
2500
- c.value = M < 0 ? he(e.options, -1, "Home") : M;
2679
+ var v;
2680
+ if (!e.options[s.value] || (v = e.options[s.value]) != null && v.disabled) {
2681
+ const g = e.options.findIndex((f) => !f.disabled && i.value.includes(f.value));
2682
+ s.value = g < 0 ? ge(e.options, -1, "Home") : g;
2501
2683
  }
2502
2684
  }, { immediate: !0, deep: !0 });
2503
- const p = (d) => {
2504
- if (e.disabled || d.disabled)
2685
+ const c = (v) => {
2686
+ if (e.disabled || v.disabled)
2505
2687
  return;
2506
- const M = _t(o.value, d.value, e.multiple, e.allowEmpty);
2507
- r.value = M, a("update:modelValue", M), a("change", M);
2688
+ const g = Bt(o.value, v.value, e.multiple, e.allowEmpty);
2689
+ g !== o.value && (r.value = g, a("update:modelValue", g), a("change", g));
2508
2690
  };
2509
- return () => h("div", {
2691
+ return () => m("div", {
2510
2692
  ref: n,
2511
2693
  role: "group",
2512
2694
  class: "dsh-toggle-group",
2513
2695
  "aria-label": e.label,
2514
2696
  "aria-disabled": e.disabled || void 0,
2515
2697
  "data-orientation": e.orientation,
2516
- onKeydown(d) {
2517
- if (e.disabled || !(e.orientation === "horizontal" ? ["ArrowLeft", "ArrowRight", "Home", "End"] : ["ArrowUp", "ArrowDown", "Home", "End"]).includes(d.key))
2698
+ onKeydown(v) {
2699
+ if (e.disabled || !(e.orientation === "horizontal" ? ["ArrowLeft", "ArrowRight", "Home", "End"] : ["ArrowUp", "ArrowDown", "Home", "End"]).includes(v.key))
2518
2700
  return;
2519
- d.preventDefault();
2520
- let l = d.key;
2521
- e.orientation === "horizontal" && n.value && getComputedStyle(n.value).direction === "rtl" && (l === "ArrowLeft" ? l = "ArrowRight" : l === "ArrowRight" && (l = "ArrowLeft")), c.value = he(e.options, c.value, l), re(() => {
2522
- var x, w;
2523
- return (w = (x = n.value) == null ? void 0 : x.querySelector(`[data-index="${c.value}"]`)) == null ? void 0 : w.focus();
2701
+ v.preventDefault();
2702
+ let f = v.key;
2703
+ e.orientation === "horizontal" && n.value && getComputedStyle(n.value).direction === "rtl" && (f === "ArrowLeft" ? f = "ArrowRight" : f === "ArrowRight" && (f = "ArrowLeft")), s.value = ge(e.options, s.value, f), se(() => {
2704
+ var h, A;
2705
+ return (A = (h = n.value) == null ? void 0 : h.querySelector(`[data-index="${s.value}"]`)) == null ? void 0 : A.focus();
2524
2706
  });
2525
2707
  }
2526
- }, e.options.map((d, M) => h(Ia, {
2527
- key: d.value,
2528
- modelValue: s.value.includes(d.value),
2529
- disabled: e.disabled || d.disabled,
2530
- tabindex: c.value === M ? 0 : -1,
2531
- "data-index": M,
2708
+ }, e.options.map((v, g) => m(Ga, {
2709
+ key: v.value,
2710
+ modelValue: i.value.includes(v.value),
2711
+ disabled: e.disabled || v.disabled,
2712
+ tabindex: s.value === g ? 0 : -1,
2713
+ "data-index": g,
2532
2714
  onFocus: () => {
2533
- c.value = M;
2715
+ s.value = g;
2534
2716
  },
2535
- "onUpdate:modelValue": () => p(d)
2717
+ "onUpdate:modelValue": () => c(v)
2536
2718
  }, { default: () => {
2537
- var l;
2538
- return ((l = t.option) == null ? void 0 : l.call(t, { option: d, selected: s.value.includes(d.value) })) ?? d.label;
2719
+ var f;
2720
+ return ((f = t.option) == null ? void 0 : f.call(t, { option: v, selected: i.value.includes(v.value) })) ?? v.label;
2539
2721
  } })));
2540
2722
  }
2541
- }), mn = F({
2723
+ }), Vn = N({
2542
2724
  name: "DshToolbar",
2543
2725
  props: { label: String, orientation: { type: String, default: "horizontal" } },
2544
2726
  setup(e, { slots: t }) {
2545
- const a = q(null);
2546
- let i;
2727
+ const a = j(null);
2728
+ let l;
2547
2729
  const n = /* @__PURE__ */ new Map(), r = () => {
2548
- var s;
2549
- return Array.from(((s = a.value) == null ? void 0 : s.querySelectorAll("button, a[href], input, select, textarea, [tabindex]")) ?? []).filter((c) => !c.matches(':disabled, [aria-disabled="true"], [hidden]') && !c.closest("[hidden], [inert]"));
2550
- }, o = (s) => {
2551
- const c = r(), p = s && c.includes(s) ? s : c.find((d) => d === document.activeElement) ?? c.find((d) => d.tabIndex === 0) ?? c[0];
2552
- for (const d of c)
2553
- n.has(d) || n.set(d, d.getAttribute("tabindex")), d.tabIndex = d === p ? 0 : -1;
2730
+ var i;
2731
+ return Array.from(((i = a.value) == null ? void 0 : i.querySelectorAll("button, a[href], input, select, textarea, [tabindex]")) ?? []).filter((s) => !s.matches(':disabled, [aria-disabled="true"], [hidden]') && !s.closest("[hidden], [inert]"));
2732
+ }, o = (i) => {
2733
+ const s = r(), c = i && s.includes(i) ? i : s.find((v) => v === document.activeElement) ?? s.find((v) => v.tabIndex === 0) ?? s[0];
2734
+ for (const v of s)
2735
+ n.has(v) || n.set(v, v.getAttribute("tabindex")), v.tabIndex = v === c ? 0 : -1;
2554
2736
  };
2555
- return fe(() => {
2556
- o(), a.value && (i = new MutationObserver(() => o()), i.observe(a.value, { childList: !0, subtree: !0, attributes: !0, attributeFilter: ["disabled", "aria-disabled", "hidden"] }));
2557
- }), me(() => {
2558
- i == null || i.disconnect();
2559
- for (const [s, c] of n)
2560
- c === null ? s.removeAttribute("tabindex") : s.setAttribute("tabindex", c);
2737
+ return ve(() => {
2738
+ o(), a.value && (l = new MutationObserver(() => o()), l.observe(a.value, { childList: !0, subtree: !0, attributes: !0, attributeFilter: ["disabled", "aria-disabled", "hidden"] }));
2739
+ }), pe(() => {
2740
+ l == null || l.disconnect();
2741
+ for (const [i, s] of n)
2742
+ s === null ? i.removeAttribute("tabindex") : i.setAttribute("tabindex", s);
2561
2743
  }), () => {
2562
- var s;
2563
- return h("div", {
2744
+ var i;
2745
+ return m("div", {
2564
2746
  ref: a,
2565
2747
  class: "dsh-toolbar",
2566
2748
  role: "toolbar",
2567
2749
  "aria-label": e.label,
2568
2750
  "aria-orientation": e.orientation,
2569
- onFocusin(c) {
2570
- o(c.target);
2751
+ onFocusin(s) {
2752
+ o(s.target);
2571
2753
  },
2572
- onKeydown(c) {
2573
- var w;
2574
- const p = c.target;
2575
- if (p.matches('input, textarea, select, [contenteditable="true"]') || !(e.orientation === "horizontal" ? ["ArrowLeft", "ArrowRight", "Home", "End"] : ["ArrowUp", "ArrowDown", "Home", "End"]).includes(c.key))
2754
+ onKeydown(s) {
2755
+ var A;
2756
+ const c = s.target;
2757
+ if (c.matches('input, textarea, select, [contenteditable="true"]')) {
2758
+ if (s.key !== "Tab")
2759
+ return;
2760
+ const T = r(), d = T[T.indexOf(c) + (s.shiftKey ? -1 : 1)];
2761
+ d && (s.preventDefault(), d.focus());
2762
+ return;
2763
+ }
2764
+ if (!(e.orientation === "horizontal" ? ["ArrowLeft", "ArrowRight", "Home", "End"] : ["ArrowUp", "ArrowDown", "Home", "End"]).includes(s.key))
2576
2765
  return;
2577
- const M = r();
2578
- let l = c.key;
2579
- e.orientation === "horizontal" && a.value && getComputedStyle(a.value).direction === "rtl" && (l === "ArrowLeft" ? l = "ArrowRight" : l === "ArrowRight" && (l = "ArrowLeft"));
2580
- const x = he(M.map(($, u) => ({ value: u, label: "" })), M.indexOf(p), l);
2581
- x >= 0 && (c.preventDefault(), (w = M[x]) == null || w.focus());
2766
+ const g = r();
2767
+ let f = s.key;
2768
+ e.orientation === "horizontal" && a.value && getComputedStyle(a.value).direction === "rtl" && (f === "ArrowLeft" ? f = "ArrowRight" : f === "ArrowRight" && (f = "ArrowLeft"));
2769
+ const h = ge(g.map((T, d) => ({ value: d, label: "" })), g.indexOf(c), f);
2770
+ h >= 0 && (s.preventDefault(), (A = g[h]) == null || A.focus());
2582
2771
  }
2583
- }, (s = t.default) == null ? void 0 : s.call(t));
2772
+ }, (i = t.default) == null ? void 0 : i.call(t));
2584
2773
  };
2585
2774
  }
2586
- }), vn = F({
2775
+ }), On = N({
2587
2776
  name: "DshTagGroup",
2588
2777
  props: {
2589
2778
  modelValue: Array,
@@ -2595,115 +2784,121 @@ const Vt = {
2595
2784
  },
2596
2785
  emits: ["update:modelValue", "remove"],
2597
2786
  setup(e, { slots: t, emit: a }) {
2598
- const i = _e(), n = q(null), r = q(e.defaultValue), o = J(() => i ? e.modelValue ?? [] : r.value), s = (c, p) => {
2599
- e.disabled || c.disabled || (r.value = o.value.filter((d) => d.value !== c.value), a("update:modelValue", r.value), a("remove", c.value), re(() => {
2600
- var M, l, x;
2601
- const d = (M = n.value) == null ? void 0 : M.querySelectorAll("button:not(:disabled)");
2602
- d != null && d.length ? (l = d[Math.min(p, d.length - 1)]) == null || l.focus() : (x = n.value) == null || x.focus();
2787
+ const l = Oe(), n = j(null), r = j(e.defaultValue), o = Z(() => l ? e.modelValue ?? [] : r.value), i = (s, c) => {
2788
+ e.disabled || s.disabled || (r.value = o.value.filter((v) => v.value !== s.value), a("update:modelValue", r.value), a("remove", s.value), se(() => {
2789
+ var h;
2790
+ const v = Array.from(((h = n.value) == null ? void 0 : h.querySelectorAll(".dsh-tag-group__remove")) ?? []), f = v.slice(c).find((A) => !A.disabled) ?? v.slice(0, c).reverse().find((A) => !A.disabled) ?? n.value;
2791
+ f == null || f.focus();
2603
2792
  }));
2604
2793
  };
2605
- return () => h("div", { ref: n, class: "dsh-tag-group", role: "group", "aria-label": e.label, tabindex: -1 }, o.value.map((c, p) => {
2606
- var d;
2607
- return h("span", {
2794
+ return () => m("div", { ref: n, class: "dsh-tag-group", role: "group", "aria-label": e.label, tabindex: -1 }, o.value.map((s, c) => {
2795
+ var v;
2796
+ return m("span", {
2608
2797
  class: ["arco-tag", "dsh-tag-group__tag"],
2609
- key: c.value,
2610
- "data-disabled": e.disabled || c.disabled || void 0
2798
+ key: s.value,
2799
+ "data-disabled": e.disabled || s.disabled || void 0
2611
2800
  }, [
2612
- ((d = t.item) == null ? void 0 : d.call(t, { item: c })) ?? h("span", {}, c.label),
2613
- e.removable ? h("button", {
2801
+ ((v = t.item) == null ? void 0 : v.call(t, { item: s })) ?? m("span", {}, s.label),
2802
+ e.removable ? m("button", {
2614
2803
  class: "dsh-tag-group__remove",
2615
2804
  type: "button",
2616
- disabled: e.disabled || c.disabled,
2617
- "aria-label": e.removeLabel(c),
2618
- onClick: () => s(c, p)
2805
+ disabled: e.disabled || s.disabled,
2806
+ "aria-label": e.removeLabel(s),
2807
+ onClick: () => i(s, c)
2619
2808
  }, "×") : null
2620
2809
  ]);
2621
2810
  }));
2622
2811
  }
2623
2812
  });
2624
2813
  export {
2625
- Wa as Accordion,
2626
- yn as AccordionItem,
2627
- Kt as Alert,
2628
- Ja as AlertDialog,
2629
- ja as Arco,
2630
- dt as AutoComplete,
2631
- Ra as Autocomplete,
2632
- wn as Breadcrumbs,
2633
- xa as Button,
2634
- Ct as Calendar,
2635
- ft as Cascader,
2636
- Qt as Chip,
2637
- Ka as CloseButton,
2638
- Ne as ColorPicker,
2639
- Aa as DatePicker,
2640
- qa as DateRangePicker,
2641
- Ya as Description,
2642
- Dn as Disclosure,
2643
- Sn as DisclosureGroup,
2644
- _a as Drawer,
2645
- vt as Dropdown,
2646
- gt as DropdownButton,
2647
- Ha as DshProvider,
2648
- pt as Dsubmenu,
2649
- kn as EmptyState,
2650
- on as ErrorMessage,
2651
- Pt as FieldError,
2652
- ln as Fieldset,
2653
- rn as Header,
2654
- wt as Image,
2655
- Dt as ImagePreview,
2656
- St as ImagePreviewGroup,
2657
- sn as InputGroup,
2658
- Zt as InputNumber,
2659
- cn as InputOTP,
2660
- Ut as InputTag,
2661
- an as Kbd,
2662
- Oa as Label,
2663
- tn as Link,
2664
- fn as ListBox,
2665
- ua as Mention,
2666
- yt as Menu,
2667
- Qa as Meter,
2668
- Ca as Modal,
2669
- Me as MonthPicker,
2670
- Zt as NumberField,
2671
- ia as Popconfirm,
2672
- la as Popover,
2673
- Wt as Progress,
2674
- Ga as ProgressBar,
2675
- Za as ProgressCircle,
2676
- Ae as QuarterPicker,
2677
- Ce as RangePicker,
2678
- Gt as Result,
2679
- dn as ScrollShadow,
2680
- un as SearchField,
2681
- bt as Select,
2682
- Mn as Separator,
2683
- He as Spin,
2684
- Ua as Spinner,
2685
- nn as Surface,
2686
- za as SwitchGroup,
2687
- zt as Table,
2688
- Qt as Tag,
2689
- vn as TagGroup,
2690
- An as Text,
2691
- xn as TextArea,
2692
- La as TextField,
2693
- ra as TimePicker,
2694
- Ia as ToggleButton,
2695
- hn as ToggleButtonGroup,
2696
- mn as Toolbar,
2697
- oa as Tooltip,
2698
- Jt as Tree,
2699
- na as TreeSelect,
2700
- sa as Trigger,
2701
- xe as WeekPicker,
2702
- $e as YearPicker,
2703
- je as progressRatio,
2704
- ta as provideDshPopupScope,
2705
- en as useDialog,
2706
- se as useDshTheme,
2707
- Xa as useFeedback,
2708
- Pa as useToast
2814
+ sn as Accordion,
2815
+ Ln as AccordionItem,
2816
+ ia as Alert,
2817
+ gn as AlertDialog,
2818
+ on as Arco,
2819
+ mt as AutoComplete,
2820
+ nn as Autocomplete,
2821
+ En as Breadcrumbs,
2822
+ Fa as Button,
2823
+ dn as ButtonGroup,
2824
+ Ot as Calendar,
2825
+ oa as Card,
2826
+ vt as Cascader,
2827
+ ca as Chip,
2828
+ fn as CloseButton,
2829
+ qe as ColorPicker,
2830
+ Na as DatePicker,
2831
+ rn as DateRangePicker,
2832
+ Ua as Description,
2833
+ Nn as Disclosure,
2834
+ Fn as DisclosureGroup,
2835
+ Ra as Drawer,
2836
+ bt as Dropdown,
2837
+ wt as DropdownButton,
2838
+ an as DshProvider,
2839
+ yt as Dsubmenu,
2840
+ zn as EmptyState,
2841
+ kn as ErrorMessage,
2842
+ Lt as FieldError,
2843
+ An as Fieldset,
2844
+ Mn as Header,
2845
+ Sa as HintIcon,
2846
+ kt as Image,
2847
+ At as ImagePreview,
2848
+ xt as ImagePreviewGroup,
2849
+ xn as InputGroup,
2850
+ ua as InputNumber,
2851
+ $n as InputOTP,
2852
+ la as InputTag,
2853
+ Dn as Kbd,
2854
+ Wa as Label,
2855
+ wn as Link,
2856
+ _n as ListBox,
2857
+ Da as Mention,
2858
+ Mt as Menu,
2859
+ Ge as MenuItem,
2860
+ vn as Meter,
2861
+ Ha as Modal,
2862
+ $e as MonthPicker,
2863
+ ua as NumberField,
2864
+ ln as Pagination,
2865
+ ya as Popconfirm,
2866
+ ba as Popover,
2867
+ na as Progress,
2868
+ hn as ProgressBar,
2869
+ mn as ProgressCircle,
2870
+ Pe as QuarterPicker,
2871
+ Ve as RangePicker,
2872
+ sa as Result,
2873
+ Pn as ScrollShadow,
2874
+ Cn as SearchField,
2875
+ Dt as Select,
2876
+ Hn as Separator,
2877
+ Ce as Spin,
2878
+ cn as Spinner,
2879
+ Sn as Surface,
2880
+ un as SwitchGroup,
2881
+ ra as Table,
2882
+ ca as Tag,
2883
+ On as TagGroup,
2884
+ Rn as Text,
2885
+ tn as TextArea,
2886
+ Ka as TextField,
2887
+ tn as Textarea,
2888
+ pa as TimePicker,
2889
+ Ga as ToggleButton,
2890
+ Tn as ToggleButtonGroup,
2891
+ Vn as Toolbar,
2892
+ St as Tooltip,
2893
+ da as Tree,
2894
+ ga as TreeSelect,
2895
+ wa as Trigger,
2896
+ _e as WeekPicker,
2897
+ Te as YearPicker,
2898
+ Qe as progressRatio,
2899
+ ma as provideDshPopupScope,
2900
+ yn as useDialog,
2901
+ ue as useDshTheme,
2902
+ bn as useFeedback,
2903
+ pn as useToast
2709
2904
  };