@origen-ui/tabs 1.1.0 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1,15 +1,33 @@
1
1
  import { n as e, t } from "./config-CxS92Qea.js";
2
2
  import { OG_TABS_LOCALE_EN_US as n, OG_TABS_LOCALE_ZH_CN as r, OG_TABS_LOCALE_ZH_TW as i } from "./locale.mjs";
3
- import { Fragment as a, Teleport as o, computed as s, createBlock as c, createCommentVNode as l, createElementBlock as u, createElementVNode as d, createTextVNode as f, createVNode as p, defineComponent as m, guardReactiveProps as h, mergeProps as g, nextTick as _, normalizeClass as ee, normalizeProps as v, normalizeStyle as y, onBeforeUnmount as b, onMounted as x, openBlock as S, ref as C, renderList as w, renderSlot as T, resolveDynamicComponent as te, shallowRef as E, toDisplayString as ne, unref as D, useId as re, useSlots as ie, useTemplateRef as ae, vModelText as oe, watch as se, withCtx as O, withDirectives as ce, withModifiers as le } from "vue";
4
- import { Bottom as ue, CircleCheckFilled as de, CircleCloseFilled as fe, Close as pe, CollectionTag as me, MoreFilled as he, Refresh as ge, Search as _e, Top as ve, WarningFilled as ye } from "@element-plus/icons-vue";
5
- import { mergeLocale as be } from "@origen-ui/shared";
6
- import { ElEmpty as xe, ElIcon as Se, ElPopover as k, ElTabPane as Ce, ElTabs as we } from "element-plus";
3
+ import { Fragment as a, Teleport as o, computed as s, createBlock as c, createCommentVNode as l, createElementBlock as u, createElementVNode as d, createTextVNode as f, createVNode as p, defineComponent as m, guardReactiveProps as h, mergeProps as g, nextTick as _, normalizeClass as ee, normalizeProps as v, normalizeStyle as y, onBeforeUnmount as b, onMounted as te, openBlock as x, ref as S, renderList as C, renderSlot as w, resolveDynamicComponent as ne, shallowRef as T, toDisplayString as re, unref as E, useId as ie, useSlots as ae, useTemplateRef as oe, vModelText as se, watch as ce, withCtx as D, withDirectives as le, withModifiers as ue } from "vue";
4
+ import { Bottom as de, CircleCheckFilled as fe, CircleCloseFilled as pe, Close as me, CollectionTag as he, MoreFilled as ge, Refresh as _e, Search as ve, Top as ye, WarningFilled as be } from "@element-plus/icons-vue";
5
+ import { mergeLocale as xe } from "@origen-ui/shared";
6
+ import { ElEmpty as Se, ElIcon as Ce, ElPopover as O, ElTabPane as we, ElTabs as Te } from "element-plus";
7
+ //#region src/actionPresentation.ts
8
+ function Ee(e) {
9
+ return [
10
+ {
11
+ operation: "refresh",
12
+ label: e.labels.refresh
13
+ },
14
+ {
15
+ operation: e.pinned ? "unpin" : "pin",
16
+ label: e.labels.pin
17
+ },
18
+ {
19
+ operation: "move-top",
20
+ label: e.labels.moveTop
21
+ }
22
+ ].filter((t) => !(e.hidden.has(t.operation) || t.operation === "refresh" && e.features.refresh === !1 || (t.operation === "pin" || t.operation === "unpin") && e.features.pin !== !0 || t.operation === "move-top" && e.features.drag !== !0));
23
+ }
24
+ //#endregion
7
25
  //#region src/OgTabsContextMenu.vue?vue&type=script&setup=true&lang.ts
8
- var Te = {
26
+ var De = {
9
27
  key: 0,
10
28
  class: "og-tabs-context-menu__divider",
11
29
  role: "separator"
12
- }, Ee = ["disabled", "onClick"], De = /*@__PURE__*/ m({
30
+ }, Oe = ["disabled", "onClick"], ke = /*@__PURE__*/ m({
13
31
  __name: "OgTabsContextMenu",
14
32
  props: {
15
33
  visible: { type: Boolean },
@@ -23,7 +41,7 @@ var Te = {
23
41
  "reposition"
24
42
  ],
25
43
  setup(e, { emit: t }) {
26
- let n = e, r = t, i = ae("menu");
44
+ let n = e, r = t, i = oe("menu");
27
45
  function s() {
28
46
  r("close");
29
47
  }
@@ -52,9 +70,9 @@ var Te = {
52
70
  "End"
53
71
  ].includes(e.key) || (e.preventDefault(), t[e.key === "Home" ? 0 : e.key === "End" ? t.length - 1 : (n + (e.key === "ArrowDown" ? 1 : -1) + t.length) % t.length]?.focus());
54
72
  }
55
- return se(() => n.visible, (e) => {
73
+ return ce(() => n.visible, (e) => {
56
74
  e && _(p);
57
- }), x(() => window.addEventListener("pointerdown", m)), b(() => window.removeEventListener("pointerdown", m)), (t, n) => (S(), c(o, { to: "body" }, [e.visible ? (S(), u("div", {
75
+ }), te(() => window.addEventListener("pointerdown", m)), b(() => window.removeEventListener("pointerdown", m)), (t, n) => (x(), c(o, { to: "body" }, [e.visible ? (x(), u("div", {
58
76
  key: 0,
59
77
  ref_key: "menu",
60
78
  ref: i,
@@ -64,74 +82,74 @@ var Te = {
64
82
  top: `${e.y}px`
65
83
  }),
66
84
  role: "menu",
67
- onContextmenu: n[0] ||= le(() => {}, ["prevent"]),
85
+ onContextmenu: n[0] ||= ue(() => {}, ["prevent"]),
68
86
  onKeydown: h
69
87
  }, [
70
- T(t.$slots, "top", {}, void 0, !0),
71
- (S(!0), u(a, null, w(e.items, (e) => (S(), u(a, { key: e.operation }, [e.dividerBefore ? (S(), u("div", Te)) : l("", !0), d("button", {
88
+ w(t.$slots, "top", {}, void 0, !0),
89
+ (x(!0), u(a, null, C(e.items, (e) => (x(), u(a, { key: e.operation }, [e.dividerBefore ? (x(), u("div", De)) : l("", !0), d("button", {
72
90
  type: "button",
73
91
  role: "menuitem",
74
92
  disabled: e.disabled,
75
- onClick: le((n) => t.$emit("select", e.operation), ["stop"])
76
- }, [e.icon ? (S(), c(D(Se), {
93
+ onClick: ue((n) => t.$emit("select", e.operation), ["stop"])
94
+ }, [e.icon ? (x(), c(E(Ce), {
77
95
  key: 0,
78
96
  "aria-hidden": "true"
79
97
  }, {
80
- default: O(() => [(S(), c(te(e.icon)))]),
98
+ default: D(() => [(x(), c(ne(e.icon)))]),
81
99
  _: 2
82
- }, 1024)) : l("", !0), d("span", null, ne(e.label), 1)], 8, Ee)], 64))), 128)),
83
- T(t.$slots, "bottom", {}, void 0, !0)
100
+ }, 1024)) : l("", !0), d("span", null, re(e.label), 1)], 8, Oe)], 64))), 128)),
101
+ w(t.$slots, "bottom", {}, void 0, !0)
84
102
  ], 36)) : l("", !0)]));
85
103
  }
86
- }), Oe = (e, t) => {
104
+ }), Ae = (e, t) => {
87
105
  let n = e.__vccOpts || e;
88
106
  for (let [e, r] of t) n[e] = r;
89
107
  return n;
90
- }, ke = /*#__PURE__*/ Oe(De, [["__scopeId", "data-v-49db788b"]]);
108
+ }, je = /*#__PURE__*/ Ae(ke, [["__scopeId", "data-v-49db788b"]]);
91
109
  //#endregion
92
110
  //#region src/tabState.ts
93
- function A(e, t) {
111
+ function k(e, t) {
94
112
  return e.find((e) => e.key === t);
95
113
  }
96
- function Ae(e) {
114
+ function Me(e) {
97
115
  return [...e.filter((e) => e.pinned), ...e.filter((e) => !e.pinned)];
98
116
  }
99
- function je(e, t) {
117
+ function Ne(e, t) {
100
118
  let n = t?.trim().toLocaleLowerCase();
101
- return Ae(n ? e.filter((e) => e.label.toLocaleLowerCase().includes(n)) : e);
119
+ return Me(n ? e.filter((e) => e.label.toLocaleLowerCase().includes(n)) : e);
102
120
  }
103
- function Me(e) {
121
+ function Pe(e) {
104
122
  return !!(e && !e.disabled && !e.readonly && !e.pinned && e.closable !== !1);
105
123
  }
106
- function Ne(e) {
124
+ function Fe(e) {
107
125
  return !!(e && !e.disabled && !e.readonly && e.pinnable !== !1);
108
126
  }
109
- function Pe(e) {
127
+ function Ie(e) {
110
128
  return !!(e && !e.disabled && !e.readonly && !e.pinned && e.draggable !== !1);
111
129
  }
112
- function Fe(e, t, n) {
113
- let r = A(e, t);
130
+ function Le(e, t, n) {
131
+ let r = k(e, t);
114
132
  if (!r || r.pinned === n) return [...e];
115
- let i = Ae(e.filter((e) => e.key !== t)), a = {
133
+ let i = Me(e.filter((e) => e.key !== t)), a = {
116
134
  ...r,
117
135
  pinned: n
118
136
  }, o = n ? i.filter((e) => e.pinned).length : i.findIndex((e) => !e.pinned);
119
137
  return i.splice(o < 0 ? i.length : o, 0, a), i;
120
138
  }
121
- function Ie(e, t) {
139
+ function Re(e, t) {
122
140
  return e.filter((e) => !t.has(e.key));
123
141
  }
124
- function Le(e, t, n) {
125
- if (n === "all") return e.filter(Me);
142
+ function ze(e, t, n) {
143
+ if (n === "all") return e.filter(Pe);
126
144
  let r = e.findIndex((e) => e.key === t);
127
145
  if (r < 0) return [];
128
146
  if (n === "current") {
129
147
  let t = e[r];
130
- return t && Me(t) ? [t] : [];
148
+ return t && Pe(t) ? [t] : [];
131
149
  }
132
- return n === "others" ? e.filter((e) => e.key !== t && Me(e)) : (n === "left" ? e.slice(0, r) : e.slice(r + 1)).filter(Me);
150
+ return n === "others" ? e.filter((e) => e.key !== t && Pe(e)) : (n === "left" ? e.slice(0, r) : e.slice(r + 1)).filter(Pe);
133
151
  }
134
- function Re(e, t, n) {
152
+ function Be(e, t, n) {
135
153
  let r = e.findIndex((e) => e.key === n), i = (e) => e !== void 0 && t.some((t) => t.key === e && !t.disabled);
136
154
  for (let t = r + 1; t < e.length; t += 1) {
137
155
  let n = e[t];
@@ -144,38 +162,38 @@ function Re(e, t, n) {
144
162
  let a = t.find((e) => !e.disabled);
145
163
  if (a) return a.key;
146
164
  }
147
- function ze(e, t, n) {
148
- let r = Ae(e), i = A(r, t), a = A(r, n);
149
- if (!i || !a || i.key === a.key || !Pe(i) || !Pe(a)) return [...e];
165
+ function A(e, t, n) {
166
+ let r = Me(e), i = k(r, t), a = k(r, n);
167
+ if (!i || !a || i.key === a.key || !Ie(i) || !Ie(a)) return [...e];
150
168
  let o = r.filter((e) => e.key !== t);
151
169
  return o.splice(o.findIndex((e) => e.key === n), 0, i), o;
152
170
  }
153
171
  function j(e, t, n) {
154
- let r = Ae(e), i = A(r, t);
155
- if (!i || !Pe(i)) return [...e];
172
+ let r = Me(e), i = k(r, t);
173
+ if (!i || !Ie(i)) return [...e];
156
174
  let a = r.filter((e) => e.key !== t), o = a.findIndex((e) => !e.pinned), s = n === "top" ? o : a.length;
157
175
  return a.splice(s < 0 ? a.length : s, 0, i), a;
158
176
  }
159
- function Be(e) {
177
+ function Ve(e) {
160
178
  return e === "current" ? "close" : `close-${e}`;
161
179
  }
162
- function Ve(e) {
180
+ function He(e) {
163
181
  let t = /* @__PURE__ */ new Set();
164
182
  return e.some((e) => t.has(e.key) ? !0 : (t.add(e.key), !1));
165
183
  }
166
184
  //#endregion
167
185
  //#region src/OgTabsFinder.vue?vue&type=script&setup=true&lang.ts
168
- var He = ["aria-label"], Ue = { class: "og-tabs-finder__content" }, We = [
186
+ var Ue = ["aria-label"], We = { class: "og-tabs-finder__content" }, Ge = [
169
187
  "aria-expanded",
170
188
  "aria-controls",
171
189
  "aria-activedescendant",
172
190
  "placeholder"
173
- ], Ge = ["id", "aria-label"], Ke = [
191
+ ], Ke = ["id", "aria-label"], qe = [
174
192
  "id",
175
193
  "aria-selected",
176
194
  "disabled",
177
195
  "onClick"
178
- ], qe = { class: "og-tabs-finder__label" }, Je = { class: "og-tabs-finder__title" }, Ye = ["aria-label"], Xe = /*#__PURE__*/ Oe(/* @__PURE__ */ m({
196
+ ], Je = { class: "og-tabs-finder__label" }, Ye = { class: "og-tabs-finder__title" }, Xe = ["aria-label"], Ze = /*#__PURE__*/ Ae(/* @__PURE__ */ m({
179
197
  __name: "OgTabsFinder",
180
198
  props: {
181
199
  tabs: {},
@@ -184,21 +202,21 @@ var He = ["aria-label"], Ue = { class: "og-tabs-finder__content" }, We = [
184
202
  },
185
203
  emits: ["activate"],
186
204
  setup(e, { emit: t }) {
187
- let n = e, r = t, i = E(!1), o = E(""), f = E(-1), m = re(), h = re(), g = ae("input"), v = s(() => je(n.tabs, o.value)), y = s(() => v.value.filter((e) => !e.disabled)), b = s(() => y.value[f.value]), x = s(() => v.value.length > 0);
188
- function C(e) {
205
+ let n = e, r = t, i = T(!1), o = T(""), f = T(-1), m = ie(), h = ie(), g = oe("input"), v = s(() => Ne(n.tabs, o.value)), y = s(() => v.value.filter((e) => !e.disabled)), b = s(() => y.value[f.value]), te = s(() => v.value.length > 0);
206
+ function S(e) {
189
207
  return `og-tabs-finder-option-${h}-${typeof e.key}-${String(e.key)}`;
190
208
  }
191
- function T(e) {
209
+ function w(e) {
192
210
  let t = y.value.length;
193
211
  t && (f.value = (f.value + e + t) % t);
194
212
  }
195
- function te(e) {
213
+ function ne(e) {
196
214
  switch (e.key) {
197
215
  case "ArrowDown":
198
- e.preventDefault(), T(1);
216
+ e.preventDefault(), w(1);
199
217
  break;
200
218
  case "ArrowUp":
201
- e.preventDefault(), T(-1);
219
+ e.preventDefault(), w(-1);
202
220
  break;
203
221
  case "Home":
204
222
  e.preventDefault(), f.value = 0;
@@ -206,39 +224,35 @@ var He = ["aria-label"], Ue = { class: "og-tabs-finder__content" }, We = [
206
224
  case "End":
207
225
  e.preventDefault(), f.value = y.value.length - 1;
208
226
  break;
209
- case "Enter": b.value && (e.preventDefault(), ie(b.value.key));
227
+ case "Enter": b.value && (e.preventDefault(), ae(b.value.key));
210
228
  }
211
229
  }
212
- function ie(e) {
230
+ function ae(e) {
213
231
  i.value = !1, r("activate", e);
214
232
  }
215
- function le() {
233
+ function ue() {
216
234
  g.value?.focus();
217
235
  }
218
- return se(i, (e) => {
219
- e && (o.value = "", f.value = -1, _(() => {
220
- le(), window.setTimeout(le, 260);
221
- }));
222
- }, { flush: "sync" }), se(v, () => {
223
- f.value >= y.value.length && (f.value = y.value.length - 1);
224
- }, { flush: "sync" }), (t, n) => (S(), c(D(k), {
236
+ return ce([i, y], ([e, t], [n]) => {
237
+ e && !n && (o.value = "", f.value = -1, _(ue)), f.value >= t.length && (f.value = t.length - 1);
238
+ }, { flush: "sync" }), (t, n) => (x(), c(E(O), {
225
239
  visible: i.value,
226
240
  "onUpdate:visible": n[1] ||= (e) => i.value = e,
227
241
  trigger: "click",
228
242
  placement: "bottom-end",
229
243
  width: 320,
230
244
  "popper-class": "og-tabs-finder",
231
- onAfterEnter: le
245
+ onAfterEnter: ue
232
246
  }, {
233
- reference: O(() => [d("button", {
247
+ reference: D(() => [d("button", {
234
248
  type: "button",
235
249
  class: "og-tabs__action",
236
250
  "aria-label": e.locale.findTabs
237
- }, [p(D(Se), { "aria-hidden": "true" }, {
238
- default: O(() => [p(D(_e))]),
251
+ }, [p(E(Ce), { "aria-hidden": "true" }, {
252
+ default: D(() => [p(E(ve))]),
239
253
  _: 1
240
- })], 8, He)]),
241
- default: O(() => [d("div", Ue, [ce(d("input", {
254
+ })], 8, Ue)]),
255
+ default: D(() => [d("div", We, [le(d("input", {
242
256
  ref_key: "input",
243
257
  ref: g,
244
258
  "onUpdate:modelValue": n[0] ||= (e) => o.value = e,
@@ -247,30 +261,30 @@ var He = ["aria-label"], Ue = { class: "og-tabs-finder__content" }, We = [
247
261
  "aria-autocomplete": "list",
248
262
  "aria-haspopup": "listbox",
249
263
  "aria-expanded": i.value,
250
- "aria-controls": x.value ? D(m) : void 0,
251
- "aria-activedescendant": b.value ? C(b.value) : void 0,
264
+ "aria-controls": te.value ? E(m) : void 0,
265
+ "aria-activedescendant": b.value ? S(b.value) : void 0,
252
266
  placeholder: e.locale.findTabsPlaceholder,
253
- onKeydown: te
254
- }, null, 40, We), [[oe, o.value]]), x.value ? (S(), u("div", {
267
+ onKeydown: ne
268
+ }, null, 40, Ge), [[se, o.value]]), te.value ? (x(), u("div", {
255
269
  key: 0,
256
- id: D(m),
270
+ id: E(m),
257
271
  class: "og-tabs-finder__list",
258
272
  role: "listbox",
259
273
  "aria-label": e.locale.findTabs
260
- }, [(S(!0), u(a, null, w(v.value, (t) => (S(), u("button", {
261
- id: C(t),
274
+ }, [(x(!0), u(a, null, C(v.value, (t) => (x(), u("button", {
275
+ id: S(t),
262
276
  key: `${typeof t.key}:${String(t.key)}`,
263
277
  type: "button",
264
278
  role: "option",
265
279
  "aria-selected": t.key === e.activeKey,
266
280
  class: ee({ "is-active": t.key === b.value?.key }),
267
281
  disabled: t.disabled,
268
- onClick: (e) => ie(t.key)
269
- }, [d("span", qe, [d("span", Je, ne(t.label), 1), t.dirty ? (S(), u("span", {
282
+ onClick: (e) => ae(t.key)
283
+ }, [d("span", Je, [d("span", Ye, re(t.label), 1), t.dirty ? (x(), u("span", {
270
284
  key: 0,
271
285
  class: "og-tabs-finder__dirty",
272
286
  "aria-label": e.locale.unsaved
273
- }, null, 8, Ye)) : l("", !0)])], 10, Ke))), 128))], 8, Ge)) : (S(), c(D(xe), {
287
+ }, null, 8, Xe)) : l("", !0)])], 10, qe))), 128))], 8, Ke)) : (x(), c(E(Se), {
274
288
  key: 1,
275
289
  description: e.locale.noResults,
276
290
  "image-size": 56
@@ -278,7 +292,7 @@ var He = ["aria-label"], Ue = { class: "og-tabs-finder__content" }, We = [
278
292
  _: 1
279
293
  }, 8, ["visible"]));
280
294
  }
281
- }), [["__scopeId", "data-v-884c1955"]]);
295
+ }), [["__scopeId", "data-v-c5c48295"]]);
282
296
  //#endregion
283
297
  //#region src/tabKey.ts
284
298
  function M(e) {
@@ -286,14 +300,14 @@ function M(e) {
286
300
  }
287
301
  //#endregion
288
302
  //#region src/OgTabsLabel.vue?vue&type=script&setup=true&lang.ts
289
- var Ze = [
303
+ var Qe = [
290
304
  "data-tab-key",
291
305
  "data-tab-id",
292
306
  "title"
293
- ], Qe = { class: "og-tabs-label__text" }, $e = ["aria-label"], et = { class: "og-tabs-sr-only" }, tt = ["aria-label"], nt = {
307
+ ], $e = { class: "og-tabs-label__text" }, et = ["aria-label"], tt = { class: "og-tabs-sr-only" }, nt = ["aria-label"], rt = {
294
308
  key: 3,
295
309
  class: "og-tabs-label__badge"
296
- }, rt = /*#__PURE__*/ Oe(/* @__PURE__ */ m({
310
+ }, it = /*#__PURE__*/ Ae(/* @__PURE__ */ m({
297
311
  __name: "OgTabsLabel",
298
312
  props: {
299
313
  tab: {},
@@ -303,63 +317,63 @@ var Ze = [
303
317
  locale: {}
304
318
  },
305
319
  setup(e) {
306
- return (t, n) => (S(), u("span", {
320
+ return (t, n) => (x(), u("span", {
307
321
  class: "og-tabs-label",
308
322
  "data-tab-key": String(e.tab.key),
309
- "data-tab-id": D(M)(e.tab.key),
323
+ "data-tab-id": E(M)(e.tab.key),
310
324
  style: y({
311
325
  minWidth: e.minWidth,
312
326
  maxWidth: e.maxWidth
313
327
  }),
314
328
  title: e.tab.remark ? `${e.tab.label}\n${e.tab.remark}` : e.tab.label
315
329
  }, [
316
- T(t.$slots, "before", { tab: e.tab }, void 0, !0),
317
- e.tab.icon ? (S(), c(D(Se), {
330
+ w(t.$slots, "before", { tab: e.tab }, void 0, !0),
331
+ e.tab.icon ? (x(), c(E(Ce), {
318
332
  key: 0,
319
333
  class: "og-tabs-label__icon",
320
334
  "aria-hidden": "true"
321
335
  }, {
322
- default: O(() => [(S(), c(te(e.tab.icon)))]),
336
+ default: D(() => [(x(), c(ne(e.tab.icon)))]),
323
337
  _: 1
324
338
  })) : l("", !0),
325
- e.tab.pinned ? (S(), c(D(Se), {
339
+ e.tab.pinned ? (x(), c(E(Ce), {
326
340
  key: 1,
327
341
  class: "og-tabs-label__pin",
328
342
  "aria-label": e.locale.pinned
329
343
  }, {
330
- default: O(() => [p(D(me))]),
344
+ default: D(() => [p(E(he))]),
331
345
  _: 1
332
346
  }, 8, ["aria-label"])) : l("", !0),
333
- d("span", Qe, [T(t.$slots, "default", {
347
+ d("span", $e, [w(t.$slots, "default", {
334
348
  tab: e.tab,
335
349
  active: e.active
336
- }, () => [f(ne(e.tab.label), 1)], !0)]),
337
- e.tab.dirty ? (S(), u("span", {
350
+ }, () => [f(re(e.tab.label), 1)], !0)]),
351
+ e.tab.dirty ? (x(), u("span", {
338
352
  key: 2,
339
353
  class: "og-tabs-label__dirty",
340
354
  "aria-label": e.locale.unsaved
341
- }, [d("span", et, ne(e.locale.unsaved), 1)], 8, $e)) : l("", !0),
342
- T(t.$slots, "status", { tab: e.tab }, () => [e.tab.statusIcon || e.tab.status === "success" || e.tab.status === "warning" || e.tab.status === "error" ? (S(), c(D(Se), {
355
+ }, [d("span", tt, re(e.locale.unsaved), 1)], 8, et)) : l("", !0),
356
+ w(t.$slots, "status", { tab: e.tab }, () => [e.tab.statusIcon || e.tab.status === "success" || e.tab.status === "warning" || e.tab.status === "error" ? (x(), c(E(Ce), {
343
357
  key: 0,
344
358
  class: ee(["og-tabs-label__status", [`is-${e.tab.status}`]]),
345
359
  "aria-hidden": "true"
346
360
  }, {
347
- default: O(() => [(S(), c(te(e.tab.statusIcon || (e.tab.status === "success" ? D(de) : e.tab.status === "error" ? D(fe) : D(ye)))))]),
361
+ default: D(() => [(x(), c(ne(e.tab.statusIcon || (e.tab.status === "success" ? E(fe) : e.tab.status === "error" ? E(pe) : E(be)))))]),
348
362
  _: 1
349
- }, 8, ["class"])) : e.tab.status === "loading" ? (S(), u("span", {
363
+ }, 8, ["class"])) : e.tab.status === "loading" ? (x(), u("span", {
350
364
  key: 1,
351
365
  class: "og-tabs-label__loading",
352
366
  "aria-label": e.locale.loading
353
- }, null, 8, tt)) : l("", !0)], !0),
354
- e.tab.badge === void 0 ? l("", !0) : (S(), u("span", nt, ne(e.tab.badge), 1)),
355
- T(t.$slots, "after", { tab: e.tab }, void 0, !0)
356
- ], 12, Ze));
367
+ }, null, 8, nt)) : l("", !0)], !0),
368
+ e.tab.badge === void 0 ? l("", !0) : (x(), u("span", rt, re(e.tab.badge), 1)),
369
+ w(t.$slots, "after", { tab: e.tab }, void 0, !0)
370
+ ], 12, Qe));
357
371
  }
358
- }), [["__scopeId", "data-v-b81db2ee"]]);
372
+ }), [["__scopeId", "data-v-3a1da9f1"]]);
359
373
  //#endregion
360
374
  //#region src/useTabsController.ts
361
- function it(e) {
362
- let t = E(!1);
375
+ function at(e) {
376
+ let t = T(!1);
363
377
  function n(t, n, r, i = {}) {
364
378
  let a = e.getItems(), o = e.getActiveKey();
365
379
  return {
@@ -367,7 +381,7 @@ function it(e) {
367
381
  source: n,
368
382
  tab: r,
369
383
  activeKey: o,
370
- activeTab: A(a, o),
384
+ activeTab: k(a, o),
371
385
  items: a,
372
386
  ...i
373
387
  };
@@ -385,13 +399,13 @@ function it(e) {
385
399
  }
386
400
  }
387
401
  function i(t, i = "api") {
388
- let a = A(e.getItems(), t);
402
+ let a = k(e.getItems(), t);
389
403
  return !a || a.disabled ? (e.onDenied("activate", a, a ? "disabled" : "not-found"), Promise.resolve(!1)) : t === e.getActiveKey() ? Promise.resolve(!0) : r(n("activate", i, a, { nextActiveKey: t }));
390
404
  }
391
405
  function a(t, i = "api") {
392
- let a = e.getItems(), o = A(a, t);
393
- if (!Me(o)) return e.onDenied("close", o, o?.pinned ? "pinned" : o ? "readonly" : "not-found"), Promise.resolve(!1);
394
- let s = Ie(a, /* @__PURE__ */ new Set([t])), c = t === e.getActiveKey() ? Re(Ae(a), s, t) : e.getActiveKey();
406
+ let a = e.getItems(), o = k(a, t);
407
+ if (!Pe(o)) return e.onDenied("close", o, o?.pinned ? "pinned" : o ? "readonly" : "not-found"), Promise.resolve(!1);
408
+ let s = Re(a, /* @__PURE__ */ new Set([t])), c = t === e.getActiveKey() ? Be(Me(a), s, t) : e.getActiveKey();
395
409
  return r(n("close", i, o, {
396
410
  targets: [o],
397
411
  nextItems: s,
@@ -399,39 +413,39 @@ function it(e) {
399
413
  }));
400
414
  }
401
415
  function o(t, i, a = "api") {
402
- let o = e.getItems(), s = Ae(o), c = Le(s, i, t);
403
- if (!c.length) return e.onDenied(Be(t), A(o, i), "boundary"), Promise.resolve(!1);
404
- let l = new Set(c.map((e) => e.key)), u = e.getActiveKey(), d = Ie(o, l), f = u !== void 0 && l.has(u) ? Re(s, d, u) : u;
405
- return r(n(Be(t), a, t === "current" ? c[0] : A(o, i), {
416
+ let o = e.getItems(), s = Me(o), c = ze(s, i, t);
417
+ if (!c.length) return e.onDenied(Ve(t), k(o, i), "boundary"), Promise.resolve(!1);
418
+ let l = new Set(c.map((e) => e.key)), u = e.getActiveKey(), d = Re(o, l), f = u !== void 0 && l.has(u) ? Be(s, d, u) : u;
419
+ return r(n(Ve(t), a, t === "current" ? c[0] : k(o, i), {
406
420
  targets: c,
407
421
  nextItems: d,
408
422
  nextActiveKey: f
409
423
  }));
410
424
  }
411
425
  function s(t, i, a = "api") {
412
- let o = A(e.getItems(), t);
413
- return !o || !Ne(o) || o.pinned === i ? (e.onDenied(i ? "pin" : "unpin", o, o ? o.pinned === i ? "boundary" : "readonly" : "not-found"), Promise.resolve(!1)) : r(n(i ? "pin" : "unpin", a, o, { nextItems: Fe(e.getItems(), t, i) }));
426
+ let o = k(e.getItems(), t);
427
+ return !o || !Fe(o) || o.pinned === i ? (e.onDenied(i ? "pin" : "unpin", o, o ? o.pinned === i ? "boundary" : "readonly" : "not-found"), Promise.resolve(!1)) : r(n(i ? "pin" : "unpin", a, o, { nextItems: Le(e.getItems(), t, i) }));
414
428
  }
415
429
  function c(t, i, a = "api") {
416
- let o = e.getItems(), s = A(o, t), c = A(o, i), l = ze(o, t, i);
430
+ let o = e.getItems(), s = k(o, t), c = k(o, i), l = A(o, t, i);
417
431
  return !s || !c || l.every((e, t) => e.key === o[t]?.key) ? (e.onDenied("move", s, s ? "boundary" : "not-found"), Promise.resolve(!1)) : r(n("move", a, s, {
418
432
  nextItems: l,
419
433
  targetTab: c
420
434
  }));
421
435
  }
422
436
  function l(t, i, a = "api") {
423
- let o = e.getItems(), s = i === void 0 ? j(o, t, "bottom") : ze(o, t, i), c = A(o, t);
437
+ let o = e.getItems(), s = i === void 0 ? j(o, t, "bottom") : A(o, t, i), c = k(o, t);
424
438
  return !c || s.every((e, t) => e.key === o[t]?.key) ? (e.onDenied("move", c, c ? "boundary" : "not-found"), Promise.resolve(!1)) : r(n("move", a, c, {
425
439
  nextItems: s,
426
- targetTab: i === void 0 ? void 0 : A(o, i)
440
+ targetTab: i === void 0 ? void 0 : k(o, i)
427
441
  }));
428
442
  }
429
443
  function u(t, i, a = "api") {
430
- let o = e.getItems(), s = A(o, t), c = j(o, t, i);
444
+ let o = e.getItems(), s = k(o, t), c = j(o, t, i);
431
445
  return !s || c.every((e, t) => e.key === o[t]?.key) ? (e.onDenied(i === "top" ? "move-top" : "move-bottom", s, s ? "boundary" : "not-found"), Promise.resolve(!1)) : r(n(i === "top" ? "move-top" : "move-bottom", a, s, { nextItems: c }));
432
446
  }
433
447
  function d(t, i = "api") {
434
- let a = A(e.getItems(), t);
448
+ let a = k(e.getItems(), t);
435
449
  return a ? r(n("refresh", i, a)) : (e.onDenied("refresh", a, "not-found"), Promise.resolve(!1));
436
450
  }
437
451
  return {
@@ -458,24 +472,24 @@ function it(e) {
458
472
  }
459
473
  //#endregion
460
474
  //#region ../../node_modules/.pnpm/sortablejs@1.15.7/node_modules/sortablejs/modular/sortable.esm.js
461
- function at(e, t, n) {
462
- return (t = ut(t)) in e ? Object.defineProperty(e, t, {
475
+ function ot(e, t, n) {
476
+ return (t = dt(t)) in e ? Object.defineProperty(e, t, {
463
477
  value: n,
464
478
  enumerable: !0,
465
479
  configurable: !0,
466
480
  writable: !0
467
481
  }) : e[t] = n, e;
468
482
  }
469
- function N() {
470
- return N = Object.assign ? Object.assign.bind() : function(e) {
483
+ function st() {
484
+ return st = Object.assign ? Object.assign.bind() : function(e) {
471
485
  for (var t = 1; t < arguments.length; t++) {
472
486
  var n = arguments[t];
473
487
  for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
474
488
  }
475
489
  return e;
476
- }, N.apply(null, arguments);
490
+ }, st.apply(null, arguments);
477
491
  }
478
- function ot(e, t) {
492
+ function N(e, t) {
479
493
  var n = Object.keys(e);
480
494
  if (Object.getOwnPropertySymbols) {
481
495
  var r = Object.getOwnPropertySymbols(e);
@@ -488,24 +502,24 @@ function ot(e, t) {
488
502
  function P(e) {
489
503
  for (var t = 1; t < arguments.length; t++) {
490
504
  var n = arguments[t] == null ? {} : arguments[t];
491
- t % 2 ? ot(Object(n), !0).forEach(function(t) {
492
- at(e, t, n[t]);
493
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : ot(Object(n)).forEach(function(t) {
505
+ t % 2 ? N(Object(n), !0).forEach(function(t) {
506
+ ot(e, t, n[t]);
507
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : N(Object(n)).forEach(function(t) {
494
508
  Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
495
509
  });
496
510
  }
497
511
  return e;
498
512
  }
499
- function st(e, t) {
513
+ function ct(e, t) {
500
514
  if (e == null) return {};
501
- var n, r, i = ct(e, t);
515
+ var n, r, i = lt(e, t);
502
516
  if (Object.getOwnPropertySymbols) {
503
517
  var a = Object.getOwnPropertySymbols(e);
504
518
  for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
505
519
  }
506
520
  return i;
507
521
  }
508
- function ct(e, t) {
522
+ function lt(e, t) {
509
523
  if (e == null) return {};
510
524
  var n = {};
511
525
  for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -514,7 +528,7 @@ function ct(e, t) {
514
528
  }
515
529
  return n;
516
530
  }
517
- function lt(e, t) {
531
+ function ut(e, t) {
518
532
  if (typeof e != "object" || !e) return e;
519
533
  var n = e[Symbol.toPrimitive];
520
534
  if (n !== void 0) {
@@ -524,33 +538,33 @@ function lt(e, t) {
524
538
  }
525
539
  return (t === "string" ? String : Number)(e);
526
540
  }
527
- function ut(e) {
528
- var t = lt(e, "string");
541
+ function dt(e) {
542
+ var t = ut(e, "string");
529
543
  return typeof t == "symbol" ? t : t + "";
530
544
  }
531
- function dt(e) {
545
+ function ft(e) {
532
546
  "@babel/helpers - typeof";
533
- return dt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
547
+ return ft = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
534
548
  return typeof e;
535
549
  } : function(e) {
536
550
  return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
537
- }, dt(e);
551
+ }, ft(e);
538
552
  }
539
- var ft = "1.15.7";
540
- function pt(e) {
553
+ var pt = "1.15.7";
554
+ function mt(e) {
541
555
  if (typeof window < "u" && window.navigator) return !!/*@__PURE__*/ navigator.userAgent.match(e);
542
556
  }
543
- var mt = pt(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), ht = pt(/Edge/i), gt = pt(/firefox/i), _t = pt(/safari/i) && !pt(/chrome/i) && !pt(/android/i), vt = pt(/iP(ad|od|hone)/i), yt = pt(/chrome/i) && pt(/android/i), bt = {
557
+ var ht = mt(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), gt = mt(/Edge/i), _t = mt(/firefox/i), vt = mt(/safari/i) && !mt(/chrome/i) && !mt(/android/i), yt = mt(/iP(ad|od|hone)/i), bt = mt(/chrome/i) && mt(/android/i), xt = {
544
558
  capture: !1,
545
559
  passive: !1
546
560
  };
547
561
  function F(e, t, n) {
548
- e.addEventListener(t, n, !mt && bt);
562
+ e.addEventListener(t, n, !ht && xt);
549
563
  }
550
564
  function I(e, t, n) {
551
- e.removeEventListener(t, n, !mt && bt);
565
+ e.removeEventListener(t, n, !ht && xt);
552
566
  }
553
- function xt(e, t) {
567
+ function St(e, t) {
554
568
  if (t) {
555
569
  if (t[0] === ">" && (t = t.substring(1)), e) try {
556
570
  if (e.matches) return e.matches(t);
@@ -562,22 +576,22 @@ function xt(e, t) {
562
576
  return !1;
563
577
  }
564
578
  }
565
- function St(e) {
579
+ function Ct(e) {
566
580
  return e.host && e !== document && e.host.nodeType && e.host !== e ? e.host : e.parentNode;
567
581
  }
568
- function Ct(e, t, n, r) {
582
+ function wt(e, t, n, r) {
569
583
  if (e) {
570
584
  n ||= document;
571
585
  do {
572
- if (t != null && (t[0] === ">" ? e.parentNode === n && xt(e, t) : xt(e, t)) || r && e === n) return e;
586
+ if (t != null && (t[0] === ">" ? e.parentNode === n && St(e, t) : St(e, t)) || r && e === n) return e;
573
587
  if (e === n) break;
574
- } while (e = St(e));
588
+ } while (e = Ct(e));
575
589
  }
576
590
  return null;
577
591
  }
578
- var wt = /\s+/g;
592
+ var Tt = /\s+/g;
579
593
  function L(e, t, n) {
580
- e && t && (e.classList ? e.classList[n ? "add" : "remove"](t) : e.className = ((" " + e.className + " ").replace(wt, " ").replace(" " + t + " ", " ") + (n ? " " + t : "")).replace(wt, " "));
594
+ e && t && (e.classList ? e.classList[n ? "add" : "remove"](t) : e.className = ((" " + e.className + " ").replace(Tt, " ").replace(" " + t + " ", " ") + (n ? " " + t : "")).replace(Tt, " "));
581
595
  }
582
596
  function R(e, t, n) {
583
597
  var r = e && e.style;
@@ -586,7 +600,7 @@ function R(e, t, n) {
586
600
  !(t in r) && t.indexOf("webkit") === -1 && (t = "-webkit-" + t), r[t] = n + (typeof n == "string" ? "" : "px");
587
601
  }
588
602
  }
589
- function Tt(e, t) {
603
+ function Et(e, t) {
590
604
  var n = "";
591
605
  if (typeof e == "string") n = e;
592
606
  else do {
@@ -596,7 +610,7 @@ function Tt(e, t) {
596
610
  var i = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
597
611
  return i && new i(n);
598
612
  }
599
- function Et(e, t, n) {
613
+ function Dt(e, t, n) {
600
614
  if (e) {
601
615
  var r = e.getElementsByTagName(t), i = 0, a = r.length;
602
616
  if (n) for (; i < a; i++) n(r[i], i);
@@ -604,13 +618,13 @@ function Et(e, t, n) {
604
618
  }
605
619
  return [];
606
620
  }
607
- function Dt() {
621
+ function Ot() {
608
622
  return document.scrollingElement || document.documentElement;
609
623
  }
610
624
  function z(e, t, n, r, i) {
611
625
  if (!(!e.getBoundingClientRect && e !== window)) {
612
626
  var a, o, s, c, l, u, d;
613
- if (e !== window && e.parentNode && e !== Dt() ? (a = e.getBoundingClientRect(), o = a.top, s = a.left, c = a.bottom, l = a.right, u = a.height, d = a.width) : (o = 0, s = 0, c = window.innerHeight, l = window.innerWidth, u = window.innerHeight, d = window.innerWidth), (t || n) && e !== window && (i ||= e.parentNode, !mt)) do
627
+ if (e !== window && e.parentNode && e !== Ot() ? (a = e.getBoundingClientRect(), o = a.top, s = a.left, c = a.bottom, l = a.right, u = a.height, d = a.width) : (o = 0, s = 0, c = window.innerHeight, l = window.innerWidth, u = window.innerHeight, d = window.innerWidth), (t || n) && e !== window && (i ||= e.parentNode, !ht)) do
614
628
  if (i && i.getBoundingClientRect && (R(i, "transform") !== "none" || n && R(i, "position") !== "static")) {
615
629
  var f = i.getBoundingClientRect();
616
630
  o -= f.top + parseInt(R(i, "border-top-width")), s -= f.left + parseInt(R(i, "border-left-width")), c = o + a.height, l = s + a.width;
@@ -618,7 +632,7 @@ function z(e, t, n, r, i) {
618
632
  }
619
633
  while (i = i.parentNode);
620
634
  if (r && e !== window) {
621
- var p = Tt(i || e), m = p && p.a, h = p && p.d;
635
+ var p = Et(i || e), m = p && p.a, h = p && p.d;
622
636
  p && (o /= h, s /= m, d /= m, u /= h, c = o + u, l = s + d);
623
637
  }
624
638
  return {
@@ -631,18 +645,18 @@ function z(e, t, n, r, i) {
631
645
  };
632
646
  }
633
647
  }
634
- function Ot(e, t, n) {
635
- for (var r = Nt(e, !0), i = z(e)[t]; r;) {
648
+ function kt(e, t, n) {
649
+ for (var r = Pt(e, !0), i = z(e)[t]; r;) {
636
650
  var a = z(r)[n], o = void 0;
637
651
  if (o = n === "top" || n === "left" ? i >= a : i <= a, !o) return r;
638
- if (r === Dt()) break;
639
- r = Nt(r, !1);
652
+ if (r === Ot()) break;
653
+ r = Pt(r, !1);
640
654
  }
641
655
  return !1;
642
656
  }
643
- function kt(e, t, n, r) {
657
+ function At(e, t, n, r) {
644
658
  for (var i = 0, a = 0, o = e.children; a < o.length;) {
645
- if (o[a].style.display !== "none" && o[a] !== Q.ghost && (r || o[a] !== Q.dragged) && Ct(o[a], n.draggable, e, !1)) {
659
+ if (o[a].style.display !== "none" && o[a] !== Q.ghost && (r || o[a] !== Q.dragged) && wt(o[a], n.draggable, e, !1)) {
646
660
  if (i === t) return o[a];
647
661
  i++;
648
662
  }
@@ -650,84 +664,84 @@ function kt(e, t, n, r) {
650
664
  }
651
665
  return null;
652
666
  }
653
- function At(e, t) {
654
- for (var n = e.lastElementChild; n && (n === Q.ghost || R(n, "display") === "none" || t && !xt(n, t));) n = n.previousElementSibling;
667
+ function jt(e, t) {
668
+ for (var n = e.lastElementChild; n && (n === Q.ghost || R(n, "display") === "none" || t && !St(n, t));) n = n.previousElementSibling;
655
669
  return n || null;
656
670
  }
657
671
  function B(e, t) {
658
672
  var n = 0;
659
673
  if (!e || !e.parentNode) return -1;
660
- for (; e = e.previousElementSibling;) e.nodeName.toUpperCase() !== "TEMPLATE" && e !== Q.clone && (!t || xt(e, t)) && n++;
674
+ for (; e = e.previousElementSibling;) e.nodeName.toUpperCase() !== "TEMPLATE" && e !== Q.clone && (!t || St(e, t)) && n++;
661
675
  return n;
662
676
  }
663
- function jt(e) {
664
- var t = 0, n = 0, r = Dt();
677
+ function Mt(e) {
678
+ var t = 0, n = 0, r = Ot();
665
679
  if (e) do {
666
- var i = Tt(e), a = i.a, o = i.d;
680
+ var i = Et(e), a = i.a, o = i.d;
667
681
  t += e.scrollLeft * a, n += e.scrollTop * o;
668
682
  } while (e !== r && (e = e.parentNode));
669
683
  return [t, n];
670
684
  }
671
- function Mt(e, t) {
685
+ function Nt(e, t) {
672
686
  for (var n in e) if (e.hasOwnProperty(n)) {
673
687
  for (var r in t) if (t.hasOwnProperty(r) && t[r] === e[n][r]) return Number(n);
674
688
  }
675
689
  return -1;
676
690
  }
677
- function Nt(e, t) {
678
- if (!e || !e.getBoundingClientRect) return Dt();
691
+ function Pt(e, t) {
692
+ if (!e || !e.getBoundingClientRect) return Ot();
679
693
  var n = e, r = !1;
680
694
  do
681
695
  if (n.clientWidth < n.scrollWidth || n.clientHeight < n.scrollHeight) {
682
696
  var i = R(n);
683
697
  if (n.clientWidth < n.scrollWidth && (i.overflowX == "auto" || i.overflowX == "scroll") || n.clientHeight < n.scrollHeight && (i.overflowY == "auto" || i.overflowY == "scroll")) {
684
- if (!n.getBoundingClientRect || n === document.body) return Dt();
698
+ if (!n.getBoundingClientRect || n === document.body) return Ot();
685
699
  if (r || t) return n;
686
700
  r = !0;
687
701
  }
688
702
  }
689
703
  while (n = n.parentNode);
690
- return Dt();
704
+ return Ot();
691
705
  }
692
- function Pt(e, t) {
706
+ function Ft(e, t) {
693
707
  if (e && t) for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]);
694
708
  return e;
695
709
  }
696
- function Ft(e, t) {
710
+ function It(e, t) {
697
711
  return Math.round(e.top) === Math.round(t.top) && Math.round(e.left) === Math.round(t.left) && Math.round(e.height) === Math.round(t.height) && Math.round(e.width) === Math.round(t.width);
698
712
  }
699
- var It;
700
- function Lt(e, t) {
713
+ var Lt;
714
+ function Rt(e, t) {
701
715
  return function() {
702
- if (!It) {
716
+ if (!Lt) {
703
717
  var n = arguments, r = this;
704
- n.length === 1 ? e.call(r, n[0]) : e.apply(r, n), It = setTimeout(function() {
705
- It = void 0;
718
+ n.length === 1 ? e.call(r, n[0]) : e.apply(r, n), Lt = setTimeout(function() {
719
+ Lt = void 0;
706
720
  }, t);
707
721
  }
708
722
  };
709
723
  }
710
- function Rt() {
711
- clearTimeout(It), It = void 0;
724
+ function zt() {
725
+ clearTimeout(Lt), Lt = void 0;
712
726
  }
713
- function zt(e, t, n) {
727
+ function Bt(e, t, n) {
714
728
  e.scrollLeft += t, e.scrollTop += n;
715
729
  }
716
- function Bt(e) {
730
+ function Vt(e) {
717
731
  var t = window.Polymer, n = window.jQuery || window.Zepto;
718
732
  return t && t.dom ? t.dom(e).cloneNode(!0) : n ? n(e).clone(!0)[0] : e.cloneNode(!0);
719
733
  }
720
- function Vt(e, t, n) {
734
+ function Ht(e, t, n) {
721
735
  var r = {};
722
736
  return Array.from(e.children).forEach(function(i) {
723
- if (!(!Ct(i, t.draggable, e, !1) || i.animated || i === n)) {
737
+ if (!(!wt(i, t.draggable, e, !1) || i.animated || i === n)) {
724
738
  var a = z(i);
725
739
  r.left = Math.min(r.left ?? Infinity, a.left), r.top = Math.min(r.top ?? Infinity, a.top), r.right = Math.max(r.right ?? -Infinity, a.right), r.bottom = Math.max(r.bottom ?? -Infinity, a.bottom);
726
740
  }
727
741
  }), r.width = r.right - r.left, r.height = r.bottom - r.top, r.x = r.left, r.y = r.top, r;
728
742
  }
729
743
  var V = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
730
- function Ht() {
744
+ function Ut() {
731
745
  var e = [], t;
732
746
  return {
733
747
  captureAnimationState: function() {
@@ -739,7 +753,7 @@ function Ht() {
739
753
  });
740
754
  var n = P({}, e[e.length - 1].rect);
741
755
  if (t.thisAnimationDuration) {
742
- var r = Tt(t, !0);
756
+ var r = Et(t, !0);
743
757
  r && (n.top -= r.f, n.left -= r.e);
744
758
  }
745
759
  t.fromRect = n;
@@ -750,7 +764,7 @@ function Ht() {
750
764
  e.push(t);
751
765
  },
752
766
  removeAnimationState: function(t) {
753
- e.splice(Mt(e, { target: t }), 1);
767
+ e.splice(Nt(e, { target: t }), 1);
754
768
  },
755
769
  animateAll: function(n) {
756
770
  var r = this;
@@ -760,8 +774,8 @@ function Ht() {
760
774
  }
761
775
  var i = !1, a = 0;
762
776
  e.forEach(function(e) {
763
- var t = 0, n = e.target, o = n.fromRect, s = z(n), c = n.prevFromRect, l = n.prevToRect, u = e.rect, d = Tt(n, !0);
764
- d && (s.top -= d.f, s.left -= d.e), n.toRect = s, n.thisAnimationDuration && Ft(c, s) && !Ft(o, s) && (u.top - s.top) / (u.left - s.left) === (o.top - s.top) / (o.left - s.left) && (t = Wt(u, c, l, r.options)), Ft(s, o) || (n.prevFromRect = o, n.prevToRect = s, t ||= r.options.animation, r.animate(n, u, s, t)), t && (i = !0, a = Math.max(a, t), clearTimeout(n.animationResetTimer), n.animationResetTimer = setTimeout(function() {
777
+ var t = 0, n = e.target, o = n.fromRect, s = z(n), c = n.prevFromRect, l = n.prevToRect, u = e.rect, d = Et(n, !0);
778
+ d && (s.top -= d.f, s.left -= d.e), n.toRect = s, n.thisAnimationDuration && It(c, s) && !It(o, s) && (u.top - s.top) / (u.left - s.left) === (o.top - s.top) / (o.left - s.left) && (t = Gt(u, c, l, r.options)), It(s, o) || (n.prevFromRect = o, n.prevToRect = s, t ||= r.options.animation, r.animate(n, u, s, t)), t && (i = !0, a = Math.max(a, t), clearTimeout(n.animationResetTimer), n.animationResetTimer = setTimeout(function() {
765
779
  n.animationTime = 0, n.prevFromRect = null, n.fromRect = null, n.prevToRect = null, n.thisAnimationDuration = null;
766
780
  }, t), n.thisAnimationDuration = t);
767
781
  }), clearTimeout(t), i ? t = setTimeout(function() {
@@ -771,26 +785,26 @@ function Ht() {
771
785
  animate: function(e, t, n, r) {
772
786
  if (r) {
773
787
  R(e, "transition", ""), R(e, "transform", "");
774
- var i = Tt(this.el), a = i && i.a, o = i && i.d, s = (t.left - n.left) / (a || 1), c = (t.top - n.top) / (o || 1);
775
- e.animatingX = !!s, e.animatingY = !!c, R(e, "transform", "translate3d(" + s + "px," + c + "px,0)"), this.forRepaintDummy = Ut(e), R(e, "transition", "transform " + r + "ms" + (this.options.easing ? " " + this.options.easing : "")), R(e, "transform", "translate3d(0,0,0)"), typeof e.animated == "number" && clearTimeout(e.animated), e.animated = setTimeout(function() {
788
+ var i = Et(this.el), a = i && i.a, o = i && i.d, s = (t.left - n.left) / (a || 1), c = (t.top - n.top) / (o || 1);
789
+ e.animatingX = !!s, e.animatingY = !!c, R(e, "transform", "translate3d(" + s + "px," + c + "px,0)"), this.forRepaintDummy = Wt(e), R(e, "transition", "transform " + r + "ms" + (this.options.easing ? " " + this.options.easing : "")), R(e, "transform", "translate3d(0,0,0)"), typeof e.animated == "number" && clearTimeout(e.animated), e.animated = setTimeout(function() {
776
790
  R(e, "transition", ""), R(e, "transform", ""), e.animated = !1, e.animatingX = !1, e.animatingY = !1;
777
791
  }, r);
778
792
  }
779
793
  }
780
794
  };
781
795
  }
782
- function Ut(e) {
796
+ function Wt(e) {
783
797
  return e.offsetWidth;
784
798
  }
785
- function Wt(e, t, n, r) {
799
+ function Gt(e, t, n, r) {
786
800
  return Math.sqrt((t.top - e.top) ** 2 + (t.left - e.left) ** 2) / Math.sqrt((t.top - n.top) ** 2 + (t.left - n.left) ** 2) * r.animation;
787
801
  }
788
- var Gt = [], Kt = { initializeByDefault: !0 }, qt = {
802
+ var Kt = [], qt = { initializeByDefault: !0 }, Jt = {
789
803
  mount: function(e) {
790
- for (var t in Kt) Kt.hasOwnProperty(t) && !(t in e) && (e[t] = Kt[t]);
791
- Gt.forEach(function(t) {
804
+ for (var t in qt) qt.hasOwnProperty(t) && !(t in e) && (e[t] = qt[t]);
805
+ Kt.forEach(function(t) {
792
806
  if (t.pluginName === e.pluginName) throw `Sortable: Cannot mount plugin ${e.pluginName} more than once`;
793
- }), Gt.push(e);
807
+ }), Kt.push(e);
794
808
  },
795
809
  pluginEvent: function(e, t, n) {
796
810
  var r = this;
@@ -798,16 +812,16 @@ var Gt = [], Kt = { initializeByDefault: !0 }, qt = {
798
812
  r.eventCanceled = !0;
799
813
  };
800
814
  var i = e + "Global";
801
- Gt.forEach(function(r) {
815
+ Kt.forEach(function(r) {
802
816
  t[r.pluginName] && (t[r.pluginName][i] && t[r.pluginName][i](P({ sortable: t }, n)), t.options[r.pluginName] && t[r.pluginName][e] && t[r.pluginName][e](P({ sortable: t }, n)));
803
817
  });
804
818
  },
805
819
  initializePlugins: function(e, t, n, r) {
806
- for (var i in Gt.forEach(function(r) {
820
+ for (var i in Kt.forEach(function(r) {
807
821
  var i = r.pluginName;
808
822
  if (!(!e.options[i] && !r.initializeByDefault)) {
809
823
  var a = new r(e, t, e.options);
810
- a.sortable = e, a.options = e.options, e[i] = a, N(n, a.defaults);
824
+ a.sortable = e, a.options = e.options, e[i] = a, st(n, a.defaults);
811
825
  }
812
826
  }), e.options) if (e.options.hasOwnProperty(i)) {
813
827
  var a = this.modifyOption(e, i, e.options[i]);
@@ -816,56 +830,56 @@ var Gt = [], Kt = { initializeByDefault: !0 }, qt = {
816
830
  },
817
831
  getEventProperties: function(e, t) {
818
832
  var n = {};
819
- return Gt.forEach(function(r) {
820
- typeof r.eventProperties == "function" && N(n, r.eventProperties.call(t[r.pluginName], e));
833
+ return Kt.forEach(function(r) {
834
+ typeof r.eventProperties == "function" && st(n, r.eventProperties.call(t[r.pluginName], e));
821
835
  }), n;
822
836
  },
823
837
  modifyOption: function(e, t, n) {
824
838
  var r;
825
- return Gt.forEach(function(i) {
839
+ return Kt.forEach(function(i) {
826
840
  e[i.pluginName] && i.optionListeners && typeof i.optionListeners[t] == "function" && (r = i.optionListeners[t].call(e[i.pluginName], n));
827
841
  }), r;
828
842
  }
829
843
  };
830
- function Jt(e) {
844
+ function Yt(e) {
831
845
  var t = e.sortable, n = e.rootEl, r = e.name, i = e.targetEl, a = e.cloneEl, o = e.toEl, s = e.fromEl, c = e.oldIndex, l = e.newIndex, u = e.oldDraggableIndex, d = e.newDraggableIndex, f = e.originalEvent, p = e.putSortable, m = e.extraEventProperties;
832
846
  if (t ||= n && n[V], t) {
833
847
  var h, g = t.options, _ = "on" + r.charAt(0).toUpperCase() + r.substr(1);
834
- window.CustomEvent && !mt && !ht ? h = new CustomEvent(r, {
848
+ window.CustomEvent && !ht && !gt ? h = new CustomEvent(r, {
835
849
  bubbles: !0,
836
850
  cancelable: !0
837
851
  }) : (h = document.createEvent("Event"), h.initEvent(r, !0, !0)), h.to = o || n, h.from = s || n, h.item = i || n, h.clone = a, h.oldIndex = c, h.newIndex = l, h.oldDraggableIndex = u, h.newDraggableIndex = d, h.originalEvent = f, h.pullMode = p ? p.lastPutMode : void 0;
838
- var ee = P(P({}, m), qt.getEventProperties(r, t));
852
+ var ee = P(P({}, m), Jt.getEventProperties(r, t));
839
853
  for (var v in ee) h[v] = ee[v];
840
854
  n && n.dispatchEvent(h), g[_] && g[_].call(t, h);
841
855
  }
842
856
  }
843
- var Yt = ["evt"], H = function(e, t) {
844
- var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = n.evt, i = st(n, Yt);
845
- qt.pluginEvent.bind(Q)(e, t, P({
857
+ var Xt = ["evt"], H = function(e, t) {
858
+ var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = n.evt, i = ct(n, Xt);
859
+ Jt.pluginEvent.bind(Q)(e, t, P({
846
860
  dragEl: W,
847
861
  parentEl: G,
848
862
  ghostEl: K,
849
863
  rootEl: q,
850
- nextEl: Xt,
851
- lastDownEl: Zt,
864
+ nextEl: Zt,
865
+ lastDownEl: Qt,
852
866
  cloneEl: J,
853
- cloneHidden: Qt,
854
- dragStarted: pn,
867
+ cloneHidden: $t,
868
+ dragStarted: mn,
855
869
  putSortable: X,
856
870
  activeSortable: Q.active,
857
871
  originalEvent: r,
858
- oldIndex: $t,
859
- oldDraggableIndex: en,
872
+ oldIndex: en,
873
+ oldDraggableIndex: tn,
860
874
  newIndex: Y,
861
- newDraggableIndex: tn,
862
- hideGhostForTarget: jn,
863
- unhideGhostForTarget: Mn,
875
+ newDraggableIndex: nn,
876
+ hideGhostForTarget: Mn,
877
+ unhideGhostForTarget: Nn,
864
878
  cloneNowHidden: function() {
865
- Qt = !0;
879
+ $t = !0;
866
880
  },
867
881
  cloneNowShown: function() {
868
- Qt = !1;
882
+ $t = !1;
869
883
  },
870
884
  dispatchSortableEvent: function(e) {
871
885
  U({
@@ -877,45 +891,45 @@ var Yt = ["evt"], H = function(e, t) {
877
891
  }, i));
878
892
  };
879
893
  function U(e) {
880
- Jt(P({
894
+ Yt(P({
881
895
  putSortable: X,
882
896
  cloneEl: J,
883
897
  targetEl: W,
884
898
  rootEl: q,
885
- oldIndex: $t,
886
- oldDraggableIndex: en,
899
+ oldIndex: en,
900
+ oldDraggableIndex: tn,
887
901
  newIndex: Y,
888
- newDraggableIndex: tn
902
+ newDraggableIndex: nn
889
903
  }, e));
890
904
  }
891
- var W, G, K, q, Xt, Zt, J, Qt, $t, Y, en, tn, nn, X, rn = !1, an = !1, on = [], sn, cn, ln, un, dn, fn, pn, mn, hn, gn = !1, _n = !1, vn, Z, yn = [], bn = !1, xn = [], Sn = typeof document < "u", Cn = vt, wn = ht || mt ? "cssFloat" : "float", Tn = Sn && !yt && !vt && "draggable" in document.createElement("div"), En = function() {
892
- if (Sn) {
893
- if (mt) return !1;
905
+ var W, G, K, q, Zt, Qt, J, $t, en, Y, tn, nn, rn, X, an = !1, on = !1, sn = [], cn, ln, un, dn, fn, pn, mn, hn, gn, _n = !1, vn = !1, yn, Z, bn = [], xn = !1, Sn = [], Cn = typeof document < "u", wn = yt, Tn = gt || ht ? "cssFloat" : "float", En = Cn && !bt && !yt && "draggable" in document.createElement("div"), Dn = function() {
906
+ if (Cn) {
907
+ if (ht) return !1;
894
908
  var e = document.createElement("x");
895
909
  return e.style.cssText = "pointer-events:auto", e.style.pointerEvents === "auto";
896
910
  }
897
- }(), Dn = function(e, t) {
898
- var n = R(e), r = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), i = kt(e, 0, t), a = kt(e, 1, t), o = i && R(i), s = a && R(a), c = o && parseInt(o.marginLeft) + parseInt(o.marginRight) + z(i).width, l = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + z(a).width;
911
+ }(), On = function(e, t) {
912
+ var n = R(e), r = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), i = At(e, 0, t), a = At(e, 1, t), o = i && R(i), s = a && R(a), c = o && parseInt(o.marginLeft) + parseInt(o.marginRight) + z(i).width, l = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + z(a).width;
899
913
  if (n.display === "flex") return n.flexDirection === "column" || n.flexDirection === "column-reverse" ? "vertical" : "horizontal";
900
914
  if (n.display === "grid") return n.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal";
901
915
  if (i && o.float && o.float !== "none") {
902
916
  var u = o.float === "left" ? "left" : "right";
903
917
  return a && (s.clear === "both" || s.clear === u) ? "vertical" : "horizontal";
904
918
  }
905
- return i && (o.display === "block" || o.display === "flex" || o.display === "table" || o.display === "grid" || c >= r && n[wn] === "none" || a && n[wn] === "none" && c + l > r) ? "vertical" : "horizontal";
906
- }, On = function(e, t, n) {
919
+ return i && (o.display === "block" || o.display === "flex" || o.display === "table" || o.display === "grid" || c >= r && n[Tn] === "none" || a && n[Tn] === "none" && c + l > r) ? "vertical" : "horizontal";
920
+ }, kn = function(e, t, n) {
907
921
  var r = n ? e.left : e.top, i = n ? e.right : e.bottom, a = n ? e.width : e.height, o = n ? t.left : t.top, s = n ? t.right : t.bottom, c = n ? t.width : t.height;
908
922
  return r === o || i === s || r + a / 2 === o + c / 2;
909
- }, kn = function(e, t) {
923
+ }, An = function(e, t) {
910
924
  var n;
911
- return on.some(function(r) {
925
+ return sn.some(function(r) {
912
926
  var i = r[V].options.emptyInsertThreshold;
913
- if (!(!i || At(r))) {
927
+ if (!(!i || jt(r))) {
914
928
  var a = z(r), o = e >= a.left - i && e <= a.right + i, s = t >= a.top - i && t <= a.bottom + i;
915
929
  if (o && s) return n = r;
916
930
  }
917
931
  }), n;
918
- }, An = function(e) {
932
+ }, jn = function(e) {
919
933
  function t(e, n) {
920
934
  return function(r, i, a, o) {
921
935
  var s = r.options.group.name && i.options.group.name && r.options.group.name === i.options.group.name;
@@ -928,31 +942,31 @@ var W, G, K, q, Xt, Zt, J, Qt, $t, Y, en, tn, nn, X, rn = !1, an = !1, on = [],
928
942
  };
929
943
  }
930
944
  var n = {}, r = e.group;
931
- (!r || dt(r) != "object") && (r = { name: r }), n.name = r.name, n.checkPull = t(r.pull, !0), n.checkPut = t(r.put), n.revertClone = r.revertClone, e.group = n;
932
- }, jn = function() {
933
- !En && K && R(K, "display", "none");
945
+ (!r || ft(r) != "object") && (r = { name: r }), n.name = r.name, n.checkPull = t(r.pull, !0), n.checkPut = t(r.put), n.revertClone = r.revertClone, e.group = n;
934
946
  }, Mn = function() {
935
- !En && K && R(K, "display", "");
947
+ !Dn && K && R(K, "display", "none");
948
+ }, Nn = function() {
949
+ !Dn && K && R(K, "display", "");
936
950
  };
937
- Sn && !yt && document.addEventListener("click", function(e) {
938
- if (an) return e.preventDefault(), e.stopPropagation && e.stopPropagation(), e.stopImmediatePropagation && e.stopImmediatePropagation(), an = !1, !1;
951
+ Cn && !bt && document.addEventListener("click", function(e) {
952
+ if (on) return e.preventDefault(), e.stopPropagation && e.stopPropagation(), e.stopImmediatePropagation && e.stopImmediatePropagation(), on = !1, !1;
939
953
  }, !0);
940
- var Nn = function(e) {
954
+ var Pn = function(e) {
941
955
  if (W) {
942
956
  e = e.touches ? e.touches[0] : e;
943
- var t = kn(e.clientX, e.clientY);
957
+ var t = An(e.clientX, e.clientY);
944
958
  if (t) {
945
959
  var n = {};
946
960
  for (var r in e) e.hasOwnProperty(r) && (n[r] = e[r]);
947
961
  n.target = n.rootEl = t, n.preventDefault = void 0, n.stopPropagation = void 0, t[V]._onDragOver(n);
948
962
  }
949
963
  }
950
- }, Pn = function(e) {
964
+ }, Fn = function(e) {
951
965
  W && W.parentNode[V]._isOutsideThisEl(e.target);
952
966
  };
953
967
  function Q(e, t) {
954
968
  if (!(e && e.nodeType && e.nodeType === 1)) throw `Sortable: \`el\` must be an HTMLElement, not ${{}.toString.call(e)}`;
955
- this.el = e, this.options = t = N({}, t), e[V] = this;
969
+ this.el = e, this.options = t = st({}, t), e[V] = this;
956
970
  var n = {
957
971
  group: null,
958
972
  sort: !0,
@@ -965,7 +979,7 @@ function Q(e, t) {
965
979
  invertedSwapThreshold: null,
966
980
  removeCloneOnHide: !0,
967
981
  direction: function() {
968
- return Dn(e, this.options);
982
+ return On(e, this.options);
969
983
  },
970
984
  ghostClass: "sortable-ghost",
971
985
  chosenClass: "sortable-chosen",
@@ -992,17 +1006,17 @@ function Q(e, t) {
992
1006
  x: 0,
993
1007
  y: 0
994
1008
  },
995
- supportPointer: Q.supportPointer !== !1 && "PointerEvent" in window && (!_t || vt),
1009
+ supportPointer: Q.supportPointer !== !1 && "PointerEvent" in window && (!vt || yt),
996
1010
  emptyInsertThreshold: 5
997
1011
  };
998
- for (var r in qt.initializePlugins(this, e, n), n) !(r in t) && (t[r] = n[r]);
999
- for (var i in An(t), this) i.charAt(0) === "_" && typeof this[i] == "function" && (this[i] = this[i].bind(this));
1000
- this.nativeDraggable = !t.forceFallback && Tn, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? F(e, "pointerdown", this._onTapStart) : (F(e, "mousedown", this._onTapStart), F(e, "touchstart", this._onTapStart)), this.nativeDraggable && (F(e, "dragover", this), F(e, "dragenter", this)), on.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), N(this, Ht());
1012
+ for (var r in Jt.initializePlugins(this, e, n), n) !(r in t) && (t[r] = n[r]);
1013
+ for (var i in jn(t), this) i.charAt(0) === "_" && typeof this[i] == "function" && (this[i] = this[i].bind(this));
1014
+ this.nativeDraggable = !t.forceFallback && En, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? F(e, "pointerdown", this._onTapStart) : (F(e, "mousedown", this._onTapStart), F(e, "touchstart", this._onTapStart)), this.nativeDraggable && (F(e, "dragover", this), F(e, "dragenter", this)), sn.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), st(this, Ut());
1001
1015
  }
1002
1016
  Q.prototype = {
1003
1017
  constructor: Q,
1004
1018
  _isOutsideThisEl: function(e) {
1005
- !this.el.contains(e) && e !== this.el && (mn = null);
1019
+ !this.el.contains(e) && e !== this.el && (hn = null);
1006
1020
  },
1007
1021
  _getDirection: function(e, t) {
1008
1022
  return typeof this.options.direction == "function" ? this.options.direction.call(this, e, t, W) : this.options.direction;
@@ -1010,8 +1024,8 @@ Q.prototype = {
1010
1024
  _onTapStart: function(e) {
1011
1025
  if (e.cancelable) {
1012
1026
  var t = this, n = this.el, r = this.options, i = r.preventOnFilter, a = e.type, o = e.touches && e.touches[0] || e.pointerType && e.pointerType === "touch" && e, s = (o || e).target, c = e.target.shadowRoot && (e.path && e.path[0] || e.composedPath && e.composedPath()[0]) || s, l = r.filter;
1013
- if (Wn(n), !W && !(/mousedown|pointerdown/.test(a) && e.button !== 0 || r.disabled) && !c.isContentEditable && !(!this.nativeDraggable && _t && s && s.tagName.toUpperCase() === "SELECT") && (s = Ct(s, r.draggable, n, !1), !(s && s.animated) && Zt !== s)) {
1014
- if ($t = B(s), en = B(s, r.draggable), typeof l == "function") {
1027
+ if (Gn(n), !W && !(/mousedown|pointerdown/.test(a) && e.button !== 0 || r.disabled) && !c.isContentEditable && !(!this.nativeDraggable && vt && s && s.tagName.toUpperCase() === "SELECT") && (s = wt(s, r.draggable, n, !1), !(s && s.animated) && Qt !== s)) {
1028
+ if (en = B(s), tn = B(s, r.draggable), typeof l == "function") {
1015
1029
  if (l.call(this, e, s, this)) {
1016
1030
  U({
1017
1031
  sortable: t,
@@ -1024,7 +1038,7 @@ Q.prototype = {
1024
1038
  return;
1025
1039
  }
1026
1040
  } else if (l && (l = l.split(",").some(function(r) {
1027
- if (r = Ct(c, r.trim(), n, !1), r) return U({
1041
+ if (r = wt(c, r.trim(), n, !1), r) return U({
1028
1042
  sortable: t,
1029
1043
  rootEl: r,
1030
1044
  name: "filter",
@@ -1036,7 +1050,7 @@ Q.prototype = {
1036
1050
  i && e.preventDefault();
1037
1051
  return;
1038
1052
  }
1039
- r.handle && !Ct(c, r.handle, n, !1) || this._prepareDragStart(e, o, s);
1053
+ r.handle && !wt(c, r.handle, n, !1) || this._prepareDragStart(e, o, s);
1040
1054
  }
1041
1055
  }
1042
1056
  },
@@ -1044,23 +1058,23 @@ Q.prototype = {
1044
1058
  var r = this, i = r.el, a = r.options, o = i.ownerDocument, s;
1045
1059
  if (n && !W && n.parentNode === i) {
1046
1060
  var c = z(n);
1047
- if (q = i, W = n, G = W.parentNode, Xt = W.nextSibling, Zt = n, nn = a.group, Q.dragged = W, sn = {
1061
+ if (q = i, W = n, G = W.parentNode, Zt = W.nextSibling, Qt = n, rn = a.group, Q.dragged = W, cn = {
1048
1062
  target: W,
1049
1063
  clientX: (t || e).clientX,
1050
1064
  clientY: (t || e).clientY
1051
- }, dn = sn.clientX - c.left, fn = sn.clientY - c.top, this._lastX = (t || e).clientX, this._lastY = (t || e).clientY, W.style["will-change"] = "all", s = function() {
1065
+ }, fn = cn.clientX - c.left, pn = cn.clientY - c.top, this._lastX = (t || e).clientX, this._lastY = (t || e).clientY, W.style["will-change"] = "all", s = function() {
1052
1066
  if (H("delayEnded", r, { evt: e }), Q.eventCanceled) {
1053
1067
  r._onDrop();
1054
1068
  return;
1055
1069
  }
1056
- r._disableDelayedDragEvents(), !gt && r.nativeDraggable && (W.draggable = !0), r._triggerDragStart(e, t), U({
1070
+ r._disableDelayedDragEvents(), !_t && r.nativeDraggable && (W.draggable = !0), r._triggerDragStart(e, t), U({
1057
1071
  sortable: r,
1058
1072
  name: "choose",
1059
1073
  originalEvent: e
1060
1074
  }), L(W, a.chosenClass, !0);
1061
1075
  }, a.ignore.split(",").forEach(function(e) {
1062
- Et(W, e.trim(), Ln);
1063
- }), F(o, "dragover", Nn), F(o, "mousemove", Nn), F(o, "touchmove", Nn), a.supportPointer ? (F(o, "pointerup", r._onDrop), !this.nativeDraggable && F(o, "pointercancel", r._onDrop)) : (F(o, "mouseup", r._onDrop), F(o, "touchend", r._onDrop), F(o, "touchcancel", r._onDrop)), gt && this.nativeDraggable && (this.options.touchStartThreshold = 4, W.draggable = !0), H("delayStart", this, { evt: e }), a.delay && (!a.delayOnTouchOnly || t) && (!this.nativeDraggable || !(ht || mt))) {
1076
+ Dt(W, e.trim(), Rn);
1077
+ }), F(o, "dragover", Pn), F(o, "mousemove", Pn), F(o, "touchmove", Pn), a.supportPointer ? (F(o, "pointerup", r._onDrop), !this.nativeDraggable && F(o, "pointercancel", r._onDrop)) : (F(o, "mouseup", r._onDrop), F(o, "touchend", r._onDrop), F(o, "touchcancel", r._onDrop)), _t && this.nativeDraggable && (this.options.touchStartThreshold = 4, W.draggable = !0), H("delayStart", this, { evt: e }), a.delay && (!a.delayOnTouchOnly || t) && (!this.nativeDraggable || !(gt || ht))) {
1064
1078
  if (Q.eventCanceled) {
1065
1079
  this._onDrop();
1066
1080
  return;
@@ -1074,7 +1088,7 @@ Q.prototype = {
1074
1088
  Math.max(Math.abs(t.clientX - this._lastX), Math.abs(t.clientY - this._lastY)) >= Math.floor(this.options.touchStartThreshold / (this.nativeDraggable && window.devicePixelRatio || 1)) && this._disableDelayedDrag();
1075
1089
  },
1076
1090
  _disableDelayedDrag: function() {
1077
- W && Ln(W), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
1091
+ W && Rn(W), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
1078
1092
  },
1079
1093
  _disableDelayedDragEvents: function() {
1080
1094
  var e = this.el.ownerDocument;
@@ -1083,14 +1097,14 @@ Q.prototype = {
1083
1097
  _triggerDragStart: function(e, t) {
1084
1098
  t ||= e.pointerType == "touch" && e, !this.nativeDraggable || t ? this.options.supportPointer ? F(document, "pointermove", this._onTouchMove) : t ? F(document, "touchmove", this._onTouchMove) : F(document, "mousemove", this._onTouchMove) : (F(W, "dragend", this), F(q, "dragstart", this._onDragStart));
1085
1099
  try {
1086
- document.selection ? Gn(function() {
1100
+ document.selection ? Kn(function() {
1087
1101
  document.selection.empty();
1088
1102
  }) : window.getSelection().removeAllRanges();
1089
1103
  } catch {}
1090
1104
  },
1091
1105
  _dragStarted: function(e, t) {
1092
- if (rn = !1, q && W) {
1093
- H("dragStarted", this, { evt: t }), this.nativeDraggable && F(document, "dragover", Pn);
1106
+ if (an = !1, q && W) {
1107
+ H("dragStarted", this, { evt: t }), this.nativeDraggable && F(document, "dragover", Fn);
1094
1108
  var n = this.options;
1095
1109
  !e && L(W, n.dragClass, !1), L(W, n.ghostClass, !0), Q.active = this, e && this._appendGhost(), U({
1096
1110
  sortable: this,
@@ -1100,33 +1114,33 @@ Q.prototype = {
1100
1114
  } else this._nulling();
1101
1115
  },
1102
1116
  _emulateDragOver: function() {
1103
- if (cn) {
1104
- this._lastX = cn.clientX, this._lastY = cn.clientY, jn();
1105
- for (var e = document.elementFromPoint(cn.clientX, cn.clientY), t = e; e && e.shadowRoot && (e = e.shadowRoot.elementFromPoint(cn.clientX, cn.clientY), e !== t);) t = e;
1117
+ if (ln) {
1118
+ this._lastX = ln.clientX, this._lastY = ln.clientY, Mn();
1119
+ for (var e = document.elementFromPoint(ln.clientX, ln.clientY), t = e; e && e.shadowRoot && (e = e.shadowRoot.elementFromPoint(ln.clientX, ln.clientY), e !== t);) t = e;
1106
1120
  if (W.parentNode[V]._isOutsideThisEl(e), t) do {
1107
1121
  if (t[V]) {
1108
1122
  var n = void 0;
1109
1123
  if (n = t[V]._onDragOver({
1110
- clientX: cn.clientX,
1111
- clientY: cn.clientY,
1124
+ clientX: ln.clientX,
1125
+ clientY: ln.clientY,
1112
1126
  target: e,
1113
1127
  rootEl: t
1114
1128
  }), n && !this.options.dragoverBubble) break;
1115
1129
  }
1116
1130
  e = t;
1117
- } while (t = St(t));
1118
- Mn();
1131
+ } while (t = Ct(t));
1132
+ Nn();
1119
1133
  }
1120
1134
  },
1121
1135
  _onTouchMove: function(e) {
1122
- if (sn) {
1123
- var t = this.options, n = t.fallbackTolerance, r = t.fallbackOffset, i = e.touches ? e.touches[0] : e, a = K && Tt(K, !0), o = K && a && a.a, s = K && a && a.d, c = Cn && Z && jt(Z), l = (i.clientX - sn.clientX + r.x) / (o || 1) + (c ? c[0] - yn[0] : 0) / (o || 1), u = (i.clientY - sn.clientY + r.y) / (s || 1) + (c ? c[1] - yn[1] : 0) / (s || 1);
1124
- if (!Q.active && !rn) {
1136
+ if (cn) {
1137
+ var t = this.options, n = t.fallbackTolerance, r = t.fallbackOffset, i = e.touches ? e.touches[0] : e, a = K && Et(K, !0), o = K && a && a.a, s = K && a && a.d, c = wn && Z && Mt(Z), l = (i.clientX - cn.clientX + r.x) / (o || 1) + (c ? c[0] - bn[0] : 0) / (o || 1), u = (i.clientY - cn.clientY + r.y) / (s || 1) + (c ? c[1] - bn[1] : 0) / (s || 1);
1138
+ if (!Q.active && !an) {
1125
1139
  if (n && Math.max(Math.abs(i.clientX - this._lastX), Math.abs(i.clientY - this._lastY)) < n) return;
1126
1140
  this._onDragStart(e, !0);
1127
1141
  }
1128
1142
  if (K) {
1129
- a ? (a.e += l - (ln || 0), a.f += u - (un || 0)) : a = {
1143
+ a ? (a.e += l - (un || 0), a.f += u - (dn || 0)) : a = {
1130
1144
  a: 1,
1131
1145
  b: 0,
1132
1146
  c: 0,
@@ -1135,19 +1149,19 @@ Q.prototype = {
1135
1149
  f: u
1136
1150
  };
1137
1151
  var d = `matrix(${a.a},${a.b},${a.c},${a.d},${a.e},${a.f})`;
1138
- R(K, "webkitTransform", d), R(K, "mozTransform", d), R(K, "msTransform", d), R(K, "transform", d), ln = l, un = u, cn = i;
1152
+ R(K, "webkitTransform", d), R(K, "mozTransform", d), R(K, "msTransform", d), R(K, "transform", d), un = l, dn = u, ln = i;
1139
1153
  }
1140
1154
  e.cancelable && e.preventDefault();
1141
1155
  }
1142
1156
  },
1143
1157
  _appendGhost: function() {
1144
1158
  if (!K) {
1145
- var e = this.options.fallbackOnBody ? document.body : q, t = z(W, !0, Cn, !0, e), n = this.options;
1146
- if (Cn) {
1159
+ var e = this.options.fallbackOnBody ? document.body : q, t = z(W, !0, wn, !0, e), n = this.options;
1160
+ if (wn) {
1147
1161
  for (Z = e; R(Z, "position") === "static" && R(Z, "transform") === "none" && Z !== document;) Z = Z.parentNode;
1148
- Z !== document.body && Z !== document.documentElement ? (Z === document && (Z = Dt()), t.top += Z.scrollTop, t.left += Z.scrollLeft) : Z = Dt(), yn = jt(Z);
1162
+ Z !== document.body && Z !== document.documentElement ? (Z === document && (Z = Ot()), t.top += Z.scrollTop, t.left += Z.scrollLeft) : Z = Ot(), bn = Mt(Z);
1149
1163
  }
1150
- K = W.cloneNode(!0), L(K, n.ghostClass, !1), L(K, n.fallbackClass, !0), L(K, n.dragClass, !0), R(K, "transition", ""), R(K, "transform", ""), R(K, "box-sizing", "border-box"), R(K, "margin", 0), R(K, "top", t.top), R(K, "left", t.left), R(K, "width", t.width), R(K, "height", t.height), R(K, "opacity", "0.8"), R(K, "position", Cn ? "absolute" : "fixed"), R(K, "zIndex", "100000"), R(K, "pointerEvents", "none"), Q.ghost = K, e.appendChild(K), R(K, "transform-origin", dn / parseInt(K.style.width) * 100 + "% " + fn / parseInt(K.style.height) * 100 + "%");
1164
+ K = W.cloneNode(!0), L(K, n.ghostClass, !1), L(K, n.fallbackClass, !0), L(K, n.dragClass, !0), R(K, "transition", ""), R(K, "transform", ""), R(K, "box-sizing", "border-box"), R(K, "margin", 0), R(K, "top", t.top), R(K, "left", t.left), R(K, "width", t.width), R(K, "height", t.height), R(K, "opacity", "0.8"), R(K, "position", wn ? "absolute" : "fixed"), R(K, "zIndex", "100000"), R(K, "pointerEvents", "none"), Q.ghost = K, e.appendChild(K), R(K, "transform-origin", fn / parseInt(K.style.width) * 100 + "% " + pn / parseInt(K.style.height) * 100 + "%");
1151
1165
  }
1152
1166
  },
1153
1167
  _onDragStart: function(e, t) {
@@ -1156,16 +1170,16 @@ Q.prototype = {
1156
1170
  this._onDrop();
1157
1171
  return;
1158
1172
  }
1159
- H("setupClone", this), Q.eventCanceled || (J = Bt(W), J.removeAttribute("id"), J.draggable = !1, J.style["will-change"] = "", this._hideClone(), L(J, this.options.chosenClass, !1), Q.clone = J), n.cloneId = Gn(function() {
1173
+ H("setupClone", this), Q.eventCanceled || (J = Vt(W), J.removeAttribute("id"), J.draggable = !1, J.style["will-change"] = "", this._hideClone(), L(J, this.options.chosenClass, !1), Q.clone = J), n.cloneId = Kn(function() {
1160
1174
  H("clone", n), !Q.eventCanceled && (n.options.removeCloneOnHide || q.insertBefore(J, W), n._hideClone(), U({
1161
1175
  sortable: n,
1162
1176
  name: "clone"
1163
1177
  }));
1164
- }), !t && L(W, i.dragClass, !0), t ? (an = !0, n._loopId = setInterval(n._emulateDragOver, 50)) : (I(document, "mouseup", n._onDrop), I(document, "touchend", n._onDrop), I(document, "touchcancel", n._onDrop), r && (r.effectAllowed = "move", i.setData && i.setData.call(n, r, W)), F(document, "drop", n), R(W, "transform", "translateZ(0)")), rn = !0, n._dragStartId = Gn(n._dragStarted.bind(n, t, e)), F(document, "selectstart", n), pn = !0, window.getSelection().removeAllRanges(), _t && R(document.body, "user-select", "none");
1178
+ }), !t && L(W, i.dragClass, !0), t ? (on = !0, n._loopId = setInterval(n._emulateDragOver, 50)) : (I(document, "mouseup", n._onDrop), I(document, "touchend", n._onDrop), I(document, "touchcancel", n._onDrop), r && (r.effectAllowed = "move", i.setData && i.setData.call(n, r, W)), F(document, "drop", n), R(W, "transform", "translateZ(0)")), an = !0, n._dragStartId = Kn(n._dragStarted.bind(n, t, e)), F(document, "selectstart", n), mn = !0, window.getSelection().removeAllRanges(), vt && R(document.body, "user-select", "none");
1165
1179
  },
1166
1180
  _onDragOver: function(e) {
1167
- var t = this.el, n = e.target, r, i, a, o = this.options, s = o.group, c = Q.active, l = nn === s, u = o.sort, d = X || c, f, p = this, m = !1;
1168
- if (bn) return;
1181
+ var t = this.el, n = e.target, r, i, a, o = this.options, s = o.group, c = Q.active, l = rn === s, u = o.sort, d = X || c, f, p = this, m = !1;
1182
+ if (xn) return;
1169
1183
  function h(o, s) {
1170
1184
  H(o, p, P({
1171
1185
  evt: e,
@@ -1179,7 +1193,7 @@ Q.prototype = {
1179
1193
  target: n,
1180
1194
  completed: _,
1181
1195
  onMove: function(n, i) {
1182
- return In(q, t, W, r, n, z(n), e, i);
1196
+ return Ln(q, t, W, r, n, z(n), e, i);
1183
1197
  },
1184
1198
  changed: ee
1185
1199
  }, s));
@@ -1190,48 +1204,48 @@ Q.prototype = {
1190
1204
  function _(r) {
1191
1205
  return h("dragOverCompleted", { insertion: r }), r && (l ? c._hideClone() : c._showClone(p), p !== d && (L(W, X ? X.options.ghostClass : c.options.ghostClass, !1), L(W, o.ghostClass, !0)), X !== p && p !== Q.active ? X = p : p === Q.active && X && (X = null), d === p && (p._ignoreWhileAnimating = n), p.animateAll(function() {
1192
1206
  h("dragOverAnimationComplete"), p._ignoreWhileAnimating = null;
1193
- }), p !== d && (d.animateAll(), d._ignoreWhileAnimating = null)), (n === W && !W.animated || n === t && !n.animated) && (mn = null), !o.dragoverBubble && !e.rootEl && n !== document && (W.parentNode[V]._isOutsideThisEl(e.target), !r && Nn(e)), !o.dragoverBubble && e.stopPropagation && e.stopPropagation(), m = !0;
1207
+ }), p !== d && (d.animateAll(), d._ignoreWhileAnimating = null)), (n === W && !W.animated || n === t && !n.animated) && (hn = null), !o.dragoverBubble && !e.rootEl && n !== document && (W.parentNode[V]._isOutsideThisEl(e.target), !r && Pn(e)), !o.dragoverBubble && e.stopPropagation && e.stopPropagation(), m = !0;
1194
1208
  }
1195
1209
  function ee() {
1196
- Y = B(W), tn = B(W, o.draggable), U({
1210
+ Y = B(W), nn = B(W, o.draggable), U({
1197
1211
  sortable: p,
1198
1212
  name: "change",
1199
1213
  toEl: t,
1200
1214
  newIndex: Y,
1201
- newDraggableIndex: tn,
1215
+ newDraggableIndex: nn,
1202
1216
  originalEvent: e
1203
1217
  });
1204
1218
  }
1205
- if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), n = Ct(n, o.draggable, t, !0), h("dragOver"), Q.eventCanceled) return m;
1219
+ if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), n = wt(n, o.draggable, t, !0), h("dragOver"), Q.eventCanceled) return m;
1206
1220
  if (W.contains(e.target) || n.animated && n.animatingX && n.animatingY || p._ignoreWhileAnimating === n) return _(!1);
1207
- if (an = !1, c && !o.disabled && (l ? u || (a = G !== q) : X === this || (this.lastPutMode = nn.checkPull(this, c, W, e)) && s.checkPut(this, c, W, e))) {
1221
+ if (on = !1, c && !o.disabled && (l ? u || (a = G !== q) : X === this || (this.lastPutMode = rn.checkPull(this, c, W, e)) && s.checkPut(this, c, W, e))) {
1208
1222
  if (f = this._getDirection(e, n) === "vertical", r = z(W), h("dragOverValid"), Q.eventCanceled) return m;
1209
- if (a) return G = q, g(), this._hideClone(), h("revert"), Q.eventCanceled || (Xt ? q.insertBefore(W, Xt) : q.appendChild(W)), _(!0);
1210
- var v = At(t, o.draggable);
1211
- if (!v || Bn(e, f, this) && !v.animated) {
1223
+ if (a) return G = q, g(), this._hideClone(), h("revert"), Q.eventCanceled || (Zt ? q.insertBefore(W, Zt) : q.appendChild(W)), _(!0);
1224
+ var v = jt(t, o.draggable);
1225
+ if (!v || Vn(e, f, this) && !v.animated) {
1212
1226
  if (v === W) return _(!1);
1213
- if (v && t === e.target && (n = v), n && (i = z(n)), In(q, t, W, r, n, i, e, !!n) !== !1) return g(), v && v.nextSibling ? t.insertBefore(W, v.nextSibling) : t.appendChild(W), G = t, ee(), _(!0);
1214
- } else if (v && zn(e, f, this)) {
1215
- var y = kt(t, 0, o, !0);
1227
+ if (v && t === e.target && (n = v), n && (i = z(n)), Ln(q, t, W, r, n, i, e, !!n) !== !1) return g(), v && v.nextSibling ? t.insertBefore(W, v.nextSibling) : t.appendChild(W), G = t, ee(), _(!0);
1228
+ } else if (v && Bn(e, f, this)) {
1229
+ var y = At(t, 0, o, !0);
1216
1230
  if (y === W) return _(!1);
1217
- if (n = y, i = z(n), In(q, t, W, r, n, i, e, !1) !== !1) return g(), t.insertBefore(W, y), G = t, ee(), _(!0);
1231
+ if (n = y, i = z(n), Ln(q, t, W, r, n, i, e, !1) !== !1) return g(), t.insertBefore(W, y), G = t, ee(), _(!0);
1218
1232
  } else if (n.parentNode === t) {
1219
1233
  i = z(n);
1220
- var b = 0, x, S = W.parentNode !== t, C = !On(W.animated && W.toRect || r, n.animated && n.toRect || i, f), w = f ? "top" : "left", T = Ot(n, "top", "top") || Ot(W, "top", "top"), te = T ? T.scrollTop : void 0;
1221
- mn !== n && (x = i[w], gn = !1, _n = !C && o.invertSwap || S), b = Vn(e, n, i, f, C ? 1 : o.swapThreshold, o.invertedSwapThreshold == null ? o.swapThreshold : o.invertedSwapThreshold, _n, mn === n);
1222
- var E;
1234
+ var b = 0, te, x = W.parentNode !== t, S = !kn(W.animated && W.toRect || r, n.animated && n.toRect || i, f), C = f ? "top" : "left", w = kt(n, "top", "top") || kt(W, "top", "top"), ne = w ? w.scrollTop : void 0;
1235
+ hn !== n && (te = i[C], _n = !1, vn = !S && o.invertSwap || x), b = Hn(e, n, i, f, S ? 1 : o.swapThreshold, o.invertedSwapThreshold == null ? o.swapThreshold : o.invertedSwapThreshold, vn, hn === n);
1236
+ var T;
1223
1237
  if (b !== 0) {
1224
- var ne = B(W);
1238
+ var re = B(W);
1225
1239
  do
1226
- ne -= b, E = G.children[ne];
1227
- while (E && (R(E, "display") === "none" || E === K));
1240
+ re -= b, T = G.children[re];
1241
+ while (T && (R(T, "display") === "none" || T === K));
1228
1242
  }
1229
- if (b === 0 || E === n) return _(!1);
1230
- mn = n, hn = b;
1231
- var D = n.nextElementSibling, re = !1;
1232
- re = b === 1;
1233
- var ie = In(q, t, W, r, n, i, e, re);
1234
- if (ie !== !1) return (ie === 1 || ie === -1) && (re = ie === 1), bn = !0, setTimeout(Rn, 30), g(), re && !D ? t.appendChild(W) : n.parentNode.insertBefore(W, re ? D : n), T && zt(T, 0, te - T.scrollTop), G = W.parentNode, x !== void 0 && !_n && (vn = Math.abs(x - z(n)[w])), ee(), _(!0);
1243
+ if (b === 0 || T === n) return _(!1);
1244
+ hn = n, gn = b;
1245
+ var E = n.nextElementSibling, ie = !1;
1246
+ ie = b === 1;
1247
+ var ae = Ln(q, t, W, r, n, i, e, ie);
1248
+ if (ae !== !1) return (ae === 1 || ae === -1) && (ie = ae === 1), xn = !0, setTimeout(zn, 30), g(), ie && !E ? t.appendChild(W) : n.parentNode.insertBefore(W, ie ? E : n), w && Bt(w, 0, ne - w.scrollTop), G = W.parentNode, te !== void 0 && !vn && (yn = Math.abs(te - z(n)[C])), ee(), _(!0);
1235
1249
  }
1236
1250
  if (t.contains(W)) return _(!1);
1237
1251
  }
@@ -1239,7 +1253,7 @@ Q.prototype = {
1239
1253
  },
1240
1254
  _ignoreWhileAnimating: null,
1241
1255
  _offMoveEvents: function() {
1242
- I(document, "mousemove", this._onTouchMove), I(document, "touchmove", this._onTouchMove), I(document, "pointermove", this._onTouchMove), I(document, "dragover", Nn), I(document, "mousemove", Nn), I(document, "touchmove", Nn);
1256
+ I(document, "mousemove", this._onTouchMove), I(document, "touchmove", this._onTouchMove), I(document, "pointermove", this._onTouchMove), I(document, "dragover", Pn), I(document, "mousemove", Pn), I(document, "touchmove", Pn);
1243
1257
  },
1244
1258
  _offUpEvents: function() {
1245
1259
  var e = this.el.ownerDocument;
@@ -1247,18 +1261,18 @@ Q.prototype = {
1247
1261
  },
1248
1262
  _onDrop: function(e) {
1249
1263
  var t = this.el, n = this.options;
1250
- if (Y = B(W), tn = B(W, n.draggable), H("drop", this, { evt: e }), G = W && W.parentNode, Y = B(W), tn = B(W, n.draggable), Q.eventCanceled) {
1264
+ if (Y = B(W), nn = B(W, n.draggable), H("drop", this, { evt: e }), G = W && W.parentNode, Y = B(W), nn = B(W, n.draggable), Q.eventCanceled) {
1251
1265
  this._nulling();
1252
1266
  return;
1253
1267
  }
1254
- rn = !1, _n = !1, gn = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), Kn(this.cloneId), Kn(this._dragStartId), this.nativeDraggable && (I(document, "drop", this), I(t, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), _t && R(document.body, "user-select", ""), R(W, "transform", ""), e && (pn && (e.cancelable && e.preventDefault(), !n.dropBubble && e.stopPropagation()), K && K.parentNode && K.parentNode.removeChild(K), (q === G || X && X.lastPutMode !== "clone") && J && J.parentNode && J.parentNode.removeChild(J), W && (this.nativeDraggable && I(W, "dragend", this), Ln(W), W.style["will-change"] = "", pn && !rn && L(W, X ? X.options.ghostClass : this.options.ghostClass, !1), L(W, this.options.chosenClass, !1), U({
1268
+ an = !1, vn = !1, _n = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), qn(this.cloneId), qn(this._dragStartId), this.nativeDraggable && (I(document, "drop", this), I(t, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), vt && R(document.body, "user-select", ""), R(W, "transform", ""), e && (mn && (e.cancelable && e.preventDefault(), !n.dropBubble && e.stopPropagation()), K && K.parentNode && K.parentNode.removeChild(K), (q === G || X && X.lastPutMode !== "clone") && J && J.parentNode && J.parentNode.removeChild(J), W && (this.nativeDraggable && I(W, "dragend", this), Rn(W), W.style["will-change"] = "", mn && !an && L(W, X ? X.options.ghostClass : this.options.ghostClass, !1), L(W, this.options.chosenClass, !1), U({
1255
1269
  sortable: this,
1256
1270
  name: "unchoose",
1257
1271
  toEl: G,
1258
1272
  newIndex: null,
1259
1273
  newDraggableIndex: null,
1260
1274
  originalEvent: e
1261
- }), q === G ? Y !== $t && Y >= 0 && (U({
1275
+ }), q === G ? Y !== en && Y >= 0 && (U({
1262
1276
  sortable: this,
1263
1277
  name: "update",
1264
1278
  toEl: G,
@@ -1290,7 +1304,7 @@ Q.prototype = {
1290
1304
  name: "sort",
1291
1305
  toEl: G,
1292
1306
  originalEvent: e
1293
- })), X && X.save()), Q.active && ((Y == null || Y === -1) && (Y = $t, tn = en), U({
1307
+ })), X && X.save()), Q.active && ((Y == null || Y === -1) && (Y = en, nn = tn), U({
1294
1308
  sortable: this,
1295
1309
  name: "end",
1296
1310
  toEl: G,
@@ -1298,11 +1312,11 @@ Q.prototype = {
1298
1312
  }), this.save()))), this._nulling();
1299
1313
  },
1300
1314
  _nulling: function() {
1301
- H("nulling", this), q = W = G = K = Xt = J = Zt = Qt = sn = cn = pn = Y = tn = $t = en = mn = hn = X = nn = Q.dragged = Q.ghost = Q.clone = Q.active = null;
1315
+ H("nulling", this), q = W = G = K = Zt = J = Qt = $t = cn = ln = mn = Y = nn = en = tn = hn = gn = X = rn = Q.dragged = Q.ghost = Q.clone = Q.active = null;
1302
1316
  var e = this.el;
1303
- xn.forEach(function(t) {
1317
+ Sn.forEach(function(t) {
1304
1318
  e.contains(t) && (t.checked = !0);
1305
- }), xn.length = ln = un = 0;
1319
+ }), Sn.length = un = dn = 0;
1306
1320
  },
1307
1321
  handleEvent: function(e) {
1308
1322
  switch (e.type) {
@@ -1312,20 +1326,20 @@ Q.prototype = {
1312
1326
  break;
1313
1327
  case "dragenter":
1314
1328
  case "dragover":
1315
- W && (this._onDragOver(e), Fn(e));
1329
+ W && (this._onDragOver(e), In(e));
1316
1330
  break;
1317
1331
  case "selectstart": e.preventDefault();
1318
1332
  }
1319
1333
  },
1320
1334
  toArray: function() {
1321
- for (var e = [], t, n = this.el.children, r = 0, i = n.length, a = this.options; r < i; r++) t = n[r], Ct(t, a.draggable, this.el, !1) && e.push(t.getAttribute(a.dataIdAttr) || Un(t));
1335
+ for (var e = [], t, n = this.el.children, r = 0, i = n.length, a = this.options; r < i; r++) t = n[r], wt(t, a.draggable, this.el, !1) && e.push(t.getAttribute(a.dataIdAttr) || Wn(t));
1322
1336
  return e;
1323
1337
  },
1324
1338
  sort: function(e, t) {
1325
1339
  var n = {}, r = this.el;
1326
1340
  this.toArray().forEach(function(e, t) {
1327
1341
  var i = r.children[t];
1328
- Ct(i, this.options.draggable, r, !1) && (n[e] = i);
1342
+ wt(i, this.options.draggable, r, !1) && (n[e] = i);
1329
1343
  }, this), t && this.captureAnimationState(), e.forEach(function(e) {
1330
1344
  n[e] && (r.removeChild(n[e]), r.appendChild(n[e]));
1331
1345
  }), t && this.animateAll();
@@ -1335,25 +1349,25 @@ Q.prototype = {
1335
1349
  e && e.set && e.set(this);
1336
1350
  },
1337
1351
  closest: function(e, t) {
1338
- return Ct(e, t || this.options.draggable, this.el, !1);
1352
+ return wt(e, t || this.options.draggable, this.el, !1);
1339
1353
  },
1340
1354
  option: function(e, t) {
1341
1355
  var n = this.options;
1342
1356
  if (t === void 0) return n[e];
1343
- var r = qt.modifyOption(this, e, t);
1344
- n[e] = r === void 0 ? t : r, e === "group" && An(n);
1357
+ var r = Jt.modifyOption(this, e, t);
1358
+ n[e] = r === void 0 ? t : r, e === "group" && jn(n);
1345
1359
  },
1346
1360
  destroy: function() {
1347
1361
  H("destroy", this);
1348
1362
  var e = this.el;
1349
1363
  e[V] = null, I(e, "mousedown", this._onTapStart), I(e, "touchstart", this._onTapStart), I(e, "pointerdown", this._onTapStart), this.nativeDraggable && (I(e, "dragover", this), I(e, "dragenter", this)), Array.prototype.forEach.call(e.querySelectorAll("[draggable]"), function(e) {
1350
1364
  e.removeAttribute("draggable");
1351
- }), this._onDrop(), this._disableDelayedDragEvents(), on.splice(on.indexOf(this.el), 1), this.el = e = null;
1365
+ }), this._onDrop(), this._disableDelayedDragEvents(), sn.splice(sn.indexOf(this.el), 1), this.el = e = null;
1352
1366
  },
1353
1367
  _hideClone: function() {
1354
- if (!Qt) {
1368
+ if (!$t) {
1355
1369
  if (H("hideClone", this), Q.eventCanceled) return;
1356
- R(J, "display", "none"), this.options.removeCloneOnHide && J.parentNode && J.parentNode.removeChild(J), Qt = !0;
1370
+ R(J, "display", "none"), this.options.removeCloneOnHide && J.parentNode && J.parentNode.removeChild(J), $t = !0;
1357
1371
  }
1358
1372
  },
1359
1373
  _showClone: function(e) {
@@ -1361,86 +1375,86 @@ Q.prototype = {
1361
1375
  this._hideClone();
1362
1376
  return;
1363
1377
  }
1364
- if (Qt) {
1378
+ if ($t) {
1365
1379
  if (H("showClone", this), Q.eventCanceled) return;
1366
- W.parentNode == q && !this.options.group.revertClone ? q.insertBefore(J, W) : Xt ? q.insertBefore(J, Xt) : q.appendChild(J), this.options.group.revertClone && this.animate(W, J), R(J, "display", ""), Qt = !1;
1380
+ W.parentNode == q && !this.options.group.revertClone ? q.insertBefore(J, W) : Zt ? q.insertBefore(J, Zt) : q.appendChild(J), this.options.group.revertClone && this.animate(W, J), R(J, "display", ""), $t = !1;
1367
1381
  }
1368
1382
  }
1369
1383
  };
1370
- function Fn(e) {
1384
+ function In(e) {
1371
1385
  e.dataTransfer && (e.dataTransfer.dropEffect = "move"), e.cancelable && e.preventDefault();
1372
1386
  }
1373
- function In(e, t, n, r, i, a, o, s) {
1387
+ function Ln(e, t, n, r, i, a, o, s) {
1374
1388
  var c, l = e[V], u = l.options.onMove, d;
1375
- return window.CustomEvent && !mt && !ht ? c = new CustomEvent("move", {
1389
+ return window.CustomEvent && !ht && !gt ? c = new CustomEvent("move", {
1376
1390
  bubbles: !0,
1377
1391
  cancelable: !0
1378
1392
  }) : (c = document.createEvent("Event"), c.initEvent("move", !0, !0)), c.to = t, c.from = e, c.dragged = n, c.draggedRect = r, c.related = i || t, c.relatedRect = a || z(t), c.willInsertAfter = s, c.originalEvent = o, e.dispatchEvent(c), u && (d = u.call(l, c, o)), d;
1379
1393
  }
1380
- function Ln(e) {
1394
+ function Rn(e) {
1381
1395
  e.draggable = !1;
1382
1396
  }
1383
- function Rn() {
1384
- bn = !1;
1397
+ function zn() {
1398
+ xn = !1;
1385
1399
  }
1386
- function zn(e, t, n) {
1387
- var r = z(kt(n.el, 0, n.options, !0)), i = Vt(n.el, n.options, K), a = 10;
1400
+ function Bn(e, t, n) {
1401
+ var r = z(At(n.el, 0, n.options, !0)), i = Ht(n.el, n.options, K), a = 10;
1388
1402
  return t ? e.clientX < i.left - a || e.clientY < r.top && e.clientX < r.right : e.clientY < i.top - a || e.clientY < r.bottom && e.clientX < r.left;
1389
1403
  }
1390
- function Bn(e, t, n) {
1391
- var r = z(At(n.el, n.options.draggable)), i = Vt(n.el, n.options, K), a = 10;
1404
+ function Vn(e, t, n) {
1405
+ var r = z(jt(n.el, n.options.draggable)), i = Ht(n.el, n.options, K), a = 10;
1392
1406
  return t ? e.clientX > i.right + a || e.clientY > r.bottom && e.clientX > r.left : e.clientY > i.bottom + a || e.clientX > r.right && e.clientY > r.top;
1393
1407
  }
1394
- function Vn(e, t, n, r, i, a, o, s) {
1408
+ function Hn(e, t, n, r, i, a, o, s) {
1395
1409
  var c = r ? e.clientY : e.clientX, l = r ? n.height : n.width, u = r ? n.top : n.left, d = r ? n.bottom : n.right, f = !1;
1396
1410
  if (!o) {
1397
- if (s && vn < l * i) {
1398
- if (!gn && (hn === 1 ? c > u + l * a / 2 : c < d - l * a / 2) && (gn = !0), gn) f = !0;
1399
- else if (hn === 1 ? c < u + vn : c > d - vn) return -hn;
1400
- } else if (c > u + l * (1 - i) / 2 && c < d - l * (1 - i) / 2) return Hn(t);
1411
+ if (s && yn < l * i) {
1412
+ if (!_n && (gn === 1 ? c > u + l * a / 2 : c < d - l * a / 2) && (_n = !0), _n) f = !0;
1413
+ else if (gn === 1 ? c < u + yn : c > d - yn) return -gn;
1414
+ } else if (c > u + l * (1 - i) / 2 && c < d - l * (1 - i) / 2) return Un(t);
1401
1415
  }
1402
1416
  return f ||= o, f && (c < u + l * a / 2 || c > d - l * a / 2) ? c > u + l / 2 ? 1 : -1 : 0;
1403
1417
  }
1404
- function Hn(e) {
1418
+ function Un(e) {
1405
1419
  return B(W) < B(e) ? 1 : -1;
1406
1420
  }
1407
- function Un(e) {
1421
+ function Wn(e) {
1408
1422
  for (var t = e.tagName + e.className + e.src + e.href + e.textContent, n = t.length, r = 0; n--;) r += t.charCodeAt(n);
1409
1423
  return r.toString(36);
1410
1424
  }
1411
- function Wn(e) {
1412
- xn.length = 0;
1425
+ function Gn(e) {
1426
+ Sn.length = 0;
1413
1427
  for (var t = e.getElementsByTagName("input"), n = t.length; n--;) {
1414
1428
  var r = t[n];
1415
- r.checked && xn.push(r);
1429
+ r.checked && Sn.push(r);
1416
1430
  }
1417
1431
  }
1418
- function Gn(e) {
1432
+ function Kn(e) {
1419
1433
  return setTimeout(e, 0);
1420
1434
  }
1421
- function Kn(e) {
1435
+ function qn(e) {
1422
1436
  return clearTimeout(e);
1423
1437
  }
1424
- Sn && F(document, "touchmove", function(e) {
1425
- (Q.active || rn) && e.cancelable && e.preventDefault();
1438
+ Cn && F(document, "touchmove", function(e) {
1439
+ (Q.active || an) && e.cancelable && e.preventDefault();
1426
1440
  }), Q.utils = {
1427
1441
  on: F,
1428
1442
  off: I,
1429
1443
  css: R,
1430
- find: Et,
1444
+ find: Dt,
1431
1445
  is: function(e, t) {
1432
- return !!Ct(e, t, e, !1);
1446
+ return !!wt(e, t, e, !1);
1433
1447
  },
1434
- extend: Pt,
1435
- throttle: Lt,
1436
- closest: Ct,
1448
+ extend: Ft,
1449
+ throttle: Rt,
1450
+ closest: wt,
1437
1451
  toggleClass: L,
1438
- clone: Bt,
1452
+ clone: Vt,
1439
1453
  index: B,
1440
- nextTick: Gn,
1441
- cancelNextTick: Kn,
1442
- detectDirection: Dn,
1443
- getChild: kt,
1454
+ nextTick: Kn,
1455
+ cancelNextTick: qn,
1456
+ detectDirection: On,
1457
+ getChild: At,
1444
1458
  expando: V
1445
1459
  }, Q.get = function(e) {
1446
1460
  return e[V];
@@ -1448,13 +1462,13 @@ Sn && F(document, "touchmove", function(e) {
1448
1462
  var e = [...arguments];
1449
1463
  e[0].constructor === Array && (e = e[0]), e.forEach(function(e) {
1450
1464
  if (!e.prototype || !e.prototype.constructor) throw `Sortable: Mounted plugin must be a constructor function, not ${{}.toString.call(e)}`;
1451
- e.utils && (Q.utils = P(P({}, Q.utils), e.utils)), qt.mount(e);
1465
+ e.utils && (Q.utils = P(P({}, Q.utils), e.utils)), Jt.mount(e);
1452
1466
  });
1453
1467
  }, Q.create = function(e, t) {
1454
1468
  return new Q(e, t);
1455
- }, Q.version = ft;
1456
- var $ = [], qn, Jn, Yn = !1, Xn, Zn, Qn, $n;
1457
- function er() {
1469
+ }, Q.version = pt;
1470
+ var $ = [], Jn, Yn, Xn = !1, Zn, Qn, $n, er;
1471
+ function tr() {
1458
1472
  function e() {
1459
1473
  for (var e in this.defaults = {
1460
1474
  scroll: !0,
@@ -1474,63 +1488,63 @@ function er() {
1474
1488
  !this.options.dragOverBubble && !t.rootEl && this._handleAutoScroll(t);
1475
1489
  },
1476
1490
  drop: function() {
1477
- this.sortable.nativeDraggable ? I(document, "dragover", this._handleAutoScroll) : (I(document, "pointermove", this._handleFallbackAutoScroll), I(document, "touchmove", this._handleFallbackAutoScroll), I(document, "mousemove", this._handleFallbackAutoScroll)), nr(), tr(), Rt();
1491
+ this.sortable.nativeDraggable ? I(document, "dragover", this._handleAutoScroll) : (I(document, "pointermove", this._handleFallbackAutoScroll), I(document, "touchmove", this._handleFallbackAutoScroll), I(document, "mousemove", this._handleFallbackAutoScroll)), rr(), nr(), zt();
1478
1492
  },
1479
1493
  nulling: function() {
1480
- Qn = Jn = qn = Yn = $n = Xn = Zn = null, $.length = 0;
1494
+ $n = Yn = Jn = Xn = er = Zn = Qn = null, $.length = 0;
1481
1495
  },
1482
1496
  _handleFallbackAutoScroll: function(e) {
1483
1497
  this._handleAutoScroll(e, !0);
1484
1498
  },
1485
1499
  _handleAutoScroll: function(e, t) {
1486
1500
  var n = this, r = (e.touches ? e.touches[0] : e).clientX, i = (e.touches ? e.touches[0] : e).clientY, a = document.elementFromPoint(r, i);
1487
- if (Qn = e, t || this.options.forceAutoScrollFallback || ht || mt || _t) {
1488
- rr(e, this.options, a, t);
1489
- var o = Nt(a, !0);
1490
- Yn && (!$n || r !== Xn || i !== Zn) && ($n && nr(), $n = setInterval(function() {
1491
- var a = Nt(document.elementFromPoint(r, i), !0);
1492
- a !== o && (o = a, tr()), rr(e, n.options, a, t);
1493
- }, 10), Xn = r, Zn = i);
1501
+ if ($n = e, t || this.options.forceAutoScrollFallback || gt || ht || vt) {
1502
+ ir(e, this.options, a, t);
1503
+ var o = Pt(a, !0);
1504
+ Xn && (!er || r !== Zn || i !== Qn) && (er && rr(), er = setInterval(function() {
1505
+ var a = Pt(document.elementFromPoint(r, i), !0);
1506
+ a !== o && (o = a, nr()), ir(e, n.options, a, t);
1507
+ }, 10), Zn = r, Qn = i);
1494
1508
  } else {
1495
- if (!this.options.bubbleScroll || Nt(a, !0) === Dt()) {
1496
- tr();
1509
+ if (!this.options.bubbleScroll || Pt(a, !0) === Ot()) {
1510
+ nr();
1497
1511
  return;
1498
1512
  }
1499
- rr(e, this.options, Nt(a, !1), !1);
1513
+ ir(e, this.options, Pt(a, !1), !1);
1500
1514
  }
1501
1515
  }
1502
- }, N(e, {
1516
+ }, st(e, {
1503
1517
  pluginName: "scroll",
1504
1518
  initializeByDefault: !0
1505
1519
  });
1506
1520
  }
1507
- function tr() {
1521
+ function nr() {
1508
1522
  $.forEach(function(e) {
1509
1523
  clearInterval(e.pid);
1510
1524
  }), $ = [];
1511
1525
  }
1512
- function nr() {
1513
- clearInterval($n);
1526
+ function rr() {
1527
+ clearInterval(er);
1514
1528
  }
1515
- var rr = Lt(function(e, t, n, r) {
1529
+ var ir = Rt(function(e, t, n, r) {
1516
1530
  if (t.scroll) {
1517
- var i = (e.touches ? e.touches[0] : e).clientX, a = (e.touches ? e.touches[0] : e).clientY, o = t.scrollSensitivity, s = t.scrollSpeed, c = Dt(), l = !1, u;
1518
- Jn !== n && (Jn = n, tr(), qn = t.scroll, u = t.scrollFn, qn === !0 && (qn = Nt(n, !0)));
1519
- var d = 0, f = qn;
1531
+ var i = (e.touches ? e.touches[0] : e).clientX, a = (e.touches ? e.touches[0] : e).clientY, o = t.scrollSensitivity, s = t.scrollSpeed, c = Ot(), l = !1, u;
1532
+ Yn !== n && (Yn = n, nr(), Jn = t.scroll, u = t.scrollFn, Jn === !0 && (Jn = Pt(n, !0)));
1533
+ var d = 0, f = Jn;
1520
1534
  do {
1521
- var p = f, m = z(p), h = m.top, g = m.bottom, _ = m.left, ee = m.right, v = m.width, y = m.height, b = void 0, x = void 0, S = p.scrollWidth, C = p.scrollHeight, w = R(p), T = p.scrollLeft, te = p.scrollTop;
1522
- p === c ? (b = v < S && (w.overflowX === "auto" || w.overflowX === "scroll" || w.overflowX === "visible"), x = y < C && (w.overflowY === "auto" || w.overflowY === "scroll" || w.overflowY === "visible")) : (b = v < S && (w.overflowX === "auto" || w.overflowX === "scroll"), x = y < C && (w.overflowY === "auto" || w.overflowY === "scroll"));
1523
- var E = b && (Math.abs(ee - i) <= o && T + v < S) - (Math.abs(_ - i) <= o && !!T), ne = x && (Math.abs(g - a) <= o && te + y < C) - (Math.abs(h - a) <= o && !!te);
1524
- if (!$[d]) for (var D = 0; D <= d; D++) $[D] || ($[D] = {});
1525
- ($[d].vx != E || $[d].vy != ne || $[d].el !== p) && ($[d].el = p, $[d].vx = E, $[d].vy = ne, clearInterval($[d].pid), (E != 0 || ne != 0) && (l = !0, $[d].pid = setInterval(function() {
1526
- r && this.layer === 0 && Q.active._onTouchMove(Qn);
1535
+ var p = f, m = z(p), h = m.top, g = m.bottom, _ = m.left, ee = m.right, v = m.width, y = m.height, b = void 0, te = void 0, x = p.scrollWidth, S = p.scrollHeight, C = R(p), w = p.scrollLeft, ne = p.scrollTop;
1536
+ p === c ? (b = v < x && (C.overflowX === "auto" || C.overflowX === "scroll" || C.overflowX === "visible"), te = y < S && (C.overflowY === "auto" || C.overflowY === "scroll" || C.overflowY === "visible")) : (b = v < x && (C.overflowX === "auto" || C.overflowX === "scroll"), te = y < S && (C.overflowY === "auto" || C.overflowY === "scroll"));
1537
+ var T = b && (Math.abs(ee - i) <= o && w + v < x) - (Math.abs(_ - i) <= o && !!w), re = te && (Math.abs(g - a) <= o && ne + y < S) - (Math.abs(h - a) <= o && !!ne);
1538
+ if (!$[d]) for (var E = 0; E <= d; E++) $[E] || ($[E] = {});
1539
+ ($[d].vx != T || $[d].vy != re || $[d].el !== p) && ($[d].el = p, $[d].vx = T, $[d].vy = re, clearInterval($[d].pid), (T != 0 || re != 0) && (l = !0, $[d].pid = setInterval(function() {
1540
+ r && this.layer === 0 && Q.active._onTouchMove($n);
1527
1541
  var t = $[this.layer].vy ? $[this.layer].vy * s : 0, n = $[this.layer].vx ? $[this.layer].vx * s : 0;
1528
- (typeof u != "function" || u.call(Q.dragged.parentNode[V], n, t, e, Qn, $[this.layer].el) === "continue") && zt($[this.layer].el, n, t);
1542
+ (typeof u != "function" || u.call(Q.dragged.parentNode[V], n, t, e, $n, $[this.layer].el) === "continue") && Bt($[this.layer].el, n, t);
1529
1543
  }.bind({ layer: d }), 24))), d++;
1530
- } while (t.bubbleScroll && f !== c && (f = Nt(f, !1)));
1531
- Yn = l;
1544
+ } while (t.bubbleScroll && f !== c && (f = Pt(f, !1)));
1545
+ Xn = l;
1532
1546
  }
1533
- }, 30), ir = function(e) {
1547
+ }, 30), ar = function(e) {
1534
1548
  var t = e.originalEvent, n = e.putSortable, r = e.dragEl, i = e.activeSortable, a = e.dispatchSortableEvent, o = e.hideGhostForTarget, s = e.unhideGhostForTarget;
1535
1549
  if (t) {
1536
1550
  var c = n || i;
@@ -1542,8 +1556,8 @@ var rr = Lt(function(e, t, n, r) {
1542
1556
  }));
1543
1557
  }
1544
1558
  };
1545
- function ar() {}
1546
- ar.prototype = {
1559
+ function or() {}
1560
+ or.prototype = {
1547
1561
  startIndex: null,
1548
1562
  dragStart: function(e) {
1549
1563
  var t = e.oldDraggableIndex;
@@ -1552,22 +1566,22 @@ ar.prototype = {
1552
1566
  onSpill: function(e) {
1553
1567
  var t = e.dragEl, n = e.putSortable;
1554
1568
  this.sortable.captureAnimationState(), n && n.captureAnimationState();
1555
- var r = kt(this.sortable.el, this.startIndex, this.options);
1569
+ var r = At(this.sortable.el, this.startIndex, this.options);
1556
1570
  r ? this.sortable.el.insertBefore(t, r) : this.sortable.el.appendChild(t), this.sortable.animateAll(), n && n.animateAll();
1557
1571
  },
1558
- drop: ir
1559
- }, N(ar, { pluginName: "revertOnSpill" });
1560
- function or() {}
1561
- or.prototype = {
1572
+ drop: ar
1573
+ }, st(or, { pluginName: "revertOnSpill" });
1574
+ function sr() {}
1575
+ sr.prototype = {
1562
1576
  onSpill: function(e) {
1563
1577
  var t = e.dragEl, n = e.putSortable || this.sortable;
1564
1578
  n.captureAnimationState(), t.parentNode && t.parentNode.removeChild(t), n.animateAll();
1565
1579
  },
1566
- drop: ir
1567
- }, N(or, { pluginName: "removeOnSpill" }), Q.mount(new er()), Q.mount(or, ar);
1580
+ drop: ar
1581
+ }, st(sr, { pluginName: "removeOnSpill" }), Q.mount(new tr()), Q.mount(sr, or);
1568
1582
  //#endregion
1569
1583
  //#region src/useTabsDrag.ts
1570
- function sr(e) {
1584
+ function cr(e) {
1571
1585
  let t, n = [];
1572
1586
  function r(e) {
1573
1587
  return e?.getAttribute("data-tab-id") ?? e?.querySelector("[data-tab-id]")?.getAttribute("data-tab-id") ?? void 0;
@@ -1604,7 +1618,7 @@ function sr(e) {
1604
1618
  }
1605
1619
  }));
1606
1620
  }
1607
- se([
1621
+ ce([
1608
1622
  e.element,
1609
1623
  e.items,
1610
1624
  e.enabled
@@ -1615,8 +1629,8 @@ function sr(e) {
1615
1629
  }
1616
1630
  //#endregion
1617
1631
  //#region src/useTabsNavState.ts
1618
- function cr(e, t) {
1619
- let n = E(!1), r;
1632
+ function lr(e, t) {
1633
+ let n = T(!1), r;
1620
1634
  function i() {
1621
1635
  let e = t.value, r = e?.parentElement;
1622
1636
  n.value = !!(e && r && e.scrollWidth > r.clientWidth + 1);
@@ -1633,7 +1647,7 @@ function cr(e, t) {
1633
1647
  function o(t) {
1634
1648
  _(() => e.value?.querySelector(`[data-tab-id="${t}"]`)?.closest("[role=\"tab\"]")?.focus());
1635
1649
  }
1636
- return se([e, t], a, {
1650
+ return ce([e, t], a, {
1637
1651
  immediate: !0,
1638
1652
  flush: "post"
1639
1653
  }), b(() => r?.disconnect()), {
@@ -1643,16 +1657,16 @@ function cr(e, t) {
1643
1657
  }
1644
1658
  //#endregion
1645
1659
  //#region src/OgTabs.vue?vue&type=script&setup=true&lang.ts
1646
- var lr = ["aria-busy"], ur = {
1660
+ var ur = ["aria-busy"], dr = {
1647
1661
  key: 0,
1648
1662
  class: "og-tabs__header"
1649
- }, dr = {
1663
+ }, fr = {
1650
1664
  key: 1,
1651
1665
  class: "og-tabs__empty"
1652
- }, fr = {
1653
- key: 2,
1654
- class: "og-tabs__bar"
1655
- }, pr = { class: "og-tabs__actions" }, mr = ["aria-label"], hr = /* @__PURE__ */ m({
1666
+ }, pr = {
1667
+ key: 0,
1668
+ class: "og-tabs__actions"
1669
+ }, mr = ["aria-label"], hr = /* @__PURE__ */ m({
1656
1670
  inheritAttrs: !1,
1657
1671
  __name: "OgTabs",
1658
1672
  props: {
@@ -1696,294 +1710,309 @@ var lr = ["aria-busy"], ur = {
1696
1710
  "tab-remove"
1697
1711
  ],
1698
1712
  setup(t, { expose: n, emit: i }) {
1699
- let o = t, m = i, ee = ie();
1713
+ let o = t, d = i, m = ae();
1700
1714
  function y(e) {
1701
- if (Ve(e)) throw TypeError("[OgTabs] Duplicate tab keys are not supported.");
1715
+ if (He(e)) throw TypeError("[OgTabs] Duplicate tab keys are not supported.");
1702
1716
  }
1703
1717
  y(o.items);
1704
- let b = e(), x = ae("tabsRoot"), te = ae("nativeTabs"), E = C(), re = C({
1718
+ let b = e(), te = oe("tabsRoot"), ne = oe("nativeTabs"), T = S(), ie = S({
1705
1719
  x: 0,
1706
1720
  y: 0
1707
- }), oe = C(!1), ce = C(), le = C(), de = s(() => o.variant ?? b?.variant ?? "default"), fe = s(() => o.density ?? b?.density ?? "default"), _e = s(() => o.renderContent ?? b?.renderContent ?? !0), ye = s(() => ({
1721
+ }), se = S(!1), le = S(), ue = S(), fe = s(() => o.variant ?? b?.variant ?? "default"), pe = s(() => o.density ?? b?.density ?? "default"), ve = s(() => o.renderContent ?? b?.renderContent ?? !0), be = s(() => ({
1708
1722
  ...b?.features,
1709
1723
  ...o.features
1710
- })), xe = s(() => ({
1724
+ })), Se = s(() => ({
1711
1725
  ...b?.tabsProps,
1712
1726
  ...o.tabsProps
1713
- })), k = s(() => be(r, b?.localeSource?.value, b?.locale, o.locale)), Te = s(() => ({
1727
+ })), O = s(() => xe(r, b?.localeSource?.value, b?.locale, o.locale)), De = s(() => ({
1714
1728
  ...b?.contextMenu,
1715
1729
  ...o.contextMenu
1716
- })), Ee = s(() => o.minTabWidth ?? b?.minTabWidth), De = s(() => o.maxTabWidth ?? b?.maxTabWidth), Oe = s(() => o.themeColor ?? b?.themeColor), je = s(() => o.sticky ?? b?.sticky), Fe = s(() => o.finderThreshold ?? b?.finderThreshold ?? 8), Ie = s(() => (y(o.items), o.items)), ze = s(() => Ae(Ie.value)), j = s(() => o.modelValue), Be = s(() => A(Ie.value, j.value)), He = s(() => j.value === void 0 ? void 0 : M(j.value)), Ue = s(() => ({
1717
- ...xe.value,
1718
- modelValue: He.value ?? ""
1719
- })), We = s(() => te.value?.tabNavRef?.tabListRef ?? null), Ge = s(() => Te.value.enabled !== !1), Ke = s(() => new Set(Te.value.hiddenActions)), qe = s(() => $e(Ee.value)), Je = s(() => $e(De.value) ?? "240px"), Ye = cr(x, We), Ze = s(() => Qe("finder") && (Ye.overflowed.value || ze.value.length >= Fe.value));
1720
- function Qe(e) {
1721
- return e === "pin" || e === "drag" ? ye.value[e] === !0 : ye.value[e] !== !1;
1722
- }
1723
- function $e(e) {
1724
- return typeof e == "number" ? `${e}px` : e;
1725
- }
1730
+ })), Oe = s(() => o.minTabWidth ?? b?.minTabWidth), ke = s(() => o.maxTabWidth ?? b?.maxTabWidth), Ae = s(() => o.themeColor ?? b?.themeColor), Ne = s(() => o.sticky ?? b?.sticky), Le = s(() => o.finderThreshold ?? b?.finderThreshold ?? 8), Re = s(() => (y(o.items), o.items)), A = s(() => Me(Re.value)), j = s(() => o.modelValue), Ve = s(() => k(Re.value, j.value)), Ue = s(() => j.value === void 0 ? void 0 : M(j.value)), We = s(() => ({
1731
+ ...Se.value,
1732
+ modelValue: Ue.value ?? ""
1733
+ })), Ge = s(() => ne.value?.tabNavRef?.tabListRef ?? null), Ke = s(() => De.value.enabled !== !1), qe = s(() => new Set(De.value.hiddenActions)), Je = s(() => tt(Oe.value)), Ye = s(() => tt(ke.value) ?? "240px"), Xe = lr(te, Ge), Qe = s(() => et("finder") && (Xe.overflowed.value || A.value.length >= Le.value)), $e = s(() => Qe.value || Ke.value && Ve.value !== void 0 || !!m.extra);
1726
1734
  function et(e) {
1727
- return Ie.value.find((t) => M(t.key) === String(e))?.key;
1735
+ return e === "pin" || e === "drag" ? be.value[e] === !0 : be.value[e] !== !1;
1728
1736
  }
1729
1737
  function tt(e) {
1730
- let t = e.paneName === void 0 ? void 0 : et(e.paneName);
1738
+ return typeof e == "number" ? `${e}px` : e;
1739
+ }
1740
+ function nt(e) {
1741
+ return Re.value.find((t) => M(t.key) === String(e))?.key;
1742
+ }
1743
+ function rt(e) {
1744
+ let t = e.paneName === void 0 ? void 0 : nt(e.paneName);
1731
1745
  return t === void 0 ? e : {
1732
1746
  ...e,
1733
1747
  paneName: t
1734
1748
  };
1735
1749
  }
1736
- function nt(e) {
1737
- m("action-request", e), Object.hasOwn(e, "nextActiveKey") && m("update:modelValue", e.nextActiveKey), e.nextItems && m("update:items", e.nextItems), e.operation.startsWith("close") && m("close-request", e), e.operation === "refresh" && m("refresh-request", e), (e.operation === "pin" || e.operation === "unpin") && m("pin-change-request", e), (e.operation === "move" || e.operation === "move-top" || e.operation === "move-bottom") && m("reorder-request", e);
1750
+ function ot(e) {
1751
+ d("action-request", e), Object.hasOwn(e, "nextActiveKey") && d("update:modelValue", e.nextActiveKey), e.nextItems && d("update:items", e.nextItems), e.operation.startsWith("close") && d("close-request", e), e.operation === "refresh" && d("refresh-request", e), (e.operation === "pin" || e.operation === "unpin") && d("pin-change-request", e), (e.operation === "move" || e.operation === "move-top" || e.operation === "move-bottom") && d("reorder-request", e);
1738
1752
  }
1739
- function at(e) {
1740
- _(() => x.value?.querySelector(`[data-tab-id="${M(e)}"]`)?.closest("[role=\"tab\"]")?.scrollIntoView?.({
1753
+ function st(e) {
1754
+ _(() => te.value?.querySelector(`[data-tab-id="${M(e)}"]`)?.closest("[role=\"tab\"]")?.scrollIntoView?.({
1741
1755
  block: "nearest",
1742
1756
  inline: "nearest"
1743
1757
  }));
1744
1758
  }
1745
- let N = it({
1746
- getItems: () => Ie.value,
1759
+ let N = at({
1760
+ getItems: () => Re.value,
1747
1761
  getActiveKey: () => j.value,
1748
1762
  getProps: () => o,
1749
- getDeniedReason: (e, t) => ot(e, t),
1750
- onRequest: nt,
1751
- onDenied: (e, t, n) => m("operation-denied", e, t, n),
1752
- onError: (e, t) => m("operation-error", e, t),
1753
- onScrollTo: at
1763
+ getDeniedReason: (e, t) => P(e, t),
1764
+ onRequest: ot,
1765
+ onDenied: (e, t, n) => d("operation-denied", e, t, n),
1766
+ onError: (e, t) => d("operation-error", e, t),
1767
+ onScrollTo: st
1754
1768
  });
1755
- function ot(e, t) {
1769
+ function P(e, t) {
1756
1770
  if (o.busy || N?.pending.value) return "busy";
1757
1771
  let n = o.actionPolicy;
1758
1772
  if (n && (n.mode === "allow" ? !n.actions.includes(e) : n.actions.includes(e))) return "policy";
1759
1773
  if (e === "activate") return t ? t.disabled ? "disabled" : void 0 : "not-found";
1760
1774
  if (!t && e !== "close-all") return "not-found";
1761
1775
  if (o.readonly || t?.readonly || t?.disabled) return t?.disabled ? "disabled" : "readonly";
1762
- if (e.startsWith("close")) return Qe("close") ? e === "close" && !Me(t) ? t?.pinned ? "pinned" : "readonly" : void 0 : "policy";
1763
- if (e === "refresh") return Qe("refresh") ? void 0 : "policy";
1764
- if (e === "pin" || e === "unpin") return Qe("pin") ? Ne(t) ? void 0 : "readonly" : "policy";
1765
- if (e === "move" || e === "move-top" || e === "move-bottom") return Qe("drag") ? Pe(t) ? void 0 : t?.pinned ? "pinned" : "boundary" : "policy";
1776
+ if (e.startsWith("close")) return et("close") ? e === "close" && !Pe(t) ? t?.pinned ? "pinned" : "readonly" : void 0 : "policy";
1777
+ if (e === "refresh") return et("refresh") ? void 0 : "policy";
1778
+ if (e === "pin" || e === "unpin") return et("pin") ? Fe(t) ? void 0 : "readonly" : "policy";
1779
+ if (e === "move" || e === "move-top" || e === "move-bottom") return et("drag") ? Ie(t) ? void 0 : t?.pinned ? "pinned" : "boundary" : "policy";
1766
1780
  }
1767
- function P(e, t) {
1781
+ function ct(e, t) {
1768
1782
  N.activate(e, t).then((t) => {
1769
- t && at(e);
1783
+ t && st(e);
1770
1784
  });
1771
1785
  }
1772
- function st(e) {
1773
- let t = ze.value, n = Re(t, t.filter((t) => t.key !== e), e);
1774
- le.value = n === void 0 ? void 0 : M(n);
1786
+ function lt(e) {
1787
+ let t = A.value, n = Be(t, t.filter((t) => t.key !== e), e);
1788
+ ue.value = n === void 0 ? void 0 : M(n);
1775
1789
  }
1776
- function ct(e, t) {
1777
- st(e), N.close(e, t).then((e) => {
1778
- e || (le.value = void 0);
1790
+ function ut(e, t) {
1791
+ lt(e), N.close(e, t).then((e) => {
1792
+ e || (ue.value = void 0);
1779
1793
  });
1780
1794
  }
1781
- function lt(e, t, n) {
1782
- let r = ze.value, i = Le(r, t, e), a = j.value;
1795
+ function dt(e, t, n) {
1796
+ let r = A.value, i = ze(r, t, e), a = j.value;
1783
1797
  if (a !== void 0 && i.some((e) => e.key === a)) {
1784
- let e = Re(r, r.filter((e) => !i.some((t) => t.key === e.key)), a);
1785
- le.value = e === void 0 ? void 0 : M(e);
1798
+ let e = Be(r, r.filter((e) => !i.some((t) => t.key === e.key)), a);
1799
+ ue.value = e === void 0 ? void 0 : M(e);
1786
1800
  }
1787
1801
  N.closeScopeAt(e, t, n).then((e) => {
1788
- e || (le.value = void 0);
1802
+ e || (ue.value = void 0);
1789
1803
  });
1790
1804
  }
1791
- function ut(e, t, n, r) {
1792
- if (!Ge.value) return;
1805
+ function ft(e, t, n, r) {
1806
+ if (!Ke.value) return;
1793
1807
  let i = t.getBoundingClientRect(), a = t.closest("[role=\"tab\"]") ?? t;
1794
- E.value = e, ce.value = a, re.value = {
1808
+ T.value = e, le.value = a, ie.value = {
1795
1809
  x: n ?? i.left,
1796
1810
  y: r ?? i.bottom + 4
1797
- }, oe.value = !0;
1811
+ }, se.value = !0;
1798
1812
  }
1799
- function dt(e, t) {
1800
- e.preventDefault(), ut(t, e.currentTarget, e.clientX, e.clientY);
1813
+ function pt(e, t) {
1814
+ e.preventDefault(), ft(t, e.currentTarget, e.clientX, e.clientY);
1801
1815
  }
1802
- function ft(e) {
1803
- Be.value && ut(Be.value, e.currentTarget);
1816
+ function mt(e) {
1817
+ Ve.value && ft(Ve.value, e.currentTarget);
1804
1818
  }
1805
- function pt() {
1806
- oe.value = !1;
1807
- let e = ce.value;
1808
- ce.value = void 0, _(() => e?.focus());
1819
+ function ht() {
1820
+ se.value = !1;
1821
+ let e = le.value;
1822
+ le.value = void 0, _(() => e?.focus());
1809
1823
  }
1810
- function mt(e, t) {
1811
- re.value = {
1824
+ function gt(e, t) {
1825
+ ie.value = {
1812
1826
  x: e,
1813
1827
  y: t
1814
1828
  };
1815
1829
  }
1816
- function ht(e) {
1817
- let t = E.value;
1818
- pt(), t && (e.startsWith("close") ? lt(e === "close" ? "current" : e.replace("close-", ""), t.key, "menu") : e === "refresh" ? N.refreshAt(t.key, "menu") : e === "pin" ? N.pin(t.key, "menu") : e === "unpin" ? N.unpin(t.key, "menu") : e === "move-top" ? N.moveTop(t.key, "menu") : e === "move-bottom" && N.moveBottom(t.key, "menu"));
1830
+ function _t(e) {
1831
+ let t = T.value;
1832
+ ht(), t && (e.startsWith("close") ? dt(e === "close" ? "current" : e.replace("close-", ""), t.key, "menu") : e === "refresh" ? N.refreshAt(t.key, "menu") : e === "pin" ? N.pin(t.key, "menu") : e === "unpin" ? N.unpin(t.key, "menu") : e === "move-top" ? N.moveTop(t.key, "menu") : e === "move-bottom" && N.moveBottom(t.key, "menu"));
1819
1833
  }
1820
- let gt = s(() => {
1821
- let e = E.value;
1822
- return e ? [
1834
+ let vt = s(() => {
1835
+ let e = T.value;
1836
+ if (!e) return [];
1837
+ let t = [
1823
1838
  {
1824
1839
  operation: "refresh",
1825
- label: k.value.refresh,
1826
- icon: ge
1840
+ label: O.value.refresh,
1841
+ icon: _e
1827
1842
  },
1828
1843
  {
1829
1844
  operation: "close",
1830
- label: k.value.close,
1831
- icon: pe,
1845
+ label: O.value.close,
1846
+ icon: me,
1832
1847
  dividerBefore: !0
1833
1848
  },
1834
1849
  {
1835
1850
  operation: "close-others",
1836
- label: k.value.closeOthers,
1837
- icon: pe
1851
+ label: O.value.closeOthers,
1852
+ icon: me
1838
1853
  },
1839
1854
  {
1840
1855
  operation: "close-left",
1841
- label: k.value.closeLeft,
1842
- icon: pe
1856
+ label: O.value.closeLeft,
1857
+ icon: me
1843
1858
  },
1844
1859
  {
1845
1860
  operation: "close-right",
1846
- label: k.value.closeRight,
1847
- icon: pe
1861
+ label: O.value.closeRight,
1862
+ icon: me
1848
1863
  },
1849
1864
  {
1850
1865
  operation: "close-all",
1851
- label: k.value.closeAll,
1852
- icon: pe
1866
+ label: O.value.closeAll,
1867
+ icon: me
1853
1868
  },
1854
1869
  {
1855
1870
  operation: e.pinned ? "unpin" : "pin",
1856
- label: e.pinned ? k.value.unpin : k.value.pin,
1857
- icon: me,
1871
+ label: e.pinned ? O.value.unpin : O.value.pin,
1872
+ icon: he,
1858
1873
  dividerBefore: !0
1859
1874
  },
1860
1875
  {
1861
1876
  operation: "move-top",
1862
- label: k.value.moveTop,
1863
- icon: ve,
1877
+ label: O.value.moveTop,
1878
+ icon: ye,
1864
1879
  dividerBefore: !0
1865
1880
  },
1866
1881
  {
1867
1882
  operation: "move-bottom",
1868
- label: k.value.moveBottom,
1869
- icon: ue
1883
+ label: O.value.moveBottom,
1884
+ icon: de
1870
1885
  }
1871
- ].filter((e) => !Ke.value.has(e.operation) && (e.operation !== "refresh" || Qe("refresh")) && (!["pin", "unpin"].includes(e.operation) || Qe("pin")) && (!["move-top", "move-bottom"].includes(e.operation) || Qe("drag"))).map((t) => ({
1886
+ ], n = new Set(Ee({
1887
+ hidden: qe.value,
1888
+ features: be.value,
1889
+ labels: {
1890
+ refresh: O.value.refresh,
1891
+ pin: O.value.pin,
1892
+ moveTop: O.value.moveTop
1893
+ },
1894
+ pinned: e.pinned === !0
1895
+ }).map((e) => e.operation));
1896
+ return t.filter((e) => (n.has(e.operation) || e.operation !== "refresh" && e.operation !== "pin" && e.operation !== "unpin" && e.operation !== "move-top") && (e.operation !== "move-bottom" || et("drag")) && !qe.value.has(e.operation)).map((t) => ({
1872
1897
  ...t,
1873
- disabled: ot(t.operation, e) !== void 0
1874
- })) : [];
1898
+ disabled: P(t.operation, e) !== void 0
1899
+ }));
1875
1900
  });
1876
- function _t(e) {
1877
- if (!Qe("keyboard")) return;
1901
+ function yt(e) {
1902
+ if (!et("keyboard")) return;
1878
1903
  let t = e.target instanceof HTMLElement ? e.target.closest("[role=\"tab\"]") : null;
1879
1904
  if (!t) return;
1880
- let n = t.querySelector("[data-tab-id]")?.getAttribute("data-tab-id"), r = ze.value.find((e) => M(e.key) === n);
1905
+ let n = t.querySelector("[data-tab-id]")?.getAttribute("data-tab-id"), r = A.value.find((e) => M(e.key) === n);
1881
1906
  if (r) {
1882
1907
  if (e.key === "Delete") {
1883
- e.preventDefault(), ct(r.key, "keyboard");
1908
+ e.preventDefault(), ut(r.key, "keyboard");
1884
1909
  return;
1885
1910
  }
1886
1911
  if (e.key === "Home" || e.key === "End") {
1887
1912
  e.preventDefault();
1888
- let t = (e.key === "Home" ? ze.value : [...ze.value].reverse()).find((e) => !e.disabled);
1889
- t && (P(t.key, "keyboard"), Ye.focusTab(M(t.key)));
1913
+ let t = (e.key === "Home" ? A.value : [...A.value].reverse()).find((e) => !e.disabled);
1914
+ t && (ct(t.key, "keyboard"), Xe.focusTab(M(t.key)));
1890
1915
  return;
1891
1916
  }
1892
- (e.key === "ContextMenu" || e.key === "F10" && e.shiftKey) && (e.preventDefault(), ut(r, t));
1917
+ (e.key === "ContextMenu" || e.key === "F10" && e.shiftKey) && (e.preventDefault(), ft(r, t));
1893
1918
  }
1894
1919
  }
1895
- async function vt(e) {
1896
- let t = et(e);
1920
+ async function bt(e) {
1921
+ let t = nt(e);
1897
1922
  return t === void 0 ? !1 : t === j.value || await N.activate(t, "native") && j.value === t;
1898
1923
  }
1899
- function yt(e, t) {
1900
- m("tab-click", tt(e), t);
1901
- }
1902
- function bt(e) {
1903
- m("tab-change", et(e) ?? e);
1924
+ function xt(e, t) {
1925
+ d("tab-click", rt(e), t);
1904
1926
  }
1905
1927
  function F(e) {
1906
- m("tab-remove", et(e) ?? e);
1907
- let t = et(e);
1908
- t !== void 0 && ct(t, "native");
1928
+ d("tab-change", nt(e) ?? e);
1909
1929
  }
1910
- sr({
1911
- element: We,
1930
+ function I(e) {
1931
+ d("tab-remove", nt(e) ?? e);
1932
+ let t = nt(e);
1933
+ t !== void 0 && ut(t, "native");
1934
+ }
1935
+ cr({
1936
+ element: Ge,
1912
1937
  selector: "[role=\"tab\"]",
1913
- enabled: () => Qe("drag") && !o.readonly && !o.busy,
1914
- items: () => ze.value,
1915
- canDrag: Pe,
1938
+ enabled: () => et("drag") && !o.readonly && !o.busy,
1939
+ items: () => A.value,
1940
+ canDrag: Ie,
1916
1941
  onMove: (e, t) => {
1917
1942
  N.moveBefore(e, t, "drag");
1918
1943
  }
1919
1944
  });
1920
- let I = "";
1921
- return se([Ie, j], ([e, t], [n]) => {
1922
- if (t !== void 0 && A(e, t)) {
1923
- I = "";
1945
+ let St = "";
1946
+ return ce([Re, j], ([e, t], [n]) => {
1947
+ if (t !== void 0 && k(e, t)) {
1948
+ St = "";
1924
1949
  return;
1925
1950
  }
1926
1951
  let r = `${String(t)}:${e.map((e) => String(e.key)).join("|")}`;
1927
- if (I === r) return;
1928
- I = r;
1929
- let i = t === void 0 ? Ae(e).find((e) => !e.disabled)?.key : Re(Ae(n || e), e, t);
1930
- m("update:modelValue", i);
1931
- }, { immediate: !0 }), se(j, (e) => {
1932
- e !== void 0 && at(e), e !== void 0 && le.value === M(e) && (Ye.focusTab(le.value), le.value = void 0);
1952
+ if (St === r) return;
1953
+ St = r;
1954
+ let i = t === void 0 ? Me(e).find((e) => !e.disabled)?.key : Be(Me(n || e), e, t);
1955
+ d("update:modelValue", i);
1956
+ }, { immediate: !0 }), ce(j, (e) => {
1957
+ e !== void 0 && st(e), e !== void 0 && ue.value === M(e) && (Xe.focusTab(ue.value), ue.value = void 0);
1933
1958
  }), n({
1934
1959
  ...N,
1935
- getNativeTabs: () => te.value ?? void 0
1936
- }), (e, n) => (S(), u("div", g({
1960
+ getNativeTabs: () => ne.value ?? void 0
1961
+ }), (e, n) => (x(), u("div", g({
1937
1962
  ref_key: "tabsRoot",
1938
- ref: x
1963
+ ref: te
1939
1964
  }, e.$attrs, {
1940
1965
  class: ["og-tabs", [
1941
- `og-tabs--${de.value}`,
1942
1966
  `og-tabs--${fe.value}`,
1967
+ `og-tabs--variant-${fe.value}`,
1968
+ `og-tabs--${pe.value}`,
1943
1969
  {
1944
- "is-sticky": je.value,
1945
- "is-pending": D(N).pending.value || t.busy
1970
+ "is-sticky": Ne.value,
1971
+ "is-pending": E(N).pending.value || t.busy
1946
1972
  }
1947
1973
  ]],
1948
1974
  style: {
1949
- "--og-tabs-sticky-top": typeof je.value == "number" ? `${je.value}px` : "0px",
1950
- "--og-tabs-theme-color": Oe.value,
1951
- "--og-tabs-tab-min-width": qe.value,
1952
- "--og-tabs-tab-max-width": Je.value
1975
+ "--og-tabs-sticky-top": typeof Ne.value == "number" ? `${Ne.value}px` : "0px",
1976
+ "--og-tabs-theme-color": Ae.value,
1977
+ "--og-tabs-tab-min-width": Je.value,
1978
+ "--og-tabs-tab-max-width": Ye.value
1953
1979
  },
1954
- "aria-busy": t.busy || D(N).pending.value,
1955
- onKeydown: _t
1980
+ "aria-busy": t.busy || E(N).pending.value,
1981
+ onKeydown: yt
1956
1982
  }), [
1957
- ee.header ? (S(), u("div", ur, [T(e.$slots, "header")])) : l("", !0),
1958
- Ie.value.length ? (S(), u("div", fr, [p(D(we), g({
1983
+ m.header ? (x(), u("div", dr, [w(e.$slots, "header")])) : l("", !0),
1984
+ Re.value.length ? (x(), u("div", {
1985
+ key: 2,
1986
+ class: ee(["og-tabs__bar", { "has-actions": $e.value }])
1987
+ }, [p(E(Te), g({
1959
1988
  ref_key: "nativeTabs",
1960
- ref: te
1961
- }, Ue.value, {
1989
+ ref: ne
1990
+ }, We.value, {
1962
1991
  class: "og-tabs__native",
1963
- "before-leave": vt,
1964
- onTabClick: yt,
1965
- onTabChange: bt,
1966
- onTabRemove: F
1992
+ "before-leave": bt,
1993
+ onTabClick: xt,
1994
+ onTabChange: F,
1995
+ onTabRemove: I
1967
1996
  }), {
1968
- default: O(() => [(S(!0), u(a, null, w(ze.value, (t) => (S(), c(D(Ce), {
1969
- key: D(M)(t.key),
1970
- name: D(M)(t.key),
1997
+ default: D(() => [(x(!0), u(a, null, C(A.value, (t) => (x(), c(E(we), {
1998
+ key: E(M)(t.key),
1999
+ name: E(M)(t.key),
1971
2000
  disabled: t.disabled === !0,
1972
- closable: ot("close", t) === void 0,
2001
+ closable: P("close", t) === void 0,
1973
2002
  lazy: t.lazy === !0
1974
2003
  }, {
1975
- label: O(() => [p(rt, {
2004
+ label: D(() => [p(it, {
1976
2005
  tab: t,
1977
2006
  active: t.key === j.value,
1978
- "min-width": qe.value,
1979
- "max-width": Je.value,
1980
- locale: k.value,
1981
- onContextmenu: (e) => dt(e, t)
2007
+ "min-width": Je.value,
2008
+ "max-width": Ye.value,
2009
+ locale: O.value,
2010
+ onContextmenu: (e) => pt(e, t)
1982
2011
  }, {
1983
- default: O((t) => [T(e.$slots, "label", g({ ref_for: !0 }, t))]),
1984
- before: O((t) => [T(e.$slots, "tabBefore", g({ ref_for: !0 }, t))]),
1985
- after: O((t) => [T(e.$slots, "tabAfter", g({ ref_for: !0 }, t))]),
1986
- status: O((t) => [T(e.$slots, "status", g({ ref_for: !0 }, t))]),
2012
+ default: D((t) => [w(e.$slots, "label", g({ ref_for: !0 }, t))]),
2013
+ before: D((t) => [w(e.$slots, "tabBefore", g({ ref_for: !0 }, t))]),
2014
+ after: D((t) => [w(e.$slots, "tabAfter", g({ ref_for: !0 }, t))]),
2015
+ status: D((t) => [w(e.$slots, "status", g({ ref_for: !0 }, t))]),
1987
2016
  _: 3
1988
2017
  }, 8, [
1989
2018
  "tab",
@@ -1993,7 +2022,7 @@ var lr = ["aria-busy"], ur = {
1993
2022
  "locale",
1994
2023
  "onContextmenu"
1995
2024
  ])]),
1996
- default: O(() => [_e.value && t.key === j.value ? T(e.$slots, "default", {
2025
+ default: D(() => [ve.value && t.key === j.value ? w(e.$slots, "default", {
1997
2026
  tab: t,
1998
2027
  active: !0
1999
2028
  }, void 0, void 0, 0) : l("", !0)]),
@@ -2005,54 +2034,54 @@ var lr = ["aria-busy"], ur = {
2005
2034
  "lazy"
2006
2035
  ]))), 128))]),
2007
2036
  _: 3
2008
- }, 16), d("div", pr, [
2009
- Ze.value ? (S(), c(Xe, {
2037
+ }, 16), $e.value ? (x(), u("div", pr, [
2038
+ Qe.value ? (x(), c(Ze, {
2010
2039
  key: 0,
2011
- tabs: ze.value,
2040
+ tabs: A.value,
2012
2041
  "active-key": j.value,
2013
- locale: k.value,
2014
- onActivate: n[0] ||= (e) => P(e, "finder")
2042
+ locale: O.value,
2043
+ onActivate: n[0] ||= (e) => ct(e, "finder")
2015
2044
  }, null, 8, [
2016
2045
  "tabs",
2017
2046
  "active-key",
2018
2047
  "locale"
2019
2048
  ])) : l("", !0),
2020
- Ge.value && Be.value ? (S(), u("button", {
2049
+ Ke.value && Ve.value ? (x(), u("button", {
2021
2050
  key: 1,
2022
2051
  type: "button",
2023
2052
  class: "og-tabs__action",
2024
- "aria-label": k.value.tabActions,
2025
- onClick: ft
2026
- }, [p(D(Se), { "aria-hidden": "true" }, {
2027
- default: O(() => [p(D(he))]),
2053
+ "aria-label": O.value.tabActions,
2054
+ onClick: mt
2055
+ }, [p(E(Ce), { "aria-hidden": "true" }, {
2056
+ default: D(() => [p(E(ge))]),
2028
2057
  _: 1
2029
2058
  })], 8, mr)) : l("", !0),
2030
- T(e.$slots, "extra")
2031
- ])])) : (S(), u("div", dr, [T(e.$slots, "empty", {}, () => [f(ne(k.value.empty), 1)])])),
2032
- p(ke, {
2033
- visible: oe.value,
2034
- x: re.value.x,
2035
- y: re.value.y,
2036
- items: gt.value,
2037
- onSelect: ht,
2038
- onClose: pt,
2039
- onReposition: mt
2059
+ w(e.$slots, "extra")
2060
+ ])) : l("", !0)], 2)) : (x(), u("div", fr, [w(e.$slots, "empty", {}, () => [f(re(O.value.empty), 1)])])),
2061
+ p(je, {
2062
+ visible: se.value,
2063
+ x: ie.value.x,
2064
+ y: ie.value.y,
2065
+ items: vt.value,
2066
+ onSelect: _t,
2067
+ onClose: ht,
2068
+ onReposition: gt
2040
2069
  }, {
2041
- top: O(() => [T(e.$slots, "contextMenuTop", v(h({
2070
+ top: D(() => [w(e.$slots, "contextMenuTop", v(h({
2042
2071
  operation: "refresh",
2043
2072
  source: "menu",
2044
- tab: E.value,
2073
+ tab: T.value,
2045
2074
  activeKey: j.value,
2046
- activeTab: Be.value,
2047
- items: Ie.value
2075
+ activeTab: Ve.value,
2076
+ items: Re.value
2048
2077
  })))]),
2049
- bottom: O(() => [T(e.$slots, "contextMenuBottom", v(h({
2078
+ bottom: D(() => [w(e.$slots, "contextMenuBottom", v(h({
2050
2079
  operation: "refresh",
2051
2080
  source: "menu",
2052
- tab: E.value,
2081
+ tab: T.value,
2053
2082
  activeKey: j.value,
2054
- activeTab: Be.value,
2055
- items: Ie.value
2083
+ activeTab: Ve.value,
2084
+ items: Re.value
2056
2085
  })))]),
2057
2086
  _: 3
2058
2087
  }, 8, [
@@ -2061,8 +2090,8 @@ var lr = ["aria-busy"], ur = {
2061
2090
  "y",
2062
2091
  "items"
2063
2092
  ])
2064
- ], 16, lr));
2093
+ ], 16, ur));
2065
2094
  }
2066
2095
  });
2067
2096
  //#endregion
2068
- export { n as OG_TABS_LOCALE_EN_US, r as OG_TABS_LOCALE_ZH_CN, i as OG_TABS_LOCALE_ZH_TW, hr as OgTabs, Me as canCloseTab, Pe as canMoveTab, Ne as canPinTab, t as createOgTabs, je as filterTabs, A as findTab, Le as getCloseScopeTabs, Ve as hasDuplicateKeys, ze as moveTab, j as moveTabToEdge, Be as operationForCloseScope, Ae as orderTabs, Ie as removeTabs, Re as resolveNextActive, Fe as setTabPinned, e as useOgTabsGlobalConfig, it as useTabsController };
2097
+ export { n as OG_TABS_LOCALE_EN_US, r as OG_TABS_LOCALE_ZH_CN, i as OG_TABS_LOCALE_ZH_TW, hr as OgTabs, Pe as canCloseTab, Ie as canMoveTab, Fe as canPinTab, t as createOgTabs, Ne as filterTabs, k as findTab, ze as getCloseScopeTabs, He as hasDuplicateKeys, A as moveTab, j as moveTabToEdge, Ve as operationForCloseScope, Me as orderTabs, Re as removeTabs, Be as resolveNextActive, Le as setTabPinned, e as useOgTabsGlobalConfig, at as useTabsController };