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