design-system-next 1.0.24 → 1.0.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
- import { computed as P, defineComponent as Z, openBlock as _, createElementBlock as C, renderSlot as D, createElementVNode as y, normalizeClass as A, unref as S, toDisplayString as ue, getCurrentScope as Qt, onScopeDispose as Jt, getCurrentInstance as Kt, ref as ee, watch as Ae, nextTick as kt, mergeProps as Qe, createCommentVNode as G, Fragment as J, withDirectives as Je, isRef as Pt, vModelRadio as en, pushScopeId as tn, popScopeId as nn, createBlock as F, normalizeProps as on, guardReactiveProps as sn, withScopeId as rn, resolveComponent as We, normalizeStyle as Le, withKeys as an, withCtx as K, createVNode as ke, markRaw as Re, renderList as Se, vShow as ln, resolveDynamicComponent as at, vModelCheckbox as dn } from "vue";
2
- const un = ["danger", "disabled", "information", "brand"], cn = ["small", "big", "tiny"], pn = ["top", "bottom", "default"], fn = {
1
+ import { computed as P, defineComponent as Y, openBlock as m, createElementBlock as $, renderSlot as R, createElementVNode as w, normalizeClass as k, unref as x, toDisplayString as F, getCurrentScope as Zt, onScopeDispose as Qt, getCurrentInstance as Jt, ref as K, watch as Ne, nextTick as Pt, mergeProps as Je, createCommentVNode as H, Fragment as D, withDirectives as Ke, isRef as et, vModelRadio as Kt, pushScopeId as en, popScopeId as tn, createBlock as W, normalizeProps as nn, guardReactiveProps as on, withScopeId as sn, resolveComponent as qe, normalizeStyle as Ve, withKeys as rn, withCtx as q, createVNode as me, markRaw as ke, renderList as de, resolveDynamicComponent as je, vShow as an, vModelCheckbox as ln } from "vue";
2
+ const dn = ["danger", "disabled", "information", "brand"], un = ["small", "big", "tiny"], cn = ["top", "bottom", "default"], pn = {
3
3
  /**
4
4
  * @description Badge Label
5
5
  */
@@ -12,7 +12,7 @@ const un = ["danger", "disabled", "information", "brand"], cn = ["small", "big",
12
12
  */
13
13
  variant: {
14
14
  type: String,
15
- validator: (e) => un.includes(e),
15
+ validator: (e) => dn.includes(e),
16
16
  default: "brand"
17
17
  },
18
18
  /**
@@ -20,7 +20,7 @@ const un = ["danger", "disabled", "information", "brand"], cn = ["small", "big",
20
20
  */
21
21
  size: {
22
22
  type: String,
23
- validator: (e) => cn.includes(e),
23
+ validator: (e) => un.includes(e),
24
24
  default: "small"
25
25
  },
26
26
  /**
@@ -28,22 +28,22 @@ const un = ["danger", "disabled", "information", "brand"], cn = ["small", "big",
28
28
  */
29
29
  position: {
30
30
  type: String,
31
- validator: (e) => pn.includes(e),
31
+ validator: (e) => cn.includes(e),
32
32
  default: "default"
33
33
  }
34
34
  };
35
- function hn(e) {
35
+ function fn(e) {
36
36
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
37
37
  }
38
- var je = { exports: {} };
38
+ var Fe = { exports: {} };
39
39
  /*!
40
40
  Copyright (c) 2018 Jed Watson.
41
41
  Licensed under the MIT License (MIT), see
42
42
  http://jedwatson.github.io/classnames
43
43
  */
44
- var lt;
45
- function wn() {
46
- return lt || (lt = 1, function(e) {
44
+ var dt;
45
+ function hn() {
46
+ return dt || (dt = 1, function(e) {
47
47
  (function() {
48
48
  var t = {}.hasOwnProperty;
49
49
  function n() {
@@ -72,22 +72,22 @@ function wn() {
72
72
  }
73
73
  e.exports ? (n.default = n, e.exports = n) : window.classNames = n;
74
74
  })();
75
- }(je)), je.exports;
75
+ }(Fe)), Fe.exports;
76
76
  }
77
- var mn = wn();
78
- const O = /* @__PURE__ */ hn(mn), gn = (e) => {
77
+ var wn = hn();
78
+ const O = /* @__PURE__ */ fn(wn), mn = (e) => {
79
79
  const { position: t, size: n, variant: o } = e, s = P(() => {
80
80
  const a = O({
81
81
  "tw-background-color-danger-base tw-text-color-inverted-strong": o === "danger",
82
82
  "tw-background-color-disabled tw-text-color-on-fill-disabled ": o === "disabled",
83
83
  "tw-background-color-information-base tw-text-color-inverted-strong": o === "information",
84
84
  "tw-background-color-brand-base tw-text-color-inverted-strong": o === "brand"
85
- }), d = O({
85
+ }), l = O({
86
86
  "tw-label-sm-medium tw-h-[20px] tw-min-w-[20px] tw-rounded-[32px]": n === "big",
87
87
  "tw-label-xs-medium tw-h-[16px] tw-min-w-[16px] tw-rounded-[32px]": n === "small",
88
88
  "tw-h-[10px] tw-min-w-[10px] tw-rounded-full": n === "tiny"
89
89
  });
90
- return O(a, d);
90
+ return O(a, l);
91
91
  }), i = P(() => O({
92
92
  "tw-absolute tw--top-1 tw-right-1": t === "top" && n === "tiny",
93
93
  " tw-absolute tw--bottom-1 tw-right-1": t === "bottom" && n === "tiny",
@@ -104,36 +104,36 @@ const O = /* @__PURE__ */ hn(mn), gn = (e) => {
104
104
  badgePositionClasses: i,
105
105
  badgeElementWrapper: r
106
106
  };
107
- }, yn = { class: "tw-flex tw-gap-2" }, vn = /* @__PURE__ */ Z({
107
+ }, gn = { class: "tw-flex tw-gap-2" }, bn = /* @__PURE__ */ Y({
108
108
  __name: "badge",
109
- props: fn,
109
+ props: pn,
110
110
  setup(e) {
111
- const t = e, { badgeClasses: n, badgePositionClasses: o, badgeElementWrapper: s } = gn(t);
112
- return (i, r) => (_(), C("div", yn, [
113
- D(i.$slots, "default"),
114
- y("div", {
115
- class: A([S(s)])
111
+ const t = e, { badgeClasses: n, badgePositionClasses: o, badgeElementWrapper: s } = mn(t);
112
+ return (i, r) => (m(), $("div", gn, [
113
+ R(i.$slots, "default"),
114
+ w("div", {
115
+ class: k([x(s)])
116
116
  }, [
117
- y("section", {
118
- class: A([S(o)])
117
+ w("section", {
118
+ class: k([x(o)])
119
119
  }, [
120
- y("div", {
121
- class: A([S(n), "tw-flex tw-items-center tw-justify-center"])
122
- }, ue(t.size === "tiny" ? "" : i.text), 3)
120
+ w("div", {
121
+ class: k([x(n), "tw-flex tw-items-center tw-justify-center"])
122
+ }, F(t.size === "tiny" ? "" : i.text), 3)
123
123
  ], 2)
124
124
  ], 2)
125
125
  ]));
126
126
  }
127
- }), bn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
127
+ }), yn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
128
128
  __proto__: null,
129
- default: vn
130
- }, Symbol.toStringTag, { value: "Module" })), _n = ["neutral", "success", "danger"], xn = ["small", "medium", "large"], $n = ["button", "submit", "reset"], Sn = ["base", "hover", "pressed", "focus"], Tn = ["primary", "secondary", "tertiary"], Cn = {
129
+ default: bn
130
+ }, Symbol.toStringTag, { value: "Module" })), vn = ["neutral", "success", "danger"], _n = ["small", "medium", "large"], xn = ["button", "submit", "reset"], $n = ["base", "hover", "pressed", "focus"], Sn = ["primary", "secondary", "tertiary"], Tn = {
131
131
  /**
132
132
  * @description Button tone
133
133
  */
134
134
  tone: {
135
135
  type: String,
136
- validator: (e) => _n.includes(e),
136
+ validator: (e) => vn.includes(e),
137
137
  default: "neutral"
138
138
  },
139
139
  /**
@@ -141,7 +141,7 @@ const O = /* @__PURE__ */ hn(mn), gn = (e) => {
141
141
  */
142
142
  size: {
143
143
  type: String,
144
- validator: (e) => xn.includes(e),
144
+ validator: (e) => _n.includes(e),
145
145
  default: "medium"
146
146
  },
147
147
  /**
@@ -149,7 +149,7 @@ const O = /* @__PURE__ */ hn(mn), gn = (e) => {
149
149
  */
150
150
  type: {
151
151
  type: String,
152
- validator: (e) => $n.includes(e),
152
+ validator: (e) => xn.includes(e),
153
153
  default: "button"
154
154
  },
155
155
  /**
@@ -157,7 +157,7 @@ const O = /* @__PURE__ */ hn(mn), gn = (e) => {
157
157
  */
158
158
  state: {
159
159
  type: String,
160
- validator: (e) => Sn.includes(e),
160
+ validator: (e) => $n.includes(e),
161
161
  default: "base"
162
162
  },
163
163
  /**
@@ -165,7 +165,7 @@ const O = /* @__PURE__ */ hn(mn), gn = (e) => {
165
165
  */
166
166
  variant: {
167
167
  type: String,
168
- validator: (e) => Tn.includes(e),
168
+ validator: (e) => Sn.includes(e),
169
169
  default: "primary"
170
170
  },
171
171
  disabled: {
@@ -175,74 +175,74 @@ const O = /* @__PURE__ */ hn(mn), gn = (e) => {
175
175
  }, kn = {
176
176
  click: (e) => e instanceof MouseEvent
177
177
  };
178
- function Pn(e) {
179
- return Qt() ? (Jt(e), !0) : !1;
178
+ function Cn(e) {
179
+ return Zt() ? (Qt(e), !0) : !1;
180
180
  }
181
181
  function At(e) {
182
- return typeof e == "function" ? e() : S(e);
182
+ return typeof e == "function" ? e() : x(e);
183
183
  }
184
- const An = typeof window < "u" && typeof document < "u";
184
+ const Pn = typeof window < "u" && typeof document < "u";
185
185
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
186
- const On = (e) => typeof e < "u", Nn = Object.prototype.toString, zn = (e) => Nn.call(e) === "[object Object]", Bn = () => {
187
- }, Ke = An ? window : void 0;
188
- function et(e) {
186
+ const An = (e) => typeof e < "u", On = Object.prototype.toString, Nn = (e) => On.call(e) === "[object Object]", zn = () => {
187
+ }, tt = Pn ? window : void 0;
188
+ function nt(e) {
189
189
  var t;
190
190
  const n = At(e);
191
191
  return (t = n == null ? void 0 : n.$el) != null ? t : n;
192
192
  }
193
- function M(...e) {
193
+ function L(...e) {
194
194
  let t, n, o, s;
195
- if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([n, o, s] = e, t = Ke) : [t, n, o, s] = e, !t)
196
- return Bn;
195
+ if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([n, o, s] = e, t = tt) : [t, n, o, s] = e, !t)
196
+ return zn;
197
197
  Array.isArray(n) || (n = [n]), Array.isArray(o) || (o = [o]);
198
198
  const i = [], r = () => {
199
- i.forEach((c) => c()), i.length = 0;
200
- }, a = (c, u, f, p) => (c.addEventListener(u, f, p), () => c.removeEventListener(u, f, p)), d = Ae(
201
- () => [et(t), At(s)],
202
- ([c, u]) => {
203
- if (r(), !c)
199
+ i.forEach((u) => u()), i.length = 0;
200
+ }, a = (u, c, f, p) => (u.addEventListener(c, f, p), () => u.removeEventListener(c, f, p)), l = Ne(
201
+ () => [nt(t), At(s)],
202
+ ([u, c]) => {
203
+ if (r(), !u)
204
204
  return;
205
- const f = zn(u) ? { ...u } : u;
205
+ const f = Nn(c) ? { ...c } : c;
206
206
  i.push(
207
- ...n.flatMap((p) => o.map((h) => a(c, p, h, f)))
207
+ ...n.flatMap((p) => o.map((h) => a(u, p, h, f)))
208
208
  );
209
209
  },
210
210
  { immediate: !0, flush: "post" }
211
- ), l = () => {
212
- d(), r();
211
+ ), d = () => {
212
+ l(), r();
213
213
  };
214
- return Pn(l), l;
214
+ return Cn(d), d;
215
215
  }
216
- function Rn(e) {
216
+ function Bn(e) {
217
217
  return JSON.parse(JSON.stringify(e));
218
218
  }
219
- function tt(e, t = {}) {
219
+ function ot(e, t = {}) {
220
220
  const {
221
221
  delayEnter: n = 0,
222
222
  delayLeave: o = 0,
223
- window: s = Ke
224
- } = t, i = ee(!1);
223
+ window: s = tt
224
+ } = t, i = K(!1);
225
225
  let r;
226
- const a = (d) => {
227
- const l = d ? n : o;
228
- r && (clearTimeout(r), r = void 0), l ? r = setTimeout(() => i.value = d, l) : i.value = d;
226
+ const a = (l) => {
227
+ const d = l ? n : o;
228
+ r && (clearTimeout(r), r = void 0), d ? r = setTimeout(() => i.value = l, d) : i.value = l;
229
229
  };
230
- return s && (M(e, "mouseenter", () => a(!0), { passive: !0 }), M(e, "mouseleave", () => a(!1), { passive: !0 })), i;
231
- }
232
- function En(e, t = {}) {
233
- const { initialValue: n = !1, focusVisible: o = !1, preventScroll: s = !1 } = t, i = ee(!1), r = P(() => et(e));
234
- M(r, "focus", (d) => {
235
- var l, c;
236
- (!o || (c = (l = d.target).matches) != null && c.call(l, ":focus-visible")) && (i.value = !0);
237
- }), M(r, "blur", () => i.value = !1);
230
+ return s && (L(e, "mouseenter", () => a(!0), { passive: !0 }), L(e, "mouseleave", () => a(!1), { passive: !0 })), i;
231
+ }
232
+ function Rn(e, t = {}) {
233
+ const { initialValue: n = !1, focusVisible: o = !1, preventScroll: s = !1 } = t, i = K(!1), r = P(() => nt(e));
234
+ L(r, "focus", (l) => {
235
+ var d, u;
236
+ (!o || (u = (d = l.target).matches) != null && u.call(d, ":focus-visible")) && (i.value = !0);
237
+ }), L(r, "blur", () => i.value = !1);
238
238
  const a = P({
239
239
  get: () => i.value,
240
- set(d) {
241
- var l, c;
242
- !d && i.value ? (l = r.value) == null || l.blur() : d && !i.value && ((c = r.value) == null || c.focus({ preventScroll: s }));
240
+ set(l) {
241
+ var d, u;
242
+ !l && i.value ? (d = r.value) == null || d.blur() : l && !i.value && ((u = r.value) == null || u.focus({ preventScroll: s }));
243
243
  }
244
244
  });
245
- return Ae(
245
+ return Ne(
246
246
  r,
247
247
  () => {
248
248
  a.value = n;
@@ -256,19 +256,19 @@ function Ot(e = {}) {
256
256
  drag: n = !0,
257
257
  capture: o = !1,
258
258
  initialValue: s = !1,
259
- window: i = Ke
260
- } = e, r = ee(s), a = ee(null);
259
+ window: i = tt
260
+ } = e, r = K(s), a = K(null);
261
261
  if (!i)
262
262
  return {
263
263
  pressed: r,
264
264
  sourceType: a
265
265
  };
266
- const d = (u) => () => {
267
- r.value = !0, a.value = u;
268
- }, l = () => {
266
+ const l = (c) => () => {
267
+ r.value = !0, a.value = c;
268
+ }, d = () => {
269
269
  r.value = !1, a.value = null;
270
- }, c = P(() => et(e.target) || i);
271
- return M(c, "mousedown", d("mouse"), { passive: !0, capture: o }), M(i, "mouseleave", l, { passive: !0, capture: o }), M(i, "mouseup", l, { passive: !0, capture: o }), n && (M(c, "dragstart", d("mouse"), { passive: !0, capture: o }), M(i, "drop", l, { passive: !0, capture: o }), M(i, "dragend", l, { passive: !0, capture: o })), t && (M(c, "touchstart", d("touch"), { passive: !0, capture: o }), M(i, "touchend", l, { passive: !0, capture: o }), M(i, "touchcancel", l, { passive: !0, capture: o })), {
270
+ }, u = P(() => nt(e.target) || i);
271
+ return L(u, "mousedown", l("mouse"), { passive: !0, capture: o }), L(i, "mouseleave", d, { passive: !0, capture: o }), L(i, "mouseup", d, { passive: !0, capture: o }), n && (L(u, "dragstart", l("mouse"), { passive: !0, capture: o }), L(i, "drop", d, { passive: !0, capture: o }), L(i, "dragend", d, { passive: !0, capture: o })), t && (L(u, "touchstart", l("touch"), { passive: !0, capture: o }), L(i, "touchend", d, { passive: !0, capture: o }), L(i, "touchcancel", d, { passive: !0, capture: o })), {
272
272
  pressed: r,
273
273
  sourceType: a
274
274
  };
@@ -277,132 +277,230 @@ function Nt(e, t, n, o = {}) {
277
277
  var s, i, r;
278
278
  const {
279
279
  clone: a = !1,
280
- passive: d = !1,
281
- eventName: l,
282
- deep: c = !1,
283
- defaultValue: u,
280
+ passive: l = !1,
281
+ eventName: d,
282
+ deep: u = !1,
283
+ defaultValue: c,
284
284
  shouldEmit: f
285
- } = o, p = Kt(), h = n || (p == null ? void 0 : p.emit) || ((s = p == null ? void 0 : p.$emit) == null ? void 0 : s.bind(p)) || ((r = (i = p == null ? void 0 : p.proxy) == null ? void 0 : i.$emit) == null ? void 0 : r.bind(p == null ? void 0 : p.proxy));
286
- let w = l;
287
- w = w || `update:${t.toString()}`;
288
- const g = (b) => a ? typeof a == "function" ? a(b) : Rn(b) : b, m = () => On(e[t]) ? g(e[t]) : u, v = (b) => {
289
- f ? f(b) && h(w, b) : h(w, b);
285
+ } = o, p = Jt(), h = n || (p == null ? void 0 : p.emit) || ((s = p == null ? void 0 : p.$emit) == null ? void 0 : s.bind(p)) || ((r = (i = p == null ? void 0 : p.proxy) == null ? void 0 : i.$emit) == null ? void 0 : r.bind(p == null ? void 0 : p.proxy));
286
+ let g = d;
287
+ g = g || `update:${t.toString()}`;
288
+ const b = (_) => a ? typeof a == "function" ? a(_) : Bn(_) : _, y = () => An(e[t]) ? b(e[t]) : c, v = (_) => {
289
+ f ? f(_) && h(g, _) : h(g, _);
290
290
  };
291
- if (d) {
292
- const b = m(), k = ee(b);
293
- let $ = !1;
294
- return Ae(
291
+ if (l) {
292
+ const _ = y(), A = K(_);
293
+ let T = !1;
294
+ return Ne(
295
295
  () => e[t],
296
296
  (N) => {
297
- $ || ($ = !0, k.value = g(N), kt(() => $ = !1));
297
+ T || (T = !0, A.value = b(N), Pt(() => T = !1));
298
298
  }
299
- ), Ae(
300
- k,
299
+ ), Ne(
300
+ A,
301
301
  (N) => {
302
- !$ && (N !== e[t] || c) && v(N);
302
+ !T && (N !== e[t] || u) && v(N);
303
303
  },
304
- { deep: c }
305
- ), k;
304
+ { deep: u }
305
+ ), A;
306
306
  } else
307
307
  return P({
308
308
  get() {
309
- return m();
309
+ return y();
310
310
  },
311
- set(b) {
312
- v(b);
311
+ set(_) {
312
+ v(_);
313
313
  }
314
314
  });
315
315
  }
316
- const Dn = (e, t) => {
317
- const n = ee(null), o = tt(n), { pressed: s } = Ot({ target: n }), { focused: i } = En(n), { state: r, type: a, size: d, tone: l, variant: c, disabled: u } = e, f = P(() => ({
318
- ...u && { ariaDisabled: !0 },
319
- disabled: u,
316
+ const En = (e, t) => {
317
+ const n = K(null), o = ot(n), { pressed: s } = Ot({ target: n }), { focused: i } = Rn(n), { state: r, type: a, size: l, tone: d, variant: u, disabled: c } = e, f = P(() => ({
318
+ ...c && { ariaDisabled: !0 },
319
+ disabled: c,
320
320
  autofocus: r === "focus",
321
321
  type: a ?? "button"
322
322
  })), p = P(
323
323
  () => O({
324
- "tw-px-[4px] tw-py-[6px] tw-font-medium tw-font-size-100 tw-leading-100": d === "small",
325
- "tw-p-[8px] tw-font-medium tw-font-size-100 tw-leading-100": d === "medium",
326
- "tw-px-[8px] tw-py-[12px] tw-font-medium tw-font-size-200 tw-leading-300": d === "large"
324
+ "tw-px-[4px] tw-py-[6px] tw-font-medium tw-font-size-100 tw-leading-100": l === "small",
325
+ "tw-p-[8px] tw-font-medium tw-font-size-100 tw-leading-100": l === "medium",
326
+ "tw-px-[8px] tw-py-[12px] tw-font-medium tw-font-size-200 tw-leading-300": l === "large"
327
327
  })
328
- ), h = P(() => O(c === "secondary" || c === "tertiary" ? {
329
- "tw-text-color-strong": l === "neutral",
330
- "tw-text-color-brand-base": l === "success",
331
- "tw-text-color-danger-base": l === "danger"
328
+ ), h = P(() => O(u === "secondary" || u === "tertiary" ? {
329
+ "tw-text-color-strong": d === "neutral",
330
+ "tw-text-color-brand-base": d === "success",
331
+ "tw-text-color-danger-base": d === "danger"
332
332
  } : {
333
- "tw-text-color-strong": l === "neutral",
334
- "tw-text-color-inverted-strong": l === "success" || l === "danger"
335
- })), w = P(() => c === "secondary" ? o.value ? "tw-background-color-hover" : "" : c === "tertiary" ? g() : m());
336
- function g() {
333
+ "tw-text-color-strong": d === "neutral",
334
+ "tw-text-color-inverted-strong": d === "success" || d === "danger"
335
+ })), g = P(() => u === "secondary" ? o.value ? "tw-background-color-hover" : "" : u === "tertiary" ? b() : y());
336
+ function b() {
337
337
  return s.value ? "tw-background-color-pressed" : o.value ? "tw-background-color-hover" : "";
338
338
  }
339
- function m() {
340
- return s.value ? v() : o.value ? b() : k();
339
+ function y() {
340
+ return s.value ? v() : o.value ? _() : A();
341
341
  }
342
342
  function v() {
343
343
  return {
344
344
  neutral: "tw-background-color-pressed",
345
345
  success: "tw-background-color-brand-pressed",
346
346
  danger: "tw-background-color-danger-pressed"
347
- }[l] || "";
347
+ }[d] || "";
348
348
  }
349
- function b() {
349
+ function _() {
350
350
  return {
351
351
  neutral: "tw-background-color-hover",
352
352
  success: "tw-background-color-success-pressed",
353
353
  danger: "tw-background-color-danger-hover"
354
- }[l] || "";
354
+ }[d] || "";
355
355
  }
356
- function k() {
356
+ function A() {
357
357
  return {
358
358
  neutral: "tw-background-color-base",
359
359
  success: "tw-background-color-brand-base",
360
360
  danger: "tw-background-color-danger-base"
361
- }[l] || "";
361
+ }[d] || "";
362
362
  }
363
- const $ = P(() => c === "primary" || c === "tertiary" ? i.value ? "tw-border-solid tw-border tw-border-white-50" : "tw-border-solid tw-border tw-border-transparent" : O({
364
- "tw-border-solid tw-border tw-border-color-base": l === "neutral",
365
- "tw-border-solid tw-border tw-border-color-brand-base": l === "success",
366
- "tw-border-solid tw-border tw-border-color-danger-base": l === "danger"
367
- })), N = P(() => O(w.value, h.value, $.value)), z = P(() => s.value ? "tw-shadow-button" : i.value ? "tw-shadow-button-active" : ""), H = P(() => u ? O(p.value, "tw-text-color-disabled") : O(p.value, N.value, z.value));
363
+ const T = P(() => u === "primary" || u === "tertiary" ? i.value ? "tw-border-solid tw-border tw-border-white-50" : "tw-border-solid tw-border tw-border-transparent" : O({
364
+ "tw-border-solid tw-border tw-border-color-base": d === "neutral",
365
+ "tw-border-solid tw-border tw-border-color-brand-base": d === "success",
366
+ "tw-border-solid tw-border tw-border-color-danger-base": d === "danger"
367
+ })), N = P(() => O(g.value, h.value, T.value)), z = P(() => s.value ? "tw-shadow-button" : i.value ? "tw-shadow-button-active" : ""), V = P(() => c ? O(p.value, "tw-text-color-disabled") : O(p.value, N.value, z.value));
368
368
  return {
369
369
  buttonRef: n,
370
370
  buttonProps: f,
371
- buttonClass: H,
372
- handleClick: (T) => {
373
- if (u) {
374
- T.stopPropagation();
371
+ buttonClass: V,
372
+ handleClick: (C) => {
373
+ if (c) {
374
+ C.stopPropagation();
375
375
  return;
376
376
  }
377
- t("click", T);
377
+ t("click", C);
378
378
  }
379
379
  };
380
- }, Mn = /* @__PURE__ */ Z({
380
+ }, Mn = /* @__PURE__ */ Y({
381
381
  __name: "button",
382
- props: Cn,
382
+ props: Tn,
383
383
  emits: kn,
384
384
  setup(e, { emit: t }) {
385
- const n = e, o = t, { buttonRef: s, buttonProps: i, buttonClass: r, handleClick: a } = Dn(n, o);
386
- return (d, l) => (_(), C("button", Qe({
385
+ const n = e, o = t, { buttonRef: s, buttonProps: i, buttonClass: r, handleClick: a } = En(n, o);
386
+ return (l, d) => (m(), $("button", Je({
387
387
  ref_key: "buttonRef",
388
388
  ref: s
389
- }, S(i), {
389
+ }, x(i), {
390
390
  class: [
391
391
  "tw-inline-flex tw-w-fit tw-min-w-[56px] tw-cursor-pointer tw-items-center tw-justify-center tw-rounded-md tw-outline-none tw-duration-150 tw-ease-in-out",
392
392
  "hover:tw-shadow-button-hover",
393
393
  "active:tw-scale-95",
394
- S(r)
394
+ x(r)
395
395
  ],
396
- onClick: l[0] || (l[0] = //@ts-ignore
397
- (...c) => S(a) && S(a)(...c))
396
+ onClick: d[0] || (d[0] = //@ts-ignore
397
+ (...u) => x(a) && x(a)(...u))
398
398
  }), [
399
- D(d.$slots, "default")
399
+ R(l.$slots, "default")
400
400
  ], 16));
401
401
  }
402
- }), Hn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
402
+ }), Dn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
403
403
  __proto__: null,
404
404
  default: Mn
405
- }, Symbol.toStringTag, { value: "Module" })), Ln = ["pending", "information", "success", "danger", "neutral", "caution"], jn = {
405
+ }, Symbol.toStringTag, { value: "Module" })), Hn = {
406
+ modelValue: {
407
+ type: String,
408
+ required: !0
409
+ },
410
+ label: {
411
+ type: String,
412
+ default: ""
413
+ },
414
+ type: {
415
+ type: String,
416
+ default: "text"
417
+ },
418
+ placeholder: {
419
+ type: String,
420
+ default: ""
421
+ },
422
+ error: {
423
+ type: String,
424
+ default: ""
425
+ },
426
+ id: {
427
+ type: String,
428
+ default: ""
429
+ },
430
+ disabled: {
431
+ type: Boolean,
432
+ default: !1
433
+ }
434
+ }, Ln = (e) => {
435
+ const { error: t, disabled: n } = e, o = P(() => "tw-mb-4 tw-flex tw-flex-col tw-gap-size-spacing-4xs"), s = P(() => O("tw-body-sm-regular tw-text-color-strong tw-block", {
436
+ "tw-text-color-on-fill-disabled": n
437
+ })), i = P(() => O(
438
+ "tw-block",
439
+ "tw-w-full",
440
+ "tw-px-size-spacing-2xs",
441
+ "tw-py-size-spacing-4xs",
442
+ "tw-rounded-lg",
443
+ "placeholder:tw-text-mushroom-300",
444
+ "tw-text-color-strong",
445
+ "tw-ring-1",
446
+ "tw-font-size-200",
447
+ "tw-ring-mushroom-200",
448
+ "focus:tw-ring-kangkong-700",
449
+ "focus:tw-text-color-strong",
450
+ "focus:tw-ring-[1.5px]",
451
+ {
452
+ "tw-ring-tomato-600": t,
453
+ "focus:tw-ring-tomato-600": t,
454
+ "tw-ring-white-100": n,
455
+ "tw-background-color-disabled": n,
456
+ "tw-cursor-not-allowed": n,
457
+ "tw-text-color-on-fill-disabled": n
458
+ }
459
+ )), r = P(() => O(
460
+ "tw-absolute tw-right-3 tw-top-1/2 tw-h-5 tw-w-5 tw--translate-y-1/2 tw-transform tw-text-mushroom-300",
461
+ { "!tw-text-tomato-600": t }
462
+ ));
463
+ return {
464
+ inputClasses: i,
465
+ wrapperClasses: o,
466
+ labelClasses: s,
467
+ iconSlotClasses: r
468
+ };
469
+ }, Vn = ["for"], jn = { class: "tw-relative" }, Fn = ["id", "type", "value", "placeholder", "disabled"], Wn = /* @__PURE__ */ Y({
470
+ __name: "input",
471
+ props: Hn,
472
+ setup(e) {
473
+ const t = e, { inputClasses: n, wrapperClasses: o, labelClasses: s, iconSlotClasses: i } = Ln(t);
474
+ return (r, a) => (m(), $("div", {
475
+ class: k(x(o))
476
+ }, [
477
+ r.label ? (m(), $("label", {
478
+ key: 0,
479
+ for: r.id,
480
+ class: k(x(s))
481
+ }, F(r.label), 11, Vn)) : H("", !0),
482
+ w("div", jn, [
483
+ w("input", {
484
+ id: r.id,
485
+ type: r.type,
486
+ value: r.modelValue,
487
+ class: k(x(n)),
488
+ placeholder: r.placeholder,
489
+ disabled: r.disabled,
490
+ onInput: a[0] || (a[0] = (l) => r.$emit("update:modelValue", l.target.value))
491
+ }, null, 42, Fn),
492
+ w("div", {
493
+ class: k(x(i))
494
+ }, [
495
+ R(r.$slots, "icon")
496
+ ], 2)
497
+ ])
498
+ ], 2));
499
+ }
500
+ }), In = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
501
+ __proto__: null,
502
+ default: Wn
503
+ }, Symbol.toStringTag, { value: "Module" })), qn = ["pending", "information", "success", "danger", "neutral", "caution"], Gn = {
406
504
  /**
407
505
  * @description Lozenge Label
408
506
  */
@@ -415,7 +513,7 @@ const Dn = (e, t) => {
415
513
  */
416
514
  tone: {
417
515
  type: String,
418
- validator: (e) => Ln.includes(e),
516
+ validator: (e) => qn.includes(e),
419
517
  default: "plain"
420
518
  },
421
519
  /**
@@ -446,61 +544,56 @@ const Dn = (e, t) => {
446
544
  type: Boolean,
447
545
  default: !0
448
546
  }
449
- }, Fn = {
547
+ }, Un = {
450
548
  key: 0,
451
549
  class: "tw-flex tw-h-3 tw-w-3 tw-items-center tw-overflow-hidden"
452
- }, In = {
550
+ }, Yn = {
453
551
  key: 1,
454
552
  class: "tw-flex tw-items-center"
455
- }, Vn = {
553
+ }, Xn = {
456
554
  key: 2,
457
555
  class: "tw-h-4 tw-w-4 tw-overflow-hidden"
458
- }, Wn = ["src"], qn = /* @__PURE__ */ Z({
556
+ }, Zn = ["src"], Qn = /* @__PURE__ */ Y({
459
557
  __name: "lozenge",
460
- props: jn,
558
+ props: Gn,
461
559
  setup(e) {
462
- return (t, n) => t.visible ? (_(), C("div", {
560
+ return (t, n) => t.visible ? (m(), $("div", {
463
561
  key: 0,
464
- class: A([t.fill ? "lozenge-fill" : "lozenge"])
562
+ class: k([t.fill ? "lozenge-fill" : "lozenge"])
465
563
  }, [
466
- y("div", {
467
- class: A([
564
+ w("div", {
565
+ class: k([
468
566
  "tw-label-xs-medium tw-inline-flex tw-items-center tw-gap-size-spacing-6xs tw-rounded-md tw-border tw-border-solid tw-p-size-spacing-5xs tw-text-xs tw-uppercase",
469
567
  t.tone
470
568
  ])
471
569
  }, [
472
- t.$slots.icon ? (_(), C("div", Fn, [
473
- D(t.$slots, "icon", {}, void 0, !0)
474
- ])) : G("", !0),
475
- t.$slots.avatar ? (_(), C("div", In, [
476
- D(t.$slots, "avatar", {}, void 0, !0)
477
- ])) : G("", !0),
478
- t.url && !t.$slots.avatar ? (_(), C("div", Vn, [
479
- y("img", {
570
+ t.$slots.icon ? (m(), $("div", Un, [
571
+ R(t.$slots, "icon")
572
+ ])) : H("", !0),
573
+ t.$slots.avatar ? (m(), $("div", Yn, [
574
+ R(t.$slots, "avatar")
575
+ ])) : H("", !0),
576
+ t.url && !t.$slots.avatar ? (m(), $("div", Xn, [
577
+ w("img", {
480
578
  class: "tw-h-full tw-w-full tw-rounded-full tw-object-cover",
481
579
  src: t.url,
482
580
  alt: "avatar"
483
- }, null, 8, Wn)
484
- ])) : G("", !0),
485
- y("div", null, ue(t.label), 1)
581
+ }, null, 8, Zn)
582
+ ])) : H("", !0),
583
+ w("div", null, F(t.label), 1)
486
584
  ], 2)
487
- ], 2)) : G("", !0);
585
+ ], 2)) : H("", !0);
488
586
  }
489
- }), zt = (e, t) => {
490
- const n = e.__vccOpts || e;
491
- for (const [o, s] of t)
492
- n[o] = s;
493
- return n;
494
- }, Gn = /* @__PURE__ */ zt(qn, [["__scopeId", "data-v-1688fd0a"]]), Un = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
587
+ }), Jn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
495
588
  __proto__: null,
496
- default: Gn
497
- }, Symbol.toStringTag, { value: "Module" })), Yn = ["default", "hover", "disabled"], Xn = {
589
+ default: Qn
590
+ }, Symbol.toStringTag, { value: "Module" })), Kn = ["default", "hover", "disabled"], eo = {
498
591
  /**
499
592
  * @description Radio state
500
593
  */
501
594
  state: {
502
595
  type: String,
503
- validator: (e) => Yn.includes(e),
596
+ validator: (e) => Kn.includes(e),
504
597
  default: "default"
505
598
  },
506
599
  disabled: {
@@ -536,8 +629,8 @@ const Dn = (e, t) => {
536
629
  type: [String, Number, Boolean],
537
630
  required: !0
538
631
  }
539
- }, Zn = ["update:modelValue"], Qn = (e) => {
540
- const t = ee(null), n = tt(t), o = P(() => {
632
+ }, to = ["update:modelValue"], no = (e) => {
633
+ const t = K(null), n = ot(t), o = P(() => {
541
634
  const r = "tw-sr-only tw-peer";
542
635
  return e.disabled ? O(r, "tw-cursor-default") : r;
543
636
  }), s = P(() => {
@@ -560,57 +653,57 @@ const Dn = (e, t) => {
560
653
  indicatorClasses: s,
561
654
  radioLabelClasses: i
562
655
  };
563
- }, Jn = ["id", "name", "value", "disabled"], Kn = ["for", "disabled"], eo = /* @__PURE__ */ Z({
656
+ }, oo = ["id", "name", "value", "disabled"], so = ["for", "disabled"], io = /* @__PURE__ */ Y({
564
657
  __name: "radio",
565
- props: Xn,
566
- emits: Zn,
658
+ props: eo,
659
+ emits: to,
567
660
  setup(e, { emit: t }) {
568
- const n = e, s = Nt(n, "modelValue", t), { radioRef: i, radioClasses: r, indicatorClasses: a, radioLabelClasses: d } = Qn(n);
569
- return (l, c) => (_(), C(J, null, [
570
- Je(y("input", {
661
+ const n = e, s = Nt(n, "modelValue", t), { radioRef: i, radioClasses: r, indicatorClasses: a, radioLabelClasses: l } = no(n);
662
+ return (d, u) => (m(), $(D, null, [
663
+ Ke(w("input", {
571
664
  id: n.id,
572
665
  ref_key: "radioRef",
573
666
  ref: i,
574
- "onUpdate:modelValue": c[0] || (c[0] = (u) => Pt(s) ? s.value = u : null),
667
+ "onUpdate:modelValue": u[0] || (u[0] = (c) => et(s) ? s.value = c : null),
575
668
  type: "radio",
576
669
  name: n.name,
577
670
  value: n.value,
578
671
  disabled: n.disabled,
579
- class: A(S(r))
580
- }, null, 10, Jn), [
581
- [en, S(s)]
672
+ class: k(x(r))
673
+ }, null, 10, oo), [
674
+ [Kt, x(s)]
582
675
  ]),
583
- y("label", {
676
+ w("label", {
584
677
  ref_key: "radioRef",
585
678
  ref: i,
586
679
  for: n.id,
587
680
  disabled: n.disabled,
588
- class: A([
681
+ class: k([
589
682
  "tw-flex tw-items-center tw-space-x-2",
590
- S(d)
683
+ x(l)
591
684
  ])
592
685
  }, [
593
- y("span", {
594
- class: A(S(a))
686
+ w("span", {
687
+ class: k(x(a))
595
688
  }, null, 2),
596
- D(l.$slots, "default")
597
- ], 10, Kn)
689
+ R(d.$slots, "default")
690
+ ], 10, so)
598
691
  ], 64));
599
692
  }
600
- }), to = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
693
+ }), ro = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
601
694
  __proto__: null,
602
- default: eo
603
- }, Symbol.toStringTag, { value: "Module" })), no = {
695
+ default: io
696
+ }, Symbol.toStringTag, { value: "Module" })), ao = {
604
697
  /**
605
- * @description Sidenav has quick actions
698
+ * @description Quick actions
606
699
  */
607
- hasQuickActions: {
608
- type: Boolean,
609
- validator: (e) => typeof e == "boolean",
610
- default: !1
700
+ quickActions: {
701
+ type: Array,
702
+ validator: (e) => Array.isArray(e),
703
+ default: () => []
611
704
  },
612
705
  /**
613
- * @description Sidenav has search
706
+ * @description Search
614
707
  */
615
708
  hasSearch: {
616
709
  type: Boolean,
@@ -618,7 +711,7 @@ const Dn = (e, t) => {
618
711
  default: !1
619
712
  },
620
713
  /**
621
- * @description Sidenav active navigation
714
+ * @description Active Navlink
622
715
  */
623
716
  activeNav: {
624
717
  type: Object,
@@ -626,66 +719,67 @@ const Dn = (e, t) => {
626
719
  default: () => ({ parentNav: "", menu: "", submenu: "" })
627
720
  },
628
721
  /**
629
- * @description Sidenav navlinks
722
+ * @description Navlinks
630
723
  */
631
724
  navLinks: {
632
725
  type: Array,
633
726
  validator: (e) => Array.isArray(e),
634
727
  default: () => []
635
728
  }
636
- }, oo = {
637
- "route-push": String
638
- }, so = (e, t) => ({
639
- handleRedirect: (o, s) => {
640
- s && (s.openInNewTab ? window.open(s.link, "_blank") : s.isAbsoluteURL ? location.href = s.link : t("route-push", s.link));
729
+ }, lo = {
730
+ "get-navlink-item": String
731
+ }, uo = (e, t) => ({
732
+ isQuckActionMenuVisible: K(!1),
733
+ handleRedirect: (s, i) => {
734
+ i && i.redirect && (i.redirect.openInNewTab ? window.open(i.redirect.link, "_blank") : i.redirect.isAbsoluteURL ? location.href = i.redirect.link : t("get-navlink-item", i));
641
735
  }
642
- }), io = ["top", "right", "bottom", "left"], dt = ["start", "end"], ut = /* @__PURE__ */ io.reduce((e, t) => e.concat(t, t + "-" + dt[0], t + "-" + dt[1]), []), be = Math.min, de = Math.max, ro = {
736
+ }), co = ["top", "right", "bottom", "left"], ut = ["start", "end"], ct = /* @__PURE__ */ co.reduce((e, t) => e.concat(t, t + "-" + ut[0], t + "-" + ut[1]), []), xe = Math.min, ce = Math.max, po = {
643
737
  left: "right",
644
738
  right: "left",
645
739
  bottom: "top",
646
740
  top: "bottom"
647
- }, ao = {
741
+ }, fo = {
648
742
  start: "end",
649
743
  end: "start"
650
744
  };
651
- function qe(e, t, n) {
652
- return de(e, be(t, n));
745
+ function Ge(e, t, n) {
746
+ return ce(e, xe(t, n));
653
747
  }
654
- function fe(e, t) {
748
+ function he(e, t) {
655
749
  return typeof e == "function" ? e(t) : e;
656
750
  }
657
- function X(e) {
751
+ function ee(e) {
658
752
  return e.split("-")[0];
659
753
  }
660
- function V(e) {
754
+ function U(e) {
661
755
  return e.split("-")[1];
662
756
  }
663
- function Bt(e) {
757
+ function zt(e) {
664
758
  return e === "x" ? "y" : "x";
665
759
  }
666
- function nt(e) {
760
+ function st(e) {
667
761
  return e === "y" ? "height" : "width";
668
762
  }
669
- function pe(e) {
670
- return ["top", "bottom"].includes(X(e)) ? "y" : "x";
763
+ function fe(e) {
764
+ return ["top", "bottom"].includes(ee(e)) ? "y" : "x";
671
765
  }
672
- function ot(e) {
673
- return Bt(pe(e));
766
+ function it(e) {
767
+ return zt(fe(e));
674
768
  }
675
- function Rt(e, t, n) {
769
+ function Bt(e, t, n) {
676
770
  n === void 0 && (n = !1);
677
- const o = V(e), s = ot(e), i = nt(s);
771
+ const o = U(e), s = it(e), i = st(s);
678
772
  let r = s === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
679
- return t.reference[i] > t.floating[i] && (r = Ne(r)), [r, Ne(r)];
773
+ return t.reference[i] > t.floating[i] && (r = Be(r)), [r, Be(r)];
680
774
  }
681
- function lo(e) {
682
- const t = Ne(e);
683
- return [Oe(e), t, Oe(t)];
775
+ function ho(e) {
776
+ const t = Be(e);
777
+ return [ze(e), t, ze(t)];
684
778
  }
685
- function Oe(e) {
686
- return e.replace(/start|end/g, (t) => ao[t]);
779
+ function ze(e) {
780
+ return e.replace(/start|end/g, (t) => fo[t]);
687
781
  }
688
- function uo(e, t, n) {
782
+ function wo(e, t, n) {
689
783
  const o = ["left", "right"], s = ["right", "left"], i = ["top", "bottom"], r = ["bottom", "top"];
690
784
  switch (e) {
691
785
  case "top":
@@ -698,15 +792,15 @@ function uo(e, t, n) {
698
792
  return [];
699
793
  }
700
794
  }
701
- function co(e, t, n, o) {
702
- const s = V(e);
703
- let i = uo(X(e), n === "start", o);
704
- return s && (i = i.map((r) => r + "-" + s), t && (i = i.concat(i.map(Oe)))), i;
795
+ function mo(e, t, n, o) {
796
+ const s = U(e);
797
+ let i = wo(ee(e), n === "start", o);
798
+ return s && (i = i.map((r) => r + "-" + s), t && (i = i.concat(i.map(ze)))), i;
705
799
  }
706
- function Ne(e) {
707
- return e.replace(/left|right|bottom|top/g, (t) => ro[t]);
800
+ function Be(e) {
801
+ return e.replace(/left|right|bottom|top/g, (t) => po[t]);
708
802
  }
709
- function po(e) {
803
+ function go(e) {
710
804
  return {
711
805
  top: 0,
712
806
  right: 0,
@@ -715,15 +809,15 @@ function po(e) {
715
809
  ...e
716
810
  };
717
811
  }
718
- function Et(e) {
719
- return typeof e != "number" ? po(e) : {
812
+ function Rt(e) {
813
+ return typeof e != "number" ? go(e) : {
720
814
  top: e,
721
815
  right: e,
722
816
  bottom: e,
723
817
  left: e
724
818
  };
725
819
  }
726
- function me(e) {
820
+ function be(e) {
727
821
  const {
728
822
  x: t,
729
823
  y: n,
@@ -741,36 +835,36 @@ function me(e) {
741
835
  y: n
742
836
  };
743
837
  }
744
- function ct(e, t, n) {
838
+ function pt(e, t, n) {
745
839
  let {
746
840
  reference: o,
747
841
  floating: s
748
842
  } = e;
749
- const i = pe(t), r = ot(t), a = nt(r), d = X(t), l = i === "y", c = o.x + o.width / 2 - s.width / 2, u = o.y + o.height / 2 - s.height / 2, f = o[a] / 2 - s[a] / 2;
843
+ const i = fe(t), r = it(t), a = st(r), l = ee(t), d = i === "y", u = o.x + o.width / 2 - s.width / 2, c = o.y + o.height / 2 - s.height / 2, f = o[a] / 2 - s[a] / 2;
750
844
  let p;
751
- switch (d) {
845
+ switch (l) {
752
846
  case "top":
753
847
  p = {
754
- x: c,
848
+ x: u,
755
849
  y: o.y - s.height
756
850
  };
757
851
  break;
758
852
  case "bottom":
759
853
  p = {
760
- x: c,
854
+ x: u,
761
855
  y: o.y + o.height
762
856
  };
763
857
  break;
764
858
  case "right":
765
859
  p = {
766
860
  x: o.x + o.width,
767
- y: u
861
+ y: c
768
862
  };
769
863
  break;
770
864
  case "left":
771
865
  p = {
772
866
  x: o.x - s.width,
773
- y: u
867
+ y: c
774
868
  };
775
869
  break;
776
870
  default:
@@ -779,78 +873,78 @@ function ct(e, t, n) {
779
873
  y: o.y
780
874
  };
781
875
  }
782
- switch (V(t)) {
876
+ switch (U(t)) {
783
877
  case "start":
784
- p[r] -= f * (n && l ? -1 : 1);
878
+ p[r] -= f * (n && d ? -1 : 1);
785
879
  break;
786
880
  case "end":
787
- p[r] += f * (n && l ? -1 : 1);
881
+ p[r] += f * (n && d ? -1 : 1);
788
882
  break;
789
883
  }
790
884
  return p;
791
885
  }
792
- const fo = async (e, t, n) => {
886
+ const bo = async (e, t, n) => {
793
887
  const {
794
888
  placement: o = "bottom",
795
889
  strategy: s = "absolute",
796
890
  middleware: i = [],
797
891
  platform: r
798
- } = n, a = i.filter(Boolean), d = await (r.isRTL == null ? void 0 : r.isRTL(t));
799
- let l = await r.getElementRects({
892
+ } = n, a = i.filter(Boolean), l = await (r.isRTL == null ? void 0 : r.isRTL(t));
893
+ let d = await r.getElementRects({
800
894
  reference: e,
801
895
  floating: t,
802
896
  strategy: s
803
897
  }), {
804
- x: c,
805
- y: u
806
- } = ct(l, o, d), f = o, p = {}, h = 0;
807
- for (let w = 0; w < a.length; w++) {
898
+ x: u,
899
+ y: c
900
+ } = pt(d, o, l), f = o, p = {}, h = 0;
901
+ for (let g = 0; g < a.length; g++) {
808
902
  const {
809
- name: g,
810
- fn: m
811
- } = a[w], {
903
+ name: b,
904
+ fn: y
905
+ } = a[g], {
812
906
  x: v,
813
- y: b,
814
- data: k,
815
- reset: $
816
- } = await m({
817
- x: c,
818
- y: u,
907
+ y: _,
908
+ data: A,
909
+ reset: T
910
+ } = await y({
911
+ x: u,
912
+ y: c,
819
913
  initialPlacement: o,
820
914
  placement: f,
821
915
  strategy: s,
822
916
  middlewareData: p,
823
- rects: l,
917
+ rects: d,
824
918
  platform: r,
825
919
  elements: {
826
920
  reference: e,
827
921
  floating: t
828
922
  }
829
923
  });
830
- c = v ?? c, u = b ?? u, p = {
924
+ u = v ?? u, c = _ ?? c, p = {
831
925
  ...p,
832
- [g]: {
833
- ...p[g],
834
- ...k
926
+ [b]: {
927
+ ...p[b],
928
+ ...A
835
929
  }
836
- }, $ && h <= 50 && (h++, typeof $ == "object" && ($.placement && (f = $.placement), $.rects && (l = $.rects === !0 ? await r.getElementRects({
930
+ }, T && h <= 50 && (h++, typeof T == "object" && (T.placement && (f = T.placement), T.rects && (d = T.rects === !0 ? await r.getElementRects({
837
931
  reference: e,
838
932
  floating: t,
839
933
  strategy: s
840
- }) : $.rects), {
841
- x: c,
842
- y: u
843
- } = ct(l, f, d)), w = -1);
934
+ }) : T.rects), {
935
+ x: u,
936
+ y: c
937
+ } = pt(d, f, l)), g = -1);
844
938
  }
845
939
  return {
846
- x: c,
847
- y: u,
940
+ x: u,
941
+ y: c,
848
942
  placement: f,
849
943
  strategy: s,
850
944
  middlewareData: p
851
945
  };
852
946
  };
853
- async function Ee(e, t) {
947
+ async function Me(e, t) {
854
948
  var n;
855
949
  t === void 0 && (t = {});
856
950
  const {
@@ -859,43 +953,43 @@ async function Ee(e, t) {
859
953
  platform: i,
860
954
  rects: r,
861
955
  elements: a,
862
- strategy: d
956
+ strategy: l
863
957
  } = e, {
864
- boundary: l = "clippingAncestors",
865
- rootBoundary: c = "viewport",
866
- elementContext: u = "floating",
958
+ boundary: d = "clippingAncestors",
959
+ rootBoundary: u = "viewport",
960
+ elementContext: c = "floating",
867
961
  altBoundary: f = !1,
868
962
  padding: p = 0
869
- } = fe(t, e), h = Et(p), g = a[f ? u === "floating" ? "reference" : "floating" : u], m = me(await i.getClippingRect({
870
- element: (n = await (i.isElement == null ? void 0 : i.isElement(g))) == null || n ? g : g.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(a.floating)),
871
- boundary: l,
872
- rootBoundary: c,
873
- strategy: d
874
- })), v = u === "floating" ? {
963
+ } = he(t, e), h = Rt(p), b = a[f ? c === "floating" ? "reference" : "floating" : c], y = be(await i.getClippingRect({
964
+ element: (n = await (i.isElement == null ? void 0 : i.isElement(b))) == null || n ? b : b.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(a.floating)),
965
+ boundary: d,
966
+ rootBoundary: u,
967
+ strategy: l
968
+ })), v = c === "floating" ? {
875
969
  x: o,
876
970
  y: s,
877
971
  width: r.floating.width,
878
972
  height: r.floating.height
879
- } : r.reference, b = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(a.floating)), k = await (i.isElement == null ? void 0 : i.isElement(b)) ? await (i.getScale == null ? void 0 : i.getScale(b)) || {
973
+ } : r.reference, _ = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(a.floating)), A = await (i.isElement == null ? void 0 : i.isElement(_)) ? await (i.getScale == null ? void 0 : i.getScale(_)) || {
880
974
  x: 1,
881
975
  y: 1
882
976
  } : {
883
977
  x: 1,
884
978
  y: 1
885
- }, $ = me(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
979
+ }, T = be(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
886
980
  elements: a,
887
981
  rect: v,
888
- offsetParent: b,
889
- strategy: d
982
+ offsetParent: _,
983
+ strategy: l
890
984
  }) : v);
891
985
  return {
892
- top: (m.top - $.top + h.top) / k.y,
893
- bottom: ($.bottom - m.bottom + h.bottom) / k.y,
894
- left: (m.left - $.left + h.left) / k.x,
895
- right: ($.right - m.right + h.right) / k.x
986
+ top: (y.top - T.top + h.top) / A.y,
987
+ bottom: (T.bottom - y.bottom + h.bottom) / A.y,
988
+ left: (y.left - T.left + h.left) / A.x,
989
+ right: (T.right - y.right + h.right) / A.x
896
990
  };
897
991
  }
898
- const ho = (e) => ({
992
+ const yo = (e) => ({
899
993
  name: "arrow",
900
994
  options: e,
901
995
  async fn(t) {
@@ -906,37 +1000,37 @@ const ho = (e) => ({
906
1000
  rects: i,
907
1001
  platform: r,
908
1002
  elements: a,
909
- middlewareData: d
1003
+ middlewareData: l
910
1004
  } = t, {
911
- element: l,
912
- padding: c = 0
913
- } = fe(e, t) || {};
914
- if (l == null)
1005
+ element: d,
1006
+ padding: u = 0
1007
+ } = he(e, t) || {};
1008
+ if (d == null)
915
1009
  return {};
916
- const u = Et(c), f = {
1010
+ const c = Rt(u), f = {
917
1011
  x: n,
918
1012
  y: o
919
- }, p = ot(s), h = nt(p), w = await r.getDimensions(l), g = p === "y", m = g ? "top" : "left", v = g ? "bottom" : "right", b = g ? "clientHeight" : "clientWidth", k = i.reference[h] + i.reference[p] - f[p] - i.floating[h], $ = f[p] - i.reference[p], N = await (r.getOffsetParent == null ? void 0 : r.getOffsetParent(l));
920
- let z = N ? N[b] : 0;
921
- (!z || !await (r.isElement == null ? void 0 : r.isElement(N))) && (z = a.floating[b] || i.floating[h]);
922
- const H = k / 2 - $ / 2, R = z / 2 - w[h] / 2 - 1, T = be(u[m], R), E = be(u[v], R), L = T, W = z - w[h] - E, B = z / 2 - w[h] / 2 + H, he = qe(L, B, W), Q = !d.arrow && V(s) != null && B !== he && i.reference[h] / 2 - (B < L ? T : E) - w[h] / 2 < 0, q = Q ? B < L ? B - L : B - W : 0;
1013
+ }, p = it(s), h = st(p), g = await r.getDimensions(d), b = p === "y", y = b ? "top" : "left", v = b ? "bottom" : "right", _ = b ? "clientHeight" : "clientWidth", A = i.reference[h] + i.reference[p] - f[p] - i.floating[h], T = f[p] - i.reference[p], N = await (r.getOffsetParent == null ? void 0 : r.getOffsetParent(d));
1014
+ let z = N ? N[_] : 0;
1015
+ (!z || !await (r.isElement == null ? void 0 : r.isElement(N))) && (z = a.floating[_] || i.floating[h]);
1016
+ const V = A / 2 - T / 2, E = z / 2 - g[h] / 2 - 1, C = xe(c[y], E), M = xe(c[v], E), j = C, X = z - g[h] - M, B = z / 2 - g[h] / 2 + V, we = Ge(j, B, X), te = !l.arrow && U(s) != null && B !== we && i.reference[h] / 2 - (B < j ? C : M) - g[h] / 2 < 0, Z = te ? B < j ? B - j : B - X : 0;
923
1017
  return {
924
- [p]: f[p] + q,
1018
+ [p]: f[p] + Z,
925
1019
  data: {
926
- [p]: he,
927
- centerOffset: B - he - q,
928
- ...Q && {
929
- alignmentOffset: q
1020
+ [p]: we,
1021
+ centerOffset: B - we - Z,
1022
+ ...te && {
1023
+ alignmentOffset: Z
930
1024
  }
931
1025
  },
932
- reset: Q
1026
+ reset: te
933
1027
  };
934
1028
  }
935
1029
  });
936
- function wo(e, t, n) {
937
- return (e ? [...n.filter((s) => V(s) === e), ...n.filter((s) => V(s) !== e)] : n.filter((s) => X(s) === s)).filter((s) => e ? V(s) === e || (t ? Oe(s) !== s : !1) : !0);
1030
+ function vo(e, t, n) {
1031
+ return (e ? [...n.filter((s) => U(s) === e), ...n.filter((s) => U(s) !== e)] : n.filter((s) => ee(s) === s)).filter((s) => e ? U(s) === e || (t ? ze(s) !== s : !1) : !0);
938
1032
  }
939
- const mo = function(e) {
1033
+ const _o = function(e) {
940
1034
  return e === void 0 && (e = {}), {
941
1035
  name: "autoPlacement",
942
1036
  options: e,
@@ -946,65 +1040,65 @@ const mo = function(e) {
946
1040
  rects: i,
947
1041
  middlewareData: r,
948
1042
  placement: a,
949
- platform: d,
950
- elements: l
1043
+ platform: l,
1044
+ elements: d
951
1045
  } = t, {
952
- crossAxis: c = !1,
953
- alignment: u,
954
- allowedPlacements: f = ut,
1046
+ crossAxis: u = !1,
1047
+ alignment: c,
1048
+ allowedPlacements: f = ct,
955
1049
  autoAlignment: p = !0,
956
1050
  ...h
957
- } = fe(e, t), w = u !== void 0 || f === ut ? wo(u || null, p, f) : f, g = await Ee(t, h), m = ((n = r.autoPlacement) == null ? void 0 : n.index) || 0, v = w[m];
1051
+ } = he(e, t), g = c !== void 0 || f === ct ? vo(c || null, p, f) : f, b = await Me(t, h), y = ((n = r.autoPlacement) == null ? void 0 : n.index) || 0, v = g[y];
958
1052
  if (v == null)
959
1053
  return {};
960
- const b = Rt(v, i, await (d.isRTL == null ? void 0 : d.isRTL(l.floating)));
1054
+ const _ = Bt(v, i, await (l.isRTL == null ? void 0 : l.isRTL(d.floating)));
961
1055
  if (a !== v)
962
1056
  return {
963
1057
  reset: {
964
- placement: w[0]
1058
+ placement: g[0]
965
1059
  }
966
1060
  };
967
- const k = [g[X(v)], g[b[0]], g[b[1]]], $ = [...((o = r.autoPlacement) == null ? void 0 : o.overflows) || [], {
1061
+ const A = [b[ee(v)], b[_[0]], b[_[1]]], T = [...((o = r.autoPlacement) == null ? void 0 : o.overflows) || [], {
968
1062
  placement: v,
969
- overflows: k
970
- }], N = w[m + 1];
1063
+ overflows: A
1064
+ }], N = g[y + 1];
971
1065
  if (N)
972
1066
  return {
973
1067
  data: {
974
- index: m + 1,
975
- overflows: $
1068
+ index: y + 1,
1069
+ overflows: T
976
1070
  },
977
1071
  reset: {
978
1072
  placement: N
979
1073
  }
980
1074
  };
981
- const z = $.map((T) => {
982
- const E = V(T.placement);
983
- return [T.placement, E && c ? (
1075
+ const z = T.map((C) => {
1076
+ const M = U(C.placement);
1077
+ return [C.placement, M && u ? (
984
1078
  // Check along the mainAxis and main crossAxis side.
985
- T.overflows.slice(0, 2).reduce((L, W) => L + W, 0)
1079
+ C.overflows.slice(0, 2).reduce((j, X) => j + X, 0)
986
1080
  ) : (
987
1081
  // Check only the mainAxis.
988
- T.overflows[0]
989
- ), T.overflows];
990
- }).sort((T, E) => T[1] - E[1]), R = ((s = z.filter((T) => T[2].slice(
1082
+ C.overflows[0]
1083
+ ), C.overflows];
1084
+ }).sort((C, M) => C[1] - M[1]), E = ((s = z.filter((C) => C[2].slice(
991
1085
  0,
992
1086
  // Aligned placements should not check their opposite crossAxis
993
1087
  // side.
994
- V(T[0]) ? 2 : 3
995
- ).every((E) => E <= 0))[0]) == null ? void 0 : s[0]) || z[0][0];
996
- return R !== a ? {
1088
+ U(C[0]) ? 2 : 3
1089
+ ).every((M) => M <= 0))[0]) == null ? void 0 : s[0]) || z[0][0];
1090
+ return E !== a ? {
997
1091
  data: {
998
- index: m + 1,
999
- overflows: $
1092
+ index: y + 1,
1093
+ overflows: T
1000
1094
  },
1001
1095
  reset: {
1002
- placement: R
1096
+ placement: E
1003
1097
  }
1004
1098
  } : {};
1005
1099
  }
1006
1100
  };
1007
- }, go = function(e) {
1101
+ }, xo = function(e) {
1008
1102
  return e === void 0 && (e = {}), {
1009
1103
  name: "flip",
1010
1104
  options: e,
@@ -1015,68 +1109,68 @@ const mo = function(e) {
1015
1109
  middlewareData: i,
1016
1110
  rects: r,
1017
1111
  initialPlacement: a,
1018
- platform: d,
1019
- elements: l
1112
+ platform: l,
1113
+ elements: d
1020
1114
  } = t, {
1021
- mainAxis: c = !0,
1022
- crossAxis: u = !0,
1115
+ mainAxis: u = !0,
1116
+ crossAxis: c = !0,
1023
1117
  fallbackPlacements: f,
1024
1118
  fallbackStrategy: p = "bestFit",
1025
1119
  fallbackAxisSideDirection: h = "none",
1026
- flipAlignment: w = !0,
1027
- ...g
1028
- } = fe(e, t);
1120
+ flipAlignment: g = !0,
1121
+ ...b
1122
+ } = he(e, t);
1029
1123
  if ((n = i.arrow) != null && n.alignmentOffset)
1030
1124
  return {};
1031
- const m = X(s), v = pe(a), b = X(a) === a, k = await (d.isRTL == null ? void 0 : d.isRTL(l.floating)), $ = f || (b || !w ? [Ne(a)] : lo(a)), N = h !== "none";
1032
- !f && N && $.push(...co(a, w, h, k));
1033
- const z = [a, ...$], H = await Ee(t, g), R = [];
1034
- let T = ((o = i.flip) == null ? void 0 : o.overflows) || [];
1035
- if (c && R.push(H[m]), u) {
1036
- const B = Rt(s, r, k);
1037
- R.push(H[B[0]], H[B[1]]);
1125
+ const y = ee(s), v = fe(a), _ = ee(a) === a, A = await (l.isRTL == null ? void 0 : l.isRTL(d.floating)), T = f || (_ || !g ? [Be(a)] : ho(a)), N = h !== "none";
1126
+ !f && N && T.push(...mo(a, g, h, A));
1127
+ const z = [a, ...T], V = await Me(t, b), E = [];
1128
+ let C = ((o = i.flip) == null ? void 0 : o.overflows) || [];
1129
+ if (u && E.push(V[y]), c) {
1130
+ const B = Bt(s, r, A);
1131
+ E.push(V[B[0]], V[B[1]]);
1038
1132
  }
1039
- if (T = [...T, {
1133
+ if (C = [...C, {
1040
1134
  placement: s,
1041
- overflows: R
1042
- }], !R.every((B) => B <= 0)) {
1043
- var E, L;
1044
- const B = (((E = i.flip) == null ? void 0 : E.index) || 0) + 1, he = z[B];
1045
- if (he)
1135
+ overflows: E
1136
+ }], !E.every((B) => B <= 0)) {
1137
+ var M, j;
1138
+ const B = (((M = i.flip) == null ? void 0 : M.index) || 0) + 1, we = z[B];
1139
+ if (we)
1046
1140
  return {
1047
1141
  data: {
1048
1142
  index: B,
1049
- overflows: T
1143
+ overflows: C
1050
1144
  },
1051
1145
  reset: {
1052
- placement: he
1146
+ placement: we
1053
1147
  }
1054
1148
  };
1055
- let Q = (L = T.filter((q) => q.overflows[0] <= 0).sort((q, te) => q.overflows[1] - te.overflows[1])[0]) == null ? void 0 : L.placement;
1056
- if (!Q)
1149
+ let te = (j = C.filter((Z) => Z.overflows[0] <= 0).sort((Z, ne) => Z.overflows[1] - ne.overflows[1])[0]) == null ? void 0 : j.placement;
1150
+ if (!te)
1057
1151
  switch (p) {
1058
1152
  case "bestFit": {
1059
- var W;
1060
- const q = (W = T.filter((te) => {
1153
+ var X;
1154
+ const Z = (X = C.filter((ne) => {
1061
1155
  if (N) {
1062
- const ne = pe(te.placement);
1063
- return ne === v || // Create a bias to the `y` side axis due to horizontal
1156
+ const oe = fe(ne.placement);
1157
+ return oe === v || // Create a bias to the `y` side axis due to horizontal
1064
1158
  // reading directions favoring greater width.
1065
- ne === "y";
1159
+ oe === "y";
1066
1160
  }
1067
1161
  return !0;
1068
- }).map((te) => [te.placement, te.overflows.filter((ne) => ne > 0).reduce((ne, Zt) => ne + Zt, 0)]).sort((te, ne) => te[1] - ne[1])[0]) == null ? void 0 : W[0];
1069
- q && (Q = q);
1162
+ }).map((ne) => [ne.placement, ne.overflows.filter((oe) => oe > 0).reduce((oe, Xt) => oe + Xt, 0)]).sort((ne, oe) => ne[1] - oe[1])[0]) == null ? void 0 : X[0];
1163
+ Z && (te = Z);
1070
1164
  break;
1071
1165
  }
1072
1166
  case "initialPlacement":
1073
- Q = a;
1167
+ te = a;
1074
1168
  break;
1075
1169
  }
1076
- if (s !== Q)
1170
+ if (s !== te)
1077
1171
  return {
1078
1172
  reset: {
1079
- placement: Q
1173
+ placement: te
1080
1174
  }
1081
1175
  };
1082
1176
  }
@@ -1084,34 +1178,34 @@ const mo = function(e) {
1084
1178
  }
1085
1179
  };
1086
1180
  };
1087
- async function yo(e, t) {
1181
+ async function $o(e, t) {
1088
1182
  const {
1089
1183
  placement: n,
1090
1184
  platform: o,
1091
1185
  elements: s
1092
- } = e, i = await (o.isRTL == null ? void 0 : o.isRTL(s.floating)), r = X(n), a = V(n), d = pe(n) === "y", l = ["left", "top"].includes(r) ? -1 : 1, c = i && d ? -1 : 1, u = fe(t, e);
1186
+ } = e, i = await (o.isRTL == null ? void 0 : o.isRTL(s.floating)), r = ee(n), a = U(n), l = fe(n) === "y", d = ["left", "top"].includes(r) ? -1 : 1, u = i && l ? -1 : 1, c = he(t, e);
1093
1187
  let {
1094
1188
  mainAxis: f,
1095
1189
  crossAxis: p,
1096
1190
  alignmentAxis: h
1097
- } = typeof u == "number" ? {
1098
- mainAxis: u,
1191
+ } = typeof c == "number" ? {
1192
+ mainAxis: c,
1099
1193
  crossAxis: 0,
1100
1194
  alignmentAxis: null
1101
1195
  } : {
1102
- mainAxis: u.mainAxis || 0,
1103
- crossAxis: u.crossAxis || 0,
1104
- alignmentAxis: u.alignmentAxis
1196
+ mainAxis: c.mainAxis || 0,
1197
+ crossAxis: c.crossAxis || 0,
1198
+ alignmentAxis: c.alignmentAxis
1105
1199
  };
1106
- return a && typeof h == "number" && (p = a === "end" ? h * -1 : h), d ? {
1107
- x: p * c,
1108
- y: f * l
1200
+ return a && typeof h == "number" && (p = a === "end" ? h * -1 : h), l ? {
1201
+ x: p * u,
1202
+ y: f * d
1109
1203
  } : {
1110
- x: f * l,
1111
- y: p * c
1204
+ x: f * d,
1205
+ y: p * u
1112
1206
  };
1113
1207
  }
1114
- const vo = function(e) {
1208
+ const So = function(e) {
1115
1209
  return e === void 0 && (e = 0), {
1116
1210
  name: "offset",
1117
1211
  options: e,
@@ -1122,18 +1216,18 @@ const vo = function(e) {
1122
1216
  y: i,
1123
1217
  placement: r,
1124
1218
  middlewareData: a
1125
- } = t, d = await yo(t, e);
1219
+ } = t, l = await $o(t, e);
1126
1220
  return r === ((n = a.offset) == null ? void 0 : n.placement) && (o = a.arrow) != null && o.alignmentOffset ? {} : {
1127
- x: s + d.x,
1128
- y: i + d.y,
1221
+ x: s + l.x,
1222
+ y: i + l.y,
1129
1223
  data: {
1130
- ...d,
1224
+ ...l,
1131
1225
  placement: r
1132
1226
  }
1133
1227
  };
1134
1228
  }
1135
1229
  };
1136
- }, bo = function(e) {
1230
+ }, To = function(e) {
1137
1231
  return e === void 0 && (e = {}), {
1138
1232
  name: "shift",
1139
1233
  options: e,
@@ -1146,50 +1240,50 @@ const vo = function(e) {
1146
1240
  mainAxis: i = !0,
1147
1241
  crossAxis: r = !1,
1148
1242
  limiter: a = {
1149
- fn: (g) => {
1243
+ fn: (b) => {
1150
1244
  let {
1151
- x: m,
1245
+ x: y,
1152
1246
  y: v
1153
- } = g;
1247
+ } = b;
1154
1248
  return {
1155
- x: m,
1249
+ x: y,
1156
1250
  y: v
1157
1251
  };
1158
1252
  }
1159
1253
  },
1160
- ...d
1161
- } = fe(e, t), l = {
1254
+ ...l
1255
+ } = he(e, t), d = {
1162
1256
  x: n,
1163
1257
  y: o
1164
- }, c = await Ee(t, d), u = pe(X(s)), f = Bt(u);
1165
- let p = l[f], h = l[u];
1258
+ }, u = await Me(t, l), c = fe(ee(s)), f = zt(c);
1259
+ let p = d[f], h = d[c];
1166
1260
  if (i) {
1167
- const g = f === "y" ? "top" : "left", m = f === "y" ? "bottom" : "right", v = p + c[g], b = p - c[m];
1168
- p = qe(v, p, b);
1261
+ const b = f === "y" ? "top" : "left", y = f === "y" ? "bottom" : "right", v = p + u[b], _ = p - u[y];
1262
+ p = Ge(v, p, _);
1169
1263
  }
1170
1264
  if (r) {
1171
- const g = u === "y" ? "top" : "left", m = u === "y" ? "bottom" : "right", v = h + c[g], b = h - c[m];
1172
- h = qe(v, h, b);
1265
+ const b = c === "y" ? "top" : "left", y = c === "y" ? "bottom" : "right", v = h + u[b], _ = h - u[y];
1266
+ h = Ge(v, h, _);
1173
1267
  }
1174
- const w = a.fn({
1268
+ const g = a.fn({
1175
1269
  ...t,
1176
1270
  [f]: p,
1177
- [u]: h
1271
+ [c]: h
1178
1272
  });
1179
1273
  return {
1180
- ...w,
1274
+ ...g,
1181
1275
  data: {
1182
- x: w.x - n,
1183
- y: w.y - o,
1276
+ x: g.x - n,
1277
+ y: g.y - o,
1184
1278
  enabled: {
1185
1279
  [f]: i,
1186
- [u]: r
1280
+ [c]: r
1187
1281
  }
1188
1282
  }
1189
1283
  };
1190
1284
  }
1191
1285
  };
1192
- }, _o = function(e) {
1286
+ }, ko = function(e) {
1193
1287
  return e === void 0 && (e = {}), {
1194
1288
  name: "size",
1195
1289
  options: e,
@@ -1201,28 +1295,28 @@ const vo = function(e) {
1201
1295
  platform: r,
1202
1296
  elements: a
1203
1297
  } = t, {
1204
- apply: d = () => {
1298
+ apply: l = () => {
1205
1299
  },
1206
- ...l
1207
- } = fe(e, t), c = await Ee(t, l), u = X(s), f = V(s), p = pe(s) === "y", {
1300
+ ...d
1301
+ } = he(e, t), u = await Me(t, d), c = ee(s), f = U(s), p = fe(s) === "y", {
1208
1302
  width: h,
1209
- height: w
1303
+ height: g
1210
1304
  } = i.floating;
1211
- let g, m;
1212
- u === "top" || u === "bottom" ? (g = u, m = f === (await (r.isRTL == null ? void 0 : r.isRTL(a.floating)) ? "start" : "end") ? "left" : "right") : (m = u, g = f === "end" ? "top" : "bottom");
1213
- const v = w - c.top - c.bottom, b = h - c.left - c.right, k = be(w - c[g], v), $ = be(h - c[m], b), N = !t.middlewareData.shift;
1214
- let z = k, H = $;
1215
- if ((n = t.middlewareData.shift) != null && n.enabled.x && (H = b), (o = t.middlewareData.shift) != null && o.enabled.y && (z = v), N && !f) {
1216
- const T = de(c.left, 0), E = de(c.right, 0), L = de(c.top, 0), W = de(c.bottom, 0);
1217
- p ? H = h - 2 * (T !== 0 || E !== 0 ? T + E : de(c.left, c.right)) : z = w - 2 * (L !== 0 || W !== 0 ? L + W : de(c.top, c.bottom));
1305
+ let b, y;
1306
+ c === "top" || c === "bottom" ? (b = c, y = f === (await (r.isRTL == null ? void 0 : r.isRTL(a.floating)) ? "start" : "end") ? "left" : "right") : (y = c, b = f === "end" ? "top" : "bottom");
1307
+ const v = g - u.top - u.bottom, _ = h - u.left - u.right, A = xe(g - u[b], v), T = xe(h - u[y], _), N = !t.middlewareData.shift;
1308
+ let z = A, V = T;
1309
+ if ((n = t.middlewareData.shift) != null && n.enabled.x && (V = _), (o = t.middlewareData.shift) != null && o.enabled.y && (z = v), N && !f) {
1310
+ const C = ce(u.left, 0), M = ce(u.right, 0), j = ce(u.top, 0), X = ce(u.bottom, 0);
1311
+ p ? V = h - 2 * (C !== 0 || M !== 0 ? C + M : ce(u.left, u.right)) : z = g - 2 * (j !== 0 || X !== 0 ? j + X : ce(u.top, u.bottom));
1218
1312
  }
1219
- await d({
1313
+ await l({
1220
1314
  ...t,
1221
- availableWidth: H,
1315
+ availableWidth: V,
1222
1316
  availableHeight: z
1223
1317
  });
1224
- const R = await r.getDimensions(a.floating);
1225
- return h !== R.width || w !== R.height ? {
1318
+ const E = await r.getDimensions(a.floating);
1319
+ return h !== E.width || g !== E.height ? {
1226
1320
  reset: {
1227
1321
  rects: !0
1228
1322
  }
@@ -1230,199 +1324,199 @@ const vo = function(e) {
1230
1324
  }
1231
1325
  };
1232
1326
  };
1233
- function j(e) {
1327
+ function I(e) {
1234
1328
  var t;
1235
1329
  return ((t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
1236
1330
  }
1237
- function U(e) {
1238
- return j(e).getComputedStyle(e);
1331
+ function Q(e) {
1332
+ return I(e).getComputedStyle(e);
1239
1333
  }
1240
- const pt = Math.min, ge = Math.max, ze = Math.round;
1241
- function Dt(e) {
1242
- const t = U(e);
1334
+ const ft = Math.min, ye = Math.max, Re = Math.round;
1335
+ function Et(e) {
1336
+ const t = Q(e);
1243
1337
  let n = parseFloat(t.width), o = parseFloat(t.height);
1244
- const s = e.offsetWidth, i = e.offsetHeight, r = ze(n) !== s || ze(o) !== i;
1338
+ const s = e.offsetWidth, i = e.offsetHeight, r = Re(n) !== s || Re(o) !== i;
1245
1339
  return r && (n = s, o = i), { width: n, height: o, fallback: r };
1246
1340
  }
1247
- function ae(e) {
1248
- return Ht(e) ? (e.nodeName || "").toLowerCase() : "";
1341
+ function le(e) {
1342
+ return Dt(e) ? (e.nodeName || "").toLowerCase() : "";
1249
1343
  }
1250
- let Te;
1344
+ let Ce;
1251
1345
  function Mt() {
1252
- if (Te) return Te;
1346
+ if (Ce) return Ce;
1253
1347
  const e = navigator.userAgentData;
1254
- return e && Array.isArray(e.brands) ? (Te = e.brands.map((t) => t.brand + "/" + t.version).join(" "), Te) : navigator.userAgent;
1348
+ return e && Array.isArray(e.brands) ? (Ce = e.brands.map((t) => t.brand + "/" + t.version).join(" "), Ce) : navigator.userAgent;
1255
1349
  }
1256
- function Y(e) {
1257
- return e instanceof j(e).HTMLElement;
1350
+ function J(e) {
1351
+ return e instanceof I(e).HTMLElement;
1258
1352
  }
1259
- function ie(e) {
1260
- return e instanceof j(e).Element;
1353
+ function re(e) {
1354
+ return e instanceof I(e).Element;
1261
1355
  }
1262
- function Ht(e) {
1263
- return e instanceof j(e).Node;
1356
+ function Dt(e) {
1357
+ return e instanceof I(e).Node;
1264
1358
  }
1265
- function ft(e) {
1266
- return typeof ShadowRoot > "u" ? !1 : e instanceof j(e).ShadowRoot || e instanceof ShadowRoot;
1359
+ function ht(e) {
1360
+ return typeof ShadowRoot > "u" ? !1 : e instanceof I(e).ShadowRoot || e instanceof ShadowRoot;
1267
1361
  }
1268
1362
  function De(e) {
1269
- const { overflow: t, overflowX: n, overflowY: o, display: s } = U(e);
1363
+ const { overflow: t, overflowX: n, overflowY: o, display: s } = Q(e);
1270
1364
  return /auto|scroll|overlay|hidden|clip/.test(t + o + n) && !["inline", "contents"].includes(s);
1271
1365
  }
1272
- function xo(e) {
1273
- return ["table", "td", "th"].includes(ae(e));
1366
+ function Co(e) {
1367
+ return ["table", "td", "th"].includes(le(e));
1274
1368
  }
1275
- function Ge(e) {
1276
- const t = /firefox/i.test(Mt()), n = U(e), o = n.backdropFilter || n.WebkitBackdropFilter;
1369
+ function Ue(e) {
1370
+ const t = /firefox/i.test(Mt()), n = Q(e), o = n.backdropFilter || n.WebkitBackdropFilter;
1277
1371
  return n.transform !== "none" || n.perspective !== "none" || !!o && o !== "none" || t && n.willChange === "filter" || t && !!n.filter && n.filter !== "none" || ["transform", "perspective"].some((s) => n.willChange.includes(s)) || ["paint", "layout", "strict", "content"].some((s) => {
1278
1372
  const i = n.contain;
1279
1373
  return i != null && i.includes(s);
1280
1374
  });
1281
1375
  }
1282
- function Lt() {
1376
+ function Ht() {
1283
1377
  return !/^((?!chrome|android).)*safari/i.test(Mt());
1284
1378
  }
1285
- function st(e) {
1286
- return ["html", "body", "#document"].includes(ae(e));
1379
+ function rt(e) {
1380
+ return ["html", "body", "#document"].includes(le(e));
1287
1381
  }
1288
- function jt(e) {
1289
- return ie(e) ? e : e.contextElement;
1290
- }
1291
- const Ft = { x: 1, y: 1 };
1292
- function we(e) {
1293
- const t = jt(e);
1294
- if (!Y(t)) return Ft;
1295
- const n = t.getBoundingClientRect(), { width: o, height: s, fallback: i } = Dt(t);
1296
- let r = (i ? ze(n.width) : n.width) / o, a = (i ? ze(n.height) : n.height) / s;
1382
+ function Lt(e) {
1383
+ return re(e) ? e : e.contextElement;
1384
+ }
1385
+ const Vt = { x: 1, y: 1 };
1386
+ function ge(e) {
1387
+ const t = Lt(e);
1388
+ if (!J(t)) return Vt;
1389
+ const n = t.getBoundingClientRect(), { width: o, height: s, fallback: i } = Et(t);
1390
+ let r = (i ? Re(n.width) : n.width) / o, a = (i ? Re(n.height) : n.height) / s;
1297
1391
  return r && Number.isFinite(r) || (r = 1), a && Number.isFinite(a) || (a = 1), { x: r, y: a };
1298
1392
  }
1299
- function _e(e, t, n, o) {
1393
+ function $e(e, t, n, o) {
1300
1394
  var s, i;
1301
1395
  t === void 0 && (t = !1), n === void 0 && (n = !1);
1302
- const r = e.getBoundingClientRect(), a = jt(e);
1303
- let d = Ft;
1304
- t && (o ? ie(o) && (d = we(o)) : d = we(e));
1305
- const l = a ? j(a) : window, c = !Lt() && n;
1306
- let u = (r.left + (c && ((s = l.visualViewport) == null ? void 0 : s.offsetLeft) || 0)) / d.x, f = (r.top + (c && ((i = l.visualViewport) == null ? void 0 : i.offsetTop) || 0)) / d.y, p = r.width / d.x, h = r.height / d.y;
1396
+ const r = e.getBoundingClientRect(), a = Lt(e);
1397
+ let l = Vt;
1398
+ t && (o ? re(o) && (l = ge(o)) : l = ge(e));
1399
+ const d = a ? I(a) : window, u = !Ht() && n;
1400
+ let c = (r.left + (u && ((s = d.visualViewport) == null ? void 0 : s.offsetLeft) || 0)) / l.x, f = (r.top + (u && ((i = d.visualViewport) == null ? void 0 : i.offsetTop) || 0)) / l.y, p = r.width / l.x, h = r.height / l.y;
1307
1401
  if (a) {
1308
- const w = j(a), g = o && ie(o) ? j(o) : o;
1309
- let m = w.frameElement;
1310
- for (; m && o && g !== w; ) {
1311
- const v = we(m), b = m.getBoundingClientRect(), k = getComputedStyle(m);
1312
- b.x += (m.clientLeft + parseFloat(k.paddingLeft)) * v.x, b.y += (m.clientTop + parseFloat(k.paddingTop)) * v.y, u *= v.x, f *= v.y, p *= v.x, h *= v.y, u += b.x, f += b.y, m = j(m).frameElement;
1402
+ const g = I(a), b = o && re(o) ? I(o) : o;
1403
+ let y = g.frameElement;
1404
+ for (; y && o && b !== g; ) {
1405
+ const v = ge(y), _ = y.getBoundingClientRect(), A = getComputedStyle(y);
1406
+ _.x += (y.clientLeft + parseFloat(A.paddingLeft)) * v.x, _.y += (y.clientTop + parseFloat(A.paddingTop)) * v.y, c *= v.x, f *= v.y, p *= v.x, h *= v.y, c += _.x, f += _.y, y = I(y).frameElement;
1313
1407
  }
1314
1408
  }
1315
- return { width: p, height: h, top: f, right: u + p, bottom: f + h, left: u, x: u, y: f };
1409
+ return { width: p, height: h, top: f, right: c + p, bottom: f + h, left: c, x: c, y: f };
1316
1410
  }
1317
- function re(e) {
1318
- return ((Ht(e) ? e.ownerDocument : e.document) || window.document).documentElement;
1411
+ function ae(e) {
1412
+ return ((Dt(e) ? e.ownerDocument : e.document) || window.document).documentElement;
1319
1413
  }
1320
- function Me(e) {
1321
- return ie(e) ? { scrollLeft: e.scrollLeft, scrollTop: e.scrollTop } : { scrollLeft: e.pageXOffset, scrollTop: e.pageYOffset };
1414
+ function He(e) {
1415
+ return re(e) ? { scrollLeft: e.scrollLeft, scrollTop: e.scrollTop } : { scrollLeft: e.pageXOffset, scrollTop: e.pageYOffset };
1322
1416
  }
1323
- function It(e) {
1324
- return _e(re(e)).left + Me(e).scrollLeft;
1417
+ function jt(e) {
1418
+ return $e(ae(e)).left + He(e).scrollLeft;
1325
1419
  }
1326
- function xe(e) {
1327
- if (ae(e) === "html") return e;
1328
- const t = e.assignedSlot || e.parentNode || ft(e) && e.host || re(e);
1329
- return ft(t) ? t.host : t;
1420
+ function Se(e) {
1421
+ if (le(e) === "html") return e;
1422
+ const t = e.assignedSlot || e.parentNode || ht(e) && e.host || ae(e);
1423
+ return ht(t) ? t.host : t;
1330
1424
  }
1331
- function Vt(e) {
1332
- const t = xe(e);
1333
- return st(t) ? t.ownerDocument.body : Y(t) && De(t) ? t : Vt(t);
1425
+ function Ft(e) {
1426
+ const t = Se(e);
1427
+ return rt(t) ? t.ownerDocument.body : J(t) && De(t) ? t : Ft(t);
1334
1428
  }
1335
- function Be(e, t) {
1429
+ function Ee(e, t) {
1336
1430
  var n;
1337
1431
  t === void 0 && (t = []);
1338
- const o = Vt(e), s = o === ((n = e.ownerDocument) == null ? void 0 : n.body), i = j(o);
1339
- return s ? t.concat(i, i.visualViewport || [], De(o) ? o : []) : t.concat(o, Be(o));
1432
+ const o = Ft(e), s = o === ((n = e.ownerDocument) == null ? void 0 : n.body), i = I(o);
1433
+ return s ? t.concat(i, i.visualViewport || [], De(o) ? o : []) : t.concat(o, Ee(o));
1340
1434
  }
1341
- function ht(e, t, n) {
1342
- return t === "viewport" ? me(function(o, s) {
1343
- const i = j(o), r = re(o), a = i.visualViewport;
1344
- let d = r.clientWidth, l = r.clientHeight, c = 0, u = 0;
1435
+ function wt(e, t, n) {
1436
+ return t === "viewport" ? be(function(o, s) {
1437
+ const i = I(o), r = ae(o), a = i.visualViewport;
1438
+ let l = r.clientWidth, d = r.clientHeight, u = 0, c = 0;
1345
1439
  if (a) {
1346
- d = a.width, l = a.height;
1347
- const f = Lt();
1348
- (f || !f && s === "fixed") && (c = a.offsetLeft, u = a.offsetTop);
1440
+ l = a.width, d = a.height;
1441
+ const f = Ht();
1442
+ (f || !f && s === "fixed") && (u = a.offsetLeft, c = a.offsetTop);
1349
1443
  }
1350
- return { width: d, height: l, x: c, y: u };
1351
- }(e, n)) : ie(t) ? me(function(o, s) {
1352
- const i = _e(o, !0, s === "fixed"), r = i.top + o.clientTop, a = i.left + o.clientLeft, d = Y(o) ? we(o) : { x: 1, y: 1 };
1353
- return { width: o.clientWidth * d.x, height: o.clientHeight * d.y, x: a * d.x, y: r * d.y };
1354
- }(t, n)) : me(function(o) {
1355
- const s = re(o), i = Me(o), r = o.ownerDocument.body, a = ge(s.scrollWidth, s.clientWidth, r.scrollWidth, r.clientWidth), d = ge(s.scrollHeight, s.clientHeight, r.scrollHeight, r.clientHeight);
1356
- let l = -i.scrollLeft + It(o);
1357
- const c = -i.scrollTop;
1358
- return U(r).direction === "rtl" && (l += ge(s.clientWidth, r.clientWidth) - a), { width: a, height: d, x: l, y: c };
1359
- }(re(e)));
1360
- }
1361
- function wt(e) {
1362
- return Y(e) && U(e).position !== "fixed" ? e.offsetParent : null;
1444
+ return { width: l, height: d, x: u, y: c };
1445
+ }(e, n)) : re(t) ? be(function(o, s) {
1446
+ const i = $e(o, !0, s === "fixed"), r = i.top + o.clientTop, a = i.left + o.clientLeft, l = J(o) ? ge(o) : { x: 1, y: 1 };
1447
+ return { width: o.clientWidth * l.x, height: o.clientHeight * l.y, x: a * l.x, y: r * l.y };
1448
+ }(t, n)) : be(function(o) {
1449
+ const s = ae(o), i = He(o), r = o.ownerDocument.body, a = ye(s.scrollWidth, s.clientWidth, r.scrollWidth, r.clientWidth), l = ye(s.scrollHeight, s.clientHeight, r.scrollHeight, r.clientHeight);
1450
+ let d = -i.scrollLeft + jt(o);
1451
+ const u = -i.scrollTop;
1452
+ return Q(r).direction === "rtl" && (d += ye(s.clientWidth, r.clientWidth) - a), { width: a, height: l, x: d, y: u };
1453
+ }(ae(e)));
1363
1454
  }
1364
1455
  function mt(e) {
1365
- const t = j(e);
1366
- let n = wt(e);
1367
- for (; n && xo(n) && U(n).position === "static"; ) n = wt(n);
1368
- return n && (ae(n) === "html" || ae(n) === "body" && U(n).position === "static" && !Ge(n)) ? t : n || function(o) {
1369
- let s = xe(o);
1370
- for (; Y(s) && !st(s); ) {
1371
- if (Ge(s)) return s;
1372
- s = xe(s);
1456
+ return J(e) && Q(e).position !== "fixed" ? e.offsetParent : null;
1457
+ }
1458
+ function gt(e) {
1459
+ const t = I(e);
1460
+ let n = mt(e);
1461
+ for (; n && Co(n) && Q(n).position === "static"; ) n = mt(n);
1462
+ return n && (le(n) === "html" || le(n) === "body" && Q(n).position === "static" && !Ue(n)) ? t : n || function(o) {
1463
+ let s = Se(o);
1464
+ for (; J(s) && !rt(s); ) {
1465
+ if (Ue(s)) return s;
1466
+ s = Se(s);
1373
1467
  }
1374
1468
  return null;
1375
1469
  }(e) || t;
1376
1470
  }
1377
- function $o(e, t, n) {
1378
- const o = Y(t), s = re(t), i = _e(e, !0, n === "fixed", t);
1471
+ function Po(e, t, n) {
1472
+ const o = J(t), s = ae(t), i = $e(e, !0, n === "fixed", t);
1379
1473
  let r = { scrollLeft: 0, scrollTop: 0 };
1380
1474
  const a = { x: 0, y: 0 };
1381
- if (o || !o && n !== "fixed") if ((ae(t) !== "body" || De(s)) && (r = Me(t)), Y(t)) {
1382
- const d = _e(t, !0);
1383
- a.x = d.x + t.clientLeft, a.y = d.y + t.clientTop;
1384
- } else s && (a.x = It(s));
1475
+ if (o || !o && n !== "fixed") if ((le(t) !== "body" || De(s)) && (r = He(t)), J(t)) {
1476
+ const l = $e(t, !0);
1477
+ a.x = l.x + t.clientLeft, a.y = l.y + t.clientTop;
1478
+ } else s && (a.x = jt(s));
1385
1479
  return { x: i.left + r.scrollLeft - a.x, y: i.top + r.scrollTop - a.y, width: i.width, height: i.height };
1386
1480
  }
1387
- const So = { getClippingRect: function(e) {
1481
+ const Ao = { getClippingRect: function(e) {
1388
1482
  let { element: t, boundary: n, rootBoundary: o, strategy: s } = e;
1389
- const i = n === "clippingAncestors" ? function(l, c) {
1390
- const u = c.get(l);
1391
- if (u) return u;
1392
- let f = Be(l).filter((g) => ie(g) && ae(g) !== "body"), p = null;
1393
- const h = U(l).position === "fixed";
1394
- let w = h ? xe(l) : l;
1395
- for (; ie(w) && !st(w); ) {
1396
- const g = U(w), m = Ge(w);
1397
- (h ? m || p : m || g.position !== "static" || !p || !["absolute", "fixed"].includes(p.position)) ? p = g : f = f.filter((v) => v !== w), w = xe(w);
1483
+ const i = n === "clippingAncestors" ? function(d, u) {
1484
+ const c = u.get(d);
1485
+ if (c) return c;
1486
+ let f = Ee(d).filter((b) => re(b) && le(b) !== "body"), p = null;
1487
+ const h = Q(d).position === "fixed";
1488
+ let g = h ? Se(d) : d;
1489
+ for (; re(g) && !rt(g); ) {
1490
+ const b = Q(g), y = Ue(g);
1491
+ (h ? y || p : y || b.position !== "static" || !p || !["absolute", "fixed"].includes(p.position)) ? p = b : f = f.filter((v) => v !== g), g = Se(g);
1398
1492
  }
1399
- return c.set(l, f), f;
1400
- }(t, this._c) : [].concat(n), r = [...i, o], a = r[0], d = r.reduce((l, c) => {
1401
- const u = ht(t, c, s);
1402
- return l.top = ge(u.top, l.top), l.right = pt(u.right, l.right), l.bottom = pt(u.bottom, l.bottom), l.left = ge(u.left, l.left), l;
1403
- }, ht(t, a, s));
1404
- return { width: d.right - d.left, height: d.bottom - d.top, x: d.left, y: d.top };
1493
+ return u.set(d, f), f;
1494
+ }(t, this._c) : [].concat(n), r = [...i, o], a = r[0], l = r.reduce((d, u) => {
1495
+ const c = wt(t, u, s);
1496
+ return d.top = ye(c.top, d.top), d.right = ft(c.right, d.right), d.bottom = ft(c.bottom, d.bottom), d.left = ye(c.left, d.left), d;
1497
+ }, wt(t, a, s));
1498
+ return { width: l.right - l.left, height: l.bottom - l.top, x: l.left, y: l.top };
1405
1499
  }, convertOffsetParentRelativeRectToViewportRelativeRect: function(e) {
1406
1500
  let { rect: t, offsetParent: n, strategy: o } = e;
1407
- const s = Y(n), i = re(n);
1501
+ const s = J(n), i = ae(n);
1408
1502
  if (n === i) return t;
1409
1503
  let r = { scrollLeft: 0, scrollTop: 0 }, a = { x: 1, y: 1 };
1410
- const d = { x: 0, y: 0 };
1411
- if ((s || !s && o !== "fixed") && ((ae(n) !== "body" || De(i)) && (r = Me(n)), Y(n))) {
1412
- const l = _e(n);
1413
- a = we(n), d.x = l.x + n.clientLeft, d.y = l.y + n.clientTop;
1504
+ const l = { x: 0, y: 0 };
1505
+ if ((s || !s && o !== "fixed") && ((le(n) !== "body" || De(i)) && (r = He(n)), J(n))) {
1506
+ const d = $e(n);
1507
+ a = ge(n), l.x = d.x + n.clientLeft, l.y = d.y + n.clientTop;
1414
1508
  }
1415
- return { width: t.width * a.x, height: t.height * a.y, x: t.x * a.x - r.scrollLeft * a.x + d.x, y: t.y * a.y - r.scrollTop * a.y + d.y };
1416
- }, isElement: ie, getDimensions: function(e) {
1417
- return Y(e) ? Dt(e) : e.getBoundingClientRect();
1418
- }, getOffsetParent: mt, getDocumentElement: re, getScale: we, async getElementRects(e) {
1509
+ return { width: t.width * a.x, height: t.height * a.y, x: t.x * a.x - r.scrollLeft * a.x + l.x, y: t.y * a.y - r.scrollTop * a.y + l.y };
1510
+ }, isElement: re, getDimensions: function(e) {
1511
+ return J(e) ? Et(e) : e.getBoundingClientRect();
1512
+ }, getOffsetParent: gt, getDocumentElement: ae, getScale: ge, async getElementRects(e) {
1419
1513
  let { reference: t, floating: n, strategy: o } = e;
1420
- const s = this.getOffsetParent || mt, i = this.getDimensions;
1421
- return { reference: $o(t, await s(n), o), floating: { x: 0, y: 0, ...await i(n) } };
1422
- }, getClientRects: (e) => Array.from(e.getClientRects()), isRTL: (e) => U(e).direction === "rtl" }, To = (e, t, n) => {
1423
- const o = /* @__PURE__ */ new Map(), s = { platform: So, ...n }, i = { ...s.platform, _c: o };
1424
- return fo(e, t, { ...s, platform: i });
1425
- }, ce = {
1514
+ const s = this.getOffsetParent || gt, i = this.getDimensions;
1515
+ return { reference: Po(t, await s(n), o), floating: { x: 0, y: 0, ...await i(n) } };
1516
+ }, getClientRects: (e) => Array.from(e.getClientRects()), isRTL: (e) => Q(e).direction === "rtl" }, Oo = (e, t, n) => {
1517
+ const o = /* @__PURE__ */ new Map(), s = { platform: Ao, ...n }, i = { ...s.platform, _c: o };
1518
+ return bo(e, t, { ...s, platform: i });
1519
+ }, pe = {
1426
1520
  // Disable popper components
1427
1521
  disabled: !1,
1428
1522
  // Default position offset along main axis (px)
@@ -1501,36 +1595,36 @@ const So = { getClippingRect: function(e) {
1501
1595
  }
1502
1596
  }
1503
1597
  };
1504
- function Ue(e, t) {
1505
- let n = ce.themes[e] || {}, o;
1598
+ function Ye(e, t) {
1599
+ let n = pe.themes[e] || {}, o;
1506
1600
  do
1507
- o = n[t], typeof o > "u" ? n.$extend ? n = ce.themes[n.$extend] || {} : (n = null, o = ce[t]) : n = null;
1601
+ o = n[t], typeof o > "u" ? n.$extend ? n = pe.themes[n.$extend] || {} : (n = null, o = pe[t]) : n = null;
1508
1602
  while (n);
1509
1603
  return o;
1510
1604
  }
1511
- function Co(e) {
1605
+ function No(e) {
1512
1606
  const t = [e];
1513
- let n = ce.themes[e] || {};
1607
+ let n = pe.themes[e] || {};
1514
1608
  do
1515
- n.$extend && !n.$resetCss ? (t.push(n.$extend), n = ce.themes[n.$extend] || {}) : n = null;
1609
+ n.$extend && !n.$resetCss ? (t.push(n.$extend), n = pe.themes[n.$extend] || {}) : n = null;
1516
1610
  while (n);
1517
1611
  return t.map((o) => `v-popper--theme-${o}`);
1518
1612
  }
1519
- function gt(e) {
1613
+ function bt(e) {
1520
1614
  const t = [e];
1521
- let n = ce.themes[e] || {};
1615
+ let n = pe.themes[e] || {};
1522
1616
  do
1523
- n.$extend ? (t.push(n.$extend), n = ce.themes[n.$extend] || {}) : n = null;
1617
+ n.$extend ? (t.push(n.$extend), n = pe.themes[n.$extend] || {}) : n = null;
1524
1618
  while (n);
1525
1619
  return t;
1526
1620
  }
1527
- let $e = !1;
1621
+ let Te = !1;
1528
1622
  if (typeof window < "u") {
1529
- $e = !1;
1623
+ Te = !1;
1530
1624
  try {
1531
1625
  const e = Object.defineProperty({}, "passive", {
1532
1626
  get() {
1533
- $e = !0;
1627
+ Te = !0;
1534
1628
  }
1535
1629
  });
1536
1630
  window.addEventListener("test", null, e);
@@ -1539,7 +1633,7 @@ if (typeof window < "u") {
1539
1633
  }
1540
1634
  let Wt = !1;
1541
1635
  typeof window < "u" && typeof navigator < "u" && (Wt = /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream);
1542
- const ko = ["auto", "top", "bottom", "left", "right"].reduce((e, t) => e.concat([
1636
+ const zo = ["auto", "top", "bottom", "left", "right"].reduce((e, t) => e.concat([
1543
1637
  t,
1544
1638
  `${t}-start`,
1545
1639
  `${t}-end`
@@ -1556,31 +1650,31 @@ const ko = ["auto", "top", "bottom", "left", "right"].reduce((e, t) => e.concat(
1556
1650
  touch: "touchend",
1557
1651
  pointer: "pointerup"
1558
1652
  };
1559
- function bt(e, t) {
1653
+ function _t(e, t) {
1560
1654
  const n = e.indexOf(t);
1561
1655
  n !== -1 && e.splice(n, 1);
1562
1656
  }
1563
- function Fe() {
1657
+ function We() {
1564
1658
  return new Promise((e) => requestAnimationFrame(() => {
1565
1659
  requestAnimationFrame(e);
1566
1660
  }));
1567
1661
  }
1568
- const I = [];
1569
- let le = null;
1570
- const _t = {};
1571
- function xt(e) {
1572
- let t = _t[e];
1573
- return t || (t = _t[e] = []), t;
1662
+ const G = [];
1663
+ let ue = null;
1664
+ const xt = {};
1665
+ function $t(e) {
1666
+ let t = xt[e];
1667
+ return t || (t = xt[e] = []), t;
1574
1668
  }
1575
- let Ye = function() {
1669
+ let Xe = function() {
1576
1670
  };
1577
- typeof window < "u" && (Ye = window.Element);
1578
- function x(e) {
1671
+ typeof window < "u" && (Xe = window.Element);
1672
+ function S(e) {
1579
1673
  return function(t) {
1580
- return Ue(t.theme, e);
1674
+ return Ye(t.theme, e);
1581
1675
  };
1582
1676
  }
1583
- const Ie = "__floating-vue__popper", qt = () => Z({
1677
+ const Ie = "__floating-vue__popper", It = () => Y({
1584
1678
  name: "VPopper",
1585
1679
  provide() {
1586
1680
  return {
@@ -1623,147 +1717,147 @@ const Ie = "__floating-vue__popper", qt = () => Z({
1623
1717
  },
1624
1718
  disabled: {
1625
1719
  type: Boolean,
1626
- default: x("disabled")
1720
+ default: S("disabled")
1627
1721
  },
1628
1722
  positioningDisabled: {
1629
1723
  type: Boolean,
1630
- default: x("positioningDisabled")
1724
+ default: S("positioningDisabled")
1631
1725
  },
1632
1726
  placement: {
1633
1727
  type: String,
1634
- default: x("placement"),
1635
- validator: (e) => ko.includes(e)
1728
+ default: S("placement"),
1729
+ validator: (e) => zo.includes(e)
1636
1730
  },
1637
1731
  delay: {
1638
1732
  type: [String, Number, Object],
1639
- default: x("delay")
1733
+ default: S("delay")
1640
1734
  },
1641
1735
  distance: {
1642
1736
  type: [Number, String],
1643
- default: x("distance")
1737
+ default: S("distance")
1644
1738
  },
1645
1739
  skidding: {
1646
1740
  type: [Number, String],
1647
- default: x("skidding")
1741
+ default: S("skidding")
1648
1742
  },
1649
1743
  triggers: {
1650
1744
  type: Array,
1651
- default: x("triggers")
1745
+ default: S("triggers")
1652
1746
  },
1653
1747
  showTriggers: {
1654
1748
  type: [Array, Function],
1655
- default: x("showTriggers")
1749
+ default: S("showTriggers")
1656
1750
  },
1657
1751
  hideTriggers: {
1658
1752
  type: [Array, Function],
1659
- default: x("hideTriggers")
1753
+ default: S("hideTriggers")
1660
1754
  },
1661
1755
  popperTriggers: {
1662
1756
  type: Array,
1663
- default: x("popperTriggers")
1757
+ default: S("popperTriggers")
1664
1758
  },
1665
1759
  popperShowTriggers: {
1666
1760
  type: [Array, Function],
1667
- default: x("popperShowTriggers")
1761
+ default: S("popperShowTriggers")
1668
1762
  },
1669
1763
  popperHideTriggers: {
1670
1764
  type: [Array, Function],
1671
- default: x("popperHideTriggers")
1765
+ default: S("popperHideTriggers")
1672
1766
  },
1673
1767
  container: {
1674
- type: [String, Object, Ye, Boolean],
1675
- default: x("container")
1768
+ type: [String, Object, Xe, Boolean],
1769
+ default: S("container")
1676
1770
  },
1677
1771
  boundary: {
1678
- type: [String, Ye],
1679
- default: x("boundary")
1772
+ type: [String, Xe],
1773
+ default: S("boundary")
1680
1774
  },
1681
1775
  strategy: {
1682
1776
  type: String,
1683
1777
  validator: (e) => ["absolute", "fixed"].includes(e),
1684
- default: x("strategy")
1778
+ default: S("strategy")
1685
1779
  },
1686
1780
  autoHide: {
1687
1781
  type: [Boolean, Function],
1688
- default: x("autoHide")
1782
+ default: S("autoHide")
1689
1783
  },
1690
1784
  handleResize: {
1691
1785
  type: Boolean,
1692
- default: x("handleResize")
1786
+ default: S("handleResize")
1693
1787
  },
1694
1788
  instantMove: {
1695
1789
  type: Boolean,
1696
- default: x("instantMove")
1790
+ default: S("instantMove")
1697
1791
  },
1698
1792
  eagerMount: {
1699
1793
  type: Boolean,
1700
- default: x("eagerMount")
1794
+ default: S("eagerMount")
1701
1795
  },
1702
1796
  popperClass: {
1703
1797
  type: [String, Array, Object],
1704
- default: x("popperClass")
1798
+ default: S("popperClass")
1705
1799
  },
1706
1800
  computeTransformOrigin: {
1707
1801
  type: Boolean,
1708
- default: x("computeTransformOrigin")
1802
+ default: S("computeTransformOrigin")
1709
1803
  },
1710
1804
  /**
1711
1805
  * @deprecated
1712
1806
  */
1713
1807
  autoMinSize: {
1714
1808
  type: Boolean,
1715
- default: x("autoMinSize")
1809
+ default: S("autoMinSize")
1716
1810
  },
1717
1811
  autoSize: {
1718
1812
  type: [Boolean, String],
1719
- default: x("autoSize")
1813
+ default: S("autoSize")
1720
1814
  },
1721
1815
  /**
1722
1816
  * @deprecated
1723
1817
  */
1724
1818
  autoMaxSize: {
1725
1819
  type: Boolean,
1726
- default: x("autoMaxSize")
1820
+ default: S("autoMaxSize")
1727
1821
  },
1728
1822
  autoBoundaryMaxSize: {
1729
1823
  type: Boolean,
1730
- default: x("autoBoundaryMaxSize")
1824
+ default: S("autoBoundaryMaxSize")
1731
1825
  },
1732
1826
  preventOverflow: {
1733
1827
  type: Boolean,
1734
- default: x("preventOverflow")
1828
+ default: S("preventOverflow")
1735
1829
  },
1736
1830
  overflowPadding: {
1737
1831
  type: [Number, String],
1738
- default: x("overflowPadding")
1832
+ default: S("overflowPadding")
1739
1833
  },
1740
1834
  arrowPadding: {
1741
1835
  type: [Number, String],
1742
- default: x("arrowPadding")
1836
+ default: S("arrowPadding")
1743
1837
  },
1744
1838
  arrowOverflow: {
1745
1839
  type: Boolean,
1746
- default: x("arrowOverflow")
1840
+ default: S("arrowOverflow")
1747
1841
  },
1748
1842
  flip: {
1749
1843
  type: Boolean,
1750
- default: x("flip")
1844
+ default: S("flip")
1751
1845
  },
1752
1846
  shift: {
1753
1847
  type: Boolean,
1754
- default: x("shift")
1848
+ default: S("shift")
1755
1849
  },
1756
1850
  shiftCrossAxis: {
1757
1851
  type: Boolean,
1758
- default: x("shiftCrossAxis")
1852
+ default: S("shiftCrossAxis")
1759
1853
  },
1760
1854
  noAutoFocus: {
1761
1855
  type: Boolean,
1762
- default: x("noAutoFocus")
1856
+ default: S("noAutoFocus")
1763
1857
  },
1764
1858
  disposeTimeout: {
1765
1859
  type: Number,
1766
- default: x("disposeTimeout")
1860
+ default: S("disposeTimeout")
1767
1861
  }
1768
1862
  },
1769
1863
  emits: {
@@ -1926,21 +2020,21 @@ const Ie = "__floating-vue__popper", qt = () => Z({
1926
2020
  strategy: this.strategy,
1927
2021
  middleware: []
1928
2022
  };
1929
- (this.distance || this.skidding) && e.middleware.push(vo({
2023
+ (this.distance || this.skidding) && e.middleware.push(So({
1930
2024
  mainAxis: this.distance,
1931
2025
  crossAxis: this.skidding
1932
2026
  }));
1933
2027
  const t = this.placement.startsWith("auto");
1934
- if (t ? e.middleware.push(mo({
2028
+ if (t ? e.middleware.push(_o({
1935
2029
  alignment: this.placement.split("-")[1] ?? ""
1936
- })) : e.placement = this.placement, this.preventOverflow && (this.shift && e.middleware.push(bo({
2030
+ })) : e.placement = this.placement, this.preventOverflow && (this.shift && e.middleware.push(To({
1937
2031
  padding: this.overflowPadding,
1938
2032
  boundary: this.boundary,
1939
2033
  crossAxis: this.shiftCrossAxis
1940
- })), !t && this.flip && e.middleware.push(go({
2034
+ })), !t && this.flip && e.middleware.push(xo({
1941
2035
  padding: this.overflowPadding,
1942
2036
  boundary: this.boundary
1943
- }))), e.middleware.push(ho({
2037
+ }))), e.middleware.push(yo({
1944
2038
  element: this.$_arrowNode,
1945
2039
  padding: this.arrowPadding
1946
2040
  })), this.arrowOverflow && e.middleware.push({
@@ -1962,8 +2056,8 @@ const Ie = "__floating-vue__popper", qt = () => Z({
1962
2056
  var a;
1963
2057
  if ((a = r.autoSize) != null && a.skip)
1964
2058
  return {};
1965
- let d, l;
1966
- return i.startsWith("top") || i.startsWith("bottom") ? d = s.reference.width : l = s.reference.height, this.$_innerNode.style[o === "min" ? "minWidth" : o === "max" ? "maxWidth" : "width"] = d != null ? `${d}px` : null, this.$_innerNode.style[o === "min" ? "minHeight" : o === "max" ? "maxHeight" : "height"] = l != null ? `${l}px` : null, {
2059
+ let l, d;
2060
+ return i.startsWith("top") || i.startsWith("bottom") ? l = s.reference.width : d = s.reference.height, this.$_innerNode.style[o === "min" ? "minWidth" : o === "max" ? "maxWidth" : "width"] = l != null ? `${l}px` : null, this.$_innerNode.style[o === "min" ? "minHeight" : o === "max" ? "maxHeight" : "height"] = d != null ? `${d}px` : null, {
1967
2061
  data: {
1968
2062
  skip: !0
1969
2063
  },
@@ -1974,14 +2068,14 @@ const Ie = "__floating-vue__popper", qt = () => Z({
1974
2068
  }
1975
2069
  });
1976
2070
  }
1977
- (this.autoMaxSize || this.autoBoundaryMaxSize) && (this.$_innerNode.style.maxWidth = null, this.$_innerNode.style.maxHeight = null, e.middleware.push(_o({
2071
+ (this.autoMaxSize || this.autoBoundaryMaxSize) && (this.$_innerNode.style.maxWidth = null, this.$_innerNode.style.maxHeight = null, e.middleware.push(ko({
1978
2072
  boundary: this.boundary,
1979
2073
  padding: this.overflowPadding,
1980
2074
  apply: ({ availableWidth: o, availableHeight: s }) => {
1981
2075
  this.$_innerNode.style.maxWidth = o != null ? `${o}px` : null, this.$_innerNode.style.maxHeight = s != null ? `${s}px` : null;
1982
2076
  }
1983
2077
  })));
1984
- const n = await To(this.$_referenceNode, this.$_popperNode, e);
2078
+ const n = await Oo(this.$_referenceNode, this.$_popperNode, e);
1985
2079
  Object.assign(this.result, {
1986
2080
  x: n.x,
1987
2081
  y: n.y,
@@ -1994,8 +2088,8 @@ const Ie = "__floating-vue__popper", qt = () => Z({
1994
2088
  });
1995
2089
  },
1996
2090
  $_scheduleShow(e, t = !1) {
1997
- if (this.$_updateParentShownChildren(!0), this.$_hideInProgress = !1, clearTimeout(this.$_scheduleTimer), le && this.instantMove && le.instantMove && le !== this.parentPopper) {
1998
- le.$_applyHide(!0), this.$_applyShow(!0);
2091
+ if (this.$_updateParentShownChildren(!0), this.$_hideInProgress = !1, clearTimeout(this.$_scheduleTimer), ue && this.instantMove && ue.instantMove && ue !== this.parentPopper) {
2092
+ ue.$_applyHide(!0), this.$_applyShow(!0);
1999
2093
  return;
2000
2094
  }
2001
2095
  t ? this.$_applyShow() : this.$_scheduleTimer = setTimeout(this.$_applyShow.bind(this), this.$_computeDelay("show"));
@@ -2005,16 +2099,16 @@ const Ie = "__floating-vue__popper", qt = () => Z({
2005
2099
  this.pendingHide = !0;
2006
2100
  return;
2007
2101
  }
2008
- this.$_updateParentShownChildren(!1), this.$_hideInProgress = !0, clearTimeout(this.$_scheduleTimer), this.isShown && (le = this), t ? this.$_applyHide() : this.$_scheduleTimer = setTimeout(this.$_applyHide.bind(this), this.$_computeDelay("hide"));
2102
+ this.$_updateParentShownChildren(!1), this.$_hideInProgress = !0, clearTimeout(this.$_scheduleTimer), this.isShown && (ue = this), t ? this.$_applyHide() : this.$_scheduleTimer = setTimeout(this.$_applyHide.bind(this), this.$_computeDelay("hide"));
2009
2103
  },
2010
2104
  $_computeDelay(e) {
2011
2105
  const t = this.delay;
2012
2106
  return parseInt(t && t[e] || t || 0);
2013
2107
  },
2014
2108
  async $_applyShow(e = !1) {
2015
- clearTimeout(this.$_disposeTimer), clearTimeout(this.$_scheduleTimer), this.skipTransition = e, !this.isShown && (this.$_ensureTeleport(), await Fe(), await this.$_computePosition(), await this.$_applyShowEffect(), this.positioningDisabled || this.$_registerEventListeners([
2016
- ...Be(this.$_referenceNode),
2017
- ...Be(this.$_popperNode)
2109
+ clearTimeout(this.$_disposeTimer), clearTimeout(this.$_scheduleTimer), this.skipTransition = e, !this.isShown && (this.$_ensureTeleport(), await We(), await this.$_computePosition(), await this.$_applyShowEffect(), this.positioningDisabled || this.$_registerEventListeners([
2110
+ ...Ee(this.$_referenceNode),
2111
+ ...Ee(this.$_popperNode)
2018
2112
  ], "scroll", () => {
2019
2113
  this.$_computePosition();
2020
2114
  }));
@@ -2033,13 +2127,13 @@ const Ie = "__floating-vue__popper", qt = () => Z({
2033
2127
  const e = this.showGroup;
2034
2128
  if (e) {
2035
2129
  let t;
2036
- for (let n = 0; n < I.length; n++)
2037
- t = I[n], t.showGroup !== e && (t.hide(), t.$emit("close-group"));
2130
+ for (let n = 0; n < G.length; n++)
2131
+ t = G[n], t.showGroup !== e && (t.hide(), t.$emit("close-group"));
2038
2132
  }
2039
- I.push(this), document.body.classList.add("v-popper--some-open");
2040
- for (const t of gt(this.theme))
2041
- xt(t).push(this), document.body.classList.add(`v-popper--some-open--${t}`);
2042
- this.$emit("apply-show"), this.classes.showFrom = !0, this.classes.showTo = !1, this.classes.hideFrom = !1, this.classes.hideTo = !1, await Fe(), this.classes.showFrom = !1, this.classes.showTo = !0, this.noAutoFocus || this.$_popperNode.focus();
2133
+ G.push(this), document.body.classList.add("v-popper--some-open");
2134
+ for (const t of bt(this.theme))
2135
+ $t(t).push(this), document.body.classList.add(`v-popper--some-open--${t}`);
2136
+ this.$emit("apply-show"), this.classes.showFrom = !0, this.classes.showTo = !1, this.classes.hideFrom = !1, this.classes.hideTo = !1, await We(), this.classes.showFrom = !1, this.classes.showTo = !0, this.noAutoFocus || this.$_popperNode.focus();
2043
2137
  },
2044
2138
  async $_applyHide(e = !1) {
2045
2139
  if (this.shownChildren.size > 0) {
@@ -2048,19 +2142,19 @@ const Ie = "__floating-vue__popper", qt = () => Z({
2048
2142
  }
2049
2143
  if (clearTimeout(this.$_scheduleTimer), !this.isShown)
2050
2144
  return;
2051
- this.skipTransition = e, bt(I, this), I.length === 0 && document.body.classList.remove("v-popper--some-open");
2052
- for (const n of gt(this.theme)) {
2053
- const o = xt(n);
2054
- bt(o, this), o.length === 0 && document.body.classList.remove(`v-popper--some-open--${n}`);
2145
+ this.skipTransition = e, _t(G, this), G.length === 0 && document.body.classList.remove("v-popper--some-open");
2146
+ for (const n of bt(this.theme)) {
2147
+ const o = $t(n);
2148
+ _t(o, this), o.length === 0 && document.body.classList.remove(`v-popper--some-open--${n}`);
2055
2149
  }
2056
- le === this && (le = null), this.isShown = !1, this.$_applyAttrsToTarget({
2150
+ ue === this && (ue = null), this.isShown = !1, this.$_applyAttrsToTarget({
2057
2151
  "aria-describedby": void 0,
2058
2152
  "data-popper-shown": void 0
2059
2153
  }), clearTimeout(this.$_disposeTimer);
2060
2154
  const t = this.disposeTimeout;
2061
2155
  t !== null && (this.$_disposeTimer = setTimeout(() => {
2062
2156
  this.$_popperNode && (this.$_detachPopperNode(), this.isMounted = !1);
2063
- }, t)), this.$_removeEventListeners("scroll"), this.$emit("apply-hide"), this.classes.showFrom = !1, this.classes.showTo = !1, this.classes.hideFrom = !0, this.classes.hideTo = !1, await Fe(), this.classes.hideFrom = !1, this.classes.hideTo = !0;
2157
+ }, t)), this.$_removeEventListeners("scroll"), this.$emit("apply-hide"), this.classes.showFrom = !1, this.classes.showTo = !1, this.classes.hideFrom = !0, this.classes.hideTo = !1, await We(), this.classes.hideFrom = !1, this.classes.hideTo = !0;
2064
2158
  },
2065
2159
  $_autoShowHide() {
2066
2160
  this.shown ? this.show() : this.hide();
@@ -2084,7 +2178,7 @@ const Ie = "__floating-vue__popper", qt = () => Z({
2084
2178
  this.$_registerTriggerListeners(this.$_targetNodes, vt, this.triggers, this.hideTriggers, t), this.$_registerTriggerListeners([this.$_popperNode], vt, this.popperTriggers, this.popperHideTriggers, t);
2085
2179
  },
2086
2180
  $_registerEventListeners(e, t, n) {
2087
- this.$_events.push({ targetNodes: e, eventType: t, handler: n }), e.forEach((o) => o.addEventListener(t, n, $e ? {
2181
+ this.$_events.push({ targetNodes: e, eventType: t, handler: n }), e.forEach((o) => o.addEventListener(t, n, Te ? {
2088
2182
  passive: !0
2089
2183
  } : void 0));
2090
2184
  },
@@ -2133,12 +2227,12 @@ const Ie = "__floating-vue__popper", qt = () => Z({
2133
2227
  },
2134
2228
  $_isAimingPopper() {
2135
2229
  const e = this.$_referenceNode.getBoundingClientRect();
2136
- if (ye >= e.left && ye <= e.right && ve >= e.top && ve <= e.bottom) {
2137
- const t = this.$_popperNode.getBoundingClientRect(), n = ye - oe, o = ve - se, s = t.left + t.width / 2 - oe + (t.top + t.height / 2) - se + t.width + t.height, i = oe + n * s, r = se + o * s;
2138
- return Ce(oe, se, i, r, t.left, t.top, t.left, t.bottom) || // Left edge
2139
- Ce(oe, se, i, r, t.left, t.top, t.right, t.top) || // Top edge
2140
- Ce(oe, se, i, r, t.right, t.top, t.right, t.bottom) || // Right edge
2141
- Ce(oe, se, i, r, t.left, t.bottom, t.right, t.bottom);
2230
+ if (ve >= e.left && ve <= e.right && _e >= e.top && _e <= e.bottom) {
2231
+ const t = this.$_popperNode.getBoundingClientRect(), n = ve - se, o = _e - ie, s = t.left + t.width / 2 - se + (t.top + t.height / 2) - ie + t.width + t.height, i = se + n * s, r = ie + o * s;
2232
+ return Pe(se, ie, i, r, t.left, t.top, t.left, t.bottom) || // Left edge
2233
+ Pe(se, ie, i, r, t.left, t.top, t.right, t.top) || // Top edge
2234
+ Pe(se, ie, i, r, t.right, t.top, t.right, t.bottom) || // Right edge
2235
+ Pe(se, ie, i, r, t.left, t.bottom, t.right, t.bottom);
2142
2236
  }
2143
2237
  return !1;
2144
2238
  }
@@ -2149,35 +2243,35 @@ const Ie = "__floating-vue__popper", qt = () => Z({
2149
2243
  });
2150
2244
  if (typeof document < "u" && typeof window < "u") {
2151
2245
  if (Wt) {
2152
- const e = $e ? {
2246
+ const e = Te ? {
2153
2247
  passive: !0,
2154
2248
  capture: !0
2155
2249
  } : !0;
2156
- document.addEventListener("touchstart", (t) => $t(t), e), document.addEventListener("touchend", (t) => St(t, !0), e);
2250
+ document.addEventListener("touchstart", (t) => St(t), e), document.addEventListener("touchend", (t) => Tt(t, !0), e);
2157
2251
  } else
2158
- window.addEventListener("mousedown", (e) => $t(e), !0), window.addEventListener("click", (e) => St(e, !1), !0);
2159
- window.addEventListener("resize", Oo);
2252
+ window.addEventListener("mousedown", (e) => St(e), !0), window.addEventListener("click", (e) => Tt(e, !1), !0);
2253
+ window.addEventListener("resize", Eo);
2160
2254
  }
2161
- function $t(e, t) {
2162
- for (let n = 0; n < I.length; n++) {
2163
- const o = I[n];
2255
+ function St(e, t) {
2256
+ for (let n = 0; n < G.length; n++) {
2257
+ const o = G[n];
2164
2258
  try {
2165
2259
  o.mouseDownContains = o.popperNode().contains(e.target);
2166
2260
  } catch {
2167
2261
  }
2168
2262
  }
2169
2263
  }
2170
- function St(e, t) {
2171
- Po(e, t);
2264
+ function Tt(e, t) {
2265
+ Bo(e, t);
2172
2266
  }
2173
- function Po(e, t) {
2267
+ function Bo(e, t) {
2174
2268
  const n = {};
2175
- for (let o = I.length - 1; o >= 0; o--) {
2176
- const s = I[o];
2269
+ for (let o = G.length - 1; o >= 0; o--) {
2270
+ const s = G[o];
2177
2271
  try {
2178
2272
  const i = s.containsGlobalTarget = s.mouseDownContains || s.popperNode().contains(e.target);
2179
2273
  s.pendingHide = !1, requestAnimationFrame(() => {
2180
- if (s.pendingHide = !1, !n[s.randomId] && Tt(s, i, e)) {
2274
+ if (s.pendingHide = !1, !n[s.randomId] && kt(s, i, e)) {
2181
2275
  if (s.$_handleGlobalClose(e, t), !e.closeAllPopover && e.closePopover && i) {
2182
2276
  let a = s.parentPopper;
2183
2277
  for (; a; )
@@ -2185,7 +2279,7 @@ function Po(e, t) {
2185
2279
  return;
2186
2280
  }
2187
2281
  let r = s.parentPopper;
2188
- for (; r && Tt(r, r.containsGlobalTarget, e); )
2282
+ for (; r && kt(r, r.containsGlobalTarget, e); )
2189
2283
  r.$_handleGlobalClose(e, t), r = r.parentPopper;
2190
2284
  }
2191
2285
  });
@@ -2193,50 +2287,50 @@ function Po(e, t) {
2193
2287
  }
2194
2288
  }
2195
2289
  }
2196
- function Tt(e, t, n) {
2197
- return n.closeAllPopover || n.closePopover && t || Ao(e, n) && !t;
2290
+ function kt(e, t, n) {
2291
+ return n.closeAllPopover || n.closePopover && t || Ro(e, n) && !t;
2198
2292
  }
2199
- function Ao(e, t) {
2293
+ function Ro(e, t) {
2200
2294
  if (typeof e.autoHide == "function") {
2201
2295
  const n = e.autoHide(t);
2202
2296
  return e.lastAutoHide = n, n;
2203
2297
  }
2204
2298
  return e.autoHide;
2205
2299
  }
2206
- function Oo() {
2207
- for (let e = 0; e < I.length; e++)
2208
- I[e].$_computePosition();
2300
+ function Eo() {
2301
+ for (let e = 0; e < G.length; e++)
2302
+ G[e].$_computePosition();
2209
2303
  }
2210
- let oe = 0, se = 0, ye = 0, ve = 0;
2304
+ let se = 0, ie = 0, ve = 0, _e = 0;
2211
2305
  typeof window < "u" && window.addEventListener("mousemove", (e) => {
2212
- oe = ye, se = ve, ye = e.clientX, ve = e.clientY;
2213
- }, $e ? {
2306
+ se = ve, ie = _e, ve = e.clientX, _e = e.clientY;
2307
+ }, Te ? {
2214
2308
  passive: !0
2215
2309
  } : void 0);
2216
- function Ce(e, t, n, o, s, i, r, a) {
2217
- const d = ((r - s) * (t - i) - (a - i) * (e - s)) / ((a - i) * (n - e) - (r - s) * (o - t)), l = ((n - e) * (t - i) - (o - t) * (e - s)) / ((a - i) * (n - e) - (r - s) * (o - t));
2218
- return d >= 0 && d <= 1 && l >= 0 && l <= 1;
2310
+ function Pe(e, t, n, o, s, i, r, a) {
2311
+ const l = ((r - s) * (t - i) - (a - i) * (e - s)) / ((a - i) * (n - e) - (r - s) * (o - t)), d = ((n - e) * (t - i) - (o - t) * (e - s)) / ((a - i) * (n - e) - (r - s) * (o - t));
2312
+ return l >= 0 && l <= 1 && d >= 0 && d <= 1;
2219
2313
  }
2220
- const No = {
2221
- extends: qt()
2222
- }, it = (e, t) => {
2314
+ const Mo = {
2315
+ extends: It()
2316
+ }, at = (e, t) => {
2223
2317
  const n = e.__vccOpts || e;
2224
2318
  for (const [o, s] of t)
2225
2319
  n[o] = s;
2226
2320
  return n;
2227
2321
  };
2228
- function zo(e, t, n, o, s, i) {
2229
- return _(), C("div", {
2322
+ function Do(e, t, n, o, s, i) {
2323
+ return m(), $("div", {
2230
2324
  ref: "reference",
2231
- class: A(["v-popper", {
2325
+ class: k(["v-popper", {
2232
2326
  "v-popper--shown": e.slotData.isShown
2233
2327
  }])
2234
2328
  }, [
2235
- D(e.$slots, "default", on(sn(e.slotData)))
2329
+ R(e.$slots, "default", nn(on(e.slotData)))
2236
2330
  ], 2);
2237
2331
  }
2238
- const Bo = /* @__PURE__ */ it(No, [["render", zo]]);
2239
- function Ro() {
2332
+ const Ho = /* @__PURE__ */ at(Mo, [["render", Do]]);
2333
+ function Lo() {
2240
2334
  var e = window.navigator.userAgent, t = e.indexOf("MSIE ");
2241
2335
  if (t > 0)
2242
2336
  return parseInt(e.substring(t + 5, e.indexOf(".", t)), 10);
@@ -2248,11 +2342,11 @@ function Ro() {
2248
2342
  var s = e.indexOf("Edge/");
2249
2343
  return s > 0 ? parseInt(e.substring(s + 5, e.indexOf(".", s)), 10) : -1;
2250
2344
  }
2251
- let Pe;
2252
- function Xe() {
2253
- Xe.init || (Xe.init = !0, Pe = Ro() !== -1);
2345
+ let Oe;
2346
+ function Ze() {
2347
+ Ze.init || (Ze.init = !0, Oe = Lo() !== -1);
2254
2348
  }
2255
- var He = {
2349
+ var Le = {
2256
2350
  name: "ResizeObserver",
2257
2351
  props: {
2258
2352
  emitOnMount: {
@@ -2272,11 +2366,11 @@ var He = {
2272
2366
  "notify"
2273
2367
  ],
2274
2368
  mounted() {
2275
- Xe(), kt(() => {
2369
+ Ze(), Pt(() => {
2276
2370
  this._w = this.$el.offsetWidth, this._h = this.$el.offsetHeight, this.emitOnMount && this.emitSize();
2277
2371
  });
2278
2372
  const e = document.createElement("object");
2279
- this._resizeObject = e, e.setAttribute("aria-hidden", "true"), e.setAttribute("tabindex", -1), e.onload = this.addResizeHandlers, e.type = "text/html", Pe && this.$el.appendChild(e), e.data = "about:blank", Pe || this.$el.appendChild(e);
2373
+ this._resizeObject = e, e.setAttribute("aria-hidden", "true"), e.setAttribute("tabindex", -1), e.onload = this.addResizeHandlers, e.type = "text/html", Oe && this.$el.appendChild(e), e.data = "about:blank", Oe || this.$el.appendChild(e);
2280
2374
  },
2281
2375
  beforeUnmount() {
2282
2376
  this.removeResizeHandlers();
@@ -2295,34 +2389,34 @@ var He = {
2295
2389
  this._resizeObject.contentDocument.defaultView.addEventListener("resize", this.compareAndNotify), this.compareAndNotify();
2296
2390
  },
2297
2391
  removeResizeHandlers() {
2298
- this._resizeObject && this._resizeObject.onload && (!Pe && this._resizeObject.contentDocument && this._resizeObject.contentDocument.defaultView.removeEventListener("resize", this.compareAndNotify), this.$el.removeChild(this._resizeObject), this._resizeObject.onload = null, this._resizeObject = null);
2392
+ this._resizeObject && this._resizeObject.onload && (!Oe && this._resizeObject.contentDocument && this._resizeObject.contentDocument.defaultView.removeEventListener("resize", this.compareAndNotify), this.$el.removeChild(this._resizeObject), this._resizeObject.onload = null, this._resizeObject = null);
2299
2393
  }
2300
2394
  }
2301
2395
  };
2302
- const Eo = /* @__PURE__ */ rn("data-v-b329ee4c");
2303
- tn("data-v-b329ee4c");
2304
- const Do = {
2396
+ const Vo = /* @__PURE__ */ sn("data-v-b329ee4c");
2397
+ en("data-v-b329ee4c");
2398
+ const jo = {
2305
2399
  class: "resize-observer",
2306
2400
  tabindex: "-1"
2307
2401
  };
2308
- nn();
2309
- const Mo = /* @__PURE__ */ Eo((e, t, n, o, s, i) => (_(), F("div", Do)));
2310
- He.render = Mo;
2311
- He.__scopeId = "data-v-b329ee4c";
2312
- He.__file = "src/components/ResizeObserver.vue";
2313
- const Gt = (e = "theme") => ({
2402
+ tn();
2403
+ const Fo = /* @__PURE__ */ Vo((e, t, n, o, s, i) => (m(), W("div", jo)));
2404
+ Le.render = Fo;
2405
+ Le.__scopeId = "data-v-b329ee4c";
2406
+ Le.__file = "src/components/ResizeObserver.vue";
2407
+ const qt = (e = "theme") => ({
2314
2408
  computed: {
2315
2409
  themeClass() {
2316
- return Co(this[e]);
2410
+ return No(this[e]);
2317
2411
  }
2318
2412
  }
2319
- }), Ho = Z({
2413
+ }), Wo = Y({
2320
2414
  name: "VPopperContent",
2321
2415
  components: {
2322
- ResizeObserver: He
2416
+ ResizeObserver: Le
2323
2417
  },
2324
2418
  mixins: [
2325
- Gt()
2419
+ qt()
2326
2420
  ],
2327
2421
  props: {
2328
2422
  popperId: String,
@@ -2344,19 +2438,19 @@ const Gt = (e = "theme") => ({
2344
2438
  return e != null && !isNaN(e) ? `${e}px` : null;
2345
2439
  }
2346
2440
  }
2347
- }), Lo = ["id", "aria-hidden", "tabindex", "data-popper-placement"], jo = {
2441
+ }), Io = ["id", "aria-hidden", "tabindex", "data-popper-placement"], qo = {
2348
2442
  ref: "inner",
2349
2443
  class: "v-popper__inner"
2350
- }, Fo = /* @__PURE__ */ y("div", { class: "v-popper__arrow-outer" }, null, -1), Io = /* @__PURE__ */ y("div", { class: "v-popper__arrow-inner" }, null, -1), Vo = [
2351
- Fo,
2352
- Io
2444
+ }, Go = /* @__PURE__ */ w("div", { class: "v-popper__arrow-outer" }, null, -1), Uo = /* @__PURE__ */ w("div", { class: "v-popper__arrow-inner" }, null, -1), Yo = [
2445
+ Go,
2446
+ Uo
2353
2447
  ];
2354
- function Wo(e, t, n, o, s, i) {
2355
- const r = We("ResizeObserver");
2356
- return _(), C("div", {
2448
+ function Xo(e, t, n, o, s, i) {
2449
+ const r = qe("ResizeObserver");
2450
+ return m(), $("div", {
2357
2451
  id: e.popperId,
2358
2452
  ref: "popover",
2359
- class: A(["v-popper__popper", [
2453
+ class: k(["v-popper__popper", [
2360
2454
  e.themeClass,
2361
2455
  e.classes.popperClass,
2362
2456
  {
@@ -2371,48 +2465,48 @@ function Wo(e, t, n, o, s, i) {
2371
2465
  "v-popper__popper--no-positioning": !e.result
2372
2466
  }
2373
2467
  ]]),
2374
- style: Le(e.result ? {
2468
+ style: Ve(e.result ? {
2375
2469
  position: e.result.strategy,
2376
2470
  transform: `translate3d(${Math.round(e.result.x)}px,${Math.round(e.result.y)}px,0)`
2377
2471
  } : void 0),
2378
2472
  "aria-hidden": e.shown ? "false" : "true",
2379
2473
  tabindex: e.autoHide ? 0 : void 0,
2380
2474
  "data-popper-placement": e.result ? e.result.placement : void 0,
2381
- onKeyup: t[2] || (t[2] = an((a) => e.autoHide && e.$emit("hide"), ["esc"]))
2475
+ onKeyup: t[2] || (t[2] = rn((a) => e.autoHide && e.$emit("hide"), ["esc"]))
2382
2476
  }, [
2383
- y("div", {
2477
+ w("div", {
2384
2478
  class: "v-popper__backdrop",
2385
2479
  onClick: t[0] || (t[0] = (a) => e.autoHide && e.$emit("hide"))
2386
2480
  }),
2387
- y("div", {
2481
+ w("div", {
2388
2482
  class: "v-popper__wrapper",
2389
- style: Le(e.result ? {
2483
+ style: Ve(e.result ? {
2390
2484
  transformOrigin: e.result.transformOrigin
2391
2485
  } : void 0)
2392
2486
  }, [
2393
- y("div", jo, [
2394
- e.mounted ? (_(), C(J, { key: 0 }, [
2395
- y("div", null, [
2396
- D(e.$slots, "default")
2487
+ w("div", qo, [
2488
+ e.mounted ? (m(), $(D, { key: 0 }, [
2489
+ w("div", null, [
2490
+ R(e.$slots, "default")
2397
2491
  ]),
2398
- e.handleResize ? (_(), F(r, {
2492
+ e.handleResize ? (m(), W(r, {
2399
2493
  key: 0,
2400
2494
  onNotify: t[1] || (t[1] = (a) => e.$emit("resize", a))
2401
- })) : G("", !0)
2402
- ], 64)) : G("", !0)
2495
+ })) : H("", !0)
2496
+ ], 64)) : H("", !0)
2403
2497
  ], 512),
2404
- y("div", {
2498
+ w("div", {
2405
2499
  ref: "arrow",
2406
2500
  class: "v-popper__arrow-container",
2407
- style: Le(e.result ? {
2501
+ style: Ve(e.result ? {
2408
2502
  left: e.toPx(e.result.arrow.x),
2409
2503
  top: e.toPx(e.result.arrow.y)
2410
2504
  } : void 0)
2411
- }, Vo, 4)
2505
+ }, Yo, 4)
2412
2506
  ], 4)
2413
- ], 46, Lo);
2507
+ ], 46, Io);
2414
2508
  }
2415
- const Ut = /* @__PURE__ */ it(Ho, [["render", Wo]]), Yt = {
2509
+ const Gt = /* @__PURE__ */ at(Wo, [["render", Xo]]), Ut = {
2416
2510
  methods: {
2417
2511
  show(...e) {
2418
2512
  return this.$refs.popper.show(...e);
@@ -2428,18 +2522,18 @@ const Ut = /* @__PURE__ */ it(Ho, [["render", Wo]]), Yt = {
2428
2522
  }
2429
2523
  }
2430
2524
  };
2431
- let Ze = function() {
2525
+ let Qe = function() {
2432
2526
  };
2433
- typeof window < "u" && (Ze = window.Element);
2434
- const qo = Z({
2527
+ typeof window < "u" && (Qe = window.Element);
2528
+ const Zo = Y({
2435
2529
  name: "VPopperWrapper",
2436
2530
  components: {
2437
- Popper: Bo,
2438
- PopperContent: Ut
2531
+ Popper: Ho,
2532
+ PopperContent: Gt
2439
2533
  },
2440
2534
  mixins: [
2441
- Yt,
2442
- Gt("finalTheme")
2535
+ Ut,
2536
+ qt("finalTheme")
2443
2537
  ],
2444
2538
  props: {
2445
2539
  theme: {
@@ -2511,11 +2605,11 @@ const qo = Z({
2511
2605
  default: void 0
2512
2606
  },
2513
2607
  container: {
2514
- type: [String, Object, Ze, Boolean],
2608
+ type: [String, Object, Qe, Boolean],
2515
2609
  default: void 0
2516
2610
  },
2517
2611
  boundary: {
2518
- type: [String, Ze],
2612
+ type: [String, Qe],
2519
2613
  default: void 0
2520
2614
  },
2521
2615
  strategy: {
@@ -2627,9 +2721,9 @@ const qo = Z({
2627
2721
  }
2628
2722
  }
2629
2723
  });
2630
- function Go(e, t, n, o, s, i) {
2631
- const r = We("PopperContent"), a = We("Popper");
2632
- return _(), F(a, Qe({ ref: "popper" }, e.$props, {
2724
+ function Qo(e, t, n, o, s, i) {
2725
+ const r = qe("PopperContent"), a = qe("Popper");
2726
+ return m(), W(a, Je({ ref: "popper" }, e.$props, {
2633
2727
  theme: e.finalTheme,
2634
2728
  "target-nodes": e.getTargetNodes,
2635
2729
  "popper-node": () => e.$refs.popperContent.$el,
@@ -2638,7 +2732,7 @@ function Go(e, t, n, o, s, i) {
2638
2732
  ],
2639
2733
  onShow: t[0] || (t[0] = () => e.$emit("show")),
2640
2734
  onHide: t[1] || (t[1] = () => e.$emit("hide")),
2641
- "onUpdate:shown": t[2] || (t[2] = (d) => e.$emit("update:shown", d)),
2735
+ "onUpdate:shown": t[2] || (t[2] = (l) => e.$emit("update:shown", l)),
2642
2736
  onApplyShow: t[3] || (t[3] = () => e.$emit("apply-show")),
2643
2737
  onApplyHide: t[4] || (t[4] = () => e.$emit("apply-hide")),
2644
2738
  onCloseGroup: t[5] || (t[5] = () => e.$emit("close-group")),
@@ -2646,41 +2740,41 @@ function Go(e, t, n, o, s, i) {
2646
2740
  onAutoHide: t[7] || (t[7] = () => e.$emit("auto-hide")),
2647
2741
  onResize: t[8] || (t[8] = () => e.$emit("resize"))
2648
2742
  }), {
2649
- default: K(({
2650
- popperId: d,
2651
- isShown: l,
2652
- shouldMountContent: c,
2653
- skipTransition: u,
2743
+ default: q(({
2744
+ popperId: l,
2745
+ isShown: d,
2746
+ shouldMountContent: u,
2747
+ skipTransition: c,
2654
2748
  autoHide: f,
2655
2749
  show: p,
2656
2750
  hide: h,
2657
- handleResize: w,
2658
- onResize: g,
2659
- classes: m,
2751
+ handleResize: g,
2752
+ onResize: b,
2753
+ classes: y,
2660
2754
  result: v
2661
2755
  }) => [
2662
- D(e.$slots, "default", {
2663
- shown: l,
2756
+ R(e.$slots, "default", {
2757
+ shown: d,
2664
2758
  show: p,
2665
2759
  hide: h
2666
2760
  }),
2667
- ke(r, {
2761
+ me(r, {
2668
2762
  ref: "popperContent",
2669
- "popper-id": d,
2763
+ "popper-id": l,
2670
2764
  theme: e.finalTheme,
2671
- shown: l,
2672
- mounted: c,
2673
- "skip-transition": u,
2765
+ shown: d,
2766
+ mounted: u,
2767
+ "skip-transition": c,
2674
2768
  "auto-hide": f,
2675
- "handle-resize": w,
2676
- classes: m,
2769
+ "handle-resize": g,
2770
+ classes: y,
2677
2771
  result: v,
2678
2772
  onHide: h,
2679
- onResize: g
2773
+ onResize: b
2680
2774
  }, {
2681
- default: K(() => [
2682
- D(e.$slots, "popper", {
2683
- shown: l,
2775
+ default: q(() => [
2776
+ R(e.$slots, "popper", {
2777
+ shown: d,
2684
2778
  hide: h
2685
2779
  })
2686
2780
  ]),
@@ -2690,27 +2784,27 @@ function Go(e, t, n, o, s, i) {
2690
2784
  _: 3
2691
2785
  }, 16, ["theme", "target-nodes", "popper-node", "class"]);
2692
2786
  }
2693
- const rt = /* @__PURE__ */ it(qo, [["render", Go]]);
2787
+ const lt = /* @__PURE__ */ at(Zo, [["render", Qo]]);
2694
2788
  ({
2695
- ...rt
2789
+ ...lt
2696
2790
  });
2697
- const Uo = {
2698
- ...rt,
2791
+ const Jo = {
2792
+ ...lt,
2699
2793
  name: "VMenu",
2700
2794
  vPopperTheme: "menu"
2701
- }, Yo = {
2702
- ...rt,
2795
+ }, Ko = {
2796
+ ...lt,
2703
2797
  name: "VTooltip",
2704
2798
  vPopperTheme: "tooltip"
2705
2799
  };
2706
- Z({
2800
+ Y({
2707
2801
  name: "VTooltipDirective",
2708
2802
  components: {
2709
- Popper: qt(),
2710
- PopperContent: Ut
2803
+ Popper: It(),
2804
+ PopperContent: Gt
2711
2805
  },
2712
2806
  mixins: [
2713
- Yt
2807
+ Ut
2714
2808
  ],
2715
2809
  inheritAttrs: !1,
2716
2810
  props: {
@@ -2720,7 +2814,7 @@ Z({
2720
2814
  },
2721
2815
  html: {
2722
2816
  type: Boolean,
2723
- default: (e) => Ue(e.theme, "html")
2817
+ default: (e) => Ye(e.theme, "html")
2724
2818
  },
2725
2819
  content: {
2726
2820
  type: [String, Number, Function],
@@ -2728,7 +2822,7 @@ Z({
2728
2822
  },
2729
2823
  loadingContent: {
2730
2824
  type: String,
2731
- default: (e) => Ue(e.theme, "loadingContent")
2825
+ default: (e) => Ye(e.theme, "loadingContent")
2732
2826
  },
2733
2827
  targetNodes: {
2734
2828
  type: Function,
@@ -2784,120 +2878,194 @@ Z({
2784
2878
  }
2785
2879
  }
2786
2880
  });
2787
- const Ve = Uo, Xo = Yo, Zo = {
2881
+ const Ae = Jo, es = Ko, ts = {
2788
2882
  viewBox: "0 0 256 256",
2789
2883
  width: "1.2em",
2790
2884
  height: "1.2em"
2791
2885
  };
2792
- function Qo(e, t) {
2793
- return _(), C("svg", Zo, t[0] || (t[0] = [
2794
- y("path", {
2886
+ function ns(e, t) {
2887
+ return m(), $("svg", ts, t[0] || (t[0] = [
2888
+ w("path", {
2795
2889
  fill: "currentColor",
2796
2890
  d: "M128 24a104 104 0 1 0 104 104A104.13 104.13 0 0 0 128 24m40 112h-32v32a8 8 0 0 1-16 0v-32H88a8 8 0 0 1 0-16h32V88a8 8 0 0 1 16 0v32h32a8 8 0 0 1 0 16"
2797
2891
  }, null, -1)
2798
2892
  ]));
2799
2893
  }
2800
- const Jo = Re({ name: "ph-plus-circle-fill", render: Qo }), Ko = {
2894
+ const os = ke({ name: "ph-plus-circle-fill", render: ns }), ss = {
2801
2895
  viewBox: "0 0 256 256",
2802
2896
  width: "1.2em",
2803
2897
  height: "1.2em"
2804
2898
  };
2805
- function es(e, t) {
2806
- return _(), C("svg", Ko, t[0] || (t[0] = [
2807
- y("path", {
2899
+ function is(e, t) {
2900
+ return m(), $("svg", ss, t[0] || (t[0] = [
2901
+ w("path", {
2808
2902
  fill: "currentColor",
2809
2903
  d: "m229.66 218.34l-50.07-50.06a88.11 88.11 0 1 0-11.31 11.31l50.06 50.07a8 8 0 0 0 11.32-11.32M40 112a72 72 0 1 1 72 72a72.08 72.08 0 0 1-72-72"
2810
2904
  }, null, -1)
2811
2905
  ]));
2812
2906
  }
2813
- const ts = Re({ name: "ph-magnifying-glass", render: es }), ns = {
2907
+ const rs = ke({ name: "ph-magnifying-glass", render: is }), as = {
2814
2908
  viewBox: "0 0 256 256",
2815
2909
  width: "1.2em",
2816
2910
  height: "1.2em"
2817
2911
  };
2818
- function os(e, t) {
2819
- return _(), C("svg", ns, t[0] || (t[0] = [
2820
- y("path", {
2912
+ function ls(e, t) {
2913
+ return m(), $("svg", as, t[0] || (t[0] = [
2914
+ w("path", {
2821
2915
  fill: "currentColor",
2822
2916
  d: "M128 24a104 104 0 1 0 104 104A104.11 104.11 0 0 0 128 24m-26.37 144h52.74C149 186.34 140 202.87 128 215.89c-12-13.02-21-29.55-26.37-47.89M98 152a145.72 145.72 0 0 1 0-48h60a145.72 145.72 0 0 1 0 48Zm-58-24a87.61 87.61 0 0 1 3.33-24h38.46a161.79 161.79 0 0 0 0 48H43.33A87.61 87.61 0 0 1 40 128m114.37-40h-52.74C107 69.66 116 53.13 128 40.11c12 13.02 21 29.55 26.37 47.89m19.84 16h38.46a88.15 88.15 0 0 1 0 48h-38.46a161.79 161.79 0 0 0 0-48m32.16-16h-35.43a142.39 142.39 0 0 0-20.26-45a88.37 88.37 0 0 1 55.69 45M105.32 43a142.39 142.39 0 0 0-20.26 45H49.63a88.37 88.37 0 0 1 55.69-45M49.63 168h35.43a142.39 142.39 0 0 0 20.26 45a88.37 88.37 0 0 1-55.69-45m101.05 45a142.39 142.39 0 0 0 20.26-45h35.43a88.37 88.37 0 0 1-55.69 45"
2823
2917
  }, null, -1)
2824
2918
  ]));
2825
2919
  }
2826
- const Ct = Re({ name: "ph-globe", render: os }), ss = {
2920
+ const Ct = ke({ name: "ph-globe", render: ls }), ds = {
2827
2921
  viewBox: "0 0 256 256",
2828
2922
  width: "1.2em",
2829
2923
  height: "1.2em"
2830
2924
  };
2831
- function is(e, t) {
2832
- return _(), C("svg", ss, t[0] || (t[0] = [
2833
- y("path", {
2925
+ function us(e, t) {
2926
+ return m(), $("svg", ds, t[0] || (t[0] = [
2927
+ w("path", {
2834
2928
  fill: "currentColor",
2835
2929
  d: "m181.66 133.66l-80 80a8 8 0 0 1-11.32-11.32L164.69 128L90.34 53.66a8 8 0 0 1 11.32-11.32l80 80a8 8 0 0 1 0 11.32"
2836
2930
  }, null, -1)
2837
2931
  ]));
2838
2932
  }
2839
- const rs = Re({ name: "ph-caret-right", render: is }), as = {
2840
- class: /* @__PURE__ */ A([
2933
+ const cs = ke({ name: "ph-caret-right", render: us }), ps = {
2934
+ viewBox: "0 0 256 256",
2935
+ width: "1.2em",
2936
+ height: "1.2em"
2937
+ };
2938
+ function fs(e, t) {
2939
+ return m(), $("svg", ps, t[0] || (t[0] = [
2940
+ w("path", {
2941
+ fill: "currentColor",
2942
+ d: "M205.66 194.34a8 8 0 0 1-11.32 11.32L128 139.31l-66.34 66.35a8 8 0 0 1-11.32-11.32L116.69 128L50.34 61.66a8 8 0 0 1 11.32-11.32L128 116.69l66.34-66.35a8 8 0 0 1 11.32 11.32L139.31 128Z"
2943
+ }, null, -1)
2944
+ ]));
2945
+ }
2946
+ const hs = ke({ name: "ph-x", render: fs }), ws = {
2947
+ class: /* @__PURE__ */ k([
2841
2948
  "tw-hidden-scrolls tw-fixed tw-bottom-0 tw-left-0 tw-top-0",
2842
2949
  "tw-background-color tw-w-auto tw-overflow-y-auto tw-overflow-x-hidden",
2843
2950
  "tw-border-color-weak tw-border-b-0 tw-border-l-0 tw-border-r tw-border-t-0 tw-border-solid",
2844
2951
  "tw-transition tw-duration-150 tw-ease-in-out"
2845
2952
  ])
2846
- }, ls = { class: "tw-grid tw-h-full tw-grid-rows-[auto_1fr] tw-px-[12px]" }, ds = { class: "tw-hidden-scrolls tw-mt-[16px] tw-overflow-auto" }, us = { class: "tw-grid tw-justify-center tw-gap-[8px] tw-pb-[16px] tw-pt-[16px]" }, cs = {
2953
+ }, ms = { class: "tw-grid tw-h-full tw-grid-rows-[auto_1fr] tw-px-[12px]" }, gs = { class: "tw-hidden-scrolls tw-mt-[16px] tw-overflow-auto" }, bs = { class: "tw-grid tw-justify-center tw-gap-[8px] tw-pb-[16px] tw-pt-[16px]" }, ys = { class: "tw-border-color-weak tw-flex tw-justify-between tw-border-x-0 tw-border-b tw-border-t-0 tw-border-solid tw-p-[8px]" }, vs = { class: "tw-max-h-[268px] tw-overflow-auto" }, _s = ["onClick"], xs = { class: "tw-flex tw-w-[calc(100%-48px)] tw-flex-col tw-justify-between" }, $s = { class: "tw-body-sm-regular-medium tw-m-0 tw-truncate" }, Ss = { class: "tw-body-xs-regular tw-text-color-base tw-m-0 tw-truncate" }, Ts = {
2847
2954
  key: 0,
2848
- class: /* @__PURE__ */ A([
2849
- "tw-text-color-brand-base tw-mx-auto tw-h-[32px] tw-cursor-pointer tw-text-[28px] tw-transition tw-duration-150 tw-ease-in-out",
2850
- "hover:tw-text-color-success-hover",
2851
- "active:tw-text-color-success-pressed active:tw-scale-90"
2852
- ])
2853
- }, ps = {
2854
- key: 1,
2855
- class: /* @__PURE__ */ A([
2856
- "justify-center tw-flex tw-cursor-pointer tw-items-center tw-rounded-[8px] tw-p-[8px] tw-transition tw-duration-150 tw-ease-in-out",
2955
+ class: /* @__PURE__ */ k([
2956
+ "justify-center tw-flex tw-cursor-pointer tw-items-center tw-rounded-border-radius-md tw-p-[8px] tw-transition tw-duration-150 tw-ease-in-out",
2857
2957
  "hover:tw-background-color-hover",
2858
2958
  "active:tw-background-color-single-active active:tw-scale-90"
2859
2959
  ])
2860
- }, fs = { class: "tw-border-color-weak tw-border-x-0 tw-border-b tw-border-t-0 tw-border-solid tw-p-[8px]" }, hs = { class: "tw-body-sm-regular-medium tw-m-0" }, ws = {
2960
+ }, ks = { class: "tw-border-color-weak tw-border-x-0 tw-border-b tw-border-t-0 tw-border-solid tw-p-[8px]" }, Cs = { class: "tw-body-sm-regular-medium tw-m-0" }, Ps = {
2961
+ key: 0,
2962
+ class: "tw-label-xs-medium tw-text-color-supporting tw-m-0 tw-p-[8px]"
2963
+ }, As = {
2861
2964
  key: 0,
2862
2965
  class: "tw-background-color-brand-base tw-absolute tw-left-0 tw-top-0 tw-h-full tw-w-[2px]"
2863
- }, ms = ["onClick"], gs = { class: "tw-background-color-brand-base tw-absolute tw-left-0 tw-top-0 tw-h-full tw-w-[2px]" }, ys = ["onClick"], vs = { class: "tw-label-xs-medium" }, bs = ["onClick"], _s = {
2966
+ }, Os = {
2967
+ key: 0,
2968
+ class: "tw-label-xs-medium tw-text-color-supporting tw-m-0 tw-p-[8px]"
2969
+ }, Ns = ["onClick"], zs = { class: "tw-background-color-brand-base tw-absolute tw-left-0 tw-top-0 tw-h-full tw-w-[2px]" }, Bs = ["onClick"], Rs = { class: "tw-label-xs-medium" }, Es = ["onClick"], Ms = {
2864
2970
  key: 0,
2865
2971
  class: "tw-background-color-hover tw-h-[2px] tw-w-full"
2866
- }, xs = {
2867
- class: /* @__PURE__ */ A([
2972
+ }, Ds = {
2973
+ class: /* @__PURE__ */ k([
2868
2974
  "tw tw-grid tw-items-end tw-justify-center tw-pb-[16px]",
2869
2975
  "[&>img]:tw-mx-auto [&>img]:tw-h-[24px] [&>img]:tw-w-[24px] [&>img]:tw-rounded-full"
2870
2976
  ])
2871
- }, $s = /* @__PURE__ */ Z({
2977
+ }, Hs = /* @__PURE__ */ Y({
2872
2978
  __name: "sidenav",
2873
- props: no,
2874
- emits: oo,
2979
+ props: ao,
2980
+ emits: lo,
2875
2981
  setup(e, { emit: t }) {
2876
- const n = e, o = t, { handleRedirect: s } = so(n, o);
2877
- return (i, r) => (_(), C("div", as, [
2878
- y("div", ls, [
2879
- y("div", ds, [
2880
- y("div", {
2881
- class: A([
2982
+ const n = e, o = t, { isQuckActionMenuVisible: s, handleRedirect: i } = uo(n, o);
2983
+ return (r, a) => (m(), $("div", ws, [
2984
+ w("div", ms, [
2985
+ w("div", gs, [
2986
+ w("div", {
2987
+ class: k([
2882
2988
  {
2883
2989
  "tw tw-grid tw-justify-center": !0,
2884
2990
  "[&>img]:tw-mx-auto [&>img]:tw-h-[24px] [&>img]:tw-w-[24px]": !0,
2885
- "tw-pb-[16px]": !n.hasQuickActions && !n.hasSearch && !n.navLinks
2991
+ "tw-pb-[16px]": !n.quickActions && !n.hasSearch && !n.navLinks
2886
2992
  }
2887
2993
  ])
2888
2994
  }, [
2889
- D(i.$slots, "logo-image")
2995
+ R(r.$slots, "logo-image")
2890
2996
  ], 2),
2891
- y("div", us, [
2892
- n.hasQuickActions ? (_(), C("div", cs, [
2893
- ke(S(Jo))
2894
- ])) : G("", !0),
2895
- n.hasSearch ? (_(), C("div", ps, [
2896
- ke(S(ts))
2897
- ])) : G("", !0),
2898
- (_(!0), C(J, null, Se(n.navLinks, (a, d) => (_(), C(J, { key: d }, [
2899
- (_(!0), C(J, null, Se(a.parentLinks, (l, c) => (_(), C(J, { key: c }, [
2900
- l.menuLinks && l.menuLinks.length > 0 ? (_(), F(S(Ve), {
2997
+ w("div", bs, [
2998
+ me(x(Ae), {
2999
+ modelValue: x(s),
3000
+ "onUpdate:modelValue": a[2] || (a[2] = (l) => et(s) ? s.value = l : null),
3001
+ "aria-id": "quick-action-menu-wrapper",
3002
+ distance: "18",
3003
+ placement: "right-start",
3004
+ triggers: [],
3005
+ "popper-hide-triggers": [],
3006
+ shown: x(s),
3007
+ "instant-move": ""
3008
+ }, {
3009
+ popper: q(() => [
3010
+ w("div", ys, [
3011
+ a[3] || (a[3] = w("h3", { class: "tw-body-sm-regular-medium tw-m-0" }, "Quick Actions", -1)),
3012
+ me(x(hs), {
3013
+ class: "tw-body-sm-regular-medium tw-cursor-pointer tw-transition tw-duration-150 tw-ease-in-out active:tw-scale-90",
3014
+ onClick: a[1] || (a[1] = (l) => s.value = !x(s))
3015
+ })
3016
+ ]),
3017
+ w("div", vs, [
3018
+ (m(!0), $(D, null, de(n.quickActions, (l, d) => (m(), $("div", {
3019
+ key: d,
3020
+ class: k([
3021
+ "tw-flex tw-cursor-pointer tw-gap-[8px] tw-px-[8px] tw-py-[6px] tw-align-middle tw-duration-150 tw-ease-in-out",
3022
+ "hover:tw-background-color-hover",
3023
+ "active:tw-background-color-pressed"
3024
+ ]),
3025
+ onClick: (u) => x(i)(u, l)
3026
+ }, [
3027
+ w("div", {
3028
+ class: k([
3029
+ {
3030
+ "tw-rounded-border-radius-md tw-p-[8px]": !0,
3031
+ "tw-border tw-border-solid tw-border-kangkong-400 tw-bg-kangkong-50 tw-text-kangkong-400": l.iconBgColor === "green",
3032
+ "tw-border tw-border-solid tw-border-ubas-400 tw-bg-ubas-50 tw-text-ubas-400": l.iconBgColor === "purple"
3033
+ }
3034
+ ])
3035
+ }, [
3036
+ l.icon ? (m(), W(je(l.icon), {
3037
+ key: 0,
3038
+ class: "tw-h-[1.25em] tw-w-[1.25em]"
3039
+ })) : H("", !0)
3040
+ ], 2),
3041
+ w("div", xs, [
3042
+ w("h5", $s, F(l.title), 1),
3043
+ w("p", Ss, F(l.description), 1)
3044
+ ])
3045
+ ], 8, _s))), 128))
3046
+ ])
3047
+ ]),
3048
+ default: q(() => [
3049
+ n.quickActions && n.quickActions.length > 0 ? (m(), $("div", {
3050
+ key: 0,
3051
+ class: k([
3052
+ "tw-text-color-brand-base tw-mx-auto tw-h-[32px] tw-cursor-pointer tw-text-[28px] tw-transition tw-duration-150 tw-ease-in-out",
3053
+ "hover:tw-text-color-success-hover",
3054
+ "active:tw-text-color-success-pressed active:tw-scale-90"
3055
+ ]),
3056
+ onClick: a[0] || (a[0] = (l) => s.value = !x(s))
3057
+ }, [
3058
+ me(x(os))
3059
+ ])) : H("", !0)
3060
+ ]),
3061
+ _: 1
3062
+ }, 8, ["modelValue", "shown"]),
3063
+ n.hasSearch ? (m(), $("div", Ts, [
3064
+ me(x(rs))
3065
+ ])) : H("", !0),
3066
+ (m(!0), $(D, null, de(n.navLinks, (l, d) => (m(), $(D, { key: d }, [
3067
+ (m(!0), $(D, null, de(l.parentLinks, (u, c) => (m(), $(D, { key: c }, [
3068
+ u.menuLinks && u.menuLinks.length > 0 ? (m(), W(x(Ae), {
2901
3069
  key: 0,
2902
3070
  "aria-id": "sidenav-menu-wrapper",
2903
3071
  distance: "18",
@@ -2905,149 +3073,155 @@ const rs = Re({ name: "ph-caret-right", render: is }), as = {
2905
3073
  triggers: ["click", "hover"],
2906
3074
  "instant-move": ""
2907
3075
  }, {
2908
- popper: K(() => [
2909
- y("div", fs, [
2910
- y("h3", hs, ue(l.title), 1)
3076
+ popper: q(() => [
3077
+ w("div", ks, [
3078
+ w("h3", Cs, F(u.title), 1)
2911
3079
  ]),
2912
- (_(!0), C(J, null, Se(l.menuLinks, (u, f) => (_(), C(J, { key: f }, [
2913
- u.submenuLinks && u.submenuLinks.length > 0 ? (_(), F(S(Ve), {
2914
- key: 0,
2915
- "aria-id": "sidenav-submenu-wrapper",
2916
- distance: "4",
2917
- placement: "right-start",
2918
- triggers: ["click", "hover"],
2919
- "instant-move": ""
2920
- }, {
2921
- popper: K(() => [
2922
- (_(!0), C(J, null, Se(u.submenuLinks, (p, h) => (_(), F(S(Ve), {
2923
- key: h,
2924
- "aria-id": "sidenav-sub-submenu-wrapper",
2925
- triggers: ["click", "hover"],
2926
- "instant-move": ""
2927
- }, {
2928
- default: K(() => [
2929
- y("div", {
2930
- class: A([
2931
- {
2932
- "tw-body-sm-regular tw-relative tw-m-0 tw-flex tw-cursor-pointer tw-justify-between tw-px-[8px] tw-py-[6px] tw-align-middle tw-duration-150 tw-ease-in-out": !0,
2933
- "tw-background-color-single-active": n.activeNav.submenu === p.title,
2934
- "hover:tw-background-color-hover": n.activeNav.submenu !== p.title,
2935
- "active:tw-background-color-pressed": !0
2936
- }
3080
+ (m(!0), $(D, null, de(u.menuLinks, (f, p) => (m(), $(D, { key: p }, [
3081
+ f.menuHeading ? (m(), $("h5", Ps, F(f.menuHeading), 1)) : H("", !0),
3082
+ (m(!0), $(D, null, de(f.items, (h, g) => (m(), $(D, { key: g }, [
3083
+ h.submenuLinks && h.submenuLinks.length > 0 ? (m(), W(x(Ae), {
3084
+ key: 0,
3085
+ "aria-id": "sidenav-submenu-wrapper",
3086
+ distance: "4",
3087
+ placement: "right-start",
3088
+ triggers: ["click", "hover"],
3089
+ "instant-move": ""
3090
+ }, {
3091
+ popper: q(() => [
3092
+ (m(!0), $(D, null, de(h.submenuLinks, (b, y) => (m(), $(D, { key: y }, [
3093
+ b.subMenuHeading ? (m(), $("h5", Os, F(b.subMenuHeading), 1)) : H("", !0),
3094
+ (m(!0), $(D, null, de(b.items, (v, _) => (m(), W(x(Ae), {
3095
+ key: _,
3096
+ "aria-id": "sidenav-sub-submenu-wrapper",
3097
+ triggers: ["click", "hover"],
3098
+ "instant-move": ""
3099
+ }, {
3100
+ default: q(() => [
3101
+ w("div", {
3102
+ class: k([
3103
+ {
3104
+ "tw-body-sm-regular tw-relative tw-m-0 tw-flex tw-cursor-pointer tw-justify-between tw-px-[8px] tw-py-[6px] tw-align-middle tw-duration-150 tw-ease-in-out": !0,
3105
+ "tw-background-color-single-active": n.activeNav.submenu === v.title,
3106
+ "hover:tw-background-color-hover": n.activeNav.submenu !== v.title,
3107
+ "active:tw-background-color-pressed": !0
3108
+ }
3109
+ ]),
3110
+ onClick: (A) => x(i)(A, v)
3111
+ }, [
3112
+ Ke(w("div", zs, null, 512), [
3113
+ [an, n.activeNav.submenu === v.title]
3114
+ ]),
3115
+ w("span", null, F(v.title), 1)
3116
+ ], 10, Ns)
2937
3117
  ]),
2938
- onClick: (w) => S(s)(w, p.redirect)
2939
- }, [
2940
- Je(y("div", gs, null, 512), [
2941
- [ln, n.activeNav.submenu === p.title]
2942
- ]),
2943
- y("span", null, ue(p.title), 1)
2944
- ], 10, ms)
2945
- ]),
2946
- _: 2
2947
- }, 1024))), 128))
2948
- ]),
2949
- default: K(() => [
2950
- y("div", {
2951
- class: A([
2952
- {
2953
- "tw-body-sm-regular tw-relative tw-m-0 tw-flex tw-cursor-pointer tw-justify-between tw-px-[8px] tw-py-[6px] tw-align-middle tw-duration-150 tw-ease-in-out": !0,
2954
- "tw-background-color-single-active": n.activeNav.menu === u.title,
2955
- "hover:tw-background-color-hover": n.activeNav.menu !== u.title,
2956
- "active:tw-background-color-pressed": !0
2957
- }
2958
- ])
2959
- }, [
2960
- n.activeNav.menu === u.title ? (_(), C("div", ws)) : G("", !0),
2961
- y("span", null, ue(u.title), 1),
2962
- ke(S(rs), {
2963
- class: A([
2964
- "tw-h-[16px] tw-w-[16px] tw-transform tw-font-normal tw-transition-transform tw-duration-300",
2965
- n.activeNav.menu === u.title ? "-tw-rotate-90" : "hover:-tw-rotate-90"
3118
+ _: 2
3119
+ }, 1024))), 128))
3120
+ ], 64))), 128))
3121
+ ]),
3122
+ default: q(() => [
3123
+ w("div", {
3124
+ class: k([
3125
+ {
3126
+ "tw-body-sm-regular tw-relative tw-m-0 tw-flex tw-cursor-pointer tw-justify-between tw-px-[8px] tw-py-[6px] tw-align-middle tw-duration-150 tw-ease-in-out": !0,
3127
+ "tw-background-color-single-active": n.activeNav.menu === h.title,
3128
+ "hover:tw-background-color-hover": n.activeNav.menu !== h.title,
3129
+ "active:tw-background-color-pressed": !0
3130
+ }
2966
3131
  ])
2967
- }, null, 8, ["class"])
2968
- ], 2)
2969
- ]),
2970
- _: 2
2971
- }, 1024)) : (_(), C("div", {
2972
- key: 1,
2973
- class: A([
2974
- "tw-body-sm-regular tw-m-0 tw-flex tw-cursor-pointer tw-justify-between tw-px-[8px] tw-py-[6px] tw-align-middle tw-duration-300 tw-ease-in-out",
2975
- "hover:tw-background-color-hover",
2976
- "active:tw-background-color-pressed",
2977
- "last:tw-rounded-b-[12px]"
2978
- ]),
2979
- onClick: (p) => S(s)(p, u.redirect)
2980
- }, [
2981
- y("span", null, ue(u.title), 1)
2982
- ], 8, ys))
3132
+ }, [
3133
+ n.activeNav.menu === h.title ? (m(), $("div", As)) : H("", !0),
3134
+ w("span", null, F(h.title), 1),
3135
+ me(x(cs), {
3136
+ class: k([
3137
+ "tw-h-[16px] tw-w-[16px] tw-transform tw-font-normal tw-transition-transform tw-duration-300",
3138
+ n.activeNav.menu === h.title ? "-tw-rotate-90" : "hover:-tw-rotate-90"
3139
+ ])
3140
+ }, null, 8, ["class"])
3141
+ ], 2)
3142
+ ]),
3143
+ _: 2
3144
+ }, 1024)) : (m(), $("div", {
3145
+ key: 1,
3146
+ class: k([
3147
+ "tw-body-sm-regular tw-m-0 tw-flex tw-cursor-pointer tw-justify-between tw-px-[8px] tw-py-[6px] tw-align-middle tw-duration-300 tw-ease-in-out",
3148
+ "hover:tw-background-color-hover",
3149
+ "active:tw-background-color-pressed",
3150
+ "last:tw-rounded-b-[12px]"
3151
+ ]),
3152
+ onClick: (b) => x(i)(b, h)
3153
+ }, [
3154
+ w("span", null, F(h.title), 1)
3155
+ ], 8, Bs))
3156
+ ], 64))), 128))
2983
3157
  ], 64))), 128))
2984
3158
  ]),
2985
- default: K(() => [
2986
- y("div", {
2987
- class: A([
3159
+ default: q(() => [
3160
+ w("div", {
3161
+ class: k([
2988
3162
  {
2989
- "justify-center tw-flex tw-cursor-pointer tw-items-center tw-rounded-[8px] tw-p-[8px] tw-transition tw-duration-150 tw-ease-in-out": !0,
2990
- "tw-background-color-single-active tw-border-color-brand-base tw-border-[1.5px] tw-border-solid active:tw-scale-90": n.activeNav.parentNav === l.title,
2991
- "hover:tw-background-color-hover": n.activeNav.parentNav != l.title,
3163
+ "tw-flex tw-cursor-pointer tw-items-center tw-justify-center tw-rounded-border-radius-md tw-p-[8px] tw-transition tw-duration-150 tw-ease-in-out": !0,
3164
+ "tw-background-color-single-active tw-border-color-brand-base tw-border-[1.5px] tw-border-solid active:tw-scale-90": n.activeNav.parentNav === u.title,
3165
+ "hover:tw-background-color-hover": n.activeNav.parentNav != u.title,
2992
3166
  "active:tw-background-color-single-active active:tw-scale-90": !0
2993
3167
  }
2994
3168
  ])
2995
3169
  }, [
2996
- l.icon ? (_(), F(at(l.icon), {
3170
+ u.icon ? (m(), W(je(u.icon), {
2997
3171
  key: 0,
2998
3172
  class: "tw-h-[1.25em] tw-w-[1.25em]"
2999
- })) : (_(), F(S(Ct), { key: 1 }))
3173
+ })) : (m(), W(x(Ct), { key: 1 }))
3000
3174
  ], 2)
3001
3175
  ]),
3002
3176
  _: 2
3003
- }, 1024)) : (_(), F(S(Xo), {
3177
+ }, 1024)) : (m(), W(x(es), {
3004
3178
  key: 1,
3005
3179
  "aria-id": "default-tooltip",
3006
3180
  placement: "right",
3007
3181
  distance: "18",
3008
- triggers: ["click"]
3182
+ triggers: ["hover"]
3009
3183
  }, {
3010
- popper: K(() => [
3011
- y("span", vs, ue(l.title), 1)
3184
+ popper: q(() => [
3185
+ w("span", Rs, F(u.title), 1)
3012
3186
  ]),
3013
- default: K(() => [
3014
- y("div", {
3015
- class: A([
3016
- "justify-center tw-flex tw-cursor-pointer tw-items-center tw-rounded-[8px] tw-p-[8px] tw-transition tw-duration-150 tw-ease-in-out",
3187
+ default: q(() => [
3188
+ w("div", {
3189
+ class: k([
3190
+ "justify-center tw-flex tw-cursor-pointer tw-items-center tw-rounded-border-radius-md tw-p-[8px] tw-transition tw-duration-150 tw-ease-in-out",
3017
3191
  "hover:tw-background-color-hover",
3018
3192
  "active:tw-background-color-single-active active:tw-scale-90"
3019
3193
  ]),
3020
- onClick: (u) => S(s)(u, l.redirect)
3194
+ onClick: (f) => x(i)(f, u)
3021
3195
  }, [
3022
- l.icon ? (_(), F(at(l.icon), {
3196
+ u.icon ? (m(), W(je(u.icon), {
3023
3197
  key: 0,
3024
3198
  class: "tw-h-[1.25em] tw-w-[1.25em]"
3025
- })) : (_(), F(S(Ct), { key: 1 }))
3026
- ], 8, bs)
3199
+ })) : (m(), W(x(Ct), { key: 1 }))
3200
+ ], 8, Es)
3027
3201
  ]),
3028
3202
  _: 2
3029
3203
  }, 1024))
3030
3204
  ], 64))), 128)),
3031
- i.navLinks.length > 0 && d < i.navLinks.length - 1 ? (_(), C("div", _s)) : G("", !0)
3205
+ r.navLinks.length > 0 && d < r.navLinks.length - 1 ? (m(), $("div", Ms)) : H("", !0)
3032
3206
  ], 64))), 128))
3033
3207
  ])
3034
3208
  ]),
3035
- y("div", xs, [
3036
- D(i.$slots, "avatar-image")
3209
+ w("div", Ds, [
3210
+ R(r.$slots, "avatar-image")
3037
3211
  ])
3038
3212
  ])
3039
3213
  ]));
3040
3214
  }
3041
- }), Ss = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3215
+ }), Ls = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3042
3216
  __proto__: null,
3043
- default: $s
3044
- }, Symbol.toStringTag, { value: "Module" })), Ts = ["default", "hover", "pressed", "disabled"], Cs = {
3217
+ default: Hs
3218
+ }, Symbol.toStringTag, { value: "Module" })), Vs = ["default", "hover", "pressed", "disabled"], js = {
3045
3219
  /**
3046
3220
  * @description Switch UI state when hovered, pressed, disabled
3047
3221
  */
3048
3222
  state: {
3049
3223
  type: String,
3050
- validator: (e) => Ts.includes(e),
3224
+ validator: (e) => Vs.includes(e),
3051
3225
  default: "default"
3052
3226
  },
3053
3227
  /**
@@ -3065,17 +3239,17 @@ const rs = Re({ name: "ph-caret-right", render: is }), as = {
3065
3239
  required: !0,
3066
3240
  default: !1
3067
3241
  }
3068
- }, ks = ["update:modelValue"], Ps = (e) => {
3069
- const t = ee(null), n = ee(null), o = tt(t), { pressed: s } = Ot({ target: n }), { disabled: i, state: r, modelValue: a } = e, d = P(() => ({
3242
+ }, Fs = ["update:modelValue"], Ws = (e) => {
3243
+ const t = K(null), n = K(null), o = ot(t), { pressed: s } = Ot({ target: n }), { disabled: i, state: r, modelValue: a } = e, l = P(() => ({
3070
3244
  ...i && { ariaDisabled: !0 },
3071
3245
  disabled: i,
3072
3246
  autofocus: r === "hover",
3073
3247
  modelValue: a
3074
- })), l = P(() => e.disabled ? p() : s.value ? f() : o.value ? u() : c());
3075
- function c() {
3248
+ })), d = P(() => e.disabled ? p() : s.value ? f() : o.value ? c() : u());
3249
+ function u() {
3076
3250
  return e.modelValue ? "tw-background-color-success-base" : "tw-switch-background-default";
3077
3251
  }
3078
- function u() {
3252
+ function c() {
3079
3253
  return e.modelValue ? "tw-background-color-success-hover" : "tw-switch-background-hover";
3080
3254
  }
3081
3255
  function f() {
@@ -3090,96 +3264,102 @@ const rs = Re({ name: "ph-caret-right", render: is }), as = {
3090
3264
  "tw-opacity-60"
3091
3265
  );
3092
3266
  }
3093
- const h = P(() => e.disabled ? "tw-text-color-disabled" : "tw-text-color-strong"), w = P(() => O(
3267
+ const h = P(() => e.disabled ? "tw-text-color-disabled" : "tw-text-color-strong"), g = P(() => O(
3094
3268
  "tw-transition-colors",
3095
3269
  "before:tw-transition-all",
3096
3270
  "before:tw-duration-150",
3097
3271
  "after:tw-transition-all",
3098
3272
  "after:tw-duration-150"
3099
- )), g = P(() => O(
3100
- l.value,
3101
- w.value
3102
- )), m = P(() => O({
3273
+ )), b = P(() => O(
3274
+ d.value,
3275
+ g.value
3276
+ )), y = P(() => O({
3103
3277
  "tw-cursor-not-allowed": e.disabled,
3104
3278
  "tw-cursor-pointer": !e.disabled
3105
3279
  }));
3106
3280
  return {
3107
3281
  switchWrapperRef: t,
3108
3282
  switchRef: n,
3109
- switchProps: d,
3110
- switchMarkClass: g,
3283
+ switchProps: l,
3284
+ switchMarkClass: b,
3111
3285
  switchTextClass: h,
3112
- switchInputClass: m
3286
+ switchInputClass: y
3113
3287
  };
3114
- }, As = { class: "switch_text switch_left-text" }, Os = ["disabled"], Ns = { class: "switch_text switch_right-text" }, zs = /* @__PURE__ */ Z({
3288
+ }, Is = { class: "switch_text switch_left-text" }, qs = ["disabled"], Gs = { class: "switch_text switch_right-text" }, Us = /* @__PURE__ */ Y({
3115
3289
  __name: "switch",
3116
- props: Cs,
3117
- emits: ks,
3290
+ props: js,
3291
+ emits: Fs,
3118
3292
  setup(e, { emit: t }) {
3119
3293
  const n = e, s = Nt(n, "modelValue", t), {
3120
3294
  switchWrapperRef: i,
3121
3295
  switchRef: r,
3122
3296
  switchProps: a,
3123
- switchMarkClass: d,
3124
- switchTextClass: l,
3125
- switchInputClass: c
3126
- } = Ps(n);
3127
- return (u, f) => (_(), C("div", Qe(S(a), {
3128
- class: ["switch", S(l)]
3297
+ switchMarkClass: l,
3298
+ switchTextClass: d,
3299
+ switchInputClass: u
3300
+ } = Ws(n);
3301
+ return (c, f) => (m(), $("div", Je(x(a), {
3302
+ class: ["switch", x(d)]
3129
3303
  }), [
3130
- y("label", As, [
3131
- D(u.$slots, "leftText", {}, () => [
3132
- D(u.$slots, "default", {}, void 0, !0)
3304
+ w("label", Is, [
3305
+ R(c.$slots, "leftText", {}, () => [
3306
+ R(c.$slots, "default", {}, void 0, !0)
3133
3307
  ], !0)
3134
3308
  ]),
3135
- y("div", {
3309
+ w("div", {
3136
3310
  ref_key: "switchWrapperRef",
3137
3311
  ref: i,
3138
3312
  class: "switch_wrapper"
3139
3313
  }, [
3140
- Je(y("input", {
3314
+ Ke(w("input", {
3141
3315
  ref_key: "switchRef",
3142
3316
  ref: r,
3143
- "onUpdate:modelValue": f[0] || (f[0] = (p) => Pt(s) ? s.value = p : null),
3317
+ "onUpdate:modelValue": f[0] || (f[0] = (p) => et(s) ? s.value = p : null),
3144
3318
  type: "checkbox",
3145
3319
  name: "checkbox",
3146
- class: A(["switch_input", S(c)]),
3320
+ class: k(["switch_input", x(u)]),
3147
3321
  disabled: n.disabled
3148
- }, null, 10, Os), [
3149
- [dn, S(s)]
3322
+ }, null, 10, qs), [
3323
+ [ln, x(s)]
3150
3324
  ]),
3151
- y("span", {
3152
- class: A(["switch_mark", S(d)])
3325
+ w("span", {
3326
+ class: k(["switch_mark", x(l)])
3153
3327
  }, null, 2)
3154
3328
  ], 512),
3155
- y("label", Ns, [
3156
- D(u.$slots, "rightText", {}, void 0, !0)
3329
+ w("label", Gs, [
3330
+ R(c.$slots, "rightText", {}, void 0, !0)
3157
3331
  ])
3158
3332
  ], 16));
3159
3333
  }
3160
- }), Bs = /* @__PURE__ */ zt(zs, [["__scopeId", "data-v-ea8a1df2"]]), Rs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3334
+ }), Ys = (e, t) => {
3335
+ const n = e.__vccOpts || e;
3336
+ for (const [o, s] of t)
3337
+ n[o] = s;
3338
+ return n;
3339
+ }, Xs = /* @__PURE__ */ Ys(Us, [["__scopeId", "data-v-ea8a1df2"]]), Zs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3161
3340
  __proto__: null,
3162
- default: Bs
3341
+ default: Xs
3163
3342
  }, Symbol.toStringTag, { value: "Module" }));
3164
- let Xt = "";
3165
- const Es = (e) => {
3166
- Xt = e || "spr-";
3167
- }, Ds = () => Xt, Ms = (e) => `${Ds()}${e}`, Hs = /* @__PURE__ */ Object.assign({
3168
- "../src/components/badge/badge.vue": bn,
3169
- "../src/components/button/button.vue": Hn,
3170
- "../src/components/lozenge/lozenge.vue": Un,
3171
- "../src/components/radio/radio.vue": to,
3172
- "../src/components/sidenav/sidenav.vue": Ss,
3173
- "../src/components/switch/switch.vue": Rs
3174
- }), Ls = (e, t = {}) => {
3175
- Es(t.prefix || "spr-"), Object.entries(Hs).forEach(([n, o]) => {
3343
+ let Yt = "";
3344
+ const Qs = (e) => {
3345
+ Yt = e || "spr-";
3346
+ }, Js = () => Yt, Ks = (e) => `${Js()}${e}`, ei = /* @__PURE__ */ Object.assign({
3347
+ "../src/components/badge/badge.vue": yn,
3348
+ "../src/components/button/button.vue": Dn,
3349
+ "../src/components/input/input.vue": In,
3350
+ "../src/components/lozenge/lozenge.vue": Jn,
3351
+ "../src/components/radio/radio.vue": ro,
3352
+ "../src/components/sidenav/sidenav.vue": Ls,
3353
+ "../src/components/switch/switch.vue": Zs
3354
+ }), ti = (e, t = {}) => {
3355
+ Qs(t.prefix || "spr-"), Object.entries(ei).forEach(([n, o]) => {
3176
3356
  var r;
3177
- const s = (r = n.split("/").pop()) == null ? void 0 : r.replace(".vue", ""), i = Ms(s);
3357
+ const s = (r = n.split("/").pop()) == null ? void 0 : r.replace(".vue", ""), i = Ks(s);
3178
3358
  e.component(i, o.default);
3179
3359
  }), console.log("%c🚀⭐ Design System Next Installed ⭐🚀", "color: green; font-weight: bold; font-size: 14px;");
3180
- }, Fs = { install: Ls };
3360
+ }, oi = { install: ti };
3181
3361
  export {
3182
- Fs as default,
3183
- Ds as getPrefix,
3184
- Es as setPrefix
3362
+ oi as default,
3363
+ Js as getPrefix,
3364
+ Qs as setPrefix
3185
3365
  };