@oneb/ui-vue 0.2.23 → 0.2.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/OneHelpMenu-2a7be7ea.cjs +1 -0
- package/dist/{OneHelpMenu-dd4329df.js → OneHelpMenu-f9738224.js} +187 -187
- package/dist/dataTable/dataTable.d.ts +8 -0
- package/dist/dataTable/index.cjs +1 -1
- package/dist/dataTable/index.js +1 -1
- package/dist/dataTable/util.d.ts +3 -4
- package/dist/dropdown/index.cjs +1 -1
- package/dist/dropdown/index.js +2 -2
- package/dist/{index-505ae301.js → index-1ff9bbce.js} +1 -1
- package/dist/{index-0f370118.cjs → index-70806d69.cjs} +1 -1
- package/dist/index-74c989d4.js +861 -0
- package/dist/index-a343cb86.cjs +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +5 -5
- package/dist/layout/index.cjs +1 -1
- package/dist/layout/index.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/OneHelpMenu-07653e72.cjs +0 -1
- package/dist/index-a8bcb568.js +0 -852
- package/dist/index-cdf541e8.cjs +0 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as le, ref as z, provide as it, watch as rt,
|
|
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
2
|
import { _ as ie } from "./OneAvatar.vue_vue_type_script_setup_true_lang-08ab80dd.js";
|
|
3
3
|
import { r as We } from "./XMarkIcon-51ef0691.js";
|
|
4
|
-
import { r as He, a as Ie, b as
|
|
5
|
-
import { OneButton as
|
|
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
6
|
import { _ as qe } from "./_plugin-vue_export-helper-dad06003.js";
|
|
7
|
-
const
|
|
7
|
+
const mt = {
|
|
8
8
|
title: {
|
|
9
9
|
type: String
|
|
10
10
|
},
|
|
@@ -16,7 +16,7 @@ const ht = {
|
|
|
16
16
|
type: Boolean,
|
|
17
17
|
default: !1
|
|
18
18
|
}
|
|
19
|
-
},
|
|
19
|
+
}, gt = {
|
|
20
20
|
variant: {
|
|
21
21
|
type: String,
|
|
22
22
|
default: "primary"
|
|
@@ -27,7 +27,7 @@ const ht = {
|
|
|
27
27
|
icon: {
|
|
28
28
|
type: [Function, Object]
|
|
29
29
|
}
|
|
30
|
-
},
|
|
30
|
+
}, Co = {
|
|
31
31
|
modelValue: {
|
|
32
32
|
type: [Object, Array],
|
|
33
33
|
default: null
|
|
@@ -94,12 +94,12 @@ const ht = {
|
|
|
94
94
|
}, fe = Math.min, Y = Math.max, de = Math.round, ae = Math.floor, E = (e) => ({
|
|
95
95
|
x: e,
|
|
96
96
|
y: e
|
|
97
|
-
}),
|
|
97
|
+
}), xt = {
|
|
98
98
|
left: "right",
|
|
99
99
|
right: "left",
|
|
100
100
|
bottom: "top",
|
|
101
101
|
top: "bottom"
|
|
102
|
-
},
|
|
102
|
+
}, yt = {
|
|
103
103
|
start: "end",
|
|
104
104
|
end: "start"
|
|
105
105
|
};
|
|
@@ -127,20 +127,20 @@ function ee(e) {
|
|
|
127
127
|
function Ye(e) {
|
|
128
128
|
return Ue(ee(e));
|
|
129
129
|
}
|
|
130
|
-
function
|
|
130
|
+
function vt(e, t, n) {
|
|
131
131
|
n === void 0 && (n = !1);
|
|
132
132
|
const o = ge(e), s = Ye(e), i = Ke(s);
|
|
133
133
|
let r = s === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
|
|
134
134
|
return t.reference[i] > t.floating[i] && (r = pe(r)), [r, pe(r)];
|
|
135
135
|
}
|
|
136
|
-
function
|
|
136
|
+
function wt(e) {
|
|
137
137
|
const t = pe(e);
|
|
138
138
|
return [Ae(e), t, Ae(t)];
|
|
139
139
|
}
|
|
140
140
|
function Ae(e) {
|
|
141
|
-
return e.replace(/start|end/g, (t) =>
|
|
141
|
+
return e.replace(/start|end/g, (t) => yt[t]);
|
|
142
142
|
}
|
|
143
|
-
function
|
|
143
|
+
function bt(e, t, n) {
|
|
144
144
|
const o = ["left", "right"], s = ["right", "left"], i = ["top", "bottom"], r = ["bottom", "top"];
|
|
145
145
|
switch (e) {
|
|
146
146
|
case "top":
|
|
@@ -153,15 +153,15 @@ function wt(e, t, n) {
|
|
|
153
153
|
return [];
|
|
154
154
|
}
|
|
155
155
|
}
|
|
156
|
-
function
|
|
156
|
+
function kt(e, t, n, o) {
|
|
157
157
|
const s = ge(e);
|
|
158
|
-
let i =
|
|
158
|
+
let i = bt(X(e), n === "start", o);
|
|
159
159
|
return s && (i = i.map((r) => r + "-" + s), t && (i = i.concat(i.map(Ae)))), i;
|
|
160
160
|
}
|
|
161
161
|
function pe(e) {
|
|
162
|
-
return e.replace(/left|right|bottom|top/g, (t) =>
|
|
162
|
+
return e.replace(/left|right|bottom|top/g, (t) => xt[t]);
|
|
163
163
|
}
|
|
164
|
-
function
|
|
164
|
+
function _t(e) {
|
|
165
165
|
return {
|
|
166
166
|
top: 0,
|
|
167
167
|
right: 0,
|
|
@@ -170,8 +170,8 @@ function kt(e) {
|
|
|
170
170
|
...e
|
|
171
171
|
};
|
|
172
172
|
}
|
|
173
|
-
function
|
|
174
|
-
return typeof e != "number" ?
|
|
173
|
+
function Ct(e) {
|
|
174
|
+
return typeof e != "number" ? _t(e) : {
|
|
175
175
|
top: e,
|
|
176
176
|
right: e,
|
|
177
177
|
bottom: e,
|
|
@@ -244,7 +244,7 @@ function De(e, t, n) {
|
|
|
244
244
|
}
|
|
245
245
|
return u;
|
|
246
246
|
}
|
|
247
|
-
const
|
|
247
|
+
const At = async (e, t, n) => {
|
|
248
248
|
const {
|
|
249
249
|
placement: o = "bottom",
|
|
250
250
|
strategy: s = "absolute",
|
|
@@ -321,7 +321,7 @@ async function Xe(e, t) {
|
|
|
321
321
|
elementContext: p = "floating",
|
|
322
322
|
altBoundary: x = !1,
|
|
323
323
|
padding: u = 0
|
|
324
|
-
} = me(t, e), f =
|
|
324
|
+
} = me(t, e), f = Ct(u), w = l[x ? p === "floating" ? "reference" : "floating" : p], g = he(await i.getClippingRect({
|
|
325
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
326
|
boundary: c,
|
|
327
327
|
rootBoundary: h,
|
|
@@ -350,7 +350,7 @@ async function Xe(e, t) {
|
|
|
350
350
|
right: (L.right - g.right + f.right) / O.x
|
|
351
351
|
};
|
|
352
352
|
}
|
|
353
|
-
const
|
|
353
|
+
const Lt = function(e) {
|
|
354
354
|
return e === void 0 && (e = {}), {
|
|
355
355
|
name: "flip",
|
|
356
356
|
options: e,
|
|
@@ -374,12 +374,12 @@ const At = function(e) {
|
|
|
374
374
|
} = me(e, t);
|
|
375
375
|
if ((n = i.arrow) != null && n.alignmentOffset)
|
|
376
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)] :
|
|
378
|
-
!x && V && L.push(...
|
|
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
379
|
const M = [l, ...L], b = await Xe(t, w), N = [];
|
|
380
380
|
let oe = ((o = i.flip) == null ? void 0 : o.overflows) || [];
|
|
381
381
|
if (h && N.push(b[g]), p) {
|
|
382
|
-
const U =
|
|
382
|
+
const U = vt(s, r, O);
|
|
383
383
|
N.push(b[U[0]], b[U[1]]);
|
|
384
384
|
}
|
|
385
385
|
if (oe = [...oe, {
|
|
@@ -430,7 +430,7 @@ const At = function(e) {
|
|
|
430
430
|
}
|
|
431
431
|
};
|
|
432
432
|
};
|
|
433
|
-
async function
|
|
433
|
+
async function Ot(e, t) {
|
|
434
434
|
const {
|
|
435
435
|
placement: n,
|
|
436
436
|
platform: o,
|
|
@@ -457,7 +457,7 @@ async function Lt(e, t) {
|
|
|
457
457
|
y: u * h
|
|
458
458
|
};
|
|
459
459
|
}
|
|
460
|
-
const
|
|
460
|
+
const $t = function(e) {
|
|
461
461
|
return e === void 0 && (e = 0), {
|
|
462
462
|
name: "offset",
|
|
463
463
|
options: e,
|
|
@@ -468,7 +468,7 @@ const Ot = function(e) {
|
|
|
468
468
|
y: i,
|
|
469
469
|
placement: r,
|
|
470
470
|
middlewareData: l
|
|
471
|
-
} = t, a = await
|
|
471
|
+
} = t, a = await Ot(t, e);
|
|
472
472
|
return r === ((n = l.offset) == null ? void 0 : n.placement) && (o = l.arrow) != null && o.alignmentOffset ? {} : {
|
|
473
473
|
x: s + a.x,
|
|
474
474
|
y: i + a.y,
|
|
@@ -479,7 +479,7 @@ const Ot = function(e) {
|
|
|
479
479
|
};
|
|
480
480
|
}
|
|
481
481
|
};
|
|
482
|
-
},
|
|
482
|
+
}, St = function(e) {
|
|
483
483
|
return e === void 0 && (e = {}), {
|
|
484
484
|
name: "shift",
|
|
485
485
|
options: e,
|
|
@@ -571,7 +571,7 @@ function ce(e) {
|
|
|
571
571
|
} = F(e);
|
|
572
572
|
return /auto|scroll|overlay|hidden|clip/.test(t + o + n) && !["inline", "contents"].includes(s);
|
|
573
573
|
}
|
|
574
|
-
function
|
|
574
|
+
function Rt(e) {
|
|
575
575
|
return ["table", "td", "th"].includes(ne(e));
|
|
576
576
|
}
|
|
577
577
|
function ye(e) {
|
|
@@ -587,7 +587,7 @@ function Oe(e) {
|
|
|
587
587
|
const t = $e(), n = R(e) ? F(e) : e;
|
|
588
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
589
|
}
|
|
590
|
-
function
|
|
590
|
+
function Ft(e) {
|
|
591
591
|
let t = q(e);
|
|
592
592
|
for (; B(t) && !te(t); ) {
|
|
593
593
|
if (Oe(t))
|
|
@@ -673,15 +673,15 @@ function Q(e) {
|
|
|
673
673
|
y: l
|
|
674
674
|
};
|
|
675
675
|
}
|
|
676
|
-
const
|
|
676
|
+
const Et = /* @__PURE__ */ E(0);
|
|
677
677
|
function Ze(e) {
|
|
678
678
|
const t = S(e);
|
|
679
|
-
return !$e() || !t.visualViewport ?
|
|
679
|
+
return !$e() || !t.visualViewport ? Et : {
|
|
680
680
|
x: t.visualViewport.offsetLeft,
|
|
681
681
|
y: t.visualViewport.offsetTop
|
|
682
682
|
};
|
|
683
683
|
}
|
|
684
|
-
function
|
|
684
|
+
function Bt(e, t, n) {
|
|
685
685
|
return t === void 0 && (t = !1), !n || t && n !== S(e) ? !1 : t;
|
|
686
686
|
}
|
|
687
687
|
function G(e, t, n, o) {
|
|
@@ -689,7 +689,7 @@ function G(e, t, n, o) {
|
|
|
689
689
|
const s = e.getBoundingClientRect(), i = Se(e);
|
|
690
690
|
let r = E(1);
|
|
691
691
|
t && (o ? R(o) && (r = Q(o)) : r = Q(e));
|
|
692
|
-
const l =
|
|
692
|
+
const l = Bt(i, n, o) ? Ze(i) : E(0);
|
|
693
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
694
|
if (i) {
|
|
695
695
|
const x = S(i), u = o && R(o) ? S(o) : o;
|
|
@@ -721,7 +721,7 @@ function et(e, t, n) {
|
|
|
721
721
|
y: i
|
|
722
722
|
};
|
|
723
723
|
}
|
|
724
|
-
function
|
|
724
|
+
function Tt(e) {
|
|
725
725
|
let {
|
|
726
726
|
elements: t,
|
|
727
727
|
rect: n,
|
|
@@ -748,10 +748,10 @@ function Bt(e) {
|
|
|
748
748
|
y: n.y * c.y - a.scrollTop * c.y + h.y + x.y
|
|
749
749
|
};
|
|
750
750
|
}
|
|
751
|
-
function
|
|
751
|
+
function Mt(e) {
|
|
752
752
|
return Array.from(e.getClientRects());
|
|
753
753
|
}
|
|
754
|
-
function
|
|
754
|
+
function Pt(e) {
|
|
755
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
756
|
let r = -n.scrollLeft + Re(e);
|
|
757
757
|
const l = -n.scrollTop;
|
|
@@ -762,7 +762,7 @@ function Mt(e) {
|
|
|
762
762
|
y: l
|
|
763
763
|
};
|
|
764
764
|
}
|
|
765
|
-
function
|
|
765
|
+
function Dt(e, t) {
|
|
766
766
|
const n = S(e), o = T(e), s = n.visualViewport;
|
|
767
767
|
let i = o.clientWidth, r = o.clientHeight, l = 0, a = 0;
|
|
768
768
|
if (s) {
|
|
@@ -777,7 +777,7 @@ function Pt(e, t) {
|
|
|
777
777
|
y: a
|
|
778
778
|
};
|
|
779
779
|
}
|
|
780
|
-
function
|
|
780
|
+
function zt(e, t) {
|
|
781
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
782
|
return {
|
|
783
783
|
width: r,
|
|
@@ -789,11 +789,11 @@ function Dt(e, t) {
|
|
|
789
789
|
function je(e, t, n) {
|
|
790
790
|
let o;
|
|
791
791
|
if (t === "viewport")
|
|
792
|
-
o =
|
|
792
|
+
o = Dt(e, n);
|
|
793
793
|
else if (t === "document")
|
|
794
|
-
o =
|
|
794
|
+
o = Pt(T(e));
|
|
795
795
|
else if (R(t))
|
|
796
|
-
o =
|
|
796
|
+
o = zt(t, n);
|
|
797
797
|
else {
|
|
798
798
|
const s = Ze(e);
|
|
799
799
|
o = {
|
|
@@ -809,7 +809,7 @@ function tt(e, t) {
|
|
|
809
809
|
const n = q(e);
|
|
810
810
|
return n === t || !R(n) || te(n) ? !1 : F(n).position === "fixed" || tt(n, t);
|
|
811
811
|
}
|
|
812
|
-
function
|
|
812
|
+
function jt(e, t) {
|
|
813
813
|
const n = t.get(e);
|
|
814
814
|
if (n)
|
|
815
815
|
return n;
|
|
@@ -822,14 +822,14 @@ function zt(e, t) {
|
|
|
822
822
|
}
|
|
823
823
|
return t.set(e, o), o;
|
|
824
824
|
}
|
|
825
|
-
function
|
|
825
|
+
function Vt(e) {
|
|
826
826
|
let {
|
|
827
827
|
element: t,
|
|
828
828
|
boundary: n,
|
|
829
829
|
rootBoundary: o,
|
|
830
830
|
strategy: s
|
|
831
831
|
} = e;
|
|
832
|
-
const r = [...n === "clippingAncestors" ? ye(t) ? [] :
|
|
832
|
+
const r = [...n === "clippingAncestors" ? ye(t) ? [] : jt(t, this._c) : [].concat(n), o], l = r[0], a = r.reduce((c, h) => {
|
|
833
833
|
const p = je(t, h, s);
|
|
834
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
835
|
}, je(t, l, s));
|
|
@@ -840,7 +840,7 @@ function jt(e) {
|
|
|
840
840
|
y: a.top
|
|
841
841
|
};
|
|
842
842
|
}
|
|
843
|
-
function
|
|
843
|
+
function Nt(e) {
|
|
844
844
|
const {
|
|
845
845
|
width: t,
|
|
846
846
|
height: n
|
|
@@ -850,7 +850,7 @@ function Vt(e) {
|
|
|
850
850
|
height: n
|
|
851
851
|
};
|
|
852
852
|
}
|
|
853
|
-
function
|
|
853
|
+
function Wt(e, t, n) {
|
|
854
854
|
const o = B(t), s = T(t), i = n === "fixed", r = G(e, !0, i, t);
|
|
855
855
|
let l = {
|
|
856
856
|
scrollLeft: 0,
|
|
@@ -896,14 +896,14 @@ function nt(e, t) {
|
|
|
896
896
|
return n;
|
|
897
897
|
}
|
|
898
898
|
let o = Ve(e, t);
|
|
899
|
-
for (; o &&
|
|
899
|
+
for (; o && Rt(o) && _e(o); )
|
|
900
900
|
o = Ve(o, t);
|
|
901
|
-
return o && te(o) && _e(o) && !Oe(o) ? n : o ||
|
|
901
|
+
return o && te(o) && _e(o) && !Oe(o) ? n : o || Ft(e) || n;
|
|
902
902
|
}
|
|
903
|
-
const
|
|
903
|
+
const Ht = async function(e) {
|
|
904
904
|
const t = this.getOffsetParent || nt, n = this.getDimensions, o = await n(e.floating);
|
|
905
905
|
return {
|
|
906
|
-
reference:
|
|
906
|
+
reference: Wt(e.reference, await t(e.floating), e.strategy),
|
|
907
907
|
floating: {
|
|
908
908
|
x: 0,
|
|
909
909
|
y: 0,
|
|
@@ -912,25 +912,25 @@ const Wt = async function(e) {
|
|
|
912
912
|
}
|
|
913
913
|
};
|
|
914
914
|
};
|
|
915
|
-
function
|
|
915
|
+
function It(e) {
|
|
916
916
|
return F(e).direction === "rtl";
|
|
917
917
|
}
|
|
918
|
-
const
|
|
919
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
918
|
+
const qt = {
|
|
919
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: Tt,
|
|
920
920
|
getDocumentElement: T,
|
|
921
|
-
getClippingRect:
|
|
921
|
+
getClippingRect: Vt,
|
|
922
922
|
getOffsetParent: nt,
|
|
923
|
-
getElementRects:
|
|
924
|
-
getClientRects:
|
|
925
|
-
getDimensions:
|
|
923
|
+
getElementRects: Ht,
|
|
924
|
+
getClientRects: Mt,
|
|
925
|
+
getDimensions: Nt,
|
|
926
926
|
getScale: Q,
|
|
927
927
|
isElement: R,
|
|
928
|
-
isRTL:
|
|
928
|
+
isRTL: It
|
|
929
929
|
};
|
|
930
930
|
function ot(e, t) {
|
|
931
931
|
return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
|
|
932
932
|
}
|
|
933
|
-
function
|
|
933
|
+
function Ut(e, t) {
|
|
934
934
|
let n = null, o;
|
|
935
935
|
const s = T(e);
|
|
936
936
|
function i() {
|
|
@@ -976,7 +976,7 @@ function qt(e, t) {
|
|
|
976
976
|
}
|
|
977
977
|
return r(!0), i;
|
|
978
978
|
}
|
|
979
|
-
function
|
|
979
|
+
function Kt(e, t, n, o) {
|
|
980
980
|
o === void 0 && (o = {});
|
|
981
981
|
const {
|
|
982
982
|
ancestorScroll: s = !0,
|
|
@@ -990,7 +990,7 @@ function Ut(e, t, n, o) {
|
|
|
990
990
|
passive: !0
|
|
991
991
|
}), i && g.addEventListener("resize", n);
|
|
992
992
|
});
|
|
993
|
-
const p = c && l ?
|
|
993
|
+
const p = c && l ? Ut(c, n) : null;
|
|
994
994
|
let x = -1, u = null;
|
|
995
995
|
r && (u = new ResizeObserver((g) => {
|
|
996
996
|
let [k] = g;
|
|
@@ -1012,27 +1012,27 @@ function Ut(e, t, n, o) {
|
|
|
1012
1012
|
}), p == null || p(), (g = u) == null || g.disconnect(), u = null, a && cancelAnimationFrame(f);
|
|
1013
1013
|
};
|
|
1014
1014
|
}
|
|
1015
|
-
const
|
|
1015
|
+
const Yt = $t, Xt = St, Gt = Lt, Jt = (e, t, n) => {
|
|
1016
1016
|
const o = /* @__PURE__ */ new Map(), s = {
|
|
1017
|
-
platform:
|
|
1017
|
+
platform: qt,
|
|
1018
1018
|
...n
|
|
1019
1019
|
}, i = {
|
|
1020
1020
|
...s.platform,
|
|
1021
1021
|
_c: o
|
|
1022
1022
|
};
|
|
1023
|
-
return
|
|
1023
|
+
return At(e, t, {
|
|
1024
1024
|
...s,
|
|
1025
1025
|
platform: i
|
|
1026
1026
|
});
|
|
1027
|
-
},
|
|
1027
|
+
}, Qt = ["data-opened"], Zt = {
|
|
1028
1028
|
key: 0,
|
|
1029
1029
|
class: "text-sm text-secondary-content px-3 py-2 text-left"
|
|
1030
|
-
},
|
|
1030
|
+
}, en = {
|
|
1031
1031
|
key: 0,
|
|
1032
1032
|
class: "text-sm text-secondary-content px-3 py-2 text-left"
|
|
1033
|
-
},
|
|
1033
|
+
}, tn = /* @__PURE__ */ le({
|
|
1034
1034
|
__name: "OneDropdown",
|
|
1035
|
-
props:
|
|
1035
|
+
props: mt,
|
|
1036
1036
|
emits: ["open", "close"],
|
|
1037
1037
|
setup(e, { emit: t }) {
|
|
1038
1038
|
const n = z(!1), o = z(null), s = z(null), i = z(null), r = t, l = e, a = () => {
|
|
@@ -1043,10 +1043,10 @@ const Kt = Ot, Yt = $t, Xt = At, Gt = (e, t, n) => {
|
|
|
1043
1043
|
});
|
|
1044
1044
|
let c = null;
|
|
1045
1045
|
function h() {
|
|
1046
|
-
!s.value || !i.value ||
|
|
1046
|
+
!s.value || !i.value || Jt(s.value, i.value, {
|
|
1047
1047
|
placement: l.stick ? l.stick : "bottom-start",
|
|
1048
1048
|
strategy: "fixed",
|
|
1049
|
-
middleware: [
|
|
1049
|
+
middleware: [Yt(5), Gt(), Xt({ padding: 8 })]
|
|
1050
1050
|
}).then(({ x: f, y: v }) => {
|
|
1051
1051
|
i.value && Object.assign(i.value.style, {
|
|
1052
1052
|
left: `${f}px`,
|
|
@@ -1054,9 +1054,9 @@ const Kt = Ot, Yt = $t, Xt = At, Gt = (e, t, n) => {
|
|
|
1054
1054
|
});
|
|
1055
1055
|
});
|
|
1056
1056
|
}
|
|
1057
|
-
rt(n, (f) => {
|
|
1058
|
-
l.appendBody && (f
|
|
1059
|
-
}),
|
|
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
1060
|
c && c();
|
|
1061
1061
|
});
|
|
1062
1062
|
const p = j(() => {
|
|
@@ -1089,7 +1089,7 @@ const Kt = Ot, Yt = $t, Xt = At, Gt = (e, t, n) => {
|
|
|
1089
1089
|
}, [
|
|
1090
1090
|
we(f.$slots, "button", be(ke({ onToggle: a, isExpanded: n.value })))
|
|
1091
1091
|
], 512),
|
|
1092
|
-
l.appendBody ? (m(), K(
|
|
1092
|
+
l.appendBody ? (m(), K(at, {
|
|
1093
1093
|
key: 0,
|
|
1094
1094
|
to: "body"
|
|
1095
1095
|
}, [
|
|
@@ -1116,7 +1116,7 @@ const Kt = Ot, Yt = $t, Xt = At, Gt = (e, t, n) => {
|
|
|
1116
1116
|
"aria-orientation": "vertical",
|
|
1117
1117
|
tabindex: "-1"
|
|
1118
1118
|
}, [
|
|
1119
|
-
f.title ? (m(), y("div",
|
|
1119
|
+
f.title ? (m(), y("div", Zt, _(f.title), 1)) : A("", !0),
|
|
1120
1120
|
we(f.$slots, "menu", be(ke({ onToggle: a })))
|
|
1121
1121
|
], 2)) : A("", !0)
|
|
1122
1122
|
]),
|
|
@@ -1144,21 +1144,21 @@ const Kt = Ot, Yt = $t, Xt = At, Gt = (e, t, n) => {
|
|
|
1144
1144
|
"aria-orientation": "vertical",
|
|
1145
1145
|
tabindex: "-1"
|
|
1146
1146
|
}, [
|
|
1147
|
-
f.title ? (m(), y("div",
|
|
1147
|
+
f.title ? (m(), y("div", en, _(f.title), 1)) : A("", !0),
|
|
1148
1148
|
we(f.$slots, "menu", be(ke({ onToggle: a })))
|
|
1149
1149
|
], 2)) : A("", !0)
|
|
1150
1150
|
]),
|
|
1151
1151
|
_: 3
|
|
1152
1152
|
})
|
|
1153
1153
|
], 64))
|
|
1154
|
-
], 8,
|
|
1154
|
+
], 8, Qt));
|
|
1155
1155
|
}
|
|
1156
1156
|
}), Ne = /* @__PURE__ */ le({
|
|
1157
1157
|
__name: "OneDropdownItem",
|
|
1158
|
-
props:
|
|
1158
|
+
props: gt,
|
|
1159
1159
|
emits: ["click"],
|
|
1160
1160
|
setup(e, { emit: t }) {
|
|
1161
|
-
const n = t, o = e, s =
|
|
1161
|
+
const n = t, o = e, s = ut("OneDropdown"), i = () => {
|
|
1162
1162
|
s !== void 0 && s.onToggle(), n("click");
|
|
1163
1163
|
}, r = j(() => {
|
|
1164
1164
|
const l = [];
|
|
@@ -1166,7 +1166,7 @@ const Kt = Ot, Yt = $t, Xt = At, Gt = (e, t, n) => {
|
|
|
1166
1166
|
});
|
|
1167
1167
|
return (l, a) => (m(), y("button", {
|
|
1168
1168
|
class: Z(["px-3 py-1.5 flex items-center space-x-3 w-full whitespace-nowrap", r.value]),
|
|
1169
|
-
onClick:
|
|
1169
|
+
onClick: ft(i, ["prevent"])
|
|
1170
1170
|
}, [
|
|
1171
1171
|
l.icon ? (m(), K(Ce(l.icon), {
|
|
1172
1172
|
key: 0,
|
|
@@ -1176,7 +1176,7 @@ const Kt = Ot, Yt = $t, Xt = At, Gt = (e, t, n) => {
|
|
|
1176
1176
|
], 2));
|
|
1177
1177
|
}
|
|
1178
1178
|
});
|
|
1179
|
-
function
|
|
1179
|
+
function nn(e, t) {
|
|
1180
1180
|
return m(), y("svg", {
|
|
1181
1181
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1182
1182
|
fill: "none",
|
|
@@ -1192,7 +1192,7 @@ function tn(e, t) {
|
|
|
1192
1192
|
})
|
|
1193
1193
|
]);
|
|
1194
1194
|
}
|
|
1195
|
-
const
|
|
1195
|
+
const on = {
|
|
1196
1196
|
user: {
|
|
1197
1197
|
type: Object,
|
|
1198
1198
|
required: !0
|
|
@@ -1226,7 +1226,7 @@ const nn = {
|
|
|
1226
1226
|
onLogout: {
|
|
1227
1227
|
type: Function
|
|
1228
1228
|
}
|
|
1229
|
-
},
|
|
1229
|
+
}, sn = {
|
|
1230
1230
|
workspace: {
|
|
1231
1231
|
type: Object,
|
|
1232
1232
|
required: !0
|
|
@@ -1256,14 +1256,14 @@ const nn = {
|
|
|
1256
1256
|
onApp: {
|
|
1257
1257
|
type: Function
|
|
1258
1258
|
}
|
|
1259
|
-
},
|
|
1259
|
+
}, rn = {
|
|
1260
1260
|
help: {
|
|
1261
1261
|
type: Object,
|
|
1262
1262
|
required: !0
|
|
1263
1263
|
}
|
|
1264
|
-
},
|
|
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
1265
|
__name: "OneUserMenu",
|
|
1266
|
-
props:
|
|
1266
|
+
props: on,
|
|
1267
1267
|
setup(e) {
|
|
1268
1268
|
const t = e, n = j(() => {
|
|
1269
1269
|
var i;
|
|
@@ -1283,7 +1283,7 @@ const nn = {
|
|
|
1283
1283
|
}, s = () => {
|
|
1284
1284
|
typeof t.onLogout == "function" && t.onLogout();
|
|
1285
1285
|
};
|
|
1286
|
-
return (i, r) => (m(), K(
|
|
1286
|
+
return (i, r) => (m(), K(tn, { stick: "right" }, {
|
|
1287
1287
|
button: ue(({ onToggle: l, isExpanded: a }) => {
|
|
1288
1288
|
var c, h;
|
|
1289
1289
|
return [
|
|
@@ -1297,13 +1297,13 @@ const nn = {
|
|
|
1297
1297
|
src: (h = i.user) == null ? void 0 : h.photo_url,
|
|
1298
1298
|
rounded: !0
|
|
1299
1299
|
}, null, 8, ["text", "size", "src"])
|
|
1300
|
-
], 10,
|
|
1300
|
+
], 10, ln)
|
|
1301
1301
|
];
|
|
1302
1302
|
}),
|
|
1303
1303
|
menu: ue(() => {
|
|
1304
1304
|
var l, a, c, h, p;
|
|
1305
1305
|
return [
|
|
1306
|
-
d("div",
|
|
1306
|
+
d("div", cn, [
|
|
1307
1307
|
$(ie, {
|
|
1308
1308
|
text: ((l = i.user) == null ? void 0 : l.name) || "",
|
|
1309
1309
|
size: 80,
|
|
@@ -1311,17 +1311,17 @@ const nn = {
|
|
|
1311
1311
|
rounded: !0,
|
|
1312
1312
|
class: "mx-auto"
|
|
1313
1313
|
}, null, 8, ["text", "src"]),
|
|
1314
|
-
d("div",
|
|
1315
|
-
d("div",
|
|
1316
|
-
d("div",
|
|
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
1317
|
]),
|
|
1318
1318
|
typeof t.onAccount == "function" ? (m(), y("a", {
|
|
1319
1319
|
key: 0,
|
|
1320
1320
|
onClick: o,
|
|
1321
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
1322
|
}, _(i.accountLabel), 1)) : A("", !0),
|
|
1323
|
-
d("div",
|
|
1324
|
-
(m(!0), y(P, null, I(n.value, (x) => (m(), K(Ne,
|
|
1323
|
+
d("div", dn, [
|
|
1324
|
+
(m(!0), y(P, null, I(n.value, (x) => (m(), K(Ne, dt({
|
|
1325
1325
|
key: x.key,
|
|
1326
1326
|
ref_for: !0
|
|
1327
1327
|
}, x.args, {
|
|
@@ -1329,7 +1329,7 @@ const nn = {
|
|
|
1329
1329
|
}), null, 16, ["onClick"]))), 128)),
|
|
1330
1330
|
typeof i.onLogout == "function" ? (m(), K(Ne, {
|
|
1331
1331
|
key: 0,
|
|
1332
|
-
icon: D(
|
|
1332
|
+
icon: D(nn),
|
|
1333
1333
|
label: i.logoutLabel,
|
|
1334
1334
|
class: "rounded py-3",
|
|
1335
1335
|
onClick: s
|
|
@@ -1339,7 +1339,7 @@ const nn = {
|
|
|
1339
1339
|
class: "space-y-2 text-center",
|
|
1340
1340
|
style: { width: "240px" }
|
|
1341
1341
|
}, null, -1)),
|
|
1342
|
-
d("div",
|
|
1342
|
+
d("div", pn, _((p = i.app) == null ? void 0 : p.version), 1)
|
|
1343
1343
|
])
|
|
1344
1344
|
];
|
|
1345
1345
|
}),
|
|
@@ -1347,7 +1347,7 @@ const nn = {
|
|
|
1347
1347
|
}));
|
|
1348
1348
|
}
|
|
1349
1349
|
});
|
|
1350
|
-
function
|
|
1350
|
+
function hn(e, t) {
|
|
1351
1351
|
return m(), y("svg", {
|
|
1352
1352
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1353
1353
|
fill: "none",
|
|
@@ -1439,21 +1439,21 @@ function pn(e, t) {
|
|
|
1439
1439
|
})
|
|
1440
1440
|
]);
|
|
1441
1441
|
}
|
|
1442
|
-
const
|
|
1442
|
+
const mn = ["data-opened"], gn = {
|
|
1443
1443
|
key: 1,
|
|
1444
1444
|
class: "absolute top-0 right-0 h-screen overflow-y-auto max-w-96 bg-white px-3 z-10"
|
|
1445
|
-
},
|
|
1445
|
+
}, 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 = {
|
|
1446
1446
|
class: "space-x-2 flex items-center px-3 py-2",
|
|
1447
1447
|
style: { width: "300px" }
|
|
1448
|
-
},
|
|
1448
|
+
}, 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 = {
|
|
1449
1449
|
key: 0,
|
|
1450
1450
|
class: "space-y-2"
|
|
1451
|
-
},
|
|
1451
|
+
}, 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 = {
|
|
1452
1452
|
key: 1,
|
|
1453
1453
|
class: "mt-2 w-full bg-[#FAFAFA] hover:bg-secondary-10 p-2 rounded-lg mb-5 text-xs hidden"
|
|
1454
|
-
},
|
|
1454
|
+
}, Dn = /* @__PURE__ */ le({
|
|
1455
1455
|
__name: "OneBrowserMenu",
|
|
1456
|
-
props:
|
|
1456
|
+
props: sn,
|
|
1457
1457
|
emits: ["open", "close"],
|
|
1458
1458
|
setup(e, { emit: t }) {
|
|
1459
1459
|
const n = t, o = e, s = z(!1), i = () => {
|
|
@@ -1472,25 +1472,25 @@ const hn = ["data-opened"], mn = {
|
|
|
1472
1472
|
onClick: i,
|
|
1473
1473
|
class: Z(["p-1 w-[44px] h-[44px] rounded-md hover:bg-secondary-10", { "bg-secondary-10": s.value }])
|
|
1474
1474
|
}, [
|
|
1475
|
-
$(D(
|
|
1475
|
+
$(D(hn), { class: "text-secondary-base w-full p-1 hover:text-blue-600 m-auto" })
|
|
1476
1476
|
], 2),
|
|
1477
1477
|
s.value ? (m(), y("div", {
|
|
1478
1478
|
key: 0,
|
|
1479
1479
|
class: "fixed top-0 left-0 w-screen h-screen z-10 bg-black/10",
|
|
1480
1480
|
onClick: i
|
|
1481
1481
|
})) : A("", !0),
|
|
1482
|
-
s.value ? (m(), y("div",
|
|
1483
|
-
d("div",
|
|
1484
|
-
d("div",
|
|
1482
|
+
s.value ? (m(), y("div", gn, [
|
|
1483
|
+
d("div", xn, [
|
|
1484
|
+
d("div", yn, _((p = c.workspace) == null ? void 0 : p.title), 1),
|
|
1485
1485
|
$(D(We), {
|
|
1486
1486
|
class: "w-6 cursor-pointer",
|
|
1487
1487
|
onClick: i
|
|
1488
1488
|
})
|
|
1489
1489
|
]),
|
|
1490
|
-
d("div",
|
|
1491
|
-
d("div",
|
|
1492
|
-
d("div",
|
|
1493
|
-
d("div",
|
|
1490
|
+
d("div", vn, [
|
|
1491
|
+
d("div", wn, [
|
|
1492
|
+
d("div", bn, [
|
|
1493
|
+
d("div", kn, [
|
|
1494
1494
|
$(ie, {
|
|
1495
1495
|
text: ((x = c.workspace) == null ? void 0 : x.name) || "",
|
|
1496
1496
|
src: (u = c.workspace) == null ? void 0 : u.photo_url,
|
|
@@ -1499,9 +1499,9 @@ const hn = ["data-opened"], mn = {
|
|
|
1499
1499
|
class: "mx-auto"
|
|
1500
1500
|
}, null, 8, ["text", "src"])
|
|
1501
1501
|
]),
|
|
1502
|
-
d("div",
|
|
1502
|
+
d("div", _n, _((f = c.workspace) == null ? void 0 : f.name), 1)
|
|
1503
1503
|
]),
|
|
1504
|
-
r.value ? (m(), y("div",
|
|
1504
|
+
r.value ? (m(), y("div", Cn, [
|
|
1505
1505
|
(m(!0), y(P, null, I(c.workspaces, (g) => (m(), y("div", {
|
|
1506
1506
|
key: g.name,
|
|
1507
1507
|
class: "flex items-center space-x-3 border-t px-5 py-2 hover:bg-secondary-10"
|
|
@@ -1512,7 +1512,7 @@ const hn = ["data-opened"], mn = {
|
|
|
1512
1512
|
size: 30,
|
|
1513
1513
|
rounded: !1
|
|
1514
1514
|
}, null, 8, ["text", "src"]),
|
|
1515
|
-
d("span",
|
|
1515
|
+
d("span", An, _(g.name), 1)
|
|
1516
1516
|
]))), 128))
|
|
1517
1517
|
])) : A("", !0),
|
|
1518
1518
|
h[0] || (h[0] = d("hr", null, null, -1)),
|
|
@@ -1523,17 +1523,17 @@ const hn = ["data-opened"], mn = {
|
|
|
1523
1523
|
}, _((v = c.workspace) == null ? void 0 : v.changeLabel), 1)
|
|
1524
1524
|
])
|
|
1525
1525
|
]),
|
|
1526
|
-
d("div",
|
|
1527
|
-
d("div",
|
|
1528
|
-
d("div",
|
|
1529
|
-
c.apps && c.apps.length ? (m(), y("div",
|
|
1526
|
+
d("div", Ln, [
|
|
1527
|
+
d("div", On, _((w = c.workspace) == null ? void 0 : w.appsLabel), 1),
|
|
1528
|
+
d("div", $n, [
|
|
1529
|
+
c.apps && c.apps.length ? (m(), y("div", Sn, [
|
|
1530
1530
|
(m(!0), y(P, null, I(c.apps, (g) => (m(), y("div", {
|
|
1531
1531
|
key: g.id,
|
|
1532
1532
|
onClick: (k) => a(g),
|
|
1533
1533
|
class: "flex justify-between items-center rounded-lg hover:bg-secondary-10 p-2 bg-[#FAFAFA] cursor-pointer"
|
|
1534
1534
|
}, [
|
|
1535
|
-
d("div",
|
|
1536
|
-
d("div",
|
|
1535
|
+
d("div", Fn, [
|
|
1536
|
+
d("div", En, [
|
|
1537
1537
|
$(ie, {
|
|
1538
1538
|
text: g.name,
|
|
1539
1539
|
src: g.photo_url,
|
|
@@ -1541,30 +1541,30 @@ const hn = ["data-opened"], mn = {
|
|
|
1541
1541
|
rounded: !1
|
|
1542
1542
|
}, null, 8, ["text", "src"])
|
|
1543
1543
|
]),
|
|
1544
|
-
d("div",
|
|
1545
|
-
d("p",
|
|
1546
|
-
d("p",
|
|
1544
|
+
d("div", Bn, [
|
|
1545
|
+
d("p", Tn, _(g.name), 1),
|
|
1546
|
+
d("p", Mn, _(g == null ? void 0 : g.short), 1)
|
|
1547
1547
|
])
|
|
1548
1548
|
]),
|
|
1549
1549
|
d("div", null, [
|
|
1550
|
-
$(
|
|
1550
|
+
$(ht, {
|
|
1551
1551
|
variant: "touch",
|
|
1552
|
-
icon: D(
|
|
1552
|
+
icon: D(pt),
|
|
1553
1553
|
onClick: (k) => a(g)
|
|
1554
1554
|
}, null, 8, ["icon", "onClick"])
|
|
1555
1555
|
])
|
|
1556
|
-
], 8,
|
|
1556
|
+
], 8, Rn))), 128))
|
|
1557
1557
|
])) : A("", !0),
|
|
1558
|
-
c.apps && c.apps.length ? (m(), y("button",
|
|
1558
|
+
c.apps && c.apps.length ? (m(), y("button", Pn, _("Дивитися всі"))) : A("", !0)
|
|
1559
1559
|
])
|
|
1560
1560
|
])
|
|
1561
1561
|
])) : A("", !0)
|
|
1562
|
-
], 8,
|
|
1562
|
+
], 8, mn);
|
|
1563
1563
|
};
|
|
1564
1564
|
}
|
|
1565
1565
|
});
|
|
1566
|
-
const
|
|
1567
|
-
function
|
|
1566
|
+
const Lo = /* @__PURE__ */ qe(Dn, [["__scopeId", "data-v-2628df74"]]);
|
|
1567
|
+
function zn(e, t) {
|
|
1568
1568
|
return m(), y("svg", {
|
|
1569
1569
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1570
1570
|
fill: "none",
|
|
@@ -1580,7 +1580,7 @@ function Dn(e, t) {
|
|
|
1580
1580
|
})
|
|
1581
1581
|
]);
|
|
1582
1582
|
}
|
|
1583
|
-
function
|
|
1583
|
+
function jn(e, t) {
|
|
1584
1584
|
return m(), y("svg", {
|
|
1585
1585
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1586
1586
|
fill: "none",
|
|
@@ -1601,7 +1601,7 @@ function zn(e, t) {
|
|
|
1601
1601
|
})
|
|
1602
1602
|
]);
|
|
1603
1603
|
}
|
|
1604
|
-
function
|
|
1604
|
+
function Vn(e, t) {
|
|
1605
1605
|
return m(), y("svg", {
|
|
1606
1606
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1607
1607
|
fill: "none",
|
|
@@ -1617,24 +1617,24 @@ function jn(e, t) {
|
|
|
1617
1617
|
})
|
|
1618
1618
|
]);
|
|
1619
1619
|
}
|
|
1620
|
-
const
|
|
1620
|
+
const Nn = ["data-opened"], Wn = {
|
|
1621
1621
|
key: 1,
|
|
1622
1622
|
class: "absolute top-0 right-0 h-screen max-w-96 bg-white px-3 z-10 flex flex-col"
|
|
1623
|
-
},
|
|
1623
|
+
}, Hn = { class: "flex justify-between items-center pt-3 mb-3" }, In = { class: "font-semibold text-xl px-3" }, qn = {
|
|
1624
1624
|
key: 0,
|
|
1625
1625
|
class: "grid grid-cols-3 bg-[#FAFAFA] rounded-xl text-[#525B66] mb-2"
|
|
1626
|
-
},
|
|
1626
|
+
}, Un = ["onClick"], Kn = { class: "uppercase text-[8px]" }, Yn = { class: "overflow-y-auto grid rounded-xl" }, Xn = { class: "max-h-full bg-[#FAFAFA]" }, Gn = {
|
|
1627
1627
|
key: 0,
|
|
1628
1628
|
class: "space-y-2"
|
|
1629
|
-
},
|
|
1629
|
+
}, 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 = {
|
|
1630
1630
|
key: 0,
|
|
1631
1631
|
class: "bg-[#FAFAFA] rounded-lg p-3"
|
|
1632
|
-
},
|
|
1632
|
+
}, co = { class: "flex justify-between" }, ao = ["onClick"], uo = {
|
|
1633
1633
|
key: 0,
|
|
1634
1634
|
class: "tooltip-text min-w-[70px]"
|
|
1635
|
-
},
|
|
1635
|
+
}, 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({
|
|
1636
1636
|
__name: "OneHelpMenu",
|
|
1637
|
-
props:
|
|
1637
|
+
props: rn,
|
|
1638
1638
|
emits: ["open", "close"],
|
|
1639
1639
|
setup(e, { emit: t }) {
|
|
1640
1640
|
const n = t, o = e, s = z(!1), i = () => {
|
|
@@ -1664,22 +1664,22 @@ const Vn = ["data-opened"], Nn = {
|
|
|
1664
1664
|
onClick: i,
|
|
1665
1665
|
class: Z(["p-1 w-[44px] h-[44px] rounded-md hover:bg-secondary-10", { "bg-secondary-10": s.value }])
|
|
1666
1666
|
}, [
|
|
1667
|
-
$(D(
|
|
1667
|
+
$(D(zn), { class: "text-secondary-base w-full p-1 hover:text-blue-600 m-auto" })
|
|
1668
1668
|
], 2),
|
|
1669
1669
|
s.value ? (m(), y("div", {
|
|
1670
1670
|
key: 0,
|
|
1671
1671
|
class: "fixed top-0 left-0 w-screen h-screen z-10 bg-black/10 flex flex-col",
|
|
1672
1672
|
onClick: i
|
|
1673
1673
|
})) : A("", !0),
|
|
1674
|
-
s.value ? (m(), y("div",
|
|
1675
|
-
d("div",
|
|
1676
|
-
d("div",
|
|
1674
|
+
s.value ? (m(), y("div", Wn, [
|
|
1675
|
+
d("div", Hn, [
|
|
1676
|
+
d("div", In, _((v = u.help) == null ? void 0 : v.label), 1),
|
|
1677
1677
|
$(D(We), {
|
|
1678
1678
|
class: "w-6 cursor-pointer",
|
|
1679
1679
|
onClick: i
|
|
1680
1680
|
})
|
|
1681
1681
|
]),
|
|
1682
|
-
(w = u.help) != null && w.helpButton ? (m(), y("div",
|
|
1682
|
+
(w = u.help) != null && w.helpButton ? (m(), y("div", qn, [
|
|
1683
1683
|
(m(!0), y(P, null, I((g = u.help) == null ? void 0 : g.helpButton, (b) => (m(), y("button", {
|
|
1684
1684
|
key: b.name,
|
|
1685
1685
|
onClick: (N) => h(b.link, b),
|
|
@@ -1688,24 +1688,24 @@ const Vn = ["data-opened"], Nn = {
|
|
|
1688
1688
|
d("div", null, [
|
|
1689
1689
|
(m(), K(Ce(b == null ? void 0 : b.icon), { class: "w-[16px] h-[16px] mx-auto" }))
|
|
1690
1690
|
]),
|
|
1691
|
-
d("span",
|
|
1692
|
-
], 8,
|
|
1691
|
+
d("span", Kn, _(b.name), 1)
|
|
1692
|
+
], 8, Un))), 128))
|
|
1693
1693
|
])) : A("", !0),
|
|
1694
|
-
d("div",
|
|
1695
|
-
d("div",
|
|
1696
|
-
(k = u.help) != null && k.helpList && u.help.helpList.length ? (m(), y("div",
|
|
1694
|
+
d("div", Yn, [
|
|
1695
|
+
d("div", Xn, [
|
|
1696
|
+
(k = u.help) != null && k.helpList && u.help.helpList.length ? (m(), y("div", Gn, [
|
|
1697
1697
|
(m(!0), y(P, null, I(u.help.helpList, (b) => (m(), y("div", {
|
|
1698
1698
|
key: b.id,
|
|
1699
1699
|
onClick: (N) => h(b.link, b),
|
|
1700
1700
|
class: "flex justify-between items-center rounded-lg hover:bg-slate-100 p-2 cursor-pointer hover:text-[#4089E0]"
|
|
1701
1701
|
}, [
|
|
1702
|
-
d("div",
|
|
1703
|
-
d("div",
|
|
1704
|
-
d("p",
|
|
1705
|
-
d("p",
|
|
1702
|
+
d("div", Qn, [
|
|
1703
|
+
d("div", Zn, [
|
|
1704
|
+
d("p", eo, _(b.name), 1),
|
|
1705
|
+
d("p", to, _(b.category), 1)
|
|
1706
1706
|
])
|
|
1707
1707
|
])
|
|
1708
|
-
], 8,
|
|
1708
|
+
], 8, Jn))), 128))
|
|
1709
1709
|
])) : A("", !0)
|
|
1710
1710
|
])
|
|
1711
1711
|
]),
|
|
@@ -1714,79 +1714,79 @@ const Vn = ["data-opened"], Nn = {
|
|
|
1714
1714
|
onClick: c,
|
|
1715
1715
|
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"
|
|
1716
1716
|
}, _(a.value ? u.help.buttNoMore : u.help.buttMore), 1)) : A("", !0),
|
|
1717
|
-
d("div",
|
|
1718
|
-
(O = u.help) != null && O.video ? (m(), y("div",
|
|
1717
|
+
d("div", no, [
|
|
1718
|
+
(O = u.help) != null && O.video ? (m(), y("div", oo, [
|
|
1719
1719
|
(m(!0), y(P, null, I(u.help.video, (b) => (m(), y("button", {
|
|
1720
1720
|
key: b.id,
|
|
1721
1721
|
onClick: (N) => h(b.link, b),
|
|
1722
1722
|
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"
|
|
1723
1723
|
}, [
|
|
1724
|
-
$(D(
|
|
1724
|
+
$(D(jn), { class: "w-6 h-6" }),
|
|
1725
1725
|
d("span", null, _(b.name), 1)
|
|
1726
|
-
], 8,
|
|
1726
|
+
], 8, so))), 128))
|
|
1727
1727
|
])) : A("", !0),
|
|
1728
1728
|
(L = u.help) != null && L.socialList ? (m(), y("button", {
|
|
1729
1729
|
key: 1,
|
|
1730
1730
|
onClick: x,
|
|
1731
1731
|
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"
|
|
1732
1732
|
}, [
|
|
1733
|
-
d("div",
|
|
1734
|
-
$(D(
|
|
1733
|
+
d("div", io, [
|
|
1734
|
+
$(D(Vn), { class: "w-6 h-6" }),
|
|
1735
1735
|
d("span", null, _(u.help.socialButt), 1)
|
|
1736
1736
|
]),
|
|
1737
1737
|
$(D(r), { class: "w-4 h-4" })
|
|
1738
1738
|
])) : A("", !0),
|
|
1739
|
-
d("div",
|
|
1740
|
-
p.value ? (m(), y("div",
|
|
1741
|
-
d("div",
|
|
1739
|
+
d("div", ro, [
|
|
1740
|
+
p.value ? (m(), y("div", lo, [
|
|
1741
|
+
d("div", co, [
|
|
1742
1742
|
(m(!0), y(P, null, I((V = u.help) == null ? void 0 : V.socialList, (b) => (m(), y("button", {
|
|
1743
1743
|
key: b.id,
|
|
1744
1744
|
onClick: (N) => h(b.link, b),
|
|
1745
1745
|
class: "flex items-center space-x-2 p-2 rounded-lg hover:bg-slate-100 hover:text-blue-500 tooltip"
|
|
1746
1746
|
}, [
|
|
1747
1747
|
d("div", null, [
|
|
1748
|
-
b.name ? (m(), y("div",
|
|
1748
|
+
b.name ? (m(), y("div", uo, _(b.name), 1)) : A("", !0),
|
|
1749
1749
|
(m(), K(Ce(b == null ? void 0 : b.icon), { class: "w-[24px] h-[24px] mx-auto" }))
|
|
1750
1750
|
])
|
|
1751
|
-
], 8,
|
|
1751
|
+
], 8, ao))), 128))
|
|
1752
1752
|
])
|
|
1753
1753
|
])) : A("", !0)
|
|
1754
1754
|
]),
|
|
1755
|
-
d("div",
|
|
1755
|
+
d("div", fo, [
|
|
1756
1756
|
(m(!0), y(P, null, I((M = u.help) == null ? void 0 : M.termsOffer, (b) => (m(), y("a", {
|
|
1757
1757
|
key: b.name,
|
|
1758
1758
|
target: "_blank",
|
|
1759
1759
|
href: b.link,
|
|
1760
1760
|
class: "ml-2 flex items-center rounded-lg text-xs hover:underline font-extralight cursor-pointer"
|
|
1761
1761
|
}, [
|
|
1762
|
-
d("div",
|
|
1763
|
-
d("div",
|
|
1764
|
-
d("span",
|
|
1762
|
+
d("div", ho, [
|
|
1763
|
+
d("div", mo, [
|
|
1764
|
+
d("span", go, _(b.name), 1)
|
|
1765
1765
|
])
|
|
1766
1766
|
])
|
|
1767
|
-
], 8,
|
|
1767
|
+
], 8, po))), 128))
|
|
1768
1768
|
])
|
|
1769
1769
|
])
|
|
1770
1770
|
])) : A("", !0)
|
|
1771
|
-
], 8,
|
|
1771
|
+
], 8, Nn);
|
|
1772
1772
|
};
|
|
1773
1773
|
}
|
|
1774
1774
|
});
|
|
1775
|
-
const
|
|
1775
|
+
const Oo = /* @__PURE__ */ qe(xo, [["__scopeId", "data-v-071eaf70"]]);
|
|
1776
1776
|
export {
|
|
1777
|
-
|
|
1778
|
-
|
|
1777
|
+
Lo as O,
|
|
1778
|
+
tn as _,
|
|
1779
1779
|
Ne as a,
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1780
|
+
Ao as b,
|
|
1781
|
+
Oo as c,
|
|
1782
|
+
mt as d,
|
|
1783
|
+
Jt as e,
|
|
1784
|
+
Gt as f,
|
|
1785
|
+
Kt as g,
|
|
1786
|
+
sn as h,
|
|
1787
|
+
Co as i,
|
|
1788
|
+
Vn as j,
|
|
1789
|
+
Yt as o,
|
|
1790
|
+
hn as r,
|
|
1791
|
+
Xt as s
|
|
1792
1792
|
};
|