@oneb/ui-vue 0.3.19 → 0.3.21
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-7f53fa30.cjs +1 -0
- package/dist/{OneHelpMenu-d7a39a69.js → OneHelpMenu-a9131cb1.js} +241 -220
- package/dist/dataTable/dataTable.d.ts +5 -1
- package/dist/dataTable/index.cjs +1 -1
- package/dist/dataTable/index.js +454 -441
- package/dist/dataTable/util.d.ts +2 -2
- package/dist/dropdown/dropdown.d.ts +8 -0
- package/dist/dropdown/index.cjs +1 -1
- package/dist/dropdown/index.js +2 -2
- package/dist/icons/unsorted/SidebarLeftCollapseIcon.d.ts +3 -0
- package/dist/icons/unsorted/SidebarLeftCollapseIcon.js +23 -0
- package/dist/icons/unsorted/esm/SidebarLeftCollapseIcon.d.ts +3 -0
- package/dist/icons/unsorted/esm/SidebarLeftCollapseIcon.js +23 -0
- package/dist/icons/unsorted/esm/index.d.ts +2 -1
- package/dist/icons/unsorted/esm/index.js +2 -1
- package/dist/icons/unsorted/index.d.ts +2 -1
- package/dist/icons/unsorted/index.js +2 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +64 -63
- package/dist/layout/OneIsland.vue.d.ts +2 -0
- package/dist/layout/index.cjs +1 -1
- package/dist/layout/index.d.ts +1 -0
- package/dist/layout/index.js +1010 -526
- package/dist/layout/layout.d.ts +13 -0
- package/dist/style.css +1 -1
- package/dist/tooltip/index.cjs +47 -1
- package/dist/tooltip/index.js +97 -13
- package/package.json +1 -1
- package/dist/OneHelpMenu-66a2d4c2.cjs +0 -1
package/dist/layout/index.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { openBlock as
|
|
2
|
-
import {
|
|
3
|
-
import { r as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { OneButton as
|
|
7
|
-
import { r as
|
|
8
|
-
import { S as
|
|
9
|
-
import { OneMarkdown as
|
|
1
|
+
import { openBlock as s, createElementBlock as l, createElementVNode as t, defineComponent as ve, computed as B, ref as S, resolveComponent as Ye, resolveDirective as c1, Fragment as G, toDisplayString as r, createCommentVNode as o, createBlock as p, withCtx as U, resolveDynamicComponent as k, mergeProps as h1, renderList as Z, withDirectives as oe, normalizeClass as y, unref as $, withModifiers as ae, watch as ie, onMounted as he, onBeforeUnmount as m1, watchEffect as e1, shallowRef as f1, normalizeStyle as v1, vShow as me, createVNode as L, createTextVNode as ue, onUnmounted as ge, renderSlot as re } from "vue";
|
|
2
|
+
import { _ as s1, g as w1, c as t1, O as l1, b as n1 } from "../OneHelpMenu-a9131cb1.js";
|
|
3
|
+
import { r as be, a as y1 } from "../ChevronRightIcon-4549a26b.js";
|
|
4
|
+
import { r as ce } from "../ChevronDownIcon-6805ce6c.js";
|
|
5
|
+
import { _ as we } from "../_plugin-vue_export-helper-dad06003.js";
|
|
6
|
+
import { OneButton as xe } from "../button/index.js";
|
|
7
|
+
import { r as o1 } from "../XMarkIcon-51ef0691.js";
|
|
8
|
+
import { S as a1 } from "../SpinnerIcon-74648c98.js";
|
|
9
|
+
import { OneMarkdown as r1 } from "../common/index.js";
|
|
10
10
|
import "../OneMarkdown.vue_vue_type_style_index_0_lang-4ed993c7.js";
|
|
11
|
+
import { _ as Ce } from "../OneAvatar.vue_vue_type_script_setup_true_lang-08ab80dd.js";
|
|
11
12
|
import "../floating-ui.dom-4509432e.js";
|
|
12
13
|
import "@floating-ui/vue";
|
|
13
|
-
import "../OneAvatar.vue_vue_type_script_setup_true_lang-08ab80dd.js";
|
|
14
14
|
import "../SpinnerIcon.vue_vue_type_style_index_0_lang-4ed993c7.js";
|
|
15
15
|
import "vue-markdown-render";
|
|
16
|
-
function
|
|
17
|
-
return
|
|
16
|
+
function i1(g, x) {
|
|
17
|
+
return s(), l("svg", {
|
|
18
18
|
xmlns: "http://www.w3.org/2000/svg",
|
|
19
19
|
fill: "none",
|
|
20
20
|
viewBox: "0 0 24 24",
|
|
@@ -22,15 +22,15 @@ function ae(v, C) {
|
|
|
22
22
|
stroke: "currentColor",
|
|
23
23
|
"aria-hidden": "true"
|
|
24
24
|
}, [
|
|
25
|
-
|
|
25
|
+
t("path", {
|
|
26
26
|
"stroke-linecap": "round",
|
|
27
27
|
"stroke-linejoin": "round",
|
|
28
28
|
d: "M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"
|
|
29
29
|
})
|
|
30
30
|
]);
|
|
31
31
|
}
|
|
32
|
-
function
|
|
33
|
-
return
|
|
32
|
+
function b1(g, x) {
|
|
33
|
+
return s(), l("svg", {
|
|
34
34
|
xmlns: "http://www.w3.org/2000/svg",
|
|
35
35
|
fill: "none",
|
|
36
36
|
viewBox: "0 0 24 24",
|
|
@@ -38,14 +38,14 @@ function re(v, C) {
|
|
|
38
38
|
stroke: "currentColor",
|
|
39
39
|
"aria-hidden": "true"
|
|
40
40
|
}, [
|
|
41
|
-
|
|
41
|
+
t("path", {
|
|
42
42
|
"stroke-linecap": "round",
|
|
43
43
|
"stroke-linejoin": "round",
|
|
44
44
|
d: "M8.625 9.75a.375.375 0 11-.75 0 .375.375 0 01.75 0zm0 0H8.25m4.125 0a.375.375 0 11-.75 0 .375.375 0 01.75 0zm0 0H12m4.125 0a.375.375 0 11-.75 0 .375.375 0 01.75 0zm0 0h-.375m-13.5 3.01c0 1.6 1.123 2.994 2.707 3.227 1.087.16 2.185.283 3.293.369V21l4.184-4.183a1.14 1.14 0 01.778-.332 48.294 48.294 0 005.83-.498c1.585-.233 2.708-1.626 2.708-3.228V6.741c0-1.602-1.123-2.995-2.707-3.228A48.394 48.394 0 0012 3c-2.392 0-4.744.175-7.043.513C3.373 3.746 2.25 5.14 2.25 6.741v6.018z"
|
|
45
45
|
})
|
|
46
46
|
]);
|
|
47
47
|
}
|
|
48
|
-
const
|
|
48
|
+
const d1 = {
|
|
49
49
|
items: {
|
|
50
50
|
required: !0,
|
|
51
51
|
type: Array
|
|
@@ -54,6 +54,10 @@ const Z1 = {
|
|
|
54
54
|
type: Boolean,
|
|
55
55
|
default: !1
|
|
56
56
|
},
|
|
57
|
+
island: {
|
|
58
|
+
type: Boolean,
|
|
59
|
+
default: !1
|
|
60
|
+
},
|
|
57
61
|
isMobile: {
|
|
58
62
|
type: Boolean,
|
|
59
63
|
default: !1
|
|
@@ -69,7 +73,7 @@ const Z1 = {
|
|
|
69
73
|
news: {
|
|
70
74
|
type: Object
|
|
71
75
|
}
|
|
72
|
-
},
|
|
76
|
+
}, C1 = {
|
|
73
77
|
route: {
|
|
74
78
|
required: !1,
|
|
75
79
|
type: [Object, String]
|
|
@@ -119,6 +123,14 @@ const Z1 = {
|
|
|
119
123
|
type: Boolean,
|
|
120
124
|
default: !0
|
|
121
125
|
},
|
|
126
|
+
island: {
|
|
127
|
+
type: Boolean,
|
|
128
|
+
default: !1
|
|
129
|
+
},
|
|
130
|
+
active: {
|
|
131
|
+
type: Boolean,
|
|
132
|
+
default: !1
|
|
133
|
+
},
|
|
122
134
|
open: {
|
|
123
135
|
type: Boolean,
|
|
124
136
|
default: !1
|
|
@@ -128,8 +140,8 @@ const Z1 = {
|
|
|
128
140
|
required: !1
|
|
129
141
|
// Не обов'язковий, бо може бути відсутнім
|
|
130
142
|
}
|
|
131
|
-
},
|
|
132
|
-
sidebarItems:
|
|
143
|
+
}, u1 = {
|
|
144
|
+
sidebarItems: d1.items,
|
|
133
145
|
logoSrc: {
|
|
134
146
|
type: String
|
|
135
147
|
},
|
|
@@ -178,188 +190,274 @@ const Z1 = {
|
|
|
178
190
|
type: Array,
|
|
179
191
|
default: () => []
|
|
180
192
|
}
|
|
181
|
-
},
|
|
193
|
+
}, g1 = {
|
|
182
194
|
key: 0,
|
|
183
|
-
class: "
|
|
184
|
-
},
|
|
195
|
+
class: "border-t border-secondary-stroke my-2 mx-auto w-6"
|
|
196
|
+
}, x1 = {
|
|
197
|
+
key: 1,
|
|
198
|
+
style: { "font-size": "10px" },
|
|
199
|
+
class: "text-[#a1a5b0] px-2 pt-0 pb-0.5 pl-3 font-medium"
|
|
200
|
+
}, k1 = { class: "flex flex-nowrap items-center h-[24px]" }, $1 = {
|
|
185
201
|
key: 0,
|
|
186
|
-
class: "
|
|
187
|
-
},
|
|
202
|
+
class: "flex-shrink-0 w-auto"
|
|
203
|
+
}, _1 = { class: "min-w-[220px] py-1" }, L1 = { class: "text-xs font-semibold text-black px-3 pt-1 pb-2" }, S1 = ["href"], B1 = { class: "text-xs" }, M1 = { class: "text-xs" }, j1 = ["href"], O1 = { class: "flex flex-nowrap items-center h-[24px]" }, z1 = {
|
|
188
204
|
key: 1,
|
|
205
|
+
class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full"
|
|
206
|
+
}, T1 = { class: "py-[8px] pl-0 pr-0" }, V1 = {
|
|
207
|
+
key: 2,
|
|
208
|
+
class: "ml-auto"
|
|
209
|
+
}, H1 = { class: "flex flex-nowrap items-center h-[24px]" }, A1 = {
|
|
210
|
+
key: 1,
|
|
211
|
+
class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full"
|
|
212
|
+
}, P1 = { class: "py-[8px] pl-0 pr-0" }, E1 = {
|
|
213
|
+
key: 2,
|
|
189
214
|
class: "p-3"
|
|
190
|
-
},
|
|
191
|
-
key: 0,
|
|
192
|
-
class: "w-[44px] flex-shrink-0"
|
|
193
|
-
}, ge = { class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full" }, Le = { class: "py-[8px] pl-0 pr-0" }, ke = {
|
|
215
|
+
}, F1 = { class: "flex flex-nowrap items-center h-[24px]" }, W1 = {
|
|
194
216
|
key: 1,
|
|
217
|
+
class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full"
|
|
218
|
+
}, N1 = { class: "py-[8px] pl-0 pr-0" }, G1 = {
|
|
219
|
+
key: 2,
|
|
195
220
|
class: "p-3"
|
|
196
|
-
},
|
|
221
|
+
}, I1 = {
|
|
222
|
+
key: 3,
|
|
223
|
+
class: "pl-[36px] pr-3"
|
|
224
|
+
}, R1 = ["href"], q1 = { class: "flex items-center justify-between min-w-full h-[24px]" }, U1 = { class: "text-xs" }, Z1 = {
|
|
197
225
|
key: 0,
|
|
198
|
-
class: "
|
|
199
|
-
},
|
|
226
|
+
class: "pr-1"
|
|
227
|
+
}, D1 = { class: "text-xs" }, J1 = {
|
|
200
228
|
key: 0,
|
|
201
|
-
class: "text-xs"
|
|
202
|
-
}, Be = {
|
|
203
|
-
key: 1,
|
|
204
229
|
class: "pr-3"
|
|
205
|
-
},
|
|
230
|
+
}, K1 = /* @__PURE__ */ ve({
|
|
206
231
|
__name: "OneSidebarLink",
|
|
207
|
-
props:
|
|
232
|
+
props: C1,
|
|
208
233
|
emits: ["update-collapsed"],
|
|
209
|
-
setup(
|
|
210
|
-
const
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
234
|
+
setup(g, { emit: x }) {
|
|
235
|
+
const i = g, c = x, _ = (e) => e.route ? e.route : e.routeName ? { name: e.routeName } : null, v = B(() => _(i)), d = B(() => Array.isArray(i.subItems) && i.subItems.length > 0), F = B(() => d.value && i.subItems.some((e) => e.href)), I = B(() => i.href ? "a" : v.value ? "router-link" : "span"), D = B(() => i.href ? { href: i.href, title: d.value ? null : i.label } : v.value ? { to: v.value, title: d.value ? null : i.label } : { title: d.value ? null : i.label }), q = B(() => [
|
|
236
|
+
"flex items-center justify-center text-sm font-medium hover:bg-primary-10-hover hover:text-primary-base transition-all text-[#525B66] mb-0.5 rounded-10 w-[44px] h-[44px] cursor-pointer",
|
|
237
|
+
i.active ? "bg-primary-10 !text-primary-base" : ""
|
|
238
|
+
]), M = S(i.open), W = (e, a = i) => {
|
|
239
|
+
var C;
|
|
240
|
+
return (a == null ? void 0 : a.menuGroup) && (e == null ? void 0 : e.meta) && ((C = e.meta) == null ? void 0 : C.menuGroup) && e.meta.menuGroup && e.meta.menuGroup === a.menuGroup;
|
|
241
|
+
}, f = () => {
|
|
242
|
+
M.value = !M.value;
|
|
243
|
+
}, O = (e, a) => {
|
|
244
|
+
var C;
|
|
245
|
+
d.value && !a && !(i.slim && i.island) && ((C = e == null ? void 0 : e.preventDefault) == null || C.call(e), f()), (a || !d.value) && i.isMobile && c("update-collapsed");
|
|
217
246
|
};
|
|
218
|
-
return (
|
|
219
|
-
var
|
|
220
|
-
const
|
|
221
|
-
return
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
style: { "font-size": "10px" },
|
|
225
|
-
class: c([{ "text-center h-[15px]": o.slim }, "text-[#a1a5b0] px-2 pt-0 pb-0.5 pl-3 font-medium"])
|
|
226
|
-
}, u(o.slim ? "" : o.labelTop), 3)) : a("", !0),
|
|
227
|
-
g.value ? (t(), l("a", {
|
|
228
|
-
key: 1,
|
|
229
|
-
href: g.value,
|
|
230
|
-
class: c(["flex items-center relative rounded-xl text-sm font-medium hover:bg-primary-10-hover hover:text-primary-base transition-all text-[#525B66] mb-0.5", [o.slim ? "w-[44px] h-[44px]" : "h-[44px] w-full"]]),
|
|
231
|
-
onClick: B
|
|
232
|
-
}, [
|
|
233
|
-
e("div", de, [
|
|
234
|
-
o.icon ? (t(), l("div", ce, [
|
|
235
|
-
(t(), w(_(o.icon), { class: "w-[24px] h-[24px] mx-auto" }))
|
|
236
|
-
])) : a("", !0),
|
|
237
|
-
e("div", me, [
|
|
238
|
-
e("span", fe, u(o.label), 1)
|
|
239
|
-
]),
|
|
240
|
-
r.subItems && r.subItems.length > 0 ? (t(), l("div", {
|
|
241
|
-
key: 1,
|
|
242
|
-
class: c(["ml-auto", [(o.slim, "")]])
|
|
243
|
-
}, [
|
|
244
|
-
(t(), w(_(L.value ? k(a1) : k(r1)), { class: "w-[16px] h-[16px]" }))
|
|
245
|
-
], 2)) : a("", !0)
|
|
246
|
-
])
|
|
247
|
-
], 10, ue)) : a("", !0),
|
|
248
|
-
!g.value && b.value ? (t(), w(m, {
|
|
247
|
+
return (e, a) => {
|
|
248
|
+
var T, V;
|
|
249
|
+
const C = Ye("RouterLink"), z = c1("onetooltip");
|
|
250
|
+
return s(), l(G, null, [
|
|
251
|
+
e.labelTop && e.slim ? (s(), l("div", g1)) : e.labelTop ? (s(), l("p", x1, r(e.labelTop), 1)) : o("", !0),
|
|
252
|
+
e.slim && e.island && d.value ? (s(), p(s1, {
|
|
249
253
|
key: 2,
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
"h-[44px] w-full": !o.slim,
|
|
255
|
-
"bg-primary-10 !text-primary-base": V(o.$route)
|
|
256
|
-
}]),
|
|
257
|
-
"active-class": (O = o.$route) != null && O.meta && ((n = o.$route.meta) != null && n.menuGroup) && o.$route.meta.menuGroup ? "" : "bg-primary-10 !text-primary-base",
|
|
258
|
-
onClick: t1(B, ["prevent"])
|
|
254
|
+
trigger: "hover",
|
|
255
|
+
"append-body": !0,
|
|
256
|
+
stick: "right-start",
|
|
257
|
+
offset: 12
|
|
259
258
|
}, {
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
259
|
+
button: U(() => [
|
|
260
|
+
(s(), p(k(I.value), h1(D.value, {
|
|
261
|
+
class: q.value,
|
|
262
|
+
onClick: O
|
|
263
|
+
}), {
|
|
264
|
+
default: U(() => [
|
|
265
|
+
t("div", k1, [
|
|
266
|
+
e.icon ? (s(), l("div", $1, [
|
|
267
|
+
(s(), p(k(e.icon), { class: "mx-auto w-5 h-5" }))
|
|
268
|
+
])) : o("", !0)
|
|
269
|
+
])
|
|
267
270
|
]),
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
+
_: 1
|
|
272
|
+
}, 16, ["class"]))
|
|
273
|
+
]),
|
|
274
|
+
menu: U(() => [
|
|
275
|
+
t("div", _1, [
|
|
276
|
+
t("p", L1, r(e.label), 1),
|
|
277
|
+
F.value ? (s(!0), l(G, { key: 0 }, Z(i.subItems, (m) => (s(), l("a", {
|
|
278
|
+
key: m.label,
|
|
279
|
+
href: m.href,
|
|
280
|
+
class: "flex items-center gap-2 rounded-10 mx-1 px-3 py-2 text-sm font-medium hover:bg-primary-10-hover hover:text-primary-base transition-all text-[#525B66]"
|
|
281
|
+
}, [
|
|
282
|
+
m.icon ? (s(), p(k(m.icon), {
|
|
283
|
+
key: 0,
|
|
284
|
+
class: "w-[15px] h-[15px] shrink-0"
|
|
285
|
+
})) : o("", !0),
|
|
286
|
+
t("span", B1, r(m.label), 1)
|
|
287
|
+
], 8, S1))), 128)) : (s(!0), l(G, { key: 1 }, Z(i.subItems, (m) => {
|
|
288
|
+
var H, A;
|
|
289
|
+
return s(), p(C, {
|
|
290
|
+
key: m.label,
|
|
291
|
+
to: _(m),
|
|
292
|
+
class: "flex items-center gap-2 rounded-10 mx-1 px-3 py-2 text-sm font-medium hover:bg-primary-10-hover hover:text-primary-base transition-all text-[#525B66]",
|
|
293
|
+
"active-class": (H = e.$route) != null && H.meta && ((A = e.$route.meta) != null && A.menuGroup) && e.$route.meta.menuGroup ? "" : "bg-primary-10 !text-primary-base"
|
|
294
|
+
}, {
|
|
295
|
+
default: U(() => [
|
|
296
|
+
m.icon ? (s(), p(k(m.icon), {
|
|
297
|
+
key: 0,
|
|
298
|
+
class: "w-[15px] h-[15px] shrink-0"
|
|
299
|
+
})) : o("", !0),
|
|
300
|
+
t("span", M1, r(m.label), 1)
|
|
301
|
+
]),
|
|
302
|
+
_: 2
|
|
303
|
+
}, 1032, ["to", "active-class"]);
|
|
304
|
+
}), 128))
|
|
271
305
|
])
|
|
272
306
|
]),
|
|
273
307
|
_: 1
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
308
|
+
})) : (s(), l(G, { key: 3 }, [
|
|
309
|
+
e.href ? oe((s(), l("a", {
|
|
310
|
+
key: 0,
|
|
311
|
+
href: e.href,
|
|
312
|
+
class: y(["flex items-center relative text-sm font-medium hover:bg-primary-10-hover hover:text-primary-base transition-all text-[#525B66] mb-0.5", [
|
|
313
|
+
e.island ? "rounded-10" : "rounded-xl",
|
|
314
|
+
e.slim ? "w-[44px] h-[44px] justify-center" : "h-[44px] w-full",
|
|
315
|
+
e.active ? "bg-primary-10 !text-primary-base" : ""
|
|
316
|
+
]]),
|
|
317
|
+
onClick: O
|
|
318
|
+
}, [
|
|
319
|
+
t("div", O1, [
|
|
320
|
+
e.icon ? (s(), l("div", {
|
|
321
|
+
key: 0,
|
|
322
|
+
class: y(["flex-shrink-0", e.slim ? "w-auto" : "w-[44px]"])
|
|
323
|
+
}, [
|
|
324
|
+
(s(), p(k(e.icon), {
|
|
325
|
+
class: y(["mx-auto", e.slim ? "w-5 h-5" : "w-[24px] h-[24px]"])
|
|
326
|
+
}, null, 8, ["class"]))
|
|
327
|
+
], 2)) : o("", !0),
|
|
328
|
+
e.slim ? o("", !0) : (s(), l("div", z1, [
|
|
329
|
+
t("span", T1, r(e.label), 1)
|
|
330
|
+
])),
|
|
331
|
+
d.value && !e.slim ? (s(), l("div", V1, [
|
|
332
|
+
(s(), p(k(M.value ? $(be) : $(ce)), { class: "w-[16px] h-[16px]" }))
|
|
333
|
+
])) : o("", !0)
|
|
334
|
+
])
|
|
335
|
+
], 10, j1)), [
|
|
336
|
+
[z, e.slim && !d.value ? e.label : "", "right"]
|
|
337
|
+
]) : o("", !0),
|
|
338
|
+
!e.href && v.value ? oe((s(), p(C, {
|
|
339
|
+
key: 1,
|
|
340
|
+
to: v.value,
|
|
341
|
+
exact: e.exact,
|
|
342
|
+
class: y(["relative flex items-center cursor-pointer text-sm font-medium hover:bg-primary-10-hover hover:text-primary-base transition-all text-[#525B66] mb-0.5", {
|
|
343
|
+
"rounded-10": e.island,
|
|
344
|
+
"rounded-xl": !e.island,
|
|
345
|
+
"w-[44px] h-[44px] justify-center": e.slim,
|
|
346
|
+
"h-[44px] w-full": !e.slim,
|
|
347
|
+
"bg-primary-10 !text-primary-base": e.active || W(e.$route)
|
|
348
|
+
}]),
|
|
349
|
+
"active-class": (T = e.$route) != null && T.meta && ((V = e.$route.meta) != null && V.menuGroup) && e.$route.meta.menuGroup ? "" : "bg-primary-10 !text-primary-base",
|
|
350
|
+
onClick: ae(O, ["prevent"])
|
|
351
|
+
}, {
|
|
352
|
+
default: U(() => [
|
|
353
|
+
t("div", H1, [
|
|
354
|
+
e.icon ? (s(), l("div", {
|
|
355
|
+
key: 0,
|
|
356
|
+
class: y(["flex-shrink-0", e.slim ? "w-auto" : "w-[44px]"])
|
|
357
|
+
}, [
|
|
358
|
+
(s(), p(k(e.icon), {
|
|
359
|
+
class: y(["mx-auto", e.slim ? "w-5 h-5" : "w-[24px] h-[24px]"])
|
|
360
|
+
}, null, 8, ["class"]))
|
|
361
|
+
], 2)) : o("", !0),
|
|
362
|
+
e.slim ? o("", !0) : (s(), l("div", A1, [
|
|
363
|
+
t("span", P1, r(e.label), 1)
|
|
364
|
+
])),
|
|
365
|
+
d.value && !e.slim ? (s(), l("div", E1, [
|
|
366
|
+
(s(), p(k(M.value ? $(be) : $(ce)), { class: "w-[16px] h-[16px]" }))
|
|
367
|
+
])) : o("", !0)
|
|
368
|
+
])
|
|
286
369
|
]),
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
])
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
370
|
+
_: 1
|
|
371
|
+
}, 8, ["to", "exact", "active-class", "class"])), [
|
|
372
|
+
[z, e.slim && !d.value ? e.label : "", "right"]
|
|
373
|
+
]) : o("", !0),
|
|
374
|
+
!e.href && !v.value ? oe((s(), l("span", {
|
|
375
|
+
key: 2,
|
|
376
|
+
onClick: ae(O, ["prevent"]),
|
|
377
|
+
class: y(["mb-0.5 relative flex items-center cursor-pointer text-sm font-medium hover:bg-primary-10-hover hover:text-primary-base transition-all text-[#525B66]", [
|
|
378
|
+
e.island ? "rounded-10" : "rounded-xl",
|
|
379
|
+
e.slim ? "w-[44px] h-[44px] justify-center" : "h-[44px] w-full",
|
|
380
|
+
e.active ? "bg-primary-10 !text-primary-base" : ""
|
|
381
|
+
]])
|
|
298
382
|
}, [
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
383
|
+
t("div", F1, [
|
|
384
|
+
e.icon ? (s(), l("div", {
|
|
385
|
+
key: 0,
|
|
386
|
+
class: y(["flex-shrink-0", e.slim ? "w-auto" : "w-[44px]"])
|
|
387
|
+
}, [
|
|
388
|
+
(s(), p(k(e.icon), {
|
|
389
|
+
class: y(["mx-auto", e.slim ? "w-5 h-5" : "w-[24px] h-[24px]"])
|
|
390
|
+
}, null, 8, ["class"]))
|
|
391
|
+
], 2)) : o("", !0),
|
|
392
|
+
e.slim ? o("", !0) : (s(), l("div", W1, [
|
|
393
|
+
t("span", N1, r(e.label), 1)
|
|
394
|
+
])),
|
|
395
|
+
d.value && !e.slim ? (s(), l("div", G1, [
|
|
396
|
+
(s(), p(k(M.value ? $(be) : $(ce)), { class: "w-[16px] h-[16px]" }))
|
|
397
|
+
])) : o("", !0)
|
|
398
|
+
])
|
|
399
|
+
], 2)), [
|
|
400
|
+
[z, e.slim && !d.value ? e.label : "", "right"]
|
|
401
|
+
]) : o("", !0),
|
|
402
|
+
M.value && d.value && !e.slim ? (s(), l("div", I1, [
|
|
403
|
+
(s(!0), l(G, null, Z(i.subItems, (m) => {
|
|
404
|
+
var H, A;
|
|
405
|
+
return s(), l("div", {
|
|
406
|
+
key: m.label
|
|
304
407
|
}, [
|
|
305
|
-
|
|
408
|
+
m.href ? (s(), l("a", {
|
|
306
409
|
key: 0,
|
|
307
|
-
href:
|
|
410
|
+
href: m.href,
|
|
308
411
|
class: "flex items-center rounded-xl p-2 text-sm font-medium hover:bg-primary-10-hover hover:text-primary-base transition-all text-[#525B66]"
|
|
309
412
|
}, [
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
}, [
|
|
316
|
-
(t(), w(_(i.icon), { class: "w-[15px] h-[15px] mx-auto" }))
|
|
317
|
-
], 2)) : a("", !0)
|
|
413
|
+
t("div", q1, [
|
|
414
|
+
t("span", U1, r(m.label), 1),
|
|
415
|
+
m.icon ? (s(), l("div", Z1, [
|
|
416
|
+
(s(), p(k(m.icon), { class: "w-[15px] h-[15px] mx-auto" }))
|
|
417
|
+
])) : o("", !0)
|
|
318
418
|
])
|
|
319
|
-
], 8,
|
|
419
|
+
], 8, R1)) : _(m) ? (s(), p(C, {
|
|
320
420
|
key: 1,
|
|
321
|
-
to:
|
|
322
|
-
onClick:
|
|
323
|
-
class:
|
|
324
|
-
"
|
|
325
|
-
"h-[44px] w-full": !o.slim,
|
|
326
|
-
"bg-primary-10 !text-primary-base": V(o.$route, i)
|
|
421
|
+
to: _(m),
|
|
422
|
+
onClick: a[0] || (a[0] = ae((R) => O(R, !0), ["prevent"])),
|
|
423
|
+
class: y(["flex items-center rounded-xl p-2 text-sm font-medium hover:bg-primary-10-hover hover:text-primary-base transition-all text-[#525B66] h-[44px] w-full", {
|
|
424
|
+
"bg-primary-10 !text-primary-base": W(e.$route, m)
|
|
327
425
|
}]),
|
|
328
|
-
"active-class": (
|
|
426
|
+
"active-class": (H = e.$route) != null && H.meta && ((A = e.$route.meta) != null && A.menuGroup) && e.$route.meta.menuGroup ? "" : "bg-primary-10 !text-primary-base"
|
|
329
427
|
}, {
|
|
330
|
-
default:
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
(
|
|
334
|
-
])) :
|
|
428
|
+
default: U(() => [
|
|
429
|
+
t("span", D1, r(m.label), 1),
|
|
430
|
+
m.icon ? (s(), l("div", J1, [
|
|
431
|
+
(s(), p(k(m.icon), { class: "w-[20px] h-[20px] mx-auto" }))
|
|
432
|
+
])) : o("", !0)
|
|
335
433
|
]),
|
|
336
434
|
_: 2
|
|
337
|
-
}, 1032, ["to", "active-class", "class"])) :
|
|
338
|
-
]
|
|
435
|
+
}, 1032, ["to", "active-class", "class"])) : o("", !0)
|
|
436
|
+
]);
|
|
339
437
|
}), 128))
|
|
340
|
-
],
|
|
341
|
-
],
|
|
438
|
+
])) : o("", !0)
|
|
439
|
+
], 64))
|
|
342
440
|
], 64);
|
|
343
441
|
};
|
|
344
442
|
}
|
|
345
|
-
}),
|
|
443
|
+
}), Q1 = {}, X1 = {
|
|
346
444
|
xmlns: "http://www.w3.org/2000/svg",
|
|
347
445
|
width: "24",
|
|
348
446
|
height: "24",
|
|
349
447
|
viewBox: "0 0 24 24",
|
|
350
448
|
fill: "none"
|
|
351
449
|
};
|
|
352
|
-
function
|
|
353
|
-
return
|
|
354
|
-
|
|
450
|
+
function Y1(g, x) {
|
|
451
|
+
return s(), l("svg", X1, [...x[0] || (x[0] = [
|
|
452
|
+
t("path", {
|
|
355
453
|
d: "M9.27987 15.963H7.76282V9.97577C7.76282 9.67316 7.575 9.40658 7.29326 9.29851L6.7948 9.11839V8.57802V8.03766H8.10957C8.60081 8.03766 8.91867 8.12412 9.05592 8.30424C9.20763 8.48436 9.27987 8.8374 9.27987 9.36335V15.963Z",
|
|
356
454
|
fill: "currentColor"
|
|
357
455
|
}, null, -1),
|
|
358
|
-
|
|
456
|
+
t("path", {
|
|
359
457
|
d: "M15.7294 11.3876C16.2011 11.2795 16.7453 10.9769 16.7816 10.0547C16.7816 9.36299 16.5276 8.90188 16.1285 8.57766C15.6569 8.14537 14.9675 8.03729 14.3797 8.03729H11.4626V13.9309C11.4626 14.6802 11.6441 15.2061 12.0141 15.5087C12.3842 15.8113 13.0155 15.9626 13.8935 15.9626H14.9675C15.6859 15.9626 16.2374 15.7681 16.6365 15.3718C17.0428 14.9756 17.2388 14.4136 17.2388 13.6787C17.2388 12.7925 16.9993 11.6758 15.7294 11.3876ZM13.0228 9.42783L14.2564 9.39181C14.8296 9.39181 15.1199 9.68 15.1199 10.2492C15.1199 10.8184 14.8296 11.1066 14.2564 11.1066L13.0228 11.1426V9.42783ZM14.8079 14.5865H14.0024C13.6541 14.5865 13.4001 14.5289 13.2405 14.4064C13.0881 14.2911 13.0155 14.075 13.0155 13.7724V12.5259H14.8079C15.1344 12.5259 15.3666 12.6196 15.49 12.8069C15.6133 12.987 15.6786 13.2536 15.6786 13.6067C15.6859 14.2551 15.3956 14.5865 14.8079 14.5865Z",
|
|
360
458
|
fill: "currentColor"
|
|
361
459
|
}, null, -1),
|
|
362
|
-
|
|
460
|
+
t("path", {
|
|
363
461
|
"fill-rule": "evenodd",
|
|
364
462
|
"clip-rule": "evenodd",
|
|
365
463
|
d: "M13.6437 3H10.4761C10.462 3.00738 10.4468 3.00752 10.4317 3.00766L10.4237 3.00778L10.2163 3.01067L10.1771 3.01124C10.1389 3.01181 10.1006 3.01238 10.0624 3.01238C9.85585 3.01276 9.64939 3.01797 9.44293 3.02318C9.34618 3.02562 9.24943 3.02806 9.15267 3.03C9.04934 3.03209 8.94604 3.03642 8.84277 3.04075L8.7649 3.04397C8.68023 3.04733 8.59559 3.05152 8.51098 3.05656C8.48805 3.05791 8.46519 3.06072 8.44234 3.06353L8.41144 3.0672L8.41136 3.06733L8.41135 3.06733C8.36472 3.06357 8.31825 3.06706 8.27185 3.07055L8.2508 3.07211C8.17968 3.07719 8.10867 3.08303 8.03766 3.08888L7.99014 3.09278L7.93408 3.09722C7.88146 3.10132 7.82884 3.10543 7.77638 3.111C7.67642 3.12147 7.57658 3.13307 7.47685 3.14581L7.46711 3.14705C7.35956 3.16078 7.25195 3.17451 7.14491 3.19162C6.9685 3.21996 6.79301 3.25364 6.61912 3.29514C6.39508 3.34863 6.17474 3.41407 5.95992 3.49743C5.64582 3.6192 5.35134 3.77699 5.08051 3.97818C4.85418 4.14605 4.6417 4.33183 4.44509 4.5337C4.2703 4.71309 4.10878 4.90496 3.96183 5.1078C3.77344 5.36816 3.62514 5.65018 3.50915 5.94958C3.36896 6.31155 3.2788 6.68668 3.21499 7.06866C3.19851 7.1678 3.18411 7.26735 3.17082 7.36697C3.15756 7.46541 3.14628 7.56409 3.135 7.66276L3.13307 7.67973C3.12541 7.74641 3.11884 7.81305 3.11245 7.87981L3.11091 7.89541C3.10743 7.9302 3.10394 7.96508 3.10714 8.00012L3.10716 8.0001C3.09909 8.01985 3.09789 8.04067 3.0967 8.06145L3.09602 8.07249L3.07085 8.44649L3.07007 8.45985C3.06822 8.50323 3.06651 8.54661 3.0648 8.58999C3.06098 8.68709 3.05716 8.78418 3.05165 8.88117C3.04485 9.00132 3.04236 9.12161 3.03987 9.24188C3.03793 9.33581 3.03599 9.42973 3.03199 9.52356C3.02946 9.58278 3.02895 9.64209 3.02844 9.7014L3.02804 9.74445L3.02618 9.9482C3.02519 10.0655 3.02421 10.1828 3.02245 10.3001C3.02144 10.367 3.01875 10.4338 3.01605 10.5007L3.01316 10.5745L3.01312 10.5756C3.01256 10.5885 3.01199 10.6018 3 10.6107V13.3892C3.00108 13.3909 3.00237 13.3925 3.00365 13.3942L3.00366 13.3942C3.00655 13.3979 3.00944 13.4016 3.01007 13.4057C3.01249 13.4212 3.01389 13.4369 3.01427 13.4526L3.01611 13.5092L3.01611 13.5092C3.01871 13.5887 3.0213 13.6681 3.02293 13.7476C3.02474 13.8348 3.02545 13.922 3.02545 14.0092C3.0256 14.2458 3.03197 14.4823 3.03835 14.7188L3.03835 14.7188C3.04022 14.7885 3.0421 14.8582 3.04382 14.9279C3.04659 15.0408 3.05225 15.1535 3.05791 15.2663L3.06335 15.3769C3.06897 15.4952 3.07473 15.6135 3.08203 15.7318C3.08634 15.8018 3.09212 15.8717 3.0979 15.9417L3.0979 15.9417L3.10262 15.9992L3.10453 16.0229C3.10928 16.0819 3.11403 16.1408 3.12009 16.1996C3.13141 16.3108 3.14359 16.4219 3.15661 16.5328C3.16284 16.5864 3.1703 16.6399 3.17776 16.6933L3.185 16.7455C3.20654 16.9028 3.23441 17.0589 3.26627 17.2144C3.30583 17.4093 3.35558 17.602 3.4153 17.7917C3.50677 18.0804 3.62514 18.3571 3.77815 18.6188C3.87433 18.7833 3.98454 18.9379 4.10322 19.0866C4.38114 19.4348 4.70212 19.7464 5.05849 20.0138C5.34835 20.2318 5.66471 20.4005 6.00352 20.5279C6.22982 20.6131 6.46181 20.6788 6.69755 20.7318C6.88514 20.774 7.07435 20.8079 7.2645 20.8355C7.38593 20.8534 7.50793 20.8672 7.62989 20.881L7.6304 20.8811C7.7437 20.8937 7.8571 20.9052 7.97062 20.9156C8.03986 20.9219 8.10927 20.9264 8.17868 20.931L8.21137 20.9332C8.28755 20.9383 8.36371 20.943 8.43985 20.9478L8.54613 20.9545L8.556 20.9552C8.56163 20.9556 8.56727 20.956 8.57291 20.9562L8.71929 20.9621C8.81347 20.9658 8.90765 20.9695 9.0018 20.9736C9.21881 20.9828 9.43595 20.9864 9.65309 20.99L9.74613 20.9915L9.75798 20.9914C9.77405 20.9912 9.79026 20.9909 9.80497 21H14.0598C14.1664 20.9939 14.273 20.9919 14.3797 20.9899C14.4179 20.9892 14.4561 20.9885 14.4943 20.9876C14.7149 20.9825 14.9354 20.9772 15.156 20.9696C15.2421 20.9667 15.3282 20.9618 15.4143 20.9569C15.4551 20.9546 15.4958 20.9523 15.5366 20.9502L15.5761 20.9484C15.5941 20.9477 15.6121 20.947 15.6301 20.9459C15.6439 20.945 15.6578 20.9436 15.6716 20.9421L15.6898 20.9403L15.6899 20.9402C15.701 20.9399 15.7121 20.94 15.7231 20.9392L15.7557 20.9369C15.8318 20.9315 15.9079 20.9261 15.984 20.9202C15.9957 20.9194 16.0074 20.9185 16.0192 20.9176C16.081 20.913 16.1429 20.9083 16.2046 20.9021C16.272 20.8953 16.3393 20.8876 16.4066 20.8799C16.4414 20.8759 16.4763 20.8719 16.5111 20.868C16.6378 20.8539 16.7638 20.8353 16.8896 20.8154C17.0775 20.7859 17.2638 20.7493 17.4484 20.7044C17.6789 20.6482 17.905 20.5785 18.125 20.4897C18.4165 20.3719 18.6905 20.2225 18.9436 20.0355C19.3225 19.7539 19.6587 19.4279 19.952 19.0575C20.1845 18.7646 20.3725 18.4391 20.51 18.0914C20.609 17.8414 20.6842 17.5843 20.7426 17.3223C20.8039 17.0471 20.849 16.7692 20.8805 16.4891C20.8828 16.4688 20.8852 16.4484 20.8876 16.4281C20.8909 16.3996 20.8943 16.3711 20.8974 16.3426C20.9041 16.2803 20.9108 16.2181 20.9166 16.1558C20.9179 16.143 20.9176 16.13 20.9174 16.1171C20.9174 16.1122 20.9173 16.1073 20.9173 16.1025L20.9175 16.1023L20.9216 16.0734C20.9247 16.0521 20.9277 16.0308 20.9298 16.0094C20.9345 15.9583 20.9385 15.907 20.9419 15.8557C20.9481 15.7576 20.9542 15.6594 20.9595 15.5612C20.967 15.4207 20.974 15.2801 20.9806 15.1394C20.9829 15.0903 20.9838 15.0412 20.9846 14.992C20.9853 14.9473 20.9858 14.9026 20.9863 14.8579V14.8579C20.987 14.7953 20.9877 14.7328 20.9889 14.6702C20.9899 14.6211 20.9917 14.5721 20.9973 14.5231C21.0007 14.494 21.0001 14.4644 20.9995 14.4348C20.9993 14.4218 20.999 14.4088 20.9991 14.3959V9.63092L20.9991 9.60404L20.9991 9.55038L20.9991 9.53972C20.9989 9.51204 20.9988 9.48446 20.9941 9.45682C20.9908 9.4383 20.9906 9.4192 20.9904 9.40022V9.40019L20.9903 9.38995L20.9882 9.25341C20.9872 9.18265 20.9862 9.11189 20.9847 9.04114C20.9836 8.98836 20.9816 8.93561 20.9795 8.88285L20.9772 8.81995C20.9766 8.80494 20.9759 8.78993 20.9752 8.77493L20.9748 8.76634L20.9691 8.64082C20.9651 8.55088 20.9611 8.46094 20.956 8.37104C20.9522 8.30451 20.947 8.23805 20.9417 8.1716L20.9359 8.09682L20.9321 8.04666C20.9275 7.98535 20.9229 7.92405 20.9175 7.86274C20.9125 7.80634 20.9064 7.74993 20.9004 7.69354L20.9003 7.69313L20.897 7.66264C20.8931 7.62609 20.8889 7.58959 20.8846 7.5531L20.8845 7.55231L20.8803 7.51608C20.8416 7.18046 20.7858 6.84789 20.7029 6.52018C20.6311 6.23571 20.5375 5.95879 20.4129 5.6927C20.2939 5.43833 20.1468 5.20173 19.9745 4.98024C19.6752 4.5943 19.3289 4.25662 18.9357 3.9672C18.6895 3.78603 18.4233 3.64067 18.1406 3.52522C17.9042 3.42869 17.6608 3.35464 17.4126 3.29549C17.2386 3.25401 17.0631 3.22009 16.8865 3.192C16.7762 3.17443 16.6652 3.16021 16.5545 3.14604C16.4547 3.1333 16.3548 3.12195 16.2548 3.1114C16.1994 3.10556 16.1439 3.10111 16.0884 3.09667L16.0476 3.09338C15.9873 3.08847 15.9269 3.08378 15.8666 3.07909L15.8665 3.07909L15.7802 3.07236L15.7725 3.07169L15.7601 3.0707L15.6649 3.06539L15.6649 3.06539C15.5895 3.06113 15.5141 3.05688 15.4386 3.05333C15.316 3.0476 15.1933 3.04242 15.0707 3.03725L14.9361 3.03154C14.9137 3.03058 14.8914 3.02983 14.869 3.02942C14.7553 3.02747 14.6416 3.02471 14.5279 3.02195C14.3309 3.01717 14.1339 3.0124 13.9368 3.0118C13.8728 3.01162 13.8088 3.0106 13.7448 3.00958L13.6819 3.00861L13.677 3.00858C13.6653 3.00857 13.6535 3.00855 13.6437 3ZM19.1763 17.0579L19.1766 17.0517C19.1767 17.0471 19.1768 17.0425 19.1779 17.0381C19.2275 16.836 19.2624 16.631 19.291 16.4251C19.3098 16.2901 19.3268 16.1547 19.3375 16.0187C19.3417 15.9654 19.3464 15.9121 19.3511 15.8589C19.3586 15.774 19.3661 15.6892 19.3716 15.6042C19.3828 15.4301 19.391 15.2558 19.3987 15.0816C19.4046 14.9497 19.4094 14.8178 19.4117 14.6859L19.4153 14.4842C19.4205 14.2026 19.4257 13.9209 19.4268 13.6392C19.4297 12.9436 19.4306 12.248 19.4295 11.5523L19.4295 11.2777C19.4295 10.7542 19.4295 10.2306 19.4186 9.70709C19.4124 9.40296 19.4061 9.09888 19.3918 8.79501C19.3844 8.63644 19.3757 8.47787 19.3647 8.31947C19.3541 8.1655 19.3406 8.01182 19.3242 7.85844C19.3125 7.74723 19.2991 7.63627 19.284 7.52554C19.2621 7.36599 19.2346 7.20747 19.1999 7.05026C19.1657 6.89516 19.1232 6.74238 19.0697 6.59267C18.9916 6.37321 18.8802 6.16704 18.7395 5.98137C18.5884 5.78135 18.4163 5.59801 18.2263 5.43445C18.1883 5.40179 18.1494 5.37029 18.1105 5.33881L18.1104 5.33876L18.0812 5.3151C17.8793 5.15117 17.6528 5.03224 17.408 4.94664C17.207 4.87636 17.0007 4.82673 16.7919 4.78696C16.581 4.74669 16.3684 4.71721 16.155 4.69446C16.004 4.67833 15.8523 4.66544 15.7006 4.65444C15.5492 4.64344 15.3974 4.63568 15.2457 4.62792L15.2385 4.62756C15.1291 4.62194 15.0196 4.61762 14.91 4.61462L14.8134 4.61183C14.6511 4.60712 14.4888 4.6024 14.3265 4.60068C13.8657 4.59577 13.405 4.59101 12.9443 4.59016C12.2464 4.58885 11.5486 4.58938 10.8507 4.59177C10.5996 4.5923 10.3486 4.59439 10.0974 4.59647L10.0974 4.59647L9.8577 4.59841L9.82872 4.59862H9.82872C9.7489 4.59919 9.66907 4.59976 9.58934 4.60282C9.49703 4.60635 9.40468 4.60825 9.31233 4.61016L9.31231 4.61016L9.3123 4.61016C9.18105 4.61286 9.0498 4.61557 8.91869 4.62295C8.83304 4.62782 8.7474 4.63152 8.66175 4.63522C8.61777 4.63712 8.5738 4.63902 8.52981 4.64107C8.52362 4.64135 8.51744 4.64185 8.51126 4.64235L8.51126 4.64235L8.51126 4.64235L8.50306 4.64299L8.41244 4.64946C8.34449 4.65429 8.27653 4.65912 8.20857 4.66428L8.18781 4.66585C8.12337 4.67072 8.05892 4.67559 7.99463 4.68218C7.89227 4.69268 7.79008 4.70422 7.68806 4.71679C7.62913 4.72411 7.57031 4.73243 7.5115 4.74075L7.51148 4.74075L7.51141 4.74076C7.47952 4.74527 7.44763 4.74978 7.41572 4.75414C7.40685 4.75493 7.39794 4.75526 7.38904 4.75512L7.38907 4.75503L7.31739 4.76857L7.31738 4.76857C7.26453 4.7785 7.21167 4.78842 7.15898 4.79909C6.93749 4.84394 6.71967 4.90123 6.5096 4.98613C6.34776 5.05123 6.19426 5.1354 6.05234 5.23684C5.78124 5.43085 5.54562 5.66141 5.33918 5.92242C5.28924 5.98552 5.24069 6.04965 5.19677 6.11724C5.09636 6.27173 5.01967 6.43755 4.95864 6.61102C4.91632 6.73123 4.88184 6.85368 4.85186 6.97747C4.84793 6.99374 4.8434 7.00985 4.83887 7.02596L4.83887 7.02597L4.83261 7.04844L4.83272 7.0484L4.8298 7.06701C4.82771 7.08069 4.82563 7.09438 4.82265 7.10788C4.76979 7.35293 4.73521 7.60091 4.70752 7.84979C4.69096 7.99864 4.67853 8.148 4.66745 8.29738C4.65639 8.44663 4.64854 8.59619 4.64069 8.74569L4.64069 8.74569L4.64069 8.7457L4.64067 8.74609C4.63503 8.85329 4.63069 8.96055 4.62763 9.06786L4.62559 9.13807C4.62045 9.31366 4.61532 9.48925 4.61283 9.66486C4.608 10.0048 4.60357 10.3448 4.60262 10.6847C4.59962 11.7494 4.5969 12.8141 4.60737 13.8788C4.61072 14.2165 4.61777 14.5542 4.62607 14.8918C4.62673 14.9186 4.62753 14.9455 4.62877 14.9724L4.63381 15.0811C4.63926 15.199 4.64472 15.3169 4.65074 15.4347C4.65577 15.5308 4.66081 15.6268 4.66836 15.7227C4.67515 15.8081 4.68316 15.8934 4.69117 15.9787L4.70214 16.0968C4.71248 16.2104 4.7265 16.3235 4.74143 16.4366C4.7631 16.6007 4.79033 16.7638 4.82487 16.9256C4.85985 17.0897 4.90314 17.2516 4.95983 17.4096C5.02424 17.5893 5.10596 17.7603 5.21434 17.9181C5.29414 18.0342 5.38123 18.1452 5.47508 18.2503C5.64558 18.4412 5.83564 18.6105 6.0414 18.7625C6.1548 18.8463 6.27647 18.9182 6.4045 18.9772C6.5449 19.0421 6.69048 19.0925 6.83926 19.1339C7.11993 19.2121 7.40659 19.2588 7.69529 19.294C7.79514 19.3061 7.89529 19.3159 7.99546 19.3252L8.03116 19.3284L8.03143 19.3285L8.03148 19.3285C8.15306 19.3397 8.27467 19.3509 8.39647 19.359C8.56158 19.3699 8.72687 19.378 8.89219 19.3856C9.02176 19.3916 9.15144 19.3965 9.28109 19.399L9.45946 19.4025H9.4595H9.45953C9.71982 19.4078 9.98011 19.4131 10.2404 19.4145C11.3901 19.4206 12.5397 19.4191 13.6893 19.4158C13.9179 19.4151 14.1465 19.4106 14.375 19.4061C14.4976 19.4037 14.6201 19.4013 14.7426 19.3995C14.7627 19.3992 14.7829 19.3984 14.803 19.3976L14.9426 19.392C15.0681 19.387 15.1937 19.382 15.3192 19.3763C15.4286 19.3713 15.538 19.365 15.6474 19.3587C15.701 19.3556 15.7545 19.3513 15.808 19.3469C15.8726 19.3417 15.9372 19.3362 16.0018 19.33C16.0685 19.3236 16.1352 19.3168 16.2019 19.309C16.2973 19.2978 16.3927 19.2861 16.488 19.2738C16.5343 19.2678 16.5805 19.2613 16.6267 19.2547L16.687 19.2462C16.6871 19.2462 16.6871 19.2461 16.6871 19.246C16.7106 19.2413 16.7341 19.2367 16.7576 19.232C16.8085 19.2219 16.8595 19.2118 16.9104 19.2011C17.1251 19.1562 17.336 19.0987 17.5392 19.0149C17.6923 18.9519 17.8378 18.8717 17.9727 18.7758C18.2687 18.5653 18.5214 18.311 18.7414 18.0229C18.8499 17.8805 18.9401 17.725 19.01 17.5602C19.0583 17.4469 19.0978 17.3307 19.132 17.2125C19.138 17.1917 19.1435 17.1708 19.149 17.1498C19.1531 17.134 19.1572 17.1182 19.1616 17.1025C19.1644 17.0923 19.1679 17.0823 19.1713 17.0723C19.1729 17.0675 19.1746 17.0627 19.1762 17.058C19.1762 17.0579 19.1763 17.0579 19.1763 17.0579ZM3.12917 7.986L3.12916 7.98601L3.12903 7.98608C3.14334 7.97696 3.15765 7.96783 3.17163 7.95831C3.15771 7.96785 3.14344 7.97693 3.12917 7.986Z",
|
|
@@ -367,575 +465,961 @@ function Te(v, C) {
|
|
|
367
465
|
}, null, -1)
|
|
368
466
|
])]);
|
|
369
467
|
}
|
|
370
|
-
const
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
468
|
+
const fe = /* @__PURE__ */ we(Q1, [["render", Y1]]);
|
|
469
|
+
function es(g, x) {
|
|
470
|
+
return s(), l("svg", {
|
|
471
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
472
|
+
fill: "none",
|
|
473
|
+
viewBox: "0 0 24 24",
|
|
474
|
+
"stroke-width": "1.8",
|
|
475
|
+
stroke: "currentColor",
|
|
476
|
+
"aria-hidden": "true"
|
|
477
|
+
}, [
|
|
478
|
+
t("path", {
|
|
479
|
+
"stroke-linecap": "round",
|
|
480
|
+
"stroke-linejoin": "round",
|
|
481
|
+
d: "M7.83 1.08v21.6M1.08 3.78a2.697 2.697 0 012.7-2.7h16.2a2.697 2.697 0 012.7 2.7v16.2a2.697 2.697 0 01-2.7 2.7H3.78a2.697 2.697 0 01-2.7-2.7V3.78z"
|
|
482
|
+
}),
|
|
483
|
+
t("path", {
|
|
484
|
+
"stroke-linecap": "round",
|
|
485
|
+
"stroke-linejoin": "round",
|
|
486
|
+
d: "M15.48 9.48l-2.4 2.4 2.4 2.4"
|
|
487
|
+
})
|
|
488
|
+
]);
|
|
489
|
+
}
|
|
490
|
+
const Xe = (g) => {
|
|
491
|
+
if (Array.isArray(g))
|
|
492
|
+
return g.map($);
|
|
493
|
+
const x = $(g);
|
|
494
|
+
return Array.isArray(x) ? x : [x];
|
|
495
|
+
}, ss = (g, x) => {
|
|
496
|
+
let i;
|
|
497
|
+
const c = (_) => {
|
|
498
|
+
_.forEach((v) => {
|
|
499
|
+
const d = $(v);
|
|
500
|
+
if (d) {
|
|
501
|
+
if (!(d instanceof Element))
|
|
382
502
|
throw console.error("Vuestic: Trying to observe non-HTMLElement", {
|
|
383
|
-
target:
|
|
384
|
-
array:
|
|
503
|
+
target: d,
|
|
504
|
+
array: g
|
|
385
505
|
}), new Error("Vuestic: Unable to observe non-HTMLElement");
|
|
386
|
-
|
|
506
|
+
d && (i == null || i.observe(d));
|
|
387
507
|
}
|
|
388
508
|
});
|
|
389
509
|
};
|
|
390
|
-
return
|
|
391
|
-
|
|
392
|
-
}),
|
|
393
|
-
|
|
394
|
-
}),
|
|
395
|
-
},
|
|
396
|
-
const
|
|
397
|
-
return
|
|
398
|
-
var
|
|
399
|
-
|
|
400
|
-
}),
|
|
401
|
-
var
|
|
402
|
-
|
|
403
|
-
}),
|
|
404
|
-
},
|
|
510
|
+
return ie(g, (_) => {
|
|
511
|
+
i == null || i.disconnect(), c(Xe(_));
|
|
512
|
+
}), he(() => {
|
|
513
|
+
i = new ResizeObserver(x), c(Xe(g));
|
|
514
|
+
}), m1(() => i == null ? void 0 : i.disconnect()), i;
|
|
515
|
+
}, ts = (g) => {
|
|
516
|
+
const x = S(null);
|
|
517
|
+
return ss([g], () => {
|
|
518
|
+
var i;
|
|
519
|
+
x.value = ((i = g.value) == null ? void 0 : i.clientWidth) ?? null;
|
|
520
|
+
}), e1(() => {
|
|
521
|
+
var i;
|
|
522
|
+
x.value = ((i = g.value) == null ? void 0 : i.clientWidth) ?? null;
|
|
523
|
+
}), x;
|
|
524
|
+
}, ls = {
|
|
525
|
+
key: 0,
|
|
526
|
+
class: "flex items-center gap-2 min-w-0 pl-1"
|
|
527
|
+
}, ns = {
|
|
528
|
+
key: 0,
|
|
529
|
+
class: "w-10 h-10 flex items-center justify-center shrink-0"
|
|
530
|
+
}, os = { class: "min-w-0" }, as = { class: "text-base font-bold leading-5 text-black truncate" }, rs = {
|
|
531
|
+
key: 0,
|
|
532
|
+
class: "flex items-center gap-1 text-xs text-secondary-content"
|
|
533
|
+
}, is = { class: "truncate" }, ds = {
|
|
534
|
+
key: 1,
|
|
535
|
+
class: "mt-auto pb-2 flex justify-center shrink-0"
|
|
536
|
+
}, us = ["href"], ps = { class: "rounded-lg bg-[#FFF8E4] py-2 flex items-center space-x-1 px-2" }, cs = { class: "" }, hs = {
|
|
405
537
|
class: "",
|
|
406
538
|
style: { "font-size": "10px" }
|
|
407
|
-
},
|
|
539
|
+
}, ms = {
|
|
408
540
|
key: 1,
|
|
409
541
|
class: "flex justify-between border rounded-lg bg-[#F5F5F5] mb-1 w-full min-w-[19+0px] space-x-1 px-2"
|
|
410
|
-
},
|
|
542
|
+
}, fs = { class: "flex items-center text-[#525B66] space-x-3" }, vs = { style: { "font-size": "10px" } }, ws = { class: "relative -right-2" }, ys = ["href"], bs = { class: "flex flex-nowrap items-center w-max h-[24px]" }, Cs = { class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full text-[#525B66]" }, gs = { class: "py-[8px] pl-0 pr-[8px]" }, xs = ["href"], ks = { class: "flex flex-nowrap items-center w-max h-[24px]" }, $s = { class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full" }, _s = { class: "py-[8px] pl-0 pr-[8px]" }, Ls = {
|
|
411
543
|
key: 4,
|
|
412
544
|
class: "custom-select ml-1 w-full relative pt-2 pb-2"
|
|
413
|
-
},
|
|
545
|
+
}, Ss = { class: "pl-1" }, Bs = {
|
|
414
546
|
key: 0,
|
|
415
547
|
class: "dropdown w-[200px] z-50 text-[#525B66]"
|
|
416
|
-
},
|
|
417
|
-
key:
|
|
548
|
+
}, Ms = ["onClick"], js = {
|
|
549
|
+
key: 1,
|
|
418
550
|
class: "mt-0.5 h-0 border-t border-secondary-stroke mb-1"
|
|
419
|
-
},
|
|
551
|
+
}, Os = {
|
|
420
552
|
key: 0,
|
|
421
553
|
class: "tooltip-text"
|
|
422
|
-
},
|
|
554
|
+
}, zs = { key: 0 }, Ts = {
|
|
423
555
|
key: 1,
|
|
424
556
|
class: "absolute top-0 right-1.5 w-2 h-2 bg-blue-600 text-white rounded-full animate-ping z-0"
|
|
425
|
-
},
|
|
557
|
+
}, Vs = {
|
|
426
558
|
key: 2,
|
|
427
559
|
class: "absolute top-0 right-1.5 w-2 h-2 bg-blue-500 text-white rounded-full z-10"
|
|
428
|
-
},
|
|
560
|
+
}, Hs = ["href"], As = {
|
|
429
561
|
key: 0,
|
|
430
562
|
class: "tooltip-text"
|
|
431
|
-
},
|
|
563
|
+
}, Ps = { key: 0 }, Es = {
|
|
564
|
+
key: 2,
|
|
565
|
+
class: "text-[8px] text-[#979CA9] font-light leading-[12px] flex items-center gap-1 mt-2 px-2"
|
|
566
|
+
}, Fs = { key: 0 }, Ws = /* @__PURE__ */ ve({
|
|
432
567
|
__name: "OneSidebar",
|
|
433
|
-
props:
|
|
568
|
+
props: d1,
|
|
434
569
|
emits: [
|
|
435
570
|
"show-news",
|
|
436
571
|
"show-tariff",
|
|
572
|
+
"show-help",
|
|
437
573
|
"select-language",
|
|
438
574
|
"update-collapsed",
|
|
575
|
+
"toggle-menu",
|
|
439
576
|
"update:modelValue"
|
|
440
577
|
],
|
|
441
|
-
setup(
|
|
442
|
-
var
|
|
443
|
-
const
|
|
444
|
-
var
|
|
445
|
-
return ((
|
|
446
|
-
}),
|
|
447
|
-
|
|
448
|
-
},
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
}),
|
|
452
|
-
const
|
|
453
|
-
const
|
|
454
|
-
if (
|
|
455
|
-
if (!
|
|
456
|
-
|
|
578
|
+
setup(g, { emit: x }) {
|
|
579
|
+
var R, J, K;
|
|
580
|
+
const i = x, c = g, _ = B(() => {
|
|
581
|
+
var n;
|
|
582
|
+
return ((n = c.news) == null ? void 0 : n.unseenCount) || 0;
|
|
583
|
+
}), v = () => {
|
|
584
|
+
i("show-news");
|
|
585
|
+
}, d = S(!1), F = S(c.hoverable);
|
|
586
|
+
ie(c, () => {
|
|
587
|
+
c.modelValue ? F.value = !0 : F.value = !1;
|
|
588
|
+
}), c.modelValue && (F.value = !0);
|
|
589
|
+
const I = f1(), D = B(() => {
|
|
590
|
+
const n = [];
|
|
591
|
+
if (c.slim || n.push("fixed"), !W.value)
|
|
592
|
+
if (!c.isMobile)
|
|
593
|
+
n.push("w-[260px]");
|
|
457
594
|
else
|
|
458
|
-
return
|
|
459
|
-
return
|
|
460
|
-
}),
|
|
461
|
-
|
|
462
|
-
},
|
|
463
|
-
|
|
464
|
-
const
|
|
595
|
+
return n.push("w-full");
|
|
596
|
+
return n.join(" ");
|
|
597
|
+
}), q = B(() => ""), M = (n) => {
|
|
598
|
+
d.value = F.value && n;
|
|
599
|
+
}, W = B(() => F.value && !d.value), f = B(() => c.island ? c.modelValue !== !1 : !!W.value), O = S(), e = ts(O), a = B(() => c.modelValue === !0 || e.value === null ? !0 : e.value > 0), C = S(), z = () => W.value ? c.minimizedWidth : c.width;
|
|
600
|
+
e1(() => {
|
|
601
|
+
const n = z();
|
|
465
602
|
setTimeout(() => {
|
|
466
|
-
|
|
603
|
+
C.value = n;
|
|
467
604
|
});
|
|
468
605
|
});
|
|
469
|
-
const
|
|
470
|
-
(
|
|
471
|
-
var
|
|
472
|
-
return
|
|
606
|
+
const T = S(!1), V = S(
|
|
607
|
+
(R = c.app) != null && R.availableLang && ((J = c.app) == null ? void 0 : J.availableLang.length) > 0 ? (K = c.app) == null ? void 0 : K.availableLang.find((n) => {
|
|
608
|
+
var w;
|
|
609
|
+
return n.id == ((w = c.app) == null ? void 0 : w.lang);
|
|
473
610
|
}) : null
|
|
474
|
-
),
|
|
475
|
-
|
|
476
|
-
},
|
|
477
|
-
|
|
478
|
-
},
|
|
479
|
-
var
|
|
480
|
-
(
|
|
611
|
+
), m = () => {
|
|
612
|
+
T.value = !T.value;
|
|
613
|
+
}, H = (n) => {
|
|
614
|
+
V.value = n, T.value = !1, i("select-language", n);
|
|
615
|
+
}, A = () => {
|
|
616
|
+
var n, w;
|
|
617
|
+
(w = (n = c.app) == null ? void 0 : n.selectedPlan) != null && w.url && (window.location.href = c.app.selectedPlan.url);
|
|
481
618
|
};
|
|
482
|
-
return (
|
|
483
|
-
var
|
|
484
|
-
return
|
|
619
|
+
return (n, w) => {
|
|
620
|
+
var Q, X, Y, ee, se, te, h, P, u, N, le, de, j, pe, E, ne, ke, $e, _e, Le, Se, Be, Me, je, Oe, ze, Te, Ve, He, Ae, Pe, Ee, Fe, We, Ne, Ge, Ie, Re, qe, Ue, Ze, De, Je;
|
|
621
|
+
return s(), l("aside", {
|
|
485
622
|
ref_key: "rootElement",
|
|
486
|
-
ref:
|
|
487
|
-
class:
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
623
|
+
ref: I,
|
|
624
|
+
class: y(["oneb-sidebar cont flex flex-col", [
|
|
625
|
+
n.island ? "island-mode bg-white rounded-10 py-2 shrink-0 transition-all" : "pt-[56px] pb-1 sidebar z-40",
|
|
626
|
+
n.island ? f.value ? "self-stretch w-[60px]" : "self-stretch w-[260px]" : D.value,
|
|
627
|
+
n.island ? "" : f.value ? "sm:max-w-[260px] w-full sm:w-max" : "sm:w-[260px] w-full"
|
|
628
|
+
]]),
|
|
629
|
+
style: v1(q.value),
|
|
630
|
+
onMouseenter: w[3] || (w[3] = (b) => M(!0)),
|
|
631
|
+
onMouseleave: w[4] || (w[4] = (b) => M(!1))
|
|
491
632
|
}, [
|
|
492
|
-
|
|
493
|
-
|
|
633
|
+
n.island ? (s(), l("div", {
|
|
634
|
+
key: 0,
|
|
635
|
+
class: y(["px-2 flex items-center shrink-0", f.value ? "justify-center" : "justify-between"])
|
|
636
|
+
}, [
|
|
637
|
+
!f.value && ((Q = n.app) != null && Q.name) ? (s(), l("div", ls, [
|
|
638
|
+
(Y = (X = n.app) == null ? void 0 : X.selectedPlan) != null && Y.icon ? (s(), l("div", ns, [
|
|
639
|
+
(s(), p(k(n.app.selectedPlan.icon), { class: "w-7 h-7 text-warning-base" }))
|
|
640
|
+
])) : o("", !0),
|
|
641
|
+
t("div", os, [
|
|
642
|
+
t("p", as, r(n.app.name), 1),
|
|
643
|
+
(se = (ee = n.app) == null ? void 0 : ee.selectedPlan) != null && se.name ? (s(), l("div", rs, [
|
|
644
|
+
t("span", is, "Тариф " + r(n.app.selectedPlan.name), 1)
|
|
645
|
+
])) : o("", !0)
|
|
646
|
+
])
|
|
647
|
+
])) : o("", !0),
|
|
648
|
+
t("button", {
|
|
649
|
+
type: "button",
|
|
650
|
+
class: "w-11 h-11 rounded-10 flex items-center justify-center text-secondary-base hover:bg-secondary-body-active transition-colors shrink-0",
|
|
651
|
+
onClick: w[0] || (w[0] = (b) => i("toggle-menu"))
|
|
652
|
+
}, [
|
|
653
|
+
(s(), p(k(f.value ? $(i1) : $(es)), { class: "w-5 h-5" }))
|
|
654
|
+
])
|
|
655
|
+
], 2)) : o("", !0),
|
|
656
|
+
oe(t("div", {
|
|
657
|
+
class: y(["overflow-y-auto overflow-hidden lg:bg-transparent transition-all flex-grow", [
|
|
658
|
+
n.island ? f.value ? "flex flex-col items-center gap-1 px-0 mx-0 mt-2" : "px-2 mt-2" : "top-[56px] left-0 z-50 px-1 ml-1 mr-1 mt-2"
|
|
659
|
+
]]),
|
|
494
660
|
ref_key: "menu",
|
|
495
661
|
ref: O
|
|
496
662
|
}, [
|
|
497
|
-
(
|
|
498
|
-
key:
|
|
499
|
-
labelTop:
|
|
500
|
-
isMobile:
|
|
501
|
-
subItems:
|
|
502
|
-
open:
|
|
503
|
-
icon:
|
|
504
|
-
label:
|
|
505
|
-
route:
|
|
506
|
-
menuGroup:
|
|
507
|
-
href:
|
|
508
|
-
slim:
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
[
|
|
663
|
+
(s(!0), l(G, null, Z(n.items, (b) => (s(), p(K1, {
|
|
664
|
+
key: b.label,
|
|
665
|
+
labelTop: b.labelTop,
|
|
666
|
+
isMobile: n.isMobile,
|
|
667
|
+
subItems: b.subItems,
|
|
668
|
+
open: b.open,
|
|
669
|
+
icon: b.icon,
|
|
670
|
+
label: b.label,
|
|
671
|
+
route: b.route,
|
|
672
|
+
menuGroup: b == null ? void 0 : b.menuGroup,
|
|
673
|
+
href: b.href,
|
|
674
|
+
slim: f.value,
|
|
675
|
+
island: n.island,
|
|
676
|
+
active: b.active === !0,
|
|
677
|
+
"route-name": b.routeName,
|
|
678
|
+
exact: b.exact || !1,
|
|
679
|
+
onUpdateCollapsed: w[1] || (w[1] = (ye) => i("update-collapsed"))
|
|
680
|
+
}, null, 8, ["labelTop", "isMobile", "subItems", "open", "icon", "label", "route", "menuGroup", "href", "slim", "island", "active", "route-name", "exact"]))), 128))
|
|
681
|
+
], 2), [
|
|
682
|
+
[me, a.value]
|
|
515
683
|
]),
|
|
516
|
-
|
|
517
|
-
|
|
684
|
+
n.island && f.value ? (s(), l("div", ds, [
|
|
685
|
+
t("button", {
|
|
686
|
+
type: "button",
|
|
687
|
+
class: "w-9 h-9 rounded-10 flex items-center justify-center hover:bg-secondary-body-active transition-colors",
|
|
688
|
+
onClick: w[2] || (w[2] = (b) => i("show-help"))
|
|
689
|
+
}, [
|
|
690
|
+
L(fe, { class: "w-6 h-6" })
|
|
691
|
+
])
|
|
692
|
+
])) : o("", !0),
|
|
693
|
+
oe(t("div", {
|
|
694
|
+
class: y(["mt-auto shrink rounded-2xl mx-2", [f.value ? "" : "px-2 bg-white pt-2.5 py-2"]])
|
|
518
695
|
}, [
|
|
519
|
-
|
|
520
|
-
|
|
696
|
+
n.island ? o("", !0) : (s(), l("div", {
|
|
697
|
+
key: 0,
|
|
698
|
+
class: y([f.value ? "hidden" : "w-full hidden md:flex-col md:flex"])
|
|
521
699
|
}, [
|
|
522
|
-
(
|
|
700
|
+
(te = n.app) != null && te.offerPlan ? (s(), l("a", {
|
|
523
701
|
key: 0,
|
|
524
|
-
href: (
|
|
702
|
+
href: (h = n.app) == null ? void 0 : h.offerPlan.url,
|
|
525
703
|
class: "w-full min-w-[190px] border-gradient rounded-lg p-[1px] bg-[#FFF8E4] mb-1 block",
|
|
526
704
|
target: "_blank",
|
|
527
705
|
rel: "noopener noreferrer"
|
|
528
706
|
}, [
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
(
|
|
707
|
+
t("div", ps, [
|
|
708
|
+
t("div", cs, [
|
|
709
|
+
(s(), p(k((P = n.app) == null ? void 0 : P.offerPlan.icon), { class: "w-[16px] h-[16px]" }))
|
|
532
710
|
]),
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
711
|
+
t("p", hs, [
|
|
712
|
+
t("strong", null, r((u = n.app) == null ? void 0 : u.offerPlan.title), 1),
|
|
713
|
+
ue(" «" + r((N = n.app) == null ? void 0 : N.offerPlan.name) + "» ", 1),
|
|
714
|
+
w[5] || (w[5] = t("br", null, null, -1)),
|
|
715
|
+
ue(r((le = n.app) == null ? void 0 : le.offerPlan.title1), 1)
|
|
538
716
|
])
|
|
539
717
|
])
|
|
540
|
-
], 8,
|
|
541
|
-
(
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
(
|
|
718
|
+
], 8, us)) : o("", !0),
|
|
719
|
+
(de = n.app) != null && de.selectedPlan && ((j = n.app) != null && j.selectedPlan.name) ? (s(), l("div", ms, [
|
|
720
|
+
t("div", fs, [
|
|
721
|
+
t("div", null, [
|
|
722
|
+
(s(), p(k((pe = n.app) == null ? void 0 : pe.selectedPlan.icon), { class: "w-[16px] h-[16px]" }))
|
|
545
723
|
]),
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
724
|
+
t("div", vs, [
|
|
725
|
+
t("p", null, r(((E = n.app) == null ? void 0 : E.selectedPlan.name) || ""), 1),
|
|
726
|
+
t("p", null, r(((ne = n.app) == null ? void 0 : ne.selectedPlan.title) || ""), 1)
|
|
549
727
|
])
|
|
550
728
|
]),
|
|
551
|
-
|
|
552
|
-
|
|
729
|
+
t("div", ws, [
|
|
730
|
+
L(xe, {
|
|
553
731
|
class: "text-[#525B66] hover:text-[#4089E0] !rounded-lg",
|
|
554
732
|
variant: "touch",
|
|
555
|
-
icon:
|
|
556
|
-
onClick:
|
|
733
|
+
icon: $(y1),
|
|
734
|
+
onClick: A
|
|
557
735
|
}, null, 8, ["icon"])
|
|
558
736
|
])
|
|
559
|
-
])) :
|
|
560
|
-
(
|
|
737
|
+
])) : o("", !0),
|
|
738
|
+
(ke = n.app) != null && ke.terms ? (s(), l("a", {
|
|
561
739
|
key: 2,
|
|
562
|
-
href: (
|
|
740
|
+
href: ($e = n.app) == null ? void 0 : $e.terms.url,
|
|
563
741
|
target: "_blank",
|
|
564
742
|
class: "ml-1 flex items-center rounded-lg text-xs hover:underline font-extralight"
|
|
565
743
|
}, [
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
744
|
+
t("div", bs, [
|
|
745
|
+
t("div", Cs, [
|
|
746
|
+
t("span", gs, r(((_e = n.app) == null ? void 0 : _e.terms.label) || "Terms"), 1)
|
|
569
747
|
])
|
|
570
748
|
])
|
|
571
|
-
], 8,
|
|
572
|
-
(
|
|
749
|
+
], 8, ys)) : o("", !0),
|
|
750
|
+
(Le = n.app) != null && Le.offer ? (s(), l("a", {
|
|
573
751
|
key: 3,
|
|
574
|
-
href: (
|
|
752
|
+
href: (Se = n.app) == null ? void 0 : Se.offer.url,
|
|
575
753
|
target: "_blank",
|
|
576
754
|
class: "ml-1 flex items-center rounded-lg text-xs hover:underline text-[#525B66] font-extralight"
|
|
577
755
|
}, [
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
756
|
+
t("div", ks, [
|
|
757
|
+
t("div", $s, [
|
|
758
|
+
t("span", _s, r(((Be = n.app) == null ? void 0 : Be.offer.label) || "Offert"), 1)
|
|
581
759
|
])
|
|
582
760
|
])
|
|
583
|
-
], 8,
|
|
584
|
-
(
|
|
585
|
-
|
|
761
|
+
], 8, xs)) : o("", !0),
|
|
762
|
+
(je = (Me = n.app) == null ? void 0 : Me.availableLang) != null && je.length ? (s(), l("div", Ls, [
|
|
763
|
+
t("div", {
|
|
586
764
|
class: "select-box flex gap-x-2 text-xs text-[#525B66] cursor-pointer",
|
|
587
|
-
onClick:
|
|
765
|
+
onClick: m
|
|
588
766
|
}, [
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
767
|
+
L($(w1), { class: "w-4" }),
|
|
768
|
+
ue(" " + r((Oe = V.value) == null ? void 0 : Oe.name) + " ", 1),
|
|
769
|
+
t("span", Ss, r(T.value ? "▲" : "▼"), 1)
|
|
592
770
|
]),
|
|
593
|
-
|
|
594
|
-
(
|
|
595
|
-
var
|
|
596
|
-
return
|
|
597
|
-
key:
|
|
598
|
-
class:
|
|
599
|
-
"hover:bg-slate-200 rounded-lg cursor-pointer":
|
|
600
|
-
"text-gray-300":
|
|
771
|
+
T.value ? (s(), l("div", Bs, [
|
|
772
|
+
(s(!0), l(G, null, Z((ze = n.app) == null ? void 0 : ze.availableLang, (b) => {
|
|
773
|
+
var ye, Ke;
|
|
774
|
+
return s(), l("div", {
|
|
775
|
+
key: b.id,
|
|
776
|
+
class: y(["px-2", {
|
|
777
|
+
"hover:bg-slate-200 rounded-lg cursor-pointer": b.id !== ((ye = V.value) == null ? void 0 : ye.id),
|
|
778
|
+
"text-gray-300": b.id === ((Ke = V.value) == null ? void 0 : Ke.id)
|
|
601
779
|
}]),
|
|
602
|
-
onClick: (
|
|
603
|
-
var
|
|
604
|
-
return
|
|
780
|
+
onClick: (bl) => {
|
|
781
|
+
var Qe;
|
|
782
|
+
return b.id !== ((Qe = V.value) == null ? void 0 : Qe.id) && H(b);
|
|
605
783
|
}
|
|
606
|
-
},
|
|
784
|
+
}, r(b.name), 11, Ms);
|
|
607
785
|
}), 128))
|
|
608
|
-
])) :
|
|
609
|
-
])) :
|
|
610
|
-
], 2),
|
|
611
|
-
!
|
|
612
|
-
|
|
613
|
-
class:
|
|
786
|
+
])) : o("", !0)
|
|
787
|
+
])) : o("", !0)
|
|
788
|
+
], 2)),
|
|
789
|
+
!f.value && ((Te = n.app) != null && Te.offer || (He = (Ve = n.app) == null ? void 0 : Ve.availableLang) != null && He.length || (Ae = n.app) != null && Ae.selectedPlan && ((Pe = n.app) != null && Pe.selectedPlan.name) || (Ee = n.app) != null && Ee.offerPlan) ? (s(), l("div", js)) : o("", !0),
|
|
790
|
+
t("div", {
|
|
791
|
+
class: y([f.value ? "grid" : n.island ? "flex items-center gap-2" : "flex space-x-2"])
|
|
614
792
|
}, [
|
|
615
|
-
|
|
793
|
+
n.news ? (s(), l("a", {
|
|
616
794
|
key: 0,
|
|
617
795
|
href: "#",
|
|
618
|
-
class:
|
|
619
|
-
onClick:
|
|
796
|
+
class: y(["text-[#525B66] flex items-center rounded-lg text-sm tooltip hover:bg-primary-10-hover hover:text-primary-base transition-all bg-gray-100 px-1", [f.value ? "w-[44px] h-[44px] text-center" : "h-[36x] pr-2"]]),
|
|
797
|
+
onClick: v
|
|
620
798
|
}, [
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
class:
|
|
799
|
+
n.news.menuLabel ? (s(), l("div", Os, r(n.news.menuLabel || "News"), 1)) : o("", !0),
|
|
800
|
+
t("div", {
|
|
801
|
+
class: y(["w-full", [f.value ? "" : "flex flex-nowrap items-center h-[36px]"]])
|
|
624
802
|
}, [
|
|
625
|
-
|
|
626
|
-
class:
|
|
803
|
+
t("div", {
|
|
804
|
+
class: y(["relative items-center", [f.value ? "" : "flex flex-row space-x-1"]])
|
|
627
805
|
}, [
|
|
628
|
-
|
|
629
|
-
(
|
|
806
|
+
t("div", null, [
|
|
807
|
+
(s(), p(k(fe), { class: "w-[24px] h-[24px] mx-auto" }))
|
|
630
808
|
]),
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
809
|
+
f.value ? o("", !0) : (s(), l("div", zs, r(n.news.menuLabel || "News"), 1)),
|
|
810
|
+
_.value > 0 ? (s(), l("span", Ts)) : o("", !0),
|
|
811
|
+
_.value > 0 ? (s(), l("span", Vs)) : o("", !0)
|
|
634
812
|
], 2)
|
|
635
813
|
], 2)
|
|
636
|
-
], 2)) :
|
|
637
|
-
(
|
|
814
|
+
], 2)) : o("", !0),
|
|
815
|
+
(Fe = n.app) != null && Fe.support ? (s(), l("a", {
|
|
638
816
|
key: 1,
|
|
639
|
-
href: (
|
|
640
|
-
class:
|
|
817
|
+
href: (Ne = (We = n.app) == null ? void 0 : We.support) == null ? void 0 : Ne.url,
|
|
818
|
+
class: y(["text-[#525B66] flex items-center rounded-lg text-sm tooltip hover:bg-primary-10-hover hover:text-primary-base transition-all", [f.value ? "w-[44px] h-[44px] text-center" : "h-[36x]"]])
|
|
641
819
|
}, [
|
|
642
|
-
(
|
|
643
|
-
|
|
644
|
-
class:
|
|
820
|
+
(Ie = (Ge = n.app) == null ? void 0 : Ge.support) != null && Ie.label ? (s(), l("div", As, r(((qe = (Re = n.app) == null ? void 0 : Re.support) == null ? void 0 : qe.label) || "Support"), 1)) : o("", !0),
|
|
821
|
+
t("div", {
|
|
822
|
+
class: y(["w-full", [f.value ? "" : "flex flex-nowrap items-center h-[36px]"]])
|
|
645
823
|
}, [
|
|
646
|
-
|
|
647
|
-
class:
|
|
824
|
+
t("div", {
|
|
825
|
+
class: y(["flex-shrink-0 relative", [f.value ? "mx-auto w-[36px] " : "flex space-x-2 px-1"]])
|
|
648
826
|
}, [
|
|
649
|
-
|
|
650
|
-
(
|
|
827
|
+
t("div", null, [
|
|
828
|
+
(s(), p(k($(b1)), { class: "w-[20px] h-[20px] mx-auto" }))
|
|
651
829
|
]),
|
|
652
|
-
|
|
830
|
+
f.value ? o("", !0) : (s(), l("div", Ps, r(((Ze = (Ue = n.app) == null ? void 0 : Ue.support) == null ? void 0 : Ze.label) || "Support"), 1))
|
|
653
831
|
], 2)
|
|
654
832
|
], 2)
|
|
655
|
-
], 10,
|
|
833
|
+
], 10, Hs)) : o("", !0)
|
|
656
834
|
], 2),
|
|
657
|
-
|
|
658
|
-
|
|
835
|
+
n.island && !f.value ? (s(), l("div", Es, [
|
|
836
|
+
w[6] || (w[6] = t("span", null, [
|
|
837
|
+
ue("Powered By "),
|
|
838
|
+
t("span", { class: "capitalize" }, "OneB")
|
|
839
|
+
], -1)),
|
|
840
|
+
(De = n.app) != null && De.version ? (s(), l("span", Fs, "V." + r(n.app.version), 1)) : o("", !0)
|
|
841
|
+
])) : o("", !0),
|
|
842
|
+
n.island ? o("", !0) : (s(), l("p", {
|
|
843
|
+
key: 3,
|
|
844
|
+
class: y([[f.value ? "hidden" : "w-full"], "text-[7px] pl-2 text-[#979CA9] flex justify-between font-extralight pt-1"])
|
|
659
845
|
}, [
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
846
|
+
w[7] || (w[7] = t("span", null, [
|
|
847
|
+
ue("Powered by "),
|
|
848
|
+
t("span", { class: "text-blue-700" }, "OneB")
|
|
663
849
|
], -1)),
|
|
664
|
-
|
|
665
|
-
], 2)
|
|
850
|
+
t("span", null, r((Je = n.app) == null ? void 0 : Je.version), 1)
|
|
851
|
+
], 2))
|
|
666
852
|
], 2), [
|
|
667
|
-
[
|
|
853
|
+
[me, a.value && (!n.island || !f.value)]
|
|
668
854
|
])
|
|
669
855
|
], 38);
|
|
670
856
|
};
|
|
671
857
|
}
|
|
672
858
|
});
|
|
673
|
-
const
|
|
859
|
+
const p1 = /* @__PURE__ */ we(Ws, [["__scopeId", "data-v-7b423093"]]), Ns = { class: "h-screen relative" }, Gs = {
|
|
674
860
|
class: "header h-[56px] flex items-center flex-nowrap fixed top-0 left-0 w-full z-50",
|
|
675
861
|
style: { background: "rgba(245, 247, 251, 0.8)", "backdrop-filter": "blur(5px)" }
|
|
676
|
-
},
|
|
862
|
+
}, Is = { class: "sm:p-2 pl-2 flex-shrink-0" }, Rs = { class: "w-8 h-8 sm:w-10 sm:h-10 flex items-center flex-shrink-0" }, qs = ["src"], Us = { class: "whitespace-nowrap font-semibold sm:text-xl truncate" }, Zs = { class: "text-xs whitespace-nowrap truncate" }, Ds = { class: "w-full pl-1" }, Js = { class: "w-full flex justify-end sm:pr-4" }, Ks = { class: "flex items-center sm:space-x-1" }, Qs = {
|
|
677
863
|
key: 0,
|
|
678
864
|
class: "module-border-wrap flex justify-center items-center h-6 w-max"
|
|
679
|
-
},
|
|
865
|
+
}, Xs = { class: "h-4 w-4" }, Ys = { class: "ml-2 hidden sm:flex" }, et = { class: "flex h-full" }, st = { key: 0 }, tt = {
|
|
680
866
|
key: 0,
|
|
681
867
|
class: "sm:w-[560px] w-full relative h-full"
|
|
682
|
-
},
|
|
868
|
+
}, lt = { class: "h-full relative" }, nt = { class: "flex items-center p-3 space-x-1.5" }, ot = {
|
|
683
869
|
class: "overflow-auto",
|
|
684
870
|
style: { height: "calc(100% - 62px)" }
|
|
685
|
-
},
|
|
871
|
+
}, at = {
|
|
686
872
|
key: 0,
|
|
687
873
|
class: "p-5"
|
|
688
|
-
},
|
|
874
|
+
}, rt = { key: 1 }, it = { class: "p-4 text-gray text-center" }, dt = { key: 2 }, ut = {
|
|
689
875
|
class: "p-3 space-y-1.5 rounded-lg",
|
|
690
876
|
style: { "box-shadow": "0 0 6px #eaeaea" }
|
|
691
|
-
},
|
|
877
|
+
}, pt = { key: 0 }, ct = {
|
|
692
878
|
key: 0,
|
|
693
879
|
class: "text-xs px-2 py-1 rounded-md bg-green-600 text-white"
|
|
694
|
-
},
|
|
880
|
+
}, ht = {
|
|
695
881
|
key: 1,
|
|
696
882
|
class: "text-xs px-2 py-1 rounded-md bg-yellow-600 text-white"
|
|
697
|
-
},
|
|
883
|
+
}, mt = {
|
|
698
884
|
key: 2,
|
|
699
885
|
class: "text-xs px-2 py-1 rounded-md bg-blue-600 text-white"
|
|
700
|
-
},
|
|
886
|
+
}, ft = {
|
|
701
887
|
key: 3,
|
|
702
888
|
class: "text-xs px-2 py-1 rounded-md bg-gray-600 text-white"
|
|
703
|
-
},
|
|
889
|
+
}, vt = { class: "text-lg font-medium" }, wt = { class: "text-sm text-gray-600" }, yt = { key: 0 }, bt = ["src"], Ct = { class: "text-sm" }, gt = { key: 1 }, xt = ["href"], kt = { class: "text-sm flex items-center justify-between mt-1" }, $t = { class: "text-gray-800" }, _t = ["href"], Lt = /* @__PURE__ */ ve({
|
|
704
890
|
__name: "OneMainLayout",
|
|
705
|
-
props:
|
|
891
|
+
props: u1,
|
|
706
892
|
emits: ["load-news", "load-tariff", "open-tariff"],
|
|
707
|
-
setup(
|
|
708
|
-
const
|
|
709
|
-
let
|
|
710
|
-
window.document.body.offsetWidth < 1024 && (window.localStorage.getItem("sidebar-slim") == null && window.localStorage.setItem("sidebar-slim", "1"),
|
|
711
|
-
const
|
|
712
|
-
|
|
713
|
-
window.localStorage.setItem("sidebar-slim", String(
|
|
893
|
+
setup(g, { emit: x }) {
|
|
894
|
+
const i = x, c = g;
|
|
895
|
+
let _ = window.localStorage.getItem("sidebar-slim");
|
|
896
|
+
window.document.body.offsetWidth < 1024 && (window.localStorage.getItem("sidebar-slim") == null && window.localStorage.setItem("sidebar-slim", "1"), _ = "1");
|
|
897
|
+
const v = S(_ === "1");
|
|
898
|
+
S(!0), ie(v, (e) => {
|
|
899
|
+
window.localStorage.setItem("sidebar-slim", String(e ? 1 : 0));
|
|
714
900
|
});
|
|
715
|
-
const
|
|
716
|
-
|
|
717
|
-
},
|
|
718
|
-
|
|
719
|
-
() =>
|
|
901
|
+
const d = S(!1), F = () => {
|
|
902
|
+
d.value = !d.value, d.value && i("load-news");
|
|
903
|
+
}, I = B(() => c.showHeadre);
|
|
904
|
+
ie(
|
|
905
|
+
() => c.showHeadre,
|
|
720
906
|
// Передаємо доступ до props
|
|
721
907
|
() => {
|
|
722
|
-
|
|
908
|
+
I.value = c.showHeadre;
|
|
723
909
|
}
|
|
724
910
|
);
|
|
725
|
-
const
|
|
726
|
-
|
|
727
|
-
},
|
|
728
|
-
|
|
729
|
-
window.addEventListener("resize",
|
|
730
|
-
}),
|
|
731
|
-
window.removeEventListener("resize",
|
|
911
|
+
const D = S(window.innerWidth), q = () => {
|
|
912
|
+
D.value = window.innerWidth;
|
|
913
|
+
}, M = B(() => D.value <= 768);
|
|
914
|
+
he(() => {
|
|
915
|
+
window.addEventListener("resize", q);
|
|
916
|
+
}), ge(() => {
|
|
917
|
+
window.removeEventListener("resize", q);
|
|
732
918
|
});
|
|
733
|
-
const
|
|
734
|
-
var
|
|
735
|
-
(
|
|
736
|
-
},
|
|
737
|
-
|
|
919
|
+
const W = (e) => {
|
|
920
|
+
var a;
|
|
921
|
+
(a = c.handlers) == null || a.onSetLang(e);
|
|
922
|
+
}, f = S(!1), O = () => {
|
|
923
|
+
f.value = window.matchMedia("(min-width: 769px)").matches;
|
|
738
924
|
};
|
|
739
|
-
return
|
|
925
|
+
return he(() => {
|
|
740
926
|
O(), window.addEventListener("resize", O);
|
|
741
|
-
}),
|
|
927
|
+
}), ge(() => {
|
|
742
928
|
window.removeEventListener("resize", O);
|
|
743
|
-
}), (
|
|
744
|
-
var
|
|
745
|
-
const
|
|
746
|
-
return
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
onClick:
|
|
929
|
+
}), (e, a) => {
|
|
930
|
+
var z, T, V, m, H, A, R, J, K, n, w, Q, X, Y, ee, se, te, h, P;
|
|
931
|
+
const C = Ye("RouterLink");
|
|
932
|
+
return s(), l("div", Ns, [
|
|
933
|
+
oe(t("div", Gs, [
|
|
934
|
+
t("div", Is, [
|
|
935
|
+
t("button", {
|
|
936
|
+
onClick: a[0] || (a[0] = (u) => v.value = !v.value),
|
|
751
937
|
class: "sm:w-[44px] sm:h-[44px] w-8 h-8 sm:p-[8px] flex items-center justify-center rounded hover:bg-secondary-10 hover:text-blue-600"
|
|
752
938
|
}, [
|
|
753
|
-
|
|
939
|
+
L($(i1), { class: "sm:w-[24px] sm:h-[24px] w-6 h-6" })
|
|
754
940
|
])
|
|
755
941
|
]),
|
|
756
|
-
|
|
757
|
-
|
|
942
|
+
t("div", Rs, [
|
|
943
|
+
e.logoSrc != null ? (s(), l("img", {
|
|
758
944
|
key: 0,
|
|
759
|
-
src:
|
|
945
|
+
src: e.logoSrc,
|
|
760
946
|
class: "w-8 h-8 mx-auto",
|
|
761
947
|
alt: "logo"
|
|
762
|
-
}, null, 8,
|
|
948
|
+
}, null, 8, qs)) : o("", !0)
|
|
763
949
|
]),
|
|
764
|
-
|
|
950
|
+
e.app != null ? (s(), p(C, {
|
|
765
951
|
key: 0,
|
|
766
952
|
to: "/",
|
|
767
953
|
class: "sm:pl-2 pl-1 truncate w-full"
|
|
768
954
|
}, {
|
|
769
|
-
default:
|
|
770
|
-
var
|
|
955
|
+
default: U(() => {
|
|
956
|
+
var u, N;
|
|
771
957
|
return [
|
|
772
|
-
|
|
773
|
-
|
|
958
|
+
t("div", Us, r(e.app.name), 1),
|
|
959
|
+
t("div", Zs, r((N = (u = e.app) == null ? void 0 : u.workspace) == null ? void 0 : N.name), 1)
|
|
774
960
|
];
|
|
775
961
|
}),
|
|
776
962
|
_: 1
|
|
777
|
-
})) :
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
963
|
+
})) : o("", !0),
|
|
964
|
+
re(e.$slots, "head-left", {}, void 0, !0),
|
|
965
|
+
t("div", Ds, [
|
|
966
|
+
t("div", Js, [
|
|
967
|
+
t("div", Ks, [
|
|
968
|
+
e.improveTariff && ((z = e.improveTariff) != null && z.label) && e.improveTariff.label ? (s(), l("div", Qs, [
|
|
969
|
+
t("button", {
|
|
784
970
|
type: "button",
|
|
785
971
|
class: "cursor-pointer flex items-center h-full bg-[#FFF8E4] hover:bg-[#f2e3b8] rounded-full px-2 py-1 font-medium",
|
|
786
|
-
onClick:
|
|
787
|
-
(...
|
|
788
|
-
var
|
|
789
|
-
return ((
|
|
972
|
+
onClick: a[1] || (a[1] = //@ts-ignore
|
|
973
|
+
(...u) => {
|
|
974
|
+
var N, le;
|
|
975
|
+
return ((N = e.handlers) == null ? void 0 : N.onImproveTariff) && ((le = e.handlers) == null ? void 0 : le.onImproveTariff(...u));
|
|
790
976
|
}),
|
|
791
977
|
style: { "font-size": "10px" }
|
|
792
978
|
}, [
|
|
793
|
-
|
|
794
|
-
(
|
|
979
|
+
t("div", Xs, [
|
|
980
|
+
(s(), p(k((T = e.improveTariff) == null ? void 0 : T.icon), { class: "h-4 w-4 mx-auto" }))
|
|
795
981
|
]),
|
|
796
|
-
|
|
982
|
+
t("span", Ys, r((V = e.improveTariff) == null ? void 0 : V.label), 1)
|
|
797
983
|
])
|
|
798
|
-
])) :
|
|
799
|
-
|
|
800
|
-
|
|
984
|
+
])) : o("", !0),
|
|
985
|
+
re(e.$slots, "head-right", {}, void 0, !0),
|
|
986
|
+
e.help ? (s(), p(t1, {
|
|
801
987
|
key: 1,
|
|
802
|
-
help:
|
|
803
|
-
}, null, 8, ["help"])) :
|
|
804
|
-
((
|
|
988
|
+
help: e.help
|
|
989
|
+
}, null, 8, ["help"])) : o("", !0),
|
|
990
|
+
((m = e.handlers) == null ? void 0 : m.onBrowse) != null ? (s(), p(l1, {
|
|
805
991
|
key: 2,
|
|
806
|
-
workspace: (
|
|
807
|
-
apps: ((
|
|
808
|
-
"change-label": ((
|
|
809
|
-
"apps-title": ((
|
|
810
|
-
"on-app": (
|
|
811
|
-
"on-change": (
|
|
812
|
-
onOpen: (
|
|
813
|
-
}, null, 8, ["workspace", "apps", "change-label", "apps-title", "on-app", "on-change", "onOpen"])) :
|
|
814
|
-
|
|
815
|
-
user:
|
|
816
|
-
menu:
|
|
817
|
-
app:
|
|
818
|
-
"account-label": ((
|
|
819
|
-
"logout-label": ((
|
|
820
|
-
"version-label": ((
|
|
821
|
-
"on-account": (
|
|
822
|
-
"on-logout": (
|
|
992
|
+
workspace: (H = e.app) == null ? void 0 : H.workspace,
|
|
993
|
+
apps: ((A = e.app) == null ? void 0 : A.apps) || [],
|
|
994
|
+
"change-label": ((R = e.labels) == null ? void 0 : R.change) || "Change",
|
|
995
|
+
"apps-title": ((J = e.labels) == null ? void 0 : J.apps) || "Apps",
|
|
996
|
+
"on-app": (K = e.handlers) == null ? void 0 : K.onApp,
|
|
997
|
+
"on-change": (n = e.handlers) == null ? void 0 : n.onChange,
|
|
998
|
+
onOpen: (w = e.handlers) == null ? void 0 : w.onBrowse
|
|
999
|
+
}, null, 8, ["workspace", "apps", "change-label", "apps-title", "on-app", "on-change", "onOpen"])) : o("", !0),
|
|
1000
|
+
L(n1, {
|
|
1001
|
+
user: e.user,
|
|
1002
|
+
menu: e.menu,
|
|
1003
|
+
app: e.app,
|
|
1004
|
+
"account-label": ((Q = e.labels) == null ? void 0 : Q.account) || "Account",
|
|
1005
|
+
"logout-label": ((X = e.labels) == null ? void 0 : X.logout) || "Logout",
|
|
1006
|
+
"version-label": ((Y = e.labels) == null ? void 0 : Y.version) || "",
|
|
1007
|
+
"on-account": (ee = e.handlers) == null ? void 0 : ee.onAccount,
|
|
1008
|
+
"on-logout": (se = e.handlers) == null ? void 0 : se.onLogout
|
|
823
1009
|
}, null, 8, ["user", "menu", "app", "account-label", "logout-label", "version-label", "on-account", "on-logout"])
|
|
824
1010
|
])
|
|
825
1011
|
])
|
|
826
1012
|
])
|
|
827
1013
|
], 512), [
|
|
828
|
-
[
|
|
1014
|
+
[me, I.value]
|
|
829
1015
|
]),
|
|
830
|
-
|
|
831
|
-
!
|
|
1016
|
+
t("div", et, [
|
|
1017
|
+
!M.value || !v.value ? (s(), p(p1, {
|
|
832
1018
|
key: 0,
|
|
833
|
-
app:
|
|
834
|
-
items:
|
|
835
|
-
"with-news":
|
|
836
|
-
news:
|
|
837
|
-
isMobile:
|
|
838
|
-
modelValue:
|
|
839
|
-
"onUpdate:modelValue":
|
|
840
|
-
onShowNews:
|
|
841
|
-
onSelectLanguage:
|
|
842
|
-
onUpdateCollapsed:
|
|
843
|
-
}, null, 8, ["app", "items", "with-news", "news", "isMobile", "modelValue"])) :
|
|
844
|
-
|
|
845
|
-
class:
|
|
846
|
-
|
|
847
|
-
|
|
1019
|
+
app: e.app,
|
|
1020
|
+
items: e.sidebarItems,
|
|
1021
|
+
"with-news": e.news != null,
|
|
1022
|
+
news: e.news,
|
|
1023
|
+
isMobile: M.value,
|
|
1024
|
+
modelValue: v.value,
|
|
1025
|
+
"onUpdate:modelValue": a[2] || (a[2] = (u) => v.value = u),
|
|
1026
|
+
onShowNews: F,
|
|
1027
|
+
onSelectLanguage: W,
|
|
1028
|
+
onUpdateCollapsed: a[3] || (a[3] = (u) => v.value = !v.value)
|
|
1029
|
+
}, null, 8, ["app", "items", "with-news", "news", "isMobile", "modelValue"])) : o("", !0),
|
|
1030
|
+
t("div", {
|
|
1031
|
+
class: y([[
|
|
1032
|
+
v.value ? "" : "lg:ml-[260px] hidden sm:block",
|
|
1033
|
+
f.value ? "ml-[60px]" : ""
|
|
848
1034
|
], "body scroll-body w-full overflow-y-auto"])
|
|
849
1035
|
}, [
|
|
850
|
-
|
|
851
|
-
class:
|
|
1036
|
+
t("div", {
|
|
1037
|
+
class: y(["content transition-all", { "pt-[56px]": I.value }])
|
|
852
1038
|
}, [
|
|
853
|
-
|
|
1039
|
+
re(e.$slots, "default", {}, void 0, !0)
|
|
854
1040
|
], 2)
|
|
855
1041
|
], 2)
|
|
856
1042
|
]),
|
|
857
|
-
|
|
858
|
-
|
|
1043
|
+
e.news ? (s(), l("div", st, [
|
|
1044
|
+
d.value ? (s(), l("div", {
|
|
1045
|
+
key: 0,
|
|
1046
|
+
class: "fixed top-0 left-0 h-dvh w-screen bg-gray-100 bg-opacity-40 z-50",
|
|
1047
|
+
onClick: a[4] || (a[4] = ae((u) => d.value = !1, ["self"]))
|
|
1048
|
+
})) : o("", !0),
|
|
1049
|
+
t("div", {
|
|
1050
|
+
class: y(["opacity-100 shadow-lg transition-all fixed top-0 left-0 h-dvh overflow-hidden z-50 bg-white", [d.value ? "sm:w-[560px] w-full" : "w-0"]])
|
|
1051
|
+
}, [
|
|
1052
|
+
d.value ? (s(), l("div", tt, [
|
|
1053
|
+
t("div", lt, [
|
|
1054
|
+
t("div", nt, [
|
|
1055
|
+
L(fe, { class: "w-10 h-10" }),
|
|
1056
|
+
a[6] || (a[6] = t("div", { class: "w-full font-medium" }, "OneB News", -1)),
|
|
1057
|
+
t("div", null, [
|
|
1058
|
+
L(xe, {
|
|
1059
|
+
variant: "touch",
|
|
1060
|
+
icon: $(o1),
|
|
1061
|
+
onClick: a[5] || (a[5] = (u) => d.value = !1)
|
|
1062
|
+
}, null, 8, ["icon"])
|
|
1063
|
+
])
|
|
1064
|
+
]),
|
|
1065
|
+
t("div", ot, [
|
|
1066
|
+
e.news.isLoading && ((te = e.news.items) == null ? void 0 : te.length) === 0 ? (s(), l("div", at, [
|
|
1067
|
+
L(a1, { class: "w-6 h-6 text-gray-600 mx-auto" })
|
|
1068
|
+
])) : ((h = e.news.items) == null ? void 0 : h.length) === 0 ? (s(), l("div", rt, [
|
|
1069
|
+
t("div", it, r(e.news.emptyText), 1)
|
|
1070
|
+
])) : ((P = e.news.items) == null ? void 0 : P.length) > 0 ? (s(), l("div", dt, [
|
|
1071
|
+
(s(!0), l(G, null, Z(e.news.items, (u) => (s(), l("div", {
|
|
1072
|
+
key: u.id,
|
|
1073
|
+
class: "p-3"
|
|
1074
|
+
}, [
|
|
1075
|
+
t("div", ut, [
|
|
1076
|
+
t("div", null, [
|
|
1077
|
+
u.type ? (s(), l("div", pt, [
|
|
1078
|
+
u.type === 10 ? (s(), l("span", ct, "update")) : u.type === 11 ? (s(), l("span", ht, "warning")) : u.type === 12 ? (s(), l("span", mt, "notice")) : u.type === 13 ? (s(), l("span", ft, "ads")) : o("", !0)
|
|
1079
|
+
])) : o("", !0),
|
|
1080
|
+
t("div", vt, r(u.title), 1),
|
|
1081
|
+
t("div", wt, r(u.summary), 1)
|
|
1082
|
+
]),
|
|
1083
|
+
u.image_url ? (s(), l("div", yt, [
|
|
1084
|
+
t("img", {
|
|
1085
|
+
src: u.image_url,
|
|
1086
|
+
alt: "",
|
|
1087
|
+
class: "w-full rounded-md"
|
|
1088
|
+
}, null, 8, bt)
|
|
1089
|
+
])) : o("", !0),
|
|
1090
|
+
t("div", Ct, [
|
|
1091
|
+
L(r1, {
|
|
1092
|
+
text: u.body
|
|
1093
|
+
}, null, 8, ["text"])
|
|
1094
|
+
]),
|
|
1095
|
+
u.video_url ? (s(), l("div", gt, [
|
|
1096
|
+
t("a", {
|
|
1097
|
+
href: u.video_url,
|
|
1098
|
+
target: "_blank",
|
|
1099
|
+
class: "text-blue-600 hover:text-blue-700 px-3 py-2 border rounded-md w-full block"
|
|
1100
|
+
}, r(e.news.openVideoText), 9, xt)
|
|
1101
|
+
])) : o("", !0),
|
|
1102
|
+
t("div", kt, [
|
|
1103
|
+
t("span", $t, r(u.published), 1),
|
|
1104
|
+
u.post_url ? (s(), l("a", {
|
|
1105
|
+
key: 0,
|
|
1106
|
+
href: u.post_url,
|
|
1107
|
+
target: "_blank",
|
|
1108
|
+
class: "text-blue-600 hover:text-blue-700 block"
|
|
1109
|
+
}, r(e.news.moreText), 9, _t)) : o("", !0)
|
|
1110
|
+
])
|
|
1111
|
+
])
|
|
1112
|
+
]))), 128))
|
|
1113
|
+
])) : o("", !0)
|
|
1114
|
+
])
|
|
1115
|
+
])
|
|
1116
|
+
])) : o("", !0)
|
|
1117
|
+
], 2)
|
|
1118
|
+
])) : o("", !0)
|
|
1119
|
+
]);
|
|
1120
|
+
};
|
|
1121
|
+
}
|
|
1122
|
+
});
|
|
1123
|
+
const Hl = /* @__PURE__ */ we(Lt, [["__scopeId", "data-v-f5bf3126"]]), St = { class: "bg-secondary-body-island min-h-screen p-3" }, Bt = { class: "flex gap-3 items-stretch" }, Mt = { class: "flex-1 flex flex-col gap-3 min-w-0" }, jt = { class: "bg-white rounded-10 h-14 flex items-center justify-between pl-3 pr-3 shrink-0" }, Ot = { class: "flex items-center min-w-0 gap-2" }, zt = ["onClick"], Tt = { class: "text-base text-black truncate" }, Vt = { class: "w-[320px] py-2" }, Ht = ["onClick"], At = { class: "text-sm" }, Pt = {
|
|
1124
|
+
key: 0,
|
|
1125
|
+
class: "border-t border-secondary-stroke my-1"
|
|
1126
|
+
}, Et = {
|
|
1127
|
+
key: 1,
|
|
1128
|
+
class: "text-2xs text-secondary-content px-3 py-1 uppercase"
|
|
1129
|
+
}, Ft = ["onClick"], Wt = { class: "text-sm" }, Nt = {
|
|
1130
|
+
key: 2,
|
|
1131
|
+
class: "border-t border-secondary-stroke mt-1 pt-1"
|
|
1132
|
+
}, Gt = ["onClick"], It = { class: "flex items-center gap-2 shrink-0" }, Rt = ["href"], qt = { class: "text-2xs font-semibold text-black leading-loose" }, Ut = { class: "flex-1 min-w-0" }, Zt = { key: 0 }, Dt = {
|
|
1133
|
+
key: 0,
|
|
1134
|
+
class: "sm:w-[560px] w-full relative h-full"
|
|
1135
|
+
}, Jt = { class: "h-full relative" }, Kt = { class: "flex items-center p-3 space-x-1.5" }, Qt = {
|
|
1136
|
+
class: "overflow-auto",
|
|
1137
|
+
style: { height: "calc(100% - 62px)" }
|
|
1138
|
+
}, Xt = {
|
|
1139
|
+
key: 0,
|
|
1140
|
+
class: "p-5"
|
|
1141
|
+
}, Yt = { key: 1 }, el = { class: "p-4 text-gray text-center" }, sl = { key: 2 }, tl = {
|
|
1142
|
+
class: "p-3 space-y-1.5 rounded-lg",
|
|
1143
|
+
style: { "box-shadow": "0 0 6px #eaeaea" }
|
|
1144
|
+
}, ll = { key: 0 }, nl = {
|
|
1145
|
+
key: 0,
|
|
1146
|
+
class: "text-xs px-2 py-1 rounded-md bg-green-600 text-white"
|
|
1147
|
+
}, ol = {
|
|
1148
|
+
key: 1,
|
|
1149
|
+
class: "text-xs px-2 py-1 rounded-md bg-yellow-600 text-white"
|
|
1150
|
+
}, al = {
|
|
1151
|
+
key: 2,
|
|
1152
|
+
class: "text-xs px-2 py-1 rounded-md bg-blue-600 text-white"
|
|
1153
|
+
}, rl = {
|
|
1154
|
+
key: 3,
|
|
1155
|
+
class: "text-xs px-2 py-1 rounded-md bg-gray-600 text-white"
|
|
1156
|
+
}, il = { class: "text-lg font-medium" }, dl = { class: "text-sm text-gray-600" }, ul = { key: 0 }, pl = ["src"], cl = { class: "text-sm" }, hl = { key: 1 }, ml = ["href"], fl = { class: "text-sm flex items-center justify-between mt-1" }, vl = { class: "text-gray-800" }, wl = ["href"], yl = /* @__PURE__ */ ve({
|
|
1157
|
+
__name: "OneIsland",
|
|
1158
|
+
props: u1,
|
|
1159
|
+
emits: ["load-news", "load-tariff", "open-tariff"],
|
|
1160
|
+
setup(g, { emit: x }) {
|
|
1161
|
+
const i = x, c = g;
|
|
1162
|
+
let _ = window.localStorage.getItem("island-sidebar-slim");
|
|
1163
|
+
window.document.body.offsetWidth < 1024 && (window.localStorage.getItem("island-sidebar-slim") == null && window.localStorage.setItem("island-sidebar-slim", "1"), _ = "1");
|
|
1164
|
+
const v = S(_ === "1");
|
|
1165
|
+
ie(v, (e) => {
|
|
1166
|
+
window.localStorage.setItem("island-sidebar-slim", String(e ? 1 : 0));
|
|
1167
|
+
});
|
|
1168
|
+
const d = S(!1), F = () => {
|
|
1169
|
+
d.value = !d.value, d.value && i("load-news");
|
|
1170
|
+
}, I = S(null), D = () => {
|
|
1171
|
+
var a, C, z;
|
|
1172
|
+
const e = (z = (C = (a = I.value) == null ? void 0 : a.$el) == null ? void 0 : C.querySelector) == null ? void 0 : z.call(C, "button");
|
|
1173
|
+
e == null || e.click();
|
|
1174
|
+
}, q = B(() => c.showHeadre);
|
|
1175
|
+
ie(
|
|
1176
|
+
() => c.showHeadre,
|
|
1177
|
+
() => {
|
|
1178
|
+
q.value = c.showHeadre;
|
|
1179
|
+
}
|
|
1180
|
+
);
|
|
1181
|
+
const M = S(window.innerWidth), W = () => {
|
|
1182
|
+
M.value = window.innerWidth;
|
|
1183
|
+
}, f = B(() => M.value <= 768);
|
|
1184
|
+
he(() => {
|
|
1185
|
+
window.addEventListener("resize", W);
|
|
1186
|
+
}), ge(() => {
|
|
1187
|
+
window.removeEventListener("resize", W);
|
|
1188
|
+
});
|
|
1189
|
+
const O = (e) => {
|
|
1190
|
+
var a, C;
|
|
1191
|
+
(C = (a = c.handlers) == null ? void 0 : a.onSetLang) == null || C.call(a, e);
|
|
1192
|
+
};
|
|
1193
|
+
return (e, a) => {
|
|
1194
|
+
var C, z, T, V, m, H, A, R, J, K, n, w, Q, X, Y, ee, se, te;
|
|
1195
|
+
return s(), l("div", St, [
|
|
1196
|
+
t("div", Bt, [
|
|
1197
|
+
!f.value || !v.value ? (s(), p(p1, {
|
|
1198
|
+
key: 0,
|
|
1199
|
+
items: e.sidebarItems,
|
|
1200
|
+
island: !0,
|
|
1201
|
+
app: e.app,
|
|
1202
|
+
"with-news": e.news != null,
|
|
1203
|
+
news: e.news,
|
|
1204
|
+
isMobile: f.value,
|
|
1205
|
+
modelValue: v.value,
|
|
1206
|
+
onToggleMenu: a[0] || (a[0] = (h) => v.value = !v.value),
|
|
1207
|
+
onShowNews: F,
|
|
1208
|
+
onShowHelp: D,
|
|
1209
|
+
onSelectLanguage: O,
|
|
1210
|
+
onUpdateCollapsed: a[1] || (a[1] = (h) => v.value = !v.value)
|
|
1211
|
+
}, null, 8, ["items", "app", "with-news", "news", "isMobile", "modelValue"])) : o("", !0),
|
|
1212
|
+
t("div", Mt, [
|
|
1213
|
+
oe(t("header", jt, [
|
|
1214
|
+
t("div", Ot, [
|
|
1215
|
+
e.workspace ? (s(), p(s1, {
|
|
1216
|
+
key: 0,
|
|
1217
|
+
"append-body": !0,
|
|
1218
|
+
stick: "bottom-start"
|
|
1219
|
+
}, {
|
|
1220
|
+
button: U(({ onToggle: h }) => [
|
|
1221
|
+
t("button", {
|
|
1222
|
+
type: "button",
|
|
1223
|
+
class: "flex items-center gap-2 px-2 py-1 rounded-10 bg-[#F5F5F5] hover:bg-secondary-body transition-colors min-w-0",
|
|
1224
|
+
onClick: h
|
|
1225
|
+
}, [
|
|
1226
|
+
L(Ce, {
|
|
1227
|
+
text: e.workspace.name,
|
|
1228
|
+
src: e.workspace.photo_url,
|
|
1229
|
+
size: 20,
|
|
1230
|
+
rounded: !1
|
|
1231
|
+
}, null, 8, ["text", "src"]),
|
|
1232
|
+
t("span", Tt, r(e.workspace.name), 1),
|
|
1233
|
+
(s(), p(k($(ce)), { class: "w-4 h-4 text-secondary-base shrink-0" }))
|
|
1234
|
+
], 8, zt)
|
|
1235
|
+
]),
|
|
1236
|
+
menu: U(({ onToggle: h }) => {
|
|
1237
|
+
var P, u, N, le, de;
|
|
1238
|
+
return [
|
|
1239
|
+
t("div", Vt, [
|
|
1240
|
+
(s(!0), l(G, null, Z(e.workspaces || [], (j) => (s(), l("div", {
|
|
1241
|
+
key: j.name,
|
|
1242
|
+
class: "flex items-center gap-2 px-3 py-2 hover:bg-secondary-10 cursor-pointer",
|
|
1243
|
+
onClick: (pe) => {
|
|
1244
|
+
var E, ne;
|
|
1245
|
+
return (ne = (E = e.handlers) == null ? void 0 : E.onChange) == null || ne.call(E, j), h();
|
|
1246
|
+
}
|
|
1247
|
+
}, [
|
|
1248
|
+
L(Ce, {
|
|
1249
|
+
text: j.name,
|
|
1250
|
+
src: j.photo_url,
|
|
1251
|
+
size: 24,
|
|
1252
|
+
rounded: !1
|
|
1253
|
+
}, null, 8, ["text", "src"]),
|
|
1254
|
+
t("span", At, r(j.name), 1)
|
|
1255
|
+
], 8, Ht))), 128)),
|
|
1256
|
+
(P = e.workspaces) != null && P.length ? (s(), l("div", Pt)) : o("", !0),
|
|
1257
|
+
(u = e.apps) != null && u.length ? (s(), l("div", Et, r(((N = e.labels) == null ? void 0 : N.apps) || "Apps"), 1)) : o("", !0),
|
|
1258
|
+
(s(!0), l(G, null, Z(e.apps || [], (j) => (s(), l("div", {
|
|
1259
|
+
key: j.id,
|
|
1260
|
+
class: "flex items-center gap-2 px-3 py-2 hover:bg-secondary-10 cursor-pointer",
|
|
1261
|
+
onClick: (pe) => {
|
|
1262
|
+
var E, ne;
|
|
1263
|
+
return (ne = (E = e.handlers) == null ? void 0 : E.onApp) == null || ne.call(E, j), h();
|
|
1264
|
+
}
|
|
1265
|
+
}, [
|
|
1266
|
+
L(Ce, {
|
|
1267
|
+
text: j.name,
|
|
1268
|
+
src: j.photo_url,
|
|
1269
|
+
size: 24,
|
|
1270
|
+
rounded: !1
|
|
1271
|
+
}, null, 8, ["text", "src"]),
|
|
1272
|
+
t("span", Wt, r(j.name), 1)
|
|
1273
|
+
], 8, Ft))), 128)),
|
|
1274
|
+
(le = e.handlers) != null && le.onChange ? (s(), l("div", Nt, [
|
|
1275
|
+
t("button", {
|
|
1276
|
+
type: "button",
|
|
1277
|
+
class: "w-full text-left text-xs text-secondary-content px-3 py-2 hover:bg-secondary-10",
|
|
1278
|
+
onClick: (j) => (e.handlers.onChange(), h())
|
|
1279
|
+
}, r(((de = e.labels) == null ? void 0 : de.change) || "Change workspace"), 9, Gt)
|
|
1280
|
+
])) : o("", !0)
|
|
1281
|
+
])
|
|
1282
|
+
];
|
|
1283
|
+
}),
|
|
1284
|
+
_: 1
|
|
1285
|
+
})) : o("", !0),
|
|
1286
|
+
re(e.$slots, "head-left", {}, void 0, !0)
|
|
1287
|
+
]),
|
|
1288
|
+
t("div", It, [
|
|
1289
|
+
(C = e.improveTariff) != null && C.label ? (s(), l("a", {
|
|
1290
|
+
key: 0,
|
|
1291
|
+
href: ((z = e.improveTariff) == null ? void 0 : z.url) || "#",
|
|
1292
|
+
class: "flex items-center gap-1.5 bg-[#FFF8E4] hover:bg-[#FAEBC2] rounded-full px-2 py-0.5 transition-colors",
|
|
1293
|
+
onClick: a[2] || (a[2] = ae((h) => {
|
|
1294
|
+
var P, u;
|
|
1295
|
+
return (u = (P = e.handlers) == null ? void 0 : P.onImproveTariff) == null ? void 0 : u.call(P);
|
|
1296
|
+
}, ["prevent"]))
|
|
1297
|
+
}, [
|
|
1298
|
+
e.improveTariff.icon ? (s(), p(k(e.improveTariff.icon), {
|
|
1299
|
+
key: 0,
|
|
1300
|
+
class: "w-4 h-4 text-warning-base"
|
|
1301
|
+
})) : o("", !0),
|
|
1302
|
+
t("span", qt, r(e.improveTariff.label), 1)
|
|
1303
|
+
], 8, Rt)) : o("", !0),
|
|
1304
|
+
re(e.$slots, "head-right", {}, void 0, !0),
|
|
1305
|
+
e.help ? (s(), p(t1, {
|
|
1306
|
+
key: 1,
|
|
1307
|
+
ref_key: "helpMenuRef",
|
|
1308
|
+
ref: I,
|
|
1309
|
+
help: e.help
|
|
1310
|
+
}, null, 8, ["help"])) : o("", !0),
|
|
1311
|
+
((T = e.handlers) == null ? void 0 : T.onBrowse) != null ? (s(), p(l1, {
|
|
1312
|
+
key: 2,
|
|
1313
|
+
workspace: e.workspace || ((V = e.app) == null ? void 0 : V.workspace),
|
|
1314
|
+
apps: e.apps || ((m = e.app) == null ? void 0 : m.apps) || [],
|
|
1315
|
+
"change-label": ((H = e.labels) == null ? void 0 : H.change) || "Change",
|
|
1316
|
+
"apps-title": ((A = e.labels) == null ? void 0 : A.apps) || "Apps",
|
|
1317
|
+
"on-app": (R = e.handlers) == null ? void 0 : R.onApp,
|
|
1318
|
+
"on-change": (J = e.handlers) == null ? void 0 : J.onChange,
|
|
1319
|
+
onOpen: (K = e.handlers) == null ? void 0 : K.onBrowse
|
|
1320
|
+
}, null, 8, ["workspace", "apps", "change-label", "apps-title", "on-app", "on-change", "onOpen"])) : o("", !0),
|
|
1321
|
+
L(n1, {
|
|
1322
|
+
user: e.user,
|
|
1323
|
+
menu: e.menu,
|
|
1324
|
+
app: e.app,
|
|
1325
|
+
"account-label": ((n = e.labels) == null ? void 0 : n.account) || "Account",
|
|
1326
|
+
"logout-label": ((w = e.labels) == null ? void 0 : w.logout) || "Logout",
|
|
1327
|
+
"version-label": ((Q = e.labels) == null ? void 0 : Q.version) || "",
|
|
1328
|
+
"on-account": (X = e.handlers) == null ? void 0 : X.onAccount,
|
|
1329
|
+
"on-logout": (Y = e.handlers) == null ? void 0 : Y.onLogout
|
|
1330
|
+
}, null, 8, ["user", "menu", "app", "account-label", "logout-label", "version-label", "on-account", "on-logout"])
|
|
1331
|
+
])
|
|
1332
|
+
], 512), [
|
|
1333
|
+
[me, q.value]
|
|
1334
|
+
]),
|
|
1335
|
+
t("div", Ut, [
|
|
1336
|
+
re(e.$slots, "default", {}, void 0, !0)
|
|
1337
|
+
])
|
|
1338
|
+
])
|
|
1339
|
+
]),
|
|
1340
|
+
e.news ? (s(), l("div", Zt, [
|
|
1341
|
+
d.value ? (s(), l("div", {
|
|
859
1342
|
key: 0,
|
|
860
1343
|
class: "fixed top-0 left-0 h-dvh w-screen bg-gray-100 bg-opacity-40 z-50",
|
|
861
|
-
onClick:
|
|
862
|
-
})) :
|
|
863
|
-
|
|
864
|
-
class:
|
|
1344
|
+
onClick: a[3] || (a[3] = ae((h) => d.value = !1, ["self"]))
|
|
1345
|
+
})) : o("", !0),
|
|
1346
|
+
t("div", {
|
|
1347
|
+
class: y(["opacity-100 shadow-lg transition-all fixed top-0 left-0 h-dvh overflow-hidden z-50 bg-white", [d.value ? "sm:w-[560px] w-full" : "w-0"]])
|
|
865
1348
|
}, [
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
1349
|
+
d.value ? (s(), l("div", Dt, [
|
|
1350
|
+
t("div", Jt, [
|
|
1351
|
+
t("div", Kt, [
|
|
1352
|
+
L(fe, { class: "w-10 h-10" }),
|
|
1353
|
+
a[5] || (a[5] = t("div", { class: "w-full font-medium" }, "OneB News", -1)),
|
|
1354
|
+
t("div", null, [
|
|
1355
|
+
L(xe, {
|
|
873
1356
|
variant: "touch",
|
|
874
|
-
icon:
|
|
875
|
-
onClick:
|
|
1357
|
+
icon: $(o1),
|
|
1358
|
+
onClick: a[4] || (a[4] = (h) => d.value = !1)
|
|
876
1359
|
}, null, 8, ["icon"])
|
|
877
1360
|
])
|
|
878
1361
|
]),
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
])) : ((
|
|
883
|
-
|
|
884
|
-
])) : ((
|
|
885
|
-
(
|
|
886
|
-
key:
|
|
1362
|
+
t("div", Qt, [
|
|
1363
|
+
e.news.isLoading && ((ee = e.news.items) == null ? void 0 : ee.length) === 0 ? (s(), l("div", Xt, [
|
|
1364
|
+
L(a1, { class: "w-6 h-6 text-gray-600 mx-auto" })
|
|
1365
|
+
])) : ((se = e.news.items) == null ? void 0 : se.length) === 0 ? (s(), l("div", Yt, [
|
|
1366
|
+
t("div", el, r(e.news.emptyText), 1)
|
|
1367
|
+
])) : ((te = e.news.items) == null ? void 0 : te.length) > 0 ? (s(), l("div", sl, [
|
|
1368
|
+
(s(!0), l(G, null, Z(e.news.items, (h) => (s(), l("div", {
|
|
1369
|
+
key: h.id,
|
|
887
1370
|
class: "p-3"
|
|
888
1371
|
}, [
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
])) :
|
|
894
|
-
|
|
895
|
-
|
|
1372
|
+
t("div", tl, [
|
|
1373
|
+
t("div", null, [
|
|
1374
|
+
h.type ? (s(), l("div", ll, [
|
|
1375
|
+
h.type === 10 ? (s(), l("span", nl, "update")) : h.type === 11 ? (s(), l("span", ol, "warning")) : h.type === 12 ? (s(), l("span", al, "notice")) : h.type === 13 ? (s(), l("span", rl, "ads")) : o("", !0)
|
|
1376
|
+
])) : o("", !0),
|
|
1377
|
+
t("div", il, r(h.title), 1),
|
|
1378
|
+
t("div", dl, r(h.summary), 1)
|
|
896
1379
|
]),
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
src:
|
|
1380
|
+
h.image_url ? (s(), l("div", ul, [
|
|
1381
|
+
t("img", {
|
|
1382
|
+
src: h.image_url,
|
|
900
1383
|
alt: "",
|
|
901
1384
|
class: "w-full rounded-md"
|
|
902
|
-
}, null, 8,
|
|
903
|
-
])) :
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
text:
|
|
1385
|
+
}, null, 8, pl)
|
|
1386
|
+
])) : o("", !0),
|
|
1387
|
+
t("div", cl, [
|
|
1388
|
+
L(r1, {
|
|
1389
|
+
text: h.body
|
|
907
1390
|
}, null, 8, ["text"])
|
|
908
1391
|
]),
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
href:
|
|
1392
|
+
h.video_url ? (s(), l("div", hl, [
|
|
1393
|
+
t("a", {
|
|
1394
|
+
href: h.video_url,
|
|
912
1395
|
target: "_blank",
|
|
913
1396
|
class: "text-blue-600 hover:text-blue-700 px-3 py-2 border rounded-md w-full block"
|
|
914
|
-
},
|
|
915
|
-
])) :
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
1397
|
+
}, r(e.news.openVideoText), 9, ml)
|
|
1398
|
+
])) : o("", !0),
|
|
1399
|
+
t("div", fl, [
|
|
1400
|
+
t("span", vl, r(h.published), 1),
|
|
1401
|
+
h.post_url ? (s(), l("a", {
|
|
919
1402
|
key: 0,
|
|
920
|
-
href:
|
|
1403
|
+
href: h.post_url,
|
|
921
1404
|
target: "_blank",
|
|
922
1405
|
class: "text-blue-600 hover:text-blue-700 block"
|
|
923
|
-
},
|
|
1406
|
+
}, r(e.news.moreText), 9, wl)) : o("", !0)
|
|
924
1407
|
])
|
|
925
1408
|
])
|
|
926
1409
|
]))), 128))
|
|
927
|
-
])) :
|
|
1410
|
+
])) : o("", !0)
|
|
928
1411
|
])
|
|
929
1412
|
])
|
|
930
|
-
])) :
|
|
1413
|
+
])) : o("", !0)
|
|
931
1414
|
], 2)
|
|
932
|
-
])) :
|
|
1415
|
+
])) : o("", !0)
|
|
933
1416
|
]);
|
|
934
1417
|
};
|
|
935
1418
|
}
|
|
936
1419
|
});
|
|
937
|
-
const
|
|
1420
|
+
const Al = /* @__PURE__ */ we(yl, [["__scopeId", "data-v-2cf17e48"]]);
|
|
938
1421
|
export {
|
|
939
|
-
|
|
940
|
-
|
|
1422
|
+
Al as OneIsland,
|
|
1423
|
+
Hl as OneMainLayout,
|
|
1424
|
+
p1 as OneSidebar
|
|
941
1425
|
};
|