@oneb/ui-vue 0.0.89 → 0.0.91

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