@oneb/ui-vue 0.0.56 → 0.0.58

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 { 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";
4
- import { r as v1 } from "../XMarkIcon-51ef0691.js";
5
- import { O as m1, b as x1 } from "../OneBrowserMenu-7507902f.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 { r as i1, O as w1, b as v1 } from "../OneBrowserMenu-cd45e2b1.js";
4
+ import { _ as J, S as m1 } from "../index-72d69e4e.js";
5
+ import { r as x1 } from "../XMarkIcon-51ef0691.js";
6
6
  import "../common/index.js";
7
- const i1 = {
7
+ const c1 = {
8
8
  items: {
9
9
  required: !0,
10
10
  type: Array
@@ -59,7 +59,7 @@ const i1 = {
59
59
  default: !0
60
60
  }
61
61
  }, b1 = {
62
- sidebarItems: i1.items,
62
+ sidebarItems: c1.items,
63
63
  logoSrc: {
64
64
  type: String
65
65
  },
@@ -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]" }, V1 = /* @__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 d = o, x = G(() => d.href != null ? d.href : !1), w = G(() => d.route != null ? d.route : d.routeName != null ? { name: d.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)
@@ -142,7 +142,7 @@ const i1 = {
142
142
  }, 8, ["to", "active-class", "exact-active-class", "exact", "class"]));
143
143
  };
144
144
  }
145
- }), V1 = {}, N1 = {
145
+ }), M1 = {}, N1 = {
146
146
  xmlns: "http://www.w3.org/2000/svg",
147
147
  width: "24",
148
148
  height: "24",
@@ -164,11 +164,11 @@ const i1 = {
164
164
  A1,
165
165
  E1
166
166
  ];
167
- function I1(n, p) {
167
+ function I1(o, d) {
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 p1 = /* @__PURE__ */ X(M1, [["render", I1]]);
171
+ function P1(o, d) {
172
172
  return t(), l("svg", {
173
173
  xmlns: "http://www.w3.org/2000/svg",
174
174
  fill: "none",
@@ -184,23 +184,7 @@ function P1(n, p) {
184
184
  })
185
185
  ]);
186
186
  }
187
- function p1(n, p) {
188
- return t(), l("svg", {
189
- xmlns: "http://www.w3.org/2000/svg",
190
- fill: "none",
191
- viewBox: "0 0 24 24",
192
- "stroke-width": "1.8",
193
- stroke: "currentColor",
194
- "aria-hidden": "true"
195
- }, [
196
- e("path", {
197
- "stroke-linecap": "round",
198
- "stroke-linejoin": "round",
199
- d: "M8.25 4.5l7.5 7.5-7.5 7.5"
200
- })
201
- ]);
202
- }
203
- function D1(n, p) {
187
+ function D1(o, d) {
204
188
  return t(), l("svg", {
205
189
  xmlns: "http://www.w3.org/2000/svg",
206
190
  fill: "none",
@@ -216,7 +200,7 @@ function D1(n, p) {
216
200
  })
217
201
  ]);
218
202
  }
219
- function d1(n, p) {
203
+ function d1(o, d) {
220
204
  return t(), l("svg", {
221
205
  xmlns: "http://www.w3.org/2000/svg",
222
206
  fill: "none",
@@ -237,7 +221,7 @@ function d1(n, p) {
237
221
  })
238
222
  ]);
239
223
  }
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 = {
224
+ 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
225
  key: 0,
242
226
  class: "ml-3 flex justify-between border rounded-lg p-2 bg-[#F5F5F5] mb-3 w-[220px]"
243
227
  }, 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 +239,149 @@ const q1 = (n) => (a1("data-v-57d3d3f4"), n = n(), r1(), n), F1 = { class: "h-fu
255
239
  }, d0 = {
256
240
  key: 1,
257
241
  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({
242
+ }, 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
243
  __name: "OneSidebar",
260
- props: i1,
244
+ props: c1,
261
245
  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;
246
+ setup(o, { emit: d }) {
247
+ var F, s, v;
248
+ const x = d, w = o, i = G(() => {
249
+ var n;
250
+ return ((n = w.news) == null ? void 0 : n.unseenCount) || 0;
251
+ }), q = () => {
252
+ x("show-news");
253
+ }, u = () => {
254
+ x("show-tariff");
255
+ }, 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 = () => {
256
+ b.value = !b.value;
257
+ }, U = (n) => {
258
+ f.value = n, b.value = !1;
275
259
  };
276
- return (a, W) => {
277
- var b, y, g, L, k, $, S, O, B, j, M, V, N, z, A, E, H;
260
+ return (n, K) => {
261
+ var g, L, k, $, S, O, B, j, V, M, N, z, A, E, H, I, P;
278
262
  return t(), l("div", F1, [
279
263
  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
264
+ (t(!0), l(R, null, T(n.items, (p) => (t(), _(V1, {
265
+ key: p.label,
266
+ icon: p.icon,
267
+ label: p.label,
268
+ route: p.route,
269
+ href: p.href,
270
+ "route-name": p.routeName,
271
+ exact: p.exact || !1,
272
+ slim: n.slim
289
273
  }, null, 8, ["icon", "label", "route", "href", "route-name", "exact", "slim"]))), 128)),
290
274
  e("div", R1, [
291
275
  e("div", {
292
- class: h([a.slim ? "hidden" : "w-max"])
276
+ class: C([n.slim ? "hidden" : "w-max"])
293
277
  }, [
294
- (b = a.app) != null && b.selectedPlan ? (t(), l("div", T1, [
278
+ (g = n.app) != null && g.selectedPlan ? (t(), l("div", T1, [
295
279
  e("div", W1, [
296
- u(v(d1), { class: "w-[24px] h-[24px]" }),
280
+ h(m(d1), { class: "w-[24px] h-[24px]" }),
297
281
  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)
282
+ e("p", U1, c(((L = n.app) == null ? void 0 : L.selectedPlan.name) || "Free"), 1),
283
+ e("p", K1, c(((k = n.app) == null ? void 0 : k.selectedPlan.title) || "Тарифний план"), 1)
300
284
  ])
301
285
  ]),
302
286
  e("div", null, [
303
- u(G, {
287
+ h(J, {
304
288
  class: "text-[#525B66] hover:text-[#4089E0]",
305
289
  variant: "touch",
306
- icon: v(p1),
307
- onClick: d
290
+ icon: m(i1),
291
+ onClick: u
308
292
  }, null, 8, ["icon"])
309
293
  ])
310
294
  ])) : r("", !0),
311
- (L = a.app) != null && L.terms ? (t(), l("a", {
295
+ ($ = n.app) != null && $.terms ? (t(), l("a", {
312
296
  key: 1,
313
- href: (k = a.app) == null ? void 0 : k.terms.url,
297
+ href: (S = n.app) == null ? void 0 : S.terms.url,
314
298
  target: "_blank",
315
299
  class: "ml-3 flex items-center rounded-lg text-xs hover:underline font-extralight"
316
300
  }, [
317
301
  e("div", J1, [
318
302
  e("div", Q1, [
319
- e("span", X1, c((($ = a.app) == null ? void 0 : $.terms.label) || "Terms"), 1)
303
+ e("span", X1, c(((O = n.app) == null ? void 0 : O.terms.label) || "Terms"), 1)
320
304
  ])
321
305
  ])
322
306
  ], 8, G1)) : r("", !0),
323
- (S = a.app) != null && S.offer ? (t(), l("a", {
307
+ (B = n.app) != null && B.offer ? (t(), l("a", {
324
308
  key: 2,
325
- href: (O = a.app) == null ? void 0 : O.offer.url,
309
+ href: (j = n.app) == null ? void 0 : j.offer.url,
326
310
  target: "_blank",
327
311
  class: "ml-3 flex items-center rounded-lg text-xs hover:underline text-[#525B66] font-extralight"
328
312
  }, [
329
313
  e("div", e0, [
330
314
  e("div", t0, [
331
- e("span", s0, c(((B = a.app) == null ? void 0 : B.offer.label) || "Offert"), 1)
315
+ e("span", s0, c(((V = n.app) == null ? void 0 : V.offer.label) || "Offert"), 1)
332
316
  ])
333
317
  ])
334
318
  ], 8, Y1)) : r("", !0),
335
- (M = (j = a.app) == null ? void 0 : j.availableLang) != null && M.length ? (t(), l("div", l0, [
319
+ (N = (M = n.app) == null ? void 0 : M.availableLang) != null && N.length ? (t(), l("div", l0, [
336
320
  e("div", {
337
321
  class: "select-box flex gap-x-3 text-xs text-[#525B66] cursor-pointer",
338
- onClick: R
322
+ onClick: W
339
323
  }, [
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)
324
+ h(m(D1), { class: "w-4" }),
325
+ u1(" " + c((z = f.value) == null ? void 0 : z.label) + " ", 1),
326
+ e("span", o0, c(b.value ? "▲" : "▼"), 1)
343
327
  ]),
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;
328
+ b.value ? (t(), l("div", n0, [
329
+ (t(!0), l(R, null, T((A = n.app) == null ? void 0 : A.availableLang, (p) => {
330
+ var a, y;
347
331
  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) }]),
332
+ key: p.label,
333
+ class: C(["px-2", { "hover:bg-slate-200 rounded-lg cursor-pointer": p.label !== ((a = f.value) == null ? void 0 : a.label), "text-gray-300": p.label === ((y = f.value) == null ? void 0 : y.label) }]),
350
334
  onClick: (we) => {
351
335
  var Y;
352
- return o.label !== ((Y = C.value) == null ? void 0 : Y.label) && T(o);
336
+ return p.label !== ((Y = f.value) == null ? void 0 : Y.label) && U(p);
353
337
  }
354
- }, c(o.label), 11, a0);
338
+ }, c(p.label), 11, a0);
355
339
  }), 128))
356
340
  ])) : r("", !0)
357
341
  ])) : r("", !0)
358
342
  ], 2),
359
- a.slim ? r("", !0) : (t(), l("hr", r0)),
343
+ n.slim ? r("", !0) : (t(), l("hr", r0)),
360
344
  e("div", {
361
- class: h(["flex", [a.slim ? " grid" : "w-max"]])
345
+ class: C(["flex", [n.slim ? " grid" : "w-max"]])
362
346
  }, [
363
- a.news ? (t(), l("a", {
347
+ n.news ? (t(), l("a", {
364
348
  key: 0,
365
349
  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
350
+ 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]")]]),
351
+ onClick: q
368
352
  }, [
369
353
  e("div", i0, [
370
354
  e("div", c0, [
371
- (t(), x(q(c1), { class: "w-[24px] h-[24px] mx-auto" })),
355
+ (t(), _(Z(p1), { class: "w-[24px] h-[24px] mx-auto" })),
372
356
  i.value > 0 ? (t(), l("span", p0)) : r("", !0),
373
357
  i.value > 0 ? (t(), l("span", d0)) : r("", !0)
374
358
  ]),
375
359
  e("div", u0, [
376
- e("span", h0, c(a.news.menuLabel || "News"), 1)
360
+ e("span", h0, c(n.news.menuLabel || "News"), 1)
377
361
  ])
378
362
  ])
379
363
  ], 2)) : r("", !0),
380
- (z = a.app) != null && z.support ? (t(), l("a", {
364
+ (E = n.app) != null && E.support ? (t(), l("a", {
381
365
  key: 1,
382
- href: (A = a.app) == null ? void 0 : A.support.url,
366
+ href: (H = n.app) == null ? void 0 : H.support.url,
383
367
  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]")]])
368
+ 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
369
  }, [
386
370
  e("div", f0, [
387
371
  e("div", w0, [
388
- (t(), x(q(v(P1)), { class: "w-[24px] h-[24px] mx-auto" }))
372
+ (t(), _(Z(m(P1)), { class: "w-[24px] h-[24px] mx-auto" }))
389
373
  ]),
390
374
  e("div", v0, [
391
- e("span", m0, c(((E = a.app) == null ? void 0 : E.support.label) || "Support"), 1)
375
+ e("span", m0, c(((I = n.app) == null ? void 0 : I.support.label) || "Support"), 1)
392
376
  ])
393
377
  ])
394
378
  ], 10, C0)) : r("", !0)
395
379
  ], 2),
396
380
  e("p", {
397
- class: h([[a.slim ? "hidden" : "w-full"], "text8 pl-3 text-[#979CA9] flex justify-between font-extralight"])
381
+ class: C([[n.slim ? "hidden" : "w-full"], "text8 pl-3 text-[#979CA9] flex justify-between font-extralight"])
398
382
  }, [
399
383
  x0,
400
- e("span", null, c((H = a.app) == null ? void 0 : H.version), 1)
384
+ e("span", null, c((P = n.app) == null ? void 0 : P.version), 1)
401
385
  ], 2)
402
386
  ])
403
387
  ])
@@ -405,8 +389,8 @@ const q1 = (n) => (a1("data-v-57d3d3f4"), n = n(), r1(), n), F1 = { class: "h-fu
405
389
  };
406
390
  }
407
391
  });
408
- const b0 = /* @__PURE__ */ Q(_0, [["__scopeId", "data-v-57d3d3f4"]]);
409
- function y0(n, p) {
392
+ const b0 = /* @__PURE__ */ X(_0, [["__scopeId", "data-v-57d3d3f4"]]);
393
+ function y0(o, d) {
410
394
  return t(), l("svg", {
411
395
  xmlns: "http://www.w3.org/2000/svg",
412
396
  fill: "none",
@@ -422,7 +406,7 @@ function y0(n, p) {
422
406
  })
423
407
  ]);
424
408
  }
425
- function g0(n, p) {
409
+ function g0(o, d) {
426
410
  return t(), l("svg", {
427
411
  xmlns: "http://www.w3.org/2000/svg",
428
412
  fill: "none",
@@ -444,17 +428,17 @@ function g0(n, p) {
444
428
  * @license MIT
445
429
  */
446
430
  var t1;
447
- (function(n) {
448
- n.pop = "pop", n.push = "push";
431
+ (function(o) {
432
+ o.pop = "pop", o.push = "push";
449
433
  })(t1 || (t1 = {}));
450
434
  var s1;
451
- (function(n) {
452
- n.back = "back", n.forward = "forward", n.unknown = "";
435
+ (function(o) {
436
+ o.back = "back", o.forward = "forward", o.unknown = "";
453
437
  })(s1 || (s1 = {}));
454
438
  Symbol(process.env.NODE_ENV !== "production" ? "navigation failure" : "");
455
439
  var l1;
456
- (function(n) {
457
- n[n.aborted = 4] = "aborted", n[n.cancelled = 8] = "cancelled", n[n.duplicated = 16] = "duplicated";
440
+ (function(o) {
441
+ o[o.aborted = 4] = "aborted", o[o.cancelled = 8] = "cancelled", o[o.duplicated = 16] = "duplicated";
458
442
  })(l1 || (l1 = {}));
459
443
  Symbol(process.env.NODE_ENV !== "production" ? "router view location matched" : "");
460
444
  Symbol(process.env.NODE_ENV !== "production" ? "router view depth" : "");
@@ -464,10 +448,10 @@ Symbol(process.env.NODE_ENV !== "production" ? "router view location" : "");
464
448
  function k0() {
465
449
  return h1(L0);
466
450
  }
467
- const $0 = (n) => (a1("data-v-27eb7abf"), n = n(), r1(), n), S0 = { class: "h-full relative" }, O0 = {
451
+ const $0 = (o) => (a1("data-v-6b3e087b"), o = o(), r1(), o), S0 = { class: "h-full relative" }, O0 = {
468
452
  class: "header h-[56px] flex items-center flex-nowrap fixed top-0 left-0 w-full z-50",
469
453
  style: { background: "rgba(250, 250, 250, 0.80)", "backdrop-filter": "blur(5px)" }
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 = {
454
+ }, B0 = { class: "p-2 flex-shrink-0" }, j0 = { class: "w-10 h-10 bg-white flex items-center flex-shrink-0" }, V0 = ["src"], M0 = { 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 = {
471
455
  key: 0,
472
456
  class: "sm:block flex-shrink-0 hidden"
473
457
  }, I0 = ["href"], P0 = { class: "body w-full h-full" }, D0 = { key: 0 }, q0 = {
@@ -494,38 +478,38 @@ const $0 = (n) => (a1("data-v-27eb7abf"), n = n(), r1(), n), S0 = { class: "h-fu
494
478
  }, te = {
495
479
  key: 3,
496
480
  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({
481
+ }, 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
482
  __name: "OneMainLayout",
499
483
  props: b1,
500
484
  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");
485
+ setup(o, { emit: d }) {
486
+ const x = d;
487
+ let w = window.localStorage.getItem("sidebar-slim");
488
+ window.document.body.offsetWidth < 1024 && (window.localStorage.getItem("sidebar-slim") == null && window.localStorage.setItem("sidebar-slim", "1"), w = "1");
489
+ const i = D(w === "1");
506
490
  C1(i, (s) => {
507
491
  window.localStorage.setItem("sidebar-slim", String(s ? 1 : 0));
508
492
  });
509
- const P = () => {
493
+ const q = () => {
510
494
  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");
495
+ }, u = D(!1), b = () => {
496
+ u.value = !u.value, u.value && x("load-news");
497
+ }, f = D(!1), W = () => {
498
+ f.value = !f.value, f.value && x("load-tariff");
499
+ }, U = k0(), F = (s) => {
500
+ s && s.link ? s.link.startsWith("http") ? window.open(s.link, "_blank", "noopener noreferrer") : U.push({ name: s.link }) : console.warn("Не знайдено viewName");
517
501
  };
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");
502
+ return (s, v) => {
503
+ var K, g, L, k, $, S, O, B, j, V, M, N, z, A, E, H, I, P, p;
504
+ const n = o1("RouterLink");
521
505
  return t(), l("div", S0, [
522
506
  e("div", O0, [
523
507
  e("div", B0, [
524
508
  e("button", {
525
- onClick: w[0] || (w[0] = (o) => i.value = !i.value),
509
+ onClick: v[0] || (v[0] = (a) => i.value = !i.value),
526
510
  class: "w-[44px] h-[44px] p-[8px] flex items-center justify-center hover:text-secondary-content"
527
511
  }, [
528
- u(v(y0), { class: "w-[24px] h-[24px]" })
512
+ h(m(y0), { class: "w-[24px] h-[24px]" })
529
513
  ])
530
514
  ]),
531
515
  e("div", j0, [
@@ -534,138 +518,141 @@ const $0 = (n) => (a1("data-v-27eb7abf"), n = n(), r1(), n), S0 = { class: "h-fu
534
518
  src: s.logoSrc,
535
519
  class: "w-8 h-8 mx-auto",
536
520
  alt: "logo"
537
- }, null, 8, M0)) : r("", !0)
521
+ }, null, 8, V0)) : r("", !0)
538
522
  ]),
539
- s.app != null ? (t(), x(a, {
523
+ s.app != null ? (t(), _(n, {
540
524
  key: 0,
541
525
  to: "/",
542
526
  class: "pl-2 max-w-xs"
543
527
  }, {
544
- default: n1(() => [
545
- e("div", V0, c(s.app.name), 1),
546
- e("div", N0, c(s.app.workspace), 1)
547
- ]),
528
+ default: n1(() => {
529
+ var a, y;
530
+ return [
531
+ e("div", M0, c(s.app.name), 1),
532
+ e("div", N0, c((y = (a = s.app) == null ? void 0 : a.workspace) == null ? void 0 : y.name), 1)
533
+ ];
534
+ }),
548
535
  _: 1
549
536
  })) : r("", !0),
550
537
  e("div", z0, [
551
538
  e("div", A0, [
552
539
  e("div", E0, [
553
540
  e1(s.$slots, "before-header-menu", {}, void 0, !0),
554
- (W = s.app) != null && W.help ? (t(), l("div", H0, [
541
+ (K = s.app) != null && K.help ? (t(), l("div", H0, [
555
542
  e("a", {
556
- href: (b = s.app) == null ? void 0 : b.help.url,
543
+ href: (g = s.app) == null ? void 0 : g.help.url,
557
544
  target: "_blank",
558
545
  title: "Help",
559
546
  class: "block btn-touch text-gray-dark"
560
547
  }, [
561
- u(v(g0), { class: "w-6 h-6 text-gray-600" })
548
+ h(m(g0), { class: "w-6 h-6 text-gray-600" })
562
549
  ], 8, I0)
563
550
  ])) : r("", !0),
564
- (y = s.app) != null && y.apps ? (t(), x(m1, {
551
+ (L = s.app) != null && L.apps ? (t(), _(w1, {
565
552
  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
553
+ workspace: (k = s.app) == null ? void 0 : k.workspace,
554
+ apps: (($ = s.app) == null ? void 0 : $.apps) || [],
555
+ "change-label": ((S = s.labels) == null ? void 0 : S.change) || "Change",
556
+ "apps-title": ((O = s.labels) == null ? void 0 : O.apps) || "Apps",
557
+ "on-app": (B = s.handlers) == null ? void 0 : B.onApp,
558
+ "on-change": (j = s.handlers) == null ? void 0 : j.onChange,
559
+ onOpen: (V = s.handlers) == null ? void 0 : V.onBrowse
573
560
  }, null, 8, ["workspace", "apps", "change-label", "apps-title", "on-app", "on-change", "onOpen"])) : r("", !0),
574
- u(x1, {
561
+ h(v1, {
575
562
  user: s.user,
576
563
  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
564
+ "account-label": ((M = s.labels) == null ? void 0 : M.account) || "Account",
565
+ "logout-label": ((N = s.labels) == null ? void 0 : N.logout) || "Logout",
566
+ "version-label": ((z = s.labels) == null ? void 0 : z.version) || "",
567
+ "on-account": (A = s.handlers) == null ? void 0 : A.onAccount,
568
+ "on-logout": (E = s.handlers) == null ? void 0 : E.onLogout
582
569
  }, null, 8, ["user", "app", "account-label", "logout-label", "version-label", "on-account", "on-logout"])
583
570
  ])
584
571
  ])
585
572
  ])
586
573
  ]),
587
574
  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"]]),
575
+ 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
576
  style: { height: "calc(100% - 56px)" },
590
- onClick: P
577
+ onClick: q
591
578
  }, [
592
- u(b0, {
579
+ h(b0, {
593
580
  slim: i.value,
594
581
  app: s.app,
595
582
  items: s.sidebarItems,
596
583
  "with-news": s.news != null,
597
- onShowTariff: R,
584
+ onShowTariff: W,
598
585
  news: s.news,
599
- onShowNews: _
586
+ onShowNews: b
600
587
  }, null, 8, ["slim", "app", "items", "with-news", "news"])
601
588
  ], 2),
602
589
  e("div", P0, [
603
590
  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"]])
591
+ class: C(["content transition-all pt-[56px] h-full overflow-auto", [i.value ? "pl-0 lg:pl-[60px]" : "pl-0 lg:pl-60"]])
605
592
  }, [
606
593
  e1(s.$slots, "default", {}, void 0, !0)
607
594
  ], 2)
608
595
  ]),
609
596
  s.news ? (t(), l("div", D0, [
610
- d.value ? (t(), l("div", {
597
+ u.value ? (t(), l("div", {
611
598
  key: 0,
612
599
  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"]))
600
+ onClick: v[1] || (v[1] = f1((a) => u.value = !1, ["self"]))
614
601
  })) : r("", !0),
615
602
  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"]])
603
+ 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
604
  }, [
618
- d.value ? (t(), l("div", q0, [
605
+ u.value ? (t(), l("div", q0, [
619
606
  e("div", F0, [
620
607
  e("div", Z0, [
621
- u(c1, { class: "w-10 h-10" }),
608
+ h(p1, { class: "w-10 h-10" }),
622
609
  R0,
623
610
  e("div", null, [
624
- u(G, {
611
+ h(J, {
625
612
  variant: "touch",
626
- icon: v(v1),
627
- onClick: w[2] || (w[2] = (o) => d.value = !1)
613
+ icon: m(x1),
614
+ onClick: v[2] || (v[2] = (a) => u.value = !1)
628
615
  }, null, 8, ["icon"])
629
616
  ])
630
617
  ]),
631
618
  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, [
619
+ s.news.isLoading && ((H = s.news.items) == null ? void 0 : H.length) === 0 ? (t(), l("div", W0, [
620
+ h(m1, { class: "w-6 h-6 text-gray-600 mx-auto" })
621
+ ])) : ((I = s.news.items) == null ? void 0 : I.length) === 0 ? (t(), l("div", U0, [
635
622
  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,
623
+ ])) : ((P = s.news.items) == null ? void 0 : P.length) > 0 ? (t(), l("div", G0, [
624
+ (t(!0), l(R, null, T(s.news.items, (a) => (t(), l("div", {
625
+ key: a.id,
639
626
  class: "p-3"
640
627
  }, [
641
628
  e("div", J0, [
642
629
  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)
630
+ a.type ? (t(), l("div", Q0, [
631
+ 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
632
  ])) : r("", !0),
646
- e("div", se, c(o.title), 1),
647
- e("div", le, c(o.summary), 1)
633
+ e("div", se, c(a.title), 1),
634
+ e("div", le, c(a.summary), 1)
648
635
  ]),
649
- o.image_url ? (t(), l("div", oe, [
636
+ a.image_url ? (t(), l("div", oe, [
650
637
  e("img", {
651
- src: o.image_url,
638
+ src: a.image_url,
652
639
  alt: "",
653
640
  class: "w-full rounded-md"
654
641
  }, null, 8, ne)
655
642
  ])) : r("", !0),
656
- e("div", ae, c(o.body), 1),
657
- o.video_url ? (t(), l("div", re, [
643
+ e("div", ae, c(a.body), 1),
644
+ a.video_url ? (t(), l("div", re, [
658
645
  e("a", {
659
- href: o.video_url,
646
+ href: a.video_url,
660
647
  target: "_blank",
661
648
  class: "text-blue-600 hover:text-blue-700 px-3 py-2 border rounded-md w-full block"
662
649
  }, c(s.news.openVideoText), 9, ie)
663
650
  ])) : r("", !0),
664
651
  e("div", ce, [
665
- e("span", pe, c(o.published), 1),
666
- o.post_url ? (t(), l("a", {
652
+ e("span", pe, c(a.published), 1),
653
+ a.post_url ? (t(), l("a", {
667
654
  key: 0,
668
- href: o.post_url,
655
+ href: a.post_url,
669
656
  target: "_blank",
670
657
  class: "text-blue-600 hover:text-blue-700 block"
671
658
  }, c(s.news.moreText), 9, de)) : r("", !0)
@@ -678,27 +665,27 @@ const $0 = (n) => (a1("data-v-27eb7abf"), n = n(), r1(), n), S0 = { class: "h-fu
678
665
  ])) : r("", !0)
679
666
  ], 2)
680
667
  ])) : r("", !0),
681
- C.value ? (t(), l("div", {
668
+ f.value ? (t(), l("div", {
682
669
  key: 1,
683
- class: h(["absolute left-[260px] bottom-0", [i.value ? "hidden" : "w-max"]])
670
+ class: C(["absolute left-[260px] bottom-0", [i.value ? "hidden" : "w-max"]])
684
671
  }, [
685
- (t(!0), l(F, null, Z((H = s.app) == null ? void 0 : H.availablePlans, (o) => (t(), l("div", {
686
- key: o.name,
672
+ (t(!0), l(R, null, T((p = s.app) == null ? void 0 : p.availablePlans, (a) => (t(), l("div", {
673
+ key: a.name,
687
674
  class: "ml-3 flex justify-between border rounded-lg p-2 bg-[#F5F5F5] mb-3 w-[240px]"
688
675
  }, [
689
676
  e("div", ue, [
690
- u(v(d1), { class: "w-[24px] h-[24px]" }),
677
+ h(m(d1), { class: "w-[24px] h-[24px]" }),
691
678
  e("div", null, [
692
- e("p", he, c(o.name || "Free"), 1),
693
- e("p", Ce, c(o.title || "Тарифний план"), 1)
679
+ e("p", he, c(a.name || "Free"), 1),
680
+ e("p", Ce, c(a.title || "Тарифний план"), 1)
694
681
  ])
695
682
  ]),
696
683
  e("div", null, [
697
- u(G, {
684
+ h(J, {
698
685
  class: "text-[#525B66] hover:text-[#4089E0]",
699
686
  variant: "touch",
700
- icon: v(p1),
701
- onClick: (U) => D(o)
687
+ icon: m(i1),
688
+ onClick: (y) => F(a)
702
689
  }, null, 8, ["icon", "onClick"])
703
690
  ])
704
691
  ]))), 128))
@@ -707,7 +694,7 @@ const $0 = (n) => (a1("data-v-27eb7abf"), n = n(), r1(), n), S0 = { class: "h-fu
707
694
  };
708
695
  }
709
696
  });
710
- const ge = /* @__PURE__ */ Q(fe, [["__scopeId", "data-v-27eb7abf"]]);
697
+ const ge = /* @__PURE__ */ X(fe, [["__scopeId", "data-v-6b3e087b"]]);
711
698
  export {
712
699
  ge as OneMainLayout,
713
700
  b0 as OneSidebar