@oneb/ui-vue 0.3.29 → 0.3.31
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-73817f8a.js +922 -0
- package/dist/OneHelpMenu-c6e88d8f.cjs +1 -0
- package/dist/dropdown/index.cjs +1 -1
- package/dist/dropdown/index.js +209 -209
- package/dist/dropdown/menu.d.ts +23 -31
- package/dist/i18n/index.cjs +1 -1
- package/dist/i18n/index.js +36 -11
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/layout/index.cjs +1 -1
- package/dist/layout/index.js +726 -721
- package/dist/layout/layout.d.ts +10 -12
- package/dist/periodPicker/index.cjs +1 -1
- package/dist/periodPicker/index.js +736 -675
- package/dist/periodPicker/periodPicker.d.ts +1 -1
- package/dist/style.css +1 -1
- package/dist/tailwind.config.cjs +1 -1
- package/dist/tailwind.config.d.ts +0 -4
- package/dist/tailwind.config.js +5 -2
- package/package.json +1 -1
- package/dist/OneHelpMenu-79b2d83f.cjs +0 -1
- package/dist/OneHelpMenu-df4e18a9.js +0 -877
package/dist/layout/index.js
CHANGED
|
@@ -1,20 +1,21 @@
|
|
|
1
|
-
import { openBlock as
|
|
2
|
-
import { _ as
|
|
3
|
-
import { r as
|
|
4
|
-
import { r as
|
|
5
|
-
import { _ as
|
|
6
|
-
import { OneButton as
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
1
|
+
import { openBlock as e, createElementBlock as l, createElementVNode as s, defineComponent as ke, computed as j, ref as z, resolveComponent as s1, resolveDirective as h1, Fragment as N, toDisplayString as u, createCommentVNode as a, createBlock as c, withCtx as Z, resolveDynamicComponent as _, mergeProps as m1, renderList as D, withDirectives as ie, normalizeClass as C, unref as S, withModifiers as ue, watch as pe, onMounted as Ce, onBeforeUnmount as v1, watchEffect as t1, shallowRef as f1, normalizeStyle as w1, vShow as ge, createVNode as B, createTextVNode as we, onUnmounted as Se, renderSlot as de } from "vue";
|
|
2
|
+
import { _ as l1, g as y1, h as b1, c as o1, O as n1, b as a1 } from "../OneHelpMenu-73817f8a.js";
|
|
3
|
+
import { r as Le, a as C1 } from "../ChevronRightIcon-4549a26b.js";
|
|
4
|
+
import { r as ye } from "../ChevronDownIcon-6805ce6c.js";
|
|
5
|
+
import { _ as _e } from "../_plugin-vue_export-helper-dad06003.js";
|
|
6
|
+
import { OneButton as Me } from "../button/index.js";
|
|
7
|
+
import { useOnebI18n as Be } from "../i18n/index.js";
|
|
8
|
+
import { r as r1 } from "../XMarkIcon-51ef0691.js";
|
|
9
|
+
import { S as i1 } from "../SpinnerIcon-74648c98.js";
|
|
10
|
+
import { OneMarkdown as u1 } from "../common/index.js";
|
|
10
11
|
import "../OneMarkdown.vue_vue_type_style_index_0_lang-4ed993c7.js";
|
|
11
|
-
import { _ as
|
|
12
|
+
import { _ as be } from "../OneAvatar.vue_vue_type_script_setup_true_lang-08ab80dd.js";
|
|
12
13
|
import "@floating-ui/dom";
|
|
13
14
|
import "@floating-ui/vue";
|
|
14
15
|
import "../SpinnerIcon.vue_vue_type_style_index_0_lang-4ed993c7.js";
|
|
15
16
|
import "vue-markdown-render";
|
|
16
|
-
function
|
|
17
|
-
return
|
|
17
|
+
function je(x, k) {
|
|
18
|
+
return e(), l("svg", {
|
|
18
19
|
xmlns: "http://www.w3.org/2000/svg",
|
|
19
20
|
fill: "none",
|
|
20
21
|
viewBox: "0 0 24 24",
|
|
@@ -22,30 +23,14 @@ function a1(x, k) {
|
|
|
22
23
|
stroke: "currentColor",
|
|
23
24
|
"aria-hidden": "true"
|
|
24
25
|
}, [
|
|
25
|
-
|
|
26
|
+
s("path", {
|
|
26
27
|
"stroke-linecap": "round",
|
|
27
28
|
"stroke-linejoin": "round",
|
|
28
29
|
d: "M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"
|
|
29
30
|
})
|
|
30
31
|
]);
|
|
31
32
|
}
|
|
32
|
-
|
|
33
|
-
return s(), l("svg", {
|
|
34
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
35
|
-
fill: "none",
|
|
36
|
-
viewBox: "0 0 24 24",
|
|
37
|
-
"stroke-width": "1.8",
|
|
38
|
-
stroke: "currentColor",
|
|
39
|
-
"aria-hidden": "true"
|
|
40
|
-
}, [
|
|
41
|
-
t("path", {
|
|
42
|
-
"stroke-linecap": "round",
|
|
43
|
-
"stroke-linejoin": "round",
|
|
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
|
-
})
|
|
46
|
-
]);
|
|
47
|
-
}
|
|
48
|
-
const r1 = {
|
|
33
|
+
const d1 = {
|
|
49
34
|
items: {
|
|
50
35
|
required: !0,
|
|
51
36
|
type: Array
|
|
@@ -75,8 +60,11 @@ const r1 = {
|
|
|
75
60
|
modelValue: { type: Boolean, default: !0 },
|
|
76
61
|
news: {
|
|
77
62
|
type: Object
|
|
63
|
+
},
|
|
64
|
+
t: {
|
|
65
|
+
type: Function
|
|
78
66
|
}
|
|
79
|
-
},
|
|
67
|
+
}, g1 = {
|
|
80
68
|
route: {
|
|
81
69
|
required: !1,
|
|
82
70
|
type: [Object, String]
|
|
@@ -143,8 +131,8 @@ const r1 = {
|
|
|
143
131
|
required: !1
|
|
144
132
|
// Не обов'язковий, бо може бути відсутнім
|
|
145
133
|
}
|
|
146
|
-
},
|
|
147
|
-
sidebarItems:
|
|
134
|
+
}, p1 = {
|
|
135
|
+
sidebarItems: d1.items,
|
|
148
136
|
logoSrc: {
|
|
149
137
|
type: String
|
|
150
138
|
},
|
|
@@ -158,9 +146,6 @@ const r1 = {
|
|
|
158
146
|
type: Object,
|
|
159
147
|
required: !0
|
|
160
148
|
},
|
|
161
|
-
labels: {
|
|
162
|
-
type: Object
|
|
163
|
-
},
|
|
164
149
|
apps: {
|
|
165
150
|
type: Array
|
|
166
151
|
},
|
|
@@ -192,67 +177,74 @@ const r1 = {
|
|
|
192
177
|
menu: {
|
|
193
178
|
type: Array,
|
|
194
179
|
default: () => []
|
|
180
|
+
},
|
|
181
|
+
// Slug for the default "Reference" help link → oneb.app/help/{slug}
|
|
182
|
+
helpSlug: {
|
|
183
|
+
type: String
|
|
184
|
+
},
|
|
185
|
+
t: {
|
|
186
|
+
type: Function
|
|
195
187
|
}
|
|
196
|
-
},
|
|
188
|
+
}, x1 = {
|
|
197
189
|
key: 0,
|
|
198
190
|
class: "border-t border-secondary-stroke my-2 mx-auto w-6"
|
|
199
|
-
},
|
|
191
|
+
}, k1 = {
|
|
200
192
|
key: 1,
|
|
201
193
|
style: { "font-size": "10px" },
|
|
202
194
|
class: "text-[#a1a5b0] px-2 pt-0 pb-0.5 pl-3 font-medium"
|
|
203
|
-
},
|
|
195
|
+
}, _1 = { class: "flex flex-nowrap items-center h-[24px]" }, $1 = {
|
|
204
196
|
key: 0,
|
|
205
197
|
class: "flex-shrink-0 w-auto"
|
|
206
|
-
},
|
|
198
|
+
}, L1 = { class: "min-w-[220px] py-1" }, S1 = { class: "text-xs font-semibold text-black px-3 pt-1 pb-2" }, M1 = ["href"], B1 = { class: "text-xs" }, j1 = { class: "text-xs" }, T1 = ["href"], z1 = { class: "flex flex-nowrap items-center h-[24px]" }, O1 = {
|
|
207
199
|
key: 1,
|
|
208
200
|
class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full"
|
|
209
|
-
},
|
|
201
|
+
}, V1 = { class: "py-[8px] pl-0 pr-0" }, H1 = {
|
|
210
202
|
key: 2,
|
|
211
203
|
class: "ml-auto"
|
|
212
|
-
},
|
|
204
|
+
}, F1 = { class: "flex flex-nowrap items-center h-[24px]" }, E1 = {
|
|
213
205
|
key: 1,
|
|
214
206
|
class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full"
|
|
215
|
-
},
|
|
207
|
+
}, W1 = { class: "py-[8px] pl-0 pr-0" }, A1 = {
|
|
216
208
|
key: 2,
|
|
217
209
|
class: "p-3"
|
|
218
|
-
},
|
|
210
|
+
}, P1 = { class: "flex flex-nowrap items-center h-[24px]" }, G1 = {
|
|
219
211
|
key: 1,
|
|
220
212
|
class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full"
|
|
221
|
-
},
|
|
213
|
+
}, I1 = { class: "py-[8px] pl-0 pr-0" }, N1 = {
|
|
222
214
|
key: 2,
|
|
223
215
|
class: "p-3"
|
|
224
|
-
},
|
|
216
|
+
}, R1 = {
|
|
225
217
|
key: 3,
|
|
226
218
|
class: "pl-[36px] pr-3"
|
|
227
|
-
},
|
|
219
|
+
}, q1 = ["href"], U1 = { class: "flex items-center justify-between min-w-full h-[24px]" }, Z1 = { class: "text-xs" }, D1 = {
|
|
228
220
|
key: 0,
|
|
229
221
|
class: "pr-1"
|
|
230
|
-
},
|
|
222
|
+
}, J1 = { class: "text-xs" }, K1 = {
|
|
231
223
|
key: 0,
|
|
232
224
|
class: "pr-3"
|
|
233
|
-
},
|
|
225
|
+
}, Q1 = /* @__PURE__ */ ke({
|
|
234
226
|
__name: "OneSidebarLink",
|
|
235
|
-
props:
|
|
227
|
+
props: g1,
|
|
236
228
|
emits: ["update-collapsed"],
|
|
237
229
|
setup(x, { emit: k }) {
|
|
238
|
-
const
|
|
230
|
+
const d = x, p = k, F = (t) => t.route ? t.route : t.routeName ? { name: t.routeName } : null, m = j(() => F(d)), w = j(() => Array.isArray(d.subItems) && d.subItems.length > 0), O = j(() => w.value && d.subItems.some((t) => t.href)), H = j(() => d.href ? "a" : m.value ? "router-link" : "span"), P = j(() => d.href ? { href: d.href, title: w.value ? null : d.label } : m.value ? { to: m.value, title: w.value ? null : d.label } : { title: w.value ? null : d.label }), M = j(() => [
|
|
239
231
|
"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",
|
|
240
|
-
|
|
241
|
-
]),
|
|
242
|
-
var
|
|
243
|
-
return (
|
|
244
|
-
},
|
|
245
|
-
|
|
246
|
-
},
|
|
247
|
-
var
|
|
248
|
-
|
|
232
|
+
d.active ? "bg-primary-10 !text-primary-base" : ""
|
|
233
|
+
]), $ = z(d.open), q = (t, L = d) => {
|
|
234
|
+
var i;
|
|
235
|
+
return (L == null ? void 0 : L.menuGroup) && (t == null ? void 0 : t.meta) && ((i = t.meta) == null ? void 0 : i.menuGroup) && t.meta.menuGroup && t.meta.menuGroup === L.menuGroup;
|
|
236
|
+
}, R = () => {
|
|
237
|
+
$.value = !$.value;
|
|
238
|
+
}, E = (t, L) => {
|
|
239
|
+
var i;
|
|
240
|
+
w.value && !L && !(d.slim && d.island) && ((i = t == null ? void 0 : t.preventDefault) == null || i.call(t), R()), (L || !w.value) && d.isMobile && p("update-collapsed");
|
|
249
241
|
};
|
|
250
|
-
return (
|
|
251
|
-
var
|
|
252
|
-
const
|
|
253
|
-
return
|
|
254
|
-
|
|
255
|
-
|
|
242
|
+
return (t, L) => {
|
|
243
|
+
var J, o;
|
|
244
|
+
const i = s1("RouterLink"), f = h1("onetooltip");
|
|
245
|
+
return e(), l(N, null, [
|
|
246
|
+
t.labelTop && t.slim ? (e(), l("div", x1)) : t.labelTop ? (e(), l("p", k1, u(t.labelTop), 1)) : a("", !0),
|
|
247
|
+
t.slim && t.island && w.value ? (e(), c(l1, {
|
|
256
248
|
key: 2,
|
|
257
249
|
trigger: "hover",
|
|
258
250
|
"append-body": !0,
|
|
@@ -260,14 +252,14 @@ const r1 = {
|
|
|
260
252
|
offset: 12
|
|
261
253
|
}, {
|
|
262
254
|
button: Z(() => [
|
|
263
|
-
(
|
|
264
|
-
class:
|
|
265
|
-
onClick:
|
|
255
|
+
(e(), c(_(H.value), m1(P.value, {
|
|
256
|
+
class: M.value,
|
|
257
|
+
onClick: E
|
|
266
258
|
}), {
|
|
267
259
|
default: Z(() => [
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
(
|
|
260
|
+
s("div", _1, [
|
|
261
|
+
t.icon ? (e(), l("div", $1, [
|
|
262
|
+
(e(), c(_(t.icon), { class: "mx-auto w-5 h-5" }))
|
|
271
263
|
])) : a("", !0)
|
|
272
264
|
])
|
|
273
265
|
]),
|
|
@@ -275,32 +267,32 @@ const r1 = {
|
|
|
275
267
|
}, 16, ["class"]))
|
|
276
268
|
]),
|
|
277
269
|
menu: Z(() => [
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
key:
|
|
282
|
-
href:
|
|
270
|
+
s("div", L1, [
|
|
271
|
+
s("p", S1, u(t.label), 1),
|
|
272
|
+
O.value ? (e(!0), l(N, { key: 0 }, D(d.subItems, (r) => (e(), l("a", {
|
|
273
|
+
key: r.label,
|
|
274
|
+
href: r.href,
|
|
283
275
|
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]"
|
|
284
276
|
}, [
|
|
285
|
-
|
|
277
|
+
r.icon ? (e(), c(_(r.icon), {
|
|
286
278
|
key: 0,
|
|
287
279
|
class: "w-[15px] h-[15px] shrink-0"
|
|
288
280
|
})) : a("", !0),
|
|
289
|
-
|
|
290
|
-
], 8,
|
|
291
|
-
var
|
|
292
|
-
return
|
|
293
|
-
key:
|
|
294
|
-
to:
|
|
281
|
+
s("span", B1, u(r.label), 1)
|
|
282
|
+
], 8, M1))), 128)) : (e(!0), l(N, { key: 1 }, D(d.subItems, (r) => {
|
|
283
|
+
var y, V;
|
|
284
|
+
return e(), c(i, {
|
|
285
|
+
key: r.label,
|
|
286
|
+
to: F(r),
|
|
295
287
|
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]",
|
|
296
|
-
"active-class": (
|
|
288
|
+
"active-class": (y = t.$route) != null && y.meta && ((V = t.$route.meta) != null && V.menuGroup) && t.$route.meta.menuGroup ? "" : "bg-primary-10 !text-primary-base"
|
|
297
289
|
}, {
|
|
298
290
|
default: Z(() => [
|
|
299
|
-
|
|
291
|
+
r.icon ? (e(), c(_(r.icon), {
|
|
300
292
|
key: 0,
|
|
301
293
|
class: "w-[15px] h-[15px] shrink-0"
|
|
302
294
|
})) : a("", !0),
|
|
303
|
-
|
|
295
|
+
s("span", j1, u(r.label), 1)
|
|
304
296
|
]),
|
|
305
297
|
_: 2
|
|
306
298
|
}, 1032, ["to", "active-class"]);
|
|
@@ -308,130 +300,130 @@ const r1 = {
|
|
|
308
300
|
])
|
|
309
301
|
]),
|
|
310
302
|
_: 1
|
|
311
|
-
})) : (
|
|
312
|
-
|
|
303
|
+
})) : (e(), l(N, { key: 3 }, [
|
|
304
|
+
t.href ? ie((e(), l("a", {
|
|
313
305
|
key: 0,
|
|
314
|
-
href:
|
|
315
|
-
class:
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
306
|
+
href: t.href,
|
|
307
|
+
class: C(["flex items-center relative text-sm font-medium hover:bg-primary-10-hover hover:text-primary-base transition-all text-[#525B66] mb-0.5", [
|
|
308
|
+
t.island ? "rounded-10" : "rounded-xl",
|
|
309
|
+
t.slim ? "w-[44px] h-[44px] justify-center" : "h-[44px] w-full",
|
|
310
|
+
t.active ? "bg-primary-10 !text-primary-base" : ""
|
|
319
311
|
]]),
|
|
320
|
-
onClick:
|
|
312
|
+
onClick: E
|
|
321
313
|
}, [
|
|
322
|
-
|
|
323
|
-
|
|
314
|
+
s("div", z1, [
|
|
315
|
+
t.icon ? (e(), l("div", {
|
|
324
316
|
key: 0,
|
|
325
|
-
class:
|
|
317
|
+
class: C(["flex-shrink-0", t.slim ? "w-auto" : "w-[44px]"])
|
|
326
318
|
}, [
|
|
327
|
-
(
|
|
328
|
-
class:
|
|
319
|
+
(e(), c(_(t.icon), {
|
|
320
|
+
class: C(["mx-auto", t.slim ? "w-5 h-5" : "w-[24px] h-[24px]"])
|
|
329
321
|
}, null, 8, ["class"]))
|
|
330
322
|
], 2)) : a("", !0),
|
|
331
|
-
|
|
332
|
-
|
|
323
|
+
t.slim ? a("", !0) : (e(), l("div", O1, [
|
|
324
|
+
s("span", V1, u(t.label), 1)
|
|
333
325
|
])),
|
|
334
|
-
|
|
335
|
-
(
|
|
326
|
+
w.value && !t.slim ? (e(), l("div", H1, [
|
|
327
|
+
(e(), c(_($.value ? S(Le) : S(ye)), { class: "w-[16px] h-[16px]" }))
|
|
336
328
|
])) : a("", !0)
|
|
337
329
|
])
|
|
338
|
-
], 10,
|
|
339
|
-
[
|
|
330
|
+
], 10, T1)), [
|
|
331
|
+
[f, t.slim && !w.value ? t.label : "", "right"]
|
|
340
332
|
]) : a("", !0),
|
|
341
|
-
!
|
|
333
|
+
!t.href && m.value ? ie((e(), c(i, {
|
|
342
334
|
key: 1,
|
|
343
|
-
to:
|
|
344
|
-
exact:
|
|
345
|
-
class:
|
|
346
|
-
"rounded-10":
|
|
347
|
-
"rounded-xl": !
|
|
348
|
-
"w-[44px] h-[44px] justify-center":
|
|
349
|
-
"h-[44px] w-full": !
|
|
350
|
-
"bg-primary-10 !text-primary-base":
|
|
335
|
+
to: m.value,
|
|
336
|
+
exact: t.exact,
|
|
337
|
+
class: C(["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", {
|
|
338
|
+
"rounded-10": t.island,
|
|
339
|
+
"rounded-xl": !t.island,
|
|
340
|
+
"w-[44px] h-[44px] justify-center": t.slim,
|
|
341
|
+
"h-[44px] w-full": !t.slim,
|
|
342
|
+
"bg-primary-10 !text-primary-base": t.active || q(t.$route)
|
|
351
343
|
}]),
|
|
352
|
-
"active-class": (
|
|
353
|
-
onClick:
|
|
344
|
+
"active-class": (J = t.$route) != null && J.meta && ((o = t.$route.meta) != null && o.menuGroup) && t.$route.meta.menuGroup ? "" : "bg-primary-10 !text-primary-base",
|
|
345
|
+
onClick: ue(E, ["prevent"])
|
|
354
346
|
}, {
|
|
355
347
|
default: Z(() => [
|
|
356
|
-
|
|
357
|
-
|
|
348
|
+
s("div", F1, [
|
|
349
|
+
t.icon ? (e(), l("div", {
|
|
358
350
|
key: 0,
|
|
359
|
-
class:
|
|
351
|
+
class: C(["flex-shrink-0", t.slim ? "w-auto" : "w-[44px]"])
|
|
360
352
|
}, [
|
|
361
|
-
(
|
|
362
|
-
class:
|
|
353
|
+
(e(), c(_(t.icon), {
|
|
354
|
+
class: C(["mx-auto", t.slim ? "w-5 h-5" : "w-[24px] h-[24px]"])
|
|
363
355
|
}, null, 8, ["class"]))
|
|
364
356
|
], 2)) : a("", !0),
|
|
365
|
-
|
|
366
|
-
|
|
357
|
+
t.slim ? a("", !0) : (e(), l("div", E1, [
|
|
358
|
+
s("span", W1, u(t.label), 1)
|
|
367
359
|
])),
|
|
368
|
-
|
|
369
|
-
(
|
|
360
|
+
w.value && !t.slim ? (e(), l("div", A1, [
|
|
361
|
+
(e(), c(_($.value ? S(Le) : S(ye)), { class: "w-[16px] h-[16px]" }))
|
|
370
362
|
])) : a("", !0)
|
|
371
363
|
])
|
|
372
364
|
]),
|
|
373
365
|
_: 1
|
|
374
366
|
}, 8, ["to", "exact", "active-class", "class"])), [
|
|
375
|
-
[
|
|
367
|
+
[f, t.slim && !w.value ? t.label : "", "right"]
|
|
376
368
|
]) : a("", !0),
|
|
377
|
-
!
|
|
369
|
+
!t.href && !m.value ? ie((e(), l("span", {
|
|
378
370
|
key: 2,
|
|
379
|
-
onClick:
|
|
380
|
-
class:
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
371
|
+
onClick: ue(E, ["prevent"]),
|
|
372
|
+
class: C(["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]", [
|
|
373
|
+
t.island ? "rounded-10" : "rounded-xl",
|
|
374
|
+
t.slim ? "w-[44px] h-[44px] justify-center" : "h-[44px] w-full",
|
|
375
|
+
t.active ? "bg-primary-10 !text-primary-base" : ""
|
|
384
376
|
]])
|
|
385
377
|
}, [
|
|
386
|
-
|
|
387
|
-
|
|
378
|
+
s("div", P1, [
|
|
379
|
+
t.icon ? (e(), l("div", {
|
|
388
380
|
key: 0,
|
|
389
|
-
class:
|
|
381
|
+
class: C(["flex-shrink-0", t.slim ? "w-auto" : "w-[44px]"])
|
|
390
382
|
}, [
|
|
391
|
-
(
|
|
392
|
-
class:
|
|
383
|
+
(e(), c(_(t.icon), {
|
|
384
|
+
class: C(["mx-auto", t.slim ? "w-5 h-5" : "w-[24px] h-[24px]"])
|
|
393
385
|
}, null, 8, ["class"]))
|
|
394
386
|
], 2)) : a("", !0),
|
|
395
|
-
|
|
396
|
-
|
|
387
|
+
t.slim ? a("", !0) : (e(), l("div", G1, [
|
|
388
|
+
s("span", I1, u(t.label), 1)
|
|
397
389
|
])),
|
|
398
|
-
|
|
399
|
-
(
|
|
390
|
+
w.value && !t.slim ? (e(), l("div", N1, [
|
|
391
|
+
(e(), c(_($.value ? S(Le) : S(ye)), { class: "w-[16px] h-[16px]" }))
|
|
400
392
|
])) : a("", !0)
|
|
401
393
|
])
|
|
402
394
|
], 2)), [
|
|
403
|
-
[
|
|
395
|
+
[f, t.slim && !w.value ? t.label : "", "right"]
|
|
404
396
|
]) : a("", !0),
|
|
405
|
-
|
|
406
|
-
(
|
|
407
|
-
var
|
|
408
|
-
return
|
|
409
|
-
key:
|
|
397
|
+
$.value && w.value && !t.slim ? (e(), l("div", R1, [
|
|
398
|
+
(e(!0), l(N, null, D(d.subItems, (r) => {
|
|
399
|
+
var y, V;
|
|
400
|
+
return e(), l("div", {
|
|
401
|
+
key: r.label
|
|
410
402
|
}, [
|
|
411
|
-
|
|
403
|
+
r.href ? (e(), l("a", {
|
|
412
404
|
key: 0,
|
|
413
|
-
href:
|
|
405
|
+
href: r.href,
|
|
414
406
|
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]"
|
|
415
407
|
}, [
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
(
|
|
408
|
+
s("div", U1, [
|
|
409
|
+
s("span", Z1, u(r.label), 1),
|
|
410
|
+
r.icon ? (e(), l("div", D1, [
|
|
411
|
+
(e(), c(_(r.icon), { class: "w-[15px] h-[15px] mx-auto" }))
|
|
420
412
|
])) : a("", !0)
|
|
421
413
|
])
|
|
422
|
-
], 8,
|
|
414
|
+
], 8, q1)) : F(r) ? (e(), c(i, {
|
|
423
415
|
key: 1,
|
|
424
|
-
to:
|
|
425
|
-
onClick:
|
|
426
|
-
class:
|
|
427
|
-
"bg-primary-10 !text-primary-base": q(
|
|
416
|
+
to: F(r),
|
|
417
|
+
onClick: L[0] || (L[0] = ue((U) => E(U, !0), ["prevent"])),
|
|
418
|
+
class: C(["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", {
|
|
419
|
+
"bg-primary-10 !text-primary-base": q(t.$route, r)
|
|
428
420
|
}]),
|
|
429
|
-
"active-class": (
|
|
421
|
+
"active-class": (y = t.$route) != null && y.meta && ((V = t.$route.meta) != null && V.menuGroup) && t.$route.meta.menuGroup ? "" : "bg-primary-10 !text-primary-base"
|
|
430
422
|
}, {
|
|
431
423
|
default: Z(() => [
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
(
|
|
424
|
+
s("span", J1, u(r.label), 1),
|
|
425
|
+
r.icon ? (e(), l("div", K1, [
|
|
426
|
+
(e(), c(_(r.icon), { class: "w-[20px] h-[20px] mx-auto" }))
|
|
435
427
|
])) : a("", !0)
|
|
436
428
|
]),
|
|
437
429
|
_: 2
|
|
@@ -443,24 +435,24 @@ const r1 = {
|
|
|
443
435
|
], 64);
|
|
444
436
|
};
|
|
445
437
|
}
|
|
446
|
-
}),
|
|
438
|
+
}), X1 = {}, Y1 = {
|
|
447
439
|
xmlns: "http://www.w3.org/2000/svg",
|
|
448
440
|
width: "24",
|
|
449
441
|
height: "24",
|
|
450
442
|
viewBox: "0 0 24 24",
|
|
451
443
|
fill: "none"
|
|
452
444
|
};
|
|
453
|
-
function
|
|
454
|
-
return
|
|
455
|
-
|
|
445
|
+
function es(x, k) {
|
|
446
|
+
return e(), l("svg", Y1, [...k[0] || (k[0] = [
|
|
447
|
+
s("path", {
|
|
456
448
|
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",
|
|
457
449
|
fill: "currentColor"
|
|
458
450
|
}, null, -1),
|
|
459
|
-
|
|
451
|
+
s("path", {
|
|
460
452
|
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",
|
|
461
453
|
fill: "currentColor"
|
|
462
454
|
}, null, -1),
|
|
463
|
-
|
|
455
|
+
s("path", {
|
|
464
456
|
"fill-rule": "evenodd",
|
|
465
457
|
"clip-rule": "evenodd",
|
|
466
458
|
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",
|
|
@@ -468,9 +460,9 @@ function Q1(x, k) {
|
|
|
468
460
|
}, null, -1)
|
|
469
461
|
])]);
|
|
470
462
|
}
|
|
471
|
-
const
|
|
472
|
-
function
|
|
473
|
-
return
|
|
463
|
+
const xe = /* @__PURE__ */ _e(X1, [["render", es]]);
|
|
464
|
+
function ss(x, k) {
|
|
465
|
+
return e(), l("svg", {
|
|
474
466
|
xmlns: "http://www.w3.org/2000/svg",
|
|
475
467
|
fill: "none",
|
|
476
468
|
viewBox: "0 0 24 24",
|
|
@@ -478,100 +470,100 @@ function X1(x, k) {
|
|
|
478
470
|
stroke: "currentColor",
|
|
479
471
|
"aria-hidden": "true"
|
|
480
472
|
}, [
|
|
481
|
-
|
|
473
|
+
s("path", {
|
|
482
474
|
"stroke-linecap": "round",
|
|
483
475
|
"stroke-linejoin": "round",
|
|
484
476
|
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"
|
|
485
477
|
}),
|
|
486
|
-
|
|
478
|
+
s("path", {
|
|
487
479
|
"stroke-linecap": "round",
|
|
488
480
|
"stroke-linejoin": "round",
|
|
489
481
|
d: "M15.48 9.48l-2.4 2.4 2.4 2.4"
|
|
490
482
|
})
|
|
491
483
|
]);
|
|
492
484
|
}
|
|
493
|
-
const
|
|
485
|
+
const e1 = (x) => {
|
|
494
486
|
if (Array.isArray(x))
|
|
495
487
|
return x.map(S);
|
|
496
488
|
const k = S(x);
|
|
497
489
|
return Array.isArray(k) ? k : [k];
|
|
498
|
-
},
|
|
499
|
-
let
|
|
500
|
-
const p = (
|
|
501
|
-
|
|
502
|
-
const
|
|
503
|
-
if (
|
|
504
|
-
if (!(
|
|
490
|
+
}, ts = (x, k) => {
|
|
491
|
+
let d;
|
|
492
|
+
const p = (F) => {
|
|
493
|
+
F.forEach((m) => {
|
|
494
|
+
const w = S(m);
|
|
495
|
+
if (w) {
|
|
496
|
+
if (!(w instanceof Element))
|
|
505
497
|
throw console.error("Vuestic: Trying to observe non-HTMLElement", {
|
|
506
|
-
target:
|
|
498
|
+
target: w,
|
|
507
499
|
array: x
|
|
508
500
|
}), new Error("Vuestic: Unable to observe non-HTMLElement");
|
|
509
|
-
|
|
501
|
+
w && (d == null || d.observe(w));
|
|
510
502
|
}
|
|
511
503
|
});
|
|
512
504
|
};
|
|
513
|
-
return
|
|
514
|
-
|
|
515
|
-
}),
|
|
516
|
-
|
|
517
|
-
}),
|
|
518
|
-
},
|
|
519
|
-
const k =
|
|
520
|
-
return
|
|
521
|
-
var
|
|
522
|
-
k.value = ((
|
|
523
|
-
}),
|
|
524
|
-
var
|
|
525
|
-
k.value = ((
|
|
505
|
+
return pe(x, (F) => {
|
|
506
|
+
d == null || d.disconnect(), p(e1(F));
|
|
507
|
+
}), Ce(() => {
|
|
508
|
+
d = new ResizeObserver(k), p(e1(x));
|
|
509
|
+
}), v1(() => d == null ? void 0 : d.disconnect()), d;
|
|
510
|
+
}, ls = (x) => {
|
|
511
|
+
const k = z(null);
|
|
512
|
+
return ts([x], () => {
|
|
513
|
+
var d;
|
|
514
|
+
k.value = ((d = x.value) == null ? void 0 : d.clientWidth) ?? null;
|
|
515
|
+
}), t1(() => {
|
|
516
|
+
var d;
|
|
517
|
+
k.value = ((d = x.value) == null ? void 0 : d.clientWidth) ?? null;
|
|
526
518
|
}), k;
|
|
527
|
-
},
|
|
519
|
+
}, os = {
|
|
528
520
|
key: 0,
|
|
529
521
|
class: "w-8 h-8 sm:w-10 sm:h-10 flex items-center flex-shrink-0"
|
|
530
|
-
},
|
|
522
|
+
}, ns = ["src"], as = {
|
|
531
523
|
key: 1,
|
|
532
524
|
class: "flex items-center gap-2 min-w-0 pl-1"
|
|
533
|
-
},
|
|
525
|
+
}, rs = {
|
|
534
526
|
key: 0,
|
|
535
527
|
class: "w-8 h-8 sm:w-10 sm:h-10 flex items-center flex-shrink-0"
|
|
536
|
-
},
|
|
528
|
+
}, is = ["src"], us = { class: "min-w-0" }, ds = { class: "text-base font-bold leading-5 text-black truncate" }, ps = {
|
|
537
529
|
key: 0,
|
|
538
530
|
class: "flex items-center gap-1 text-xs text-secondary-content"
|
|
539
|
-
},
|
|
531
|
+
}, cs = { class: "truncate" }, hs = {
|
|
540
532
|
key: 1,
|
|
541
533
|
class: "mt-auto pb-2 flex justify-center shrink-0"
|
|
542
|
-
},
|
|
534
|
+
}, ms = ["href"], vs = { class: "rounded-lg bg-[#FFF8E4] py-2 flex items-center space-x-1 px-2" }, fs = { class: "" }, ws = {
|
|
543
535
|
class: "",
|
|
544
536
|
style: { "font-size": "10px" }
|
|
545
|
-
},
|
|
537
|
+
}, ys = {
|
|
546
538
|
key: 1,
|
|
547
539
|
class: "flex justify-between border rounded-lg bg-[#F5F5F5] mb-1 w-full min-w-[19+0px] space-x-1 px-2"
|
|
548
|
-
},
|
|
540
|
+
}, bs = { class: "flex items-center text-[#525B66] space-x-3" }, Cs = { style: { "font-size": "10px" } }, gs = { class: "relative -right-2" }, 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 text-[#525B66]" }, $s = { class: "py-[8px] pl-0 pr-[8px]" }, Ls = ["href"], Ss = { class: "flex flex-nowrap items-center w-max h-[24px]" }, Ms = { class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full" }, Bs = { class: "py-[8px] pl-0 pr-[8px]" }, js = {
|
|
549
541
|
key: 4,
|
|
550
542
|
class: "custom-select ml-1 w-full relative pt-2 pb-2"
|
|
551
|
-
},
|
|
543
|
+
}, Ts = { class: "pl-1" }, zs = {
|
|
552
544
|
key: 0,
|
|
553
545
|
class: "dropdown w-[200px] z-50 text-[#525B66]"
|
|
554
|
-
}, Os = ["onClick"],
|
|
546
|
+
}, Os = ["onClick"], Vs = {
|
|
555
547
|
key: 1,
|
|
556
548
|
class: "mt-0.5 h-0 border-t border-secondary-stroke mb-1"
|
|
557
|
-
},
|
|
549
|
+
}, Hs = {
|
|
558
550
|
key: 0,
|
|
559
551
|
class: "tooltip-text"
|
|
560
|
-
},
|
|
552
|
+
}, Fs = { key: 0 }, Es = {
|
|
561
553
|
key: 1,
|
|
562
554
|
class: "absolute top-0 right-1.5 w-2 h-2 bg-blue-600 text-white rounded-full animate-ping z-0"
|
|
563
|
-
},
|
|
555
|
+
}, Ws = {
|
|
564
556
|
key: 2,
|
|
565
557
|
class: "absolute top-0 right-1.5 w-2 h-2 bg-blue-500 text-white rounded-full z-10"
|
|
566
|
-
}, As = ["href"],
|
|
558
|
+
}, As = ["href"], Ps = {
|
|
567
559
|
key: 0,
|
|
568
560
|
class: "tooltip-text"
|
|
569
|
-
},
|
|
561
|
+
}, Gs = { key: 0 }, Is = {
|
|
570
562
|
key: 2,
|
|
571
563
|
class: "text-[8px] text-[#979CA9] font-light leading-[12px] flex items-center gap-1 mt-2 px-2"
|
|
572
|
-
},
|
|
564
|
+
}, Ns = { key: 0 }, Rs = /* @__PURE__ */ ke({
|
|
573
565
|
__name: "OneSidebar",
|
|
574
|
-
props:
|
|
566
|
+
props: d1,
|
|
575
567
|
emits: [
|
|
576
568
|
"show-news",
|
|
577
569
|
"show-tariff",
|
|
@@ -582,102 +574,102 @@ const Ke = (x) => {
|
|
|
582
574
|
"update:modelValue"
|
|
583
575
|
],
|
|
584
576
|
setup(x, { emit: k }) {
|
|
585
|
-
var
|
|
586
|
-
const
|
|
577
|
+
var K, Q, X;
|
|
578
|
+
const d = k, p = x, F = Be(), m = j(() => p.t ?? F), w = j(() => {
|
|
587
579
|
var n;
|
|
588
580
|
return ((n = p.news) == null ? void 0 : n.unseenCount) || 0;
|
|
589
|
-
}),
|
|
590
|
-
|
|
591
|
-
},
|
|
592
|
-
|
|
593
|
-
p.modelValue ?
|
|
594
|
-
}), p.modelValue && (
|
|
595
|
-
const
|
|
581
|
+
}), O = () => {
|
|
582
|
+
d("show-news");
|
|
583
|
+
}, H = z(!1), P = z(p.hoverable);
|
|
584
|
+
pe(p, () => {
|
|
585
|
+
p.modelValue ? P.value = !0 : P.value = !1;
|
|
586
|
+
}), p.modelValue && (P.value = !0);
|
|
587
|
+
const M = f1(), $ = j(() => {
|
|
596
588
|
const n = [];
|
|
597
|
-
if (p.slim || n.push("fixed"), !
|
|
589
|
+
if (p.slim || n.push("fixed"), !E.value)
|
|
598
590
|
if (!p.isMobile)
|
|
599
591
|
n.push("w-[260px]");
|
|
600
592
|
else
|
|
601
593
|
return n.push("w-full");
|
|
602
594
|
return n.join(" ");
|
|
603
|
-
}),
|
|
604
|
-
|
|
605
|
-
},
|
|
606
|
-
|
|
595
|
+
}), q = j(() => ""), R = (n) => {
|
|
596
|
+
H.value = P.value && n;
|
|
597
|
+
}, E = j(() => P.value && !H.value), t = j(() => p.island ? p.modelValue !== !1 : !!E.value), L = z(), i = ls(L), f = j(() => p.modelValue === !0 || i.value === null ? !0 : i.value > 0), J = z(), o = () => E.value ? p.minimizedWidth : p.width;
|
|
598
|
+
t1(() => {
|
|
607
599
|
const n = o();
|
|
608
600
|
setTimeout(() => {
|
|
609
|
-
|
|
601
|
+
J.value = n;
|
|
610
602
|
});
|
|
611
603
|
});
|
|
612
|
-
const
|
|
613
|
-
(
|
|
614
|
-
var
|
|
615
|
-
return n.id == ((
|
|
604
|
+
const r = z(!1), y = z(
|
|
605
|
+
(K = p.app) != null && K.availableLang && ((Q = p.app) == null ? void 0 : Q.availableLang.length) > 0 ? (X = p.app) == null ? void 0 : X.availableLang.find((n) => {
|
|
606
|
+
var b;
|
|
607
|
+
return n.id == ((b = p.app) == null ? void 0 : b.lang);
|
|
616
608
|
}) : null
|
|
617
|
-
),
|
|
618
|
-
|
|
619
|
-
},
|
|
620
|
-
|
|
621
|
-
},
|
|
622
|
-
var n,
|
|
623
|
-
(
|
|
609
|
+
), V = () => {
|
|
610
|
+
r.value = !r.value;
|
|
611
|
+
}, U = (n) => {
|
|
612
|
+
y.value = n, r.value = !1, d("select-language", n);
|
|
613
|
+
}, ae = () => {
|
|
614
|
+
var n, b;
|
|
615
|
+
(b = (n = p.app) == null ? void 0 : n.selectedPlan) != null && b.url && (window.location.href = p.app.selectedPlan.url);
|
|
624
616
|
};
|
|
625
|
-
return (n,
|
|
626
|
-
var
|
|
627
|
-
return
|
|
617
|
+
return (n, b) => {
|
|
618
|
+
var Y, ee, se, h, G, te, ce, he, me, ve, fe, v, W, I, le, oe, T, re, A, ne, Te, ze, Oe, Ve, He, Fe, Ee, We, Ae, Pe, Ge, Ie, Ne, Re, qe, Ue, Ze, De, Je, Ke, Qe;
|
|
619
|
+
return e(), l("aside", {
|
|
628
620
|
ref_key: "rootElement",
|
|
629
|
-
ref:
|
|
630
|
-
class:
|
|
621
|
+
ref: M,
|
|
622
|
+
class: C(["oneb-sidebar cont flex flex-col", [
|
|
631
623
|
n.island ? "island-mode bg-white rounded-10 py-2 shrink-0 transition-all" : "pt-[56px] pb-1 sidebar z-40",
|
|
632
|
-
n.island ?
|
|
633
|
-
n.island ? "" :
|
|
624
|
+
n.island ? t.value ? "self-stretch w-[60px]" : "self-stretch w-[260px]" : $.value,
|
|
625
|
+
n.island ? n.isMobile ? "fixed top-3 left-3 bottom-3 z-50 shadow-xl" : "" : t.value ? "sm:max-w-[260px] w-full sm:w-max" : "sm:w-[260px] w-full"
|
|
634
626
|
]]),
|
|
635
|
-
style:
|
|
636
|
-
onMouseenter:
|
|
637
|
-
onMouseleave:
|
|
627
|
+
style: w1(q.value),
|
|
628
|
+
onMouseenter: b[3] || (b[3] = (g) => R(!0)),
|
|
629
|
+
onMouseleave: b[4] || (b[4] = (g) => R(!1))
|
|
638
630
|
}, [
|
|
639
|
-
n.island ? (
|
|
631
|
+
n.island ? (e(), l("div", {
|
|
640
632
|
key: 0,
|
|
641
|
-
class:
|
|
633
|
+
class: C(["px-2 flex shrink-0", t.value ? "flex-col items-center gap-1" : "items-center justify-between"])
|
|
642
634
|
}, [
|
|
643
|
-
|
|
644
|
-
|
|
635
|
+
t.value && n.logoSrc ? (e(), l("div", os, [
|
|
636
|
+
s("img", {
|
|
645
637
|
src: n.logoSrc,
|
|
646
638
|
class: "w-8 h-8 mx-auto",
|
|
647
639
|
alt: "logo"
|
|
648
|
-
}, null, 8,
|
|
640
|
+
}, null, 8, ns)
|
|
649
641
|
])) : a("", !0),
|
|
650
|
-
!
|
|
651
|
-
n.logoSrc ? (
|
|
652
|
-
|
|
642
|
+
!t.value && ((Y = n.app) != null && Y.name) ? (e(), l("div", as, [
|
|
643
|
+
n.logoSrc ? (e(), l("div", rs, [
|
|
644
|
+
s("img", {
|
|
653
645
|
src: n.logoSrc,
|
|
654
646
|
class: "w-8 h-8 mx-auto",
|
|
655
647
|
alt: "logo"
|
|
656
|
-
}, null, 8,
|
|
648
|
+
}, null, 8, is)
|
|
657
649
|
])) : a("", !0),
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
(
|
|
661
|
-
|
|
650
|
+
s("div", us, [
|
|
651
|
+
s("p", ds, u(n.app.name), 1),
|
|
652
|
+
(se = (ee = n.app) == null ? void 0 : ee.selectedPlan) != null && se.name ? (e(), l("div", ps, [
|
|
653
|
+
s("span", cs, u(m.value("ui.layout.plan")) + " " + u(n.app.selectedPlan.name), 1)
|
|
662
654
|
])) : a("", !0)
|
|
663
655
|
])
|
|
664
656
|
])) : a("", !0),
|
|
665
|
-
|
|
657
|
+
s("button", {
|
|
666
658
|
type: "button",
|
|
667
659
|
class: "w-11 h-11 rounded-10 flex items-center justify-center text-secondary-base hover:bg-secondary-body-active transition-colors shrink-0",
|
|
668
|
-
onClick:
|
|
660
|
+
onClick: b[0] || (b[0] = (g) => d("toggle-menu"))
|
|
669
661
|
}, [
|
|
670
|
-
(
|
|
662
|
+
(e(), c(_(t.value ? S(je) : S(ss)), { class: "w-5 h-5" }))
|
|
671
663
|
])
|
|
672
664
|
], 2)) : a("", !0),
|
|
673
|
-
|
|
674
|
-
class:
|
|
675
|
-
n.island ?
|
|
665
|
+
ie(s("div", {
|
|
666
|
+
class: C(["overflow-y-auto overflow-hidden lg:bg-transparent transition-all flex-grow", [
|
|
667
|
+
n.island ? t.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"
|
|
676
668
|
]]),
|
|
677
669
|
ref_key: "menu",
|
|
678
|
-
ref:
|
|
670
|
+
ref: L
|
|
679
671
|
}, [
|
|
680
|
-
(
|
|
672
|
+
(e(!0), l(N, null, D(n.items, (g) => (e(), c(Q1, {
|
|
681
673
|
key: g.label,
|
|
682
674
|
labelTop: g.labelTop,
|
|
683
675
|
isMobile: n.isMobile,
|
|
@@ -688,442 +680,442 @@ const Ke = (x) => {
|
|
|
688
680
|
route: g.route,
|
|
689
681
|
menuGroup: g == null ? void 0 : g.menuGroup,
|
|
690
682
|
href: g.href,
|
|
691
|
-
slim:
|
|
683
|
+
slim: t.value,
|
|
692
684
|
island: n.island,
|
|
693
685
|
active: g.active === !0,
|
|
694
686
|
"route-name": g.routeName,
|
|
695
687
|
exact: g.exact || !1,
|
|
696
|
-
onUpdateCollapsed:
|
|
688
|
+
onUpdateCollapsed: b[1] || (b[1] = ($e) => d("update-collapsed"))
|
|
697
689
|
}, null, 8, ["labelTop", "isMobile", "subItems", "open", "icon", "label", "route", "menuGroup", "href", "slim", "island", "active", "route-name", "exact"]))), 128))
|
|
698
690
|
], 2), [
|
|
699
|
-
[
|
|
691
|
+
[ge, f.value]
|
|
700
692
|
]),
|
|
701
|
-
n.island &&
|
|
702
|
-
|
|
693
|
+
n.island && t.value ? (e(), l("div", hs, [
|
|
694
|
+
s("button", {
|
|
703
695
|
type: "button",
|
|
704
696
|
class: "w-9 h-9 rounded-10 flex items-center justify-center hover:bg-secondary-body-active transition-colors",
|
|
705
|
-
onClick:
|
|
697
|
+
onClick: b[2] || (b[2] = (g) => d("show-help"))
|
|
706
698
|
}, [
|
|
707
|
-
|
|
699
|
+
B(xe, { class: "w-6 h-6" })
|
|
708
700
|
])
|
|
709
701
|
])) : a("", !0),
|
|
710
|
-
|
|
711
|
-
class:
|
|
702
|
+
ie(s("div", {
|
|
703
|
+
class: C(["mt-auto shrink rounded-2xl mx-2", [t.value ? "" : "px-2 bg-white pt-2.5 py-2"]])
|
|
712
704
|
}, [
|
|
713
|
-
n.island ? a("", !0) : (
|
|
705
|
+
n.island ? a("", !0) : (e(), l("div", {
|
|
714
706
|
key: 0,
|
|
715
|
-
class:
|
|
707
|
+
class: C([t.value ? "hidden" : "w-full hidden md:flex-col md:flex"])
|
|
716
708
|
}, [
|
|
717
|
-
(
|
|
709
|
+
(h = n.app) != null && h.offerPlan ? (e(), l("a", {
|
|
718
710
|
key: 0,
|
|
719
|
-
href: (
|
|
711
|
+
href: (G = n.app) == null ? void 0 : G.offerPlan.url,
|
|
720
712
|
class: "w-full min-w-[190px] border-gradient rounded-lg p-[1px] bg-[#FFF8E4] mb-1 block",
|
|
721
713
|
target: "_blank",
|
|
722
714
|
rel: "noopener noreferrer"
|
|
723
715
|
}, [
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
(
|
|
716
|
+
s("div", vs, [
|
|
717
|
+
s("div", fs, [
|
|
718
|
+
(e(), c(_((te = n.app) == null ? void 0 : te.offerPlan.icon), { class: "w-[16px] h-[16px]" }))
|
|
727
719
|
]),
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
720
|
+
s("p", ws, [
|
|
721
|
+
s("strong", null, u((ce = n.app) == null ? void 0 : ce.offerPlan.title), 1),
|
|
722
|
+
we(" «" + u((he = n.app) == null ? void 0 : he.offerPlan.name) + "» ", 1),
|
|
723
|
+
b[5] || (b[5] = s("br", null, null, -1)),
|
|
724
|
+
we(u((me = n.app) == null ? void 0 : me.offerPlan.title1), 1)
|
|
733
725
|
])
|
|
734
726
|
])
|
|
735
|
-
], 8,
|
|
736
|
-
(
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
(
|
|
727
|
+
], 8, ms)) : a("", !0),
|
|
728
|
+
(ve = n.app) != null && ve.selectedPlan && ((fe = n.app) != null && fe.selectedPlan.name) ? (e(), l("div", ys, [
|
|
729
|
+
s("div", bs, [
|
|
730
|
+
s("div", null, [
|
|
731
|
+
(e(), c(_((v = n.app) == null ? void 0 : v.selectedPlan.icon), { class: "w-[16px] h-[16px]" }))
|
|
740
732
|
]),
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
733
|
+
s("div", Cs, [
|
|
734
|
+
s("p", null, u(((W = n.app) == null ? void 0 : W.selectedPlan.name) || ""), 1),
|
|
735
|
+
s("p", null, u(((I = n.app) == null ? void 0 : I.selectedPlan.title) || ""), 1)
|
|
744
736
|
])
|
|
745
737
|
]),
|
|
746
|
-
|
|
747
|
-
|
|
738
|
+
s("div", gs, [
|
|
739
|
+
B(Me, {
|
|
748
740
|
class: "text-[#525B66] hover:text-[#4089E0] !rounded-lg",
|
|
749
741
|
variant: "touch",
|
|
750
|
-
icon: S(
|
|
751
|
-
onClick:
|
|
742
|
+
icon: S(C1),
|
|
743
|
+
onClick: ae
|
|
752
744
|
}, null, 8, ["icon"])
|
|
753
745
|
])
|
|
754
746
|
])) : a("", !0),
|
|
755
|
-
(
|
|
747
|
+
(le = n.app) != null && le.terms ? (e(), l("a", {
|
|
756
748
|
key: 2,
|
|
757
|
-
href: (
|
|
749
|
+
href: (oe = n.app) == null ? void 0 : oe.terms.url,
|
|
758
750
|
target: "_blank",
|
|
759
751
|
class: "ml-1 flex items-center rounded-lg text-xs hover:underline font-extralight"
|
|
760
752
|
}, [
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
753
|
+
s("div", ks, [
|
|
754
|
+
s("div", _s, [
|
|
755
|
+
s("span", $s, u(((T = n.app) == null ? void 0 : T.terms.label) || m.value("ui.layout.terms")), 1)
|
|
764
756
|
])
|
|
765
757
|
])
|
|
766
|
-
], 8,
|
|
767
|
-
(
|
|
758
|
+
], 8, xs)) : a("", !0),
|
|
759
|
+
(re = n.app) != null && re.offer ? (e(), l("a", {
|
|
768
760
|
key: 3,
|
|
769
|
-
href: (
|
|
761
|
+
href: (A = n.app) == null ? void 0 : A.offer.url,
|
|
770
762
|
target: "_blank",
|
|
771
763
|
class: "ml-1 flex items-center rounded-lg text-xs hover:underline text-[#525B66] font-extralight"
|
|
772
764
|
}, [
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
765
|
+
s("div", Ss, [
|
|
766
|
+
s("div", Ms, [
|
|
767
|
+
s("span", Bs, u(((ne = n.app) == null ? void 0 : ne.offer.label) || m.value("ui.layout.offer")), 1)
|
|
776
768
|
])
|
|
777
769
|
])
|
|
778
|
-
], 8,
|
|
779
|
-
(
|
|
780
|
-
|
|
770
|
+
], 8, Ls)) : a("", !0),
|
|
771
|
+
(ze = (Te = n.app) == null ? void 0 : Te.availableLang) != null && ze.length ? (e(), l("div", js, [
|
|
772
|
+
s("div", {
|
|
781
773
|
class: "select-box flex gap-x-2 text-xs text-[#525B66] cursor-pointer",
|
|
782
|
-
onClick:
|
|
774
|
+
onClick: V
|
|
783
775
|
}, [
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
776
|
+
B(S(y1), { class: "w-4" }),
|
|
777
|
+
we(" " + u((Oe = y.value) == null ? void 0 : Oe.name) + " ", 1),
|
|
778
|
+
s("span", Ts, u(r.value ? "▲" : "▼"), 1)
|
|
787
779
|
]),
|
|
788
|
-
|
|
789
|
-
(
|
|
790
|
-
var
|
|
791
|
-
return
|
|
780
|
+
r.value ? (e(), l("div", zs, [
|
|
781
|
+
(e(!0), l(N, null, D((Ve = n.app) == null ? void 0 : Ve.availableLang, (g) => {
|
|
782
|
+
var $e, Xe;
|
|
783
|
+
return e(), l("div", {
|
|
792
784
|
key: g.id,
|
|
793
|
-
class:
|
|
794
|
-
"hover:bg-slate-200 rounded-lg cursor-pointer": g.id !== ((
|
|
795
|
-
"text-gray-300": g.id === ((
|
|
785
|
+
class: C(["px-2", {
|
|
786
|
+
"hover:bg-slate-200 rounded-lg cursor-pointer": g.id !== (($e = y.value) == null ? void 0 : $e.id),
|
|
787
|
+
"text-gray-300": g.id === ((Xe = y.value) == null ? void 0 : Xe.id)
|
|
796
788
|
}]),
|
|
797
|
-
onClick: (
|
|
798
|
-
var
|
|
799
|
-
return g.id !== ((
|
|
789
|
+
onClick: (Ll) => {
|
|
790
|
+
var Ye;
|
|
791
|
+
return g.id !== ((Ye = y.value) == null ? void 0 : Ye.id) && U(g);
|
|
800
792
|
}
|
|
801
|
-
},
|
|
793
|
+
}, u(g.name), 11, Os);
|
|
802
794
|
}), 128))
|
|
803
795
|
])) : a("", !0)
|
|
804
796
|
])) : a("", !0)
|
|
805
797
|
], 2)),
|
|
806
|
-
!
|
|
807
|
-
|
|
808
|
-
class:
|
|
798
|
+
!t.value && ((He = n.app) != null && He.offer || (Ee = (Fe = n.app) == null ? void 0 : Fe.availableLang) != null && Ee.length || (We = n.app) != null && We.selectedPlan && ((Ae = n.app) != null && Ae.selectedPlan.name) || (Pe = n.app) != null && Pe.offerPlan) ? (e(), l("div", Vs)) : a("", !0),
|
|
799
|
+
s("div", {
|
|
800
|
+
class: C([t.value ? "grid" : n.island ? "flex items-center gap-2" : "flex space-x-2"])
|
|
809
801
|
}, [
|
|
810
|
-
n.news ? (
|
|
802
|
+
n.news ? (e(), l("a", {
|
|
811
803
|
key: 0,
|
|
812
804
|
href: "#",
|
|
813
|
-
class:
|
|
814
|
-
onClick:
|
|
805
|
+
class: C(["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", [t.value ? "w-[44px] h-[44px] text-center" : "h-[36x] pr-2"]]),
|
|
806
|
+
onClick: O
|
|
815
807
|
}, [
|
|
816
|
-
n.news.menuLabel ? (
|
|
817
|
-
|
|
818
|
-
class:
|
|
808
|
+
n.news.menuLabel ? (e(), l("div", Hs, u(n.news.menuLabel || m.value("ui.layout.news")), 1)) : a("", !0),
|
|
809
|
+
s("div", {
|
|
810
|
+
class: C(["w-full", [t.value ? "" : "flex flex-nowrap items-center h-[36px]"]])
|
|
819
811
|
}, [
|
|
820
|
-
|
|
821
|
-
class:
|
|
812
|
+
s("div", {
|
|
813
|
+
class: C(["relative items-center", [t.value ? "" : "flex flex-row space-x-1"]])
|
|
822
814
|
}, [
|
|
823
|
-
|
|
824
|
-
(
|
|
815
|
+
s("div", null, [
|
|
816
|
+
(e(), c(_(xe), { class: "w-[24px] h-[24px] mx-auto" }))
|
|
825
817
|
]),
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
818
|
+
t.value ? a("", !0) : (e(), l("div", Fs, u(n.news.menuLabel || m.value("ui.layout.news")), 1)),
|
|
819
|
+
w.value > 0 ? (e(), l("span", Es)) : a("", !0),
|
|
820
|
+
w.value > 0 ? (e(), l("span", Ws)) : a("", !0)
|
|
829
821
|
], 2)
|
|
830
822
|
], 2)
|
|
831
823
|
], 2)) : a("", !0),
|
|
832
|
-
(
|
|
824
|
+
(Ge = n.app) != null && Ge.support ? (e(), l("a", {
|
|
833
825
|
key: 1,
|
|
834
|
-
href: (
|
|
835
|
-
class:
|
|
826
|
+
href: (Ne = (Ie = n.app) == null ? void 0 : Ie.support) == null ? void 0 : Ne.url,
|
|
827
|
+
class: C(["text-[#525B66] flex items-center rounded-lg text-sm tooltip hover:bg-primary-10-hover hover:text-primary-base transition-all", [t.value ? "w-[44px] h-[44px] text-center" : "h-[36x]"]])
|
|
836
828
|
}, [
|
|
837
|
-
(
|
|
838
|
-
|
|
839
|
-
class:
|
|
829
|
+
(qe = (Re = n.app) == null ? void 0 : Re.support) != null && qe.label ? (e(), l("div", Ps, u(((Ze = (Ue = n.app) == null ? void 0 : Ue.support) == null ? void 0 : Ze.label) || m.value("ui.layout.support")), 1)) : a("", !0),
|
|
830
|
+
s("div", {
|
|
831
|
+
class: C(["w-full", [t.value ? "" : "flex flex-nowrap items-center h-[36px]"]])
|
|
840
832
|
}, [
|
|
841
|
-
|
|
842
|
-
class:
|
|
833
|
+
s("div", {
|
|
834
|
+
class: C(["flex-shrink-0 relative", [t.value ? "mx-auto w-[36px] " : "flex space-x-2 px-1"]])
|
|
843
835
|
}, [
|
|
844
|
-
|
|
845
|
-
(
|
|
836
|
+
s("div", null, [
|
|
837
|
+
(e(), c(_(S(b1)), { class: "w-[20px] h-[20px] mx-auto" }))
|
|
846
838
|
]),
|
|
847
|
-
|
|
839
|
+
t.value ? a("", !0) : (e(), l("div", Gs, u(((Je = (De = n.app) == null ? void 0 : De.support) == null ? void 0 : Je.label) || m.value("ui.layout.support")), 1))
|
|
848
840
|
], 2)
|
|
849
841
|
], 2)
|
|
850
842
|
], 10, As)) : a("", !0)
|
|
851
843
|
], 2),
|
|
852
|
-
n.island && !
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
]
|
|
857
|
-
(
|
|
844
|
+
n.island && !t.value ? (e(), l("div", Is, [
|
|
845
|
+
s("span", null, [
|
|
846
|
+
we(u(m.value("ui.layout.powered_by")) + " ", 1),
|
|
847
|
+
b[6] || (b[6] = s("span", { class: "capitalize" }, "OneB", -1))
|
|
848
|
+
]),
|
|
849
|
+
(Ke = n.app) != null && Ke.version ? (e(), l("span", Ns, "V." + u(n.app.version), 1)) : a("", !0)
|
|
858
850
|
])) : a("", !0),
|
|
859
|
-
n.island ? a("", !0) : (
|
|
851
|
+
n.island ? a("", !0) : (e(), l("p", {
|
|
860
852
|
key: 3,
|
|
861
|
-
class:
|
|
853
|
+
class: C([[t.value ? "hidden" : "w-full"], "text-[7px] pl-2 text-[#979CA9] flex justify-between font-extralight pt-1"])
|
|
862
854
|
}, [
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
]
|
|
867
|
-
|
|
855
|
+
s("span", null, [
|
|
856
|
+
we(u(m.value("ui.layout.powered_by")) + " ", 1),
|
|
857
|
+
b[7] || (b[7] = s("span", { class: "text-blue-700" }, "OneB", -1))
|
|
858
|
+
]),
|
|
859
|
+
s("span", null, u((Qe = n.app) == null ? void 0 : Qe.version), 1)
|
|
868
860
|
], 2))
|
|
869
861
|
], 2), [
|
|
870
|
-
[
|
|
862
|
+
[ge, f.value && (!n.island || !t.value)]
|
|
871
863
|
])
|
|
872
864
|
], 38);
|
|
873
865
|
};
|
|
874
866
|
}
|
|
875
867
|
});
|
|
876
|
-
const
|
|
868
|
+
const c1 = /* @__PURE__ */ _e(Rs, [["__scopeId", "data-v-28310709"]]), qs = { class: "h-screen relative" }, Us = {
|
|
877
869
|
class: "header h-[56px] flex items-center flex-nowrap fixed top-0 left-0 w-full z-50",
|
|
878
870
|
style: { background: "rgba(245, 247, 251, 0.8)", "backdrop-filter": "blur(5px)" }
|
|
879
|
-
},
|
|
871
|
+
}, Zs = { class: "sm:p-2 pl-2 flex-shrink-0" }, Ds = { class: "w-8 h-8 sm:w-10 sm:h-10 flex items-center flex-shrink-0" }, Js = ["src"], Ks = { class: "whitespace-nowrap font-semibold sm:text-xl truncate" }, Qs = { class: "text-xs whitespace-nowrap truncate" }, Xs = { class: "w-full pl-1" }, Ys = { class: "w-full flex justify-end sm:pr-4" }, et = { class: "flex items-center sm:space-x-1" }, st = {
|
|
880
872
|
key: 0,
|
|
881
873
|
class: "module-border-wrap flex justify-center items-center h-6 w-max"
|
|
882
|
-
},
|
|
874
|
+
}, tt = { class: "h-4 w-4" }, lt = { class: "ml-2 hidden sm:flex" }, ot = { class: "flex h-full" }, nt = { key: 0 }, at = {
|
|
883
875
|
key: 0,
|
|
884
876
|
class: "sm:w-[560px] w-full relative h-full"
|
|
885
|
-
},
|
|
877
|
+
}, rt = { class: "h-full relative" }, it = { class: "flex items-center p-3 space-x-1.5" }, ut = { class: "w-full font-medium" }, dt = {
|
|
886
878
|
class: "overflow-auto",
|
|
887
879
|
style: { height: "calc(100% - 62px)" }
|
|
888
|
-
},
|
|
880
|
+
}, pt = {
|
|
889
881
|
key: 0,
|
|
890
882
|
class: "p-5"
|
|
891
|
-
},
|
|
883
|
+
}, ct = { key: 1 }, ht = { class: "p-4 text-gray text-center" }, mt = { key: 2 }, vt = {
|
|
892
884
|
class: "p-3 space-y-1.5 rounded-lg",
|
|
893
885
|
style: { "box-shadow": "0 0 6px #eaeaea" }
|
|
894
|
-
},
|
|
886
|
+
}, ft = { key: 0 }, wt = {
|
|
895
887
|
key: 0,
|
|
896
888
|
class: "text-xs px-2 py-1 rounded-md bg-green-600 text-white"
|
|
897
|
-
},
|
|
889
|
+
}, yt = {
|
|
898
890
|
key: 1,
|
|
899
891
|
class: "text-xs px-2 py-1 rounded-md bg-yellow-600 text-white"
|
|
900
|
-
},
|
|
892
|
+
}, bt = {
|
|
901
893
|
key: 2,
|
|
902
894
|
class: "text-xs px-2 py-1 rounded-md bg-blue-600 text-white"
|
|
903
|
-
},
|
|
895
|
+
}, Ct = {
|
|
904
896
|
key: 3,
|
|
905
897
|
class: "text-xs px-2 py-1 rounded-md bg-gray-600 text-white"
|
|
906
|
-
},
|
|
898
|
+
}, gt = { class: "text-lg font-medium" }, xt = { class: "text-sm text-gray-600" }, kt = { key: 0 }, _t = ["src"], $t = { class: "text-sm" }, Lt = { key: 1 }, St = ["href"], Mt = { class: "text-sm flex items-center justify-between mt-1" }, Bt = { class: "text-gray-800" }, jt = ["href"], Tt = /* @__PURE__ */ ke({
|
|
907
899
|
__name: "OneMainLayout",
|
|
908
|
-
props:
|
|
900
|
+
props: p1,
|
|
909
901
|
emits: ["load-news", "load-tariff", "open-tariff"],
|
|
910
902
|
setup(x, { emit: k }) {
|
|
911
|
-
const
|
|
912
|
-
let
|
|
913
|
-
window.document.body.offsetWidth < 1024 && (window.localStorage.getItem("sidebar-slim") == null && window.localStorage.setItem("sidebar-slim", "1"),
|
|
914
|
-
const
|
|
915
|
-
|
|
916
|
-
window.localStorage.setItem("sidebar-slim", String(
|
|
903
|
+
const d = k, p = x, F = Be(), m = j(() => p.t ?? F);
|
|
904
|
+
let w = window.localStorage.getItem("sidebar-slim");
|
|
905
|
+
window.document.body.offsetWidth < 1024 && (window.localStorage.getItem("sidebar-slim") == null && window.localStorage.setItem("sidebar-slim", "1"), w = "1");
|
|
906
|
+
const O = z(w === "1");
|
|
907
|
+
z(!0), pe(O, (i) => {
|
|
908
|
+
window.localStorage.setItem("sidebar-slim", String(i ? 1 : 0));
|
|
917
909
|
});
|
|
918
|
-
const
|
|
919
|
-
|
|
920
|
-
},
|
|
921
|
-
|
|
910
|
+
const H = z(!1), P = () => {
|
|
911
|
+
H.value = !H.value, H.value && d("load-news");
|
|
912
|
+
}, M = j(() => p.showHeadre);
|
|
913
|
+
pe(
|
|
922
914
|
() => p.showHeadre,
|
|
923
915
|
// Передаємо доступ до props
|
|
924
916
|
() => {
|
|
925
|
-
|
|
917
|
+
M.value = p.showHeadre;
|
|
926
918
|
}
|
|
927
919
|
);
|
|
928
|
-
const
|
|
929
|
-
|
|
930
|
-
},
|
|
931
|
-
|
|
932
|
-
window.addEventListener("resize",
|
|
933
|
-
}),
|
|
934
|
-
window.removeEventListener("resize",
|
|
920
|
+
const $ = z(window.innerWidth), q = () => {
|
|
921
|
+
$.value = window.innerWidth;
|
|
922
|
+
}, R = j(() => $.value <= 768);
|
|
923
|
+
Ce(() => {
|
|
924
|
+
window.addEventListener("resize", q);
|
|
925
|
+
}), Se(() => {
|
|
926
|
+
window.removeEventListener("resize", q);
|
|
935
927
|
});
|
|
936
|
-
const
|
|
937
|
-
var
|
|
938
|
-
(
|
|
939
|
-
},
|
|
940
|
-
|
|
928
|
+
const E = (i) => {
|
|
929
|
+
var f;
|
|
930
|
+
(f = p.handlers) == null || f.onSetLang(i);
|
|
931
|
+
}, t = z(!1), L = () => {
|
|
932
|
+
t.value = window.matchMedia("(min-width: 769px)").matches;
|
|
941
933
|
};
|
|
942
|
-
return
|
|
943
|
-
|
|
944
|
-
}),
|
|
945
|
-
window.removeEventListener("resize",
|
|
946
|
-
}), (
|
|
947
|
-
var o,
|
|
948
|
-
const
|
|
949
|
-
return
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
onClick:
|
|
934
|
+
return Ce(() => {
|
|
935
|
+
L(), window.addEventListener("resize", L);
|
|
936
|
+
}), Se(() => {
|
|
937
|
+
window.removeEventListener("resize", L);
|
|
938
|
+
}), (i, f) => {
|
|
939
|
+
var o, r, y, V, U, ae, K, Q, X, n, b, Y, ee, se;
|
|
940
|
+
const J = s1("RouterLink");
|
|
941
|
+
return e(), l("div", qs, [
|
|
942
|
+
ie(s("div", Us, [
|
|
943
|
+
s("div", Zs, [
|
|
944
|
+
s("button", {
|
|
945
|
+
onClick: f[0] || (f[0] = (h) => O.value = !O.value),
|
|
954
946
|
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"
|
|
955
947
|
}, [
|
|
956
|
-
|
|
948
|
+
B(S(je), { class: "sm:w-[24px] sm:h-[24px] w-6 h-6" })
|
|
957
949
|
])
|
|
958
950
|
]),
|
|
959
|
-
|
|
960
|
-
|
|
951
|
+
s("div", Ds, [
|
|
952
|
+
i.logoSrc != null ? (e(), l("img", {
|
|
961
953
|
key: 0,
|
|
962
|
-
src:
|
|
954
|
+
src: i.logoSrc,
|
|
963
955
|
class: "w-8 h-8 mx-auto",
|
|
964
956
|
alt: "logo"
|
|
965
|
-
}, null, 8,
|
|
957
|
+
}, null, 8, Js)) : a("", !0)
|
|
966
958
|
]),
|
|
967
|
-
|
|
959
|
+
i.app != null ? (e(), c(J, {
|
|
968
960
|
key: 0,
|
|
969
961
|
to: "/",
|
|
970
962
|
class: "sm:pl-2 pl-1 truncate w-full"
|
|
971
963
|
}, {
|
|
972
964
|
default: Z(() => {
|
|
973
|
-
var
|
|
965
|
+
var h, G;
|
|
974
966
|
return [
|
|
975
|
-
|
|
976
|
-
|
|
967
|
+
s("div", Ks, u(i.app.name), 1),
|
|
968
|
+
s("div", Qs, u((G = (h = i.app) == null ? void 0 : h.workspace) == null ? void 0 : G.name), 1)
|
|
977
969
|
];
|
|
978
970
|
}),
|
|
979
971
|
_: 1
|
|
980
972
|
})) : a("", !0),
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
973
|
+
de(i.$slots, "head-left", {}, void 0, !0),
|
|
974
|
+
s("div", Xs, [
|
|
975
|
+
s("div", Ys, [
|
|
976
|
+
s("div", et, [
|
|
977
|
+
i.improveTariff && ((o = i.improveTariff) != null && o.label) && i.improveTariff.label ? (e(), l("div", st, [
|
|
978
|
+
s("button", {
|
|
987
979
|
type: "button",
|
|
988
980
|
class: "cursor-pointer flex items-center h-full bg-[#FFF8E4] hover:bg-[#f2e3b8] rounded-full px-2 py-1 font-medium",
|
|
989
|
-
onClick:
|
|
990
|
-
(...
|
|
991
|
-
var G,
|
|
992
|
-
return ((G =
|
|
981
|
+
onClick: f[1] || (f[1] = //@ts-ignore
|
|
982
|
+
(...h) => {
|
|
983
|
+
var G, te;
|
|
984
|
+
return ((G = i.handlers) == null ? void 0 : G.onImproveTariff) && ((te = i.handlers) == null ? void 0 : te.onImproveTariff(...h));
|
|
993
985
|
}),
|
|
994
986
|
style: { "font-size": "10px" }
|
|
995
987
|
}, [
|
|
996
|
-
|
|
997
|
-
(
|
|
988
|
+
s("div", tt, [
|
|
989
|
+
(e(), c(_((r = i.improveTariff) == null ? void 0 : r.icon), { class: "h-4 w-4 mx-auto" }))
|
|
998
990
|
]),
|
|
999
|
-
|
|
991
|
+
s("span", lt, u((y = i.improveTariff) == null ? void 0 : y.label), 1)
|
|
1000
992
|
])
|
|
1001
993
|
])) : a("", !0),
|
|
1002
|
-
|
|
1003
|
-
|
|
994
|
+
de(i.$slots, "head-right", {}, void 0, !0),
|
|
995
|
+
i.help ? (e(), c(o1, {
|
|
1004
996
|
key: 1,
|
|
1005
|
-
help:
|
|
1006
|
-
|
|
1007
|
-
|
|
997
|
+
help: i.help,
|
|
998
|
+
"help-slug": i.helpSlug,
|
|
999
|
+
t: m.value
|
|
1000
|
+
}, null, 8, ["help", "help-slug", "t"])) : a("", !0),
|
|
1001
|
+
((V = i.handlers) == null ? void 0 : V.onBrowse) != null ? (e(), c(n1, {
|
|
1008
1002
|
key: 2,
|
|
1009
|
-
workspace: (
|
|
1010
|
-
apps: ((
|
|
1011
|
-
|
|
1012
|
-
"
|
|
1013
|
-
"on-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
"account
|
|
1022
|
-
"logout
|
|
1023
|
-
|
|
1024
|
-
"on-account": (se = e.handlers) == null ? void 0 : se.onAccount,
|
|
1025
|
-
"on-logout": (te = e.handlers) == null ? void 0 : te.onLogout
|
|
1026
|
-
}, null, 8, ["user", "menu", "app", "account-label", "logout-label", "version-label", "on-account", "on-logout"])
|
|
1003
|
+
workspace: (U = i.app) == null ? void 0 : U.workspace,
|
|
1004
|
+
apps: ((ae = i.app) == null ? void 0 : ae.apps) || [],
|
|
1005
|
+
t: m.value,
|
|
1006
|
+
"on-app": (K = i.handlers) == null ? void 0 : K.onApp,
|
|
1007
|
+
"on-change": (Q = i.handlers) == null ? void 0 : Q.onChange,
|
|
1008
|
+
onOpen: (X = i.handlers) == null ? void 0 : X.onBrowse
|
|
1009
|
+
}, null, 8, ["workspace", "apps", "t", "on-app", "on-change", "onOpen"])) : a("", !0),
|
|
1010
|
+
B(a1, {
|
|
1011
|
+
user: i.user,
|
|
1012
|
+
menu: i.menu,
|
|
1013
|
+
app: i.app,
|
|
1014
|
+
t: m.value,
|
|
1015
|
+
"on-account": (n = i.handlers) == null ? void 0 : n.onAccount,
|
|
1016
|
+
"on-logout": (b = i.handlers) == null ? void 0 : b.onLogout
|
|
1017
|
+
}, null, 8, ["user", "menu", "app", "t", "on-account", "on-logout"])
|
|
1027
1018
|
])
|
|
1028
1019
|
])
|
|
1029
1020
|
])
|
|
1030
1021
|
], 512), [
|
|
1031
|
-
[
|
|
1022
|
+
[ge, M.value]
|
|
1032
1023
|
]),
|
|
1033
|
-
|
|
1034
|
-
!
|
|
1024
|
+
s("div", ot, [
|
|
1025
|
+
!R.value || !O.value ? (e(), c(c1, {
|
|
1035
1026
|
key: 0,
|
|
1036
|
-
app:
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
news:
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
t("
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1027
|
+
app: i.app,
|
|
1028
|
+
t: m.value,
|
|
1029
|
+
items: i.sidebarItems,
|
|
1030
|
+
"with-news": i.news != null,
|
|
1031
|
+
news: i.news,
|
|
1032
|
+
isMobile: R.value,
|
|
1033
|
+
modelValue: O.value,
|
|
1034
|
+
"onUpdate:modelValue": f[2] || (f[2] = (h) => O.value = h),
|
|
1035
|
+
onShowNews: P,
|
|
1036
|
+
onSelectLanguage: E,
|
|
1037
|
+
onUpdateCollapsed: f[3] || (f[3] = (h) => O.value = !O.value)
|
|
1038
|
+
}, null, 8, ["app", "t", "items", "with-news", "news", "isMobile", "modelValue"])) : a("", !0),
|
|
1039
|
+
s("div", {
|
|
1040
|
+
class: C([[
|
|
1041
|
+
O.value ? "" : "lg:ml-[260px] hidden sm:block",
|
|
1042
|
+
t.value ? "ml-[60px]" : ""
|
|
1051
1043
|
], "body scroll-body w-full overflow-y-auto"])
|
|
1052
1044
|
}, [
|
|
1053
|
-
|
|
1054
|
-
class:
|
|
1045
|
+
s("div", {
|
|
1046
|
+
class: C(["content transition-all", { "pt-[56px]": M.value }])
|
|
1055
1047
|
}, [
|
|
1056
|
-
|
|
1048
|
+
de(i.$slots, "default", {}, void 0, !0)
|
|
1057
1049
|
], 2)
|
|
1058
1050
|
], 2)
|
|
1059
1051
|
]),
|
|
1060
|
-
|
|
1061
|
-
|
|
1052
|
+
i.news ? (e(), l("div", nt, [
|
|
1053
|
+
H.value ? (e(), l("div", {
|
|
1062
1054
|
key: 0,
|
|
1063
1055
|
class: "fixed top-0 left-0 h-dvh w-screen bg-gray-100 bg-opacity-40 z-50",
|
|
1064
|
-
onClick:
|
|
1056
|
+
onClick: f[4] || (f[4] = ue((h) => H.value = !1, ["self"]))
|
|
1065
1057
|
})) : a("", !0),
|
|
1066
|
-
|
|
1067
|
-
class:
|
|
1058
|
+
s("div", {
|
|
1059
|
+
class: C(["opacity-100 shadow-lg transition-all fixed top-0 left-0 h-dvh overflow-hidden z-50 bg-white", [H.value ? "sm:w-[560px] w-full" : "w-0"]])
|
|
1068
1060
|
}, [
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1061
|
+
H.value ? (e(), l("div", at, [
|
|
1062
|
+
s("div", rt, [
|
|
1063
|
+
s("div", it, [
|
|
1064
|
+
B(xe, { class: "w-10 h-10" }),
|
|
1065
|
+
s("div", ut, u(m.value("ui.layout.news")), 1),
|
|
1066
|
+
s("div", null, [
|
|
1067
|
+
B(Me, {
|
|
1076
1068
|
variant: "touch",
|
|
1077
|
-
icon: S(
|
|
1078
|
-
onClick:
|
|
1069
|
+
icon: S(r1),
|
|
1070
|
+
onClick: f[5] || (f[5] = (h) => H.value = !1)
|
|
1079
1071
|
}, null, 8, ["icon"])
|
|
1080
1072
|
])
|
|
1081
1073
|
]),
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
])) : ((
|
|
1086
|
-
|
|
1087
|
-
])) : ((
|
|
1088
|
-
(
|
|
1089
|
-
key:
|
|
1074
|
+
s("div", dt, [
|
|
1075
|
+
i.news.isLoading && ((Y = i.news.items) == null ? void 0 : Y.length) === 0 ? (e(), l("div", pt, [
|
|
1076
|
+
B(i1, { class: "w-6 h-6 text-gray-600 mx-auto" })
|
|
1077
|
+
])) : ((ee = i.news.items) == null ? void 0 : ee.length) === 0 ? (e(), l("div", ct, [
|
|
1078
|
+
s("div", ht, u(i.news.emptyText), 1)
|
|
1079
|
+
])) : ((se = i.news.items) == null ? void 0 : se.length) > 0 ? (e(), l("div", mt, [
|
|
1080
|
+
(e(!0), l(N, null, D(i.news.items, (h) => (e(), l("div", {
|
|
1081
|
+
key: h.id,
|
|
1090
1082
|
class: "p-3"
|
|
1091
1083
|
}, [
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1084
|
+
s("div", vt, [
|
|
1085
|
+
s("div", null, [
|
|
1086
|
+
h.type ? (e(), l("div", ft, [
|
|
1087
|
+
h.type === 10 ? (e(), l("span", wt, "update")) : h.type === 11 ? (e(), l("span", yt, "warning")) : h.type === 12 ? (e(), l("span", bt, "notice")) : h.type === 13 ? (e(), l("span", Ct, "ads")) : a("", !0)
|
|
1096
1088
|
])) : a("", !0),
|
|
1097
|
-
|
|
1098
|
-
|
|
1089
|
+
s("div", gt, u(h.title), 1),
|
|
1090
|
+
s("div", xt, u(h.summary), 1)
|
|
1099
1091
|
]),
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
src:
|
|
1092
|
+
h.image_url ? (e(), l("div", kt, [
|
|
1093
|
+
s("img", {
|
|
1094
|
+
src: h.image_url,
|
|
1103
1095
|
alt: "",
|
|
1104
1096
|
class: "w-full rounded-md"
|
|
1105
|
-
}, null, 8,
|
|
1097
|
+
}, null, 8, _t)
|
|
1106
1098
|
])) : a("", !0),
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
text:
|
|
1099
|
+
s("div", $t, [
|
|
1100
|
+
B(u1, {
|
|
1101
|
+
text: h.body
|
|
1110
1102
|
}, null, 8, ["text"])
|
|
1111
1103
|
]),
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
href:
|
|
1104
|
+
h.video_url ? (e(), l("div", Lt, [
|
|
1105
|
+
s("a", {
|
|
1106
|
+
href: h.video_url,
|
|
1115
1107
|
target: "_blank",
|
|
1116
1108
|
class: "text-blue-600 hover:text-blue-700 px-3 py-2 border rounded-md w-full block"
|
|
1117
|
-
}, i
|
|
1109
|
+
}, u(i.news.openVideoText), 9, St)
|
|
1118
1110
|
])) : a("", !0),
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1111
|
+
s("div", Mt, [
|
|
1112
|
+
s("span", Bt, u(h.published), 1),
|
|
1113
|
+
h.post_url ? (e(), l("a", {
|
|
1122
1114
|
key: 0,
|
|
1123
|
-
href:
|
|
1115
|
+
href: h.post_url,
|
|
1124
1116
|
target: "_blank",
|
|
1125
1117
|
class: "text-blue-600 hover:text-blue-700 block"
|
|
1126
|
-
}, i
|
|
1118
|
+
}, u(i.news.moreText), 9, jt)) : a("", !0)
|
|
1127
1119
|
])
|
|
1128
1120
|
])
|
|
1129
1121
|
]))), 128))
|
|
@@ -1137,316 +1129,329 @@ const d1 = /* @__PURE__ */ Me(Ns, [["__scopeId", "data-v-bcc0bd0f"]]), Gs = { cl
|
|
|
1137
1129
|
};
|
|
1138
1130
|
}
|
|
1139
1131
|
});
|
|
1140
|
-
const
|
|
1132
|
+
const Nl = /* @__PURE__ */ _e(Tt, [["__scopeId", "data-v-0db00cd0"]]), zt = { class: "bg-secondary-body-island min-h-screen p-3" }, Ot = { class: "flex gap-3 items-stretch" }, Vt = { class: "flex-1 flex flex-col gap-3 min-w-0" }, Ht = { class: "bg-white rounded-10 h-14 flex items-center justify-between pl-3 pr-3 shrink-0" }, Ft = { class: "flex items-center min-w-0 gap-2" }, Et = { class: "text-base text-black truncate" }, Wt = ["onClick"], At = { class: "text-base text-black truncate" }, Pt = { class: "w-[320px] py-2" }, Gt = ["onClick"], It = { class: "text-sm" }, Nt = {
|
|
1141
1133
|
key: 0,
|
|
1142
1134
|
class: "border-t border-secondary-stroke my-1"
|
|
1143
|
-
},
|
|
1135
|
+
}, Rt = {
|
|
1144
1136
|
key: 1,
|
|
1145
1137
|
class: "text-2xs text-secondary-content px-3 py-1 uppercase"
|
|
1146
|
-
},
|
|
1138
|
+
}, qt = ["onClick"], Ut = { class: "text-sm" }, Zt = {
|
|
1147
1139
|
key: 2,
|
|
1148
1140
|
class: "border-t border-secondary-stroke mt-1 pt-1"
|
|
1149
|
-
},
|
|
1141
|
+
}, Dt = ["onClick"], Jt = { class: "flex items-center gap-2 shrink-0" }, Kt = ["href"], Qt = { class: "text-2xs font-semibold text-black leading-loose" }, Xt = { class: "flex-1 min-w-0" }, Yt = { key: 0 }, el = {
|
|
1150
1142
|
key: 0,
|
|
1151
1143
|
class: "sm:w-[560px] w-full relative h-full"
|
|
1152
|
-
},
|
|
1144
|
+
}, sl = { class: "h-full relative" }, tl = { class: "flex items-center p-3 space-x-1.5" }, ll = { class: "w-full font-medium" }, ol = {
|
|
1153
1145
|
class: "overflow-auto",
|
|
1154
1146
|
style: { height: "calc(100% - 62px)" }
|
|
1155
|
-
},
|
|
1147
|
+
}, nl = {
|
|
1156
1148
|
key: 0,
|
|
1157
1149
|
class: "p-5"
|
|
1158
|
-
},
|
|
1150
|
+
}, al = { key: 1 }, rl = { class: "p-4 text-gray text-center" }, il = { key: 2 }, ul = {
|
|
1159
1151
|
class: "p-3 space-y-1.5 rounded-lg",
|
|
1160
1152
|
style: { "box-shadow": "0 0 6px #eaeaea" }
|
|
1161
|
-
},
|
|
1153
|
+
}, dl = { key: 0 }, pl = {
|
|
1162
1154
|
key: 0,
|
|
1163
1155
|
class: "text-xs px-2 py-1 rounded-md bg-green-600 text-white"
|
|
1164
|
-
},
|
|
1156
|
+
}, cl = {
|
|
1165
1157
|
key: 1,
|
|
1166
1158
|
class: "text-xs px-2 py-1 rounded-md bg-yellow-600 text-white"
|
|
1167
|
-
},
|
|
1159
|
+
}, hl = {
|
|
1168
1160
|
key: 2,
|
|
1169
1161
|
class: "text-xs px-2 py-1 rounded-md bg-blue-600 text-white"
|
|
1170
|
-
},
|
|
1162
|
+
}, ml = {
|
|
1171
1163
|
key: 3,
|
|
1172
1164
|
class: "text-xs px-2 py-1 rounded-md bg-gray-600 text-white"
|
|
1173
|
-
},
|
|
1165
|
+
}, vl = { class: "text-lg font-medium" }, fl = { class: "text-sm text-gray-600" }, wl = { key: 0 }, yl = ["src"], bl = { class: "text-sm" }, Cl = { key: 1 }, gl = ["href"], xl = { class: "text-sm flex items-center justify-between mt-1" }, kl = { class: "text-gray-800" }, _l = ["href"], $l = /* @__PURE__ */ ke({
|
|
1174
1166
|
__name: "OneIslandLayout",
|
|
1175
|
-
props:
|
|
1167
|
+
props: p1,
|
|
1176
1168
|
emits: ["load-news", "load-tariff", "open-tariff", "browse", "workspace-click", "manage-workspaces"],
|
|
1177
1169
|
setup(x, { emit: k }) {
|
|
1178
|
-
const
|
|
1179
|
-
var o,
|
|
1180
|
-
|
|
1181
|
-
},
|
|
1182
|
-
var o,
|
|
1183
|
-
|
|
1184
|
-
},
|
|
1185
|
-
var o,
|
|
1186
|
-
|
|
1170
|
+
const d = k, p = x, F = Be(), m = j(() => p.t ?? F), w = () => {
|
|
1171
|
+
var o, r;
|
|
1172
|
+
d("browse"), (r = (o = p.handlers) == null ? void 0 : o.onBrowse) == null || r.call(o);
|
|
1173
|
+
}, O = () => {
|
|
1174
|
+
var o, r;
|
|
1175
|
+
d("workspace-click"), (r = (o = p.handlers) == null ? void 0 : o.onWorkspace) == null || r.call(o);
|
|
1176
|
+
}, H = () => {
|
|
1177
|
+
var o, r, y;
|
|
1178
|
+
d("manage-workspaces"), (o = p.handlers) != null && o.onManageWorkspaces ? p.handlers.onManageWorkspaces() : (y = (r = p.handlers) == null ? void 0 : r.onChange) == null || y.call(r);
|
|
1187
1179
|
};
|
|
1188
|
-
let
|
|
1189
|
-
window.document.body.offsetWidth < 1024 && (window.localStorage.getItem("island-sidebar-slim") == null && window.localStorage.setItem("island-sidebar-slim", "1"),
|
|
1190
|
-
const
|
|
1191
|
-
|
|
1180
|
+
let P = window.localStorage.getItem("island-sidebar-slim");
|
|
1181
|
+
window.document.body.offsetWidth < 1024 && (window.localStorage.getItem("island-sidebar-slim") == null && window.localStorage.setItem("island-sidebar-slim", "1"), P = "1");
|
|
1182
|
+
const M = z(P === "1");
|
|
1183
|
+
pe(M, (o) => {
|
|
1192
1184
|
window.localStorage.setItem("island-sidebar-slim", String(o ? 1 : 0));
|
|
1193
1185
|
});
|
|
1194
|
-
const
|
|
1195
|
-
|
|
1196
|
-
},
|
|
1197
|
-
var
|
|
1198
|
-
const o = (
|
|
1186
|
+
const $ = z(!1), q = () => {
|
|
1187
|
+
$.value = !$.value, $.value && d("load-news");
|
|
1188
|
+
}, R = z(null), E = () => {
|
|
1189
|
+
var r, y, V;
|
|
1190
|
+
const o = (V = (y = (r = R.value) == null ? void 0 : r.$el) == null ? void 0 : y.querySelector) == null ? void 0 : V.call(y, "button");
|
|
1199
1191
|
o == null || o.click();
|
|
1200
|
-
},
|
|
1201
|
-
|
|
1192
|
+
}, t = j(() => p.showHeadre);
|
|
1193
|
+
pe(
|
|
1202
1194
|
() => p.showHeadre,
|
|
1203
1195
|
() => {
|
|
1204
|
-
|
|
1196
|
+
t.value = p.showHeadre;
|
|
1205
1197
|
}
|
|
1206
1198
|
);
|
|
1207
|
-
const
|
|
1208
|
-
|
|
1209
|
-
},
|
|
1210
|
-
|
|
1211
|
-
window.addEventListener("resize",
|
|
1212
|
-
}),
|
|
1213
|
-
window.removeEventListener("resize",
|
|
1199
|
+
const L = z(window.innerWidth), i = () => {
|
|
1200
|
+
L.value = window.innerWidth;
|
|
1201
|
+
}, f = j(() => L.value <= 768);
|
|
1202
|
+
Ce(() => {
|
|
1203
|
+
window.addEventListener("resize", i);
|
|
1204
|
+
}), Se(() => {
|
|
1205
|
+
window.removeEventListener("resize", i);
|
|
1214
1206
|
});
|
|
1215
|
-
const
|
|
1216
|
-
var
|
|
1217
|
-
(
|
|
1207
|
+
const J = (o) => {
|
|
1208
|
+
var r, y;
|
|
1209
|
+
(y = (r = p.handlers) == null ? void 0 : r.onSetLang) == null || y.call(r, o);
|
|
1218
1210
|
};
|
|
1219
|
-
return (o,
|
|
1220
|
-
var
|
|
1221
|
-
return
|
|
1222
|
-
|
|
1223
|
-
!
|
|
1211
|
+
return (o, r) => {
|
|
1212
|
+
var y, V, U, ae, K, Q, X, n, b, Y, ee, se, h, G, te, ce, he, me, ve, fe;
|
|
1213
|
+
return e(), l("div", zt, [
|
|
1214
|
+
s("div", Ot, [
|
|
1215
|
+
!f.value || !M.value ? (e(), c(c1, {
|
|
1224
1216
|
key: 0,
|
|
1225
1217
|
items: o.sidebarItems,
|
|
1226
1218
|
island: !0,
|
|
1219
|
+
t: m.value,
|
|
1227
1220
|
app: o.app,
|
|
1228
1221
|
"logo-src": o.logoSrc,
|
|
1229
1222
|
"with-news": o.news != null,
|
|
1230
1223
|
news: o.news,
|
|
1231
|
-
isMobile:
|
|
1232
|
-
modelValue:
|
|
1233
|
-
onToggleMenu:
|
|
1234
|
-
onShowNews:
|
|
1235
|
-
onShowHelp:
|
|
1236
|
-
onSelectLanguage:
|
|
1237
|
-
onUpdateCollapsed:
|
|
1238
|
-
}, null, 8, ["items", "app", "logo-src", "with-news", "news", "isMobile", "modelValue"])) : a("", !0),
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1224
|
+
isMobile: f.value,
|
|
1225
|
+
modelValue: M.value,
|
|
1226
|
+
onToggleMenu: r[0] || (r[0] = (v) => M.value = !M.value),
|
|
1227
|
+
onShowNews: q,
|
|
1228
|
+
onShowHelp: E,
|
|
1229
|
+
onSelectLanguage: J,
|
|
1230
|
+
onUpdateCollapsed: r[1] || (r[1] = (v) => M.value = !M.value)
|
|
1231
|
+
}, null, 8, ["items", "t", "app", "logo-src", "with-news", "news", "isMobile", "modelValue"])) : a("", !0),
|
|
1232
|
+
f.value && !M.value ? (e(), l("div", {
|
|
1233
|
+
key: 1,
|
|
1234
|
+
class: "fixed inset-0 z-40 bg-black/20",
|
|
1235
|
+
onClick: r[2] || (r[2] = (v) => M.value = !0)
|
|
1236
|
+
})) : a("", !0),
|
|
1237
|
+
s("div", Vt, [
|
|
1238
|
+
ie(s("header", Ht, [
|
|
1239
|
+
s("div", Ft, [
|
|
1240
|
+
f.value ? (e(), l("button", {
|
|
1243
1241
|
key: 0,
|
|
1244
1242
|
type: "button",
|
|
1243
|
+
class: "w-9 h-9 -ml-1 rounded-10 flex items-center justify-center text-secondary-base hover:bg-secondary-body-active transition-colors shrink-0",
|
|
1244
|
+
onClick: r[3] || (r[3] = (v) => M.value = !M.value)
|
|
1245
|
+
}, [
|
|
1246
|
+
(e(), c(_(S(je)), { class: "w-5 h-5" }))
|
|
1247
|
+
])) : a("", !0),
|
|
1248
|
+
!f.value && ((y = o.handlers) != null && y.onWorkspace) && (o.workspace || (V = o.app) != null && V.workspace) ? (e(), l("button", {
|
|
1249
|
+
key: 1,
|
|
1250
|
+
type: "button",
|
|
1245
1251
|
class: "flex items-center gap-2 px-2 py-1 rounded-10 bg-[#F5F5F5] hover:bg-secondary-body transition-colors min-w-0",
|
|
1246
|
-
onClick:
|
|
1252
|
+
onClick: O
|
|
1247
1253
|
}, [
|
|
1248
|
-
|
|
1249
|
-
text: (
|
|
1250
|
-
src: (
|
|
1254
|
+
B(be, {
|
|
1255
|
+
text: (ae = o.workspace || ((U = o.app) == null ? void 0 : U.workspace)) == null ? void 0 : ae.name,
|
|
1256
|
+
src: (Q = o.workspace || ((K = o.app) == null ? void 0 : K.workspace)) == null ? void 0 : Q.photo_url,
|
|
1251
1257
|
size: 20,
|
|
1252
1258
|
rounded: !1
|
|
1253
1259
|
}, null, 8, ["text", "src"]),
|
|
1254
|
-
|
|
1255
|
-
(
|
|
1256
|
-
])) : o.workspace || (
|
|
1257
|
-
key:
|
|
1260
|
+
s("span", Et, u((n = o.workspace || ((X = o.app) == null ? void 0 : X.workspace)) == null ? void 0 : n.name), 1),
|
|
1261
|
+
(e(), c(_(S(ye)), { class: "w-4 h-4 text-secondary-base shrink-0" }))
|
|
1262
|
+
])) : !f.value && (o.workspace || (b = o.app) != null && b.workspace) ? (e(), c(l1, {
|
|
1263
|
+
key: 2,
|
|
1258
1264
|
"append-body": !0,
|
|
1259
1265
|
stick: "bottom-start"
|
|
1260
1266
|
}, {
|
|
1261
|
-
button: Z(({ onToggle:
|
|
1262
|
-
var
|
|
1267
|
+
button: Z(({ onToggle: v }) => {
|
|
1268
|
+
var W, I, le, oe, T, re;
|
|
1263
1269
|
return [
|
|
1264
|
-
|
|
1270
|
+
s("button", {
|
|
1265
1271
|
type: "button",
|
|
1266
1272
|
class: "flex items-center gap-2 px-2 py-1 rounded-10 bg-[#F5F5F5] hover:bg-secondary-body transition-colors min-w-0",
|
|
1267
|
-
onClick: (
|
|
1273
|
+
onClick: (A) => (O(), v())
|
|
1268
1274
|
}, [
|
|
1269
|
-
|
|
1270
|
-
text: (I = o.workspace || ((
|
|
1271
|
-
src: (
|
|
1275
|
+
B(be, {
|
|
1276
|
+
text: (I = o.workspace || ((W = o.app) == null ? void 0 : W.workspace)) == null ? void 0 : I.name,
|
|
1277
|
+
src: (oe = o.workspace || ((le = o.app) == null ? void 0 : le.workspace)) == null ? void 0 : oe.photo_url,
|
|
1272
1278
|
size: 20,
|
|
1273
1279
|
rounded: !1
|
|
1274
1280
|
}, null, 8, ["text", "src"]),
|
|
1275
|
-
|
|
1276
|
-
(
|
|
1277
|
-
], 8,
|
|
1281
|
+
s("span", At, u((re = o.workspace || ((T = o.app) == null ? void 0 : T.workspace)) == null ? void 0 : re.name), 1),
|
|
1282
|
+
(e(), c(_(S(ye)), { class: "w-4 h-4 text-secondary-base shrink-0" }))
|
|
1283
|
+
], 8, Wt)
|
|
1278
1284
|
];
|
|
1279
1285
|
}),
|
|
1280
|
-
menu: Z(({ onToggle:
|
|
1281
|
-
var
|
|
1286
|
+
menu: Z(({ onToggle: v }) => {
|
|
1287
|
+
var W, I, le, oe;
|
|
1282
1288
|
return [
|
|
1283
|
-
|
|
1284
|
-
(
|
|
1285
|
-
key:
|
|
1289
|
+
s("div", Pt, [
|
|
1290
|
+
(e(!0), l(N, null, D(o.workspaces || [], (T) => (e(), l("div", {
|
|
1291
|
+
key: T.name,
|
|
1286
1292
|
class: "flex items-center gap-2 px-3 py-2 hover:bg-secondary-10 cursor-pointer",
|
|
1287
|
-
onClick: (
|
|
1288
|
-
var
|
|
1289
|
-
return (
|
|
1293
|
+
onClick: (re) => {
|
|
1294
|
+
var A, ne;
|
|
1295
|
+
return (ne = (A = o.handlers) == null ? void 0 : A.onChange) == null || ne.call(A, T), v();
|
|
1290
1296
|
}
|
|
1291
1297
|
}, [
|
|
1292
|
-
|
|
1293
|
-
text:
|
|
1294
|
-
src:
|
|
1298
|
+
B(be, {
|
|
1299
|
+
text: T.name,
|
|
1300
|
+
src: T.photo_url,
|
|
1295
1301
|
size: 24,
|
|
1296
1302
|
rounded: !1
|
|
1297
1303
|
}, null, 8, ["text", "src"]),
|
|
1298
|
-
|
|
1299
|
-
], 8,
|
|
1300
|
-
(
|
|
1301
|
-
(I = o.apps) != null && I.length ? (
|
|
1302
|
-
(
|
|
1303
|
-
key:
|
|
1304
|
+
s("span", It, u(T.name), 1)
|
|
1305
|
+
], 8, Gt))), 128)),
|
|
1306
|
+
(W = o.workspaces) != null && W.length ? (e(), l("div", Nt)) : a("", !0),
|
|
1307
|
+
(I = o.apps) != null && I.length ? (e(), l("div", Rt, u(m.value("ui.layout.apps")), 1)) : a("", !0),
|
|
1308
|
+
(e(!0), l(N, null, D(o.apps || [], (T) => (e(), l("div", {
|
|
1309
|
+
key: T.id,
|
|
1304
1310
|
class: "flex items-center gap-2 px-3 py-2 hover:bg-secondary-10 cursor-pointer",
|
|
1305
|
-
onClick: (
|
|
1306
|
-
var
|
|
1307
|
-
return (
|
|
1311
|
+
onClick: (re) => {
|
|
1312
|
+
var A, ne;
|
|
1313
|
+
return (ne = (A = o.handlers) == null ? void 0 : A.onApp) == null || ne.call(A, T), v();
|
|
1308
1314
|
}
|
|
1309
1315
|
}, [
|
|
1310
|
-
|
|
1311
|
-
text:
|
|
1312
|
-
src:
|
|
1316
|
+
B(be, {
|
|
1317
|
+
text: T.name,
|
|
1318
|
+
src: T.photo_url,
|
|
1313
1319
|
size: 24,
|
|
1314
1320
|
rounded: !1
|
|
1315
1321
|
}, null, 8, ["text", "src"]),
|
|
1316
|
-
|
|
1317
|
-
], 8,
|
|
1318
|
-
(
|
|
1319
|
-
|
|
1322
|
+
s("span", Ut, u(T.name), 1)
|
|
1323
|
+
], 8, qt))), 128)),
|
|
1324
|
+
(le = o.handlers) != null && le.onManageWorkspaces || (oe = o.handlers) != null && oe.onChange ? (e(), l("div", Zt, [
|
|
1325
|
+
s("button", {
|
|
1320
1326
|
type: "button",
|
|
1321
1327
|
class: "w-full text-left text-xs text-secondary-content px-3 py-2 hover:bg-secondary-10",
|
|
1322
|
-
onClick: (
|
|
1323
|
-
},
|
|
1328
|
+
onClick: (T) => (H(), v())
|
|
1329
|
+
}, u(m.value("ui.layout.change_workspace")), 9, Dt)
|
|
1324
1330
|
])) : a("", !0)
|
|
1325
1331
|
])
|
|
1326
1332
|
];
|
|
1327
1333
|
}),
|
|
1328
1334
|
_: 1
|
|
1329
1335
|
})) : a("", !0),
|
|
1330
|
-
|
|
1336
|
+
de(o.$slots, "head-left", {}, void 0, !0)
|
|
1331
1337
|
]),
|
|
1332
|
-
|
|
1333
|
-
(
|
|
1338
|
+
s("div", Jt, [
|
|
1339
|
+
(Y = o.improveTariff) != null && Y.label ? (e(), l("a", {
|
|
1334
1340
|
key: 0,
|
|
1335
|
-
href: ((
|
|
1341
|
+
href: ((ee = o.improveTariff) == null ? void 0 : ee.url) || "#",
|
|
1336
1342
|
class: "flex items-center gap-1.5 bg-[#FFF8E4] hover:bg-[#FAEBC2] rounded-full px-2 py-0.5 transition-colors",
|
|
1337
|
-
onClick:
|
|
1338
|
-
var
|
|
1339
|
-
return (I = (
|
|
1343
|
+
onClick: r[4] || (r[4] = ue((v) => {
|
|
1344
|
+
var W, I;
|
|
1345
|
+
return (I = (W = o.handlers) == null ? void 0 : W.onImproveTariff) == null ? void 0 : I.call(W);
|
|
1340
1346
|
}, ["prevent"]))
|
|
1341
1347
|
}, [
|
|
1342
|
-
o.improveTariff.icon ? (
|
|
1348
|
+
o.improveTariff.icon ? (e(), c(_(o.improveTariff.icon), {
|
|
1343
1349
|
key: 0,
|
|
1344
1350
|
class: "w-4 h-4 text-warning-base"
|
|
1345
1351
|
})) : a("", !0),
|
|
1346
|
-
|
|
1347
|
-
], 8,
|
|
1348
|
-
|
|
1349
|
-
o.help ? (
|
|
1352
|
+
s("span", Qt, u(o.improveTariff.label), 1)
|
|
1353
|
+
], 8, Kt)) : a("", !0),
|
|
1354
|
+
de(o.$slots, "head-right", {}, void 0, !0),
|
|
1355
|
+
o.help ? (e(), c(o1, {
|
|
1350
1356
|
key: 1,
|
|
1351
1357
|
ref_key: "helpMenuRef",
|
|
1352
|
-
ref:
|
|
1353
|
-
help: o.help
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
"on-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1358
|
+
ref: R,
|
|
1359
|
+
help: o.help,
|
|
1360
|
+
"help-slug": o.helpSlug,
|
|
1361
|
+
t: m.value
|
|
1362
|
+
}, null, 8, ["help", "help-slug", "t"])) : a("", !0),
|
|
1363
|
+
B(n1, {
|
|
1364
|
+
workspace: o.workspace || ((se = o.app) == null ? void 0 : se.workspace),
|
|
1365
|
+
apps: o.apps || ((h = o.app) == null ? void 0 : h.apps) || [],
|
|
1366
|
+
t: m.value,
|
|
1367
|
+
"on-app": (G = o.handlers) == null ? void 0 : G.onApp,
|
|
1368
|
+
"on-change": (te = o.handlers) == null ? void 0 : te.onChange,
|
|
1369
|
+
onOpen: w
|
|
1370
|
+
}, null, 8, ["workspace", "apps", "t", "on-app", "on-change"]),
|
|
1371
|
+
B(a1, {
|
|
1365
1372
|
user: o.user,
|
|
1366
1373
|
menu: o.menu,
|
|
1367
1374
|
app: o.app,
|
|
1368
|
-
|
|
1369
|
-
"
|
|
1370
|
-
"
|
|
1371
|
-
|
|
1372
|
-
"on-logout": (we = o.handlers) == null ? void 0 : we.onLogout
|
|
1373
|
-
}, null, 8, ["user", "menu", "app", "account-label", "logout-label", "version-label", "on-account", "on-logout"])
|
|
1375
|
+
t: m.value,
|
|
1376
|
+
"on-account": (ce = o.handlers) == null ? void 0 : ce.onAccount,
|
|
1377
|
+
"on-logout": (he = o.handlers) == null ? void 0 : he.onLogout
|
|
1378
|
+
}, null, 8, ["user", "menu", "app", "t", "on-account", "on-logout"])
|
|
1374
1379
|
])
|
|
1375
1380
|
], 512), [
|
|
1376
|
-
[
|
|
1381
|
+
[ge, t.value]
|
|
1377
1382
|
]),
|
|
1378
|
-
|
|
1379
|
-
|
|
1383
|
+
s("div", Xt, [
|
|
1384
|
+
de(o.$slots, "default", {}, void 0, !0)
|
|
1380
1385
|
])
|
|
1381
1386
|
])
|
|
1382
1387
|
]),
|
|
1383
|
-
o.news ? (
|
|
1384
|
-
|
|
1388
|
+
o.news ? (e(), l("div", Yt, [
|
|
1389
|
+
$.value ? (e(), l("div", {
|
|
1385
1390
|
key: 0,
|
|
1386
1391
|
class: "fixed top-0 left-0 h-dvh w-screen bg-gray-100 bg-opacity-40 z-50",
|
|
1387
|
-
onClick:
|
|
1392
|
+
onClick: r[5] || (r[5] = ue((v) => $.value = !1, ["self"]))
|
|
1388
1393
|
})) : a("", !0),
|
|
1389
|
-
|
|
1390
|
-
class:
|
|
1394
|
+
s("div", {
|
|
1395
|
+
class: C(["opacity-100 shadow-lg transition-all fixed top-0 left-0 h-dvh overflow-hidden z-50 bg-white", [$.value ? "sm:w-[560px] w-full" : "w-0"]])
|
|
1391
1396
|
}, [
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1397
|
+
$.value ? (e(), l("div", el, [
|
|
1398
|
+
s("div", sl, [
|
|
1399
|
+
s("div", tl, [
|
|
1400
|
+
B(xe, { class: "w-10 h-10" }),
|
|
1401
|
+
s("div", ll, u(m.value("ui.layout.news")), 1),
|
|
1402
|
+
s("div", null, [
|
|
1403
|
+
B(Me, {
|
|
1399
1404
|
variant: "touch",
|
|
1400
|
-
icon: S(
|
|
1401
|
-
onClick:
|
|
1405
|
+
icon: S(r1),
|
|
1406
|
+
onClick: r[6] || (r[6] = (v) => $.value = !1)
|
|
1402
1407
|
}, null, 8, ["icon"])
|
|
1403
1408
|
])
|
|
1404
1409
|
]),
|
|
1405
|
-
|
|
1406
|
-
o.news.isLoading && ((
|
|
1407
|
-
|
|
1408
|
-
])) : ((
|
|
1409
|
-
|
|
1410
|
-
])) : ((
|
|
1411
|
-
(
|
|
1412
|
-
key:
|
|
1410
|
+
s("div", ol, [
|
|
1411
|
+
o.news.isLoading && ((me = o.news.items) == null ? void 0 : me.length) === 0 ? (e(), l("div", nl, [
|
|
1412
|
+
B(i1, { class: "w-6 h-6 text-gray-600 mx-auto" })
|
|
1413
|
+
])) : ((ve = o.news.items) == null ? void 0 : ve.length) === 0 ? (e(), l("div", al, [
|
|
1414
|
+
s("div", rl, u(o.news.emptyText), 1)
|
|
1415
|
+
])) : ((fe = o.news.items) == null ? void 0 : fe.length) > 0 ? (e(), l("div", il, [
|
|
1416
|
+
(e(!0), l(N, null, D(o.news.items, (v) => (e(), l("div", {
|
|
1417
|
+
key: v.id,
|
|
1413
1418
|
class: "p-3"
|
|
1414
1419
|
}, [
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1420
|
+
s("div", ul, [
|
|
1421
|
+
s("div", null, [
|
|
1422
|
+
v.type ? (e(), l("div", dl, [
|
|
1423
|
+
v.type === 10 ? (e(), l("span", pl, "update")) : v.type === 11 ? (e(), l("span", cl, "warning")) : v.type === 12 ? (e(), l("span", hl, "notice")) : v.type === 13 ? (e(), l("span", ml, "ads")) : a("", !0)
|
|
1419
1424
|
])) : a("", !0),
|
|
1420
|
-
|
|
1421
|
-
|
|
1425
|
+
s("div", vl, u(v.title), 1),
|
|
1426
|
+
s("div", fl, u(v.summary), 1)
|
|
1422
1427
|
]),
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
src:
|
|
1428
|
+
v.image_url ? (e(), l("div", wl, [
|
|
1429
|
+
s("img", {
|
|
1430
|
+
src: v.image_url,
|
|
1426
1431
|
alt: "",
|
|
1427
1432
|
class: "w-full rounded-md"
|
|
1428
|
-
}, null, 8,
|
|
1433
|
+
}, null, 8, yl)
|
|
1429
1434
|
])) : a("", !0),
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
text:
|
|
1435
|
+
s("div", bl, [
|
|
1436
|
+
B(u1, {
|
|
1437
|
+
text: v.body
|
|
1433
1438
|
}, null, 8, ["text"])
|
|
1434
1439
|
]),
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
href:
|
|
1440
|
+
v.video_url ? (e(), l("div", Cl, [
|
|
1441
|
+
s("a", {
|
|
1442
|
+
href: v.video_url,
|
|
1438
1443
|
target: "_blank",
|
|
1439
1444
|
class: "text-blue-600 hover:text-blue-700 px-3 py-2 border rounded-md w-full block"
|
|
1440
|
-
},
|
|
1445
|
+
}, u(o.news.openVideoText), 9, gl)
|
|
1441
1446
|
])) : a("", !0),
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1447
|
+
s("div", xl, [
|
|
1448
|
+
s("span", kl, u(v.published), 1),
|
|
1449
|
+
v.post_url ? (e(), l("a", {
|
|
1445
1450
|
key: 0,
|
|
1446
|
-
href:
|
|
1451
|
+
href: v.post_url,
|
|
1447
1452
|
target: "_blank",
|
|
1448
1453
|
class: "text-blue-600 hover:text-blue-700 block"
|
|
1449
|
-
},
|
|
1454
|
+
}, u(o.news.moreText), 9, _l)) : a("", !0)
|
|
1450
1455
|
])
|
|
1451
1456
|
])
|
|
1452
1457
|
]))), 128))
|
|
@@ -1460,9 +1465,9 @@ const El = /* @__PURE__ */ Me(St, [["__scopeId", "data-v-f5bf3126"]]), Bt = { cl
|
|
|
1460
1465
|
};
|
|
1461
1466
|
}
|
|
1462
1467
|
});
|
|
1463
|
-
const
|
|
1468
|
+
const Rl = /* @__PURE__ */ _e($l, [["__scopeId", "data-v-e0a89bf0"]]);
|
|
1464
1469
|
export {
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1470
|
+
Rl as OneIslandLayout,
|
|
1471
|
+
Nl as OneMainLayout,
|
|
1472
|
+
c1 as OneSidebar
|
|
1468
1473
|
};
|