@oneb/ui-vue 0.3.13 → 0.3.15

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