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