@oneb/ui-vue 0.1.41 → 0.1.43

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