@oneb/ui-vue 0.0.95 → 0.0.96

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,7 +1,7 @@
1
- import { openBlock as t, createElementBlock as l, createElementVNode as e, defineComponent as n1, computed as k, ref as g, resolveComponent as O1, Fragment as Z, toDisplayString as d, createCommentVNode as n, normalizeClass as x, createBlock as m, resolveDynamicComponent as _, unref as b, withModifiers as l1, withCtx as o1, renderList as e1, watch as a1, onMounted as j1, onBeforeUnmount as I1, watchEffect as A1, shallowRef as H1, normalizeStyle as P1, withDirectives as S1, vShow as B1, createVNode as V, createTextVNode as F1, onUnmounted as N1, renderSlot as M1 } from "vue";
2
- import { r as t1, c as s1, d as W1, O as q1, b as R1 } from "../OneBrowserMenu-8cf71483.js";
3
- import { _ as r1 } from "../_plugin-vue_export-helper-dad06003.js";
4
- import { _ as T1, S as U1 } from "../index-ab76dea6.js";
1
+ import { openBlock as t, createElementBlock as s, createElementVNode as e, defineComponent as a1, computed as S, ref as L, resolveComponent as O1, Fragment as G, toDisplayString as p, createCommentVNode as n, normalizeClass as x, createBlock as C, resolveDynamicComponent as _, unref as b, withModifiers as e1, withCtx as n1, renderList as t1, watch as r1, onMounted as j1, onBeforeUnmount as I1, watchEffect as A1, shallowRef as H1, normalizeStyle as P1, withDirectives as S1, vShow as M1, createVNode as O, createTextVNode as F1, onUnmounted as N1, renderSlot as B1 } from "vue";
2
+ import { r as l1, c as o1, d as W1, O as q1, b as U1 } from "../OneBrowserMenu-8cf71483.js";
3
+ import { _ as i1 } from "../_plugin-vue_export-helper-dad06003.js";
4
+ import { _ as T1, S as R1 } from "../index-ab76dea6.js";
5
5
  import { r as Z1 } from "../XMarkIcon-51ef0691.js";
6
6
  import "../common/index.js";
7
7
  const z1 = {
@@ -11,7 +11,11 @@ const z1 = {
11
11
  },
12
12
  slim: {
13
13
  type: Boolean,
14
- default: !0
14
+ default: !1
15
+ },
16
+ isMobile: {
17
+ type: Boolean,
18
+ default: !1
15
19
  },
16
20
  app: {
17
21
  type: Object
@@ -41,6 +45,10 @@ const z1 = {
41
45
  };
42
46
  }
43
47
  },
48
+ isMobile: {
49
+ type: Boolean,
50
+ default: !1
51
+ },
44
52
  href: {
45
53
  type: String
46
54
  },
@@ -53,7 +61,7 @@ const z1 = {
53
61
  },
54
62
  labelTop: {
55
63
  type: String,
56
- required: !0
64
+ default: ""
57
65
  },
58
66
  icon: {
59
67
  type: [Function, Object]
@@ -116,8 +124,8 @@ const z1 = {
116
124
  type: Object
117
125
  }
118
126
  };
119
- function J1(h, f) {
120
- return t(), l("svg", {
127
+ function J1(u, c) {
128
+ return t(), s("svg", {
121
129
  xmlns: "http://www.w3.org/2000/svg",
122
130
  fill: "none",
123
131
  viewBox: "0 0 24 24",
@@ -132,8 +140,8 @@ function J1(h, f) {
132
140
  })
133
141
  ]);
134
142
  }
135
- function K1(h, f) {
136
- return t(), l("svg", {
143
+ function K1(u, c) {
144
+ return t(), s("svg", {
137
145
  xmlns: "http://www.w3.org/2000/svg",
138
146
  fill: "none",
139
147
  viewBox: "0 0 24 24",
@@ -148,8 +156,8 @@ function K1(h, f) {
148
156
  })
149
157
  ]);
150
158
  }
151
- function Q1(h, f) {
152
- return t(), l("svg", {
159
+ function Q1(u, c) {
160
+ return t(), s("svg", {
153
161
  xmlns: "http://www.w3.org/2000/svg",
154
162
  fill: "none",
155
163
  viewBox: "0 0 24 24",
@@ -164,8 +172,8 @@ function Q1(h, f) {
164
172
  })
165
173
  ]);
166
174
  }
167
- function X1(h, f) {
168
- return t(), l("svg", {
175
+ function X1(u, c) {
176
+ return t(), s("svg", {
169
177
  xmlns: "http://www.w3.org/2000/svg",
170
178
  fill: "none",
171
179
  viewBox: "0 0 24 24",
@@ -205,116 +213,119 @@ const Y1 = {
205
213
  }, xe = { class: "text-xs" }, be = {
206
214
  key: 0,
207
215
  class: "pr-3"
208
- }, ye = /* @__PURE__ */ n1({
216
+ }, ye = /* @__PURE__ */ a1({
209
217
  __name: "OneSidebarLink",
210
218
  props: D1,
211
219
  emits: ["update-collapsed"],
212
- setup(h, { emit: f }) {
213
- const a = h, p = k(() => a.href ?? !1), y = k(() => w(a)), w = (r) => r.route ? r.route : r.routeName ? { name: r.routeName } : "", u = g(a.open), L = () => {
214
- u.value = !u.value;
215
- }, $ = (r) => {
216
- a.subItems && a.subItems.length > 0 && (r.preventDefault(), L());
220
+ setup(u, { emit: c }) {
221
+ const a = u, h = c, y = S(() => a.href ?? !1), w = S(() => f(a)), f = (r) => r.route ? r.route : r.routeName ? { name: r.routeName } : "", g = L(a.open), j = () => {
222
+ g.value = !g.value;
223
+ }, k = (r, $) => {
224
+ a.subItems && a.subItems.length > 0 && !$ && (r.preventDefault(), j()), a.isMobile && h("update-collapsed");
217
225
  };
218
- return (r, D) => {
219
- const O = O1("RouterLink");
220
- return t(), l(Z, null, [
221
- r.labelTop && !r.slim ? (t(), l("p", Y1, d(r.labelTop), 1)) : n("", !0),
222
- p.value ? (t(), l("a", {
226
+ return (r, $) => {
227
+ const l = O1("RouterLink");
228
+ return t(), s(G, null, [
229
+ r.labelTop && !r.slim ? (t(), s("p", Y1, p(r.labelTop), 1)) : n("", !0),
230
+ y.value ? (t(), s("a", {
223
231
  key: 1,
224
- href: p.value,
232
+ href: y.value,
225
233
  class: x(["flex items-center relative rounded-lg text-sm font-medium hover:bg-primary-10-hover hover:text-primary-base transition-all text-[#525B66] mb-0.5", [r.slim ? "w-[44px] h-[44px]" : "h-[44px] w-full"]]),
226
- onClick: $
234
+ onClick: k
227
235
  }, [
228
236
  e("div", te, [
229
- r.icon ? (t(), l("div", se, [
230
- (t(), m(_(r.icon), { class: "w-[24px] h-[24px] mx-auto" }))
237
+ r.icon ? (t(), s("div", se, [
238
+ (t(), C(_(r.icon), { class: "w-[24px] h-[24px] mx-auto" }))
231
239
  ])) : n("", !0),
232
240
  e("div", le, [
233
- e("span", oe, d(r.label), 1)
241
+ e("span", oe, p(r.label), 1)
234
242
  ]),
235
- a.subItems && a.subItems.length > 0 ? (t(), l("div", {
243
+ a.subItems && a.subItems.length > 0 ? (t(), s("div", {
236
244
  key: 1,
237
245
  class: x(["ml-auto", [r.slim ? "hidden" : ""]])
238
246
  }, [
239
- (t(), m(_(u.value ? b(t1) : b(s1)), { class: "w-[16px] h-[16px]" }))
247
+ (t(), C(_(g.value ? b(l1) : b(o1)), { class: "w-[16px] h-[16px]" }))
240
248
  ], 2)) : n("", !0)
241
249
  ])
242
250
  ], 10, ee)) : n("", !0),
243
- !p.value && y.value ? (t(), m(O, {
251
+ !y.value && w.value ? (t(), C(l, {
244
252
  key: 2,
245
- to: y.value,
253
+ to: w.value,
246
254
  class: x(["relative flex items-center cursor-pointer rounded-lg text-sm font-medium hover:bg-primary-10-hover hover:text-primary-base transition-all text-[#525B66] mb-0.5", [r.slim ? "w-[44px] h-[44px]" : "h-[44px] w-full"]]),
247
255
  "active-class": "bg-primary-10 !text-primary-base",
248
256
  "exact-active-class": "bg-primary-10 !text-primary-base",
249
257
  exact: r.exact,
250
- onClick: l1($, ["prevent"])
258
+ onClick: e1(k, ["prevent"])
251
259
  }, {
252
- default: o1(() => [
260
+ default: n1(() => [
253
261
  e("div", ne, [
254
- r.icon ? (t(), l("div", ae, [
255
- (t(), m(_(r.icon), { class: "w-[24px] h-[24px] mx-auto" }))
262
+ r.icon ? (t(), s("div", ae, [
263
+ (t(), C(_(r.icon), { class: "w-[24px] h-[24px] mx-auto" }))
256
264
  ])) : n("", !0),
257
265
  e("div", re, [
258
- e("span", ie, d(r.label), 1)
266
+ e("span", ie, p(r.label), 1)
259
267
  ]),
260
- a.subItems && a.subItems.length > 0 && !r.slim ? (t(), l("div", de, [
261
- (t(), m(_(u.value ? b(t1) : b(s1)), { class: "w-[16px] h-[16px]" }))
268
+ a.subItems && a.subItems.length > 0 && !r.slim ? (t(), s("div", de, [
269
+ (t(), C(_(g.value ? b(l1) : b(o1)), { class: "w-[16px] h-[16px]" }))
262
270
  ])) : n("", !0)
263
271
  ])
264
272
  ]),
265
273
  _: 1
266
274
  }, 8, ["to", "exact", "class"])) : n("", !0),
267
- !p.value && !y.value ? (t(), l("span", {
275
+ !y.value && !w.value ? (t(), s("span", {
268
276
  key: 3,
269
- onClick: l1($, ["prevent"]),
277
+ onClick: e1(k, ["prevent"]),
270
278
  class: x([[r.slim ? "w-[44px] h-[44px]" : "h-[44px] w-full"], "mb-0.5 relative flex items-center cursor-pointer rounded-lg text-sm font-medium hover:bg-primary-10-hover hover:text-primary-base transition-all text-[#525B66]"])
271
279
  }, [
272
280
  e("div", pe, [
273
- r.icon ? (t(), l("div", ue, [
274
- (t(), m(_(r.icon), { class: "w-[24px] h-[24px] mx-auto" }))
281
+ r.icon ? (t(), s("div", ue, [
282
+ (t(), C(_(r.icon), { class: "w-[24px] h-[24px] mx-auto" }))
275
283
  ])) : n("", !0),
276
284
  e("div", ce, [
277
- e("span", he, d(r.label), 1)
285
+ e("span", he, p(r.label), 1)
278
286
  ]),
279
- a.subItems && a.subItems.length > 0 && !r.slim ? (t(), l("div", fe, [
280
- (t(), m(_(u.value ? b(t1) : b(s1)), { class: "w-[16px] h-[16px]" }))
287
+ a.subItems && a.subItems.length > 0 && !r.slim ? (t(), s("div", fe, [
288
+ (t(), C(_(g.value ? b(l1) : b(o1)), { class: "w-[16px] h-[16px]" }))
281
289
  ])) : n("", !0)
282
290
  ])
283
291
  ], 2)) : n("", !0),
284
- u.value && a.subItems ? (t(), l("div", {
292
+ g.value && a.subItems ? (t(), s("div", {
285
293
  key: 4,
286
294
  class: x([r.slim ? "hidden" : "pl-[36px] pr-3"])
287
295
  }, [
288
296
  e("div", {
289
297
  class: x([(r.slim, "")])
290
298
  }, [
291
- (t(!0), l(Z, null, e1(a.subItems, (s) => (t(), l("div", {
292
- key: s.label,
299
+ (t(!0), s(G, null, t1(a.subItems, (i) => (t(), s("div", {
300
+ key: i.label,
293
301
  class: x([(r.slim, "")])
294
302
  }, [
295
- s.href ? (t(), l("a", {
303
+ i.href ? (t(), s("a", {
296
304
  key: 0,
297
- href: s.href,
305
+ href: i.href,
298
306
  class: "flex items-center mb-0.5 rounded-lg p-2 text-sm font-medium hover:bg-primary-10-hover hover:text-primary-base transition-all text-[#525B66]"
299
307
  }, [
300
308
  e("div", me, [
301
- e("span", Ce, d(s.label), 1),
302
- s.icon ? (t(), l("div", we, [
303
- (t(), m(_(s.icon), { class: "w-[15px] h-[15px] mx-auto" }))
309
+ e("span", Ce, p(i.label), 1),
310
+ i.icon ? (t(), s("div", we, [
311
+ (t(), C(_(i.icon), { class: "w-[15px] h-[15px] mx-auto" }))
304
312
  ])) : n("", !0)
305
313
  ])
306
- ], 8, ve)) : (t(), m(O, {
314
+ ], 8, ve)) : (t(), C(l, {
307
315
  key: 1,
308
- to: w(s),
316
+ to: f(i),
317
+ onClick: $[0] || ($[0] = e1((A) => {
318
+ k(A, !0);
319
+ }, ["prevent"])),
309
320
  class: "flex items-center rounded-lg p-2 text-sm font-medium hover:bg-primary-10-hover mb-0.5 hover:text-primary-base transition-all text-[#525B66]",
310
321
  exact: r.exact,
311
322
  "active-class": "bg-primary-10 !text-primary-base",
312
323
  "exact-active-class": "bg-primary-10 !text-primary-base"
313
324
  }, {
314
- default: o1(() => [
315
- e("span", xe, d(s.label), 1),
316
- s.icon ? (t(), l("div", be, [
317
- (t(), m(_(s.icon), { class: "w-[20px] h-[20px] mx-auto" }))
325
+ default: n1(() => [
326
+ e("span", xe, p(i.label), 1),
327
+ i.icon ? (t(), s("div", be, [
328
+ (t(), C(_(i.icon), { class: "w-[20px] h-[20px] mx-auto" }))
318
329
  ])) : n("", !0)
319
330
  ]),
320
331
  _: 2
@@ -325,15 +336,15 @@ const Y1 = {
325
336
  ], 64);
326
337
  };
327
338
  }
328
- }), _e = {}, ge = {
339
+ }), ge = {}, _e = {
329
340
  xmlns: "http://www.w3.org/2000/svg",
330
341
  width: "24",
331
342
  height: "24",
332
343
  viewBox: "0 0 24 24",
333
344
  fill: "none"
334
345
  };
335
- function Le(h, f) {
336
- return t(), l("svg", ge, f[0] || (f[0] = [
346
+ function Le(u, c) {
347
+ return t(), s("svg", _e, c[0] || (c[0] = [
337
348
  e("path", {
338
349
  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",
339
350
  fill: "currentColor"
@@ -350,44 +361,44 @@ function Le(h, f) {
350
361
  }, null, -1)
351
362
  ]));
352
363
  }
353
- const E1 = /* @__PURE__ */ r1(_e, [["render", Le]]), V1 = (h) => {
354
- if (Array.isArray(h))
355
- return h.map(b);
356
- const f = b(h);
357
- return Array.isArray(f) ? f : [f];
358
- }, ke = (h, f) => {
364
+ const E1 = /* @__PURE__ */ i1(ge, [["render", Le]]), V1 = (u) => {
365
+ if (Array.isArray(u))
366
+ return u.map(b);
367
+ const c = b(u);
368
+ return Array.isArray(c) ? c : [c];
369
+ }, ke = (u, c) => {
359
370
  let a;
360
- const p = (y) => {
371
+ const h = (y) => {
361
372
  y.forEach((w) => {
362
- const u = b(w);
363
- if (u) {
364
- if (!(u instanceof Element))
373
+ const f = b(w);
374
+ if (f) {
375
+ if (!(f instanceof Element))
365
376
  throw console.error("Vuestic: Trying to observe non-HTMLElement", {
366
- target: u,
367
- array: h
377
+ target: f,
378
+ array: u
368
379
  }), new Error("Vuestic: Unable to observe non-HTMLElement");
369
- u && (a == null || a.observe(u));
380
+ f && (a == null || a.observe(f));
370
381
  }
371
382
  });
372
383
  };
373
- return a1(h, (y) => {
374
- a == null || a.disconnect(), p(V1(y));
384
+ return r1(u, (y) => {
385
+ a == null || a.disconnect(), h(V1(y));
375
386
  }), j1(() => {
376
- a = new ResizeObserver(f), p(V1(h));
387
+ a = new ResizeObserver(c), h(V1(u));
377
388
  }), I1(() => a == null ? void 0 : a.disconnect()), a;
378
- }, $e = (h) => {
379
- const f = g(null);
380
- return ke([h], () => {
389
+ }, $e = (u) => {
390
+ const c = L(null);
391
+ return ke([u], () => {
381
392
  var a;
382
- f.value = ((a = h.value) == null ? void 0 : a.clientWidth) ?? null;
393
+ c.value = ((a = u.value) == null ? void 0 : a.clientWidth) ?? null;
383
394
  }), A1(() => {
384
395
  var a;
385
- f.value = ((a = h.value) == null ? void 0 : a.clientWidth) ?? null;
386
- }), f;
387
- }, Se = { class: "mt-auto shrink" }, Be = ["href"], Me = { class: "relative rounded-lg bg-[#FFF8E4] px-1 py-3" }, Ve = { class: "w-[44px] mx-auto" }, Oe = { class: "text-center text-xs pt-2" }, je = {
396
+ c.value = ((a = u.value) == null ? void 0 : a.clientWidth) ?? null;
397
+ }), c;
398
+ }, Se = { class: "mt-auto shrink" }, Me = ["href"], Be = { class: "relative rounded-lg bg-[#FFF8E4] px-1 py-3" }, Ve = { class: "w-[44px] mx-auto" }, Oe = { class: "text-center text-xs pt-2" }, je = {
388
399
  key: 1,
389
400
  class: "flex justify-between border rounded-lg p-2 bg-[#F5F5F5] mb-3 w-full"
390
- }, Ae = { class: "flex items-center space-x-2 text-[#525B66]" }, Te = { class: "w-[24px] mx-auto" }, ze = { class: "text-sm" }, Ee = { class: "text-xs" }, Ie = ["href"], He = { class: "flex flex-nowrap items-center w-max h-[24px]" }, Pe = { class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full text-[#525B66]" }, Fe = { class: "py-[8px] pl-0 pr-[8px]" }, Ne = ["href"], We = { class: "flex flex-nowrap items-center w-max h-[24px]" }, qe = { class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full" }, Re = { class: "py-[8px] pl-0 pr-[8px]" }, Ue = {
401
+ }, Ae = { class: "flex items-center space-x-2 text-[#525B66]" }, Te = { class: "w-[24px] mx-auto" }, ze = { class: "text-sm" }, Ee = { class: "text-xs" }, Ie = ["href"], He = { class: "flex flex-nowrap items-center w-max h-[24px]" }, Pe = { class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full text-[#525B66]" }, Fe = { class: "py-[8px] pl-0 pr-[8px]" }, Ne = ["href"], We = { class: "flex flex-nowrap items-center w-max h-[24px]" }, qe = { class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full" }, Ue = { class: "py-[8px] pl-0 pr-[8px]" }, Re = {
391
402
  key: 4,
392
403
  class: "custom-select ml-3 w-full relative pt-3"
393
404
  }, Ze = { class: "pl-2" }, De = {
@@ -402,103 +413,105 @@ const E1 = /* @__PURE__ */ r1(_e, [["render", Le]]), V1 = (h) => {
402
413
  }, Ye = {
403
414
  key: 1,
404
415
  class: "absolute top-0 right-1.5 w-2 h-2 bg-blue-500 text-white rounded-full z-10"
405
- }, e0 = { class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full" }, t0 = { class: "py-[8px] pl-0 pr-[8px]" }, s0 = ["href"], l0 = { class: "flex flex-nowrap items-center w-full h-[24px]" }, o0 = { class: "w-[44px] flex-shrink-0 relative" }, n0 = { class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full" }, a0 = { class: "py-[8px] pl-0 pr-[8px]" }, r0 = /* @__PURE__ */ n1({
416
+ }, e0 = { class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full" }, t0 = { class: "py-[8px] pl-0 pr-[8px]" }, s0 = ["href"], l0 = { class: "flex flex-nowrap items-center w-full h-[24px]" }, o0 = { class: "w-[44px] flex-shrink-0 relative" }, n0 = { class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full" }, a0 = { class: "py-[8px] pl-0 pr-[8px]" }, r0 = /* @__PURE__ */ a1({
406
417
  __name: "OneSidebar",
407
418
  props: z1,
408
419
  emits: ["show-news", "show-tariff", "select-language", "update-collapsed", "update:modelValue"],
409
- setup(h, { emit: f }) {
410
- var T, z, E;
411
- const a = f, p = h, y = k(() => {
420
+ setup(u, { emit: c }) {
421
+ var E, I, H;
422
+ const a = c, h = u, y = S(() => {
412
423
  var o;
413
- return ((o = p.news) == null ? void 0 : o.unseenCount) || 0;
424
+ return ((o = h.news) == null ? void 0 : o.unseenCount) || 0;
414
425
  }), w = () => {
415
426
  a("show-news");
416
- }, u = g(!1), L = g(p.hoverable);
417
- a1(p, () => {
418
- p.modelValue ? L.value = !0 : L.value = !1;
419
- }), p.modelValue && (L.value = !0);
420
- const $ = H1(), r = k(() => s.value ? "" : "w-[260px]"), D = k(() => ""), O = (o) => {
421
- u.value = L.value && o;
422
- }, s = k(() => L.value && !u.value), c = k(() => !!s.value), G = g(), j = $e(G), A = k(() => p.modelValue === !0 || j.value === null ? !0 : j.value > 0), J = g(), K = () => s.value ? p.minimizedWidth : p.width;
427
+ }, f = L(!1), g = L(h.hoverable);
428
+ r1(h, () => {
429
+ h.modelValue ? g.value = !0 : g.value = !1;
430
+ }), h.modelValue && (g.value = !0);
431
+ const j = H1(), k = S(() => l.value ? "" : "w-[260px]"), r = S(() => ""), $ = (o) => {
432
+ f.value = g.value && o;
433
+ }, l = S(() => g.value && !f.value), i = S(() => !!l.value), A = L(), T = $e(A), z = S(() => h.modelValue === !0 || T.value === null ? !0 : T.value > 0), J = L(), K = () => l.value ? h.minimizedWidth : h.width;
423
434
  A1(() => {
424
435
  const o = K();
425
436
  setTimeout(() => {
426
437
  J.value = o;
427
438
  });
428
439
  });
429
- const S = g(!1), B = g((T = p.app) != null && T.availableLang && ((z = p.app) == null ? void 0 : z.availableLang.length) > 0 ? (E = p.app) == null ? void 0 : E.availableLang.find((o) => {
430
- var C;
431
- return o.id == ((C = p.app) == null ? void 0 : C.lang);
440
+ const M = L(!1), B = L((E = h.app) != null && E.availableLang && ((I = h.app) == null ? void 0 : I.availableLang.length) > 0 ? (H = h.app) == null ? void 0 : H.availableLang.find((o) => {
441
+ var v;
442
+ return o.id == ((v = h.app) == null ? void 0 : v.lang);
432
443
  }) : null), Q = () => {
433
- S.value = !S.value;
444
+ M.value = !M.value;
434
445
  }, X = (o) => {
435
- B.value = o, S.value = !1, a("select-language", o);
446
+ B.value = o, M.value = !1, a("select-language", o);
436
447
  }, Y = () => {
437
- var o, C;
438
- (C = (o = p.app) == null ? void 0 : o.selectedPlan) != null && C.url && (window.location.href = p.app.selectedPlan.url);
448
+ var o, v;
449
+ (v = (o = h.app) == null ? void 0 : o.selectedPlan) != null && v.url && (window.location.href = h.app.selectedPlan.url);
439
450
  };
440
- return (o, C) => {
441
- var I, H, P, F, N, W, q, R, i, M, U, i1, d1, p1, u1, c1, h1, f1, v1, m1, C1, w1, x1, b1, y1, _1, g1;
442
- return t(), l("aside", {
451
+ return (o, v) => {
452
+ var P, F, N, W, q, U, R, Z, d, V, D, d1, p1, u1, c1, h1, f1, v1, m1, C1, w1, x1, b1, y1, g1, _1, L1;
453
+ return t(), s("aside", {
443
454
  ref_key: "rootElement",
444
- ref: $,
445
- class: x(["oneb-sidebar pt-[56px] p-2 cont max-w-[270px] flex flex-col", r.value]),
446
- style: P1(D.value),
447
- onMouseenter: C[0] || (C[0] = (v) => O(!0)),
448
- onMouseleave: C[1] || (C[1] = (v) => O(!1))
455
+ ref: j,
456
+ class: x(["oneb-sidebar pt-[56px] p-2 cont max-w-[270px] flex flex-col", k.value]),
457
+ style: P1(r.value),
458
+ onMouseenter: v[1] || (v[1] = (m) => $(!0)),
459
+ onMouseleave: v[2] || (v[2] = (m) => $(!1))
449
460
  }, [
450
461
  S1(e("div", {
451
462
  class: "overflow-y-auto top-[56px] left-0 overflow-hidden lg:bg-transparent transition-all z-50 pt-2 flex-grow",
452
463
  ref_key: "menu",
453
- ref: G
464
+ ref: A
454
465
  }, [
455
- (t(!0), l(Z, null, e1(o.items, (v) => (t(), m(ye, {
456
- key: v.label,
457
- labelTop: v.labelTop,
458
- subItems: v.subItems,
459
- open: v.open,
460
- icon: v.icon,
461
- label: v.label,
462
- route: v.route,
463
- href: v.href,
464
- slim: c.value,
465
- "route-name": v.routeName,
466
- exact: v.exact || !1
467
- }, null, 8, ["labelTop", "subItems", "open", "icon", "label", "route", "href", "slim", "route-name", "exact"]))), 128))
466
+ (t(!0), s(G, null, t1(o.items, (m) => (t(), C(ye, {
467
+ key: m.label,
468
+ labelTop: m.labelTop,
469
+ isMobile: o.isMobile,
470
+ subItems: m.subItems,
471
+ open: m.open,
472
+ icon: m.icon,
473
+ label: m.label,
474
+ route: m.route,
475
+ href: m.href,
476
+ slim: i.value,
477
+ "route-name": m.routeName,
478
+ exact: m.exact || !1,
479
+ onUpdateCollapsed: v[0] || (v[0] = (s1) => a("update-collapsed"))
480
+ }, null, 8, ["labelTop", "isMobile", "subItems", "open", "icon", "label", "route", "href", "slim", "route-name", "exact"]))), 128))
468
481
  ], 512), [
469
- [B1, A.value]
482
+ [M1, z.value]
470
483
  ]),
471
484
  S1(e("div", Se, [
472
485
  e("div", {
473
- class: x([c.value ? "hidden" : "w-full hidden md:flex-col md:flex px-2"])
486
+ class: x([i.value ? "hidden" : "w-full hidden md:flex-col md:flex px-2"])
474
487
  }, [
475
- (I = o.app) != null && I.offerPlan ? (t(), l("a", {
488
+ (P = o.app) != null && P.offerPlan ? (t(), s("a", {
476
489
  key: 0,
477
- href: (H = o.app) == null ? void 0 : H.offerPlan.url,
490
+ href: (F = o.app) == null ? void 0 : F.offerPlan.url,
478
491
  class: "relative w-full border rounded-lg p-[1px] bg-[#FFF8E4] mb-3 block",
479
492
  target: "_blank",
480
493
  rel: "noopener noreferrer"
481
494
  }, [
482
- C[2] || (C[2] = e("div", { class: "absolute inset-0 rounded-lg bg-gradient-to-r from-[#E1A508] via-red-500 to-[#E04040]" }, null, -1)),
483
- e("div", Me, [
495
+ v[3] || (v[3] = e("div", { class: "absolute inset-0 rounded-lg bg-gradient-to-r from-[#E1A508] via-red-500 to-[#E04040]" }, null, -1)),
496
+ e("div", Be, [
484
497
  e("div", Ve, [
485
- (t(), m(_((P = o.app) == null ? void 0 : P.offerPlan.icon), { class: "w-[24px] h-[24px] mx-auto" }))
498
+ (t(), C(_((N = o.app) == null ? void 0 : N.offerPlan.icon), { class: "w-[24px] h-[24px] mx-auto" }))
486
499
  ]),
487
- e("p", Oe, d((F = o.app) == null ? void 0 : F.offerPlan.title) + " «" + d((N = o.app) == null ? void 0 : N.offerPlan.name) + "» " + d((W = o.app) == null ? void 0 : W.offerPlan.title1), 1)
500
+ e("p", Oe, p((W = o.app) == null ? void 0 : W.offerPlan.title) + " «" + p((q = o.app) == null ? void 0 : q.offerPlan.name) + "» " + p((U = o.app) == null ? void 0 : U.offerPlan.title1), 1)
488
501
  ])
489
- ], 8, Be)) : n("", !0),
490
- (q = o.app) != null && q.selectedPlan && ((R = o.app) != null && R.selectedPlan.name) ? (t(), l("div", je, [
502
+ ], 8, Me)) : n("", !0),
503
+ (R = o.app) != null && R.selectedPlan && ((Z = o.app) != null && Z.selectedPlan.name) ? (t(), s("div", je, [
491
504
  e("div", Ae, [
492
505
  e("div", Te, [
493
- (t(), m(_((i = o.app) == null ? void 0 : i.selectedPlan.icon), { class: "w-[24px] h-[24px]" }))
506
+ (t(), C(_((d = o.app) == null ? void 0 : d.selectedPlan.icon), { class: "w-[24px] h-[24px]" }))
494
507
  ]),
495
508
  e("div", null, [
496
- e("p", ze, d(((M = o.app) == null ? void 0 : M.selectedPlan.name) || ""), 1),
497
- e("p", Ee, d(((U = o.app) == null ? void 0 : U.selectedPlan.title) || ""), 1)
509
+ e("p", ze, p(((V = o.app) == null ? void 0 : V.selectedPlan.name) || ""), 1),
510
+ e("p", Ee, p(((D = o.app) == null ? void 0 : D.selectedPlan.title) || ""), 1)
498
511
  ])
499
512
  ]),
500
513
  e("div", null, [
501
- V(T1, {
514
+ O(T1, {
502
515
  class: "text-[#525B66] hover:text-[#4089E0]",
503
516
  variant: "touch",
504
517
  icon: b(W1),
@@ -506,117 +519,117 @@ const E1 = /* @__PURE__ */ r1(_e, [["render", Le]]), V1 = (h) => {
506
519
  }, null, 8, ["icon"])
507
520
  ])
508
521
  ])) : n("", !0),
509
- (i1 = o.app) != null && i1.terms ? (t(), l("a", {
522
+ (d1 = o.app) != null && d1.terms ? (t(), s("a", {
510
523
  key: 2,
511
- href: (d1 = o.app) == null ? void 0 : d1.terms.url,
524
+ href: (p1 = o.app) == null ? void 0 : p1.terms.url,
512
525
  target: "_blank",
513
526
  class: "ml-3 flex items-center rounded-lg text-xs hover:underline font-extralight"
514
527
  }, [
515
528
  e("div", He, [
516
529
  e("div", Pe, [
517
- e("span", Fe, d(((p1 = o.app) == null ? void 0 : p1.terms.label) || "Terms"), 1)
530
+ e("span", Fe, p(((u1 = o.app) == null ? void 0 : u1.terms.label) || "Terms"), 1)
518
531
  ])
519
532
  ])
520
533
  ], 8, Ie)) : n("", !0),
521
- (u1 = o.app) != null && u1.offer ? (t(), l("a", {
534
+ (c1 = o.app) != null && c1.offer ? (t(), s("a", {
522
535
  key: 3,
523
- href: (c1 = o.app) == null ? void 0 : c1.offer.url,
536
+ href: (h1 = o.app) == null ? void 0 : h1.offer.url,
524
537
  target: "_blank",
525
538
  class: "ml-3 flex items-center rounded-lg text-xs hover:underline text-[#525B66] font-extralight"
526
539
  }, [
527
540
  e("div", We, [
528
541
  e("div", qe, [
529
- e("span", Re, d(((h1 = o.app) == null ? void 0 : h1.offer.label) || "Offert"), 1)
542
+ e("span", Ue, p(((f1 = o.app) == null ? void 0 : f1.offer.label) || "Offert"), 1)
530
543
  ])
531
544
  ])
532
545
  ], 8, Ne)) : n("", !0),
533
- (v1 = (f1 = o.app) == null ? void 0 : f1.availableLang) != null && v1.length ? (t(), l("div", Ue, [
546
+ (m1 = (v1 = o.app) == null ? void 0 : v1.availableLang) != null && m1.length ? (t(), s("div", Re, [
534
547
  e("div", {
535
548
  class: "select-box flex gap-x-3 text-xs text-[#525B66] cursor-pointer",
536
549
  onClick: Q
537
550
  }, [
538
- V(b(Q1), { class: "w-4" }),
539
- F1(" " + d((m1 = B.value) == null ? void 0 : m1.name) + " ", 1),
540
- e("span", Ze, d(S.value ? "▲" : "▼"), 1)
551
+ O(b(Q1), { class: "w-4" }),
552
+ F1(" " + p((C1 = B.value) == null ? void 0 : C1.name) + " ", 1),
553
+ e("span", Ze, p(M.value ? "▲" : "▼"), 1)
541
554
  ]),
542
- S.value ? (t(), l("div", De, [
543
- (t(!0), l(Z, null, e1((C1 = o.app) == null ? void 0 : C1.availableLang, (v) => {
544
- var L1, k1;
545
- return t(), l("div", {
546
- key: v.id,
547
- class: x(["px-2", { "hover:bg-slate-200 rounded-lg cursor-pointer": v.id !== ((L1 = B.value) == null ? void 0 : L1.id), "text-gray-300": v.id === ((k1 = B.value) == null ? void 0 : k1.id) }]),
555
+ M.value ? (t(), s("div", De, [
556
+ (t(!0), s(G, null, t1((w1 = o.app) == null ? void 0 : w1.availableLang, (m) => {
557
+ var s1, k1;
558
+ return t(), s("div", {
559
+ key: m.id,
560
+ class: x(["px-2", { "hover:bg-slate-200 rounded-lg cursor-pointer": m.id !== ((s1 = B.value) == null ? void 0 : s1.id), "text-gray-300": m.id === ((k1 = B.value) == null ? void 0 : k1.id) }]),
548
561
  onClick: (Q0) => {
549
562
  var $1;
550
- return v.id !== (($1 = B.value) == null ? void 0 : $1.id) && X(v);
563
+ return m.id !== (($1 = B.value) == null ? void 0 : $1.id) && X(m);
551
564
  }
552
- }, d(v.name), 11, Ge);
565
+ }, p(m.name), 11, Ge);
553
566
  }), 128))
554
567
  ])) : n("", !0)
555
568
  ])) : n("", !0)
556
569
  ], 2),
557
- c.value ? n("", !0) : (t(), l("div", Je)),
570
+ i.value ? n("", !0) : (t(), s("div", Je)),
558
571
  e("div", {
559
572
  class: x(["flex", [(o.slim, "grid")]])
560
573
  }, [
561
- o.news ? (t(), l("a", {
574
+ o.news ? (t(), s("a", {
562
575
  key: 0,
563
576
  href: "#",
564
- class: x(["text-[#525B66] flex items-center rounded-lg text-sm tooltip hover:bg-primary-10-hover hover:text-primary-base transition-all", [c.value ? "w-[44px] h-[44px]" : "w-full h-[44px]"]]),
577
+ class: x(["text-[#525B66] flex items-center rounded-lg text-sm tooltip hover:bg-primary-10-hover hover:text-primary-base transition-all", [i.value ? "w-[44px] h-[44px]" : "w-full h-[44px]"]]),
565
578
  onClick: w
566
579
  }, [
567
580
  e("div", Ke, [
568
581
  e("div", Qe, [
569
582
  e("div", null, [
570
- (t(), m(_(E1), { class: "w-[24px] h-[24px] mx-auto" }))
583
+ (t(), C(_(E1), { class: "w-[24px] h-[24px] mx-auto" }))
571
584
  ]),
572
- y.value > 0 ? (t(), l("span", Xe)) : n("", !0),
573
- y.value > 0 ? (t(), l("span", Ye)) : n("", !0)
585
+ y.value > 0 ? (t(), s("span", Xe)) : n("", !0),
586
+ y.value > 0 ? (t(), s("span", Ye)) : n("", !0)
574
587
  ]),
575
588
  e("div", e0, [
576
- e("span", t0, d(o.news.menuLabel || "News"), 1)
589
+ e("span", t0, p(o.news.menuLabel || "News"), 1)
577
590
  ])
578
591
  ])
579
592
  ], 2)) : n("", !0),
580
- (w1 = o.app) != null && w1.support ? (t(), l("a", {
593
+ (x1 = o.app) != null && x1.support ? (t(), s("a", {
581
594
  key: 1,
582
- href: (b1 = (x1 = o.app) == null ? void 0 : x1.support) == null ? void 0 : b1.url,
583
- class: x(["text-[#525B66] flex items-center rounded-lg text-sm tooltip hover:bg-primary-10-hover hover:text-primary-base transition-all", [c.value ? "w-[44px] h-[44px]" : "w-full h-[44px]"]])
595
+ href: (y1 = (b1 = o.app) == null ? void 0 : b1.support) == null ? void 0 : y1.url,
596
+ class: x(["text-[#525B66] flex items-center rounded-lg text-sm tooltip hover:bg-primary-10-hover hover:text-primary-base transition-all", [i.value ? "w-[44px] h-[44px]" : "w-full h-[44px]"]])
584
597
  }, [
585
598
  e("div", l0, [
586
599
  e("div", o0, [
587
600
  e("div", null, [
588
- (t(), m(_(b(K1)), { class: "w-[24px] h-[24px] mx-auto" }))
601
+ (t(), C(_(b(K1)), { class: "w-[24px] h-[24px] mx-auto" }))
589
602
  ])
590
603
  ]),
591
604
  e("div", n0, [
592
- e("span", a0, d(((_1 = (y1 = o.app) == null ? void 0 : y1.support) == null ? void 0 : _1.label) || "Support"), 1)
605
+ e("span", a0, p(((_1 = (g1 = o.app) == null ? void 0 : g1.support) == null ? void 0 : _1.label) || "Support"), 1)
593
606
  ])
594
607
  ])
595
608
  ], 10, s0)) : n("", !0)
596
609
  ], 2),
597
610
  e("p", {
598
- class: x([[c.value ? "hidden" : "w-full"], "text-[8px] pl-3 text-[#979CA9] flex justify-between font-extralight"])
611
+ class: x([[i.value ? "hidden" : "w-full"], "text-[8px] pl-3 text-[#979CA9] flex justify-between font-extralight"])
599
612
  }, [
600
- C[3] || (C[3] = e("span", null, "Powered by OneB", -1)),
601
- e("span", null, d((g1 = o.app) == null ? void 0 : g1.version), 1)
613
+ v[4] || (v[4] = e("span", null, "Powered by OneB", -1)),
614
+ e("span", null, p((L1 = o.app) == null ? void 0 : L1.version), 1)
602
615
  ], 2)
603
616
  ], 512), [
604
- [B1, A.value]
617
+ [M1, z.value]
605
618
  ])
606
619
  ], 38);
607
620
  };
608
621
  }
609
622
  });
610
- const i0 = /* @__PURE__ */ r1(r0, [["__scopeId", "data-v-7d50aa94"]]), d0 = { class: "h-dvh relative" }, p0 = {
623
+ const i0 = /* @__PURE__ */ i1(r0, [["__scopeId", "data-v-069bf58b"]]), d0 = { class: "h-dvh relative" }, p0 = {
611
624
  class: "header h-[56px] flex items-center flex-nowrap fixed top-0 left-0 w-full z-50",
612
625
  style: { background: "rgba(245, 247, 251, 0.80)", "backdrop-filter": "blur(5px)" }
613
626
  }, u0 = { class: "p-2 flex-shrink-0" }, c0 = { class: "w-10 h-10 flex items-center flex-shrink-0" }, h0 = ["src"], f0 = { class: "whitespace-nowrap font-semibold text-xl" }, v0 = { class: "text-xs whitespace-nowrap" }, m0 = { class: "w-full" }, C0 = { class: "w-full flex justify-end pr-3" }, w0 = { class: "flex items-center space-x-1" }, x0 = {
614
627
  key: 0,
615
628
  class: "module-border-wrap flex justify-center items-center"
616
- }, b0 = { class: "h-4 w-4" }, y0 = { class: "ml-2 hidden sm:flex" }, _0 = ["href"], g0 = { class: "flex h-full" }, L0 = { class: "content transition-all pt-[56px]" }, k0 = { key: 0 }, $0 = {
629
+ }, b0 = { class: "h-4 w-4" }, y0 = { class: "ml-2 hidden sm:flex" }, g0 = ["href"], _0 = { class: "flex h-full" }, L0 = { class: "content transition-all pt-[56px]" }, k0 = { key: 0 }, $0 = {
617
630
  key: 0,
618
631
  class: "sm:w-[560px] w-full relative h-full"
619
- }, S0 = { class: "h-full relative" }, B0 = { class: "flex items-center p-3 space-x-1.5" }, M0 = {
632
+ }, S0 = { class: "h-full relative" }, M0 = { class: "flex items-center p-3 space-x-1.5" }, B0 = {
620
633
  class: "overflow-auto",
621
634
  style: { height: "calc(100% - 62px)" }
622
635
  }, V0 = {
@@ -637,63 +650,63 @@ const i0 = /* @__PURE__ */ r1(r0, [["__scopeId", "data-v-7d50aa94"]]), d0 = { cl
637
650
  }, P0 = {
638
651
  key: 3,
639
652
  class: "text-xs px-2 py-1 rounded-md bg-gray-600 text-white"
640
- }, F0 = { class: "text-lg font-medium" }, N0 = { class: "text-sm text-gray-600" }, W0 = { key: 0 }, q0 = ["src"], R0 = { class: "text-sm whitespace-pre-wrap break-words" }, U0 = { key: 1 }, Z0 = ["href"], D0 = { class: "text-sm flex items-center justify-between mt-1" }, G0 = { class: "text-gray-800" }, J0 = ["href"], K0 = /* @__PURE__ */ n1({
653
+ }, F0 = { class: "text-lg font-medium" }, N0 = { class: "text-sm text-gray-600" }, W0 = { key: 0 }, q0 = ["src"], U0 = { class: "text-sm whitespace-pre-wrap break-words" }, R0 = { key: 1 }, Z0 = ["href"], D0 = { class: "text-sm flex items-center justify-between mt-1" }, G0 = { class: "text-gray-800" }, J0 = ["href"], K0 = /* @__PURE__ */ a1({
641
654
  __name: "OneMainLayout",
642
655
  props: G1,
643
656
  emits: ["load-news", "load-tariff", "open-tariff"],
644
- setup(h, { emit: f }) {
645
- const a = f, p = h;
657
+ setup(u, { emit: c }) {
658
+ const a = c, h = u;
646
659
  let y = window.localStorage.getItem("sidebar-slim");
647
660
  window.document.body.offsetWidth < 1024 && (window.localStorage.getItem("sidebar-slim") == null && window.localStorage.setItem("sidebar-slim", "1"), y = "1");
648
- const w = g(y === "1");
649
- g(!0), a1(w, (s) => {
650
- window.localStorage.setItem("sidebar-slim", String(s ? 1 : 0));
661
+ const w = L(y === "1");
662
+ L(!0), r1(w, (l) => {
663
+ window.localStorage.setItem("sidebar-slim", String(l ? 1 : 0));
651
664
  });
652
- const u = g(!1), L = () => {
653
- u.value = !u.value, u.value && a("load-news");
654
- }, $ = g(window.innerWidth), r = () => {
655
- $.value = window.innerWidth;
656
- }, D = k(() => $.value <= 768);
665
+ const f = L(!1), g = () => {
666
+ f.value = !f.value, f.value && a("load-news");
667
+ }, j = L(window.innerWidth), k = () => {
668
+ j.value = window.innerWidth;
669
+ }, r = S(() => j.value <= 768);
657
670
  j1(() => {
658
- window.addEventListener("resize", r);
671
+ window.addEventListener("resize", k);
659
672
  }), N1(() => {
660
- window.removeEventListener("resize", r);
673
+ window.removeEventListener("resize", k);
661
674
  });
662
- const O = (s) => {
663
- var c;
664
- (c = p.handlers) == null || c.onSetLang(s);
675
+ const $ = (l) => {
676
+ var i;
677
+ (i = h.handlers) == null || i.onSetLang(l);
665
678
  };
666
- return (s, c) => {
667
- var j, A, J, K, S, B, Q, X, Y, T, z, E, o, C, I, H, P, F, N, W, q, R;
668
- const G = O1("RouterLink");
669
- return t(), l("div", d0, [
679
+ return (l, i) => {
680
+ var T, z, J, K, M, B, Q, X, Y, E, I, H, o, v, P, F, N, W, q, U, R, Z;
681
+ const A = O1("RouterLink");
682
+ return t(), s("div", d0, [
670
683
  e("div", p0, [
671
684
  e("div", u0, [
672
685
  e("button", {
673
- onClick: c[0] || (c[0] = (i) => w.value = !w.value),
686
+ onClick: i[0] || (i[0] = (d) => w.value = !w.value),
674
687
  class: "w-[44px] h-[44px] p-[8px] flex items-center justify-center rounded hover:bg-secondary-10 hover:text-blue-600"
675
688
  }, [
676
- V(b(J1), { class: "w-[24px] h-[24px]" })
689
+ O(b(J1), { class: "w-[24px] h-[24px]" })
677
690
  ])
678
691
  ]),
679
692
  e("div", c0, [
680
- s.logoSrc != null ? (t(), l("img", {
693
+ l.logoSrc != null ? (t(), s("img", {
681
694
  key: 0,
682
- src: s.logoSrc,
695
+ src: l.logoSrc,
683
696
  class: "w-8 h-8 mx-auto",
684
697
  alt: "logo"
685
698
  }, null, 8, h0)) : n("", !0)
686
699
  ]),
687
- s.app != null ? (t(), m(G, {
700
+ l.app != null ? (t(), C(A, {
688
701
  key: 0,
689
702
  to: "/",
690
703
  class: "pl-2 max-w-xs"
691
704
  }, {
692
- default: o1(() => {
693
- var i, M;
705
+ default: n1(() => {
706
+ var d, V;
694
707
  return [
695
- e("div", f0, d(s.app.name), 1),
696
- e("div", v0, d((M = (i = s.app) == null ? void 0 : i.workspace) == null ? void 0 : M.name), 1)
708
+ e("div", f0, p(l.app.name), 1),
709
+ e("div", v0, p((V = (d = l.app) == null ? void 0 : d.workspace) == null ? void 0 : V.name), 1)
697
710
  ];
698
711
  }),
699
712
  _: 1
@@ -701,140 +714,141 @@ const i0 = /* @__PURE__ */ r1(r0, [["__scopeId", "data-v-7d50aa94"]]), d0 = { cl
701
714
  e("div", m0, [
702
715
  e("div", C0, [
703
716
  e("div", w0, [
704
- M1(s.$slots, "before-header-menu", {}, void 0, !0),
705
- s.improveTariff ? (t(), l("div", x0, [
717
+ B1(l.$slots, "before-header-menu", {}, void 0, !0),
718
+ l.improveTariff ? (t(), s("div", x0, [
706
719
  e("button", {
707
720
  type: "button",
708
721
  class: "cursor-pointer flex items-center h-full bg-[#FFF8E4] hover:bg-[#f2e3b8] rounded-full px-2 py-1 font-medium",
709
- onClick: c[1] || (c[1] = //@ts-ignore
710
- (...i) => {
711
- var M, U;
712
- return ((M = s.handlers) == null ? void 0 : M.onImproveTariff) && ((U = s.handlers) == null ? void 0 : U.onImproveTariff(...i));
722
+ onClick: i[1] || (i[1] = //@ts-ignore
723
+ (...d) => {
724
+ var V, D;
725
+ return ((V = l.handlers) == null ? void 0 : V.onImproveTariff) && ((D = l.handlers) == null ? void 0 : D.onImproveTariff(...d));
713
726
  }),
714
727
  style: { "font-size": "10px" }
715
728
  }, [
716
729
  e("div", b0, [
717
- (t(), m(_((j = s.improveTariff) == null ? void 0 : j.icon), { class: "h-4 w-4 mx-auto" }))
730
+ (t(), C(_((T = l.improveTariff) == null ? void 0 : T.icon), { class: "h-4 w-4 mx-auto" }))
718
731
  ]),
719
- e("span", y0, d((A = s.improveTariff) == null ? void 0 : A.label), 1)
732
+ e("span", y0, p((z = l.improveTariff) == null ? void 0 : z.label), 1)
720
733
  ])
721
734
  ])) : n("", !0),
722
- (K = (J = s.app) == null ? void 0 : J.help) != null && K.url ? (t(), l("a", {
735
+ (K = (J = l.app) == null ? void 0 : J.help) != null && K.url ? (t(), s("a", {
723
736
  key: 1,
724
- href: (B = (S = s.app) == null ? void 0 : S.help) == null ? void 0 : B.url,
737
+ href: (B = (M = l.app) == null ? void 0 : M.help) == null ? void 0 : B.url,
725
738
  target: "_blank",
726
739
  title: "Help",
727
740
  class: "p-1 rounded-md hover:bg-secondary-10 flex-shrink-0 hidden w-[44px] h-[44px] sm:flex items-center justify-center hover:text-blue-600"
728
741
  }, [
729
- V(b(X1), { class: "text-secondary-base w-full p-1 hover:text-blue-600" })
730
- ], 8, _0)) : n("", !0),
731
- ((Q = s.handlers) == null ? void 0 : Q.onBrowse) != null ? (t(), m(q1, {
742
+ O(b(X1), { class: "text-secondary-base w-full p-1 hover:text-blue-600" })
743
+ ], 8, g0)) : n("", !0),
744
+ ((Q = l.handlers) == null ? void 0 : Q.onBrowse) != null ? (t(), C(q1, {
732
745
  key: 2,
733
- workspace: (X = s.app) == null ? void 0 : X.workspace,
734
- apps: ((Y = s.app) == null ? void 0 : Y.apps) || [],
735
- "change-label": ((T = s.labels) == null ? void 0 : T.change) || "Change",
736
- "apps-title": ((z = s.labels) == null ? void 0 : z.apps) || "Apps",
737
- "on-app": (E = s.handlers) == null ? void 0 : E.onApp,
738
- "on-change": (o = s.handlers) == null ? void 0 : o.onChange,
739
- onOpen: (C = s.handlers) == null ? void 0 : C.onBrowse
746
+ workspace: (X = l.app) == null ? void 0 : X.workspace,
747
+ apps: ((Y = l.app) == null ? void 0 : Y.apps) || [],
748
+ "change-label": ((E = l.labels) == null ? void 0 : E.change) || "Change",
749
+ "apps-title": ((I = l.labels) == null ? void 0 : I.apps) || "Apps",
750
+ "on-app": (H = l.handlers) == null ? void 0 : H.onApp,
751
+ "on-change": (o = l.handlers) == null ? void 0 : o.onChange,
752
+ onOpen: (v = l.handlers) == null ? void 0 : v.onBrowse
740
753
  }, null, 8, ["workspace", "apps", "change-label", "apps-title", "on-app", "on-change", "onOpen"])) : n("", !0),
741
- V(R1, {
742
- user: s.user,
743
- app: s.app,
744
- "account-label": ((I = s.labels) == null ? void 0 : I.account) || "Account",
745
- "logout-label": ((H = s.labels) == null ? void 0 : H.logout) || "Logout",
746
- "version-label": ((P = s.labels) == null ? void 0 : P.version) || "",
747
- "on-account": (F = s.handlers) == null ? void 0 : F.onAccount,
748
- "on-logout": (N = s.handlers) == null ? void 0 : N.onLogout
754
+ O(U1, {
755
+ user: l.user,
756
+ app: l.app,
757
+ "account-label": ((P = l.labels) == null ? void 0 : P.account) || "Account",
758
+ "logout-label": ((F = l.labels) == null ? void 0 : F.logout) || "Logout",
759
+ "version-label": ((N = l.labels) == null ? void 0 : N.version) || "",
760
+ "on-account": (W = l.handlers) == null ? void 0 : W.onAccount,
761
+ "on-logout": (q = l.handlers) == null ? void 0 : q.onLogout
749
762
  }, null, 8, ["user", "app", "account-label", "logout-label", "version-label", "on-account", "on-logout"])
750
763
  ])
751
764
  ])
752
765
  ])
753
766
  ]),
754
- e("div", g0, [
755
- !D.value || !w.value ? (t(), m(i0, {
767
+ e("div", _0, [
768
+ !r.value || !w.value ? (t(), C(i0, {
756
769
  key: 0,
757
- app: s.app,
758
- items: s.sidebarItems,
759
- "with-news": s.news != null,
760
- news: s.news,
770
+ app: l.app,
771
+ items: l.sidebarItems,
772
+ "with-news": l.news != null,
773
+ news: l.news,
774
+ isMobile: r.value,
761
775
  modelValue: w.value,
762
- "onUpdate:modelValue": c[2] || (c[2] = (i) => w.value = i),
763
- onShowNews: L,
764
- onSelectLanguage: O,
765
- onUpdateCollapsed: c[3] || (c[3] = (i) => w.value = !w.value)
766
- }, null, 8, ["app", "items", "with-news", "news", "modelValue"])) : n("", !0),
776
+ "onUpdate:modelValue": i[2] || (i[2] = (d) => w.value = d),
777
+ onShowNews: g,
778
+ onSelectLanguage: $,
779
+ onUpdateCollapsed: i[3] || (i[3] = (d) => w.value = !w.value)
780
+ }, null, 8, ["app", "items", "with-news", "news", "isMobile", "modelValue"])) : n("", !0),
767
781
  e("div", {
768
782
  class: x([[w.value ? "" : "hidden lg:block"], "body scroll-body w-full overflow-y-auto"])
769
783
  }, [
770
784
  e("div", L0, [
771
- M1(s.$slots, "default", {}, void 0, !0)
785
+ B1(l.$slots, "default", {}, void 0, !0)
772
786
  ])
773
787
  ], 2)
774
788
  ]),
775
- s.news ? (t(), l("div", k0, [
776
- u.value ? (t(), l("div", {
789
+ l.news ? (t(), s("div", k0, [
790
+ f.value ? (t(), s("div", {
777
791
  key: 0,
778
792
  class: "fixed top-0 left-0 h-screen h-dvh w-screen bg-gray-100 bg-opacity-40 z-50",
779
- onClick: c[4] || (c[4] = l1((i) => u.value = !1, ["self"]))
793
+ onClick: i[4] || (i[4] = e1((d) => f.value = !1, ["self"]))
780
794
  })) : n("", !0),
781
795
  e("div", {
782
- class: x(["opacity-100 shadow-lg transition-all fixed top-0 left-0 h-dvh overflow-hidden z-50 bg-white", [u.value ? "sm:w-[560px] w-full" : "w-0"]])
796
+ class: x(["opacity-100 shadow-lg transition-all fixed top-0 left-0 h-dvh overflow-hidden z-50 bg-white", [f.value ? "sm:w-[560px] w-full" : "w-0"]])
783
797
  }, [
784
- u.value ? (t(), l("div", $0, [
798
+ f.value ? (t(), s("div", $0, [
785
799
  e("div", S0, [
786
- e("div", B0, [
787
- V(E1, { class: "w-10 h-10" }),
788
- c[6] || (c[6] = e("div", { class: "w-full font-medium" }, "OneB News", -1)),
800
+ e("div", M0, [
801
+ O(E1, { class: "w-10 h-10" }),
802
+ i[6] || (i[6] = e("div", { class: "w-full font-medium" }, "OneB News", -1)),
789
803
  e("div", null, [
790
- V(T1, {
804
+ O(T1, {
791
805
  variant: "touch",
792
806
  icon: b(Z1),
793
- onClick: c[5] || (c[5] = (i) => u.value = !1)
807
+ onClick: i[5] || (i[5] = (d) => f.value = !1)
794
808
  }, null, 8, ["icon"])
795
809
  ])
796
810
  ]),
797
- e("div", M0, [
798
- s.news.isLoading && ((W = s.news.items) == null ? void 0 : W.length) === 0 ? (t(), l("div", V0, [
799
- V(U1, { class: "w-6 h-6 text-gray-600 mx-auto" })
800
- ])) : ((q = s.news.items) == null ? void 0 : q.length) === 0 ? (t(), l("div", O0, [
801
- e("div", j0, d(s.news.emptyText), 1)
802
- ])) : ((R = s.news.items) == null ? void 0 : R.length) > 0 ? (t(), l("div", A0, [
803
- (t(!0), l(Z, null, e1(s.news.items, (i) => (t(), l("div", {
804
- key: i.id,
811
+ e("div", B0, [
812
+ l.news.isLoading && ((U = l.news.items) == null ? void 0 : U.length) === 0 ? (t(), s("div", V0, [
813
+ O(R1, { class: "w-6 h-6 text-gray-600 mx-auto" })
814
+ ])) : ((R = l.news.items) == null ? void 0 : R.length) === 0 ? (t(), s("div", O0, [
815
+ e("div", j0, p(l.news.emptyText), 1)
816
+ ])) : ((Z = l.news.items) == null ? void 0 : Z.length) > 0 ? (t(), s("div", A0, [
817
+ (t(!0), s(G, null, t1(l.news.items, (d) => (t(), s("div", {
818
+ key: d.id,
805
819
  class: "p-3"
806
820
  }, [
807
821
  e("div", T0, [
808
822
  e("div", null, [
809
- i.type ? (t(), l("div", z0, [
810
- i.type === 10 ? (t(), l("span", E0, "update")) : i.type === 11 ? (t(), l("span", I0, "warning")) : i.type === 12 ? (t(), l("span", H0, "notice")) : i.type === 13 ? (t(), l("span", P0, "ads")) : n("", !0)
823
+ d.type ? (t(), s("div", z0, [
824
+ d.type === 10 ? (t(), s("span", E0, "update")) : d.type === 11 ? (t(), s("span", I0, "warning")) : d.type === 12 ? (t(), s("span", H0, "notice")) : d.type === 13 ? (t(), s("span", P0, "ads")) : n("", !0)
811
825
  ])) : n("", !0),
812
- e("div", F0, d(i.title), 1),
813
- e("div", N0, d(i.summary), 1)
826
+ e("div", F0, p(d.title), 1),
827
+ e("div", N0, p(d.summary), 1)
814
828
  ]),
815
- i.image_url ? (t(), l("div", W0, [
829
+ d.image_url ? (t(), s("div", W0, [
816
830
  e("img", {
817
- src: i.image_url,
831
+ src: d.image_url,
818
832
  alt: "",
819
833
  class: "w-full rounded-md"
820
834
  }, null, 8, q0)
821
835
  ])) : n("", !0),
822
- e("div", R0, d(i.body), 1),
823
- i.video_url ? (t(), l("div", U0, [
836
+ e("div", U0, p(d.body), 1),
837
+ d.video_url ? (t(), s("div", R0, [
824
838
  e("a", {
825
- href: i.video_url,
839
+ href: d.video_url,
826
840
  target: "_blank",
827
841
  class: "text-blue-600 hover:text-blue-700 px-3 py-2 border rounded-md w-full block"
828
- }, d(s.news.openVideoText), 9, Z0)
842
+ }, p(l.news.openVideoText), 9, Z0)
829
843
  ])) : n("", !0),
830
844
  e("div", D0, [
831
- e("span", G0, d(i.published), 1),
832
- i.post_url ? (t(), l("a", {
845
+ e("span", G0, p(d.published), 1),
846
+ d.post_url ? (t(), s("a", {
833
847
  key: 0,
834
- href: i.post_url,
848
+ href: d.post_url,
835
849
  target: "_blank",
836
850
  class: "text-blue-600 hover:text-blue-700 block"
837
- }, d(s.news.moreText), 9, J0)) : n("", !0)
851
+ }, p(l.news.moreText), 9, J0)) : n("", !0)
838
852
  ])
839
853
  ])
840
854
  ]))), 128))
@@ -848,7 +862,7 @@ const i0 = /* @__PURE__ */ r1(r0, [["__scopeId", "data-v-7d50aa94"]]), d0 = { cl
848
862
  };
849
863
  }
850
864
  });
851
- const o9 = /* @__PURE__ */ r1(K0, [["__scopeId", "data-v-5513bcbd"]]);
865
+ const o9 = /* @__PURE__ */ i1(K0, [["__scopeId", "data-v-d6b70b18"]]);
852
866
  export {
853
867
  o9 as OneMainLayout,
854
868
  i0 as OneSidebar