@oneb/ui-vue 0.3.25 → 0.3.27

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