@oneb/ui-vue 0.2.16 → 0.2.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,1831 +0,0 @@
1
- import { d as pt, e as mt, _ as ht, r as gt, f as vt } from "./OneHelpMenu-7eb95bc3.js";
2
- import { defineComponent as be, ref as D, watch as Ge, onBeforeUnmount as Je, provide as wt, computed as I, openBlock as v, createElementBlock as y, createElementVNode as p, renderSlot as V, normalizeProps as pe, guardReactiveProps as me, createBlock as he, Teleport as yt, createCommentVNode as T, withDirectives as _e, normalizeClass as E, toDisplayString as _, vShow as xt, withCtx as re, createVNode as Me, unref as H, normalizeStyle as ge, Fragment as j, renderList as Z, onMounted as Ze, onUnmounted as bt, vModelText as Fe, mergeProps as de, createTextVNode as Pe, nextTick as $e } from "vue";
3
- import { _ as Qe } from "./_plugin-vue_export-helper-dad06003.js";
4
- import { _ as We } from "./OneAvatar.vue_vue_type_script_setup_true_lang-08ab80dd.js";
5
- const ve = Math.min, Q = Math.max, we = Math.round, fe = Math.floor, z = (e) => ({
6
- x: e,
7
- y: e
8
- }), kt = {
9
- left: "right",
10
- right: "left",
11
- bottom: "top",
12
- top: "bottom"
13
- }, Ct = {
14
- start: "end",
15
- end: "start"
16
- };
17
- function je(e, t, o) {
18
- return Q(e, ve(t, o));
19
- }
20
- function ke(e, t) {
21
- return typeof e == "function" ? e(t) : e;
22
- }
23
- function ee(e) {
24
- return e.split("-")[0];
25
- }
26
- function Ce(e) {
27
- return e.split("-")[1];
28
- }
29
- function et(e) {
30
- return e === "x" ? "y" : "x";
31
- }
32
- function tt(e) {
33
- return e === "y" ? "height" : "width";
34
- }
35
- function oe(e) {
36
- return ["top", "bottom"].includes(ee(e)) ? "y" : "x";
37
- }
38
- function nt(e) {
39
- return et(oe(e));
40
- }
41
- function At(e, t, o) {
42
- o === void 0 && (o = !1);
43
- const n = Ce(e), s = nt(e), i = tt(s);
44
- let l = s === "x" ? n === (o ? "end" : "start") ? "right" : "left" : n === "start" ? "bottom" : "top";
45
- return t.reference[i] > t.floating[i] && (l = ye(l)), [l, ye(l)];
46
- }
47
- function Ot(e) {
48
- const t = ye(e);
49
- return [Ee(e), t, Ee(t)];
50
- }
51
- function Ee(e) {
52
- return e.replace(/start|end/g, (t) => Ct[t]);
53
- }
54
- function Rt(e, t, o) {
55
- const n = ["left", "right"], s = ["right", "left"], i = ["top", "bottom"], l = ["bottom", "top"];
56
- switch (e) {
57
- case "top":
58
- case "bottom":
59
- return o ? t ? s : n : t ? n : s;
60
- case "left":
61
- case "right":
62
- return t ? i : l;
63
- default:
64
- return [];
65
- }
66
- }
67
- function Mt(e, t, o, n) {
68
- const s = Ce(e);
69
- let i = Rt(ee(e), o === "start", n);
70
- return s && (i = i.map((l) => l + "-" + s), t && (i = i.concat(i.map(Ee)))), i;
71
- }
72
- function ye(e) {
73
- return e.replace(/left|right|bottom|top/g, (t) => kt[t]);
74
- }
75
- function $t(e) {
76
- return {
77
- top: 0,
78
- right: 0,
79
- bottom: 0,
80
- left: 0,
81
- ...e
82
- };
83
- }
84
- function Lt(e) {
85
- return typeof e != "number" ? $t(e) : {
86
- top: e,
87
- right: e,
88
- bottom: e,
89
- left: e
90
- };
91
- }
92
- function xe(e) {
93
- const {
94
- x: t,
95
- y: o,
96
- width: n,
97
- height: s
98
- } = e;
99
- return {
100
- width: n,
101
- height: s,
102
- top: o,
103
- left: t,
104
- right: t + n,
105
- bottom: o + s,
106
- x: t,
107
- y: o
108
- };
109
- }
110
- function Ie(e, t, o) {
111
- let {
112
- reference: n,
113
- floating: s
114
- } = e;
115
- const i = oe(t), l = nt(t), r = tt(l), c = ee(t), u = i === "y", d = n.x + n.width / 2 - s.width / 2, m = n.y + n.height / 2 - s.height / 2, w = n[r] / 2 - s[r] / 2;
116
- let g;
117
- switch (c) {
118
- case "top":
119
- g = {
120
- x: d,
121
- y: n.y - s.height
122
- };
123
- break;
124
- case "bottom":
125
- g = {
126
- x: d,
127
- y: n.y + n.height
128
- };
129
- break;
130
- case "right":
131
- g = {
132
- x: n.x + n.width,
133
- y: m
134
- };
135
- break;
136
- case "left":
137
- g = {
138
- x: n.x - s.width,
139
- y: m
140
- };
141
- break;
142
- default:
143
- g = {
144
- x: n.x,
145
- y: n.y
146
- };
147
- }
148
- switch (Ce(t)) {
149
- case "start":
150
- g[l] -= w * (o && u ? -1 : 1);
151
- break;
152
- case "end":
153
- g[l] += w * (o && u ? -1 : 1);
154
- break;
155
- }
156
- return g;
157
- }
158
- const _t = async (e, t, o) => {
159
- const {
160
- placement: n = "bottom",
161
- strategy: s = "absolute",
162
- middleware: i = [],
163
- platform: l
164
- } = o, r = i.filter(Boolean), c = await (l.isRTL == null ? void 0 : l.isRTL(t));
165
- let u = await l.getElementRects({
166
- reference: e,
167
- floating: t,
168
- strategy: s
169
- }), {
170
- x: d,
171
- y: m
172
- } = Ie(u, n, c), w = n, g = {}, f = 0;
173
- for (let x = 0; x < r.length; x++) {
174
- const {
175
- name: b,
176
- fn: A
177
- } = r[x], {
178
- x: R,
179
- y: O,
180
- data: S,
181
- reset: $
182
- } = await A({
183
- x: d,
184
- y: m,
185
- initialPlacement: n,
186
- placement: w,
187
- strategy: s,
188
- middlewareData: g,
189
- rects: u,
190
- platform: l,
191
- elements: {
192
- reference: e,
193
- floating: t
194
- }
195
- });
196
- d = R ?? d, m = O ?? m, g = {
197
- ...g,
198
- [b]: {
199
- ...g[b],
200
- ...S
201
- }
202
- }, $ && f <= 50 && (f++, typeof $ == "object" && ($.placement && (w = $.placement), $.rects && (u = $.rects === !0 ? await l.getElementRects({
203
- reference: e,
204
- floating: t,
205
- strategy: s
206
- }) : $.rects), {
207
- x: d,
208
- y: m
209
- } = Ie(u, w, c)), x = -1);
210
- }
211
- return {
212
- x: d,
213
- y: m,
214
- placement: w,
215
- strategy: s,
216
- middlewareData: g
217
- };
218
- };
219
- async function ot(e, t) {
220
- var o;
221
- t === void 0 && (t = {});
222
- const {
223
- x: n,
224
- y: s,
225
- platform: i,
226
- rects: l,
227
- elements: r,
228
- strategy: c
229
- } = e, {
230
- boundary: u = "clippingAncestors",
231
- rootBoundary: d = "viewport",
232
- elementContext: m = "floating",
233
- altBoundary: w = !1,
234
- padding: g = 0
235
- } = ke(t, e), f = Lt(g), b = r[w ? m === "floating" ? "reference" : "floating" : m], A = xe(await i.getClippingRect({
236
- element: (o = await (i.isElement == null ? void 0 : i.isElement(b))) == null || o ? b : b.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(r.floating)),
237
- boundary: u,
238
- rootBoundary: d,
239
- strategy: c
240
- })), R = m === "floating" ? {
241
- x: n,
242
- y: s,
243
- width: l.floating.width,
244
- height: l.floating.height
245
- } : l.reference, O = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(r.floating)), S = await (i.isElement == null ? void 0 : i.isElement(O)) ? await (i.getScale == null ? void 0 : i.getScale(O)) || {
246
- x: 1,
247
- y: 1
248
- } : {
249
- x: 1,
250
- y: 1
251
- }, $ = xe(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
252
- elements: r,
253
- rect: R,
254
- offsetParent: O,
255
- strategy: c
256
- }) : R);
257
- return {
258
- top: (A.top - $.top + f.top) / S.y,
259
- bottom: ($.bottom - A.bottom + f.bottom) / S.y,
260
- left: (A.left - $.left + f.left) / S.x,
261
- right: ($.right - A.right + f.right) / S.x
262
- };
263
- }
264
- const Et = function(e) {
265
- return e === void 0 && (e = {}), {
266
- name: "flip",
267
- options: e,
268
- async fn(t) {
269
- var o, n;
270
- const {
271
- placement: s,
272
- middlewareData: i,
273
- rects: l,
274
- initialPlacement: r,
275
- platform: c,
276
- elements: u
277
- } = t, {
278
- mainAxis: d = !0,
279
- crossAxis: m = !0,
280
- fallbackPlacements: w,
281
- fallbackStrategy: g = "bestFit",
282
- fallbackAxisSideDirection: f = "none",
283
- flipAlignment: x = !0,
284
- ...b
285
- } = ke(e, t);
286
- if ((o = i.arrow) != null && o.alignmentOffset)
287
- return {};
288
- const A = ee(s), R = oe(r), O = ee(r) === r, S = await (c.isRTL == null ? void 0 : c.isRTL(u.floating)), $ = w || (O || !x ? [ye(r)] : Ot(r)), U = f !== "none";
289
- !w && U && $.push(...Mt(r, x, f, S));
290
- const q = [r, ...$], ie = await ot(t, b), J = [];
291
- let Y = ((n = i.flip) == null ? void 0 : n.overflows) || [];
292
- if (d && J.push(ie[A]), m) {
293
- const k = At(s, l, S);
294
- J.push(ie[k[0]], ie[k[1]]);
295
- }
296
- if (Y = [...Y, {
297
- placement: s,
298
- overflows: J
299
- }], !J.every((k) => k <= 0)) {
300
- var ue, a;
301
- const k = (((ue = i.flip) == null ? void 0 : ue.index) || 0) + 1, C = q[k];
302
- if (C)
303
- return {
304
- data: {
305
- index: k,
306
- overflows: Y
307
- },
308
- reset: {
309
- placement: C
310
- }
311
- };
312
- let L = (a = Y.filter((M) => M.overflows[0] <= 0).sort((M, F) => M.overflows[1] - F.overflows[1])[0]) == null ? void 0 : a.placement;
313
- if (!L)
314
- switch (g) {
315
- case "bestFit": {
316
- var h;
317
- const M = (h = Y.filter((F) => {
318
- if (U) {
319
- const X = oe(F.placement);
320
- return X === R || // Create a bias to the `y` side axis due to horizontal
321
- // reading directions favoring greater width.
322
- X === "y";
323
- }
324
- return !0;
325
- }).map((F) => [F.placement, F.overflows.filter((X) => X > 0).reduce((X, ft) => X + ft, 0)]).sort((F, X) => F[1] - X[1])[0]) == null ? void 0 : h[0];
326
- M && (L = M);
327
- break;
328
- }
329
- case "initialPlacement":
330
- L = r;
331
- break;
332
- }
333
- if (s !== L)
334
- return {
335
- reset: {
336
- placement: L
337
- }
338
- };
339
- }
340
- return {};
341
- }
342
- };
343
- };
344
- async function St(e, t) {
345
- const {
346
- placement: o,
347
- platform: n,
348
- elements: s
349
- } = e, i = await (n.isRTL == null ? void 0 : n.isRTL(s.floating)), l = ee(o), r = Ce(o), c = oe(o) === "y", u = ["left", "top"].includes(l) ? -1 : 1, d = i && c ? -1 : 1, m = ke(t, e);
350
- let {
351
- mainAxis: w,
352
- crossAxis: g,
353
- alignmentAxis: f
354
- } = typeof m == "number" ? {
355
- mainAxis: m,
356
- crossAxis: 0,
357
- alignmentAxis: null
358
- } : {
359
- mainAxis: m.mainAxis || 0,
360
- crossAxis: m.crossAxis || 0,
361
- alignmentAxis: m.alignmentAxis
362
- };
363
- return r && typeof f == "number" && (g = r === "end" ? f * -1 : f), c ? {
364
- x: g * d,
365
- y: w * u
366
- } : {
367
- x: w * u,
368
- y: g * d
369
- };
370
- }
371
- const Tt = function(e) {
372
- return e === void 0 && (e = 0), {
373
- name: "offset",
374
- options: e,
375
- async fn(t) {
376
- var o, n;
377
- const {
378
- x: s,
379
- y: i,
380
- placement: l,
381
- middlewareData: r
382
- } = t, c = await St(t, e);
383
- return l === ((o = r.offset) == null ? void 0 : o.placement) && (n = r.arrow) != null && n.alignmentOffset ? {} : {
384
- x: s + c.x,
385
- y: i + c.y,
386
- data: {
387
- ...c,
388
- placement: l
389
- }
390
- };
391
- }
392
- };
393
- }, Dt = function(e) {
394
- return e === void 0 && (e = {}), {
395
- name: "shift",
396
- options: e,
397
- async fn(t) {
398
- const {
399
- x: o,
400
- y: n,
401
- placement: s
402
- } = t, {
403
- mainAxis: i = !0,
404
- crossAxis: l = !1,
405
- limiter: r = {
406
- fn: (b) => {
407
- let {
408
- x: A,
409
- y: R
410
- } = b;
411
- return {
412
- x: A,
413
- y: R
414
- };
415
- }
416
- },
417
- ...c
418
- } = ke(e, t), u = {
419
- x: o,
420
- y: n
421
- }, d = await ot(t, c), m = oe(ee(s)), w = et(m);
422
- let g = u[w], f = u[m];
423
- if (i) {
424
- const b = w === "y" ? "top" : "left", A = w === "y" ? "bottom" : "right", R = g + d[b], O = g - d[A];
425
- g = je(R, g, O);
426
- }
427
- if (l) {
428
- const b = m === "y" ? "top" : "left", A = m === "y" ? "bottom" : "right", R = f + d[b], O = f - d[A];
429
- f = je(R, f, O);
430
- }
431
- const x = r.fn({
432
- ...t,
433
- [w]: g,
434
- [m]: f
435
- });
436
- return {
437
- ...x,
438
- data: {
439
- x: x.x - o,
440
- y: x.y - n,
441
- enabled: {
442
- [w]: i,
443
- [m]: l
444
- }
445
- }
446
- };
447
- }
448
- };
449
- };
450
- function Ae() {
451
- return typeof window < "u";
452
- }
453
- function le(e) {
454
- return st(e) ? (e.nodeName || "").toLowerCase() : "#document";
455
- }
456
- function B(e) {
457
- var t;
458
- return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
459
- }
460
- function K(e) {
461
- var t;
462
- return (t = (st(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
463
- }
464
- function st(e) {
465
- return Ae() ? e instanceof Node || e instanceof B(e).Node : !1;
466
- }
467
- function P(e) {
468
- return Ae() ? e instanceof Element || e instanceof B(e).Element : !1;
469
- }
470
- function N(e) {
471
- return Ae() ? e instanceof HTMLElement || e instanceof B(e).HTMLElement : !1;
472
- }
473
- function ze(e) {
474
- return !Ae() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof B(e).ShadowRoot;
475
- }
476
- function ce(e) {
477
- const {
478
- overflow: t,
479
- overflowX: o,
480
- overflowY: n,
481
- display: s
482
- } = W(e);
483
- return /auto|scroll|overlay|hidden|clip/.test(t + n + o) && !["inline", "contents"].includes(s);
484
- }
485
- function Vt(e) {
486
- return ["table", "td", "th"].includes(le(e));
487
- }
488
- function Oe(e) {
489
- return [":popover-open", ":modal"].some((t) => {
490
- try {
491
- return e.matches(t);
492
- } catch {
493
- return !1;
494
- }
495
- });
496
- }
497
- function Te(e) {
498
- const t = De(), o = P(e) ? W(e) : e;
499
- return ["transform", "translate", "scale", "rotate", "perspective"].some((n) => o[n] ? o[n] !== "none" : !1) || (o.containerType ? o.containerType !== "normal" : !1) || !t && (o.backdropFilter ? o.backdropFilter !== "none" : !1) || !t && (o.filter ? o.filter !== "none" : !1) || ["transform", "translate", "scale", "rotate", "perspective", "filter"].some((n) => (o.willChange || "").includes(n)) || ["paint", "layout", "strict", "content"].some((n) => (o.contain || "").includes(n));
500
- }
501
- function Bt(e) {
502
- let t = G(e);
503
- for (; N(t) && !se(t); ) {
504
- if (Te(t))
505
- return t;
506
- if (Oe(t))
507
- return null;
508
- t = G(t);
509
- }
510
- return null;
511
- }
512
- function De() {
513
- return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
514
- }
515
- function se(e) {
516
- return ["html", "body", "#document"].includes(le(e));
517
- }
518
- function W(e) {
519
- return B(e).getComputedStyle(e);
520
- }
521
- function Re(e) {
522
- return P(e) ? {
523
- scrollLeft: e.scrollLeft,
524
- scrollTop: e.scrollTop
525
- } : {
526
- scrollLeft: e.scrollX,
527
- scrollTop: e.scrollY
528
- };
529
- }
530
- function G(e) {
531
- if (le(e) === "html")
532
- return e;
533
- const t = (
534
- // Step into the shadow DOM of the parent of a slotted node.
535
- e.assignedSlot || // DOM Element detected.
536
- e.parentNode || // ShadowRoot detected.
537
- ze(e) && e.host || // Fallback.
538
- K(e)
539
- );
540
- return ze(t) ? t.host : t;
541
- }
542
- function lt(e) {
543
- const t = G(e);
544
- return se(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : N(t) && ce(t) ? t : lt(t);
545
- }
546
- function ae(e, t, o) {
547
- var n;
548
- t === void 0 && (t = []), o === void 0 && (o = !0);
549
- const s = lt(e), i = s === ((n = e.ownerDocument) == null ? void 0 : n.body), l = B(s);
550
- if (i) {
551
- const r = Se(l);
552
- return t.concat(l, l.visualViewport || [], ce(s) ? s : [], r && o ? ae(r) : []);
553
- }
554
- return t.concat(s, ae(s, [], o));
555
- }
556
- function Se(e) {
557
- return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
558
- }
559
- function it(e) {
560
- const t = W(e);
561
- let o = parseFloat(t.width) || 0, n = parseFloat(t.height) || 0;
562
- const s = N(e), i = s ? e.offsetWidth : o, l = s ? e.offsetHeight : n, r = we(o) !== i || we(n) !== l;
563
- return r && (o = i, n = l), {
564
- width: o,
565
- height: n,
566
- $: r
567
- };
568
- }
569
- function Ve(e) {
570
- return P(e) ? e : e.contextElement;
571
- }
572
- function ne(e) {
573
- const t = Ve(e);
574
- if (!N(t))
575
- return z(1);
576
- const o = t.getBoundingClientRect(), {
577
- width: n,
578
- height: s,
579
- $: i
580
- } = it(t);
581
- let l = (i ? we(o.width) : o.width) / n, r = (i ? we(o.height) : o.height) / s;
582
- return (!l || !Number.isFinite(l)) && (l = 1), (!r || !Number.isFinite(r)) && (r = 1), {
583
- x: l,
584
- y: r
585
- };
586
- }
587
- const Ft = /* @__PURE__ */ z(0);
588
- function rt(e) {
589
- const t = B(e);
590
- return !De() || !t.visualViewport ? Ft : {
591
- x: t.visualViewport.offsetLeft,
592
- y: t.visualViewport.offsetTop
593
- };
594
- }
595
- function Pt(e, t, o) {
596
- return t === void 0 && (t = !1), !o || t && o !== B(e) ? !1 : t;
597
- }
598
- function te(e, t, o, n) {
599
- t === void 0 && (t = !1), o === void 0 && (o = !1);
600
- const s = e.getBoundingClientRect(), i = Ve(e);
601
- let l = z(1);
602
- t && (n ? P(n) && (l = ne(n)) : l = ne(e));
603
- const r = Pt(i, o, n) ? rt(i) : z(0);
604
- let c = (s.left + r.x) / l.x, u = (s.top + r.y) / l.y, d = s.width / l.x, m = s.height / l.y;
605
- if (i) {
606
- const w = B(i), g = n && P(n) ? B(n) : n;
607
- let f = w, x = Se(f);
608
- for (; x && n && g !== f; ) {
609
- const b = ne(x), A = x.getBoundingClientRect(), R = W(x), O = A.left + (x.clientLeft + parseFloat(R.paddingLeft)) * b.x, S = A.top + (x.clientTop + parseFloat(R.paddingTop)) * b.y;
610
- c *= b.x, u *= b.y, d *= b.x, m *= b.y, c += O, u += S, f = B(x), x = Se(f);
611
- }
612
- }
613
- return xe({
614
- width: d,
615
- height: m,
616
- x: c,
617
- y: u
618
- });
619
- }
620
- function Be(e, t) {
621
- const o = Re(e).scrollLeft;
622
- return t ? t.left + o : te(K(e)).left + o;
623
- }
624
- function at(e, t, o) {
625
- o === void 0 && (o = !1);
626
- const n = e.getBoundingClientRect(), s = n.left + t.scrollLeft - (o ? 0 : (
627
- // RTL <body> scrollbar.
628
- Be(e, n)
629
- )), i = n.top + t.scrollTop;
630
- return {
631
- x: s,
632
- y: i
633
- };
634
- }
635
- function Wt(e) {
636
- let {
637
- elements: t,
638
- rect: o,
639
- offsetParent: n,
640
- strategy: s
641
- } = e;
642
- const i = s === "fixed", l = K(n), r = t ? Oe(t.floating) : !1;
643
- if (n === l || r && i)
644
- return o;
645
- let c = {
646
- scrollLeft: 0,
647
- scrollTop: 0
648
- }, u = z(1);
649
- const d = z(0), m = N(n);
650
- if ((m || !m && !i) && ((le(n) !== "body" || ce(l)) && (c = Re(n)), N(n))) {
651
- const g = te(n);
652
- u = ne(n), d.x = g.x + n.clientLeft, d.y = g.y + n.clientTop;
653
- }
654
- const w = l && !m && !i ? at(l, c, !0) : z(0);
655
- return {
656
- width: o.width * u.x,
657
- height: o.height * u.y,
658
- x: o.x * u.x - c.scrollLeft * u.x + d.x + w.x,
659
- y: o.y * u.y - c.scrollTop * u.y + d.y + w.y
660
- };
661
- }
662
- function jt(e) {
663
- return Array.from(e.getClientRects());
664
- }
665
- function It(e) {
666
- const t = K(e), o = Re(e), n = e.ownerDocument.body, s = Q(t.scrollWidth, t.clientWidth, n.scrollWidth, n.clientWidth), i = Q(t.scrollHeight, t.clientHeight, n.scrollHeight, n.clientHeight);
667
- let l = -o.scrollLeft + Be(e);
668
- const r = -o.scrollTop;
669
- return W(n).direction === "rtl" && (l += Q(t.clientWidth, n.clientWidth) - s), {
670
- width: s,
671
- height: i,
672
- x: l,
673
- y: r
674
- };
675
- }
676
- function zt(e, t) {
677
- const o = B(e), n = K(e), s = o.visualViewport;
678
- let i = n.clientWidth, l = n.clientHeight, r = 0, c = 0;
679
- if (s) {
680
- i = s.width, l = s.height;
681
- const u = De();
682
- (!u || u && t === "fixed") && (r = s.offsetLeft, c = s.offsetTop);
683
- }
684
- return {
685
- width: i,
686
- height: l,
687
- x: r,
688
- y: c
689
- };
690
- }
691
- function Nt(e, t) {
692
- const o = te(e, !0, t === "fixed"), n = o.top + e.clientTop, s = o.left + e.clientLeft, i = N(e) ? ne(e) : z(1), l = e.clientWidth * i.x, r = e.clientHeight * i.y, c = s * i.x, u = n * i.y;
693
- return {
694
- width: l,
695
- height: r,
696
- x: c,
697
- y: u
698
- };
699
- }
700
- function Ne(e, t, o) {
701
- let n;
702
- if (t === "viewport")
703
- n = zt(e, o);
704
- else if (t === "document")
705
- n = It(K(e));
706
- else if (P(t))
707
- n = Nt(t, o);
708
- else {
709
- const s = rt(e);
710
- n = {
711
- x: t.x - s.x,
712
- y: t.y - s.y,
713
- width: t.width,
714
- height: t.height
715
- };
716
- }
717
- return xe(n);
718
- }
719
- function ct(e, t) {
720
- const o = G(e);
721
- return o === t || !P(o) || se(o) ? !1 : W(o).position === "fixed" || ct(o, t);
722
- }
723
- function Kt(e, t) {
724
- const o = t.get(e);
725
- if (o)
726
- return o;
727
- let n = ae(e, [], !1).filter((r) => P(r) && le(r) !== "body"), s = null;
728
- const i = W(e).position === "fixed";
729
- let l = i ? G(e) : e;
730
- for (; P(l) && !se(l); ) {
731
- const r = W(l), c = Te(l);
732
- !c && r.position === "fixed" && (s = null), (i ? !c && !s : !c && r.position === "static" && !!s && ["absolute", "fixed"].includes(s.position) || ce(l) && !c && ct(e, l)) ? n = n.filter((d) => d !== l) : s = r, l = G(l);
733
- }
734
- return t.set(e, n), n;
735
- }
736
- function Ht(e) {
737
- let {
738
- element: t,
739
- boundary: o,
740
- rootBoundary: n,
741
- strategy: s
742
- } = e;
743
- const l = [...o === "clippingAncestors" ? Oe(t) ? [] : Kt(t, this._c) : [].concat(o), n], r = l[0], c = l.reduce((u, d) => {
744
- const m = Ne(t, d, s);
745
- return u.top = Q(m.top, u.top), u.right = ve(m.right, u.right), u.bottom = ve(m.bottom, u.bottom), u.left = Q(m.left, u.left), u;
746
- }, Ne(t, r, s));
747
- return {
748
- width: c.right - c.left,
749
- height: c.bottom - c.top,
750
- x: c.left,
751
- y: c.top
752
- };
753
- }
754
- function Ut(e) {
755
- const {
756
- width: t,
757
- height: o
758
- } = it(e);
759
- return {
760
- width: t,
761
- height: o
762
- };
763
- }
764
- function qt(e, t, o) {
765
- const n = N(t), s = K(t), i = o === "fixed", l = te(e, !0, i, t);
766
- let r = {
767
- scrollLeft: 0,
768
- scrollTop: 0
769
- };
770
- const c = z(0);
771
- if (n || !n && !i)
772
- if ((le(t) !== "body" || ce(s)) && (r = Re(t)), n) {
773
- const w = te(t, !0, i, t);
774
- c.x = w.x + t.clientLeft, c.y = w.y + t.clientTop;
775
- } else
776
- s && (c.x = Be(s));
777
- const u = s && !n && !i ? at(s, r) : z(0), d = l.left + r.scrollLeft - c.x - u.x, m = l.top + r.scrollTop - c.y - u.y;
778
- return {
779
- x: d,
780
- y: m,
781
- width: l.width,
782
- height: l.height
783
- };
784
- }
785
- function Le(e) {
786
- return W(e).position === "static";
787
- }
788
- function Ke(e, t) {
789
- if (!N(e) || W(e).position === "fixed")
790
- return null;
791
- if (t)
792
- return t(e);
793
- let o = e.offsetParent;
794
- return K(e) === o && (o = o.ownerDocument.body), o;
795
- }
796
- function ut(e, t) {
797
- const o = B(e);
798
- if (Oe(e))
799
- return o;
800
- if (!N(e)) {
801
- let s = G(e);
802
- for (; s && !se(s); ) {
803
- if (P(s) && !Le(s))
804
- return s;
805
- s = G(s);
806
- }
807
- return o;
808
- }
809
- let n = Ke(e, t);
810
- for (; n && Vt(n) && Le(n); )
811
- n = Ke(n, t);
812
- return n && se(n) && Le(n) && !Te(n) ? o : n || Bt(e) || o;
813
- }
814
- const Yt = async function(e) {
815
- const t = this.getOffsetParent || ut, o = this.getDimensions, n = await o(e.floating);
816
- return {
817
- reference: qt(e.reference, await t(e.floating), e.strategy),
818
- floating: {
819
- x: 0,
820
- y: 0,
821
- width: n.width,
822
- height: n.height
823
- }
824
- };
825
- };
826
- function Xt(e) {
827
- return W(e).direction === "rtl";
828
- }
829
- const Gt = {
830
- convertOffsetParentRelativeRectToViewportRelativeRect: Wt,
831
- getDocumentElement: K,
832
- getClippingRect: Ht,
833
- getOffsetParent: ut,
834
- getElementRects: Yt,
835
- getClientRects: jt,
836
- getDimensions: Ut,
837
- getScale: ne,
838
- isElement: P,
839
- isRTL: Xt
840
- };
841
- function dt(e, t) {
842
- return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
843
- }
844
- function Jt(e, t) {
845
- let o = null, n;
846
- const s = K(e);
847
- function i() {
848
- var r;
849
- clearTimeout(n), (r = o) == null || r.disconnect(), o = null;
850
- }
851
- function l(r, c) {
852
- r === void 0 && (r = !1), c === void 0 && (c = 1), i();
853
- const u = e.getBoundingClientRect(), {
854
- left: d,
855
- top: m,
856
- width: w,
857
- height: g
858
- } = u;
859
- if (r || t(), !w || !g)
860
- return;
861
- const f = fe(m), x = fe(s.clientWidth - (d + w)), b = fe(s.clientHeight - (m + g)), A = fe(d), O = {
862
- rootMargin: -f + "px " + -x + "px " + -b + "px " + -A + "px",
863
- threshold: Q(0, ve(1, c)) || 1
864
- };
865
- let S = !0;
866
- function $(U) {
867
- const q = U[0].intersectionRatio;
868
- if (q !== c) {
869
- if (!S)
870
- return l();
871
- q ? l(!1, q) : n = setTimeout(() => {
872
- l(!1, 1e-7);
873
- }, 1e3);
874
- }
875
- q === 1 && !dt(u, e.getBoundingClientRect()) && l(), S = !1;
876
- }
877
- try {
878
- o = new IntersectionObserver($, {
879
- ...O,
880
- // Handle <iframe>s
881
- root: s.ownerDocument
882
- });
883
- } catch {
884
- o = new IntersectionObserver($, O);
885
- }
886
- o.observe(e);
887
- }
888
- return l(!0), i;
889
- }
890
- function Zt(e, t, o, n) {
891
- n === void 0 && (n = {});
892
- const {
893
- ancestorScroll: s = !0,
894
- ancestorResize: i = !0,
895
- elementResize: l = typeof ResizeObserver == "function",
896
- layoutShift: r = typeof IntersectionObserver == "function",
897
- animationFrame: c = !1
898
- } = n, u = Ve(e), d = s || i ? [...u ? ae(u) : [], ...ae(t)] : [];
899
- d.forEach((A) => {
900
- s && A.addEventListener("scroll", o, {
901
- passive: !0
902
- }), i && A.addEventListener("resize", o);
903
- });
904
- const m = u && r ? Jt(u, o) : null;
905
- let w = -1, g = null;
906
- l && (g = new ResizeObserver((A) => {
907
- let [R] = A;
908
- R && R.target === u && g && (g.unobserve(t), cancelAnimationFrame(w), w = requestAnimationFrame(() => {
909
- var O;
910
- (O = g) == null || O.observe(t);
911
- })), o();
912
- }), u && !c && g.observe(u), g.observe(t));
913
- let f, x = c ? te(e) : null;
914
- c && b();
915
- function b() {
916
- const A = te(e);
917
- x && !dt(x, A) && o(), x = A, f = requestAnimationFrame(b);
918
- }
919
- return o(), () => {
920
- var A;
921
- d.forEach((R) => {
922
- s && R.removeEventListener("scroll", o), i && R.removeEventListener("resize", o);
923
- }), m == null || m(), (A = g) == null || A.disconnect(), g = null, c && cancelAnimationFrame(f);
924
- };
925
- }
926
- const He = Tt, Ue = Dt, qe = Et, Ye = (e, t, o) => {
927
- const n = /* @__PURE__ */ new Map(), s = {
928
- platform: Gt,
929
- ...o
930
- }, i = {
931
- ...s.platform,
932
- _c: n
933
- };
934
- return _t(e, t, {
935
- ...s,
936
- platform: i
937
- });
938
- }, Qt = ["data-opened"], en = {
939
- key: 0,
940
- class: "text-sm text-secondary-content px-3 py-2 text-left"
941
- }, tn = /* @__PURE__ */ be({
942
- __name: "OneDropdownAuto",
943
- props: pt,
944
- emits: ["open", "close"],
945
- setup(e, { emit: t }) {
946
- const o = e, n = D(!1), s = D(null), i = D(null);
947
- let l = null;
948
- Ge(n, (d) => {
949
- d && i.value && s.value ? (Ye(i.value, s.value, {
950
- placement: o.stick ? o.stick : "bottom-start",
951
- strategy: "fixed",
952
- middleware: [He(5), qe(), Ue({ padding: 8 })]
953
- }).then(({ x: m, y: w }) => {
954
- Object.assign(s.value.style, {
955
- left: `${m}px`,
956
- top: `${w}px`
957
- });
958
- }), l = Zt(i.value, s.value, () => {
959
- Ye(i.value, s.value, {
960
- placement: o.stick ? o.stick : "bottom-start",
961
- strategy: "fixed",
962
- middleware: [He(4), qe(), Ue({ padding: 8 })]
963
- }).then(({ x: m, y: w }) => {
964
- Object.assign(s.value.style, {
965
- left: `${m}px`,
966
- top: `${w}px`
967
- });
968
- });
969
- })) : l && (l(), l = null);
970
- }), Je(() => {
971
- l && l();
972
- });
973
- const r = t, c = () => {
974
- n.value = !n.value, n.value ? r("open") : r("close");
975
- };
976
- wt("OneDropdown", {
977
- onToggle: c
978
- });
979
- const u = I(() => [
980
- "fixed z-[10000] w-fit rounded-md bg-white",
981
- "py-1 shadow-lg ring-black ring-opacity-5 focus:outline-none",
982
- "overflow-auto max-h-[540px] min-w-[150px] max-w-[540px]"
983
- ]);
984
- return (d, m) => (v(), y("div", {
985
- class: "relative inline-block",
986
- "data-opened": n.value
987
- }, [
988
- p("div", {
989
- ref_key: "buttonRef",
990
- ref: i
991
- }, [
992
- V(d.$slots, "button", pe(me({ onToggle: c, isExpanded: n.value })))
993
- ], 512),
994
- (v(), he(yt, { to: "body" }, [
995
- n.value ? (v(), y("div", {
996
- key: 0,
997
- class: "fixed top-0 left-0 w-screen h-screen z-[9999]",
998
- onClick: c
999
- })) : T("", !0),
1000
- _e(p("div", {
1001
- ref_key: "menuRef",
1002
- ref: s,
1003
- class: E(["menu", u.value]),
1004
- role: "menu",
1005
- "aria-orientation": "vertical",
1006
- tabindex: "-1",
1007
- style: { display: "none" }
1008
- }, [
1009
- d.title ? (v(), y("div", en, _(d.title), 1)) : T("", !0),
1010
- V(d.$slots, "menu", pe(me({ onToggle: c })))
1011
- ], 2), [
1012
- [xt, n.value]
1013
- ])
1014
- ]))
1015
- ], 8, Qt));
1016
- }
1017
- }), nn = {}, on = { class: "border-t border-secondary-stroke my-1" };
1018
- function sn(e, t) {
1019
- return v(), y("div", on);
1020
- }
1021
- const ho = /* @__PURE__ */ Qe(nn, [["render", sn]]), ln = ["onClick"], rn = { class: "grid" }, an = { class: "font-semibold px-3" }, cn = { class: "rounded-lg m-3 border" }, un = {
1022
- class: "space-x-2 flex items-center px-3 py-2",
1023
- style: { width: "300px" }
1024
- }, dn = { class: "flex-shrink-0" }, fn = { class: "w-full text-left" }, pn = { class: "flex-shrink-0" }, mn = { class: "px-3 py-2" }, hn = { class: "text-secondary-content text-left pb-1 text-sm uppercase" }, gn = {
1025
- key: 0,
1026
- class: "space-y-2"
1027
- }, vn = ["onClick"], wn = { class: "pl-2" }, yn = { class: "text-sm mt-1" }, xn = { class: "text-xs mt-1" }, Xe = 3, go = /* @__PURE__ */ be({
1028
- __name: "OneBrowserMenuGrid",
1029
- props: mt,
1030
- setup(e) {
1031
- const t = e, o = () => {
1032
- typeof t.onChange == "function" && t.onChange();
1033
- }, n = D(!1), s = I(() => t.apps ? n.value ? t.apps : t.apps.slice(0, Xe) : []), i = () => {
1034
- n.value = !n.value;
1035
- }, l = (r) => {
1036
- typeof t.onApp == "function" && t.onApp(r);
1037
- };
1038
- return (r, c) => (v(), he(ht, { stick: "right" }, {
1039
- button: re(({ onToggle: u, isExpanded: d }) => [
1040
- p("button", {
1041
- onClick: u,
1042
- class: E(["p-1 rounded-md hover:bg-secondary-10", [d ? "bg-secondary-25" : ""]])
1043
- }, [
1044
- Me(H(gt), {
1045
- class: "text-secondary-base",
1046
- style: ge(`width: ${r.iconSize}px; height: ${r.iconSize}px`)
1047
- }, null, 8, ["style"])
1048
- ], 10, ln)
1049
- ]),
1050
- menu: re(() => {
1051
- var u, d, m, w;
1052
- return [
1053
- p("div", rn, [
1054
- p("div", an, _((u = r.workspace) == null ? void 0 : u.title), 1),
1055
- p("div", cn, [
1056
- p("div", un, [
1057
- p("div", dn, [
1058
- Me(We, {
1059
- text: ((d = r.workspace) == null ? void 0 : d.name) || "",
1060
- src: (m = r.workspace) == null ? void 0 : m.photo_url,
1061
- size: 44,
1062
- rounded: !1,
1063
- class: "mx-auto"
1064
- }, null, 8, ["text", "src"])
1065
- ]),
1066
- p("div", fn, _((w = r.workspace) == null ? void 0 : w.name), 1),
1067
- p("div", pn, [
1068
- p("button", {
1069
- class: "text-sm border border-secondary-stroke rounded px-2 py-0.5 text-secondary-content hover:text-primary-content",
1070
- onClick: o
1071
- }, _(r.changeLabel), 1)
1072
- ])
1073
- ]),
1074
- c[0] || (c[0] = p("hr", null, null, -1))
1075
- ])
1076
- ]),
1077
- p("div", mn, [
1078
- p("div", hn, _(r.appsTitle), 1),
1079
- p("div", null, [
1080
- r.apps && r.apps.length ? (v(), y("div", gn, [
1081
- (v(!0), y(j, null, Z(s.value, (g) => (v(), y("div", {
1082
- key: g.id,
1083
- onClick: (f) => l(g),
1084
- class: "flex items-center rounded-lg hover:bg-secondary-10 border p-2 bg-[#FAFAFA] cursor-pointer"
1085
- }, [
1086
- Me(We, {
1087
- text: g.name,
1088
- src: g.photo_url,
1089
- size: 44,
1090
- rounded: !1
1091
- }, null, 8, ["text", "src"]),
1092
- p("div", wn, [
1093
- p("p", yn, _(g.name), 1),
1094
- p("p", xn, _(g.short), 1)
1095
- ])
1096
- ], 8, vn))), 128))
1097
- ])) : T("", !0),
1098
- r.apps && r.apps.length > Xe ? (v(), y("button", {
1099
- key: 1,
1100
- onClick: i,
1101
- class: "mt-2 w-full bg-[#FAFAFA] hover:bg-secondary-10 p-2 rounded-lg mb-5 text-xs"
1102
- }, _(n.value ? "Приховати" : "Дивитися всі"), 1)) : T("", !0)
1103
- ])
1104
- ])
1105
- ];
1106
- }),
1107
- _: 1
1108
- }));
1109
- }
1110
- }), bn = {
1111
- useModal: {
1112
- required: !0,
1113
- type: Object
1114
- },
1115
- title: {
1116
- required: !1,
1117
- type: String
1118
- },
1119
- size: {
1120
- type: String,
1121
- default: "medium"
1122
- },
1123
- onClose: {
1124
- type: Function
1125
- },
1126
- classModal: {
1127
- type: Boolean,
1128
- default: !1
1129
- },
1130
- titleCenter: {
1131
- type: Boolean,
1132
- default: !1
1133
- },
1134
- classTitle: {
1135
- type: String,
1136
- default: ""
1137
- },
1138
- canClose: {
1139
- type: Function,
1140
- default: () => !0
1141
- },
1142
- customWidth: {
1143
- type: String,
1144
- default: ""
1145
- }
1146
- }, kn = {
1147
- "3xs": ["max-w-xs"],
1148
- xs: ["max-w-sm"],
1149
- sm: ["max-w-md"],
1150
- small: ["max-w-lg"],
1151
- md: ["max-w-xl"],
1152
- medium: ["max-w-xl"],
1153
- large: ["max-w-2xl"],
1154
- xl: ["max-w-3xl"],
1155
- "2xl": ["max-w-4xl"],
1156
- "3xl": ["max-w-4xl"],
1157
- "4xl": ["max-w-5xl"],
1158
- "5xl": ["max-w-5xl"],
1159
- "7xl": ["max-w-7xl"]
1160
- }, Cn = (e = "medium") => {
1161
- const t = [];
1162
- return t.push(...kn[e] ?? []), t;
1163
- }, An = { class: "relative bg-white rounded-lg shadow h-full" }, On = /* @__PURE__ */ be({
1164
- __name: "OneModal",
1165
- props: bn,
1166
- emits: ["isOpen", "closed"],
1167
- setup(e, { expose: t, emit: o }) {
1168
- const n = e, s = o, i = I(() => {
1169
- var x, b;
1170
- const f = n.useModal;
1171
- return ((x = f == null ? void 0 : f.isOpened) == null ? void 0 : x.value) ?? ((b = f == null ? void 0 : f.isOpen) == null ? void 0 : b.value) ?? !1;
1172
- }), l = I(() => Cn(n.size)), r = I(() => n.customWidth ? { width: n.customWidth } : {}), c = D(null), u = D(!1);
1173
- function d(f) {
1174
- u.value = !1, c.value && !c.value.contains(f.target) && (u.value = !0);
1175
- }
1176
- function m(f) {
1177
- u.value && c.value && !c.value.contains(f.target) && w();
1178
- }
1179
- const w = () => {
1180
- var x, b;
1181
- if (n.canClose && !n.canClose())
1182
- return;
1183
- const f = n.useModal;
1184
- (x = f == null ? void 0 : f.close) == null || x.call(f), (b = n.onClose) == null || b.call(n), s("closed"), s("isOpen");
1185
- };
1186
- return t({
1187
- open: () => {
1188
- var x;
1189
- const f = n.useModal;
1190
- (x = f == null ? void 0 : f.open) == null || x.call(f), s("isOpen");
1191
- },
1192
- close: w
1193
- }), (f, x) => i.value ? (v(), y("div", {
1194
- key: 0,
1195
- tabindex: "-1",
1196
- onMousedown: d,
1197
- onMouseup: m,
1198
- class: E(["modal backdrop !m-0", { "modal-mobile": f.classModal }])
1199
- }, [
1200
- p("div", {
1201
- class: E([
1202
- "relative w-full max-h-full",
1203
- l.value,
1204
- { "fixed bottom-0 left-0 right-0 w-full bg-white rounded-t-xl mobile-modal": f.classModal }
1205
- ]),
1206
- style: ge(r.value),
1207
- ref_key: "modalContent",
1208
- ref: c
1209
- }, [
1210
- p("div", An, [
1211
- f.title ? (v(), y("div", {
1212
- key: 0,
1213
- class: E([
1214
- f.titleCenter ? "grid grid-cols-4" : "flex items-start justify-between",
1215
- "p-3 border-b rounded-t",
1216
- f.classTitle
1217
- ])
1218
- }, [
1219
- p("h3", {
1220
- class: E(["text-xl font-semibold text-gray-900 whitespace-nowrap overflow-hidden text-ellipsis", f.titleCenter ? "col-span-2 text-center col-start-2" : ""])
1221
- }, _(f.title), 3),
1222
- p("button", {
1223
- type: "button",
1224
- class: "text-gray-400 bg-transparent hover:bg-gray-200 hover:text-gray-900 rounded-lg text-sm p-1.5 ml-auto inline-flex items-center",
1225
- onClick: w
1226
- }, x[0] || (x[0] = [
1227
- p("svg", {
1228
- xmlns: "http://www.w3.org/2000/svg",
1229
- fill: "none",
1230
- viewBox: "0 0 24 24",
1231
- "stroke-width": "1.8",
1232
- stroke: "currentColor",
1233
- "aria-hidden": "true",
1234
- class: "w-5 h-5"
1235
- }, [
1236
- p("path", {
1237
- "stroke-linecap": "round",
1238
- "stroke-linejoin": "round",
1239
- d: "M6 18L18 6M6 6l12 12"
1240
- })
1241
- ], -1)
1242
- ]))
1243
- ], 2)) : T("", !0),
1244
- V(f.$slots, "header", {}, void 0, !0),
1245
- V(f.$slots, "body", {}, void 0, !0),
1246
- V(f.$slots, "default", {}, void 0, !0),
1247
- V(f.$slots, "footer", { close: w }, void 0, !0)
1248
- ])
1249
- ], 6)
1250
- ], 34)) : T("", !0);
1251
- }
1252
- });
1253
- const Rn = /* @__PURE__ */ Qe(On, [["__scopeId", "data-v-3560b61e"]]);
1254
- function Mn(e = !1) {
1255
- const t = D(e), o = D(void 0);
1256
- let n = null;
1257
- const s = () => {
1258
- n && (clearTimeout(n), n = null), t.value = !1, o.value = void 0;
1259
- }, i = (c) => {
1260
- o.value = c, t.value = !0;
1261
- }, l = (c) => {
1262
- n && clearTimeout(n), n = setTimeout(s, c * 1e3);
1263
- }, r = (c) => {
1264
- c.key === "Escape" && t.value && s();
1265
- };
1266
- return Ze(() => {
1267
- document.addEventListener("keydown", r);
1268
- }), Je(() => {
1269
- document.removeEventListener("keydown", r), n && clearTimeout(n);
1270
- }), {
1271
- isOpened: t,
1272
- isOpen: t,
1273
- // alias for backward compatibility
1274
- data: o,
1275
- open: i,
1276
- close: s,
1277
- closeWithDelay: l
1278
- };
1279
- }
1280
- const $n = ["onClick"], Ln = ["onKeydown"], _n = {
1281
- key: 0,
1282
- class: "text-sm font-medium text-gray-700 px-3 pt-2.5 pb-1.5"
1283
- }, En = {
1284
- key: 1,
1285
- class: "px-3 py-2"
1286
- }, Sn = { class: "relative" }, Tn = ["placeholder"], Dn = {
1287
- key: 2,
1288
- class: "border-b border-gray-100"
1289
- }, Vn = ["onClick"], Bn = {
1290
- key: 3,
1291
- class: "flex justify-center py-4"
1292
- }, Fn = ["aria-selected", "onClick"], Pn = {
1293
- key: 0,
1294
- xmlns: "http://www.w3.org/2000/svg",
1295
- fill: "none",
1296
- viewBox: "0 0 24 24",
1297
- "stroke-width": "1.5",
1298
- stroke: "currentColor",
1299
- class: "w-4 h-4 text-blue-600 shrink-0"
1300
- }, Wn = {
1301
- key: 1,
1302
- class: "w-4 h-4 shrink-0"
1303
- }, jn = ["aria-selected", "onClick", "onMouseenter"], In = {
1304
- key: 0,
1305
- xmlns: "http://www.w3.org/2000/svg",
1306
- fill: "none",
1307
- viewBox: "0 0 24 24",
1308
- "stroke-width": "1.5",
1309
- stroke: "currentColor",
1310
- class: "w-4 h-4 text-blue-600 shrink-0"
1311
- }, zn = {
1312
- key: 1,
1313
- class: "w-4 h-4 shrink-0"
1314
- }, Nn = ["aria-selected", "onClick", "onMouseenter"], Kn = {
1315
- key: 0,
1316
- xmlns: "http://www.w3.org/2000/svg",
1317
- fill: "none",
1318
- viewBox: "0 0 24 24",
1319
- "stroke-width": "1.5",
1320
- stroke: "currentColor",
1321
- class: "w-4 h-4 text-blue-600 shrink-0"
1322
- }, Hn = {
1323
- key: 1,
1324
- class: "w-4 h-4 shrink-0"
1325
- }, Un = {
1326
- key: 3,
1327
- class: "px-3 py-4 text-sm text-gray-500 text-center"
1328
- }, qn = { class: "pb-6" }, Yn = {
1329
- key: 0,
1330
- class: "relative px-3 py-3"
1331
- }, Xn = { class: "relative" }, Gn = ["placeholder"], Jn = {
1332
- key: 1,
1333
- class: "px-3 py-2"
1334
- }, Zn = {
1335
- key: 2,
1336
- class: "flex justify-center py-8"
1337
- }, Qn = {
1338
- key: 3,
1339
- class: "overflow-auto h-[60dvh] divide-y",
1340
- role: "listbox"
1341
- }, eo = ["aria-selected"], to = {
1342
- key: 0,
1343
- xmlns: "http://www.w3.org/2000/svg",
1344
- fill: "none",
1345
- viewBox: "0 0 24 24",
1346
- "stroke-width": "1.5",
1347
- stroke: "currentColor",
1348
- class: "w-5 h-5 text-blue-600 shrink-0"
1349
- }, no = {
1350
- key: 1,
1351
- class: "w-5 h-5 shrink-0"
1352
- }, oo = ["aria-selected", "onClick"], so = {
1353
- key: 0,
1354
- xmlns: "http://www.w3.org/2000/svg",
1355
- fill: "none",
1356
- viewBox: "0 0 24 24",
1357
- "stroke-width": "1.5",
1358
- stroke: "currentColor",
1359
- class: "w-5 h-5 text-blue-600 shrink-0"
1360
- }, lo = {
1361
- key: 1,
1362
- class: "w-5 h-5 shrink-0"
1363
- }, io = ["aria-selected", "onClick"], ro = {
1364
- key: 0,
1365
- xmlns: "http://www.w3.org/2000/svg",
1366
- fill: "none",
1367
- viewBox: "0 0 24 24",
1368
- "stroke-width": "1.5",
1369
- stroke: "currentColor",
1370
- class: "w-5 h-5 text-blue-600 shrink-0"
1371
- }, ao = {
1372
- key: 1,
1373
- class: "w-5 h-5 shrink-0"
1374
- }, co = {
1375
- key: 3,
1376
- class: "px-3 py-8 text-sm text-gray-500 text-center"
1377
- }, vo = /* @__PURE__ */ be({
1378
- __name: "OneDropdownSelect",
1379
- props: vt,
1380
- emits: ["update:modelValue", "search", "create"],
1381
- setup(e, { emit: t }) {
1382
- const o = e, n = t, s = D(!1);
1383
- let i = null;
1384
- Ze(() => {
1385
- i = window.matchMedia("(max-width: 767px)"), s.value = i.matches;
1386
- const a = (h) => {
1387
- s.value = h.matches;
1388
- };
1389
- i.addEventListener("change", a), bt(() => {
1390
- i == null || i.removeEventListener("change", a);
1391
- });
1392
- });
1393
- const l = Mn(), r = D(null), c = () => {
1394
- u.value = "", d.value = -1, l.open(), $e(() => {
1395
- var a;
1396
- (a = r.value) == null || a.focus();
1397
- });
1398
- }, u = D(""), d = D(-1), m = D(null), w = D(null), g = D({}), f = (a, h) => {
1399
- a && (g.value[h] = a);
1400
- }, x = I(() => o.allowEmpty ? 1 : 0), b = I(() => {
1401
- if (!u.value.trim())
1402
- return o.items;
1403
- const a = u.value.toLowerCase();
1404
- return o.items.filter(
1405
- (h) => String(h[o.labelKey] ?? "").toLowerCase().includes(a)
1406
- );
1407
- }), A = I(() => {
1408
- if (!o.groupKey)
1409
- return [];
1410
- const a = [], h = /* @__PURE__ */ new Map();
1411
- let k = x.value;
1412
- for (const C of b.value) {
1413
- const L = String(C[o.groupKey] ?? "");
1414
- let M = h.get(L);
1415
- M || (M = { label: L, entries: [] }, h.set(L, M), a.push(M)), M.entries.push({ item: C, flatIndex: k }), k++;
1416
- }
1417
- return a;
1418
- }), R = I(() => o.modelValue === null || o.modelValue === void 0 ? o.placeholder : o.modelValue[o.labelKey] ?? o.placeholder), O = (a) => o.modelValue ? o.modelValue[o.valueKey] === a[o.valueKey] : !1, S = I(() => b.value.length + x.value), $ = (a, h) => {
1419
- n("update:modelValue", a), h();
1420
- }, U = (a) => {
1421
- n("create", u.value), a();
1422
- }, q = () => {
1423
- u.value = "", d.value = -1, $e(() => {
1424
- var a;
1425
- (a = m.value) == null || a.focus();
1426
- });
1427
- }, ie = () => {
1428
- u.value = "", d.value = -1;
1429
- }, J = () => {
1430
- d.value = 0, n("search", u.value);
1431
- }, Y = () => {
1432
- $e(() => {
1433
- const a = g.value[d.value];
1434
- a && a.scrollIntoView({ block: "nearest" });
1435
- });
1436
- }, ue = (a, h) => {
1437
- switch (a.key) {
1438
- case "ArrowDown":
1439
- a.preventDefault(), d.value < S.value - 1 ? d.value++ : d.value = 0, Y();
1440
- break;
1441
- case "ArrowUp":
1442
- a.preventDefault(), d.value > 0 ? d.value-- : d.value = S.value - 1, Y();
1443
- break;
1444
- case "Enter":
1445
- if (a.preventDefault(), d.value >= 0)
1446
- if (o.allowEmpty && d.value === 0)
1447
- $(null, h);
1448
- else {
1449
- const k = d.value - x.value, C = b.value[k];
1450
- C && $(C, h);
1451
- }
1452
- break;
1453
- case "Escape":
1454
- a.preventDefault(), h();
1455
- break;
1456
- }
1457
- };
1458
- return Ge(u, () => {
1459
- d.value = 0;
1460
- }), (a, h) => s.value ? (v(), y(j, { key: 1 }, [
1461
- V(a.$slots, "button", pe(me({ onToggle: c, isExpanded: H(l).isOpened.value, selectedLabel: R.value })), () => [
1462
- p("button", {
1463
- class: "inline-flex items-center justify-between gap-2 rounded-lg border border-gray-300 bg-white px-3 py-2 text-sm hover:bg-gray-50 transition-colors min-w-[180px]",
1464
- style: ge(a.maxWidth ? { maxWidth: a.maxWidth } : void 0),
1465
- onClick: c
1466
- }, [
1467
- p("span", {
1468
- class: E(["truncate", a.modelValue ? "text-gray-900" : "text-gray-500"])
1469
- }, _(R.value), 3),
1470
- h[13] || (h[13] = p("svg", {
1471
- xmlns: "http://www.w3.org/2000/svg",
1472
- fill: "none",
1473
- viewBox: "0 0 24 24",
1474
- "stroke-width": "1.5",
1475
- stroke: "currentColor",
1476
- class: "w-4 h-4 text-gray-400 shrink-0"
1477
- }, [
1478
- p("path", {
1479
- "stroke-linecap": "round",
1480
- "stroke-linejoin": "round",
1481
- d: "M19.5 8.25l-7.5 7.5-7.5-7.5"
1482
- })
1483
- ], -1))
1484
- ], 4)
1485
- ]),
1486
- H(l).isOpened.value ? (v(), he(H(Rn), {
1487
- key: 0,
1488
- useModal: H(l),
1489
- title: a.title || a.placeholder,
1490
- size: "sm",
1491
- classModal: !0,
1492
- titleCenter: !0
1493
- }, {
1494
- default: re(() => [
1495
- p("div", qn, [
1496
- a.searchable ? (v(), y("div", Yn, [
1497
- p("div", Xn, [
1498
- h[14] || (h[14] = p("svg", {
1499
- xmlns: "http://www.w3.org/2000/svg",
1500
- fill: "none",
1501
- viewBox: "0 0 24 24",
1502
- "stroke-width": "1.5",
1503
- stroke: "currentColor",
1504
- class: "absolute left-2.5 top-1/2 -translate-y-1/2 w-4 h-4 text-gray-400"
1505
- }, [
1506
- p("path", {
1507
- "stroke-linecap": "round",
1508
- "stroke-linejoin": "round",
1509
- d: "M21 21l-5.197-5.197m0 0A7.5 7.5 0 105.196 5.196a7.5 7.5 0 0010.607 10.607z"
1510
- })
1511
- ], -1)),
1512
- _e(p("input", {
1513
- ref_key: "mobileSearchInputRef",
1514
- ref: r,
1515
- "onUpdate:modelValue": h[2] || (h[2] = (k) => u.value = k),
1516
- type: "text",
1517
- placeholder: a.searchPlaceholder,
1518
- class: "w-full rounded-md border border-gray-300 py-2 pl-8 pr-3 text-sm outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent",
1519
- onInput: J
1520
- }, null, 40, Gn), [
1521
- [Fe, u.value]
1522
- ])
1523
- ])
1524
- ])) : T("", !0),
1525
- a.createLabel ? (v(), y("div", Jn, [
1526
- p("button", {
1527
- class: "w-full flex items-center justify-center gap-2 py-2 text-sm text-blue-700 hover:text-blue-500",
1528
- onClick: h[3] || (h[3] = (k) => U(() => H(l).close()))
1529
- }, [
1530
- h[15] || (h[15] = p("svg", {
1531
- xmlns: "http://www.w3.org/2000/svg",
1532
- fill: "none",
1533
- viewBox: "0 0 24 24",
1534
- "stroke-width": "1.5",
1535
- stroke: "currentColor",
1536
- class: "w-4 h-4"
1537
- }, [
1538
- p("path", {
1539
- "stroke-linecap": "round",
1540
- "stroke-linejoin": "round",
1541
- d: "M12 4.5v15m7.5-7.5h-15"
1542
- })
1543
- ], -1)),
1544
- p("span", null, _(a.createLabel), 1)
1545
- ])
1546
- ])) : T("", !0),
1547
- a.isLoading ? (v(), y("div", Zn, h[16] || (h[16] = [
1548
- p("div", { class: "animate-spin w-6 h-6 border-2 border-blue-500 border-t-transparent rounded-full" }, null, -1)
1549
- ]))) : (v(), y("div", Qn, [
1550
- a.allowEmpty ? (v(), y("button", {
1551
- key: 0,
1552
- class: E(["flex items-center gap-3 w-full px-3 py-3 text-sm text-left hover:bg-gray-50 transition-colors", a.modelValue === null ? "bg-gray-50 font-medium" : ""]),
1553
- role: "option",
1554
- "aria-selected": a.modelValue === null,
1555
- onClick: h[4] || (h[4] = (k) => $(null, () => H(l).close()))
1556
- }, [
1557
- a.modelValue === null ? (v(), y("svg", to, h[17] || (h[17] = [
1558
- p("path", {
1559
- "stroke-linecap": "round",
1560
- "stroke-linejoin": "round",
1561
- d: "M4.5 12.75l6 6 9-13.5"
1562
- }, null, -1)
1563
- ]))) : (v(), y("span", no)),
1564
- p("span", null, _(a.emptyLabel ?? a.placeholder), 1)
1565
- ], 10, eo)) : T("", !0),
1566
- a.groupKey ? (v(!0), y(j, { key: 1 }, Z(A.value, (k, C) => (v(), y(j, {
1567
- key: k.label
1568
- }, [
1569
- p("div", {
1570
- class: E(["px-3 pt-3 pb-1 text-xs font-semibold text-gray-500 uppercase tracking-wide", C > 0 ? "border-t border-gray-100" : ""])
1571
- }, _(k.label), 3),
1572
- (v(!0), y(j, null, Z(k.entries, (L) => (v(), y("button", {
1573
- key: L.item[a.valueKey],
1574
- class: E(["flex items-center gap-3 w-full px-3 py-3 text-sm text-left hover:bg-gray-50 transition-colors break-words", O(L.item) ? "bg-gray-50 font-medium" : ""]),
1575
- role: "option",
1576
- "aria-selected": O(L.item),
1577
- onClick: (M) => $(L.item, () => H(l).close())
1578
- }, [
1579
- O(L.item) ? (v(), y("svg", so, h[18] || (h[18] = [
1580
- p("path", {
1581
- "stroke-linecap": "round",
1582
- "stroke-linejoin": "round",
1583
- d: "M4.5 12.75l6 6 9-13.5"
1584
- }, null, -1)
1585
- ]))) : (v(), y("span", lo)),
1586
- V(a.$slots, "item", de({ ref_for: !0 }, { item: L.item }), () => [
1587
- p("span", null, _(L.item[a.labelKey]), 1)
1588
- ])
1589
- ], 10, oo))), 128))
1590
- ], 64))), 128)) : (v(!0), y(j, { key: 2 }, Z(b.value, (k) => (v(), y("button", {
1591
- key: k[a.valueKey],
1592
- class: E(["flex items-center gap-3 w-full px-3 py-3 text-sm text-left hover:bg-gray-50 transition-colors break-words", O(k) ? "bg-gray-50 font-medium" : ""]),
1593
- role: "option",
1594
- "aria-selected": O(k),
1595
- onClick: (C) => $(k, () => H(l).close())
1596
- }, [
1597
- O(k) ? (v(), y("svg", ro, h[19] || (h[19] = [
1598
- p("path", {
1599
- "stroke-linecap": "round",
1600
- "stroke-linejoin": "round",
1601
- d: "M4.5 12.75l6 6 9-13.5"
1602
- }, null, -1)
1603
- ]))) : (v(), y("span", ao)),
1604
- V(a.$slots, "item", de({ ref_for: !0 }, { item: k }), () => [
1605
- p("span", null, _(k[a.labelKey]), 1)
1606
- ])
1607
- ], 10, io))), 128)),
1608
- b.value.length === 0 && !a.allowEmpty ? (v(), y("div", co, [
1609
- V(a.$slots, "empty", {}, () => [
1610
- h[20] || (h[20] = Pe(" Nothing found "))
1611
- ])
1612
- ])) : T("", !0)
1613
- ]))
1614
- ])
1615
- ]),
1616
- _: 3
1617
- }, 8, ["useModal", "title"])) : T("", !0)
1618
- ], 64)) : (v(), he(tn, {
1619
- key: 0,
1620
- stick: a.stick,
1621
- onOpen: q,
1622
- onClose: ie
1623
- }, {
1624
- button: re(({ onToggle: k, isExpanded: C }) => [
1625
- V(a.$slots, "button", pe(me({ onToggle: k, isExpanded: C, selectedLabel: R.value })), () => [
1626
- p("button", {
1627
- class: E(["inline-flex items-center justify-between gap-2 rounded-lg border border-gray-300 bg-white px-3 py-2 text-sm hover:bg-gray-50 transition-colors min-w-[180px]", C ? "ring-1 ring-blue-500 border-blue-500" : ""]),
1628
- style: ge(a.maxWidth ? { maxWidth: a.maxWidth } : void 0),
1629
- onClick: k
1630
- }, [
1631
- p("span", {
1632
- class: E(["truncate", a.modelValue ? "text-gray-900" : "text-gray-500"])
1633
- }, _(R.value), 3),
1634
- (v(), y("svg", {
1635
- xmlns: "http://www.w3.org/2000/svg",
1636
- fill: "none",
1637
- viewBox: "0 0 24 24",
1638
- "stroke-width": "1.5",
1639
- stroke: "currentColor",
1640
- class: E(["w-4 h-4 text-gray-400 transition-transform shrink-0", C ? "rotate-180" : ""])
1641
- }, h[5] || (h[5] = [
1642
- p("path", {
1643
- "stroke-linecap": "round",
1644
- "stroke-linejoin": "round",
1645
- d: "M19.5 8.25l-7.5 7.5-7.5-7.5"
1646
- }, null, -1)
1647
- ]), 2))
1648
- ], 14, $n)
1649
- ])
1650
- ]),
1651
- menu: re(({ onToggle: k }) => [
1652
- p("div", {
1653
- class: "min-w-[240px] w-full",
1654
- onKeydown: (C) => ue(C, k)
1655
- }, [
1656
- a.title ? (v(), y("div", _n, _(a.title), 1)) : T("", !0),
1657
- a.searchable ? (v(), y("div", En, [
1658
- p("div", Sn, [
1659
- h[6] || (h[6] = p("svg", {
1660
- xmlns: "http://www.w3.org/2000/svg",
1661
- fill: "none",
1662
- viewBox: "0 0 24 24",
1663
- "stroke-width": "1.5",
1664
- stroke: "currentColor",
1665
- class: "absolute left-2.5 top-1/2 -translate-y-1/2 w-4 h-4 text-gray-400"
1666
- }, [
1667
- p("path", {
1668
- "stroke-linecap": "round",
1669
- "stroke-linejoin": "round",
1670
- d: "M21 21l-5.197-5.197m0 0A7.5 7.5 0 105.196 5.196a7.5 7.5 0 0010.607 10.607z"
1671
- })
1672
- ], -1)),
1673
- _e(p("input", {
1674
- ref_key: "searchInputRef",
1675
- ref: m,
1676
- "onUpdate:modelValue": h[0] || (h[0] = (C) => u.value = C),
1677
- type: "text",
1678
- placeholder: a.searchPlaceholder,
1679
- class: "w-full rounded-md border border-gray-300 py-1.5 pl-8 pr-3 text-sm outline-none focus:ring-1 focus:ring-blue-500 focus:border-blue-500",
1680
- onInput: J
1681
- }, null, 40, Tn), [
1682
- [Fe, u.value]
1683
- ])
1684
- ])
1685
- ])) : T("", !0),
1686
- a.createLabel ? (v(), y("div", Dn, [
1687
- p("button", {
1688
- class: "flex items-center gap-2 w-full px-3 py-2 text-sm text-blue-700 hover:bg-gray-50 transition-colors",
1689
- onClick: (C) => U(k)
1690
- }, [
1691
- h[7] || (h[7] = p("svg", {
1692
- xmlns: "http://www.w3.org/2000/svg",
1693
- fill: "none",
1694
- viewBox: "0 0 24 24",
1695
- "stroke-width": "1.5",
1696
- stroke: "currentColor",
1697
- class: "w-4 h-4"
1698
- }, [
1699
- p("path", {
1700
- "stroke-linecap": "round",
1701
- "stroke-linejoin": "round",
1702
- d: "M12 4.5v15m7.5-7.5h-15"
1703
- })
1704
- ], -1)),
1705
- p("span", null, _(a.createLabel), 1)
1706
- ], 8, Vn)
1707
- ])) : T("", !0),
1708
- a.isLoading ? (v(), y("div", Bn, h[8] || (h[8] = [
1709
- p("svg", {
1710
- class: "animate-spin h-5 w-5 text-gray-400",
1711
- xmlns: "http://www.w3.org/2000/svg",
1712
- fill: "none",
1713
- viewBox: "0 0 24 24"
1714
- }, [
1715
- p("circle", {
1716
- class: "opacity-25",
1717
- cx: "12",
1718
- cy: "12",
1719
- r: "10",
1720
- stroke: "currentColor",
1721
- "stroke-width": "4"
1722
- }),
1723
- p("path", {
1724
- class: "opacity-75",
1725
- fill: "currentColor",
1726
- d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"
1727
- })
1728
- ], -1)
1729
- ]))) : (v(), y("div", {
1730
- key: 4,
1731
- ref_key: "listRef",
1732
- ref: w,
1733
- class: "max-h-[300px] overflow-y-auto",
1734
- role: "listbox"
1735
- }, [
1736
- a.allowEmpty ? (v(), y("button", {
1737
- key: 0,
1738
- ref: (C) => f(C, 0),
1739
- class: E(["flex items-center gap-2 w-full px-3 py-2 text-sm text-left transition-colors", [
1740
- a.modelValue === null ? "bg-gray-100 font-medium" : "hover:bg-gray-50",
1741
- d.value === 0 ? "bg-gray-50" : ""
1742
- ]]),
1743
- role: "option",
1744
- "aria-selected": a.modelValue === null,
1745
- onClick: (C) => $(null, k),
1746
- onMouseenter: h[1] || (h[1] = (C) => d.value = 0)
1747
- }, [
1748
- a.modelValue === null ? (v(), y("svg", Pn, h[9] || (h[9] = [
1749
- p("path", {
1750
- "stroke-linecap": "round",
1751
- "stroke-linejoin": "round",
1752
- d: "M4.5 12.75l6 6 9-13.5"
1753
- }, null, -1)
1754
- ]))) : (v(), y("span", Wn)),
1755
- p("span", null, _(a.emptyLabel ?? a.placeholder), 1)
1756
- ], 42, Fn)) : T("", !0),
1757
- a.groupKey ? (v(!0), y(j, { key: 1 }, Z(A.value, (C, L) => (v(), y(j, {
1758
- key: C.label
1759
- }, [
1760
- p("div", {
1761
- class: E(["px-3 pt-2 pb-1 text-xs font-semibold text-gray-500 uppercase tracking-wide", L > 0 ? "border-t border-gray-100 mt-1" : ""])
1762
- }, _(C.label), 3),
1763
- (v(!0), y(j, null, Z(C.entries, (M) => (v(), y("button", {
1764
- key: M.item[a.valueKey],
1765
- ref_for: !0,
1766
- ref: (F) => f(F, M.flatIndex),
1767
- class: E(["flex items-center gap-2 w-full px-3 py-2 text-sm text-left transition-colors break-words", [
1768
- O(M.item) ? "bg-gray-100 font-medium" : "hover:bg-gray-50",
1769
- d.value === M.flatIndex ? "bg-gray-50" : ""
1770
- ]]),
1771
- role: "option",
1772
- "aria-selected": O(M.item),
1773
- onClick: (F) => $(M.item, k),
1774
- onMouseenter: (F) => d.value = M.flatIndex
1775
- }, [
1776
- O(M.item) ? (v(), y("svg", In, h[10] || (h[10] = [
1777
- p("path", {
1778
- "stroke-linecap": "round",
1779
- "stroke-linejoin": "round",
1780
- d: "M4.5 12.75l6 6 9-13.5"
1781
- }, null, -1)
1782
- ]))) : (v(), y("span", zn)),
1783
- V(a.$slots, "item", de({ ref_for: !0 }, { item: M.item }), () => [
1784
- p("span", null, _(M.item[a.labelKey]), 1)
1785
- ])
1786
- ], 42, jn))), 128))
1787
- ], 64))), 128)) : (v(!0), y(j, { key: 2 }, Z(b.value, (C, L) => (v(), y("button", {
1788
- key: C[a.valueKey],
1789
- ref_for: !0,
1790
- ref: (M) => f(M, x.value + L),
1791
- class: E(["flex items-center gap-2 w-full px-3 py-2 text-sm text-left transition-colors break-words", [
1792
- O(C) ? "bg-gray-100 font-medium" : "hover:bg-gray-50",
1793
- d.value === x.value + L ? "bg-gray-50" : ""
1794
- ]]),
1795
- role: "option",
1796
- "aria-selected": O(C),
1797
- onClick: (M) => $(C, k),
1798
- onMouseenter: (M) => d.value = x.value + L
1799
- }, [
1800
- O(C) ? (v(), y("svg", Kn, h[11] || (h[11] = [
1801
- p("path", {
1802
- "stroke-linecap": "round",
1803
- "stroke-linejoin": "round",
1804
- d: "M4.5 12.75l6 6 9-13.5"
1805
- }, null, -1)
1806
- ]))) : (v(), y("span", Hn)),
1807
- V(a.$slots, "item", de({ ref_for: !0 }, { item: C }), () => [
1808
- p("span", null, _(C[a.labelKey]), 1)
1809
- ])
1810
- ], 42, Nn))), 128)),
1811
- b.value.length === 0 && !a.allowEmpty ? (v(), y("div", Un, [
1812
- V(a.$slots, "empty", {}, () => [
1813
- h[12] || (h[12] = Pe(" Nothing found "))
1814
- ])
1815
- ])) : T("", !0)
1816
- ], 512))
1817
- ], 40, Ln)
1818
- ]),
1819
- _: 3
1820
- }, 8, ["stick"]));
1821
- }
1822
- });
1823
- export {
1824
- Rn as O,
1825
- tn as _,
1826
- ho as a,
1827
- go as b,
1828
- vo as c,
1829
- bn as m,
1830
- Mn as u
1831
- };