@oneb/ui-vue 0.3.23 → 0.3.26

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