@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.
- package/dist/CheckIcon-09b84cf5.cjs +1 -0
- package/dist/CheckIcon-f1c94824.js +20 -0
- package/dist/ChevronDownIcon-6805ce6c.js +20 -0
- package/dist/ChevronDownIcon-6889ac87.cjs +1 -0
- package/dist/{ChevronRightIcon-8df1af46.js → ChevronRightIcon-4549a26b.js} +4 -21
- package/dist/ChevronRightIcon-7a2f0c20.cjs +1 -0
- package/dist/NoSymbolIcon-5d326416.cjs +1 -0
- package/dist/NoSymbolIcon-e58a9aee.js +71 -0
- package/dist/OneHelpMenu-66a2d4c2.cjs +1 -0
- package/dist/OneHelpMenu-d7a39a69.js +856 -0
- package/dist/OneMarkdown.vue_vue_type_style_index_0_lang-0ea8fbf8.cjs +1 -0
- package/dist/OneMarkdown.vue_vue_type_style_index_0_lang-4ed993c7.js +1 -0
- package/dist/{SpinnerIcon-516264ba.js → SpinnerIcon-74648c98.js} +6 -5
- package/dist/SpinnerIcon-ccb6f3fc.cjs +1 -0
- package/dist/SpinnerIcon.vue_vue_type_style_index_0_lang-0ea8fbf8.cjs +1 -0
- package/dist/SpinnerIcon.vue_vue_type_style_index_0_lang-4ed993c7.js +1 -0
- package/dist/button/index.cjs +1 -1
- package/dist/button/index.js +17 -16
- package/dist/buttonGroup/index.cjs +1 -0
- package/dist/buttonGroup/index.js +31 -0
- package/dist/checkbox/index.cjs +1 -0
- package/dist/checkbox/index.js +124 -0
- package/dist/collapse/index.cjs +1 -0
- package/dist/collapse/index.js +58 -0
- package/dist/common/index.cjs +1 -16
- package/dist/common/index.js +14 -3120
- package/dist/dataTable/index.cjs +1 -1
- package/dist/dataTable/index.js +846 -9
- package/dist/dropdown/index.cjs +1 -1
- package/dist/dropdown/index.js +792 -17
- package/dist/entityPicker/index.cjs +1 -0
- package/dist/entityPicker/index.js +584 -0
- package/dist/errorsPage/index.cjs +1 -0
- package/dist/errorsPage/index.js +63 -0
- package/dist/floating-ui.dom-2121a4fd.cjs +1 -0
- package/dist/floating-ui.dom-4509432e.js +941 -0
- package/dist/i18n/index.cjs +1 -0
- package/dist/{useI18n-2103b39e.js → i18n/index.js} +4 -4
- package/dist/index.cjs +1 -1
- package/dist/index.js +114 -10295
- package/dist/indicators/index.cjs +1 -0
- package/dist/indicators/index.js +84 -0
- package/dist/infobox/index.cjs +1 -0
- package/dist/infobox/index.js +111 -0
- package/dist/label/index.cjs +1 -0
- package/dist/label/index.js +47 -0
- package/dist/layout/index.cjs +1 -1
- package/dist/layout/index.js +115 -109
- package/dist/modal/index.cjs +1 -0
- package/dist/modal/index.js +41 -0
- package/dist/periodPicker/index.cjs +1 -0
- package/dist/periodPicker/index.js +1323 -0
- package/dist/radio/index.cjs +1 -0
- package/dist/radio/index.js +73 -0
- package/dist/skeleton/index.cjs +1 -0
- package/dist/skeleton/index.js +46 -0
- package/dist/style.css +1 -1
- package/dist/switch/index.cjs +1 -0
- package/dist/switch/index.js +142 -0
- package/dist/toast/index.cjs +1 -0
- package/dist/toast/index.js +140 -0
- package/dist/tooltip/index.cjs +1 -0
- package/dist/tooltip/index.js +20 -0
- package/dist/useModal-85f57682.js +177 -0
- package/dist/useModal-98810f6a.cjs +1 -0
- package/package.json +4 -4
- package/dist/ChevronRightIcon-6aa413c4.cjs +0 -1
- package/dist/OneHelpMenu-8e315cb3.js +0 -1791
- package/dist/OneHelpMenu-95ae3d5a.cjs +0 -1
- package/dist/SpinnerIcon-01be39fe.cjs +0 -1
- package/dist/index-19e93dfb.js +0 -954
- package/dist/index-85e729ab.cjs +0 -1
- package/dist/index-8b41a099.cjs +0 -1
- package/dist/index-98daa7ed.js +0 -862
- package/dist/useI18n-bcf9c640.cjs +0 -1
|
@@ -0,0 +1,856 @@
|
|
|
1
|
+
import { defineComponent as M, ref as A, provide as Y, watch as Z, nextTick as ee, onBeforeUnmount as te, computed as S, openBlock as t, createElementBlock as o, createElementVNode as e, renderSlot as T, normalizeProps as I, guardReactiveProps as R, createBlock as L, Teleport as oe, createCommentVNode as d, createVNode as _, Transition as W, withCtx as E, normalizeClass as j, toDisplayString as u, Fragment as C, inject as ne, withModifiers as se, resolveDynamicComponent as V, renderList as B, mergeProps as le, unref as $ } from "vue";
|
|
2
|
+
import { a as re, c as ie, o as ae, s as ce } from "./floating-ui.dom-4509432e.js";
|
|
3
|
+
import { flip as ue } from "@floating-ui/vue";
|
|
4
|
+
import { _ as z } from "./OneAvatar.vue_vue_type_script_setup_true_lang-08ab80dd.js";
|
|
5
|
+
import { r as G } from "./XMarkIcon-51ef0691.js";
|
|
6
|
+
import { r as J } from "./ChevronDownIcon-6805ce6c.js";
|
|
7
|
+
import { r as Q, a as de } from "./ChevronRightIcon-4549a26b.js";
|
|
8
|
+
import { OneButton as pe } from "./button/index.js";
|
|
9
|
+
import { _ as X } from "./_plugin-vue_export-helper-dad06003.js";
|
|
10
|
+
const he = {
|
|
11
|
+
title: {
|
|
12
|
+
type: String
|
|
13
|
+
},
|
|
14
|
+
stick: {
|
|
15
|
+
type: String,
|
|
16
|
+
default: "right"
|
|
17
|
+
},
|
|
18
|
+
appendBody: {
|
|
19
|
+
type: Boolean,
|
|
20
|
+
default: !1
|
|
21
|
+
}
|
|
22
|
+
}, fe = {
|
|
23
|
+
variant: {
|
|
24
|
+
type: String,
|
|
25
|
+
default: "primary"
|
|
26
|
+
},
|
|
27
|
+
label: {
|
|
28
|
+
type: String
|
|
29
|
+
},
|
|
30
|
+
icon: {
|
|
31
|
+
type: [Function, Object]
|
|
32
|
+
}
|
|
33
|
+
}, Dt = {
|
|
34
|
+
modelValue: {
|
|
35
|
+
type: [Object, Array],
|
|
36
|
+
default: null
|
|
37
|
+
},
|
|
38
|
+
multiple: {
|
|
39
|
+
type: Boolean,
|
|
40
|
+
default: !1
|
|
41
|
+
},
|
|
42
|
+
items: {
|
|
43
|
+
type: Array,
|
|
44
|
+
default: () => []
|
|
45
|
+
},
|
|
46
|
+
title: {
|
|
47
|
+
type: String
|
|
48
|
+
},
|
|
49
|
+
placeholder: {
|
|
50
|
+
type: String,
|
|
51
|
+
default: "Select"
|
|
52
|
+
},
|
|
53
|
+
searchPlaceholder: {
|
|
54
|
+
type: String,
|
|
55
|
+
default: "Search"
|
|
56
|
+
},
|
|
57
|
+
labelKey: {
|
|
58
|
+
type: String,
|
|
59
|
+
default: "label"
|
|
60
|
+
},
|
|
61
|
+
valueKey: {
|
|
62
|
+
type: String,
|
|
63
|
+
default: "id"
|
|
64
|
+
},
|
|
65
|
+
stick: {
|
|
66
|
+
type: String,
|
|
67
|
+
default: "bottom-start"
|
|
68
|
+
},
|
|
69
|
+
allowEmpty: {
|
|
70
|
+
type: Boolean,
|
|
71
|
+
default: !1
|
|
72
|
+
},
|
|
73
|
+
emptyLabel: {
|
|
74
|
+
type: String
|
|
75
|
+
},
|
|
76
|
+
createLabel: {
|
|
77
|
+
type: String
|
|
78
|
+
},
|
|
79
|
+
searchable: {
|
|
80
|
+
type: Boolean,
|
|
81
|
+
default: !0
|
|
82
|
+
},
|
|
83
|
+
isLoading: {
|
|
84
|
+
type: Boolean,
|
|
85
|
+
default: !1
|
|
86
|
+
},
|
|
87
|
+
groupKey: {
|
|
88
|
+
type: String
|
|
89
|
+
},
|
|
90
|
+
maxWidth: {
|
|
91
|
+
type: String
|
|
92
|
+
},
|
|
93
|
+
view: {
|
|
94
|
+
type: String,
|
|
95
|
+
default: "default"
|
|
96
|
+
}
|
|
97
|
+
}, me = ["data-opened"], ve = {
|
|
98
|
+
key: 0,
|
|
99
|
+
class: "text-sm text-secondary-content px-3 py-2 text-left"
|
|
100
|
+
}, ye = {
|
|
101
|
+
key: 0,
|
|
102
|
+
class: "text-sm text-secondary-content px-3 py-2 text-left"
|
|
103
|
+
}, xe = /* @__PURE__ */ M({
|
|
104
|
+
__name: "OneDropdown",
|
|
105
|
+
props: he,
|
|
106
|
+
emits: ["open", "close"],
|
|
107
|
+
setup(w, { emit: f }) {
|
|
108
|
+
const p = A(!1), v = A(null), c = A(null), l = A(null), m = f, s = w, h = () => {
|
|
109
|
+
p.value = !p.value, p.value ? m("open") : m("close");
|
|
110
|
+
};
|
|
111
|
+
Y("OneDropdown", {
|
|
112
|
+
onToggle: h
|
|
113
|
+
});
|
|
114
|
+
let a = null;
|
|
115
|
+
function g() {
|
|
116
|
+
!c.value || !l.value || ie(c.value, l.value, {
|
|
117
|
+
placement: s.stick ? s.stick : "bottom-start",
|
|
118
|
+
strategy: "fixed",
|
|
119
|
+
middleware: [ae(5), ue(), ce({ padding: 8 })]
|
|
120
|
+
}).then(({ x: n, y }) => {
|
|
121
|
+
l.value && Object.assign(l.value.style, {
|
|
122
|
+
left: `${n}px`,
|
|
123
|
+
top: `${y}px`
|
|
124
|
+
});
|
|
125
|
+
});
|
|
126
|
+
}
|
|
127
|
+
Z(p, async (n) => {
|
|
128
|
+
s.appendBody && (n ? (await ee(), c.value && l.value && (g(), a = re(c.value, l.value, g))) : a && (a(), a = null));
|
|
129
|
+
}), te(() => {
|
|
130
|
+
a && a();
|
|
131
|
+
});
|
|
132
|
+
const k = S(() => {
|
|
133
|
+
var F;
|
|
134
|
+
if (s.appendBody)
|
|
135
|
+
return "";
|
|
136
|
+
const n = (F = v.value) == null ? void 0 : F.getBoundingClientRect(), y = n ? n.x < 270 : !1;
|
|
137
|
+
return n && n.top + 270 > window.innerHeight ? "up" + (y ? "-right" : "-left") : "down" + (y ? "-right" : "-left");
|
|
138
|
+
}), b = S(() => {
|
|
139
|
+
const n = [
|
|
140
|
+
"absolute z-10 w-fit rounded-md bg-white",
|
|
141
|
+
"py-1 shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none",
|
|
142
|
+
"overflow-auto max-h-[540px] min-w-[150px] max-w-[540px]"
|
|
143
|
+
];
|
|
144
|
+
return k.value.startsWith("up") ? n.push("bottom-1 mb-10") : k.value.startsWith("down") && n.push("top-1 mt-10"), s.stick === "right" ? n.push("right-0") : s.stick === "left" && n.push("left-0"), n;
|
|
145
|
+
}), i = S(() => [
|
|
146
|
+
"fixed z-[10000] w-fit rounded-md bg-white",
|
|
147
|
+
"py-1 shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none",
|
|
148
|
+
"overflow-auto max-h-[540px] min-w-[150px] max-w-[540px]"
|
|
149
|
+
]);
|
|
150
|
+
return (n, y) => (t(), o("div", {
|
|
151
|
+
class: "relative inline-block",
|
|
152
|
+
ref_key: "containerRef",
|
|
153
|
+
ref: v,
|
|
154
|
+
"data-opened": p.value
|
|
155
|
+
}, [
|
|
156
|
+
e("div", {
|
|
157
|
+
ref_key: "buttonRef",
|
|
158
|
+
ref: c
|
|
159
|
+
}, [
|
|
160
|
+
T(n.$slots, "button", I(R({ onToggle: h, isExpanded: p.value })))
|
|
161
|
+
], 512),
|
|
162
|
+
s.appendBody ? (t(), L(oe, {
|
|
163
|
+
key: 0,
|
|
164
|
+
to: "body"
|
|
165
|
+
}, [
|
|
166
|
+
p.value ? (t(), o("div", {
|
|
167
|
+
key: 0,
|
|
168
|
+
class: "fixed top-0 left-0 w-screen h-screen z-[9999]",
|
|
169
|
+
onClick: h
|
|
170
|
+
})) : d("", !0),
|
|
171
|
+
_(W, {
|
|
172
|
+
"enter-active-class": "transition ease-out duration-100",
|
|
173
|
+
"enter-from-class": "transform opacity-0 scale-95",
|
|
174
|
+
"enter-to-class": "transform opacity-100 scale-100",
|
|
175
|
+
"leave-active-class": "transition ease-in duration-75",
|
|
176
|
+
"leave-from-class": "transform opacity-100 scale-100",
|
|
177
|
+
"leave-to-class": "transform opacity-0 scale-95"
|
|
178
|
+
}, {
|
|
179
|
+
default: E(() => [
|
|
180
|
+
p.value ? (t(), o("div", {
|
|
181
|
+
key: 0,
|
|
182
|
+
ref_key: "menuRef",
|
|
183
|
+
ref: l,
|
|
184
|
+
class: j(["menu", i.value]),
|
|
185
|
+
role: "menu",
|
|
186
|
+
"aria-orientation": "vertical",
|
|
187
|
+
tabindex: "-1"
|
|
188
|
+
}, [
|
|
189
|
+
n.title ? (t(), o("div", ve, u(n.title), 1)) : d("", !0),
|
|
190
|
+
T(n.$slots, "menu", I(R({ onToggle: h })))
|
|
191
|
+
], 2)) : d("", !0)
|
|
192
|
+
]),
|
|
193
|
+
_: 3
|
|
194
|
+
})
|
|
195
|
+
])) : (t(), o(C, { key: 1 }, [
|
|
196
|
+
p.value ? (t(), o("div", {
|
|
197
|
+
key: 0,
|
|
198
|
+
class: "fixed top-0 left-0 w-screen h-screen z-10",
|
|
199
|
+
onClick: h
|
|
200
|
+
})) : d("", !0),
|
|
201
|
+
_(W, {
|
|
202
|
+
"enter-active-class": "transition ease-out duration-100",
|
|
203
|
+
"enter-from-class": "transform opacity-0 scale-95",
|
|
204
|
+
"enter-to-class": "transform opacity-100 scale-100",
|
|
205
|
+
"leave-active-class": "transition ease-in duration-75",
|
|
206
|
+
"leave-from-class": "transform opacity-100 scale-100",
|
|
207
|
+
"leave-to-class": "transform opacity-0 scale-95"
|
|
208
|
+
}, {
|
|
209
|
+
default: E(() => [
|
|
210
|
+
p.value ? (t(), o("div", {
|
|
211
|
+
key: 0,
|
|
212
|
+
class: j(["menu", b.value]),
|
|
213
|
+
role: "menu",
|
|
214
|
+
"aria-orientation": "vertical",
|
|
215
|
+
tabindex: "-1"
|
|
216
|
+
}, [
|
|
217
|
+
n.title ? (t(), o("div", ye, u(n.title), 1)) : d("", !0),
|
|
218
|
+
T(n.$slots, "menu", I(R({ onToggle: h })))
|
|
219
|
+
], 2)) : d("", !0)
|
|
220
|
+
]),
|
|
221
|
+
_: 3
|
|
222
|
+
})
|
|
223
|
+
], 64))
|
|
224
|
+
], 8, me));
|
|
225
|
+
}
|
|
226
|
+
}), K = /* @__PURE__ */ M({
|
|
227
|
+
__name: "OneDropdownItem",
|
|
228
|
+
props: fe,
|
|
229
|
+
emits: ["click"],
|
|
230
|
+
setup(w, { emit: f }) {
|
|
231
|
+
const p = f, v = w, c = ne("OneDropdown"), l = () => {
|
|
232
|
+
c !== void 0 && c.onToggle(), p("click");
|
|
233
|
+
}, m = S(() => {
|
|
234
|
+
const s = [];
|
|
235
|
+
return v.variant === "secondary" ? s.push("text-secondary-content hover:bg-secondary-body-hover") : v.variant === "danger" ? s.push("text-danger-content hover:bg-danger-10") : v.variant === "warning" ? s.push("text-warning-content hover:bg-warning-10") : v.variant === "info" ? s.push("text-info-content hover:bg-info-10") : s.push("hover:bg-secondary-body-hover"), s;
|
|
236
|
+
});
|
|
237
|
+
return (s, h) => (t(), o("button", {
|
|
238
|
+
class: j(["px-3 py-1.5 flex items-center space-x-3 w-full whitespace-nowrap", m.value]),
|
|
239
|
+
onClick: se(l, ["prevent"])
|
|
240
|
+
}, [
|
|
241
|
+
s.icon ? (t(), L(V(s.icon), {
|
|
242
|
+
key: 0,
|
|
243
|
+
class: "w-4 h-4"
|
|
244
|
+
})) : d("", !0),
|
|
245
|
+
e("span", null, u(s.label), 1)
|
|
246
|
+
], 2));
|
|
247
|
+
}
|
|
248
|
+
});
|
|
249
|
+
function ge(w, f) {
|
|
250
|
+
return t(), o("svg", {
|
|
251
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
252
|
+
fill: "none",
|
|
253
|
+
viewBox: "0 0 24 24",
|
|
254
|
+
"stroke-width": "1.8",
|
|
255
|
+
stroke: "currentColor",
|
|
256
|
+
"aria-hidden": "true"
|
|
257
|
+
}, [
|
|
258
|
+
e("path", {
|
|
259
|
+
"stroke-linecap": "round",
|
|
260
|
+
"stroke-linejoin": "round",
|
|
261
|
+
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"
|
|
262
|
+
})
|
|
263
|
+
]);
|
|
264
|
+
}
|
|
265
|
+
const _e = {
|
|
266
|
+
user: {
|
|
267
|
+
type: Object,
|
|
268
|
+
required: !0
|
|
269
|
+
},
|
|
270
|
+
menu: {
|
|
271
|
+
type: Array,
|
|
272
|
+
default: () => []
|
|
273
|
+
},
|
|
274
|
+
iconSize: {
|
|
275
|
+
type: String,
|
|
276
|
+
default: "34"
|
|
277
|
+
},
|
|
278
|
+
app: {
|
|
279
|
+
type: Object
|
|
280
|
+
},
|
|
281
|
+
accountLabel: {
|
|
282
|
+
type: String,
|
|
283
|
+
default: "Account"
|
|
284
|
+
},
|
|
285
|
+
logoutLabel: {
|
|
286
|
+
type: String,
|
|
287
|
+
default: "Logout"
|
|
288
|
+
},
|
|
289
|
+
versionLabel: {
|
|
290
|
+
type: String,
|
|
291
|
+
default: ""
|
|
292
|
+
},
|
|
293
|
+
onAccount: {
|
|
294
|
+
type: Function
|
|
295
|
+
},
|
|
296
|
+
onLogout: {
|
|
297
|
+
type: Function
|
|
298
|
+
}
|
|
299
|
+
}, we = {
|
|
300
|
+
workspace: {
|
|
301
|
+
type: Object,
|
|
302
|
+
required: !0
|
|
303
|
+
},
|
|
304
|
+
workspaces: {
|
|
305
|
+
type: Array
|
|
306
|
+
},
|
|
307
|
+
apps: {
|
|
308
|
+
type: Array,
|
|
309
|
+
required: !0
|
|
310
|
+
},
|
|
311
|
+
iconSize: {
|
|
312
|
+
type: String,
|
|
313
|
+
default: "24"
|
|
314
|
+
},
|
|
315
|
+
appsTitle: {
|
|
316
|
+
type: String,
|
|
317
|
+
default: "Ваші додатки"
|
|
318
|
+
},
|
|
319
|
+
changeLabel: {
|
|
320
|
+
type: String,
|
|
321
|
+
default: "Керувати робочими просторами"
|
|
322
|
+
},
|
|
323
|
+
onChange: {
|
|
324
|
+
type: Function
|
|
325
|
+
},
|
|
326
|
+
onApp: {
|
|
327
|
+
type: Function
|
|
328
|
+
}
|
|
329
|
+
}, ke = {
|
|
330
|
+
help: {
|
|
331
|
+
type: Object,
|
|
332
|
+
required: !0
|
|
333
|
+
}
|
|
334
|
+
}, be = ["onClick"], Ce = { class: "flex flex-col items-center pt-5 pb-2 h-full" }, $e = { class: "flex flex-col px-10 py-1 mt-2 text-center" }, Ae = { class: "self-center text-base font-medium tracking-wide text-black" }, Se = { class: "mt-1 text-xs leading-5 text-blue-500 font-light" }, Fe = { class: "text-left w-full mt-5 px-3" }, Be = { class: "-mb-2 flex-shrink-0 mt-auto pt-6 text-[8px] leading-3 text-gray-400" }, qt = /* @__PURE__ */ M({
|
|
335
|
+
__name: "OneUserMenu",
|
|
336
|
+
props: _e,
|
|
337
|
+
setup(w) {
|
|
338
|
+
const f = w, p = S(() => {
|
|
339
|
+
var l;
|
|
340
|
+
return (l = f.menu) == null ? void 0 : l.map((m) => {
|
|
341
|
+
let s = { label: m.label };
|
|
342
|
+
m.icon != null && (s = { ...s, icon: m.icon });
|
|
343
|
+
const h = typeof m.click == "function" ? m.click : () => {
|
|
344
|
+
};
|
|
345
|
+
return {
|
|
346
|
+
key: m.label,
|
|
347
|
+
args: s,
|
|
348
|
+
click: h
|
|
349
|
+
};
|
|
350
|
+
});
|
|
351
|
+
}), v = () => {
|
|
352
|
+
typeof f.onAccount == "function" && f.onAccount();
|
|
353
|
+
}, c = () => {
|
|
354
|
+
typeof f.onLogout == "function" && f.onLogout();
|
|
355
|
+
};
|
|
356
|
+
return (l, m) => (t(), L(xe, { stick: "right" }, {
|
|
357
|
+
button: E(({ onToggle: s, isExpanded: h }) => {
|
|
358
|
+
var a, g;
|
|
359
|
+
return [
|
|
360
|
+
e("button", {
|
|
361
|
+
onClick: s,
|
|
362
|
+
class: j(["p-1 rounded-full hover:bg-secondary-10", [h ? "bg-secondary-25" : ""]])
|
|
363
|
+
}, [
|
|
364
|
+
_(z, {
|
|
365
|
+
text: ((a = l.user) == null ? void 0 : a.name) || "",
|
|
366
|
+
size: l.iconSize,
|
|
367
|
+
src: (g = l.user) == null ? void 0 : g.photo_url,
|
|
368
|
+
rounded: !0
|
|
369
|
+
}, null, 8, ["text", "size", "src"])
|
|
370
|
+
], 10, be)
|
|
371
|
+
];
|
|
372
|
+
}),
|
|
373
|
+
menu: E(() => {
|
|
374
|
+
var s, h, a, g, k;
|
|
375
|
+
return [
|
|
376
|
+
e("div", Ce, [
|
|
377
|
+
_(z, {
|
|
378
|
+
text: ((s = l.user) == null ? void 0 : s.name) || "",
|
|
379
|
+
size: 80,
|
|
380
|
+
src: (h = l.user) == null ? void 0 : h.photo_url,
|
|
381
|
+
rounded: !0,
|
|
382
|
+
class: "mx-auto"
|
|
383
|
+
}, null, 8, ["text", "src"]),
|
|
384
|
+
e("div", $e, [
|
|
385
|
+
e("div", Ae, u((a = l.user) == null ? void 0 : a.name), 1),
|
|
386
|
+
e("div", Se, u((g = l.user) == null ? void 0 : g.email), 1)
|
|
387
|
+
]),
|
|
388
|
+
typeof f.onAccount == "function" ? (t(), o("a", {
|
|
389
|
+
key: 0,
|
|
390
|
+
onClick: v,
|
|
391
|
+
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"
|
|
392
|
+
}, u(l.accountLabel), 1)) : d("", !0),
|
|
393
|
+
e("div", Fe, [
|
|
394
|
+
(t(!0), o(C, null, B(p.value, (b) => (t(), L(K, le({
|
|
395
|
+
key: b.key
|
|
396
|
+
}, { ref_for: !0 }, b.args, {
|
|
397
|
+
onClick: b.click
|
|
398
|
+
}), null, 16, ["onClick"]))), 128)),
|
|
399
|
+
typeof l.onLogout == "function" ? (t(), L(K, {
|
|
400
|
+
key: 0,
|
|
401
|
+
icon: $(ge),
|
|
402
|
+
label: l.logoutLabel,
|
|
403
|
+
class: "rounded py-3",
|
|
404
|
+
onClick: c
|
|
405
|
+
}, null, 8, ["icon", "label"])) : d("", !0)
|
|
406
|
+
]),
|
|
407
|
+
m[0] || (m[0] = e("div", {
|
|
408
|
+
class: "space-y-2 text-center",
|
|
409
|
+
style: { width: "240px" }
|
|
410
|
+
}, null, -1)),
|
|
411
|
+
e("div", Be, u((k = l.app) == null ? void 0 : k.version), 1)
|
|
412
|
+
])
|
|
413
|
+
];
|
|
414
|
+
}),
|
|
415
|
+
_: 1
|
|
416
|
+
}));
|
|
417
|
+
}
|
|
418
|
+
});
|
|
419
|
+
function Le(w, f) {
|
|
420
|
+
return t(), o("svg", {
|
|
421
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
422
|
+
fill: "none",
|
|
423
|
+
viewBox: "0 0 24 24",
|
|
424
|
+
"stroke-width": "1.8",
|
|
425
|
+
stroke: "currentColor",
|
|
426
|
+
"aria-hidden": "true"
|
|
427
|
+
}, [
|
|
428
|
+
e("rect", {
|
|
429
|
+
width: "2.94",
|
|
430
|
+
height: "2.94",
|
|
431
|
+
x: "17.16",
|
|
432
|
+
y: "3.9",
|
|
433
|
+
fill: "currentColor",
|
|
434
|
+
"stroke-width": "1.8",
|
|
435
|
+
rx: "1.1"
|
|
436
|
+
}),
|
|
437
|
+
e("rect", {
|
|
438
|
+
width: "2.94",
|
|
439
|
+
height: "2.94",
|
|
440
|
+
x: "10.53",
|
|
441
|
+
y: "3.9",
|
|
442
|
+
fill: "currentColor",
|
|
443
|
+
"stroke-width": "1.8",
|
|
444
|
+
rx: "1.1"
|
|
445
|
+
}),
|
|
446
|
+
e("rect", {
|
|
447
|
+
width: "2.94",
|
|
448
|
+
height: "2.94",
|
|
449
|
+
x: "3.9",
|
|
450
|
+
y: "3.9",
|
|
451
|
+
fill: "currentColor",
|
|
452
|
+
"stroke-width": "1.8",
|
|
453
|
+
rx: "1.1"
|
|
454
|
+
}),
|
|
455
|
+
e("rect", {
|
|
456
|
+
width: "2.94",
|
|
457
|
+
height: "2.94",
|
|
458
|
+
x: "17.16",
|
|
459
|
+
y: "10.53",
|
|
460
|
+
fill: "currentColor",
|
|
461
|
+
"stroke-width": "1.8",
|
|
462
|
+
rx: "1.1"
|
|
463
|
+
}),
|
|
464
|
+
e("rect", {
|
|
465
|
+
width: "2.94",
|
|
466
|
+
height: "2.94",
|
|
467
|
+
x: "10.53",
|
|
468
|
+
y: "10.53",
|
|
469
|
+
fill: "currentColor",
|
|
470
|
+
"stroke-width": "1.8",
|
|
471
|
+
rx: "1.1"
|
|
472
|
+
}),
|
|
473
|
+
e("rect", {
|
|
474
|
+
width: "2.94",
|
|
475
|
+
height: "2.94",
|
|
476
|
+
x: "3.9",
|
|
477
|
+
y: "10.53",
|
|
478
|
+
fill: "currentColor",
|
|
479
|
+
"stroke-width": "1.8",
|
|
480
|
+
rx: "1.1"
|
|
481
|
+
}),
|
|
482
|
+
e("rect", {
|
|
483
|
+
width: "2.94",
|
|
484
|
+
height: "2.94",
|
|
485
|
+
x: "17.16",
|
|
486
|
+
y: "17.16",
|
|
487
|
+
fill: "currentColor",
|
|
488
|
+
"stroke-width": "1.8",
|
|
489
|
+
rx: "1.1"
|
|
490
|
+
}),
|
|
491
|
+
e("rect", {
|
|
492
|
+
width: "2.94",
|
|
493
|
+
height: "2.94",
|
|
494
|
+
x: "10.53",
|
|
495
|
+
y: "17.16",
|
|
496
|
+
fill: "currentColor",
|
|
497
|
+
"stroke-width": "1.8",
|
|
498
|
+
rx: "1.1"
|
|
499
|
+
}),
|
|
500
|
+
e("rect", {
|
|
501
|
+
width: "2.94",
|
|
502
|
+
height: "2.94",
|
|
503
|
+
x: "3.9",
|
|
504
|
+
y: "17.16",
|
|
505
|
+
fill: "currentColor",
|
|
506
|
+
"stroke-width": "1.8",
|
|
507
|
+
rx: "1.1"
|
|
508
|
+
})
|
|
509
|
+
]);
|
|
510
|
+
}
|
|
511
|
+
const je = ["data-opened"], ze = {
|
|
512
|
+
key: 1,
|
|
513
|
+
class: "absolute top-0 right-0 h-screen overflow-y-auto max-w-96 bg-white px-3 z-10"
|
|
514
|
+
}, Me = { class: "flex justify-between items-center pt-3 mb-3" }, Oe = { class: "font-semibold text-xl px-3" }, Ee = { class: "grid" }, Pe = { class: "rounded-lg m-3 border" }, Te = {
|
|
515
|
+
class: "space-x-2 flex items-center px-3 py-2",
|
|
516
|
+
style: { width: "300px" }
|
|
517
|
+
}, Ie = { class: "flex justify-between relative" }, Re = { class: "flex items-center justify-between w-full text-left text-sm font-semibold" }, Ve = { key: 0 }, He = { class: "text-xs font-semibold" }, De = { class: "px-3 py-2" }, qe = { class: "text-secondary-content text-left pb-1 text-xs uppercase" }, Ne = { class: "overflow-auto max-h-full" }, Ue = {
|
|
518
|
+
key: 0,
|
|
519
|
+
class: "space-y-2"
|
|
520
|
+
}, We = ["onClick"], Ke = { class: "flex" }, Ge = { class: "border border-secondary-stroke rounded-2xl w-14 h-14 md:w-14 md:h-14 flex items-center justify-center" }, Je = { class: "pl-2" }, Qe = { class: "text-sm mt-1 font-semibold" }, Xe = { class: "text9 mt-1" }, Ye = {
|
|
521
|
+
key: 1,
|
|
522
|
+
class: "mt-2 w-full bg-[#FAFAFA] hover:bg-secondary-10 p-2 rounded-lg mb-5 text-xs hidden"
|
|
523
|
+
}, Ze = /* @__PURE__ */ M({
|
|
524
|
+
__name: "OneBrowserMenu",
|
|
525
|
+
props: we,
|
|
526
|
+
emits: ["open", "close"],
|
|
527
|
+
setup(w, { emit: f }) {
|
|
528
|
+
const p = f, v = w, c = A(!1), l = () => {
|
|
529
|
+
c.value = !c.value, c.value ? p("open") : p("close");
|
|
530
|
+
}, m = A(!1);
|
|
531
|
+
S(() => m.value ? Q : J);
|
|
532
|
+
const s = () => {
|
|
533
|
+
typeof v.onChange == "function" && v.onChange();
|
|
534
|
+
}, h = (a) => {
|
|
535
|
+
typeof v.onApp == "function" && v.onApp(a);
|
|
536
|
+
};
|
|
537
|
+
return (a, g) => {
|
|
538
|
+
var k, b, i, n, y, F;
|
|
539
|
+
return t(), o("div", { "data-opened": c.value }, [
|
|
540
|
+
e("button", {
|
|
541
|
+
onClick: l,
|
|
542
|
+
class: j(["sm:p-1 sm:w-[44px] sm:h-[44px] w-8 h-8 rounded-md hover:bg-secondary-10 flex", { "bg-secondary-10": c.value }])
|
|
543
|
+
}, [
|
|
544
|
+
_($(Le), { class: "text-secondary-base w-full p-1 hover:text-blue-600 m-auto" })
|
|
545
|
+
], 2),
|
|
546
|
+
c.value ? (t(), o("div", {
|
|
547
|
+
key: 0,
|
|
548
|
+
class: "fixed top-0 left-0 w-screen h-screen z-10 bg-black/10",
|
|
549
|
+
onClick: l
|
|
550
|
+
})) : d("", !0),
|
|
551
|
+
c.value ? (t(), o("div", ze, [
|
|
552
|
+
e("div", Me, [
|
|
553
|
+
e("div", Oe, u((k = a.workspace) == null ? void 0 : k.title), 1),
|
|
554
|
+
_($(G), {
|
|
555
|
+
class: "w-6 cursor-pointer",
|
|
556
|
+
onClick: l
|
|
557
|
+
})
|
|
558
|
+
]),
|
|
559
|
+
e("div", Ee, [
|
|
560
|
+
e("div", Pe, [
|
|
561
|
+
e("div", Te, [
|
|
562
|
+
e("div", Ie, [
|
|
563
|
+
_(z, {
|
|
564
|
+
text: ((b = a.workspace) == null ? void 0 : b.name) || "",
|
|
565
|
+
src: (i = a.workspace) == null ? void 0 : i.photo_url,
|
|
566
|
+
size: 44,
|
|
567
|
+
rounded: !1,
|
|
568
|
+
class: "mx-auto"
|
|
569
|
+
}, null, 8, ["text", "src"])
|
|
570
|
+
]),
|
|
571
|
+
e("div", Re, u((n = a.workspace) == null ? void 0 : n.name), 1)
|
|
572
|
+
]),
|
|
573
|
+
m.value ? (t(), o("div", Ve, [
|
|
574
|
+
(t(!0), o(C, null, B(a.workspaces, (x) => (t(), o("div", {
|
|
575
|
+
key: x.name,
|
|
576
|
+
class: "flex items-center space-x-3 border-t px-5 py-2 hover:bg-secondary-10"
|
|
577
|
+
}, [
|
|
578
|
+
_(z, {
|
|
579
|
+
text: x.name,
|
|
580
|
+
src: x.photo_url,
|
|
581
|
+
size: 30,
|
|
582
|
+
rounded: !1
|
|
583
|
+
}, null, 8, ["text", "src"]),
|
|
584
|
+
e("span", He, u(x.name), 1)
|
|
585
|
+
]))), 128))
|
|
586
|
+
])) : d("", !0),
|
|
587
|
+
g[0] || (g[0] = e("hr", null, null, -1)),
|
|
588
|
+
e("div", {
|
|
589
|
+
onClick: s,
|
|
590
|
+
class: "text-center py-2 cursor-pointer",
|
|
591
|
+
style: { "font-size": "10px" }
|
|
592
|
+
}, u((y = a.workspace) == null ? void 0 : y.changeLabel), 1)
|
|
593
|
+
])
|
|
594
|
+
]),
|
|
595
|
+
e("div", De, [
|
|
596
|
+
e("div", qe, u((F = a.workspace) == null ? void 0 : F.appsLabel), 1),
|
|
597
|
+
e("div", Ne, [
|
|
598
|
+
a.apps && a.apps.length ? (t(), o("div", Ue, [
|
|
599
|
+
(t(!0), o(C, null, B(a.apps, (x) => (t(), o("div", {
|
|
600
|
+
key: x.id,
|
|
601
|
+
onClick: (O) => h(x),
|
|
602
|
+
class: "flex justify-between items-center rounded-lg hover:bg-secondary-10 p-2 bg-[#FAFAFA] cursor-pointer"
|
|
603
|
+
}, [
|
|
604
|
+
e("div", Ke, [
|
|
605
|
+
e("div", Ge, [
|
|
606
|
+
_(z, {
|
|
607
|
+
text: x.name,
|
|
608
|
+
src: x.photo_url,
|
|
609
|
+
size: 44,
|
|
610
|
+
rounded: !1
|
|
611
|
+
}, null, 8, ["text", "src"])
|
|
612
|
+
]),
|
|
613
|
+
e("div", Je, [
|
|
614
|
+
e("p", Qe, u(x.name), 1),
|
|
615
|
+
e("p", Xe, u(x == null ? void 0 : x.short), 1)
|
|
616
|
+
])
|
|
617
|
+
]),
|
|
618
|
+
e("div", null, [
|
|
619
|
+
_(pe, {
|
|
620
|
+
variant: "touch",
|
|
621
|
+
icon: $(de),
|
|
622
|
+
onClick: (O) => h(x)
|
|
623
|
+
}, null, 8, ["icon", "onClick"])
|
|
624
|
+
])
|
|
625
|
+
], 8, We))), 128))
|
|
626
|
+
])) : d("", !0),
|
|
627
|
+
a.apps && a.apps.length ? (t(), o("button", Ye, u("Дивитися всі"))) : d("", !0)
|
|
628
|
+
])
|
|
629
|
+
])
|
|
630
|
+
])) : d("", !0)
|
|
631
|
+
], 8, je);
|
|
632
|
+
};
|
|
633
|
+
}
|
|
634
|
+
});
|
|
635
|
+
const Nt = /* @__PURE__ */ X(Ze, [["__scopeId", "data-v-9e75279e"]]);
|
|
636
|
+
function et(w, f) {
|
|
637
|
+
return t(), o("svg", {
|
|
638
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
639
|
+
fill: "none",
|
|
640
|
+
viewBox: "0 0 24 24",
|
|
641
|
+
"stroke-width": "1.8",
|
|
642
|
+
stroke: "currentColor",
|
|
643
|
+
"aria-hidden": "true"
|
|
644
|
+
}, [
|
|
645
|
+
e("path", {
|
|
646
|
+
"stroke-linecap": "round",
|
|
647
|
+
"stroke-linejoin": "round",
|
|
648
|
+
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"
|
|
649
|
+
})
|
|
650
|
+
]);
|
|
651
|
+
}
|
|
652
|
+
function tt(w, f) {
|
|
653
|
+
return t(), o("svg", {
|
|
654
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
655
|
+
fill: "none",
|
|
656
|
+
viewBox: "0 0 24 24",
|
|
657
|
+
"stroke-width": "1.8",
|
|
658
|
+
stroke: "currentColor",
|
|
659
|
+
"aria-hidden": "true"
|
|
660
|
+
}, [
|
|
661
|
+
e("path", {
|
|
662
|
+
"stroke-linecap": "round",
|
|
663
|
+
"stroke-linejoin": "round",
|
|
664
|
+
d: "M21 12a9 9 0 11-18 0 9 9 0 0118 0z"
|
|
665
|
+
}),
|
|
666
|
+
e("path", {
|
|
667
|
+
"stroke-linecap": "round",
|
|
668
|
+
"stroke-linejoin": "round",
|
|
669
|
+
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"
|
|
670
|
+
})
|
|
671
|
+
]);
|
|
672
|
+
}
|
|
673
|
+
function ot(w, f) {
|
|
674
|
+
return t(), o("svg", {
|
|
675
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
676
|
+
fill: "none",
|
|
677
|
+
viewBox: "0 0 24 24",
|
|
678
|
+
"stroke-width": "1.8",
|
|
679
|
+
stroke: "currentColor",
|
|
680
|
+
"aria-hidden": "true"
|
|
681
|
+
}, [
|
|
682
|
+
e("path", {
|
|
683
|
+
"stroke-linecap": "round",
|
|
684
|
+
"stroke-linejoin": "round",
|
|
685
|
+
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"
|
|
686
|
+
})
|
|
687
|
+
]);
|
|
688
|
+
}
|
|
689
|
+
const nt = ["data-opened"], st = {
|
|
690
|
+
key: 1,
|
|
691
|
+
class: "absolute top-0 right-0 h-screen max-w-96 bg-white px-3 z-10 flex flex-col"
|
|
692
|
+
}, lt = { class: "flex justify-between items-center pt-3 mb-3" }, rt = { class: "font-semibold text-xl px-3" }, it = {
|
|
693
|
+
key: 0,
|
|
694
|
+
class: "grid grid-cols-3 bg-[#FAFAFA] rounded-xl text-[#525B66] mb-2"
|
|
695
|
+
}, at = ["onClick"], ct = { class: "uppercase text-[8px]" }, ut = { class: "overflow-y-auto grid rounded-xl" }, dt = { class: "max-h-full bg-[#FAFAFA]" }, pt = {
|
|
696
|
+
key: 0,
|
|
697
|
+
class: "space-y-2"
|
|
698
|
+
}, ht = ["onClick"], ft = { class: "flex" }, mt = { class: "pl-2" }, vt = { class: "text-sm mt-1 font-semibold" }, yt = { class: "text-[10px] mt-1 text-[#979CA9]" }, xt = { class: "mt-auto" }, gt = { key: 0 }, _t = ["onClick"], wt = { class: "flex items-center space-x-3" }, kt = { class: "h-16" }, bt = {
|
|
699
|
+
key: 0,
|
|
700
|
+
class: "bg-[#FAFAFA] rounded-lg p-3"
|
|
701
|
+
}, Ct = { class: "flex justify-between" }, $t = ["onClick"], At = {
|
|
702
|
+
key: 0,
|
|
703
|
+
class: "tooltip-text min-w-[70px]"
|
|
704
|
+
}, St = { class: "flex justify-between mb-4" }, Ft = ["href"], Bt = { class: "flex flex-nowrap items-center w-max h-[24px]" }, Lt = { class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full text-[#525B66]" }, jt = { class: "py-[8px] pl-0 pr-[8px]" }, zt = /* @__PURE__ */ M({
|
|
705
|
+
__name: "OneHelpMenu",
|
|
706
|
+
props: ke,
|
|
707
|
+
emits: ["open", "close"],
|
|
708
|
+
setup(w, { emit: f }) {
|
|
709
|
+
const p = f, v = w, c = A(!1), l = () => {
|
|
710
|
+
c.value = !c.value, c.value ? p("open") : p("close");
|
|
711
|
+
}, m = S(() => k.value ? Q : J), s = A(3), h = S(() => {
|
|
712
|
+
var n, y;
|
|
713
|
+
const i = ((y = (n = v.help) == null ? void 0 : n.helpList) == null ? void 0 : y.length) || 0;
|
|
714
|
+
return s.value === i;
|
|
715
|
+
});
|
|
716
|
+
S(() => {
|
|
717
|
+
var n;
|
|
718
|
+
return (((n = v.help) == null ? void 0 : n.helpList) || []).slice(0, s.value);
|
|
719
|
+
});
|
|
720
|
+
const a = () => {
|
|
721
|
+
var n, y;
|
|
722
|
+
const i = ((y = (n = v.help) == null ? void 0 : n.helpList) == null ? void 0 : y.length) || 0;
|
|
723
|
+
s.value = h.value ? 3 : i;
|
|
724
|
+
}, g = (i, n) => {
|
|
725
|
+
i && n && typeof n.openLink == "function" ? n.openLink(n) : i && window.open(i, "_blank");
|
|
726
|
+
}, k = A(!1), b = () => {
|
|
727
|
+
k.value = !k.value;
|
|
728
|
+
};
|
|
729
|
+
return (i, n) => {
|
|
730
|
+
var y, F, x, O, H, D, q, N, U;
|
|
731
|
+
return t(), o("div", { "data-opened": c.value }, [
|
|
732
|
+
e("button", {
|
|
733
|
+
onClick: l,
|
|
734
|
+
class: j(["sm:p-1 sm:w-[44px] sm:h-[44px] w-8 h-8 rounded-md hover:bg-secondary-10 flex", { "bg-secondary-10": c.value }])
|
|
735
|
+
}, [
|
|
736
|
+
_($(et), { class: "text-secondary-base w-full p-1 hover:text-blue-600 m-auto" })
|
|
737
|
+
], 2),
|
|
738
|
+
c.value ? (t(), o("div", {
|
|
739
|
+
key: 0,
|
|
740
|
+
class: "fixed top-0 left-0 w-screen h-screen z-10 bg-black/10 flex flex-col",
|
|
741
|
+
onClick: l
|
|
742
|
+
})) : d("", !0),
|
|
743
|
+
c.value ? (t(), o("div", st, [
|
|
744
|
+
e("div", lt, [
|
|
745
|
+
e("div", rt, u((y = i.help) == null ? void 0 : y.label), 1),
|
|
746
|
+
_($(G), {
|
|
747
|
+
class: "w-6 cursor-pointer",
|
|
748
|
+
onClick: l
|
|
749
|
+
})
|
|
750
|
+
]),
|
|
751
|
+
(F = i.help) != null && F.helpButton ? (t(), o("div", it, [
|
|
752
|
+
(t(!0), o(C, null, B((x = i.help) == null ? void 0 : x.helpButton, (r) => (t(), o("button", {
|
|
753
|
+
key: r.name,
|
|
754
|
+
onClick: (P) => g(r.link, r),
|
|
755
|
+
class: "grid justify-center space-y-2 hover:bg-slate-100 p-3 rounded-xl hover:text-blue-500"
|
|
756
|
+
}, [
|
|
757
|
+
e("div", null, [
|
|
758
|
+
(t(), L(V(r == null ? void 0 : r.icon), { class: "w-[16px] h-[16px] mx-auto" }))
|
|
759
|
+
]),
|
|
760
|
+
e("span", ct, u(r.name), 1)
|
|
761
|
+
], 8, at))), 128))
|
|
762
|
+
])) : d("", !0),
|
|
763
|
+
e("div", ut, [
|
|
764
|
+
e("div", dt, [
|
|
765
|
+
(O = i.help) != null && O.helpList && i.help.helpList.length ? (t(), o("div", pt, [
|
|
766
|
+
(t(!0), o(C, null, B(i.help.helpList, (r) => (t(), o("div", {
|
|
767
|
+
key: r.id,
|
|
768
|
+
onClick: (P) => g(r.link, r),
|
|
769
|
+
class: "flex justify-between items-center rounded-lg hover:bg-slate-100 p-2 cursor-pointer hover:text-[#4089E0]"
|
|
770
|
+
}, [
|
|
771
|
+
e("div", ft, [
|
|
772
|
+
e("div", mt, [
|
|
773
|
+
e("p", vt, u(r.name), 1),
|
|
774
|
+
e("p", yt, u(r.category), 1)
|
|
775
|
+
])
|
|
776
|
+
])
|
|
777
|
+
], 8, ht))), 128))
|
|
778
|
+
])) : d("", !0)
|
|
779
|
+
])
|
|
780
|
+
]),
|
|
781
|
+
(H = i.help) != null && H.helpList && i.help.helpList.length < 0 ? (t(), o("button", {
|
|
782
|
+
key: 1,
|
|
783
|
+
onClick: a,
|
|
784
|
+
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"
|
|
785
|
+
}, u(h.value ? i.help.buttNoMore : i.help.buttMore), 1)) : d("", !0),
|
|
786
|
+
e("div", xt, [
|
|
787
|
+
(D = i.help) != null && D.video ? (t(), o("div", gt, [
|
|
788
|
+
(t(!0), o(C, null, B(i.help.video, (r) => (t(), o("button", {
|
|
789
|
+
key: r.id,
|
|
790
|
+
onClick: (P) => g(r.link, r),
|
|
791
|
+
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"
|
|
792
|
+
}, [
|
|
793
|
+
_($(tt), { class: "w-6 h-6" }),
|
|
794
|
+
e("span", null, u(r.name), 1)
|
|
795
|
+
], 8, _t))), 128))
|
|
796
|
+
])) : d("", !0),
|
|
797
|
+
(q = i.help) != null && q.socialList ? (t(), o("button", {
|
|
798
|
+
key: 1,
|
|
799
|
+
onClick: b,
|
|
800
|
+
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"
|
|
801
|
+
}, [
|
|
802
|
+
e("div", wt, [
|
|
803
|
+
_($(ot), { class: "w-6 h-6" }),
|
|
804
|
+
e("span", null, u(i.help.socialButt), 1)
|
|
805
|
+
]),
|
|
806
|
+
_($(m), { class: "w-4 h-4" })
|
|
807
|
+
])) : d("", !0),
|
|
808
|
+
e("div", kt, [
|
|
809
|
+
k.value ? (t(), o("div", bt, [
|
|
810
|
+
e("div", Ct, [
|
|
811
|
+
(t(!0), o(C, null, B((N = i.help) == null ? void 0 : N.socialList, (r) => (t(), o("button", {
|
|
812
|
+
key: r.id,
|
|
813
|
+
onClick: (P) => g(r.link, r),
|
|
814
|
+
class: "flex items-center space-x-2 p-2 rounded-lg hover:bg-slate-100 hover:text-blue-500 tooltip"
|
|
815
|
+
}, [
|
|
816
|
+
e("div", null, [
|
|
817
|
+
r.name ? (t(), o("div", At, u(r.name), 1)) : d("", !0),
|
|
818
|
+
(t(), L(V(r == null ? void 0 : r.icon), { class: "w-[24px] h-[24px] mx-auto" }))
|
|
819
|
+
])
|
|
820
|
+
], 8, $t))), 128))
|
|
821
|
+
])
|
|
822
|
+
])) : d("", !0)
|
|
823
|
+
]),
|
|
824
|
+
e("div", St, [
|
|
825
|
+
(t(!0), o(C, null, B((U = i.help) == null ? void 0 : U.termsOffer, (r) => (t(), o("a", {
|
|
826
|
+
key: r.name,
|
|
827
|
+
target: "_blank",
|
|
828
|
+
href: r.link,
|
|
829
|
+
class: "ml-2 flex items-center rounded-lg text-xs hover:underline font-extralight cursor-pointer"
|
|
830
|
+
}, [
|
|
831
|
+
e("div", Bt, [
|
|
832
|
+
e("div", Lt, [
|
|
833
|
+
e("span", jt, u(r.name), 1)
|
|
834
|
+
])
|
|
835
|
+
])
|
|
836
|
+
], 8, Ft))), 128))
|
|
837
|
+
])
|
|
838
|
+
])
|
|
839
|
+
])) : d("", !0)
|
|
840
|
+
], 8, nt);
|
|
841
|
+
};
|
|
842
|
+
}
|
|
843
|
+
});
|
|
844
|
+
const Ut = /* @__PURE__ */ X(zt, [["__scopeId", "data-v-f5d2b453"]]);
|
|
845
|
+
export {
|
|
846
|
+
Nt as O,
|
|
847
|
+
xe as _,
|
|
848
|
+
K as a,
|
|
849
|
+
qt as b,
|
|
850
|
+
Ut as c,
|
|
851
|
+
he as d,
|
|
852
|
+
we as e,
|
|
853
|
+
Dt as f,
|
|
854
|
+
ot as g,
|
|
855
|
+
Le as r
|
|
856
|
+
};
|