@oneb/ui-vue 0.0.56 → 0.0.57

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,8 +1,8 @@
1
- import { defineComponent as J, computed as K, resolveComponent as o1, openBlock as t, createElementBlock as l, normalizeClass as h, createElementVNode as e, createBlock as x, resolveDynamicComponent as q, createCommentVNode as r, toDisplayString as c, withCtx as n1, ref as I, Fragment as F, renderList as Z, createVNode as u, unref as v, createTextVNode as u1, pushScopeId as a1, popScopeId as r1, inject as h1, watch as C1, renderSlot as e1, withModifiers as f1 } from "vue";
2
- import { _ as Q } from "../_plugin-vue_export-helper-dad06003.js";
3
- import { _ as G, S as w1 } from "../index-72d69e4e.js";
1
+ import { defineComponent as Q, computed as G, resolveComponent as o1, openBlock as t, createElementBlock as l, normalizeClass as C, createElementVNode as e, createBlock as _, resolveDynamicComponent as Z, createCommentVNode as r, toDisplayString as c, withCtx as n1, ref as D, Fragment as R, renderList as T, createVNode as h, unref as m, createTextVNode as u1, pushScopeId as a1, popScopeId as r1, inject as h1, watch as C1, renderSlot as e1, withModifiers as f1 } from "vue";
2
+ import { _ as X } from "../_plugin-vue_export-helper-dad06003.js";
3
+ import { _ as J, S as w1 } from "../index-72d69e4e.js";
4
4
  import { r as v1 } from "../XMarkIcon-51ef0691.js";
5
- import { O as m1, b as x1 } from "../OneBrowserMenu-7507902f.js";
5
+ import { O as m1, b as x1 } from "../OneBrowserMenu-072918b3.js";
6
6
  import "../common/index.js";
7
7
  const i1 = {
8
8
  items: {
@@ -100,30 +100,30 @@ const i1 = {
100
100
  }, k1 = { class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full" }, $1 = { class: "py-[8px] pl-0 pr-[8px]" }, S1 = { class: "flex flex-nowrap items-center w-full h-[24px]" }, O1 = {
101
101
  key: 0,
102
102
  class: "w-[44px] flex-shrink-0"
103
- }, B1 = { class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full" }, j1 = { class: "py-[8px] pl-0 pr-[8px]" }, M1 = /* @__PURE__ */ J({
103
+ }, B1 = { class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full" }, j1 = { class: "py-[8px] pl-0 pr-[8px]" }, M1 = /* @__PURE__ */ Q({
104
104
  __name: "OneSidebarLink",
105
105
  props: _1,
106
- setup(n) {
107
- const p = n, m = K(() => p.href != null ? p.href : !1), f = K(() => p.route != null ? p.route : p.routeName != null ? { name: p.routeName } : "/");
108
- return (i, P) => {
109
- const d = o1("RouterLink");
110
- return m.value ? (t(), l("a", {
106
+ setup(o) {
107
+ const p = o, x = G(() => p.href != null ? p.href : !1), w = G(() => p.route != null ? p.route : p.routeName != null ? { name: p.routeName } : "/");
108
+ return (i, q) => {
109
+ const u = o1("RouterLink");
110
+ return x.value ? (t(), l("a", {
111
111
  key: 0,
112
- href: m.value,
113
- class: h(["flex items-center rounded-lg text-sm font-medium hover:bg-primary-10-hover hover:text-primary-base transition-all text-[#525B66]", [i.slim ? "w-[44px] h-[44px]" : "h-[44px] w-full"]])
112
+ href: x.value,
113
+ class: C(["flex items-center rounded-lg text-sm font-medium hover:bg-primary-10-hover hover:text-primary-base transition-all text-[#525B66]", [i.slim ? "w-[44px] h-[44px]" : "h-[44px] w-full"]])
114
114
  }, [
115
115
  e("div", g1, [
116
116
  i.icon ? (t(), l("div", L1, [
117
- (t(), x(q(i.icon), { class: "w-[24px] h-[24px] mx-auto" }))
117
+ (t(), _(Z(i.icon), { class: "w-[24px] h-[24px] mx-auto" }))
118
118
  ])) : r("", !0),
119
119
  e("div", k1, [
120
120
  e("span", $1, c(i.label), 1)
121
121
  ])
122
122
  ])
123
- ], 10, y1)) : (t(), x(d, {
123
+ ], 10, y1)) : (t(), _(u, {
124
124
  key: 1,
125
- to: f.value,
126
- class: h(["flex items-center rounded-lg text-sm font-medium hover:bg-primary-10-hover hover:text-primary-base transition-all text-[#525B66]", [i.slim ? "w-[44px] h-[44px]" : "h-[44px] w-full"]]),
125
+ to: w.value,
126
+ class: C(["flex items-center rounded-lg text-sm font-medium hover:bg-primary-10-hover hover:text-primary-base transition-all text-[#525B66]", [i.slim ? "w-[44px] h-[44px]" : "h-[44px] w-full"]]),
127
127
  "active-class": i.exact ? "" : "bg-primary-10 !text-primary-base",
128
128
  "exact-active-class": i.exact ? "bg-primary-10 !text-primary-base" : "",
129
129
  exact: i.exact
@@ -131,7 +131,7 @@ const i1 = {
131
131
  default: n1(() => [
132
132
  e("div", S1, [
133
133
  i.icon ? (t(), l("div", O1, [
134
- (t(), x(q(i.icon), { class: "w-[24px] h-[24px] mx-auto" }))
134
+ (t(), _(Z(i.icon), { class: "w-[24px] h-[24px] mx-auto" }))
135
135
  ])) : r("", !0),
136
136
  e("div", B1, [
137
137
  e("span", j1, c(i.label), 1)
@@ -164,11 +164,11 @@ const i1 = {
164
164
  A1,
165
165
  E1
166
166
  ];
167
- function I1(n, p) {
167
+ function I1(o, p) {
168
168
  return t(), l("svg", N1, H1);
169
169
  }
170
- const c1 = /* @__PURE__ */ Q(V1, [["render", I1]]);
171
- function P1(n, p) {
170
+ const c1 = /* @__PURE__ */ X(V1, [["render", I1]]);
171
+ function P1(o, p) {
172
172
  return t(), l("svg", {
173
173
  xmlns: "http://www.w3.org/2000/svg",
174
174
  fill: "none",
@@ -184,7 +184,7 @@ function P1(n, p) {
184
184
  })
185
185
  ]);
186
186
  }
187
- function p1(n, p) {
187
+ function p1(o, p) {
188
188
  return t(), l("svg", {
189
189
  xmlns: "http://www.w3.org/2000/svg",
190
190
  fill: "none",
@@ -200,7 +200,7 @@ function p1(n, p) {
200
200
  })
201
201
  ]);
202
202
  }
203
- function D1(n, p) {
203
+ function D1(o, p) {
204
204
  return t(), l("svg", {
205
205
  xmlns: "http://www.w3.org/2000/svg",
206
206
  fill: "none",
@@ -216,7 +216,7 @@ function D1(n, p) {
216
216
  })
217
217
  ]);
218
218
  }
219
- function d1(n, p) {
219
+ function d1(o, p) {
220
220
  return t(), l("svg", {
221
221
  xmlns: "http://www.w3.org/2000/svg",
222
222
  fill: "none",
@@ -237,7 +237,7 @@ function d1(n, p) {
237
237
  })
238
238
  ]);
239
239
  }
240
- const q1 = (n) => (a1("data-v-57d3d3f4"), n = n(), r1(), n), F1 = { class: "h-full relative" }, Z1 = { class: "space-y-1 p-2 h-full relative" }, R1 = { class: "absolute left-2 bottom-2 right-2" }, T1 = {
240
+ const q1 = (o) => (a1("data-v-57d3d3f4"), o = o(), r1(), o), F1 = { class: "h-full relative" }, Z1 = { class: "space-y-1 p-2 h-full relative" }, R1 = { class: "absolute left-2 bottom-2 right-2" }, T1 = {
241
241
  key: 0,
242
242
  class: "ml-3 flex justify-between border rounded-lg p-2 bg-[#F5F5F5] mb-3 w-[220px]"
243
243
  }, W1 = { class: "flex items-center space-x-2 text-[#525B66]" }, U1 = { class: "text-sm" }, K1 = { class: "text-xs" }, G1 = ["href"], J1 = { class: "flex flex-nowrap items-center w-max h-[24px]" }, Q1 = { class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full text-[#525B66]" }, X1 = { class: "py-[8px] pl-0 pr-[8px]" }, Y1 = ["href"], e0 = { class: "flex flex-nowrap items-center w-max h-[24px]" }, t0 = { class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full" }, s0 = { class: "py-[8px] pl-0 pr-[8px]" }, l0 = {
@@ -255,149 +255,149 @@ const q1 = (n) => (a1("data-v-57d3d3f4"), n = n(), r1(), n), F1 = { class: "h-fu
255
255
  }, d0 = {
256
256
  key: 1,
257
257
  class: "absolute top-0 right-1.5 w-2 h-2 bg-blue-500 text-white rounded-full z-10"
258
- }, u0 = { class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full" }, h0 = { class: "py-[8px] pl-0 pr-[8px]" }, C0 = ["href"], f0 = { class: "flex flex-nowrap items-center w-full h-[24px]" }, w0 = { class: "w-[44px] flex-shrink-0 relative" }, v0 = { class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full" }, m0 = { class: "py-[8px] pl-0 pr-[8px]" }, x0 = /* @__PURE__ */ q1(() => /* @__PURE__ */ e("span", null, "Powered by OneB", -1)), _0 = /* @__PURE__ */ J({
258
+ }, u0 = { class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full" }, h0 = { class: "py-[8px] pl-0 pr-[8px]" }, C0 = ["href"], f0 = { class: "flex flex-nowrap items-center w-full h-[24px]" }, w0 = { class: "w-[44px] flex-shrink-0 relative" }, v0 = { class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full" }, m0 = { class: "py-[8px] pl-0 pr-[8px]" }, x0 = /* @__PURE__ */ q1(() => /* @__PURE__ */ e("span", null, "Powered by OneB", -1)), _0 = /* @__PURE__ */ Q({
259
259
  __name: "OneSidebar",
260
260
  props: i1,
261
261
  emits: ["show-news", "show-tariff"],
262
- setup(n, { emit: p }) {
263
- var D, s, w;
264
- const m = p, f = n, i = K(() => {
265
- var a;
266
- return ((a = f.news) == null ? void 0 : a.unseenCount) || 0;
267
- }), P = () => {
268
- m("show-news");
269
- }, d = () => {
270
- m("show-tariff");
271
- }, _ = I(!1), C = I((D = f.app) != null && D.availableLang && ((s = f.app) == null ? void 0 : s.availableLang.length) > 0 ? (w = f.app) == null ? void 0 : w.availableLang[0] : null), R = () => {
272
- _.value = !_.value;
273
- }, T = (a) => {
274
- C.value = a, _.value = !1;
262
+ setup(o, { emit: p }) {
263
+ var F, s, v;
264
+ const x = p, w = o, i = G(() => {
265
+ var n;
266
+ return ((n = w.news) == null ? void 0 : n.unseenCount) || 0;
267
+ }), q = () => {
268
+ x("show-news");
269
+ }, u = () => {
270
+ x("show-tariff");
271
+ }, b = D(!1), f = D((F = w.app) != null && F.availableLang && ((s = w.app) == null ? void 0 : s.availableLang.length) > 0 ? (v = w.app) == null ? void 0 : v.availableLang[0] : null), W = () => {
272
+ b.value = !b.value;
273
+ }, U = (n) => {
274
+ f.value = n, b.value = !1;
275
275
  };
276
- return (a, W) => {
277
- var b, y, g, L, k, $, S, O, B, j, M, V, N, z, A, E, H;
276
+ return (n, K) => {
277
+ var g, L, k, $, S, O, B, j, M, V, N, z, A, E, H, I, P;
278
278
  return t(), l("div", F1, [
279
279
  e("div", Z1, [
280
- (t(!0), l(F, null, Z(a.items, (o) => (t(), x(M1, {
281
- key: o.label,
282
- icon: o.icon,
283
- label: o.label,
284
- route: o.route,
285
- href: o.href,
286
- "route-name": o.routeName,
287
- exact: o.exact || !1,
288
- slim: a.slim
280
+ (t(!0), l(R, null, T(n.items, (d) => (t(), _(M1, {
281
+ key: d.label,
282
+ icon: d.icon,
283
+ label: d.label,
284
+ route: d.route,
285
+ href: d.href,
286
+ "route-name": d.routeName,
287
+ exact: d.exact || !1,
288
+ slim: n.slim
289
289
  }, null, 8, ["icon", "label", "route", "href", "route-name", "exact", "slim"]))), 128)),
290
290
  e("div", R1, [
291
291
  e("div", {
292
- class: h([a.slim ? "hidden" : "w-max"])
292
+ class: C([n.slim ? "hidden" : "w-max"])
293
293
  }, [
294
- (b = a.app) != null && b.selectedPlan ? (t(), l("div", T1, [
294
+ (g = n.app) != null && g.selectedPlan ? (t(), l("div", T1, [
295
295
  e("div", W1, [
296
- u(v(d1), { class: "w-[24px] h-[24px]" }),
296
+ h(m(d1), { class: "w-[24px] h-[24px]" }),
297
297
  e("div", null, [
298
- e("p", U1, c(((y = a.app) == null ? void 0 : y.selectedPlan.name) || "Free"), 1),
299
- e("p", K1, c(((g = a.app) == null ? void 0 : g.selectedPlan.title) || "Тарифний план"), 1)
298
+ e("p", U1, c(((L = n.app) == null ? void 0 : L.selectedPlan.name) || "Free"), 1),
299
+ e("p", K1, c(((k = n.app) == null ? void 0 : k.selectedPlan.title) || "Тарифний план"), 1)
300
300
  ])
301
301
  ]),
302
302
  e("div", null, [
303
- u(G, {
303
+ h(J, {
304
304
  class: "text-[#525B66] hover:text-[#4089E0]",
305
305
  variant: "touch",
306
- icon: v(p1),
307
- onClick: d
306
+ icon: m(p1),
307
+ onClick: u
308
308
  }, null, 8, ["icon"])
309
309
  ])
310
310
  ])) : r("", !0),
311
- (L = a.app) != null && L.terms ? (t(), l("a", {
311
+ ($ = n.app) != null && $.terms ? (t(), l("a", {
312
312
  key: 1,
313
- href: (k = a.app) == null ? void 0 : k.terms.url,
313
+ href: (S = n.app) == null ? void 0 : S.terms.url,
314
314
  target: "_blank",
315
315
  class: "ml-3 flex items-center rounded-lg text-xs hover:underline font-extralight"
316
316
  }, [
317
317
  e("div", J1, [
318
318
  e("div", Q1, [
319
- e("span", X1, c((($ = a.app) == null ? void 0 : $.terms.label) || "Terms"), 1)
319
+ e("span", X1, c(((O = n.app) == null ? void 0 : O.terms.label) || "Terms"), 1)
320
320
  ])
321
321
  ])
322
322
  ], 8, G1)) : r("", !0),
323
- (S = a.app) != null && S.offer ? (t(), l("a", {
323
+ (B = n.app) != null && B.offer ? (t(), l("a", {
324
324
  key: 2,
325
- href: (O = a.app) == null ? void 0 : O.offer.url,
325
+ href: (j = n.app) == null ? void 0 : j.offer.url,
326
326
  target: "_blank",
327
327
  class: "ml-3 flex items-center rounded-lg text-xs hover:underline text-[#525B66] font-extralight"
328
328
  }, [
329
329
  e("div", e0, [
330
330
  e("div", t0, [
331
- e("span", s0, c(((B = a.app) == null ? void 0 : B.offer.label) || "Offert"), 1)
331
+ e("span", s0, c(((M = n.app) == null ? void 0 : M.offer.label) || "Offert"), 1)
332
332
  ])
333
333
  ])
334
334
  ], 8, Y1)) : r("", !0),
335
- (M = (j = a.app) == null ? void 0 : j.availableLang) != null && M.length ? (t(), l("div", l0, [
335
+ (N = (V = n.app) == null ? void 0 : V.availableLang) != null && N.length ? (t(), l("div", l0, [
336
336
  e("div", {
337
337
  class: "select-box flex gap-x-3 text-xs text-[#525B66] cursor-pointer",
338
- onClick: R
338
+ onClick: W
339
339
  }, [
340
- u(v(D1), { class: "w-4" }),
341
- u1(" " + c((V = C.value) == null ? void 0 : V.label) + " ", 1),
342
- e("span", o0, c(_.value ? "▲" : "▼"), 1)
340
+ h(m(D1), { class: "w-4" }),
341
+ u1(" " + c((z = f.value) == null ? void 0 : z.label) + " ", 1),
342
+ e("span", o0, c(b.value ? "▲" : "▼"), 1)
343
343
  ]),
344
- _.value ? (t(), l("div", n0, [
345
- (t(!0), l(F, null, Z((N = a.app) == null ? void 0 : N.availableLang, (o) => {
346
- var U, X;
344
+ b.value ? (t(), l("div", n0, [
345
+ (t(!0), l(R, null, T((A = n.app) == null ? void 0 : A.availableLang, (d) => {
346
+ var a, y;
347
347
  return t(), l("div", {
348
- key: o.label,
349
- class: h(["px-2", { "hover:bg-slate-200 rounded-lg cursor-pointer": o.label !== ((U = C.value) == null ? void 0 : U.label), "text-gray-300": o.label === ((X = C.value) == null ? void 0 : X.label) }]),
348
+ key: d.label,
349
+ class: C(["px-2", { "hover:bg-slate-200 rounded-lg cursor-pointer": d.label !== ((a = f.value) == null ? void 0 : a.label), "text-gray-300": d.label === ((y = f.value) == null ? void 0 : y.label) }]),
350
350
  onClick: (we) => {
351
351
  var Y;
352
- return o.label !== ((Y = C.value) == null ? void 0 : Y.label) && T(o);
352
+ return d.label !== ((Y = f.value) == null ? void 0 : Y.label) && U(d);
353
353
  }
354
- }, c(o.label), 11, a0);
354
+ }, c(d.label), 11, a0);
355
355
  }), 128))
356
356
  ])) : r("", !0)
357
357
  ])) : r("", !0)
358
358
  ], 2),
359
- a.slim ? r("", !0) : (t(), l("hr", r0)),
359
+ n.slim ? r("", !0) : (t(), l("hr", r0)),
360
360
  e("div", {
361
- class: h(["flex", [a.slim ? " grid" : "w-max"]])
361
+ class: C(["flex", [n.slim ? " grid" : "w-max"]])
362
362
  }, [
363
- a.news ? (t(), l("a", {
363
+ n.news ? (t(), l("a", {
364
364
  key: 0,
365
365
  href: "#",
366
- class: h(["text-[#525B66] flex items-center rounded-lg text-sm hover:bg-primary-10-hover hover:text-primary-base transition-all", [(a.slim, "w-[44px] h-[44px]")]]),
367
- onClick: P
366
+ class: C(["text-[#525B66] flex items-center rounded-lg text-sm hover:bg-primary-10-hover hover:text-primary-base transition-all", [(n.slim, "w-[44px] h-[44px]")]]),
367
+ onClick: q
368
368
  }, [
369
369
  e("div", i0, [
370
370
  e("div", c0, [
371
- (t(), x(q(c1), { class: "w-[24px] h-[24px] mx-auto" })),
371
+ (t(), _(Z(c1), { class: "w-[24px] h-[24px] mx-auto" })),
372
372
  i.value > 0 ? (t(), l("span", p0)) : r("", !0),
373
373
  i.value > 0 ? (t(), l("span", d0)) : r("", !0)
374
374
  ]),
375
375
  e("div", u0, [
376
- e("span", h0, c(a.news.menuLabel || "News"), 1)
376
+ e("span", h0, c(n.news.menuLabel || "News"), 1)
377
377
  ])
378
378
  ])
379
379
  ], 2)) : r("", !0),
380
- (z = a.app) != null && z.support ? (t(), l("a", {
380
+ (E = n.app) != null && E.support ? (t(), l("a", {
381
381
  key: 1,
382
- href: (A = a.app) == null ? void 0 : A.support.url,
382
+ href: (H = n.app) == null ? void 0 : H.support.url,
383
383
  target: "_blank",
384
- class: h(["text-[#525B66] flex items-center rounded-lg text-sm hover:bg-primary-10-hover hover:text-primary-base transition-all", [(a.slim, "w-[44px] h-[44px]")]])
384
+ class: C(["text-[#525B66] flex items-center rounded-lg text-sm hover:bg-primary-10-hover hover:text-primary-base transition-all", [(n.slim, "w-[44px] h-[44px]")]])
385
385
  }, [
386
386
  e("div", f0, [
387
387
  e("div", w0, [
388
- (t(), x(q(v(P1)), { class: "w-[24px] h-[24px] mx-auto" }))
388
+ (t(), _(Z(m(P1)), { class: "w-[24px] h-[24px] mx-auto" }))
389
389
  ]),
390
390
  e("div", v0, [
391
- e("span", m0, c(((E = a.app) == null ? void 0 : E.support.label) || "Support"), 1)
391
+ e("span", m0, c(((I = n.app) == null ? void 0 : I.support.label) || "Support"), 1)
392
392
  ])
393
393
  ])
394
394
  ], 10, C0)) : r("", !0)
395
395
  ], 2),
396
396
  e("p", {
397
- class: h([[a.slim ? "hidden" : "w-full"], "text8 pl-3 text-[#979CA9] flex justify-between font-extralight"])
397
+ class: C([[n.slim ? "hidden" : "w-full"], "text8 pl-3 text-[#979CA9] flex justify-between font-extralight"])
398
398
  }, [
399
399
  x0,
400
- e("span", null, c((H = a.app) == null ? void 0 : H.version), 1)
400
+ e("span", null, c((P = n.app) == null ? void 0 : P.version), 1)
401
401
  ], 2)
402
402
  ])
403
403
  ])
@@ -405,8 +405,8 @@ const q1 = (n) => (a1("data-v-57d3d3f4"), n = n(), r1(), n), F1 = { class: "h-fu
405
405
  };
406
406
  }
407
407
  });
408
- const b0 = /* @__PURE__ */ Q(_0, [["__scopeId", "data-v-57d3d3f4"]]);
409
- function y0(n, p) {
408
+ const b0 = /* @__PURE__ */ X(_0, [["__scopeId", "data-v-57d3d3f4"]]);
409
+ function y0(o, p) {
410
410
  return t(), l("svg", {
411
411
  xmlns: "http://www.w3.org/2000/svg",
412
412
  fill: "none",
@@ -422,7 +422,7 @@ function y0(n, p) {
422
422
  })
423
423
  ]);
424
424
  }
425
- function g0(n, p) {
425
+ function g0(o, p) {
426
426
  return t(), l("svg", {
427
427
  xmlns: "http://www.w3.org/2000/svg",
428
428
  fill: "none",
@@ -444,17 +444,17 @@ function g0(n, p) {
444
444
  * @license MIT
445
445
  */
446
446
  var t1;
447
- (function(n) {
448
- n.pop = "pop", n.push = "push";
447
+ (function(o) {
448
+ o.pop = "pop", o.push = "push";
449
449
  })(t1 || (t1 = {}));
450
450
  var s1;
451
- (function(n) {
452
- n.back = "back", n.forward = "forward", n.unknown = "";
451
+ (function(o) {
452
+ o.back = "back", o.forward = "forward", o.unknown = "";
453
453
  })(s1 || (s1 = {}));
454
454
  Symbol(process.env.NODE_ENV !== "production" ? "navigation failure" : "");
455
455
  var l1;
456
- (function(n) {
457
- n[n.aborted = 4] = "aborted", n[n.cancelled = 8] = "cancelled", n[n.duplicated = 16] = "duplicated";
456
+ (function(o) {
457
+ o[o.aborted = 4] = "aborted", o[o.cancelled = 8] = "cancelled", o[o.duplicated = 16] = "duplicated";
458
458
  })(l1 || (l1 = {}));
459
459
  Symbol(process.env.NODE_ENV !== "production" ? "router view location matched" : "");
460
460
  Symbol(process.env.NODE_ENV !== "production" ? "router view depth" : "");
@@ -464,7 +464,7 @@ Symbol(process.env.NODE_ENV !== "production" ? "router view location" : "");
464
464
  function k0() {
465
465
  return h1(L0);
466
466
  }
467
- const $0 = (n) => (a1("data-v-27eb7abf"), n = n(), r1(), n), S0 = { class: "h-full relative" }, O0 = {
467
+ const $0 = (o) => (a1("data-v-6b3e087b"), o = o(), r1(), o), S0 = { class: "h-full relative" }, O0 = {
468
468
  class: "header h-[56px] flex items-center flex-nowrap fixed top-0 left-0 w-full z-50",
469
469
  style: { background: "rgba(250, 250, 250, 0.80)", "backdrop-filter": "blur(5px)" }
470
470
  }, B0 = { class: "p-2 flex-shrink-0" }, j0 = { class: "w-10 h-10 bg-white flex items-center flex-shrink-0" }, M0 = ["src"], V0 = { class: "whitespace-nowrap font-semibold text-xl" }, N0 = { class: "text-xs whitespace-nowrap" }, z0 = { class: "w-full" }, A0 = { class: "w-full flex justify-end pr-3" }, E0 = { class: "flex items-center space-x-3" }, H0 = {
@@ -494,38 +494,38 @@ const $0 = (n) => (a1("data-v-27eb7abf"), n = n(), r1(), n), S0 = { class: "h-fu
494
494
  }, te = {
495
495
  key: 3,
496
496
  class: "text-xs px-2 py-1 rounded-md bg-gray-600 text-white"
497
- }, se = { class: "text-lg font-medium" }, le = { class: "text-sm text-gray-600" }, oe = { key: 0 }, ne = ["src"], ae = { class: "text-sm whitespace-pre-wrap break-words" }, re = { key: 1 }, ie = ["href"], ce = { class: "text-sm flex items-center justify-between mt-1" }, pe = { class: "text-gray-800" }, de = ["href"], ue = { class: "flex items-center space-x-2 text-[#525B66]" }, he = { class: "text-sm" }, Ce = { class: "text8" }, fe = /* @__PURE__ */ J({
497
+ }, se = { class: "text-lg font-medium" }, le = { class: "text-sm text-gray-600" }, oe = { key: 0 }, ne = ["src"], ae = { class: "text-sm whitespace-pre-wrap break-words" }, re = { key: 1 }, ie = ["href"], ce = { class: "text-sm flex items-center justify-between mt-1" }, pe = { class: "text-gray-800" }, de = ["href"], ue = { class: "flex items-center space-x-2 text-[#525B66]" }, he = { class: "text-sm" }, Ce = { class: "text8" }, fe = /* @__PURE__ */ Q({
498
498
  __name: "OneMainLayout",
499
499
  props: b1,
500
500
  emits: ["load-news", "load-tariff"],
501
- setup(n, { emit: p }) {
502
- const m = p;
503
- let f = window.localStorage.getItem("sidebar-slim");
504
- window.document.body.offsetWidth < 1024 && (window.localStorage.getItem("sidebar-slim") == null && window.localStorage.setItem("sidebar-slim", "1"), f = "1");
505
- const i = I(f === "1");
501
+ setup(o, { emit: p }) {
502
+ const x = p;
503
+ let w = window.localStorage.getItem("sidebar-slim");
504
+ window.document.body.offsetWidth < 1024 && (window.localStorage.getItem("sidebar-slim") == null && window.localStorage.setItem("sidebar-slim", "1"), w = "1");
505
+ const i = D(w === "1");
506
506
  C1(i, (s) => {
507
507
  window.localStorage.setItem("sidebar-slim", String(s ? 1 : 0));
508
508
  });
509
- const P = () => {
509
+ const q = () => {
510
510
  window.document.body.offsetWidth < 1024 && !i.value && (i.value = !0);
511
- }, d = I(!1), _ = () => {
512
- d.value = !d.value, d.value && m("load-news");
513
- }, C = I(!1), R = () => {
514
- C.value = !C.value, C.value && m("load-tariff");
515
- }, T = k0(), D = (s) => {
516
- s && s.link ? s.link.startsWith("http") ? window.open(s.link, "_blank", "noopener noreferrer") : T.push({ name: s.link }) : console.warn("Не знайдено viewName");
511
+ }, u = D(!1), b = () => {
512
+ u.value = !u.value, u.value && x("load-news");
513
+ }, f = D(!1), W = () => {
514
+ f.value = !f.value, f.value && x("load-tariff");
515
+ }, U = k0(), F = (s) => {
516
+ s && s.link ? s.link.startsWith("http") ? window.open(s.link, "_blank", "noopener noreferrer") : U.push({ name: s.link }) : console.warn("Не знайдено viewName");
517
517
  };
518
- return (s, w) => {
519
- var W, b, y, g, L, k, $, S, O, B, j, M, V, N, z, A, E, H;
520
- const a = o1("RouterLink");
518
+ return (s, v) => {
519
+ var K, g, L, k, $, S, O, B, j, M, V, N, z, A, E, H, I, P, d;
520
+ const n = o1("RouterLink");
521
521
  return t(), l("div", S0, [
522
522
  e("div", O0, [
523
523
  e("div", B0, [
524
524
  e("button", {
525
- onClick: w[0] || (w[0] = (o) => i.value = !i.value),
525
+ onClick: v[0] || (v[0] = (a) => i.value = !i.value),
526
526
  class: "w-[44px] h-[44px] p-[8px] flex items-center justify-center hover:text-secondary-content"
527
527
  }, [
528
- u(v(y0), { class: "w-[24px] h-[24px]" })
528
+ h(m(y0), { class: "w-[24px] h-[24px]" })
529
529
  ])
530
530
  ]),
531
531
  e("div", j0, [
@@ -536,136 +536,139 @@ const $0 = (n) => (a1("data-v-27eb7abf"), n = n(), r1(), n), S0 = { class: "h-fu
536
536
  alt: "logo"
537
537
  }, null, 8, M0)) : r("", !0)
538
538
  ]),
539
- s.app != null ? (t(), x(a, {
539
+ s.app != null ? (t(), _(n, {
540
540
  key: 0,
541
541
  to: "/",
542
542
  class: "pl-2 max-w-xs"
543
543
  }, {
544
- default: n1(() => [
545
- e("div", V0, c(s.app.name), 1),
546
- e("div", N0, c(s.app.workspace), 1)
547
- ]),
544
+ default: n1(() => {
545
+ var a, y;
546
+ return [
547
+ e("div", V0, c(s.app.name), 1),
548
+ e("div", N0, c((y = (a = s.app) == null ? void 0 : a.workspace) == null ? void 0 : y.name), 1)
549
+ ];
550
+ }),
548
551
  _: 1
549
552
  })) : r("", !0),
550
553
  e("div", z0, [
551
554
  e("div", A0, [
552
555
  e("div", E0, [
553
556
  e1(s.$slots, "before-header-menu", {}, void 0, !0),
554
- (W = s.app) != null && W.help ? (t(), l("div", H0, [
557
+ (K = s.app) != null && K.help ? (t(), l("div", H0, [
555
558
  e("a", {
556
- href: (b = s.app) == null ? void 0 : b.help.url,
559
+ href: (g = s.app) == null ? void 0 : g.help.url,
557
560
  target: "_blank",
558
561
  title: "Help",
559
562
  class: "block btn-touch text-gray-dark"
560
563
  }, [
561
- u(v(g0), { class: "w-6 h-6 text-gray-600" })
564
+ h(m(g0), { class: "w-6 h-6 text-gray-600" })
562
565
  ], 8, I0)
563
566
  ])) : r("", !0),
564
- (y = s.app) != null && y.apps ? (t(), x(m1, {
567
+ (L = s.app) != null && L.apps ? (t(), _(m1, {
565
568
  key: 1,
566
- workspace: s.workspace,
567
- apps: ((g = s.app) == null ? void 0 : g.apps) || [],
568
- "change-label": ((L = s.labels) == null ? void 0 : L.change) || "Change",
569
- "apps-title": ((k = s.labels) == null ? void 0 : k.apps) || "Apps",
570
- "on-app": ($ = s.handlers) == null ? void 0 : $.onApp,
571
- "on-change": (S = s.handlers) == null ? void 0 : S.onChange,
572
- onOpen: (O = s.handlers) == null ? void 0 : O.onBrowse
569
+ workspace: (k = s.app) == null ? void 0 : k.workspace,
570
+ apps: (($ = s.app) == null ? void 0 : $.apps) || [],
571
+ "change-label": ((S = s.labels) == null ? void 0 : S.change) || "Change",
572
+ "apps-title": ((O = s.labels) == null ? void 0 : O.apps) || "Apps",
573
+ "on-app": (B = s.handlers) == null ? void 0 : B.onApp,
574
+ "on-change": (j = s.handlers) == null ? void 0 : j.onChange,
575
+ onOpen: (M = s.handlers) == null ? void 0 : M.onBrowse
573
576
  }, null, 8, ["workspace", "apps", "change-label", "apps-title", "on-app", "on-change", "onOpen"])) : r("", !0),
574
- u(x1, {
577
+ h(x1, {
575
578
  user: s.user,
576
579
  app: s.app,
577
- "account-label": ((B = s.labels) == null ? void 0 : B.account) || "Account",
578
- "logout-label": ((j = s.labels) == null ? void 0 : j.logout) || "Logout",
579
- "version-label": ((M = s.labels) == null ? void 0 : M.version) || "",
580
- "on-account": (V = s.handlers) == null ? void 0 : V.onAccount,
581
- "on-logout": (N = s.handlers) == null ? void 0 : N.onLogout
580
+ "account-label": ((V = s.labels) == null ? void 0 : V.account) || "Account",
581
+ "logout-label": ((N = s.labels) == null ? void 0 : N.logout) || "Logout",
582
+ "version-label": ((z = s.labels) == null ? void 0 : z.version) || "",
583
+ "on-account": (A = s.handlers) == null ? void 0 : A.onAccount,
584
+ "on-logout": (E = s.handlers) == null ? void 0 : E.onLogout
582
585
  }, null, 8, ["user", "app", "account-label", "logout-label", "version-label", "on-account", "on-logout"])
583
586
  ])
584
587
  ])
585
588
  ])
586
589
  ]),
587
590
  e("div", {
588
- class: h(["sidebar absolute top-[56px] left-0 overflow-hidden bg-white lg:bg-transparent transition-all z-50", [i.value ? "w-0 lg:w-[60px]" : "w-full lg:w-60"]]),
591
+ class: C(["sidebar absolute top-[56px] left-0 overflow-hidden bg-white lg:bg-transparent transition-all z-50", [i.value ? "w-0 lg:w-[60px]" : "w-full lg:w-60"]]),
589
592
  style: { height: "calc(100% - 56px)" },
590
- onClick: P
593
+ onClick: q
591
594
  }, [
592
- u(b0, {
595
+ h(b0, {
593
596
  slim: i.value,
594
597
  app: s.app,
595
598
  items: s.sidebarItems,
596
599
  "with-news": s.news != null,
597
- onShowTariff: R,
600
+ onShowTariff: W,
598
601
  news: s.news,
599
- onShowNews: _
602
+ onShowNews: b
600
603
  }, null, 8, ["slim", "app", "items", "with-news", "news"])
601
604
  ], 2),
602
605
  e("div", P0, [
603
606
  e("div", {
604
- class: h(["content transition-all pt-[56px] h-full overflow-auto", [i.value ? "pl-0 lg:pl-[60px]" : "pl-0 lg:pl-60"]])
607
+ class: C(["content transition-all pt-[56px] h-full overflow-auto", [i.value ? "pl-0 lg:pl-[60px]" : "pl-0 lg:pl-60"]])
605
608
  }, [
606
609
  e1(s.$slots, "default", {}, void 0, !0)
607
610
  ], 2)
608
611
  ]),
609
612
  s.news ? (t(), l("div", D0, [
610
- d.value ? (t(), l("div", {
613
+ u.value ? (t(), l("div", {
611
614
  key: 0,
612
615
  class: "fixed top-0 left-0 h-screen w-screen bg-gray-100 bg-opacity-40 z-50",
613
- onClick: w[1] || (w[1] = f1((o) => d.value = !1, ["self"]))
616
+ onClick: v[1] || (v[1] = f1((a) => u.value = !1, ["self"]))
614
617
  })) : r("", !0),
615
618
  e("div", {
616
- class: h(["opacity-100 shadow-lg transition-all fixed top-0 left-0 h-screen overflow-hidden z-50 bg-white", [d.value ? "w-96" : "w-0"]])
619
+ class: C(["opacity-100 shadow-lg transition-all fixed top-0 left-0 h-screen overflow-hidden z-50 bg-white", [u.value ? "w-96" : "w-0"]])
617
620
  }, [
618
- d.value ? (t(), l("div", q0, [
621
+ u.value ? (t(), l("div", q0, [
619
622
  e("div", F0, [
620
623
  e("div", Z0, [
621
- u(c1, { class: "w-10 h-10" }),
624
+ h(c1, { class: "w-10 h-10" }),
622
625
  R0,
623
626
  e("div", null, [
624
- u(G, {
627
+ h(J, {
625
628
  variant: "touch",
626
- icon: v(v1),
627
- onClick: w[2] || (w[2] = (o) => d.value = !1)
629
+ icon: m(v1),
630
+ onClick: v[2] || (v[2] = (a) => u.value = !1)
628
631
  }, null, 8, ["icon"])
629
632
  ])
630
633
  ]),
631
634
  e("div", T0, [
632
- s.news.isLoading && ((z = s.news.items) == null ? void 0 : z.length) === 0 ? (t(), l("div", W0, [
633
- u(w1, { class: "w-6 h-6 text-gray-600 mx-auto" })
634
- ])) : ((A = s.news.items) == null ? void 0 : A.length) === 0 ? (t(), l("div", U0, [
635
+ s.news.isLoading && ((H = s.news.items) == null ? void 0 : H.length) === 0 ? (t(), l("div", W0, [
636
+ h(w1, { class: "w-6 h-6 text-gray-600 mx-auto" })
637
+ ])) : ((I = s.news.items) == null ? void 0 : I.length) === 0 ? (t(), l("div", U0, [
635
638
  e("div", K0, c(s.news.emptyText), 1)
636
- ])) : ((E = s.news.items) == null ? void 0 : E.length) > 0 ? (t(), l("div", G0, [
637
- (t(!0), l(F, null, Z(s.news.items, (o) => (t(), l("div", {
638
- key: o.id,
639
+ ])) : ((P = s.news.items) == null ? void 0 : P.length) > 0 ? (t(), l("div", G0, [
640
+ (t(!0), l(R, null, T(s.news.items, (a) => (t(), l("div", {
641
+ key: a.id,
639
642
  class: "p-3"
640
643
  }, [
641
644
  e("div", J0, [
642
645
  e("div", null, [
643
- o.type ? (t(), l("div", Q0, [
644
- o.type === 10 ? (t(), l("span", X0, "update")) : o.type === 11 ? (t(), l("span", Y0, "warning")) : o.type === 12 ? (t(), l("span", ee, "notice")) : o.type === 13 ? (t(), l("span", te, "ads")) : r("", !0)
646
+ a.type ? (t(), l("div", Q0, [
647
+ a.type === 10 ? (t(), l("span", X0, "update")) : a.type === 11 ? (t(), l("span", Y0, "warning")) : a.type === 12 ? (t(), l("span", ee, "notice")) : a.type === 13 ? (t(), l("span", te, "ads")) : r("", !0)
645
648
  ])) : r("", !0),
646
- e("div", se, c(o.title), 1),
647
- e("div", le, c(o.summary), 1)
649
+ e("div", se, c(a.title), 1),
650
+ e("div", le, c(a.summary), 1)
648
651
  ]),
649
- o.image_url ? (t(), l("div", oe, [
652
+ a.image_url ? (t(), l("div", oe, [
650
653
  e("img", {
651
- src: o.image_url,
654
+ src: a.image_url,
652
655
  alt: "",
653
656
  class: "w-full rounded-md"
654
657
  }, null, 8, ne)
655
658
  ])) : r("", !0),
656
- e("div", ae, c(o.body), 1),
657
- o.video_url ? (t(), l("div", re, [
659
+ e("div", ae, c(a.body), 1),
660
+ a.video_url ? (t(), l("div", re, [
658
661
  e("a", {
659
- href: o.video_url,
662
+ href: a.video_url,
660
663
  target: "_blank",
661
664
  class: "text-blue-600 hover:text-blue-700 px-3 py-2 border rounded-md w-full block"
662
665
  }, c(s.news.openVideoText), 9, ie)
663
666
  ])) : r("", !0),
664
667
  e("div", ce, [
665
- e("span", pe, c(o.published), 1),
666
- o.post_url ? (t(), l("a", {
668
+ e("span", pe, c(a.published), 1),
669
+ a.post_url ? (t(), l("a", {
667
670
  key: 0,
668
- href: o.post_url,
671
+ href: a.post_url,
669
672
  target: "_blank",
670
673
  class: "text-blue-600 hover:text-blue-700 block"
671
674
  }, c(s.news.moreText), 9, de)) : r("", !0)
@@ -678,27 +681,27 @@ const $0 = (n) => (a1("data-v-27eb7abf"), n = n(), r1(), n), S0 = { class: "h-fu
678
681
  ])) : r("", !0)
679
682
  ], 2)
680
683
  ])) : r("", !0),
681
- C.value ? (t(), l("div", {
684
+ f.value ? (t(), l("div", {
682
685
  key: 1,
683
- class: h(["absolute left-[260px] bottom-0", [i.value ? "hidden" : "w-max"]])
686
+ class: C(["absolute left-[260px] bottom-0", [i.value ? "hidden" : "w-max"]])
684
687
  }, [
685
- (t(!0), l(F, null, Z((H = s.app) == null ? void 0 : H.availablePlans, (o) => (t(), l("div", {
686
- key: o.name,
688
+ (t(!0), l(R, null, T((d = s.app) == null ? void 0 : d.availablePlans, (a) => (t(), l("div", {
689
+ key: a.name,
687
690
  class: "ml-3 flex justify-between border rounded-lg p-2 bg-[#F5F5F5] mb-3 w-[240px]"
688
691
  }, [
689
692
  e("div", ue, [
690
- u(v(d1), { class: "w-[24px] h-[24px]" }),
693
+ h(m(d1), { class: "w-[24px] h-[24px]" }),
691
694
  e("div", null, [
692
- e("p", he, c(o.name || "Free"), 1),
693
- e("p", Ce, c(o.title || "Тарифний план"), 1)
695
+ e("p", he, c(a.name || "Free"), 1),
696
+ e("p", Ce, c(a.title || "Тарифний план"), 1)
694
697
  ])
695
698
  ]),
696
699
  e("div", null, [
697
- u(G, {
700
+ h(J, {
698
701
  class: "text-[#525B66] hover:text-[#4089E0]",
699
702
  variant: "touch",
700
- icon: v(p1),
701
- onClick: (U) => D(o)
703
+ icon: m(p1),
704
+ onClick: (y) => F(a)
702
705
  }, null, 8, ["icon", "onClick"])
703
706
  ])
704
707
  ]))), 128))
@@ -707,7 +710,7 @@ const $0 = (n) => (a1("data-v-27eb7abf"), n = n(), r1(), n), S0 = { class: "h-fu
707
710
  };
708
711
  }
709
712
  });
710
- const ge = /* @__PURE__ */ Q(fe, [["__scopeId", "data-v-27eb7abf"]]);
713
+ const ge = /* @__PURE__ */ X(fe, [["__scopeId", "data-v-6b3e087b"]]);
711
714
  export {
712
715
  ge as OneMainLayout,
713
716
  b0 as OneSidebar