@oneb/ui-vue 0.3.19 → 0.3.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,20 +1,20 @@
1
- import { openBlock as t, createElementBlock as l, createElementVNode as e, defineComponent as c1, computed as M, ref as $, resolveComponent as q1, Fragment as K, normalizeClass as c, toDisplayString as u, createCommentVNode as a, createBlock as w, resolveDynamicComponent as _, unref as k, withModifiers as t1, withCtx as i1, renderList as s1, watch as l1, onMounted as p1, onBeforeUnmount as J1, watchEffect as R1, shallowRef as K1, normalizeStyle as Q1, withDirectives as u1, vShow as d1, createTextVNode as e1, createVNode as j, onUnmounted as G1, renderSlot as n1 } from "vue";
2
- import { r as a1, a as X1 } from "../ChevronRightIcon-4549a26b.js";
3
- import { r as r1 } from "../ChevronDownIcon-6805ce6c.js";
4
- import { _ as m1 } from "../_plugin-vue_export-helper-dad06003.js";
5
- import { g as Y1, c as ee, O as te, b as se } from "../OneHelpMenu-d7a39a69.js";
6
- import { OneButton as U1 } from "../button/index.js";
7
- import { r as le } from "../XMarkIcon-51ef0691.js";
8
- import { S as oe } from "../SpinnerIcon-74648c98.js";
9
- import { OneMarkdown as ne } from "../common/index.js";
1
+ import { openBlock as s, createElementBlock as l, createElementVNode as t, defineComponent as ve, computed as B, ref as S, resolveComponent as Ye, resolveDirective as c1, Fragment as G, toDisplayString as r, createCommentVNode as o, createBlock as p, withCtx as U, resolveDynamicComponent as k, mergeProps as h1, renderList as Z, withDirectives as oe, normalizeClass as y, unref as $, withModifiers as ae, watch as ie, onMounted as he, onBeforeUnmount as m1, watchEffect as e1, shallowRef as f1, normalizeStyle as v1, vShow as me, createVNode as L, createTextVNode as ue, onUnmounted as ge, renderSlot as re } from "vue";
2
+ import { _ as s1, g as w1, c as t1, O as l1, b as n1 } from "../OneHelpMenu-a9131cb1.js";
3
+ import { r as be, a as y1 } from "../ChevronRightIcon-4549a26b.js";
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";
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
12
  import "../floating-ui.dom-4509432e.js";
12
13
  import "@floating-ui/vue";
13
- import "../OneAvatar.vue_vue_type_script_setup_true_lang-08ab80dd.js";
14
14
  import "../SpinnerIcon.vue_vue_type_style_index_0_lang-4ed993c7.js";
15
15
  import "vue-markdown-render";
16
- function ae(v, C) {
17
- return t(), l("svg", {
16
+ function i1(g, x) {
17
+ return s(), l("svg", {
18
18
  xmlns: "http://www.w3.org/2000/svg",
19
19
  fill: "none",
20
20
  viewBox: "0 0 24 24",
@@ -22,15 +22,15 @@ function ae(v, C) {
22
22
  stroke: "currentColor",
23
23
  "aria-hidden": "true"
24
24
  }, [
25
- e("path", {
25
+ t("path", {
26
26
  "stroke-linecap": "round",
27
27
  "stroke-linejoin": "round",
28
28
  d: "M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"
29
29
  })
30
30
  ]);
31
31
  }
32
- function re(v, C) {
33
- return t(), l("svg", {
32
+ function b1(g, x) {
33
+ return s(), l("svg", {
34
34
  xmlns: "http://www.w3.org/2000/svg",
35
35
  fill: "none",
36
36
  viewBox: "0 0 24 24",
@@ -38,14 +38,14 @@ function re(v, C) {
38
38
  stroke: "currentColor",
39
39
  "aria-hidden": "true"
40
40
  }, [
41
- e("path", {
41
+ t("path", {
42
42
  "stroke-linecap": "round",
43
43
  "stroke-linejoin": "round",
44
44
  d: "M8.625 9.75a.375.375 0 11-.75 0 .375.375 0 01.75 0zm0 0H8.25m4.125 0a.375.375 0 11-.75 0 .375.375 0 01.75 0zm0 0H12m4.125 0a.375.375 0 11-.75 0 .375.375 0 01.75 0zm0 0h-.375m-13.5 3.01c0 1.6 1.123 2.994 2.707 3.227 1.087.16 2.185.283 3.293.369V21l4.184-4.183a1.14 1.14 0 01.778-.332 48.294 48.294 0 005.83-.498c1.585-.233 2.708-1.626 2.708-3.228V6.741c0-1.602-1.123-2.995-2.707-3.228A48.394 48.394 0 0012 3c-2.392 0-4.744.175-7.043.513C3.373 3.746 2.25 5.14 2.25 6.741v6.018z"
45
45
  })
46
46
  ]);
47
47
  }
48
- const Z1 = {
48
+ const d1 = {
49
49
  items: {
50
50
  required: !0,
51
51
  type: Array
@@ -54,6 +54,10 @@ const Z1 = {
54
54
  type: Boolean,
55
55
  default: !1
56
56
  },
57
+ island: {
58
+ type: Boolean,
59
+ default: !1
60
+ },
57
61
  isMobile: {
58
62
  type: Boolean,
59
63
  default: !1
@@ -69,7 +73,7 @@ const Z1 = {
69
73
  news: {
70
74
  type: Object
71
75
  }
72
- }, ie = {
76
+ }, C1 = {
73
77
  route: {
74
78
  required: !1,
75
79
  type: [Object, String]
@@ -119,6 +123,14 @@ const Z1 = {
119
123
  type: Boolean,
120
124
  default: !0
121
125
  },
126
+ island: {
127
+ type: Boolean,
128
+ default: !1
129
+ },
130
+ active: {
131
+ type: Boolean,
132
+ default: !1
133
+ },
122
134
  open: {
123
135
  type: Boolean,
124
136
  default: !1
@@ -128,8 +140,8 @@ const Z1 = {
128
140
  required: !1
129
141
  // Не обов'язковий, бо може бути відсутнім
130
142
  }
131
- }, pe = {
132
- sidebarItems: Z1.items,
143
+ }, u1 = {
144
+ sidebarItems: d1.items,
133
145
  logoSrc: {
134
146
  type: String
135
147
  },
@@ -178,188 +190,274 @@ const Z1 = {
178
190
  type: Array,
179
191
  default: () => []
180
192
  }
181
- }, ue = ["href"], de = { class: "flex flex-nowrap items-center w-full h-[24px]" }, ce = {
193
+ }, g1 = {
182
194
  key: 0,
183
- class: "w-[44px] flex-shrink-0"
184
- }, me = { class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full" }, fe = { class: "py-[8px] pl-0 pr-0" }, he = { class: "flex flex-nowrap items-center w-full h-[24px]" }, ve = {
195
+ class: "border-t border-secondary-stroke my-2 mx-auto w-6"
196
+ }, x1 = {
197
+ key: 1,
198
+ style: { "font-size": "10px" },
199
+ 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 = {
185
201
  key: 0,
186
- class: "w-[44px] flex-shrink-0"
187
- }, Ce = { class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full" }, we = { class: "py-[8px] pl-0 pr-0" }, xe = {
202
+ 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 = {
188
204
  key: 1,
205
+ class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full"
206
+ }, T1 = { class: "py-[8px] pl-0 pr-0" }, V1 = {
207
+ key: 2,
208
+ class: "ml-auto"
209
+ }, H1 = { class: "flex flex-nowrap items-center h-[24px]" }, A1 = {
210
+ key: 1,
211
+ class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full"
212
+ }, P1 = { class: "py-[8px] pl-0 pr-0" }, E1 = {
213
+ key: 2,
189
214
  class: "p-3"
190
- }, be = { class: "flex flex-nowrap items-center w-full h-[24px]" }, ye = {
191
- key: 0,
192
- class: "w-[44px] flex-shrink-0"
193
- }, ge = { class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full" }, Le = { class: "py-[8px] pl-0 pr-0" }, ke = {
215
+ }, F1 = { class: "flex flex-nowrap items-center h-[24px]" }, W1 = {
194
216
  key: 1,
217
+ class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full"
218
+ }, N1 = { class: "py-[8px] pl-0 pr-0" }, G1 = {
219
+ key: 2,
195
220
  class: "p-3"
196
- }, _e = ["href"], $e = { class: "flex items-center justify-between min-w-full h-[24px]" }, Se = {
221
+ }, I1 = {
222
+ key: 3,
223
+ 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 = {
197
225
  key: 0,
198
- class: "text-xs"
199
- }, Me = {
226
+ class: "pr-1"
227
+ }, D1 = { class: "text-xs" }, J1 = {
200
228
  key: 0,
201
- class: "text-xs"
202
- }, Be = {
203
- key: 1,
204
229
  class: "pr-3"
205
- }, Oe = /* @__PURE__ */ c1({
230
+ }, K1 = /* @__PURE__ */ ve({
206
231
  __name: "OneSidebarLink",
207
- props: ie,
232
+ props: C1,
208
233
  emits: ["update-collapsed"],
209
- setup(v, { emit: C }) {
210
- const r = v, d = C, g = M(() => r.href ?? !1), b = M(() => h(r)), h = (o) => o.route ? o.route : o.routeName ? { name: o.routeName } : null, L = $(r.open), V = (o, y = r) => {
211
- var m;
212
- return (y == null ? void 0 : y.menuGroup) && (o == null ? void 0 : o.meta) && ((m = o.meta) == null ? void 0 : m.menuGroup) && o.meta.menuGroup && o.meta.menuGroup === y.menuGroup;
213
- }, E = () => {
214
- L.value = !L.value;
215
- }, B = (o, y) => {
216
- r.subItems && r.subItems.length > 0 && !y && (o.preventDefault(), E()), (y || !r.subItems || r.subItems.length === 0) && r.isMobile && d("update-collapsed");
234
+ setup(g, { emit: x }) {
235
+ const i = g, c = x, _ = (e) => e.route ? e.route : e.routeName ? { name: e.routeName } : null, v = B(() => _(i)), d = B(() => Array.isArray(i.subItems) && i.subItems.length > 0), F = B(() => d.value && i.subItems.some((e) => e.href)), I = B(() => i.href ? "a" : v.value ? "router-link" : "span"), D = B(() => i.href ? { href: i.href, title: d.value ? null : i.label } : v.value ? { to: v.value, title: d.value ? null : i.label } : { title: d.value ? null : i.label }), q = B(() => [
236
+ "flex items-center justify-center text-sm font-medium hover:bg-primary-10-hover hover:text-primary-base transition-all text-[#525B66] mb-0.5 rounded-10 w-[44px] h-[44px] cursor-pointer",
237
+ i.active ? "bg-primary-10 !text-primary-base" : ""
238
+ ]), M = S(i.open), W = (e, a = i) => {
239
+ var C;
240
+ return (a == null ? void 0 : a.menuGroup) && (e == null ? void 0 : e.meta) && ((C = e.meta) == null ? void 0 : C.menuGroup) && e.meta.menuGroup && e.meta.menuGroup === a.menuGroup;
241
+ }, f = () => {
242
+ M.value = !M.value;
243
+ }, O = (e, a) => {
244
+ var C;
245
+ d.value && !a && !(i.slim && i.island) && ((C = e == null ? void 0 : e.preventDefault) == null || C.call(e), f()), (a || !d.value) && i.isMobile && c("update-collapsed");
217
246
  };
218
- return (o, y) => {
219
- var O, n;
220
- const m = q1("RouterLink");
221
- return t(), l(K, null, [
222
- o.labelTop ? (t(), l("p", {
223
- key: 0,
224
- style: { "font-size": "10px" },
225
- class: c([{ "text-center h-[15px]": o.slim }, "text-[#a1a5b0] px-2 pt-0 pb-0.5 pl-3 font-medium"])
226
- }, u(o.slim ? "" : o.labelTop), 3)) : a("", !0),
227
- g.value ? (t(), l("a", {
228
- key: 1,
229
- href: g.value,
230
- class: c(["flex items-center relative rounded-xl text-sm font-medium hover:bg-primary-10-hover hover:text-primary-base transition-all text-[#525B66] mb-0.5", [o.slim ? "w-[44px] h-[44px]" : "h-[44px] w-full"]]),
231
- onClick: B
232
- }, [
233
- e("div", de, [
234
- o.icon ? (t(), l("div", ce, [
235
- (t(), w(_(o.icon), { class: "w-[24px] h-[24px] mx-auto" }))
236
- ])) : a("", !0),
237
- e("div", me, [
238
- e("span", fe, u(o.label), 1)
239
- ]),
240
- r.subItems && r.subItems.length > 0 ? (t(), l("div", {
241
- key: 1,
242
- class: c(["ml-auto", [(o.slim, "")]])
243
- }, [
244
- (t(), w(_(L.value ? k(a1) : k(r1)), { class: "w-[16px] h-[16px]" }))
245
- ], 2)) : a("", !0)
246
- ])
247
- ], 10, ue)) : a("", !0),
248
- !g.value && b.value ? (t(), w(m, {
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, {
249
253
  key: 2,
250
- to: b.value,
251
- exact: o.exact,
252
- class: c(["relative flex items-center cursor-pointer rounded-xl text-sm font-medium hover:bg-primary-10-hover hover:text-primary-base transition-all text-[#525B66] mb-0.5", {
253
- "w-[44px] h-[44px]": o.slim,
254
- "h-[44px] w-full": !o.slim,
255
- "bg-primary-10 !text-primary-base": V(o.$route)
256
- }]),
257
- "active-class": (O = o.$route) != null && O.meta && ((n = o.$route.meta) != null && n.menuGroup) && o.$route.meta.menuGroup ? "" : "bg-primary-10 !text-primary-base",
258
- onClick: t1(B, ["prevent"])
254
+ trigger: "hover",
255
+ "append-body": !0,
256
+ stick: "right-start",
257
+ offset: 12
259
258
  }, {
260
- default: i1(() => [
261
- e("div", he, [
262
- o.icon ? (t(), l("div", ve, [
263
- (t(), w(_(o.icon), { class: "w-[24px] h-[24px] mx-auto" }))
264
- ])) : a("", !0),
265
- e("div", Ce, [
266
- e("span", we, u(o.label), 1)
259
+ button: U(() => [
260
+ (s(), p(k(I.value), h1(D.value, {
261
+ class: q.value,
262
+ onClick: O
263
+ }), {
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)
269
+ ])
267
270
  ]),
268
- r.subItems && r.subItems.length > 0 && !o.slim ? (t(), l("div", xe, [
269
- (t(), w(_(L.value ? k(a1) : k(r1)), { class: "w-[16px] h-[16px]" }))
270
- ])) : a("", !0)
271
+ _: 1
272
+ }, 16, ["class"]))
273
+ ]),
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,
280
+ 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
+ }, [
282
+ m.icon ? (s(), p(k(m.icon), {
283
+ key: 0,
284
+ 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),
292
+ 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"
294
+ }, {
295
+ default: U(() => [
296
+ m.icon ? (s(), p(k(m.icon), {
297
+ key: 0,
298
+ class: "w-[15px] h-[15px] shrink-0"
299
+ })) : o("", !0),
300
+ t("span", M1, r(m.label), 1)
301
+ ]),
302
+ _: 2
303
+ }, 1032, ["to", "active-class"]);
304
+ }), 128))
271
305
  ])
272
306
  ]),
273
307
  _: 1
274
- }, 8, ["to", "exact", "active-class", "class"])) : a("", !0),
275
- !g.value && !b.value ? (t(), l("span", {
276
- key: 3,
277
- onClick: t1(B, ["prevent"]),
278
- class: c([[o.slim ? "w-[44px] h-[44px]" : "h-[44px] w-full"], "mb-0.5 relative flex items-center cursor-pointer rounded-xl text-sm font-medium hover:bg-primary-10-hover hover:text-primary-base transition-all text-[#525B66]"])
279
- }, [
280
- e("div", be, [
281
- o.icon ? (t(), l("div", ye, [
282
- (t(), w(_(o.icon), { class: "w-[24px] h-[24px] mx-auto" }))
283
- ])) : a("", !0),
284
- e("div", ge, [
285
- e("span", Le, u(o.label), 1)
308
+ })) : (s(), l(G, { key: 3 }, [
309
+ e.href ? oe((s(), l("a", {
310
+ key: 0,
311
+ 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", [
313
+ e.island ? "rounded-10" : "rounded-xl",
314
+ e.slim ? "w-[44px] h-[44px] justify-center" : "h-[44px] w-full",
315
+ e.active ? "bg-primary-10 !text-primary-base" : ""
316
+ ]]),
317
+ onClick: O
318
+ }, [
319
+ t("div", O1, [
320
+ e.icon ? (s(), l("div", {
321
+ key: 0,
322
+ class: y(["flex-shrink-0", e.slim ? "w-auto" : "w-[44px]"])
323
+ }, [
324
+ (s(), p(k(e.icon), {
325
+ class: y(["mx-auto", e.slim ? "w-5 h-5" : "w-[24px] h-[24px]"])
326
+ }, 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
+ ])),
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
+ ])
335
+ ], 10, j1)), [
336
+ [z, e.slim && !d.value ? e.label : "", "right"]
337
+ ]) : o("", !0),
338
+ !e.href && v.value ? oe((s(), p(C, {
339
+ key: 1,
340
+ to: v.value,
341
+ 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", {
343
+ "rounded-10": e.island,
344
+ "rounded-xl": !e.island,
345
+ "w-[44px] h-[44px] justify-center": e.slim,
346
+ "h-[44px] w-full": !e.slim,
347
+ "bg-primary-10 !text-primary-base": e.active || W(e.$route)
348
+ }]),
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"])
351
+ }, {
352
+ default: U(() => [
353
+ t("div", H1, [
354
+ e.icon ? (s(), l("div", {
355
+ key: 0,
356
+ class: y(["flex-shrink-0", e.slim ? "w-auto" : "w-[44px]"])
357
+ }, [
358
+ (s(), p(k(e.icon), {
359
+ class: y(["mx-auto", e.slim ? "w-5 h-5" : "w-[24px] h-[24px]"])
360
+ }, 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
+ ])),
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
+ ])
286
369
  ]),
287
- r.subItems && r.subItems.length > 0 && !o.slim ? (t(), l("div", ke, [
288
- (t(), w(_(L.value ? k(a1) : k(r1)), { class: "w-[16px] h-[16px]" }))
289
- ])) : a("", !0)
290
- ])
291
- ], 2)) : a("", !0),
292
- L.value && r.subItems ? (t(), l("div", {
293
- key: 4,
294
- class: c([o.slim ? "" : "pl-[36px] pr-3"])
295
- }, [
296
- e("div", {
297
- class: c([(o.slim, "")])
370
+ _: 1
371
+ }, 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
+ 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]", [
378
+ e.island ? "rounded-10" : "rounded-xl",
379
+ e.slim ? "w-[44px] h-[44px] justify-center" : "h-[44px] w-full",
380
+ e.active ? "bg-primary-10 !text-primary-base" : ""
381
+ ]])
298
382
  }, [
299
- (t(!0), l(K, null, s1(r.subItems, (i) => {
300
- var I, H;
301
- return t(), l("div", {
302
- key: i.label,
303
- class: c([(o.slim, "")])
383
+ t("div", F1, [
384
+ e.icon ? (s(), l("div", {
385
+ key: 0,
386
+ class: y(["flex-shrink-0", e.slim ? "w-auto" : "w-[44px]"])
387
+ }, [
388
+ (s(), p(k(e.icon), {
389
+ class: y(["mx-auto", e.slim ? "w-5 h-5" : "w-[24px] h-[24px]"])
390
+ }, 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
+ ])),
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
+ ])
399
+ ], 2)), [
400
+ [z, e.slim && !d.value ? e.label : "", "right"]
401
+ ]) : o("", !0),
402
+ M.value && d.value && !e.slim ? (s(), l("div", I1, [
403
+ (s(!0), l(G, null, Z(i.subItems, (m) => {
404
+ var H, A;
405
+ return s(), l("div", {
406
+ key: m.label
304
407
  }, [
305
- i.href ? (t(), l("a", {
408
+ m.href ? (s(), l("a", {
306
409
  key: 0,
307
- href: i.href,
410
+ href: m.href,
308
411
  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]"
309
412
  }, [
310
- e("div", $e, [
311
- o.slim ? a("", !0) : (t(), l("span", Se, u(i.label), 1)),
312
- i.icon ? (t(), l("div", {
313
- key: 1,
314
- class: c([o.slim ? "pl-2 h-[15px]" : "pr-1"])
315
- }, [
316
- (t(), w(_(i.icon), { class: "w-[15px] h-[15px] mx-auto" }))
317
- ], 2)) : a("", !0)
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)
318
418
  ])
319
- ], 8, _e)) : h(i) ? (t(), w(m, {
419
+ ], 8, R1)) : _(m) ? (s(), p(C, {
320
420
  key: 1,
321
- to: h(i),
322
- onClick: y[0] || (y[0] = t1((S) => B(S, !0), ["prevent"])),
323
- class: c(["flex items-center rounded-xl p-2 text-sm font-medium hover:bg-primary-10-hover hover:text-primary-base transition-all text-[#525B66]", {
324
- "w-[44px] h-[44px]": o.slim,
325
- "h-[44px] w-full": !o.slim,
326
- "bg-primary-10 !text-primary-base": V(o.$route, i)
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)
327
425
  }]),
328
- "active-class": (I = o.$route) != null && I.meta && ((H = o.$route.meta) != null && H.menuGroup) && o.$route.meta.menuGroup ? "" : "bg-primary-10 !text-primary-base"
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"
329
427
  }, {
330
- default: i1(() => [
331
- o.slim ? a("", !0) : (t(), l("span", Me, u(i.label), 1)),
332
- i.icon ? (t(), l("div", Be, [
333
- (t(), w(_(i.icon), { class: "w-[20px] h-[20px] mx-auto" }))
334
- ])) : a("", !0)
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)
335
433
  ]),
336
434
  _: 2
337
- }, 1032, ["to", "active-class", "class"])) : a("", !0)
338
- ], 2);
435
+ }, 1032, ["to", "active-class", "class"])) : o("", !0)
436
+ ]);
339
437
  }), 128))
340
- ], 2)
341
- ], 2)) : a("", !0)
438
+ ])) : o("", !0)
439
+ ], 64))
342
440
  ], 64);
343
441
  };
344
442
  }
345
- }), Ve = {}, ze = {
443
+ }), Q1 = {}, X1 = {
346
444
  xmlns: "http://www.w3.org/2000/svg",
347
445
  width: "24",
348
446
  height: "24",
349
447
  viewBox: "0 0 24 24",
350
448
  fill: "none"
351
449
  };
352
- function Te(v, C) {
353
- return t(), l("svg", ze, [...C[0] || (C[0] = [
354
- e("path", {
450
+ function Y1(g, x) {
451
+ return s(), l("svg", X1, [...x[0] || (x[0] = [
452
+ t("path", {
355
453
  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",
356
454
  fill: "currentColor"
357
455
  }, null, -1),
358
- e("path", {
456
+ t("path", {
359
457
  d: "M15.7294 11.3876C16.2011 11.2795 16.7453 10.9769 16.7816 10.0547C16.7816 9.36299 16.5276 8.90188 16.1285 8.57766C15.6569 8.14537 14.9675 8.03729 14.3797 8.03729H11.4626V13.9309C11.4626 14.6802 11.6441 15.2061 12.0141 15.5087C12.3842 15.8113 13.0155 15.9626 13.8935 15.9626H14.9675C15.6859 15.9626 16.2374 15.7681 16.6365 15.3718C17.0428 14.9756 17.2388 14.4136 17.2388 13.6787C17.2388 12.7925 16.9993 11.6758 15.7294 11.3876ZM13.0228 9.42783L14.2564 9.39181C14.8296 9.39181 15.1199 9.68 15.1199 10.2492C15.1199 10.8184 14.8296 11.1066 14.2564 11.1066L13.0228 11.1426V9.42783ZM14.8079 14.5865H14.0024C13.6541 14.5865 13.4001 14.5289 13.2405 14.4064C13.0881 14.2911 13.0155 14.075 13.0155 13.7724V12.5259H14.8079C15.1344 12.5259 15.3666 12.6196 15.49 12.8069C15.6133 12.987 15.6786 13.2536 15.6786 13.6067C15.6859 14.2551 15.3956 14.5865 14.8079 14.5865Z",
360
458
  fill: "currentColor"
361
459
  }, null, -1),
362
- e("path", {
460
+ t("path", {
363
461
  "fill-rule": "evenodd",
364
462
  "clip-rule": "evenodd",
365
463
  d: "M13.6437 3H10.4761C10.462 3.00738 10.4468 3.00752 10.4317 3.00766L10.4237 3.00778L10.2163 3.01067L10.1771 3.01124C10.1389 3.01181 10.1006 3.01238 10.0624 3.01238C9.85585 3.01276 9.64939 3.01797 9.44293 3.02318C9.34618 3.02562 9.24943 3.02806 9.15267 3.03C9.04934 3.03209 8.94604 3.03642 8.84277 3.04075L8.7649 3.04397C8.68023 3.04733 8.59559 3.05152 8.51098 3.05656C8.48805 3.05791 8.46519 3.06072 8.44234 3.06353L8.41144 3.0672L8.41136 3.06733L8.41135 3.06733C8.36472 3.06357 8.31825 3.06706 8.27185 3.07055L8.2508 3.07211C8.17968 3.07719 8.10867 3.08303 8.03766 3.08888L7.99014 3.09278L7.93408 3.09722C7.88146 3.10132 7.82884 3.10543 7.77638 3.111C7.67642 3.12147 7.57658 3.13307 7.47685 3.14581L7.46711 3.14705C7.35956 3.16078 7.25195 3.17451 7.14491 3.19162C6.9685 3.21996 6.79301 3.25364 6.61912 3.29514C6.39508 3.34863 6.17474 3.41407 5.95992 3.49743C5.64582 3.6192 5.35134 3.77699 5.08051 3.97818C4.85418 4.14605 4.6417 4.33183 4.44509 4.5337C4.2703 4.71309 4.10878 4.90496 3.96183 5.1078C3.77344 5.36816 3.62514 5.65018 3.50915 5.94958C3.36896 6.31155 3.2788 6.68668 3.21499 7.06866C3.19851 7.1678 3.18411 7.26735 3.17082 7.36697C3.15756 7.46541 3.14628 7.56409 3.135 7.66276L3.13307 7.67973C3.12541 7.74641 3.11884 7.81305 3.11245 7.87981L3.11091 7.89541C3.10743 7.9302 3.10394 7.96508 3.10714 8.00012L3.10716 8.0001C3.09909 8.01985 3.09789 8.04067 3.0967 8.06145L3.09602 8.07249L3.07085 8.44649L3.07007 8.45985C3.06822 8.50323 3.06651 8.54661 3.0648 8.58999C3.06098 8.68709 3.05716 8.78418 3.05165 8.88117C3.04485 9.00132 3.04236 9.12161 3.03987 9.24188C3.03793 9.33581 3.03599 9.42973 3.03199 9.52356C3.02946 9.58278 3.02895 9.64209 3.02844 9.7014L3.02804 9.74445L3.02618 9.9482C3.02519 10.0655 3.02421 10.1828 3.02245 10.3001C3.02144 10.367 3.01875 10.4338 3.01605 10.5007L3.01316 10.5745L3.01312 10.5756C3.01256 10.5885 3.01199 10.6018 3 10.6107V13.3892C3.00108 13.3909 3.00237 13.3925 3.00365 13.3942L3.00366 13.3942C3.00655 13.3979 3.00944 13.4016 3.01007 13.4057C3.01249 13.4212 3.01389 13.4369 3.01427 13.4526L3.01611 13.5092L3.01611 13.5092C3.01871 13.5887 3.0213 13.6681 3.02293 13.7476C3.02474 13.8348 3.02545 13.922 3.02545 14.0092C3.0256 14.2458 3.03197 14.4823 3.03835 14.7188L3.03835 14.7188C3.04022 14.7885 3.0421 14.8582 3.04382 14.9279C3.04659 15.0408 3.05225 15.1535 3.05791 15.2663L3.06335 15.3769C3.06897 15.4952 3.07473 15.6135 3.08203 15.7318C3.08634 15.8018 3.09212 15.8717 3.0979 15.9417L3.0979 15.9417L3.10262 15.9992L3.10453 16.0229C3.10928 16.0819 3.11403 16.1408 3.12009 16.1996C3.13141 16.3108 3.14359 16.4219 3.15661 16.5328C3.16284 16.5864 3.1703 16.6399 3.17776 16.6933L3.185 16.7455C3.20654 16.9028 3.23441 17.0589 3.26627 17.2144C3.30583 17.4093 3.35558 17.602 3.4153 17.7917C3.50677 18.0804 3.62514 18.3571 3.77815 18.6188C3.87433 18.7833 3.98454 18.9379 4.10322 19.0866C4.38114 19.4348 4.70212 19.7464 5.05849 20.0138C5.34835 20.2318 5.66471 20.4005 6.00352 20.5279C6.22982 20.6131 6.46181 20.6788 6.69755 20.7318C6.88514 20.774 7.07435 20.8079 7.2645 20.8355C7.38593 20.8534 7.50793 20.8672 7.62989 20.881L7.6304 20.8811C7.7437 20.8937 7.8571 20.9052 7.97062 20.9156C8.03986 20.9219 8.10927 20.9264 8.17868 20.931L8.21137 20.9332C8.28755 20.9383 8.36371 20.943 8.43985 20.9478L8.54613 20.9545L8.556 20.9552C8.56163 20.9556 8.56727 20.956 8.57291 20.9562L8.71929 20.9621C8.81347 20.9658 8.90765 20.9695 9.0018 20.9736C9.21881 20.9828 9.43595 20.9864 9.65309 20.99L9.74613 20.9915L9.75798 20.9914C9.77405 20.9912 9.79026 20.9909 9.80497 21H14.0598C14.1664 20.9939 14.273 20.9919 14.3797 20.9899C14.4179 20.9892 14.4561 20.9885 14.4943 20.9876C14.7149 20.9825 14.9354 20.9772 15.156 20.9696C15.2421 20.9667 15.3282 20.9618 15.4143 20.9569C15.4551 20.9546 15.4958 20.9523 15.5366 20.9502L15.5761 20.9484C15.5941 20.9477 15.6121 20.947 15.6301 20.9459C15.6439 20.945 15.6578 20.9436 15.6716 20.9421L15.6898 20.9403L15.6899 20.9402C15.701 20.9399 15.7121 20.94 15.7231 20.9392L15.7557 20.9369C15.8318 20.9315 15.9079 20.9261 15.984 20.9202C15.9957 20.9194 16.0074 20.9185 16.0192 20.9176C16.081 20.913 16.1429 20.9083 16.2046 20.9021C16.272 20.8953 16.3393 20.8876 16.4066 20.8799C16.4414 20.8759 16.4763 20.8719 16.5111 20.868C16.6378 20.8539 16.7638 20.8353 16.8896 20.8154C17.0775 20.7859 17.2638 20.7493 17.4484 20.7044C17.6789 20.6482 17.905 20.5785 18.125 20.4897C18.4165 20.3719 18.6905 20.2225 18.9436 20.0355C19.3225 19.7539 19.6587 19.4279 19.952 19.0575C20.1845 18.7646 20.3725 18.4391 20.51 18.0914C20.609 17.8414 20.6842 17.5843 20.7426 17.3223C20.8039 17.0471 20.849 16.7692 20.8805 16.4891C20.8828 16.4688 20.8852 16.4484 20.8876 16.4281C20.8909 16.3996 20.8943 16.3711 20.8974 16.3426C20.9041 16.2803 20.9108 16.2181 20.9166 16.1558C20.9179 16.143 20.9176 16.13 20.9174 16.1171C20.9174 16.1122 20.9173 16.1073 20.9173 16.1025L20.9175 16.1023L20.9216 16.0734C20.9247 16.0521 20.9277 16.0308 20.9298 16.0094C20.9345 15.9583 20.9385 15.907 20.9419 15.8557C20.9481 15.7576 20.9542 15.6594 20.9595 15.5612C20.967 15.4207 20.974 15.2801 20.9806 15.1394C20.9829 15.0903 20.9838 15.0412 20.9846 14.992C20.9853 14.9473 20.9858 14.9026 20.9863 14.8579V14.8579C20.987 14.7953 20.9877 14.7328 20.9889 14.6702C20.9899 14.6211 20.9917 14.5721 20.9973 14.5231C21.0007 14.494 21.0001 14.4644 20.9995 14.4348C20.9993 14.4218 20.999 14.4088 20.9991 14.3959V9.63092L20.9991 9.60404L20.9991 9.55038L20.9991 9.53972C20.9989 9.51204 20.9988 9.48446 20.9941 9.45682C20.9908 9.4383 20.9906 9.4192 20.9904 9.40022V9.40019L20.9903 9.38995L20.9882 9.25341C20.9872 9.18265 20.9862 9.11189 20.9847 9.04114C20.9836 8.98836 20.9816 8.93561 20.9795 8.88285L20.9772 8.81995C20.9766 8.80494 20.9759 8.78993 20.9752 8.77493L20.9748 8.76634L20.9691 8.64082C20.9651 8.55088 20.9611 8.46094 20.956 8.37104C20.9522 8.30451 20.947 8.23805 20.9417 8.1716L20.9359 8.09682L20.9321 8.04666C20.9275 7.98535 20.9229 7.92405 20.9175 7.86274C20.9125 7.80634 20.9064 7.74993 20.9004 7.69354L20.9003 7.69313L20.897 7.66264C20.8931 7.62609 20.8889 7.58959 20.8846 7.5531L20.8845 7.55231L20.8803 7.51608C20.8416 7.18046 20.7858 6.84789 20.7029 6.52018C20.6311 6.23571 20.5375 5.95879 20.4129 5.6927C20.2939 5.43833 20.1468 5.20173 19.9745 4.98024C19.6752 4.5943 19.3289 4.25662 18.9357 3.9672C18.6895 3.78603 18.4233 3.64067 18.1406 3.52522C17.9042 3.42869 17.6608 3.35464 17.4126 3.29549C17.2386 3.25401 17.0631 3.22009 16.8865 3.192C16.7762 3.17443 16.6652 3.16021 16.5545 3.14604C16.4547 3.1333 16.3548 3.12195 16.2548 3.1114C16.1994 3.10556 16.1439 3.10111 16.0884 3.09667L16.0476 3.09338C15.9873 3.08847 15.9269 3.08378 15.8666 3.07909L15.8665 3.07909L15.7802 3.07236L15.7725 3.07169L15.7601 3.0707L15.6649 3.06539L15.6649 3.06539C15.5895 3.06113 15.5141 3.05688 15.4386 3.05333C15.316 3.0476 15.1933 3.04242 15.0707 3.03725L14.9361 3.03154C14.9137 3.03058 14.8914 3.02983 14.869 3.02942C14.7553 3.02747 14.6416 3.02471 14.5279 3.02195C14.3309 3.01717 14.1339 3.0124 13.9368 3.0118C13.8728 3.01162 13.8088 3.0106 13.7448 3.00958L13.6819 3.00861L13.677 3.00858C13.6653 3.00857 13.6535 3.00855 13.6437 3ZM19.1763 17.0579L19.1766 17.0517C19.1767 17.0471 19.1768 17.0425 19.1779 17.0381C19.2275 16.836 19.2624 16.631 19.291 16.4251C19.3098 16.2901 19.3268 16.1547 19.3375 16.0187C19.3417 15.9654 19.3464 15.9121 19.3511 15.8589C19.3586 15.774 19.3661 15.6892 19.3716 15.6042C19.3828 15.4301 19.391 15.2558 19.3987 15.0816C19.4046 14.9497 19.4094 14.8178 19.4117 14.6859L19.4153 14.4842C19.4205 14.2026 19.4257 13.9209 19.4268 13.6392C19.4297 12.9436 19.4306 12.248 19.4295 11.5523L19.4295 11.2777C19.4295 10.7542 19.4295 10.2306 19.4186 9.70709C19.4124 9.40296 19.4061 9.09888 19.3918 8.79501C19.3844 8.63644 19.3757 8.47787 19.3647 8.31947C19.3541 8.1655 19.3406 8.01182 19.3242 7.85844C19.3125 7.74723 19.2991 7.63627 19.284 7.52554C19.2621 7.36599 19.2346 7.20747 19.1999 7.05026C19.1657 6.89516 19.1232 6.74238 19.0697 6.59267C18.9916 6.37321 18.8802 6.16704 18.7395 5.98137C18.5884 5.78135 18.4163 5.59801 18.2263 5.43445C18.1883 5.40179 18.1494 5.37029 18.1105 5.33881L18.1104 5.33876L18.0812 5.3151C17.8793 5.15117 17.6528 5.03224 17.408 4.94664C17.207 4.87636 17.0007 4.82673 16.7919 4.78696C16.581 4.74669 16.3684 4.71721 16.155 4.69446C16.004 4.67833 15.8523 4.66544 15.7006 4.65444C15.5492 4.64344 15.3974 4.63568 15.2457 4.62792L15.2385 4.62756C15.1291 4.62194 15.0196 4.61762 14.91 4.61462L14.8134 4.61183C14.6511 4.60712 14.4888 4.6024 14.3265 4.60068C13.8657 4.59577 13.405 4.59101 12.9443 4.59016C12.2464 4.58885 11.5486 4.58938 10.8507 4.59177C10.5996 4.5923 10.3486 4.59439 10.0974 4.59647L10.0974 4.59647L9.8577 4.59841L9.82872 4.59862H9.82872C9.7489 4.59919 9.66907 4.59976 9.58934 4.60282C9.49703 4.60635 9.40468 4.60825 9.31233 4.61016L9.31231 4.61016L9.3123 4.61016C9.18105 4.61286 9.0498 4.61557 8.91869 4.62295C8.83304 4.62782 8.7474 4.63152 8.66175 4.63522C8.61777 4.63712 8.5738 4.63902 8.52981 4.64107C8.52362 4.64135 8.51744 4.64185 8.51126 4.64235L8.51126 4.64235L8.51126 4.64235L8.50306 4.64299L8.41244 4.64946C8.34449 4.65429 8.27653 4.65912 8.20857 4.66428L8.18781 4.66585C8.12337 4.67072 8.05892 4.67559 7.99463 4.68218C7.89227 4.69268 7.79008 4.70422 7.68806 4.71679C7.62913 4.72411 7.57031 4.73243 7.5115 4.74075L7.51148 4.74075L7.51141 4.74076C7.47952 4.74527 7.44763 4.74978 7.41572 4.75414C7.40685 4.75493 7.39794 4.75526 7.38904 4.75512L7.38907 4.75503L7.31739 4.76857L7.31738 4.76857C7.26453 4.7785 7.21167 4.78842 7.15898 4.79909C6.93749 4.84394 6.71967 4.90123 6.5096 4.98613C6.34776 5.05123 6.19426 5.1354 6.05234 5.23684C5.78124 5.43085 5.54562 5.66141 5.33918 5.92242C5.28924 5.98552 5.24069 6.04965 5.19677 6.11724C5.09636 6.27173 5.01967 6.43755 4.95864 6.61102C4.91632 6.73123 4.88184 6.85368 4.85186 6.97747C4.84793 6.99374 4.8434 7.00985 4.83887 7.02596L4.83887 7.02597L4.83261 7.04844L4.83272 7.0484L4.8298 7.06701C4.82771 7.08069 4.82563 7.09438 4.82265 7.10788C4.76979 7.35293 4.73521 7.60091 4.70752 7.84979C4.69096 7.99864 4.67853 8.148 4.66745 8.29738C4.65639 8.44663 4.64854 8.59619 4.64069 8.74569L4.64069 8.74569L4.64069 8.7457L4.64067 8.74609C4.63503 8.85329 4.63069 8.96055 4.62763 9.06786L4.62559 9.13807C4.62045 9.31366 4.61532 9.48925 4.61283 9.66486C4.608 10.0048 4.60357 10.3448 4.60262 10.6847C4.59962 11.7494 4.5969 12.8141 4.60737 13.8788C4.61072 14.2165 4.61777 14.5542 4.62607 14.8918C4.62673 14.9186 4.62753 14.9455 4.62877 14.9724L4.63381 15.0811C4.63926 15.199 4.64472 15.3169 4.65074 15.4347C4.65577 15.5308 4.66081 15.6268 4.66836 15.7227C4.67515 15.8081 4.68316 15.8934 4.69117 15.9787L4.70214 16.0968C4.71248 16.2104 4.7265 16.3235 4.74143 16.4366C4.7631 16.6007 4.79033 16.7638 4.82487 16.9256C4.85985 17.0897 4.90314 17.2516 4.95983 17.4096C5.02424 17.5893 5.10596 17.7603 5.21434 17.9181C5.29414 18.0342 5.38123 18.1452 5.47508 18.2503C5.64558 18.4412 5.83564 18.6105 6.0414 18.7625C6.1548 18.8463 6.27647 18.9182 6.4045 18.9772C6.5449 19.0421 6.69048 19.0925 6.83926 19.1339C7.11993 19.2121 7.40659 19.2588 7.69529 19.294C7.79514 19.3061 7.89529 19.3159 7.99546 19.3252L8.03116 19.3284L8.03143 19.3285L8.03148 19.3285C8.15306 19.3397 8.27467 19.3509 8.39647 19.359C8.56158 19.3699 8.72687 19.378 8.89219 19.3856C9.02176 19.3916 9.15144 19.3965 9.28109 19.399L9.45946 19.4025H9.4595H9.45953C9.71982 19.4078 9.98011 19.4131 10.2404 19.4145C11.3901 19.4206 12.5397 19.4191 13.6893 19.4158C13.9179 19.4151 14.1465 19.4106 14.375 19.4061C14.4976 19.4037 14.6201 19.4013 14.7426 19.3995C14.7627 19.3992 14.7829 19.3984 14.803 19.3976L14.9426 19.392C15.0681 19.387 15.1937 19.382 15.3192 19.3763C15.4286 19.3713 15.538 19.365 15.6474 19.3587C15.701 19.3556 15.7545 19.3513 15.808 19.3469C15.8726 19.3417 15.9372 19.3362 16.0018 19.33C16.0685 19.3236 16.1352 19.3168 16.2019 19.309C16.2973 19.2978 16.3927 19.2861 16.488 19.2738C16.5343 19.2678 16.5805 19.2613 16.6267 19.2547L16.687 19.2462C16.6871 19.2462 16.6871 19.2461 16.6871 19.246C16.7106 19.2413 16.7341 19.2367 16.7576 19.232C16.8085 19.2219 16.8595 19.2118 16.9104 19.2011C17.1251 19.1562 17.336 19.0987 17.5392 19.0149C17.6923 18.9519 17.8378 18.8717 17.9727 18.7758C18.2687 18.5653 18.5214 18.311 18.7414 18.0229C18.8499 17.8805 18.9401 17.725 19.01 17.5602C19.0583 17.4469 19.0978 17.3307 19.132 17.2125C19.138 17.1917 19.1435 17.1708 19.149 17.1498C19.1531 17.134 19.1572 17.1182 19.1616 17.1025C19.1644 17.0923 19.1679 17.0823 19.1713 17.0723C19.1729 17.0675 19.1746 17.0627 19.1762 17.058C19.1762 17.0579 19.1763 17.0579 19.1763 17.0579ZM3.12917 7.986L3.12916 7.98601L3.12903 7.98608C3.14334 7.97696 3.15765 7.96783 3.17163 7.95831C3.15771 7.96785 3.14344 7.97693 3.12917 7.986Z",
@@ -367,575 +465,961 @@ function Te(v, C) {
367
465
  }, null, -1)
368
466
  ])]);
369
467
  }
370
- const D1 = /* @__PURE__ */ m1(Ve, [["render", Te]]), W1 = (v) => {
371
- if (Array.isArray(v))
372
- return v.map(k);
373
- const C = k(v);
374
- return Array.isArray(C) ? C : [C];
375
- }, je = (v, C) => {
376
- let r;
377
- const d = (g) => {
378
- g.forEach((b) => {
379
- const h = k(b);
380
- if (h) {
381
- if (!(h instanceof Element))
468
+ const fe = /* @__PURE__ */ we(Q1, [["render", Y1]]);
469
+ function es(g, x) {
470
+ return s(), l("svg", {
471
+ xmlns: "http://www.w3.org/2000/svg",
472
+ fill: "none",
473
+ viewBox: "0 0 24 24",
474
+ "stroke-width": "1.8",
475
+ stroke: "currentColor",
476
+ "aria-hidden": "true"
477
+ }, [
478
+ t("path", {
479
+ "stroke-linecap": "round",
480
+ "stroke-linejoin": "round",
481
+ d: "M7.83 1.08v21.6M1.08 3.78a2.697 2.697 0 012.7-2.7h16.2a2.697 2.697 0 012.7 2.7v16.2a2.697 2.697 0 01-2.7 2.7H3.78a2.697 2.697 0 01-2.7-2.7V3.78z"
482
+ }),
483
+ t("path", {
484
+ "stroke-linecap": "round",
485
+ "stroke-linejoin": "round",
486
+ d: "M15.48 9.48l-2.4 2.4 2.4 2.4"
487
+ })
488
+ ]);
489
+ }
490
+ const Xe = (g) => {
491
+ if (Array.isArray(g))
492
+ return g.map($);
493
+ const x = $(g);
494
+ return Array.isArray(x) ? x : [x];
495
+ }, ss = (g, x) => {
496
+ let i;
497
+ const c = (_) => {
498
+ _.forEach((v) => {
499
+ const d = $(v);
500
+ if (d) {
501
+ if (!(d instanceof Element))
382
502
  throw console.error("Vuestic: Trying to observe non-HTMLElement", {
383
- target: h,
384
- array: v
503
+ target: d,
504
+ array: g
385
505
  }), new Error("Vuestic: Unable to observe non-HTMLElement");
386
- h && (r == null || r.observe(h));
506
+ d && (i == null || i.observe(d));
387
507
  }
388
508
  });
389
509
  };
390
- return l1(v, (g) => {
391
- r == null || r.disconnect(), d(W1(g));
392
- }), p1(() => {
393
- r = new ResizeObserver(C), d(W1(v));
394
- }), J1(() => r == null ? void 0 : r.disconnect()), r;
395
- }, He = (v) => {
396
- const C = $(null);
397
- return je([v], () => {
398
- var r;
399
- C.value = ((r = v.value) == null ? void 0 : r.clientWidth) ?? null;
400
- }), R1(() => {
401
- var r;
402
- C.value = ((r = v.value) == null ? void 0 : r.clientWidth) ?? null;
403
- }), C;
404
- }, Ee = ["href"], Ie = { class: "rounded-lg bg-[#FFF8E4] py-2 flex items-center space-x-1 px-2" }, Pe = { class: "" }, Ae = {
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;
523
+ }), x;
524
+ }, ls = {
525
+ key: 0,
526
+ class: "flex items-center gap-2 min-w-0 pl-1"
527
+ }, ns = {
528
+ 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 = {
531
+ key: 0,
532
+ class: "flex items-center gap-1 text-xs text-secondary-content"
533
+ }, is = { class: "truncate" }, ds = {
534
+ key: 1,
535
+ 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 = {
405
537
  class: "",
406
538
  style: { "font-size": "10px" }
407
- }, Fe = {
539
+ }, ms = {
408
540
  key: 1,
409
541
  class: "flex justify-between border rounded-lg bg-[#F5F5F5] mb-1 w-full min-w-[19+0px] space-x-1 px-2"
410
- }, Ne = { class: "flex items-center text-[#525B66] space-x-3" }, Ge = { style: { "font-size": "10px" } }, We = { class: "relative -right-2" }, qe = ["href"], Re = { class: "flex flex-nowrap items-center w-max h-[24px]" }, Ue = { class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full text-[#525B66]" }, Ze = { class: "py-[8px] pl-0 pr-[8px]" }, De = ["href"], Je = { class: "flex flex-nowrap items-center w-max h-[24px]" }, Ke = { class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full" }, Qe = { class: "py-[8px] pl-0 pr-[8px]" }, Xe = {
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 = {
411
543
  key: 4,
412
544
  class: "custom-select ml-1 w-full relative pt-2 pb-2"
413
- }, Ye = { class: "pl-1" }, e0 = {
545
+ }, Ss = { class: "pl-1" }, Bs = {
414
546
  key: 0,
415
547
  class: "dropdown w-[200px] z-50 text-[#525B66]"
416
- }, t0 = ["onClick"], s0 = {
417
- key: 0,
548
+ }, Ms = ["onClick"], js = {
549
+ key: 1,
418
550
  class: "mt-0.5 h-0 border-t border-secondary-stroke mb-1"
419
- }, l0 = {
551
+ }, Os = {
420
552
  key: 0,
421
553
  class: "tooltip-text"
422
- }, o0 = { key: 0 }, n0 = {
554
+ }, zs = { key: 0 }, Ts = {
423
555
  key: 1,
424
556
  class: "absolute top-0 right-1.5 w-2 h-2 bg-blue-600 text-white rounded-full animate-ping z-0"
425
- }, a0 = {
557
+ }, Vs = {
426
558
  key: 2,
427
559
  class: "absolute top-0 right-1.5 w-2 h-2 bg-blue-500 text-white rounded-full z-10"
428
- }, r0 = ["href"], i0 = {
560
+ }, Hs = ["href"], As = {
429
561
  key: 0,
430
562
  class: "tooltip-text"
431
- }, p0 = { key: 0 }, u0 = /* @__PURE__ */ c1({
563
+ }, Ps = { key: 0 }, Es = {
564
+ key: 2,
565
+ 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({
432
567
  __name: "OneSidebar",
433
- props: Z1,
568
+ props: d1,
434
569
  emits: [
435
570
  "show-news",
436
571
  "show-tariff",
572
+ "show-help",
437
573
  "select-language",
438
574
  "update-collapsed",
575
+ "toggle-menu",
439
576
  "update:modelValue"
440
577
  ],
441
- setup(v, { emit: C }) {
442
- var P, A, F;
443
- const r = C, d = v, g = M(() => {
444
- var s;
445
- return ((s = d.news) == null ? void 0 : s.unseenCount) || 0;
446
- }), b = () => {
447
- r("show-news");
448
- }, h = $(!1), L = $(d.hoverable);
449
- l1(d, () => {
450
- d.modelValue ? L.value = !0 : L.value = !1;
451
- }), d.modelValue && (L.value = !0);
452
- const V = K1(), E = M(() => {
453
- const s = [];
454
- if (d.slim || s.push("fixed"), !y.value)
455
- if (!d.isMobile)
456
- s.push("w-[260px]");
578
+ setup(g, { emit: x }) {
579
+ var R, J, K;
580
+ const i = x, c = g, _ = B(() => {
581
+ 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(() => {
590
+ const n = [];
591
+ if (c.slim || n.push("fixed"), !W.value)
592
+ if (!c.isMobile)
593
+ n.push("w-[260px]");
457
594
  else
458
- return s.push("w-full");
459
- return s.join(" ");
460
- }), B = M(() => ""), o = (s) => {
461
- h.value = L.value && s;
462
- }, y = M(() => L.value && !h.value), m = M(() => !!y.value), O = $(), n = He(O), i = M(() => d.modelValue === !0 || n.value === null ? !0 : n.value > 0), I = $(), H = () => y.value ? d.minimizedWidth : d.width;
463
- R1(() => {
464
- const s = H();
595
+ return n.push("w-full");
596
+ 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();
465
602
  setTimeout(() => {
466
- I.value = s;
603
+ C.value = n;
467
604
  });
468
605
  });
469
- const S = $(!1), z = $(
470
- (P = d.app) != null && P.availableLang && ((A = d.app) == null ? void 0 : A.availableLang.length) > 0 ? (F = d.app) == null ? void 0 : F.availableLang.find((s) => {
471
- var x;
472
- return s.id == ((x = d.app) == null ? void 0 : x.lang);
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);
473
610
  }) : null
474
- ), Q = () => {
475
- S.value = !S.value;
476
- }, X = (s) => {
477
- z.value = s, S.value = !1, r("select-language", s);
478
- }, Y = () => {
479
- var s, x;
480
- (x = (s = d.app) == null ? void 0 : s.selectedPlan) != null && x.url && (window.location.href = d.app.selectedPlan.url);
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);
481
618
  };
482
- return (s, x) => {
483
- var N, G, W, q, R, U, Z, D, p, T, J, f1, h1, v1, C1, w1, x1, b1, y1, g1, L1, k1, _1, $1, S1, M1, B1, O1, V1, z1, T1, j1, H1, E1, I1, P1, A1;
484
- return t(), l("aside", {
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;
621
+ return s(), l("aside", {
485
622
  ref_key: "rootElement",
486
- ref: V,
487
- class: c(["oneb-sidebar pt-[56px] pb-1 cont flex flex-col sidebar z-40", [E.value, m.value ? "sm:max-w-[260px] w-full sm:w-max" : "sm:w-[260px] w-full"]]),
488
- style: Q1(B.value),
489
- onMouseenter: x[1] || (x[1] = (f) => o(!0)),
490
- onMouseleave: x[2] || (x[2] = (f) => o(!1))
623
+ ref: I,
624
+ class: y(["oneb-sidebar cont flex flex-col", [
625
+ n.island ? "island-mode bg-white rounded-10 py-2 shrink-0 transition-all" : "pt-[56px] pb-1 sidebar z-40",
626
+ n.island ? f.value ? "self-stretch w-[60px]" : "self-stretch w-[260px]" : D.value,
627
+ n.island ? "" : f.value ? "sm:max-w-[260px] w-full sm:w-max" : "sm:w-[260px] w-full"
628
+ ]]),
629
+ style: v1(q.value),
630
+ onMouseenter: w[3] || (w[3] = (b) => M(!0)),
631
+ onMouseleave: w[4] || (w[4] = (b) => M(!1))
491
632
  }, [
492
- u1(e("div", {
493
- class: "overflow-y-auto top-[56px] left-0 overflow-hidden lg:bg-transparent transition-all z-50 px-1 ml-1 mr-1 mt-2 flex-grow",
633
+ n.island ? (s(), l("div", {
634
+ key: 0,
635
+ class: y(["px-2 flex items-center shrink-0", f.value ? "justify-center" : "justify-between"])
636
+ }, [
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)
646
+ ])
647
+ ])) : o("", !0),
648
+ t("button", {
649
+ type: "button",
650
+ 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"))
652
+ }, [
653
+ (s(), p(k(f.value ? $(i1) : $(es)), { class: "w-5 h-5" }))
654
+ ])
655
+ ], 2)) : o("", !0),
656
+ oe(t("div", {
657
+ class: y(["overflow-y-auto overflow-hidden lg:bg-transparent transition-all flex-grow", [
658
+ n.island ? f.value ? "flex flex-col items-center gap-1 px-0 mx-0 mt-2" : "px-2 mt-2" : "top-[56px] left-0 z-50 px-1 ml-1 mr-1 mt-2"
659
+ ]]),
494
660
  ref_key: "menu",
495
661
  ref: O
496
662
  }, [
497
- (t(!0), l(K, null, s1(s.items, (f) => (t(), w(Oe, {
498
- key: f.label,
499
- labelTop: f.labelTop,
500
- isMobile: s.isMobile,
501
- subItems: f.subItems,
502
- open: f.open,
503
- icon: f.icon,
504
- label: f.label,
505
- route: f.route,
506
- menuGroup: f == null ? void 0 : f.menuGroup,
507
- href: f.href,
508
- slim: m.value,
509
- "route-name": f.routeName,
510
- exact: f.exact || !1,
511
- onUpdateCollapsed: x[0] || (x[0] = (o1) => r("update-collapsed"))
512
- }, null, 8, ["labelTop", "isMobile", "subItems", "open", "icon", "label", "route", "menuGroup", "href", "slim", "route-name", "exact"]))), 128))
513
- ], 512), [
514
- [d1, i.value]
663
+ (s(!0), l(G, null, Z(n.items, (b) => (s(), p(K1, {
664
+ key: b.label,
665
+ labelTop: b.labelTop,
666
+ 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,
674
+ slim: f.value,
675
+ 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"))
680
+ }, null, 8, ["labelTop", "isMobile", "subItems", "open", "icon", "label", "route", "menuGroup", "href", "slim", "island", "active", "route-name", "exact"]))), 128))
681
+ ], 2), [
682
+ [me, a.value]
515
683
  ]),
516
- u1(e("div", {
517
- class: c(["mt-auto shrink rounded-2xl mx-2", [m.value ? "" : "px-2 bg-white pt-2.5 py-2"]])
684
+ n.island && f.value ? (s(), l("div", ds, [
685
+ t("button", {
686
+ type: "button",
687
+ 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"))
689
+ }, [
690
+ L(fe, { class: "w-6 h-6" })
691
+ ])
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"]])
518
695
  }, [
519
- e("div", {
520
- class: c([m.value ? "hidden" : "w-full hidden md:flex-col md:flex"])
696
+ n.island ? o("", !0) : (s(), l("div", {
697
+ key: 0,
698
+ class: y([f.value ? "hidden" : "w-full hidden md:flex-col md:flex"])
521
699
  }, [
522
- (N = s.app) != null && N.offerPlan ? (t(), l("a", {
700
+ (te = n.app) != null && te.offerPlan ? (s(), l("a", {
523
701
  key: 0,
524
- href: (G = s.app) == null ? void 0 : G.offerPlan.url,
702
+ href: (h = n.app) == null ? void 0 : h.offerPlan.url,
525
703
  class: "w-full min-w-[190px] border-gradient rounded-lg p-[1px] bg-[#FFF8E4] mb-1 block",
526
704
  target: "_blank",
527
705
  rel: "noopener noreferrer"
528
706
  }, [
529
- e("div", Ie, [
530
- e("div", Pe, [
531
- (t(), w(_((W = s.app) == null ? void 0 : W.offerPlan.icon), { class: "w-[16px] h-[16px]" }))
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]" }))
532
710
  ]),
533
- e("p", Ae, [
534
- e("strong", null, u((q = s.app) == null ? void 0 : q.offerPlan.title), 1),
535
- e1(" «" + u((R = s.app) == null ? void 0 : R.offerPlan.name) + "» ", 1),
536
- x[3] || (x[3] = e("br", null, null, -1)),
537
- e1(u((U = s.app) == null ? void 0 : U.offerPlan.title1), 1)
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)
538
716
  ])
539
717
  ])
540
- ], 8, Ee)) : a("", !0),
541
- (Z = s.app) != null && Z.selectedPlan && ((D = s.app) != null && D.selectedPlan.name) ? (t(), l("div", Fe, [
542
- e("div", Ne, [
543
- e("div", null, [
544
- (t(), w(_((p = s.app) == null ? void 0 : p.selectedPlan.icon), { class: "w-[16px] h-[16px]" }))
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, [
721
+ t("div", null, [
722
+ (s(), p(k((pe = n.app) == null ? void 0 : pe.selectedPlan.icon), { class: "w-[16px] h-[16px]" }))
545
723
  ]),
546
- e("div", Ge, [
547
- e("p", null, u(((T = s.app) == null ? void 0 : T.selectedPlan.name) || ""), 1),
548
- e("p", null, u(((J = s.app) == null ? void 0 : J.selectedPlan.title) || ""), 1)
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)
549
727
  ])
550
728
  ]),
551
- e("div", We, [
552
- j(U1, {
729
+ t("div", ws, [
730
+ L(xe, {
553
731
  class: "text-[#525B66] hover:text-[#4089E0] !rounded-lg",
554
732
  variant: "touch",
555
- icon: k(X1),
556
- onClick: Y
733
+ icon: $(y1),
734
+ onClick: A
557
735
  }, null, 8, ["icon"])
558
736
  ])
559
- ])) : a("", !0),
560
- (f1 = s.app) != null && f1.terms ? (t(), l("a", {
737
+ ])) : o("", !0),
738
+ (ke = n.app) != null && ke.terms ? (s(), l("a", {
561
739
  key: 2,
562
- href: (h1 = s.app) == null ? void 0 : h1.terms.url,
740
+ href: ($e = n.app) == null ? void 0 : $e.terms.url,
563
741
  target: "_blank",
564
742
  class: "ml-1 flex items-center rounded-lg text-xs hover:underline font-extralight"
565
743
  }, [
566
- e("div", Re, [
567
- e("div", Ue, [
568
- e("span", Ze, u(((v1 = s.app) == null ? void 0 : v1.terms.label) || "Terms"), 1)
744
+ t("div", bs, [
745
+ t("div", Cs, [
746
+ t("span", gs, r(((_e = n.app) == null ? void 0 : _e.terms.label) || "Terms"), 1)
569
747
  ])
570
748
  ])
571
- ], 8, qe)) : a("", !0),
572
- (C1 = s.app) != null && C1.offer ? (t(), l("a", {
749
+ ], 8, ys)) : o("", !0),
750
+ (Le = n.app) != null && Le.offer ? (s(), l("a", {
573
751
  key: 3,
574
- href: (w1 = s.app) == null ? void 0 : w1.offer.url,
752
+ href: (Se = n.app) == null ? void 0 : Se.offer.url,
575
753
  target: "_blank",
576
754
  class: "ml-1 flex items-center rounded-lg text-xs hover:underline text-[#525B66] font-extralight"
577
755
  }, [
578
- e("div", Je, [
579
- e("div", Ke, [
580
- e("span", Qe, u(((x1 = s.app) == null ? void 0 : x1.offer.label) || "Offert"), 1)
756
+ t("div", ks, [
757
+ t("div", $s, [
758
+ t("span", _s, r(((Be = n.app) == null ? void 0 : Be.offer.label) || "Offert"), 1)
581
759
  ])
582
760
  ])
583
- ], 8, De)) : a("", !0),
584
- (y1 = (b1 = s.app) == null ? void 0 : b1.availableLang) != null && y1.length ? (t(), l("div", Xe, [
585
- e("div", {
761
+ ], 8, xs)) : o("", !0),
762
+ (je = (Me = n.app) == null ? void 0 : Me.availableLang) != null && je.length ? (s(), l("div", Ls, [
763
+ t("div", {
586
764
  class: "select-box flex gap-x-2 text-xs text-[#525B66] cursor-pointer",
587
- onClick: Q
765
+ onClick: m
588
766
  }, [
589
- j(k(Y1), { class: "w-4" }),
590
- e1(" " + u((g1 = z.value) == null ? void 0 : g1.name) + " ", 1),
591
- e("span", Ye, u(S.value ? "▲" : "▼"), 1)
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)
592
770
  ]),
593
- S.value ? (t(), l("div", e0, [
594
- (t(!0), l(K, null, s1((L1 = s.app) == null ? void 0 : L1.availableLang, (f) => {
595
- var o1, F1;
596
- return t(), l("div", {
597
- key: f.id,
598
- class: c(["px-2", {
599
- "hover:bg-slate-200 rounded-lg cursor-pointer": f.id !== ((o1 = z.value) == null ? void 0 : o1.id),
600
- "text-gray-300": f.id === ((F1 = z.value) == null ? void 0 : F1.id)
771
+ T.value ? (s(), l("div", Bs, [
772
+ (s(!0), l(G, null, Z((ze = n.app) == null ? void 0 : ze.availableLang, (b) => {
773
+ var ye, Ke;
774
+ return s(), l("div", {
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)
601
779
  }]),
602
- onClick: (X0) => {
603
- var N1;
604
- return f.id !== ((N1 = z.value) == null ? void 0 : N1.id) && X(f);
780
+ onClick: (bl) => {
781
+ var Qe;
782
+ return b.id !== ((Qe = V.value) == null ? void 0 : Qe.id) && H(b);
605
783
  }
606
- }, u(f.name), 11, t0);
784
+ }, r(b.name), 11, Ms);
607
785
  }), 128))
608
- ])) : a("", !0)
609
- ])) : a("", !0)
610
- ], 2),
611
- !m.value && ((k1 = s.app) != null && k1.offer || ($1 = (_1 = s.app) == null ? void 0 : _1.availableLang) != null && $1.length || (S1 = s.app) != null && S1.selectedPlan && ((M1 = s.app) != null && M1.selectedPlan.name) || (B1 = s.app) != null && B1.offerPlan) ? (t(), l("div", s0)) : a("", !0),
612
- e("div", {
613
- class: c([m.value ? "grid" : "flex space-x-2"])
786
+ ])) : o("", !0)
787
+ ])) : o("", !0)
788
+ ], 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),
790
+ t("div", {
791
+ class: y([f.value ? "grid" : n.island ? "flex items-center gap-2" : "flex space-x-2"])
614
792
  }, [
615
- s.news ? (t(), l("a", {
793
+ n.news ? (s(), l("a", {
616
794
  key: 0,
617
795
  href: "#",
618
- class: c(["text-[#525B66] flex items-center rounded-lg text-sm tooltip hover:bg-primary-10-hover hover:text-primary-base transition-all bg-gray-100 px-1", [m.value ? "w-[44px] h-[44px] text-center" : "h-[36x] pr-2"]]),
619
- onClick: b
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
620
798
  }, [
621
- s.news.menuLabel ? (t(), l("div", l0, u(s.news.menuLabel || "News"), 1)) : a("", !0),
622
- e("div", {
623
- class: c(["w-full", [m.value ? "" : "flex flex-nowrap items-center h-[36px]"]])
799
+ n.news.menuLabel ? (s(), l("div", Os, r(n.news.menuLabel || "News"), 1)) : o("", !0),
800
+ t("div", {
801
+ class: y(["w-full", [f.value ? "" : "flex flex-nowrap items-center h-[36px]"]])
624
802
  }, [
625
- e("div", {
626
- class: c(["relative items-center", [m.value ? "" : "flex flex-row space-x-1"]])
803
+ t("div", {
804
+ class: y(["relative items-center", [f.value ? "" : "flex flex-row space-x-1"]])
627
805
  }, [
628
- e("div", null, [
629
- (t(), w(_(D1), { class: "w-[24px] h-[24px] mx-auto" }))
806
+ t("div", null, [
807
+ (s(), p(k(fe), { class: "w-[24px] h-[24px] mx-auto" }))
630
808
  ]),
631
- m.value ? a("", !0) : (t(), l("div", o0, u(s.news.menuLabel || "News"), 1)),
632
- g.value > 0 ? (t(), l("span", n0)) : a("", !0),
633
- g.value > 0 ? (t(), l("span", a0)) : a("", !0)
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)
634
812
  ], 2)
635
813
  ], 2)
636
- ], 2)) : a("", !0),
637
- (O1 = s.app) != null && O1.support ? (t(), l("a", {
814
+ ], 2)) : o("", !0),
815
+ (Fe = n.app) != null && Fe.support ? (s(), l("a", {
638
816
  key: 1,
639
- href: (z1 = (V1 = s.app) == null ? void 0 : V1.support) == null ? void 0 : z1.url,
640
- class: c(["text-[#525B66] flex items-center rounded-lg text-sm tooltip hover:bg-primary-10-hover hover:text-primary-base transition-all", [m.value ? "w-[44px] h-[44px] text-center" : "h-[36x]"]])
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]"]])
641
819
  }, [
642
- (j1 = (T1 = s.app) == null ? void 0 : T1.support) != null && j1.label ? (t(), l("div", i0, u(((E1 = (H1 = s.app) == null ? void 0 : H1.support) == null ? void 0 : E1.label) || "Support"), 1)) : a("", !0),
643
- e("div", {
644
- class: c(["w-full", [m.value ? "" : "flex flex-nowrap items-center h-[36px]"]])
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),
821
+ t("div", {
822
+ class: y(["w-full", [f.value ? "" : "flex flex-nowrap items-center h-[36px]"]])
645
823
  }, [
646
- e("div", {
647
- class: c(["flex-shrink-0 relative", [m.value ? "mx-auto w-[36px] " : "flex space-x-2 px-1"]])
824
+ t("div", {
825
+ class: y(["flex-shrink-0 relative", [f.value ? "mx-auto w-[36px] " : "flex space-x-2 px-1"]])
648
826
  }, [
649
- e("div", null, [
650
- (t(), w(_(k(re)), { class: "w-[20px] h-[20px] mx-auto" }))
827
+ t("div", null, [
828
+ (s(), p(k($(b1)), { class: "w-[20px] h-[20px] mx-auto" }))
651
829
  ]),
652
- m.value ? a("", !0) : (t(), l("div", p0, u(((P1 = (I1 = s.app) == null ? void 0 : I1.support) == null ? void 0 : P1.label) || "Support"), 1))
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))
653
831
  ], 2)
654
832
  ], 2)
655
- ], 10, r0)) : a("", !0)
833
+ ], 10, Hs)) : o("", !0)
656
834
  ], 2),
657
- e("p", {
658
- class: c([[m.value ? "hidden" : "w-full"], "text-[7px] pl-2 text-[#979CA9] flex justify-between font-extralight pt-1"])
835
+ n.island && !f.value ? (s(), l("div", Es, [
836
+ w[6] || (w[6] = t("span", null, [
837
+ ue("Powered By "),
838
+ t("span", { class: "capitalize" }, "OneB")
839
+ ], -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", {
843
+ key: 3,
844
+ class: y([[f.value ? "hidden" : "w-full"], "text-[7px] pl-2 text-[#979CA9] flex justify-between font-extralight pt-1"])
659
845
  }, [
660
- x[4] || (x[4] = e("span", null, [
661
- e1("Powered by "),
662
- e("span", { class: "text-blue-700" }, "OneB")
846
+ w[7] || (w[7] = t("span", null, [
847
+ ue("Powered by "),
848
+ t("span", { class: "text-blue-700" }, "OneB")
663
849
  ], -1)),
664
- e("span", null, u((A1 = s.app) == null ? void 0 : A1.version), 1)
665
- ], 2)
850
+ t("span", null, r((Je = n.app) == null ? void 0 : Je.version), 1)
851
+ ], 2))
666
852
  ], 2), [
667
- [d1, i.value]
853
+ [me, a.value && (!n.island || !f.value)]
668
854
  ])
669
855
  ], 38);
670
856
  };
671
857
  }
672
858
  });
673
- const d0 = /* @__PURE__ */ m1(u0, [["__scopeId", "data-v-6a4d29f3"]]), c0 = { class: "h-screen relative" }, m0 = {
859
+ const p1 = /* @__PURE__ */ we(Ws, [["__scopeId", "data-v-7b423093"]]), Ns = { class: "h-screen relative" }, Gs = {
674
860
  class: "header h-[56px] flex items-center flex-nowrap fixed top-0 left-0 w-full z-50",
675
861
  style: { background: "rgba(245, 247, 251, 0.8)", "backdrop-filter": "blur(5px)" }
676
- }, f0 = { class: "sm:p-2 pl-2 flex-shrink-0" }, h0 = { class: "w-8 h-8 sm:w-10 sm:h-10 flex items-center flex-shrink-0" }, v0 = ["src"], C0 = { class: "whitespace-nowrap font-semibold sm:text-xl truncate" }, w0 = { class: "text-xs whitespace-nowrap truncate" }, x0 = { class: "w-full pl-1" }, b0 = { class: "w-full flex justify-end sm:pr-4" }, y0 = { class: "flex items-center sm:space-x-1" }, g0 = {
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 = {
677
863
  key: 0,
678
864
  class: "module-border-wrap flex justify-center items-center h-6 w-max"
679
- }, L0 = { class: "h-4 w-4" }, k0 = { class: "ml-2 hidden sm:flex" }, _0 = { class: "flex h-full" }, $0 = { key: 0 }, S0 = {
865
+ }, Xs = { class: "h-4 w-4" }, Ys = { class: "ml-2 hidden sm:flex" }, et = { class: "flex h-full" }, st = { key: 0 }, tt = {
680
866
  key: 0,
681
867
  class: "sm:w-[560px] w-full relative h-full"
682
- }, M0 = { class: "h-full relative" }, B0 = { class: "flex items-center p-3 space-x-1.5" }, O0 = {
868
+ }, lt = { class: "h-full relative" }, nt = { class: "flex items-center p-3 space-x-1.5" }, ot = {
683
869
  class: "overflow-auto",
684
870
  style: { height: "calc(100% - 62px)" }
685
- }, V0 = {
871
+ }, at = {
686
872
  key: 0,
687
873
  class: "p-5"
688
- }, z0 = { key: 1 }, T0 = { class: "p-4 text-gray text-center" }, j0 = { key: 2 }, H0 = {
874
+ }, rt = { key: 1 }, it = { class: "p-4 text-gray text-center" }, dt = { key: 2 }, ut = {
689
875
  class: "p-3 space-y-1.5 rounded-lg",
690
876
  style: { "box-shadow": "0 0 6px #eaeaea" }
691
- }, E0 = { key: 0 }, I0 = {
877
+ }, pt = { key: 0 }, ct = {
692
878
  key: 0,
693
879
  class: "text-xs px-2 py-1 rounded-md bg-green-600 text-white"
694
- }, P0 = {
880
+ }, ht = {
695
881
  key: 1,
696
882
  class: "text-xs px-2 py-1 rounded-md bg-yellow-600 text-white"
697
- }, A0 = {
883
+ }, mt = {
698
884
  key: 2,
699
885
  class: "text-xs px-2 py-1 rounded-md bg-blue-600 text-white"
700
- }, F0 = {
886
+ }, ft = {
701
887
  key: 3,
702
888
  class: "text-xs px-2 py-1 rounded-md bg-gray-600 text-white"
703
- }, N0 = { class: "text-lg font-medium" }, G0 = { class: "text-sm text-gray-600" }, W0 = { key: 0 }, q0 = ["src"], R0 = { class: "text-sm" }, U0 = { key: 1 }, Z0 = ["href"], D0 = { class: "text-sm flex items-center justify-between mt-1" }, J0 = { class: "text-gray-800" }, K0 = ["href"], Q0 = /* @__PURE__ */ c1({
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({
704
890
  __name: "OneMainLayout",
705
- props: pe,
891
+ props: u1,
706
892
  emits: ["load-news", "load-tariff", "open-tariff"],
707
- setup(v, { emit: C }) {
708
- const r = C, d = v;
709
- let g = window.localStorage.getItem("sidebar-slim");
710
- window.document.body.offsetWidth < 1024 && (window.localStorage.getItem("sidebar-slim") == null && window.localStorage.setItem("sidebar-slim", "1"), g = "1");
711
- const b = $(g === "1");
712
- $(!0), l1(b, (n) => {
713
- window.localStorage.setItem("sidebar-slim", String(n ? 1 : 0));
893
+ setup(g, { emit: x }) {
894
+ const i = x, c = g;
895
+ let _ = window.localStorage.getItem("sidebar-slim");
896
+ window.document.body.offsetWidth < 1024 && (window.localStorage.getItem("sidebar-slim") == null && window.localStorage.setItem("sidebar-slim", "1"), _ = "1");
897
+ const v = S(_ === "1");
898
+ S(!0), ie(v, (e) => {
899
+ window.localStorage.setItem("sidebar-slim", String(e ? 1 : 0));
714
900
  });
715
- const h = $(!1), L = () => {
716
- h.value = !h.value, h.value && r("load-news");
717
- }, V = M(() => d.showHeadre);
718
- l1(
719
- () => d.showHeadre,
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,
720
906
  // Передаємо доступ до props
721
907
  () => {
722
- V.value = d.showHeadre;
908
+ I.value = c.showHeadre;
723
909
  }
724
910
  );
725
- const E = $(window.innerWidth), B = () => {
726
- E.value = window.innerWidth;
727
- }, o = M(() => E.value <= 768);
728
- p1(() => {
729
- window.addEventListener("resize", B);
730
- }), G1(() => {
731
- window.removeEventListener("resize", B);
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);
732
918
  });
733
- const y = (n) => {
734
- var i;
735
- (i = d.handlers) == null || i.onSetLang(n);
736
- }, m = $(!1), O = () => {
737
- m.value = window.matchMedia("(min-width: 769px)").matches;
919
+ const W = (e) => {
920
+ var a;
921
+ (a = c.handlers) == null || a.onSetLang(e);
922
+ }, f = S(!1), O = () => {
923
+ f.value = window.matchMedia("(min-width: 769px)").matches;
738
924
  };
739
- return p1(() => {
925
+ return he(() => {
740
926
  O(), window.addEventListener("resize", O);
741
- }), G1(() => {
927
+ }), ge(() => {
742
928
  window.removeEventListener("resize", O);
743
- }), (n, i) => {
744
- var H, S, z, Q, X, Y, P, A, F, s, x, N, G, W, q, R, U, Z, D;
745
- const I = q1("RouterLink");
746
- return t(), l("div", c0, [
747
- u1(e("div", m0, [
748
- e("div", f0, [
749
- e("button", {
750
- onClick: i[0] || (i[0] = (p) => b.value = !b.value),
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, [
935
+ t("button", {
936
+ onClick: a[0] || (a[0] = (u) => v.value = !v.value),
751
937
  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"
752
938
  }, [
753
- j(k(ae), { class: "sm:w-[24px] sm:h-[24px] w-6 h-6" })
939
+ L($(i1), { class: "sm:w-[24px] sm:h-[24px] w-6 h-6" })
754
940
  ])
755
941
  ]),
756
- e("div", h0, [
757
- n.logoSrc != null ? (t(), l("img", {
942
+ t("div", Rs, [
943
+ e.logoSrc != null ? (s(), l("img", {
758
944
  key: 0,
759
- src: n.logoSrc,
945
+ src: e.logoSrc,
760
946
  class: "w-8 h-8 mx-auto",
761
947
  alt: "logo"
762
- }, null, 8, v0)) : a("", !0)
948
+ }, null, 8, qs)) : o("", !0)
763
949
  ]),
764
- n.app != null ? (t(), w(I, {
950
+ e.app != null ? (s(), p(C, {
765
951
  key: 0,
766
952
  to: "/",
767
953
  class: "sm:pl-2 pl-1 truncate w-full"
768
954
  }, {
769
- default: i1(() => {
770
- var p, T;
955
+ default: U(() => {
956
+ var u, N;
771
957
  return [
772
- e("div", C0, u(n.app.name), 1),
773
- e("div", w0, u((T = (p = n.app) == null ? void 0 : p.workspace) == null ? void 0 : T.name), 1)
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)
774
960
  ];
775
961
  }),
776
962
  _: 1
777
- })) : a("", !0),
778
- n1(n.$slots, "head-left", {}, void 0, !0),
779
- e("div", x0, [
780
- e("div", b0, [
781
- e("div", y0, [
782
- n.improveTariff && ((H = n.improveTariff) != null && H.label) && n.improveTariff.label ? (t(), l("div", g0, [
783
- e("button", {
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, [
969
+ t("button", {
784
970
  type: "button",
785
971
  class: "cursor-pointer flex items-center h-full bg-[#FFF8E4] hover:bg-[#f2e3b8] rounded-full px-2 py-1 font-medium",
786
- onClick: i[1] || (i[1] = //@ts-ignore
787
- (...p) => {
788
- var T, J;
789
- return ((T = n.handlers) == null ? void 0 : T.onImproveTariff) && ((J = n.handlers) == null ? void 0 : J.onImproveTariff(...p));
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));
790
976
  }),
791
977
  style: { "font-size": "10px" }
792
978
  }, [
793
- e("div", L0, [
794
- (t(), w(_((S = n.improveTariff) == null ? void 0 : S.icon), { class: "h-4 w-4 mx-auto" }))
979
+ t("div", Xs, [
980
+ (s(), p(k((T = e.improveTariff) == null ? void 0 : T.icon), { class: "h-4 w-4 mx-auto" }))
795
981
  ]),
796
- e("span", k0, u((z = n.improveTariff) == null ? void 0 : z.label), 1)
982
+ t("span", Ys, r((V = e.improveTariff) == null ? void 0 : V.label), 1)
797
983
  ])
798
- ])) : a("", !0),
799
- n1(n.$slots, "head-right", {}, void 0, !0),
800
- n.help ? (t(), w(ee, {
984
+ ])) : o("", !0),
985
+ re(e.$slots, "head-right", {}, void 0, !0),
986
+ e.help ? (s(), p(t1, {
801
987
  key: 1,
802
- help: n.help
803
- }, null, 8, ["help"])) : a("", !0),
804
- ((Q = n.handlers) == null ? void 0 : Q.onBrowse) != null ? (t(), w(te, {
988
+ help: e.help
989
+ }, null, 8, ["help"])) : o("", !0),
990
+ ((m = e.handlers) == null ? void 0 : m.onBrowse) != null ? (s(), p(l1, {
805
991
  key: 2,
806
- workspace: (X = n.app) == null ? void 0 : X.workspace,
807
- apps: ((Y = n.app) == null ? void 0 : Y.apps) || [],
808
- "change-label": ((P = n.labels) == null ? void 0 : P.change) || "Change",
809
- "apps-title": ((A = n.labels) == null ? void 0 : A.apps) || "Apps",
810
- "on-app": (F = n.handlers) == null ? void 0 : F.onApp,
811
- "on-change": (s = n.handlers) == null ? void 0 : s.onChange,
812
- onOpen: (x = n.handlers) == null ? void 0 : x.onBrowse
813
- }, null, 8, ["workspace", "apps", "change-label", "apps-title", "on-app", "on-change", "onOpen"])) : a("", !0),
814
- j(se, {
815
- user: n.user,
816
- menu: n.menu,
817
- app: n.app,
818
- "account-label": ((N = n.labels) == null ? void 0 : N.account) || "Account",
819
- "logout-label": ((G = n.labels) == null ? void 0 : G.logout) || "Logout",
820
- "version-label": ((W = n.labels) == null ? void 0 : W.version) || "",
821
- "on-account": (q = n.handlers) == null ? void 0 : q.onAccount,
822
- "on-logout": (R = n.handlers) == null ? void 0 : R.onLogout
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,
997
+ "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, {
1001
+ user: e.user,
1002
+ menu: e.menu,
1003
+ 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
823
1009
  }, null, 8, ["user", "menu", "app", "account-label", "logout-label", "version-label", "on-account", "on-logout"])
824
1010
  ])
825
1011
  ])
826
1012
  ])
827
1013
  ], 512), [
828
- [d1, V.value]
1014
+ [me, I.value]
829
1015
  ]),
830
- e("div", _0, [
831
- !o.value || !b.value ? (t(), w(d0, {
1016
+ t("div", et, [
1017
+ !M.value || !v.value ? (s(), p(p1, {
832
1018
  key: 0,
833
- app: n.app,
834
- items: n.sidebarItems,
835
- "with-news": n.news != null,
836
- news: n.news,
837
- isMobile: o.value,
838
- modelValue: b.value,
839
- "onUpdate:modelValue": i[2] || (i[2] = (p) => b.value = p),
840
- onShowNews: L,
841
- onSelectLanguage: y,
842
- onUpdateCollapsed: i[3] || (i[3] = (p) => b.value = !b.value)
843
- }, null, 8, ["app", "items", "with-news", "news", "isMobile", "modelValue"])) : a("", !0),
844
- e("div", {
845
- class: c([[
846
- b.value ? "" : "lg:ml-[260px] hidden sm:block",
847
- m.value ? "ml-[60px]" : ""
1019
+ app: e.app,
1020
+ items: e.sidebarItems,
1021
+ "with-news": e.news != null,
1022
+ 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),
1030
+ t("div", {
1031
+ class: y([[
1032
+ v.value ? "" : "lg:ml-[260px] hidden sm:block",
1033
+ f.value ? "ml-[60px]" : ""
848
1034
  ], "body scroll-body w-full overflow-y-auto"])
849
1035
  }, [
850
- e("div", {
851
- class: c(["content transition-all", { "pt-[56px]": V.value }])
1036
+ t("div", {
1037
+ class: y(["content transition-all", { "pt-[56px]": I.value }])
852
1038
  }, [
853
- n1(n.$slots, "default", {}, void 0, !0)
1039
+ re(e.$slots, "default", {}, void 0, !0)
854
1040
  ], 2)
855
1041
  ], 2)
856
1042
  ]),
857
- n.news ? (t(), l("div", $0, [
858
- h.value ? (t(), l("div", {
1043
+ e.news ? (s(), l("div", st, [
1044
+ d.value ? (s(), l("div", {
1045
+ key: 0,
1046
+ 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),
1049
+ 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"]])
1051
+ }, [
1052
+ d.value ? (s(), l("div", tt, [
1053
+ t("div", lt, [
1054
+ 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)),
1057
+ t("div", null, [
1058
+ L(xe, {
1059
+ variant: "touch",
1060
+ icon: $(o1),
1061
+ onClick: a[5] || (a[5] = (u) => d.value = !1)
1062
+ }, null, 8, ["icon"])
1063
+ ])
1064
+ ]),
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,
1073
+ class: "p-3"
1074
+ }, [
1075
+ t("div", ut, [
1076
+ 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)
1082
+ ]),
1083
+ u.image_url ? (s(), l("div", yt, [
1084
+ t("img", {
1085
+ src: u.image_url,
1086
+ alt: "",
1087
+ class: "w-full rounded-md"
1088
+ }, null, 8, bt)
1089
+ ])) : o("", !0),
1090
+ t("div", Ct, [
1091
+ L(r1, {
1092
+ text: u.body
1093
+ }, null, 8, ["text"])
1094
+ ]),
1095
+ u.video_url ? (s(), l("div", gt, [
1096
+ t("a", {
1097
+ href: u.video_url,
1098
+ target: "_blank",
1099
+ 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", {
1105
+ key: 0,
1106
+ href: u.post_url,
1107
+ target: "_blank",
1108
+ class: "text-blue-600 hover:text-blue-700 block"
1109
+ }, r(e.news.moreText), 9, _t)) : o("", !0)
1110
+ ])
1111
+ ])
1112
+ ]))), 128))
1113
+ ])) : o("", !0)
1114
+ ])
1115
+ ])
1116
+ ])) : o("", !0)
1117
+ ], 2)
1118
+ ])) : o("", !0)
1119
+ ]);
1120
+ };
1121
+ }
1122
+ });
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 = {
1124
+ key: 0,
1125
+ class: "border-t border-secondary-stroke my-1"
1126
+ }, Et = {
1127
+ key: 1,
1128
+ class: "text-2xs text-secondary-content px-3 py-1 uppercase"
1129
+ }, Ft = ["onClick"], Wt = { class: "text-sm" }, Nt = {
1130
+ key: 2,
1131
+ 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 = {
1133
+ key: 0,
1134
+ 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 = {
1136
+ class: "overflow-auto",
1137
+ style: { height: "calc(100% - 62px)" }
1138
+ }, Xt = {
1139
+ key: 0,
1140
+ class: "p-5"
1141
+ }, Yt = { key: 1 }, el = { class: "p-4 text-gray text-center" }, sl = { key: 2 }, tl = {
1142
+ class: "p-3 space-y-1.5 rounded-lg",
1143
+ style: { "box-shadow": "0 0 6px #eaeaea" }
1144
+ }, ll = { key: 0 }, nl = {
1145
+ key: 0,
1146
+ class: "text-xs px-2 py-1 rounded-md bg-green-600 text-white"
1147
+ }, ol = {
1148
+ key: 1,
1149
+ class: "text-xs px-2 py-1 rounded-md bg-yellow-600 text-white"
1150
+ }, al = {
1151
+ key: 2,
1152
+ class: "text-xs px-2 py-1 rounded-md bg-blue-600 text-white"
1153
+ }, rl = {
1154
+ key: 3,
1155
+ 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({
1157
+ __name: "OneIsland",
1158
+ props: u1,
1159
+ emits: ["load-news", "load-tariff", "open-tariff"],
1160
+ setup(g, { emit: x }) {
1161
+ const i = x, c = g;
1162
+ let _ = window.localStorage.getItem("island-sidebar-slim");
1163
+ window.document.body.offsetWidth < 1024 && (window.localStorage.getItem("island-sidebar-slim") == null && window.localStorage.setItem("island-sidebar-slim", "1"), _ = "1");
1164
+ const v = S(_ === "1");
1165
+ ie(v, (e) => {
1166
+ window.localStorage.setItem("island-sidebar-slim", String(e ? 1 : 0));
1167
+ });
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,
1177
+ () => {
1178
+ q.value = c.showHeadre;
1179
+ }
1180
+ );
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);
1188
+ });
1189
+ const O = (e) => {
1190
+ var a, C;
1191
+ (C = (a = c.handlers) == null ? void 0 : a.onSetLang) == null || C.call(a, e);
1192
+ };
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, {
1198
+ key: 0,
1199
+ items: e.sidebarItems,
1200
+ 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, {
1216
+ key: 0,
1217
+ "append-body": !0,
1218
+ stick: "bottom-start"
1219
+ }, {
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;
1238
+ return [
1239
+ t("div", Vt, [
1240
+ (s(!0), l(G, null, Z(e.workspaces || [], (j) => (s(), l("div", {
1241
+ key: j.name,
1242
+ 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();
1246
+ }
1247
+ }, [
1248
+ L(Ce, {
1249
+ text: j.name,
1250
+ src: j.photo_url,
1251
+ size: 24,
1252
+ rounded: !1
1253
+ }, 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,
1260
+ 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();
1264
+ }
1265
+ }, [
1266
+ L(Ce, {
1267
+ text: j.name,
1268
+ src: j.photo_url,
1269
+ size: 24,
1270
+ rounded: !1
1271
+ }, 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, [
1275
+ t("button", {
1276
+ type: "button",
1277
+ 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)
1281
+ ])
1282
+ ];
1283
+ }),
1284
+ _: 1
1285
+ })) : o("", !0),
1286
+ re(e.$slots, "head-left", {}, void 0, !0)
1287
+ ]),
1288
+ t("div", It, [
1289
+ (C = e.improveTariff) != null && C.label ? (s(), l("a", {
1290
+ key: 0,
1291
+ href: ((z = e.improveTariff) == null ? void 0 : z.url) || "#",
1292
+ 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);
1296
+ }, ["prevent"]))
1297
+ }, [
1298
+ e.improveTariff.icon ? (s(), p(k(e.improveTariff.icon), {
1299
+ key: 0,
1300
+ 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, {
1306
+ key: 1,
1307
+ 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
1330
+ }, null, 8, ["user", "menu", "app", "account-label", "logout-label", "version-label", "on-account", "on-logout"])
1331
+ ])
1332
+ ], 512), [
1333
+ [me, q.value]
1334
+ ]),
1335
+ t("div", Ut, [
1336
+ re(e.$slots, "default", {}, void 0, !0)
1337
+ ])
1338
+ ])
1339
+ ]),
1340
+ e.news ? (s(), l("div", Zt, [
1341
+ d.value ? (s(), l("div", {
859
1342
  key: 0,
860
1343
  class: "fixed top-0 left-0 h-dvh w-screen bg-gray-100 bg-opacity-40 z-50",
861
- onClick: i[4] || (i[4] = t1((p) => h.value = !1, ["self"]))
862
- })) : a("", !0),
863
- e("div", {
864
- class: c(["opacity-100 shadow-lg transition-all fixed top-0 left-0 h-dvh overflow-hidden z-50 bg-white", [h.value ? "sm:w-[560px] w-full" : "w-0"]])
1344
+ onClick: a[3] || (a[3] = ae((h) => d.value = !1, ["self"]))
1345
+ })) : o("", !0),
1346
+ 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"]])
865
1348
  }, [
866
- h.value ? (t(), l("div", S0, [
867
- e("div", M0, [
868
- e("div", B0, [
869
- j(D1, { class: "w-10 h-10" }),
870
- i[6] || (i[6] = e("div", { class: "w-full font-medium" }, "OneB News", -1)),
871
- e("div", null, [
872
- j(U1, {
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)),
1354
+ t("div", null, [
1355
+ L(xe, {
873
1356
  variant: "touch",
874
- icon: k(le),
875
- onClick: i[5] || (i[5] = (p) => h.value = !1)
1357
+ icon: $(o1),
1358
+ onClick: a[4] || (a[4] = (h) => d.value = !1)
876
1359
  }, null, 8, ["icon"])
877
1360
  ])
878
1361
  ]),
879
- e("div", O0, [
880
- n.news.isLoading && ((U = n.news.items) == null ? void 0 : U.length) === 0 ? (t(), l("div", V0, [
881
- j(oe, { class: "w-6 h-6 text-gray-600 mx-auto" })
882
- ])) : ((Z = n.news.items) == null ? void 0 : Z.length) === 0 ? (t(), l("div", z0, [
883
- e("div", T0, u(n.news.emptyText), 1)
884
- ])) : ((D = n.news.items) == null ? void 0 : D.length) > 0 ? (t(), l("div", j0, [
885
- (t(!0), l(K, null, s1(n.news.items, (p) => (t(), l("div", {
886
- key: p.id,
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,
887
1370
  class: "p-3"
888
1371
  }, [
889
- e("div", H0, [
890
- e("div", null, [
891
- p.type ? (t(), l("div", E0, [
892
- p.type === 10 ? (t(), l("span", I0, "update")) : p.type === 11 ? (t(), l("span", P0, "warning")) : p.type === 12 ? (t(), l("span", A0, "notice")) : p.type === 13 ? (t(), l("span", F0, "ads")) : a("", !0)
893
- ])) : a("", !0),
894
- e("div", N0, u(p.title), 1),
895
- e("div", G0, u(p.summary), 1)
1372
+ t("div", tl, [
1373
+ 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)
896
1379
  ]),
897
- p.image_url ? (t(), l("div", W0, [
898
- e("img", {
899
- src: p.image_url,
1380
+ h.image_url ? (s(), l("div", ul, [
1381
+ t("img", {
1382
+ src: h.image_url,
900
1383
  alt: "",
901
1384
  class: "w-full rounded-md"
902
- }, null, 8, q0)
903
- ])) : a("", !0),
904
- e("div", R0, [
905
- j(ne, {
906
- text: p.body
1385
+ }, null, 8, pl)
1386
+ ])) : o("", !0),
1387
+ t("div", cl, [
1388
+ L(r1, {
1389
+ text: h.body
907
1390
  }, null, 8, ["text"])
908
1391
  ]),
909
- p.video_url ? (t(), l("div", U0, [
910
- e("a", {
911
- href: p.video_url,
1392
+ h.video_url ? (s(), l("div", hl, [
1393
+ t("a", {
1394
+ href: h.video_url,
912
1395
  target: "_blank",
913
1396
  class: "text-blue-600 hover:text-blue-700 px-3 py-2 border rounded-md w-full block"
914
- }, u(n.news.openVideoText), 9, Z0)
915
- ])) : a("", !0),
916
- e("div", D0, [
917
- e("span", J0, u(p.published), 1),
918
- p.post_url ? (t(), l("a", {
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", {
919
1402
  key: 0,
920
- href: p.post_url,
1403
+ href: h.post_url,
921
1404
  target: "_blank",
922
1405
  class: "text-blue-600 hover:text-blue-700 block"
923
- }, u(n.news.moreText), 9, K0)) : a("", !0)
1406
+ }, r(e.news.moreText), 9, wl)) : o("", !0)
924
1407
  ])
925
1408
  ])
926
1409
  ]))), 128))
927
- ])) : a("", !0)
1410
+ ])) : o("", !0)
928
1411
  ])
929
1412
  ])
930
- ])) : a("", !0)
1413
+ ])) : o("", !0)
931
1414
  ], 2)
932
- ])) : a("", !0)
1415
+ ])) : o("", !0)
933
1416
  ]);
934
1417
  };
935
1418
  }
936
1419
  });
937
- const f9 = /* @__PURE__ */ m1(Q0, [["__scopeId", "data-v-f5bf3126"]]);
1420
+ const Al = /* @__PURE__ */ we(yl, [["__scopeId", "data-v-2cf17e48"]]);
938
1421
  export {
939
- f9 as OneMainLayout,
940
- d0 as OneSidebar
1422
+ Al as OneIsland,
1423
+ Hl as OneMainLayout,
1424
+ p1 as OneSidebar
941
1425
  };