@oneb/ui-vue 0.3.26 → 0.3.28

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.
@@ -1,20 +1,20 @@
1
- import { openBlock as s, createElementBlock as o, createElementVNode as t, defineComponent as ve, computed as T, ref as O, resolveComponent as Qe, resolveDirective as p1, Fragment as I, toDisplayString as i, createCommentVNode as a, createBlock as v, withCtx as Z, resolveDynamicComponent as k, mergeProps as u1, renderList as D, withDirectives as ae, normalizeClass as y, unref as B, withModifiers as re, watch as de, onMounted as he, onBeforeUnmount as c1, watchEffect as Xe, shallowRef as h1, normalizeStyle as m1, vShow as me, createVNode as S, createTextVNode as pe, onUnmounted as ge, renderSlot as ie } from "vue";
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 be, a as v1 } from "../ChevronRightIcon-4549a26b.js";
4
- import { r as ce } from "../ChevronDownIcon-6805ce6c.js";
5
- import { _ as we } from "../_plugin-vue_export-helper-dad06003.js";
6
- import { OneButton as xe } from "../button/index.js";
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 Ce } from "../OneAvatar.vue_vue_type_script_setup_true_lang-08ab80dd.js";
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(C, g) {
17
- return s(), o("svg", {
16
+ function a1(x, k) {
17
+ return s(), l("svg", {
18
18
  xmlns: "http://www.w3.org/2000/svg",
19
19
  fill: "none",
20
20
  viewBox: "0 0 24 24",
@@ -29,8 +29,8 @@ function a1(C, g) {
29
29
  })
30
30
  ]);
31
31
  }
32
- function w1(C, g) {
33
- return s(), o("svg", {
32
+ function w1(x, k) {
33
+ return s(), l("svg", {
34
34
  xmlns: "http://www.w3.org/2000/svg",
35
35
  fill: "none",
36
36
  viewBox: "0 0 24 24",
@@ -203,7 +203,7 @@ const r1 = {
203
203
  }, g1 = { class: "flex flex-nowrap items-center h-[24px]" }, x1 = {
204
204
  key: 0,
205
205
  class: "flex-shrink-0 w-auto"
206
- }, k1 = { class: "min-w-[220px] py-1" }, $1 = { class: "text-xs font-semibold text-black px-3 pt-1 pb-2" }, _1 = ["href"], L1 = { class: "text-xs" }, S1 = { class: "text-xs" }, B1 = ["href"], M1 = { class: "flex flex-nowrap items-center h-[24px]" }, O1 = {
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 = {
207
207
  key: 1,
208
208
  class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full"
209
209
  }, j1 = { class: "py-[8px] pl-0 pr-0" }, z1 = {
@@ -215,10 +215,10 @@ const r1 = {
215
215
  }, H1 = { class: "py-[8px] pl-0 pr-0" }, A1 = {
216
216
  key: 2,
217
217
  class: "p-3"
218
- }, E1 = { class: "flex flex-nowrap items-center h-[24px]" }, P1 = {
218
+ }, E1 = { class: "flex flex-nowrap items-center h-[24px]" }, F1 = {
219
219
  key: 1,
220
220
  class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full"
221
- }, F1 = { class: "py-[8px] pl-0 pr-0" }, W1 = {
221
+ }, P1 = { class: "py-[8px] pl-0 pr-0" }, W1 = {
222
222
  key: 2,
223
223
  class: "p-3"
224
224
  }, N1 = {
@@ -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__ */ ve({
233
+ }, D1 = /* @__PURE__ */ Be({
234
234
  __name: "OneSidebarLink",
235
235
  props: y1,
236
236
  emits: ["update-collapsed"],
237
- setup(C, { emit: g }) {
238
- const r = C, c = g, j = (e) => e.route ? e.route : e.routeName ? { name: e.routeName } : null, x = T(() => j(r)), d = T(() => Array.isArray(r.subItems) && r.subItems.length > 0), _ = T(() => d.value && r.subItems.some((e) => e.href)), q = T(() => r.href ? "a" : x.value ? "router-link" : "span"), U = T(() => r.href ? { href: r.href, title: d.value ? null : r.label } : x.value ? { to: x.value, title: d.value ? null : r.label } : { title: d.value ? null : r.label }), J = T(() => [
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
- ]), V = O(r.open), N = (e, l = r) => {
242
- var u;
243
- return (l == null ? void 0 : l.menuGroup) && (e == null ? void 0 : e.meta) && ((u = e.meta) == null ? void 0 : u.menuGroup) && e.meta.menuGroup && e.meta.menuGroup === l.menuGroup;
244
- }, m = () => {
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
245
  V.value = !V.value;
246
- }, H = (e, l) => {
247
- var u;
248
- d.value && !l && !(r.slim && r.island) && ((u = e == null ? void 0 : e.preventDefault) == null || u.call(e), m()), (l || !d.value) && r.isMobile && c("update-collapsed");
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, l) => {
251
- var M, A;
252
- const u = Qe("RouterLink"), $ = p1("onetooltip");
253
- return s(), o(I, null, [
254
- e.labelTop && e.slim ? (s(), o("div", b1)) : e.labelTop ? (s(), o("p", C1, i(e.labelTop), 1)) : a("", !0),
255
- e.slim && e.island && d.value ? (s(), v(Ye, {
250
+ return (e, h) => {
251
+ var d, C;
252
+ const A = Qe("RouterLink"), o = 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 && 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(), v(k(q.value), u1(U.value, {
263
+ (s(), f(L(z.value), u1(T.value, {
264
264
  class: J.value,
265
265
  onClick: H
266
266
  }), {
267
267
  default: Z(() => [
268
268
  t("div", g1, [
269
- e.icon ? (s(), o("div", x1, [
270
- (s(), v(k(e.icon), { class: "mx-auto w-5 h-5" }))
269
+ e.icon ? (s(), l("div", x1, [
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
- _.value ? (s(!0), o(I, { key: 0 }, D(r.subItems, (f) => (s(), o("a", {
281
- key: f.label,
282
- href: f.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
- f.icon ? (s(), v(k(f.icon), {
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", L1, i(f.label), 1)
290
- ], 8, _1))), 128)) : (s(!0), o(I, { key: 1 }, D(r.subItems, (f) => {
291
- var P, F;
292
- return s(), v(u, {
293
- key: f.label,
294
- to: j(f),
289
+ t("span", _1, i(u.label), 1)
290
+ ], 8, L1))), 128)) : (s(!0), l(R, { key: 1 }, D(r.subItems, (u) => {
291
+ var E, F;
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
- "active-class": (P = e.$route) != null && P.meta && ((F = e.$route.meta) != null && F.menuGroup) && e.$route.meta.menuGroup ? "" : "bg-primary-10 !text-primary-base"
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
- f.icon ? (s(), v(k(f.icon), {
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(f.label), 1)
303
+ t("span", S1, i(u.label), 1)
304
304
  ]),
305
305
  _: 2
306
306
  }, 1032, ["to", "active-class"]);
@@ -308,11 +308,11 @@ const r1 = {
308
308
  ])
309
309
  ]),
310
310
  _: 1
311
- })) : (s(), o(I, { key: 3 }, [
312
- e.href ? ae((s(), o("a", {
311
+ })) : (s(), l(R, { key: 3 }, [
312
+ e.href ? ce((s(), l("a", {
313
313
  key: 0,
314
314
  href: e.href,
315
- class: y(["flex items-center relative text-sm font-medium hover:bg-primary-10-hover hover:text-primary-base transition-all text-[#525B66] mb-0.5", [
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", [
316
316
  e.island ? "rounded-10" : "rounded-xl",
317
317
  e.slim ? "w-[44px] h-[44px] justify-center" : "h-[44px] w-full",
318
318
  e.active ? "bg-primary-10 !text-primary-base" : ""
@@ -320,118 +320,118 @@ const r1 = {
320
320
  onClick: H
321
321
  }, [
322
322
  t("div", M1, [
323
- e.icon ? (s(), o("div", {
323
+ e.icon ? (s(), l("div", {
324
324
  key: 0,
325
- class: y(["flex-shrink-0", e.slim ? "w-auto" : "w-[44px]"])
325
+ class: b(["flex-shrink-0", e.slim ? "w-auto" : "w-[44px]"])
326
326
  }, [
327
- (s(), v(k(e.icon), {
328
- class: y(["mx-auto", e.slim ? "w-5 h-5" : "w-[24px] h-[24px]"])
327
+ (s(), f(L(e.icon), {
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
- e.slim ? a("", !0) : (s(), o("div", O1, [
331
+ e.slim ? a("", !0) : (s(), l("div", O1, [
332
332
  t("span", j1, i(e.label), 1)
333
333
  ])),
334
- d.value && !e.slim ? (s(), o("div", z1, [
335
- (s(), v(k(V.value ? B(be) : B(ce)), { class: "w-[16px] h-[16px]" }))
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
- [$, e.slim && !d.value ? e.label : "", "right"]
339
+ [o, e.slim && !c.value ? e.label : "", "right"]
340
340
  ]) : a("", !0),
341
- !e.href && x.value ? ae((s(), v(u, {
341
+ !e.href && $.value ? ce((s(), f(A, {
342
342
  key: 1,
343
- to: x.value,
343
+ to: $.value,
344
344
  exact: e.exact,
345
- class: y(["relative flex items-center cursor-pointer text-sm font-medium hover:bg-primary-10-hover hover:text-primary-base transition-all text-[#525B66] mb-0.5", {
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 || N(e.$route)
350
+ "bg-primary-10 !text-primary-base": e.active || q(e.$route)
351
351
  }]),
352
- "active-class": (M = e.$route) != null && M.meta && ((A = e.$route.meta) != null && A.menuGroup) && e.$route.meta.menuGroup ? "" : "bg-primary-10 !text-primary-base",
353
- onClick: re(H, ["prevent"])
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, [
357
- e.icon ? (s(), o("div", {
357
+ e.icon ? (s(), l("div", {
358
358
  key: 0,
359
- class: y(["flex-shrink-0", e.slim ? "w-auto" : "w-[44px]"])
359
+ class: b(["flex-shrink-0", e.slim ? "w-auto" : "w-[44px]"])
360
360
  }, [
361
- (s(), v(k(e.icon), {
362
- class: y(["mx-auto", e.slim ? "w-5 h-5" : "w-[24px] h-[24px]"])
361
+ (s(), f(L(e.icon), {
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
- e.slim ? a("", !0) : (s(), o("div", V1, [
365
+ e.slim ? a("", !0) : (s(), l("div", V1, [
366
366
  t("span", H1, i(e.label), 1)
367
367
  ])),
368
- d.value && !e.slim ? (s(), o("div", A1, [
369
- (s(), v(k(V.value ? B(be) : B(ce)), { class: "w-[16px] h-[16px]" }))
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
- [$, e.slim && !d.value ? e.label : "", "right"]
375
+ [o, e.slim && !c.value ? e.label : "", "right"]
376
376
  ]) : a("", !0),
377
- !e.href && !x.value ? ae((s(), o("span", {
377
+ !e.href && !$.value ? ce((s(), l("span", {
378
378
  key: 2,
379
- onClick: re(H, ["prevent"]),
380
- class: y(["mb-0.5 relative flex items-center cursor-pointer text-sm font-medium hover:bg-primary-10-hover hover:text-primary-base transition-all text-[#525B66]", [
379
+ onClick: he(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]", [
381
381
  e.island ? "rounded-10" : "rounded-xl",
382
382
  e.slim ? "w-[44px] h-[44px] justify-center" : "h-[44px] w-full",
383
383
  e.active ? "bg-primary-10 !text-primary-base" : ""
384
384
  ]])
385
385
  }, [
386
386
  t("div", E1, [
387
- e.icon ? (s(), o("div", {
387
+ e.icon ? (s(), l("div", {
388
388
  key: 0,
389
- class: y(["flex-shrink-0", e.slim ? "w-auto" : "w-[44px]"])
389
+ class: b(["flex-shrink-0", e.slim ? "w-auto" : "w-[44px]"])
390
390
  }, [
391
- (s(), v(k(e.icon), {
392
- class: y(["mx-auto", e.slim ? "w-5 h-5" : "w-[24px] h-[24px]"])
391
+ (s(), f(L(e.icon), {
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
- e.slim ? a("", !0) : (s(), o("div", P1, [
396
- t("span", F1, i(e.label), 1)
395
+ e.slim ? a("", !0) : (s(), l("div", F1, [
396
+ t("span", P1, i(e.label), 1)
397
397
  ])),
398
- d.value && !e.slim ? (s(), o("div", W1, [
399
- (s(), v(k(V.value ? B(be) : B(ce)), { class: "w-[16px] h-[16px]" }))
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
- [$, e.slim && !d.value ? e.label : "", "right"]
403
+ [o, e.slim && !c.value ? e.label : "", "right"]
404
404
  ]) : a("", !0),
405
- V.value && d.value && !e.slim ? (s(), o("div", N1, [
406
- (s(!0), o(I, null, D(r.subItems, (f) => {
407
- var P, F;
408
- return s(), o("div", {
409
- key: f.label
405
+ V.value && c.value && !e.slim ? (s(), l("div", N1, [
406
+ (s(!0), l(R, null, D(r.subItems, (u) => {
407
+ var E, F;
408
+ return s(), l("div", {
409
+ key: u.label
410
410
  }, [
411
- f.href ? (s(), o("a", {
411
+ u.href ? (s(), l("a", {
412
412
  key: 0,
413
- href: f.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(f.label), 1),
418
- f.icon ? (s(), o("div", q1, [
419
- (s(), v(k(f.icon), { class: "w-[15px] h-[15px] mx-auto" }))
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)) : j(f) ? (s(), v(u, {
422
+ ], 8, G1)) : M(u) ? (s(), f(A, {
423
423
  key: 1,
424
- to: j(f),
425
- onClick: l[0] || (l[0] = re((R) => H(R, !0), ["prevent"])),
426
- class: y(["flex items-center rounded-xl p-2 text-sm font-medium hover:bg-primary-10-hover hover:text-primary-base transition-all text-[#525B66] h-[44px] w-full", {
427
- "bg-primary-10 !text-primary-base": N(e.$route, f)
424
+ to: M(u),
425
+ onClick: h[0] || (h[0] = he((U) => H(U, !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": q(e.$route, u)
428
428
  }]),
429
- "active-class": (P = e.$route) != null && P.meta && ((F = e.$route.meta) != null && F.menuGroup) && e.$route.meta.menuGroup ? "" : "bg-primary-10 !text-primary-base"
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(f.label), 1),
433
- f.icon ? (s(), o("div", Z1, [
434
- (s(), v(k(f.icon), { class: "w-[20px] h-[20px] mx-auto" }))
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(C, g) {
454
- return s(), o("svg", K1, [...g[0] || (g[0] = [
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,9 +468,9 @@ function Q1(C, g) {
468
468
  }, null, -1)
469
469
  ])]);
470
470
  }
471
- const fe = /* @__PURE__ */ we(J1, [["render", Q1]]);
472
- function X1(C, g) {
473
- return s(), o("svg", {
471
+ const Se = /* @__PURE__ */ Me(J1, [["render", Q1]]);
472
+ function X1(x, k) {
473
+ return s(), l("svg", {
474
474
  xmlns: "http://www.w3.org/2000/svg",
475
475
  fill: "none",
476
476
  viewBox: "0 0 24 24",
@@ -490,40 +490,40 @@ function X1(C, g) {
490
490
  })
491
491
  ]);
492
492
  }
493
- const Ke = (C) => {
494
- if (Array.isArray(C))
495
- return C.map(B);
496
- const g = B(C);
497
- return Array.isArray(g) ? g : [g];
498
- }, Y1 = (C, g) => {
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 c = (j) => {
501
- j.forEach((x) => {
502
- const d = B(x);
503
- if (d) {
504
- if (!(d instanceof Element))
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: d,
507
- array: C
506
+ target: c,
507
+ array: x
508
508
  }), new Error("Vuestic: Unable to observe non-HTMLElement");
509
- d && (r == null || r.observe(d));
509
+ c && (r == null || r.observe(c));
510
510
  }
511
511
  });
512
512
  };
513
- return de(C, (j) => {
514
- r == null || r.disconnect(), c(Ke(j));
515
- }), he(() => {
516
- r = new ResizeObserver(g), c(Ke(C));
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 = (C) => {
519
- const g = O(null);
520
- return Y1([C], () => {
518
+ }, es = (x) => {
519
+ const k = B(null);
520
+ return Y1([x], () => {
521
521
  var r;
522
- g.value = ((r = C.value) == null ? void 0 : r.clientWidth) ?? null;
522
+ k.value = ((r = x.value) == null ? void 0 : r.clientWidth) ?? null;
523
523
  }), Xe(() => {
524
524
  var r;
525
- g.value = ((r = C.value) == null ? void 0 : r.clientWidth) ?? null;
526
- }), g;
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"
@@ -545,7 +545,7 @@ const Ke = (C) => {
545
545
  }, fs = {
546
546
  key: 1,
547
547
  class: "flex justify-between border rounded-lg bg-[#F5F5F5] mb-1 w-full min-w-[19+0px] space-x-1 px-2"
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]" }, _s = { class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full" }, Ls = { class: "py-[8px] pl-0 pr-[8px]" }, Ss = {
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 = {
549
549
  key: 4,
550
550
  class: "custom-select ml-1 w-full relative pt-2 pb-2"
551
551
  }, Bs = { class: "pl-1" }, Ms = {
@@ -566,10 +566,10 @@ const Ke = (C) => {
566
566
  }, As = ["href"], Es = {
567
567
  key: 0,
568
568
  class: "tooltip-text"
569
- }, Ps = { key: 0 }, Fs = {
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__ */ ve({
572
+ }, Ws = { key: 0 }, Ns = /* @__PURE__ */ Be({
573
573
  __name: "OneSidebar",
574
574
  props: r1,
575
575
  emits: [
@@ -581,74 +581,74 @@ const Ke = (C) => {
581
581
  "toggle-menu",
582
582
  "update:modelValue"
583
583
  ],
584
- setup(C, { emit: g }) {
585
- var R, K, Q;
586
- const r = g, c = C, j = T(() => {
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 = c.news) == null ? void 0 : n.unseenCount) || 0;
589
- }), x = () => {
588
+ return ((n = p.news) == null ? void 0 : n.unseenCount) || 0;
589
+ }), $ = () => {
590
590
  r("show-news");
591
- }, d = O(!1), _ = O(c.hoverable);
592
- de(c, () => {
593
- c.modelValue ? _.value = !0 : _.value = !1;
594
- }), c.modelValue && (_.value = !0);
595
- const q = h1(), U = T(() => {
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 (c.slim || n.push("fixed"), !N.value)
598
- if (!c.isMobile)
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
- }), J = T(() => ""), V = (n) => {
604
- d.value = _.value && n;
605
- }, N = T(() => _.value && !d.value), m = T(() => c.island ? c.modelValue !== !1 : !!N.value), H = O(), e = es(H), l = T(() => c.modelValue === !0 || e.value === null ? !0 : e.value > 0), u = O(), $ = () => N.value ? c.minimizedWidth : c.width;
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
- u.value = n;
609
+ A.value = n;
610
610
  });
611
611
  });
612
- const M = O(!1), A = O(
613
- (R = c.app) != null && R.availableLang && ((K = c.app) == null ? void 0 : K.availableLang.length) > 0 ? (Q = c.app) == null ? void 0 : Q.availableLang.find((n) => {
614
- var w;
615
- return n.id == ((w = c.app) == null ? void 0 : w.lang);
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
+ var y;
615
+ return n.id == ((y = p.app) == null ? void 0 : y.lang);
616
616
  }) : null
617
- ), f = () => {
618
- M.value = !M.value;
619
- }, P = (n) => {
620
- A.value = n, M.value = !1, r("select-language", n);
617
+ ), u = () => {
618
+ d.value = !d.value;
619
+ }, E = (n) => {
620
+ C.value = n, d.value = !1, r("select-language", n);
621
621
  }, F = () => {
622
- var n, w;
623
- (w = (n = c.app) == null ? void 0 : n.selectedPlan) != null && w.url && (window.location.href = c.app.selectedPlan.url);
622
+ var n, y;
623
+ (y = (n = p.app) == null ? void 0 : n.selectedPlan) != null && y.url && (window.location.href = p.app.selectedPlan.url);
624
624
  };
625
- return (n, w) => {
626
- var X, Y, ee, se, te, le, h, z, p, E, G, oe, L, ue, W, ne, ke, $e, _e, Le, Se, Be, Me, Oe, je, ze, Te, Ve, He, Ae, Ee, Pe, Fe, We, Ne, Ge, Ie, Re, qe, Ue, Ze;
627
- return s(), o("aside", {
625
+ return (n, y) => {
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
+ return s(), l("aside", {
628
628
  ref_key: "rootElement",
629
- ref: q,
630
- class: y(["oneb-sidebar cont flex flex-col", [
629
+ ref: z,
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 ? m.value ? "self-stretch w-[60px]" : "self-stretch w-[260px]" : U.value,
633
- n.island ? "" : m.value ? "sm:max-w-[260px] w-full sm:w-max" : "sm:w-[260px] w-full"
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
635
  style: m1(J.value),
636
- onMouseenter: w[3] || (w[3] = (b) => V(!0)),
637
- onMouseleave: w[4] || (w[4] = (b) => V(!1))
636
+ onMouseenter: y[3] || (y[3] = (g) => V(!0)),
637
+ onMouseleave: y[4] || (y[4] = (g) => V(!1))
638
638
  }, [
639
- n.island ? (s(), o("div", {
639
+ n.island ? (s(), l("div", {
640
640
  key: 0,
641
- class: y(["px-2 flex shrink-0", m.value ? "flex-col items-center gap-1" : "items-center justify-between"])
641
+ class: b(["px-2 flex shrink-0", v.value ? "flex-col items-center gap-1" : "items-center justify-between"])
642
642
  }, [
643
- m.value && n.logoSrc ? (s(), o("div", ss, [
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
- !m.value && ((X = n.app) != null && X.name) ? (s(), o("div", ls, [
651
- n.logoSrc ? (s(), o("div", os, [
650
+ !v.value && ((X = n.app) != null && X.name) ? (s(), l("div", ls, [
651
+ n.logoSrc ? (s(), l("div", os, [
652
652
  t("img", {
653
653
  src: n.logoSrc,
654
654
  class: "w-8 h-8 mx-auto",
@@ -657,7 +657,7 @@ const Ke = (C) => {
657
657
  ])) : a("", !0),
658
658
  t("div", as, [
659
659
  t("p", rs, i(n.app.name), 1),
660
- (ee = (Y = n.app) == null ? void 0 : Y.selectedPlan) != null && ee.name ? (s(), o("div", is, [
660
+ (ee = (Y = n.app) == null ? void 0 : Y.selectedPlan) != null && ee.name ? (s(), l("div", is, [
661
661
  t("span", ds, "Тариф " + i(n.app.selectedPlan.name), 1)
662
662
  ])) : a("", !0)
663
663
  ])
@@ -665,56 +665,56 @@ const Ke = (C) => {
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: w[0] || (w[0] = (b) => r("toggle-menu"))
668
+ onClick: y[0] || (y[0] = (g) => r("toggle-menu"))
669
669
  }, [
670
- (s(), v(k(m.value ? B(a1) : B(X1)), { class: "w-5 h-5" }))
670
+ (s(), f(L(v.value ? S(a1) : S(X1)), { class: "w-5 h-5" }))
671
671
  ])
672
672
  ], 2)) : a("", !0),
673
- ae(t("div", {
674
- class: y(["overflow-y-auto overflow-hidden lg:bg-transparent transition-all flex-grow", [
675
- n.island ? m.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"
673
+ ce(t("div", {
674
+ class: b(["overflow-y-auto overflow-hidden lg:bg-transparent transition-all flex-grow", [
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), o(I, null, D(n.items, (b) => (s(), v(D1, {
681
- key: b.label,
682
- labelTop: b.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: b.subItems,
685
- open: b.open,
686
- icon: b.icon,
687
- label: b.label,
688
- route: b.route,
689
- menuGroup: b == null ? void 0 : b.menuGroup,
690
- href: b.href,
691
- slim: m.value,
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: b.active === !0,
694
- "route-name": b.routeName,
695
- exact: b.exact || !1,
696
- onUpdateCollapsed: w[1] || (w[1] = (ye) => r("update-collapsed"))
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
- [me, l.value]
699
+ [_e, h.value]
700
700
  ]),
701
- n.island && m.value ? (s(), o("div", ps, [
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: w[2] || (w[2] = (b) => r("show-help"))
705
+ onClick: y[2] || (y[2] = (g) => r("show-help"))
706
706
  }, [
707
- S(fe, { class: "w-6 h-6" })
707
+ _(Se, { class: "w-6 h-6" })
708
708
  ])
709
709
  ])) : a("", !0),
710
- ae(t("div", {
711
- class: y(["mt-auto shrink rounded-2xl mx-2", [m.value ? "" : "px-2 bg-white pt-2.5 py-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
- n.island ? a("", !0) : (s(), o("div", {
713
+ n.island ? a("", !0) : (s(), l("div", {
714
714
  key: 0,
715
- class: y([m.value ? "hidden" : "w-full hidden md:flex-col md:flex"])
715
+ class: b([v.value ? "hidden" : "w-full hidden md:flex-col md:flex"])
716
716
  }, [
717
- (se = n.app) != null && se.offerPlan ? (s(), o("a", {
717
+ (se = n.app) != null && se.offerPlan ? (s(), l("a", {
718
718
  key: 0,
719
719
  href: (te = n.app) == null ? void 0 : te.offerPlan.url,
720
720
  class: "w-full min-w-[190px] border-gradient rounded-lg p-[1px] bg-[#FFF8E4] mb-1 block",
@@ -723,157 +723,157 @@ const Ke = (C) => {
723
723
  }, [
724
724
  t("div", cs, [
725
725
  t("div", hs, [
726
- (s(), v(k((le = n.app) == null ? void 0 : le.offerPlan.icon), { class: "w-[16px] h-[16px]" }))
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
- t("strong", null, i((h = n.app) == null ? void 0 : h.offerPlan.title), 1),
730
- pe(" «" + i((z = n.app) == null ? void 0 : z.offerPlan.name) + "» ", 1),
731
- w[5] || (w[5] = t("br", null, null, -1)),
732
- pe(i((p = n.app) == null ? void 0 : p.offerPlan.title1), 1)
729
+ t("strong", null, i((oe = n.app) == null ? void 0 : oe.offerPlan.title), 1),
730
+ ge(" «" + i((ne = n.app) == null ? void 0 : ne.offerPlan.name) + "» ", 1),
731
+ y[5] || (y[5] = t("br", null, null, -1)),
732
+ ge(i((m = n.app) == null ? void 0 : m.offerPlan.title1), 1)
733
733
  ])
734
734
  ])
735
735
  ], 8, us)) : a("", !0),
736
- (E = n.app) != null && E.selectedPlan && ((G = n.app) != null && G.selectedPlan.name) ? (s(), o("div", fs, [
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(), v(k((oe = n.app) == null ? void 0 : oe.selectedPlan.icon), { class: "w-[16px] h-[16px]" }))
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(((L = n.app) == null ? void 0 : L.selectedPlan.name) || ""), 1),
743
- t("p", null, i(((ue = n.app) == null ? void 0 : ue.selectedPlan.title) || ""), 1)
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
- S(xe, {
747
+ _(Te, {
748
748
  class: "text-[#525B66] hover:text-[#4089E0] !rounded-lg",
749
749
  variant: "touch",
750
- icon: B(v1),
750
+ icon: S(v1),
751
751
  onClick: F
752
752
  }, null, 8, ["icon"])
753
753
  ])
754
754
  ])) : a("", !0),
755
- (W = n.app) != null && W.terms ? (s(), o("a", {
755
+ (be = n.app) != null && be.terms ? (s(), l("a", {
756
756
  key: 2,
757
- href: (ne = n.app) == null ? void 0 : ne.terms.url,
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(((ke = n.app) == null ? void 0 : ke.terms.label) || "Terms"), 1)
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
- ($e = n.app) != null && $e.offer ? (s(), o("a", {
767
+ (P = n.app) != null && P.offer ? (s(), l("a", {
768
768
  key: 3,
769
- href: (_e = n.app) == null ? void 0 : _e.offer.url,
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
- t("div", _s, [
775
- t("span", Ls, i(((Le = n.app) == null ? void 0 : Le.offer.label) || "Offert"), 1)
774
+ t("div", Ls, [
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
- (Be = (Se = n.app) == null ? void 0 : Se.availableLang) != null && Be.length ? (s(), o("div", Ss, [
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: f
782
+ onClick: u
783
783
  }, [
784
- S(B(f1), { class: "w-4" }),
785
- pe(" " + i((Me = A.value) == null ? void 0 : Me.name) + " ", 1),
786
- t("span", Bs, i(M.value ? "▲" : "▼"), 1)
784
+ _(S(f1), { class: "w-4" }),
785
+ ge(" " + i((pe = C.value) == null ? void 0 : pe.name) + " ", 1),
786
+ t("span", Bs, i(d.value ? "▲" : "▼"), 1)
787
787
  ]),
788
- M.value ? (s(), o("div", Ms, [
789
- (s(!0), o(I, null, D((Oe = n.app) == null ? void 0 : Oe.availableLang, (b) => {
790
- var ye, De;
791
- return s(), o("div", {
792
- key: b.id,
793
- class: y(["px-2", {
794
- "hover:bg-slate-200 rounded-lg cursor-pointer": b.id !== ((ye = A.value) == null ? void 0 : ye.id),
795
- "text-gray-300": b.id === ((De = A.value) == null ? void 0 : De.id)
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
+ return s(), l("div", {
792
+ key: g.id,
793
+ class: b(["px-2", {
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
- onClick: (Cl) => {
797
+ onClick: (gl) => {
798
798
  var Je;
799
- return b.id !== ((Je = A.value) == null ? void 0 : Je.id) && P(b);
799
+ return g.id !== ((Je = C.value) == null ? void 0 : Je.id) && E(g);
800
800
  }
801
- }, i(b.name), 11, Os);
801
+ }, i(g.name), 11, Os);
802
802
  }), 128))
803
803
  ])) : a("", !0)
804
804
  ])) : a("", !0)
805
805
  ], 2)),
806
- !m.value && ((je = n.app) != null && je.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(), o("div", js)) : a("", !0),
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: y([m.value ? "grid" : n.island ? "flex items-center gap-2" : "flex space-x-2"])
808
+ class: b([v.value ? "grid" : n.island ? "flex items-center gap-2" : "flex space-x-2"])
809
809
  }, [
810
- n.news ? (s(), o("a", {
810
+ n.news ? (s(), l("a", {
811
811
  key: 0,
812
812
  href: "#",
813
- class: y(["text-[#525B66] flex items-center rounded-lg text-sm tooltip hover:bg-primary-10-hover hover:text-primary-base transition-all bg-gray-100 px-1", [m.value ? "w-[44px] h-[44px] text-center" : "h-[36x] pr-2"]]),
814
- onClick: x
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
- n.news.menuLabel ? (s(), o("div", zs, i(n.news.menuLabel || "News"), 1)) : a("", !0),
816
+ n.news.menuLabel ? (s(), l("div", zs, i(n.news.menuLabel || "News"), 1)) : a("", !0),
817
817
  t("div", {
818
- class: y(["w-full", [m.value ? "" : "flex flex-nowrap items-center h-[36px]"]])
818
+ class: b(["w-full", [v.value ? "" : "flex flex-nowrap items-center h-[36px]"]])
819
819
  }, [
820
820
  t("div", {
821
- class: y(["relative items-center", [m.value ? "" : "flex flex-row space-x-1"]])
821
+ class: b(["relative items-center", [v.value ? "" : "flex flex-row space-x-1"]])
822
822
  }, [
823
823
  t("div", null, [
824
- (s(), v(k(fe), { class: "w-[24px] h-[24px] mx-auto" }))
824
+ (s(), f(L(Se), { class: "w-[24px] h-[24px] mx-auto" }))
825
825
  ]),
826
- m.value ? a("", !0) : (s(), o("div", Ts, i(n.news.menuLabel || "News"), 1)),
827
- j.value > 0 ? (s(), o("span", Vs)) : a("", !0),
828
- j.value > 0 ? (s(), o("span", Hs)) : a("", !0)
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
- (Ee = n.app) != null && Ee.support ? (s(), o("a", {
832
+ (Ee = n.app) != null && Ee.support ? (s(), l("a", {
833
833
  key: 1,
834
- href: (Fe = (Pe = n.app) == null ? void 0 : Pe.support) == null ? void 0 : Fe.url,
835
- class: y(["text-[#525B66] flex items-center rounded-lg text-sm tooltip hover:bg-primary-10-hover hover:text-primary-base transition-all", [m.value ? "w-[44px] h-[44px] text-center" : "h-[36x]"]])
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", [v.value ? "w-[44px] h-[44px] text-center" : "h-[36x]"]])
836
836
  }, [
837
- (Ne = (We = n.app) == null ? void 0 : We.support) != null && Ne.label ? (s(), o("div", Es, i(((Ie = (Ge = n.app) == null ? void 0 : Ge.support) == null ? void 0 : Ie.label) || "Support"), 1)) : a("", !0),
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: y(["w-full", [m.value ? "" : "flex flex-nowrap items-center h-[36px]"]])
839
+ class: b(["w-full", [v.value ? "" : "flex flex-nowrap items-center h-[36px]"]])
840
840
  }, [
841
841
  t("div", {
842
- class: y(["flex-shrink-0 relative", [m.value ? "mx-auto w-[36px] " : "flex space-x-2 px-1"]])
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(), v(k(B(w1)), { class: "w-[20px] h-[20px] mx-auto" }))
845
+ (s(), f(L(S(w1)), { class: "w-[20px] h-[20px] mx-auto" }))
846
846
  ]),
847
- m.value ? a("", !0) : (s(), o("div", Ps, i(((qe = (Re = n.app) == null ? void 0 : Re.support) == null ? void 0 : qe.label) || "Support"), 1))
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 && !m.value ? (s(), o("div", Fs, [
853
- w[6] || (w[6] = t("span", null, [
854
- pe("Powered By "),
852
+ n.island && !v.value ? (s(), l("div", Ps, [
853
+ y[6] || (y[6] = t("span", null, [
854
+ ge("Powered By "),
855
855
  t("span", { class: "capitalize" }, "OneB")
856
856
  ], -1)),
857
- (Ue = n.app) != null && Ue.version ? (s(), o("span", Ws, "V." + i(n.app.version), 1)) : a("", !0)
857
+ (Ue = n.app) != null && Ue.version ? (s(), l("span", Ws, "V." + i(n.app.version), 1)) : a("", !0)
858
858
  ])) : a("", !0),
859
- n.island ? a("", !0) : (s(), o("p", {
859
+ n.island ? a("", !0) : (s(), l("p", {
860
860
  key: 3,
861
- class: y([[m.value ? "hidden" : "w-full"], "text-[7px] pl-2 text-[#979CA9] flex justify-between font-extralight pt-1"])
861
+ class: b([[v.value ? "hidden" : "w-full"], "text-[7px] pl-2 text-[#979CA9] flex justify-between font-extralight pt-1"])
862
862
  }, [
863
- w[7] || (w[7] = t("span", null, [
864
- pe("Powered by "),
863
+ y[7] || (y[7] = t("span", null, [
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
- [me, l.value && (!n.island || !m.value)]
870
+ [_e, h.value && (!n.island || !v.value)]
871
871
  ])
872
872
  ], 38);
873
873
  };
874
874
  }
875
875
  });
876
- const d1 = /* @__PURE__ */ we(Ns, [["__scopeId", "data-v-bcc0bd0f"]]), Gs = { class: "h-screen relative" }, Is = {
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,118 +903,118 @@ const d1 = /* @__PURE__ */ we(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" }, _t = { class: "text-gray-800" }, Lt = ["href"], St = /* @__PURE__ */ ve({
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(C, { emit: g }) {
911
- const r = g, c = C;
912
- let j = window.localStorage.getItem("sidebar-slim");
913
- window.document.body.offsetWidth < 1024 && (window.localStorage.getItem("sidebar-slim") == null && window.localStorage.setItem("sidebar-slim", "1"), j = "1");
914
- const x = O(j === "1");
915
- O(!0), de(x, (e) => {
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 d = O(!1), _ = () => {
919
- d.value = !d.value, d.value && r("load-news");
920
- }, q = T(() => c.showHeadre);
921
- de(
922
- () => c.showHeadre,
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
- q.value = c.showHeadre;
925
+ z.value = p.showHeadre;
926
926
  }
927
927
  );
928
- const U = O(window.innerWidth), J = () => {
929
- U.value = window.innerWidth;
930
- }, V = T(() => U.value <= 768);
931
- he(() => {
928
+ const T = B(window.innerWidth), J = () => {
929
+ T.value = window.innerWidth;
930
+ }, V = j(() => T.value <= 768);
931
+ Le(() => {
932
932
  window.addEventListener("resize", J);
933
- }), ge(() => {
933
+ }), ze(() => {
934
934
  window.removeEventListener("resize", J);
935
935
  });
936
- const N = (e) => {
937
- var l;
938
- (l = c.handlers) == null || l.onSetLang(e);
939
- }, m = O(!1), H = () => {
940
- m.value = window.matchMedia("(min-width: 769px)").matches;
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 he(() => {
942
+ return Le(() => {
943
943
  H(), window.addEventListener("resize", H);
944
- }), ge(() => {
944
+ }), ze(() => {
945
945
  window.removeEventListener("resize", H);
946
- }), (e, l) => {
947
- var $, M, A, f, P, F, R, K, Q, n, w, X, Y, ee, se, te, le, h, z;
948
- const u = Qe("RouterLink");
949
- return s(), o("div", Gs, [
950
- ae(t("div", Is, [
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
+ return s(), l("div", Gs, [
950
+ ce(t("div", Is, [
951
951
  t("div", Rs, [
952
952
  t("button", {
953
- onClick: l[0] || (l[0] = (p) => x.value = !x.value),
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
- S(B(a1), { class: "sm:w-[24px] sm:h-[24px] w-6 h-6" })
956
+ _(S(a1), { class: "sm:w-[24px] sm:h-[24px] w-6 h-6" })
957
957
  ])
958
958
  ]),
959
959
  t("div", qs, [
960
- e.logoSrc != null ? (s(), o("img", {
960
+ e.logoSrc != null ? (s(), l("img", {
961
961
  key: 0,
962
962
  src: e.logoSrc,
963
963
  class: "w-8 h-8 mx-auto",
964
964
  alt: "logo"
965
965
  }, null, 8, Us)) : a("", !0)
966
966
  ]),
967
- e.app != null ? (s(), v(u, {
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 p, E;
973
+ var m, G;
974
974
  return [
975
975
  t("div", Zs, i(e.app.name), 1),
976
- t("div", Ds, i((E = (p = e.app) == null ? void 0 : p.workspace) == null ? void 0 : E.name), 1)
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
- ie(e.$slots, "head-left", {}, void 0, !0),
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 && (($ = e.improveTariff) != null && $.label) && e.improveTariff.label ? (s(), o("div", Xs, [
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: l[1] || (l[1] = //@ts-ignore
990
- (...p) => {
991
- var E, G;
992
- return ((E = e.handlers) == null ? void 0 : E.onImproveTariff) && ((G = e.handlers) == null ? void 0 : G.onImproveTariff(...p));
989
+ onClick: h[1] || (h[1] = //@ts-ignore
990
+ (...m) => {
991
+ var G, ae;
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(), v(k((M = e.improveTariff) == null ? void 0 : M.icon), { class: "h-4 w-4 mx-auto" }))
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((A = e.improveTariff) == null ? void 0 : A.label), 1)
999
+ t("span", et, i((C = e.improveTariff) == null ? void 0 : C.label), 1)
1000
1000
  ])
1001
1001
  ])) : a("", !0),
1002
- ie(e.$slots, "head-right", {}, void 0, !0),
1003
- e.help ? (s(), v(e1, {
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
- ((f = e.handlers) == null ? void 0 : f.onBrowse) != null ? (s(), v(s1, {
1007
+ ((u = e.handlers) == null ? void 0 : u.onBrowse) != null ? (s(), f(s1, {
1008
1008
  key: 2,
1009
- workspace: (P = e.app) == null ? void 0 : P.workspace,
1009
+ workspace: (E = e.app) == null ? void 0 : E.workspace,
1010
1010
  apps: ((F = e.app) == null ? void 0 : F.apps) || [],
1011
- "change-label": ((R = e.labels) == null ? void 0 : R.change) || "Change",
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,
1015
- onOpen: (w = e.handlers) == null ? void 0 : w.onBrowse
1015
+ onOpen: (y = e.handlers) == null ? void 0 : y.onBrowse
1016
1016
  }, null, 8, ["workspace", "apps", "change-label", "apps-title", "on-app", "on-change", "onOpen"])) : a("", !0),
1017
- S(t1, {
1017
+ _(t1, {
1018
1018
  user: e.user,
1019
1019
  menu: e.menu,
1020
1020
  app: e.app,
@@ -1028,102 +1028,102 @@ const d1 = /* @__PURE__ */ we(Ns, [["__scopeId", "data-v-bcc0bd0f"]]), Gs = { cl
1028
1028
  ])
1029
1029
  ])
1030
1030
  ], 512), [
1031
- [me, q.value]
1031
+ [_e, z.value]
1032
1032
  ]),
1033
1033
  t("div", st, [
1034
- !V.value || !x.value ? (s(), v(d1, {
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
1040
  isMobile: V.value,
1041
- modelValue: x.value,
1042
- "onUpdate:modelValue": l[2] || (l[2] = (p) => x.value = p),
1043
- onShowNews: _,
1044
- onSelectLanguage: N,
1045
- onUpdateCollapsed: l[3] || (l[3] = (p) => x.value = !x.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
- class: y([[
1049
- x.value ? "" : "lg:ml-[260px] hidden sm:block",
1050
- m.value ? "ml-[60px]" : ""
1048
+ class: b([[
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: y(["content transition-all", { "pt-[56px]": q.value }])
1054
+ class: b(["content transition-all", { "pt-[56px]": z.value }])
1055
1055
  }, [
1056
- ie(e.$slots, "default", {}, void 0, !0)
1056
+ me(e.$slots, "default", {}, void 0, !0)
1057
1057
  ], 2)
1058
1058
  ], 2)
1059
1059
  ]),
1060
- e.news ? (s(), o("div", tt, [
1061
- d.value ? (s(), o("div", {
1060
+ e.news ? (s(), l("div", tt, [
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: l[4] || (l[4] = re((p) => d.value = !1, ["self"]))
1064
+ onClick: h[4] || (h[4] = he((m) => c.value = !1, ["self"]))
1065
1065
  })) : a("", !0),
1066
1066
  t("div", {
1067
- class: y(["opacity-100 shadow-lg transition-all fixed top-0 left-0 h-dvh overflow-hidden z-50 bg-white", [d.value ? "sm:w-[560px] w-full" : "w-0"]])
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
- d.value ? (s(), o("div", lt, [
1069
+ c.value ? (s(), l("div", lt, [
1070
1070
  t("div", ot, [
1071
1071
  t("div", nt, [
1072
- S(fe, { class: "w-10 h-10" }),
1073
- l[6] || (l[6] = t("div", { class: "w-full font-medium" }, "OneB News", -1)),
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
- S(xe, {
1075
+ _(Te, {
1076
1076
  variant: "touch",
1077
- icon: B(l1),
1078
- onClick: l[5] || (l[5] = (p) => d.value = !1)
1077
+ icon: S(l1),
1078
+ onClick: h[5] || (h[5] = (m) => c.value = !1)
1079
1079
  }, null, 8, ["icon"])
1080
1080
  ])
1081
1081
  ]),
1082
1082
  t("div", at, [
1083
- e.news.isLoading && ((le = e.news.items) == null ? void 0 : le.length) === 0 ? (s(), o("div", rt, [
1084
- S(o1, { class: "w-6 h-6 text-gray-600 mx-auto" })
1085
- ])) : ((h = e.news.items) == null ? void 0 : h.length) === 0 ? (s(), o("div", it, [
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
1086
  t("div", dt, i(e.news.emptyText), 1)
1087
- ])) : ((z = e.news.items) == null ? void 0 : z.length) > 0 ? (s(), o("div", pt, [
1088
- (s(!0), o(I, null, D(e.news.items, (p) => (s(), o("div", {
1089
- key: p.id,
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, (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
- p.type ? (s(), o("div", ct, [
1095
- p.type === 10 ? (s(), o("span", ht, "update")) : p.type === 11 ? (s(), o("span", mt, "warning")) : p.type === 12 ? (s(), o("span", ft, "notice")) : p.type === 13 ? (s(), o("span", vt, "ads")) : a("", !0)
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(p.title), 1),
1098
- t("div", yt, i(p.summary), 1)
1097
+ t("div", wt, i(m.title), 1),
1098
+ t("div", yt, i(m.summary), 1)
1099
1099
  ]),
1100
- p.image_url ? (s(), o("div", bt, [
1100
+ m.image_url ? (s(), l("div", bt, [
1101
1101
  t("img", {
1102
- src: p.image_url,
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
- S(n1, {
1109
- text: p.body
1108
+ _(n1, {
1109
+ text: m.body
1110
1110
  }, null, 8, ["text"])
1111
1111
  ]),
1112
- p.video_url ? (s(), o("div", xt, [
1112
+ m.video_url ? (s(), l("div", xt, [
1113
1113
  t("a", {
1114
- href: p.video_url,
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", _t, i(p.published), 1),
1121
- p.post_url ? (s(), o("a", {
1120
+ t("span", Lt, i(m.published), 1),
1121
+ m.post_url ? (s(), l("a", {
1122
1122
  key: 0,
1123
- href: p.post_url,
1123
+ href: m.post_url,
1124
1124
  target: "_blank",
1125
1125
  class: "text-blue-600 hover:text-blue-700 block"
1126
- }, i(e.news.moreText), 9, Lt)) : a("", !0)
1126
+ }, i(e.news.moreText), 9, _t)) : a("", !0)
1127
1127
  ])
1128
1128
  ])
1129
1129
  ]))), 128))
@@ -1137,296 +1137,316 @@ const d1 = /* @__PURE__ */ we(Ns, [["__scopeId", "data-v-bcc0bd0f"]]), Gs = { cl
1137
1137
  };
1138
1138
  }
1139
1139
  });
1140
- const Al = /* @__PURE__ */ we(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 = ["onClick"], Vt = { class: "text-base text-black truncate" }, Ht = { class: "w-[320px] py-2" }, At = ["onClick"], Et = { class: "text-sm" }, Pt = {
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
- }, Ft = {
1143
+ }, Wt = {
1144
1144
  key: 1,
1145
1145
  class: "text-2xs text-secondary-content px-3 py-1 uppercase"
1146
- }, Wt = ["onClick"], Nt = { class: "text-sm" }, Gt = {
1146
+ }, Nt = ["onClick"], Gt = { class: "text-sm" }, It = {
1147
1147
  key: 2,
1148
1148
  class: "border-t border-secondary-stroke mt-1 pt-1"
1149
- }, It = ["onClick"], Rt = { class: "flex items-center gap-2 shrink-0" }, qt = ["href"], Ut = { class: "text-2xs font-semibold text-black leading-loose" }, Zt = { class: "flex-1 min-w-0" }, Dt = { key: 0 }, Jt = {
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 = {
1150
1150
  key: 0,
1151
1151
  class: "sm:w-[560px] w-full relative h-full"
1152
- }, Kt = { class: "h-full relative" }, Qt = { class: "flex items-center p-3 space-x-1.5" }, Xt = {
1152
+ }, Qt = { class: "h-full relative" }, Xt = { class: "flex items-center p-3 space-x-1.5" }, Yt = {
1153
1153
  class: "overflow-auto",
1154
1154
  style: { height: "calc(100% - 62px)" }
1155
- }, Yt = {
1155
+ }, el = {
1156
1156
  key: 0,
1157
1157
  class: "p-5"
1158
- }, el = { key: 1 }, sl = { class: "p-4 text-gray text-center" }, tl = { key: 2 }, ll = {
1158
+ }, sl = { key: 1 }, tl = { class: "p-4 text-gray text-center" }, ll = { key: 2 }, ol = {
1159
1159
  class: "p-3 space-y-1.5 rounded-lg",
1160
1160
  style: { "box-shadow": "0 0 6px #eaeaea" }
1161
- }, ol = { key: 0 }, nl = {
1161
+ }, nl = { key: 0 }, al = {
1162
1162
  key: 0,
1163
1163
  class: "text-xs px-2 py-1 rounded-md bg-green-600 text-white"
1164
- }, al = {
1164
+ }, rl = {
1165
1165
  key: 1,
1166
1166
  class: "text-xs px-2 py-1 rounded-md bg-yellow-600 text-white"
1167
- }, rl = {
1167
+ }, il = {
1168
1168
  key: 2,
1169
1169
  class: "text-xs px-2 py-1 rounded-md bg-blue-600 text-white"
1170
- }, il = {
1170
+ }, dl = {
1171
1171
  key: 3,
1172
1172
  class: "text-xs px-2 py-1 rounded-md bg-gray-600 text-white"
1173
- }, dl = { class: "text-lg font-medium" }, pl = { class: "text-sm text-gray-600" }, ul = { key: 0 }, cl = ["src"], hl = { class: "text-sm" }, ml = { key: 1 }, fl = ["href"], vl = { class: "text-sm flex items-center justify-between mt-1" }, wl = { class: "text-gray-800" }, yl = ["href"], bl = /* @__PURE__ */ ve({
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"],
1177
- setup(C, { emit: g }) {
1178
- const r = g, c = C, j = () => {
1179
- var l, u;
1180
- r("browse"), (u = (l = c.handlers) == null ? void 0 : l.onBrowse) == null || u.call(l);
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);
1181
1187
  };
1182
- let x = window.localStorage.getItem("island-sidebar-slim");
1183
- window.document.body.offsetWidth < 1024 && (window.localStorage.getItem("island-sidebar-slim") == null && window.localStorage.setItem("island-sidebar-slim", "1"), x = "1");
1184
- const d = O(x === "1");
1185
- de(d, (l) => {
1186
- window.localStorage.setItem("island-sidebar-slim", String(l ? 1 : 0));
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) => {
1192
+ window.localStorage.setItem("island-sidebar-slim", String(o ? 1 : 0));
1187
1193
  });
1188
- const _ = O(!1), q = () => {
1189
- _.value = !_.value, _.value && r("load-news");
1190
- }, U = O(null), J = () => {
1191
- var u, $, M;
1192
- const l = (M = ($ = (u = U.value) == null ? void 0 : u.$el) == null ? void 0 : $.querySelector) == null ? void 0 : M.call($, "button");
1193
- l == null || l.click();
1194
- }, V = T(() => c.showHeadre);
1195
- de(
1196
- () => c.showHeadre,
1194
+ const T = B(!1), J = () => {
1195
+ T.value = !T.value, T.value && r("load-news");
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");
1199
+ o == null || o.click();
1200
+ }, v = j(() => p.showHeadre);
1201
+ fe(
1202
+ () => p.showHeadre,
1197
1203
  () => {
1198
- V.value = c.showHeadre;
1204
+ v.value = p.showHeadre;
1199
1205
  }
1200
1206
  );
1201
- const N = O(window.innerWidth), m = () => {
1202
- N.value = window.innerWidth;
1203
- }, H = T(() => N.value <= 768);
1204
- he(() => {
1205
- window.addEventListener("resize", m);
1206
- }), ge(() => {
1207
- window.removeEventListener("resize", m);
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);
1208
1214
  });
1209
- const e = (l) => {
1210
- var u, $;
1211
- ($ = (u = c.handlers) == null ? void 0 : u.onSetLang) == null || $.call(u, l);
1215
+ const A = (o) => {
1216
+ var d, C;
1217
+ (C = (d = p.handlers) == null ? void 0 : d.onSetLang) == null || C.call(d, o);
1212
1218
  };
1213
- return (l, u) => {
1214
- var $, M, A, f, P, F, R, K, Q, n, w, X, Y, ee, se, te, le;
1215
- return s(), o("div", Bt, [
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;
1221
+ return s(), l("div", Bt, [
1216
1222
  t("div", Mt, [
1217
- !H.value || !d.value ? (s(), v(d1, {
1223
+ !h.value || !z.value ? (s(), f(d1, {
1218
1224
  key: 0,
1219
- items: l.sidebarItems,
1225
+ items: o.sidebarItems,
1220
1226
  island: !0,
1221
- app: l.app,
1222
- "logo-src": l.logoSrc,
1223
- "with-news": l.news != null,
1224
- news: l.news,
1225
- isMobile: H.value,
1226
- modelValue: d.value,
1227
- onToggleMenu: u[0] || (u[0] = (h) => d.value = !d.value),
1228
- onShowNews: q,
1229
- onShowHelp: J,
1230
- onSelectLanguage: e,
1231
- onUpdateCollapsed: u[1] || (u[1] = (h) => d.value = !d.value)
1227
+ app: o.app,
1228
+ "logo-src": o.logoSrc,
1229
+ "with-news": o.news != null,
1230
+ news: o.news,
1231
+ isMobile: h.value,
1232
+ modelValue: z.value,
1233
+ onToggleMenu: d[0] || (d[0] = (w) => z.value = !z.value),
1234
+ onShowNews: J,
1235
+ onShowHelp: q,
1236
+ onSelectLanguage: A,
1237
+ onUpdateCollapsed: d[1] || (d[1] = (w) => z.value = !z.value)
1232
1238
  }, null, 8, ["items", "app", "logo-src", "with-news", "news", "isMobile", "modelValue"])) : a("", !0),
1233
1239
  t("div", Ot, [
1234
- ae(t("header", jt, [
1240
+ ce(t("header", jt, [
1235
1241
  t("div", zt, [
1236
- l.workspace || ($ = l.app) != null && $.workspace ? (s(), v(Ye, {
1242
+ (C = o.handlers) != null && C.onWorkspace && (o.workspace || (u = o.app) != null && u.workspace) ? (s(), l("button", {
1237
1243
  key: 0,
1244
+ type: "button",
1245
+ class: "flex items-center gap-2 px-2 py-1 rounded-10 bg-[#F5F5F5] hover:bg-secondary-body transition-colors min-w-0",
1246
+ onClick: $
1247
+ }, [
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,
1251
+ size: 20,
1252
+ rounded: !1
1253
+ }, null, 8, ["text", "src"]),
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, {
1257
+ key: 1,
1238
1258
  "append-body": !0,
1239
1259
  stick: "bottom-start"
1240
1260
  }, {
1241
- button: Z(({ onToggle: h }) => {
1242
- var z, p, E, G, oe, L;
1261
+ button: Z(({ onToggle: w }) => {
1262
+ var P, I, re, ie, de, pe;
1243
1263
  return [
1244
1264
  t("button", {
1245
1265
  type: "button",
1246
1266
  class: "flex items-center gap-2 px-2 py-1 rounded-10 bg-[#F5F5F5] hover:bg-secondary-body transition-colors min-w-0",
1247
- onClick: h
1267
+ onClick: (O) => ($(), w())
1248
1268
  }, [
1249
- S(Ce, {
1250
- text: (p = l.workspace || ((z = l.app) == null ? void 0 : z.workspace)) == null ? void 0 : p.name,
1251
- src: (G = l.workspace || ((E = l.app) == null ? void 0 : E.workspace)) == null ? void 0 : G.photo_url,
1269
+ _($e, {
1270
+ text: (I = o.workspace || ((P = o.app) == null ? void 0 : P.workspace)) == null ? void 0 : I.name,
1271
+ src: (ie = o.workspace || ((re = o.app) == null ? void 0 : re.workspace)) == null ? void 0 : ie.photo_url,
1252
1272
  size: 20,
1253
1273
  rounded: !1
1254
1274
  }, null, 8, ["text", "src"]),
1255
- t("span", Vt, i((L = l.workspace || ((oe = l.app) == null ? void 0 : oe.workspace)) == null ? void 0 : L.name), 1),
1256
- (s(), v(k(B(ce)), { class: "w-4 h-4 text-secondary-base shrink-0" }))
1257
- ], 8, Tt)
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" }))
1277
+ ], 8, Vt)
1258
1278
  ];
1259
1279
  }),
1260
- menu: Z(({ onToggle: h }) => {
1261
- var z, p, E, G, oe;
1280
+ menu: Z(({ onToggle: w }) => {
1281
+ var P, I, re, ie, de, pe;
1262
1282
  return [
1263
- t("div", Ht, [
1264
- (s(!0), o(I, null, D(l.workspaces || [], (L) => (s(), o("div", {
1265
- key: L.name,
1283
+ t("div", At, [
1284
+ (s(!0), l(R, null, D(o.workspaces || [], (O) => (s(), l("div", {
1285
+ key: O.name,
1266
1286
  class: "flex items-center gap-2 px-3 py-2 hover:bg-secondary-10 cursor-pointer",
1267
- onClick: (ue) => {
1268
- var W, ne;
1269
- return (ne = (W = l.handlers) == null ? void 0 : W.onChange) == null || ne.call(W, L), h();
1287
+ onClick: (ke) => {
1288
+ var N, ue;
1289
+ return (ue = (N = o.handlers) == null ? void 0 : N.onChange) == null || ue.call(N, O), w();
1270
1290
  }
1271
1291
  }, [
1272
- S(Ce, {
1273
- text: L.name,
1274
- src: L.photo_url,
1292
+ _($e, {
1293
+ text: O.name,
1294
+ src: O.photo_url,
1275
1295
  size: 24,
1276
1296
  rounded: !1
1277
1297
  }, null, 8, ["text", "src"]),
1278
- t("span", Et, i(L.name), 1)
1279
- ], 8, At))), 128)),
1280
- (z = l.workspaces) != null && z.length ? (s(), o("div", Pt)) : a("", !0),
1281
- (p = l.apps) != null && p.length ? (s(), o("div", Ft, i(((E = l.labels) == null ? void 0 : E.apps) || "Apps"), 1)) : a("", !0),
1282
- (s(!0), o(I, null, D(l.apps || [], (L) => (s(), o("div", {
1283
- key: L.id,
1298
+ t("span", Ft, i(O.name), 1)
1299
+ ], 8, Et))), 128)),
1300
+ (P = o.workspaces) != null && P.length ? (s(), l("div", Pt)) : a("", !0),
1301
+ (I = o.apps) != null && I.length ? (s(), l("div", Wt, i(((re = o.labels) == null ? void 0 : re.apps) || "Apps"), 1)) : a("", !0),
1302
+ (s(!0), l(R, null, D(o.apps || [], (O) => (s(), l("div", {
1303
+ key: O.id,
1284
1304
  class: "flex items-center gap-2 px-3 py-2 hover:bg-secondary-10 cursor-pointer",
1285
- onClick: (ue) => {
1286
- var W, ne;
1287
- return (ne = (W = l.handlers) == null ? void 0 : W.onApp) == null || ne.call(W, L), h();
1305
+ onClick: (ke) => {
1306
+ var N, ue;
1307
+ return (ue = (N = o.handlers) == null ? void 0 : N.onApp) == null || ue.call(N, O), w();
1288
1308
  }
1289
1309
  }, [
1290
- S(Ce, {
1291
- text: L.name,
1292
- src: L.photo_url,
1310
+ _($e, {
1311
+ text: O.name,
1312
+ src: O.photo_url,
1293
1313
  size: 24,
1294
1314
  rounded: !1
1295
1315
  }, null, 8, ["text", "src"]),
1296
- t("span", Nt, i(L.name), 1)
1297
- ], 8, Wt))), 128)),
1298
- (G = l.handlers) != null && G.onChange ? (s(), o("div", Gt, [
1316
+ t("span", Gt, i(O.name), 1)
1317
+ ], 8, Nt))), 128)),
1318
+ (ie = o.handlers) != null && ie.onManageWorkspaces || (de = o.handlers) != null && de.onChange ? (s(), l("div", It, [
1299
1319
  t("button", {
1300
1320
  type: "button",
1301
1321
  class: "w-full text-left text-xs text-secondary-content px-3 py-2 hover:bg-secondary-10",
1302
- onClick: (L) => (l.handlers.onChange(), h())
1303
- }, i(((oe = l.labels) == null ? void 0 : oe.change) || "Change workspace"), 9, It)
1322
+ onClick: (O) => (c(), w())
1323
+ }, i(((pe = o.labels) == null ? void 0 : pe.change) || "Change workspace"), 9, Rt)
1304
1324
  ])) : a("", !0)
1305
1325
  ])
1306
1326
  ];
1307
1327
  }),
1308
1328
  _: 1
1309
1329
  })) : a("", !0),
1310
- ie(l.$slots, "head-left", {}, void 0, !0)
1330
+ me(o.$slots, "head-left", {}, void 0, !0)
1311
1331
  ]),
1312
- t("div", Rt, [
1313
- (M = l.improveTariff) != null && M.label ? (s(), o("a", {
1332
+ t("div", qt, [
1333
+ (X = o.improveTariff) != null && X.label ? (s(), l("a", {
1314
1334
  key: 0,
1315
- href: ((A = l.improveTariff) == null ? void 0 : A.url) || "#",
1335
+ href: ((Y = o.improveTariff) == null ? void 0 : Y.url) || "#",
1316
1336
  class: "flex items-center gap-1.5 bg-[#FFF8E4] hover:bg-[#FAEBC2] rounded-full px-2 py-0.5 transition-colors",
1317
- onClick: u[2] || (u[2] = re((h) => {
1318
- var z, p;
1319
- return (p = (z = l.handlers) == null ? void 0 : z.onImproveTariff) == null ? void 0 : p.call(z);
1337
+ onClick: d[2] || (d[2] = he((w) => {
1338
+ var P, I;
1339
+ return (I = (P = o.handlers) == null ? void 0 : P.onImproveTariff) == null ? void 0 : I.call(P);
1320
1340
  }, ["prevent"]))
1321
1341
  }, [
1322
- l.improveTariff.icon ? (s(), v(k(l.improveTariff.icon), {
1342
+ o.improveTariff.icon ? (s(), f(L(o.improveTariff.icon), {
1323
1343
  key: 0,
1324
1344
  class: "w-4 h-4 text-warning-base"
1325
1345
  })) : a("", !0),
1326
- t("span", Ut, i(l.improveTariff.label), 1)
1327
- ], 8, qt)) : a("", !0),
1328
- ie(l.$slots, "head-right", {}, void 0, !0),
1329
- l.help ? (s(), v(e1, {
1346
+ t("span", Zt, i(o.improveTariff.label), 1)
1347
+ ], 8, Ut)) : a("", !0),
1348
+ me(o.$slots, "head-right", {}, void 0, !0),
1349
+ o.help ? (s(), f(e1, {
1330
1350
  key: 1,
1331
1351
  ref_key: "helpMenuRef",
1332
- ref: U,
1333
- help: l.help
1352
+ ref: V,
1353
+ help: o.help
1334
1354
  }, null, 8, ["help"])) : a("", !0),
1335
- S(s1, {
1336
- workspace: l.workspace || ((f = l.app) == null ? void 0 : f.workspace),
1337
- apps: l.apps || ((P = l.app) == null ? void 0 : P.apps) || [],
1338
- "change-label": ((F = l.labels) == null ? void 0 : F.change) || "Change",
1339
- "apps-title": ((R = l.labels) == null ? void 0 : R.apps) || "Apps",
1340
- "on-app": (K = l.handlers) == null ? void 0 : K.onApp,
1341
- "on-change": (Q = l.handlers) == null ? void 0 : Q.onChange,
1342
- onOpen: j
1355
+ _(s1, {
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
1343
1363
  }, null, 8, ["workspace", "apps", "change-label", "apps-title", "on-app", "on-change"]),
1344
- S(t1, {
1345
- user: l.user,
1346
- menu: l.menu,
1347
- app: l.app,
1348
- "account-label": ((n = l.labels) == null ? void 0 : n.account) || "Account",
1349
- "logout-label": ((w = l.labels) == null ? void 0 : w.logout) || "Logout",
1350
- "version-label": ((X = l.labels) == null ? void 0 : X.version) || "",
1351
- "on-account": (Y = l.handlers) == null ? void 0 : Y.onAccount,
1352
- "on-logout": (ee = l.handlers) == null ? void 0 : ee.onLogout
1364
+ _(t1, {
1365
+ user: o.user,
1366
+ menu: o.menu,
1367
+ app: o.app,
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
1353
1373
  }, null, 8, ["user", "menu", "app", "account-label", "logout-label", "version-label", "on-account", "on-logout"])
1354
1374
  ])
1355
1375
  ], 512), [
1356
- [me, V.value]
1376
+ [_e, v.value]
1357
1377
  ]),
1358
- t("div", Zt, [
1359
- ie(l.$slots, "default", {}, void 0, !0)
1378
+ t("div", Dt, [
1379
+ me(o.$slots, "default", {}, void 0, !0)
1360
1380
  ])
1361
1381
  ])
1362
1382
  ]),
1363
- l.news ? (s(), o("div", Dt, [
1364
- _.value ? (s(), o("div", {
1383
+ o.news ? (s(), l("div", Jt, [
1384
+ T.value ? (s(), l("div", {
1365
1385
  key: 0,
1366
1386
  class: "fixed top-0 left-0 h-dvh w-screen bg-gray-100 bg-opacity-40 z-50",
1367
- onClick: u[3] || (u[3] = re((h) => _.value = !1, ["self"]))
1387
+ onClick: d[3] || (d[3] = he((w) => T.value = !1, ["self"]))
1368
1388
  })) : a("", !0),
1369
1389
  t("div", {
1370
- class: y(["opacity-100 shadow-lg transition-all fixed top-0 left-0 h-dvh overflow-hidden z-50 bg-white", [_.value ? "sm:w-[560px] w-full" : "w-0"]])
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"]])
1371
1391
  }, [
1372
- _.value ? (s(), o("div", Jt, [
1373
- t("div", Kt, [
1374
- t("div", Qt, [
1375
- S(fe, { class: "w-10 h-10" }),
1376
- u[5] || (u[5] = t("div", { class: "w-full font-medium" }, "OneB News", -1)),
1392
+ T.value ? (s(), l("div", Kt, [
1393
+ t("div", Qt, [
1394
+ t("div", Xt, [
1395
+ _(Se, { class: "w-10 h-10" }),
1396
+ d[5] || (d[5] = t("div", { class: "w-full font-medium" }, "OneB News", -1)),
1377
1397
  t("div", null, [
1378
- S(xe, {
1398
+ _(Te, {
1379
1399
  variant: "touch",
1380
- icon: B(l1),
1381
- onClick: u[4] || (u[4] = (h) => _.value = !1)
1400
+ icon: S(l1),
1401
+ onClick: d[4] || (d[4] = (w) => T.value = !1)
1382
1402
  }, null, 8, ["icon"])
1383
1403
  ])
1384
1404
  ]),
1385
- t("div", Xt, [
1386
- l.news.isLoading && ((se = l.news.items) == null ? void 0 : se.length) === 0 ? (s(), o("div", Yt, [
1387
- S(o1, { class: "w-6 h-6 text-gray-600 mx-auto" })
1388
- ])) : ((te = l.news.items) == null ? void 0 : te.length) === 0 ? (s(), o("div", el, [
1389
- t("div", sl, i(l.news.emptyText), 1)
1390
- ])) : ((le = l.news.items) == null ? void 0 : le.length) > 0 ? (s(), o("div", tl, [
1391
- (s(!0), o(I, null, D(l.news.items, (h) => (s(), o("div", {
1392
- key: h.id,
1405
+ t("div", Yt, [
1406
+ o.news.isLoading && ((ye = o.news.items) == null ? void 0 : ye.length) === 0 ? (s(), l("div", el, [
1407
+ _(o1, { class: "w-6 h-6 text-gray-600 mx-auto" })
1408
+ ])) : ((be = o.news.items) == null ? void 0 : be.length) === 0 ? (s(), l("div", sl, [
1409
+ t("div", tl, i(o.news.emptyText), 1)
1410
+ ])) : ((Ce = o.news.items) == null ? void 0 : Ce.length) > 0 ? (s(), l("div", ll, [
1411
+ (s(!0), l(R, null, D(o.news.items, (w) => (s(), l("div", {
1412
+ key: w.id,
1393
1413
  class: "p-3"
1394
1414
  }, [
1395
- t("div", ll, [
1415
+ t("div", ol, [
1396
1416
  t("div", null, [
1397
- h.type ? (s(), o("div", ol, [
1398
- h.type === 10 ? (s(), o("span", nl, "update")) : h.type === 11 ? (s(), o("span", al, "warning")) : h.type === 12 ? (s(), o("span", rl, "notice")) : h.type === 13 ? (s(), o("span", il, "ads")) : a("", !0)
1417
+ w.type ? (s(), l("div", nl, [
1418
+ 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)
1399
1419
  ])) : a("", !0),
1400
- t("div", dl, i(h.title), 1),
1401
- t("div", pl, i(h.summary), 1)
1420
+ t("div", pl, i(w.title), 1),
1421
+ t("div", ul, i(w.summary), 1)
1402
1422
  ]),
1403
- h.image_url ? (s(), o("div", ul, [
1423
+ w.image_url ? (s(), l("div", cl, [
1404
1424
  t("img", {
1405
- src: h.image_url,
1425
+ src: w.image_url,
1406
1426
  alt: "",
1407
1427
  class: "w-full rounded-md"
1408
- }, null, 8, cl)
1428
+ }, null, 8, hl)
1409
1429
  ])) : a("", !0),
1410
- t("div", hl, [
1411
- S(n1, {
1412
- text: h.body
1430
+ t("div", ml, [
1431
+ _(n1, {
1432
+ text: w.body
1413
1433
  }, null, 8, ["text"])
1414
1434
  ]),
1415
- h.video_url ? (s(), o("div", ml, [
1435
+ w.video_url ? (s(), l("div", fl, [
1416
1436
  t("a", {
1417
- href: h.video_url,
1437
+ href: w.video_url,
1418
1438
  target: "_blank",
1419
1439
  class: "text-blue-600 hover:text-blue-700 px-3 py-2 border rounded-md w-full block"
1420
- }, i(l.news.openVideoText), 9, fl)
1440
+ }, i(o.news.openVideoText), 9, vl)
1421
1441
  ])) : a("", !0),
1422
- t("div", vl, [
1423
- t("span", wl, i(h.published), 1),
1424
- h.post_url ? (s(), o("a", {
1442
+ t("div", wl, [
1443
+ t("span", yl, i(w.published), 1),
1444
+ w.post_url ? (s(), l("a", {
1425
1445
  key: 0,
1426
- href: h.post_url,
1446
+ href: w.post_url,
1427
1447
  target: "_blank",
1428
1448
  class: "text-blue-600 hover:text-blue-700 block"
1429
- }, i(l.news.moreText), 9, yl)) : a("", !0)
1449
+ }, i(o.news.moreText), 9, bl)) : a("", !0)
1430
1450
  ])
1431
1451
  ])
1432
1452
  ]))), 128))
@@ -1440,9 +1460,9 @@ const Al = /* @__PURE__ */ we(St, [["__scopeId", "data-v-f5bf3126"]]), Bt = { cl
1440
1460
  };
1441
1461
  }
1442
1462
  });
1443
- const El = /* @__PURE__ */ we(bl, [["__scopeId", "data-v-d6f26d1f"]]);
1463
+ const Fl = /* @__PURE__ */ Me(Cl, [["__scopeId", "data-v-fd9db97f"]]);
1444
1464
  export {
1445
- El as OneIslandLayout,
1446
- Al as OneMainLayout,
1465
+ Fl as OneIslandLayout,
1466
+ El as OneMainLayout,
1447
1467
  d1 as OneSidebar
1448
1468
  };