@oneb/ui-vue 0.1.28 → 0.1.30

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,4 +1,4 @@
1
- import { defineComponent as B, ref as j, provide as Y, computed as F, openBlock as t, createElementBlock as o, renderSlot as N, normalizeProps as W, guardReactiveProps as U, createCommentVNode as h, createVNode as g, Transition as Z, withCtx as I, normalizeClass as z, toDisplayString as c, inject as ee, withModifiers as te, createBlock as L, resolveDynamicComponent as P, createElementVNode as e, Fragment as $, renderList as A, mergeProps as oe, unref as C } from "vue";
1
+ import { defineComponent as B, ref as j, provide as Y, computed as F, openBlock as t, createElementBlock as o, renderSlot as N, normalizeProps as W, guardReactiveProps as U, createCommentVNode as h, createVNode as g, Transition as Z, withCtx as I, normalizeClass as z, toDisplayString as a, inject as ee, withModifiers as te, createBlock as L, resolveDynamicComponent as P, createElementVNode as e, Fragment as $, renderList as A, mergeProps as oe, unref as C } from "vue";
2
2
  import { OneAvatar as M } from "./common/index.js";
3
3
  import { r as J } from "./XMarkIcon-51ef0691.js";
4
4
  import { _ as ne } from "./index-f8afb6b6.js";
@@ -30,8 +30,8 @@ const se = {
30
30
  props: se,
31
31
  emits: ["open", "close"],
32
32
  setup(f, { emit: u }) {
33
- const v = j(!1), d = j(null), a = u, l = f, p = () => {
34
- v.value = !v.value, v.value ? a("open") : a("close");
33
+ const v = j(!1), d = j(null), c = u, r = f, p = () => {
34
+ v.value = !v.value, v.value ? c("open") : c("close");
35
35
  };
36
36
  Y("OneDropdown", {
37
37
  onToggle: p
@@ -45,7 +45,7 @@ const se = {
45
45
  "py-1 shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none",
46
46
  "overflow-auto max-h-[540px] min-w-[150px] max-w-[540px]"
47
47
  ];
48
- return s.value.startsWith("up") ? n.push("bottom-1 mb-10") : s.value.startsWith("down") && n.push("top-1 mt-10"), l.stick === "right" ? n.push("right-0") : l.stick === "left" && n.push("left-0"), n;
48
+ return s.value.startsWith("up") ? n.push("bottom-1 mb-10") : s.value.startsWith("down") && n.push("top-1 mt-10"), r.stick === "right" ? n.push("right-0") : r.stick === "left" && n.push("left-0"), n;
49
49
  });
50
50
  return (n, w) => (t(), o("div", {
51
51
  class: "relative inline-block",
@@ -75,7 +75,7 @@ const se = {
75
75
  "aria-orientation": "vertical",
76
76
  tabindex: "-1"
77
77
  }, [
78
- n.title ? (t(), o("div", ie, c(n.title), 1)) : h("", !0),
78
+ n.title ? (t(), o("div", ie, a(n.title), 1)) : h("", !0),
79
79
  N(n.$slots, "menu", W(U({ onToggle: p })))
80
80
  ], 2)) : h("", !0)
81
81
  ]),
@@ -88,21 +88,21 @@ const se = {
88
88
  props: re,
89
89
  emits: ["click"],
90
90
  setup(f, { emit: u }) {
91
- const v = u, d = f, a = ee("OneDropdown"), l = () => {
92
- a !== void 0 && a.onToggle(), v("click");
91
+ const v = u, d = f, c = ee("OneDropdown"), r = () => {
92
+ c !== void 0 && c.onToggle(), v("click");
93
93
  }, p = F(() => {
94
94
  const s = [];
95
95
  return d.variant === "secondary" ? s.push("text-secondary-content hover:bg-secondary-body-hover") : d.variant === "danger" ? s.push("text-danger-content hover:bg-danger-10") : d.variant === "warning" ? s.push("text-warning-content hover:bg-warning-10") : d.variant === "info" ? s.push("text-info-content hover:bg-info-10") : s.push("hover:bg-secondary-body-hover"), s;
96
96
  });
97
97
  return (s, x) => (t(), o("button", {
98
98
  class: z(["px-3 py-1.5 flex items-center space-x-3 w-full whitespace-nowrap", p.value]),
99
- onClick: te(l, ["prevent"])
99
+ onClick: te(r, ["prevent"])
100
100
  }, [
101
101
  s.icon ? (t(), L(P(s.icon), {
102
102
  key: 0,
103
103
  class: "w-4 h-4"
104
104
  })) : h("", !0),
105
- e("span", null, c(s.label), 1)
105
+ e("span", null, a(s.label), 1)
106
106
  ], 2));
107
107
  }
108
108
  });
@@ -196,8 +196,8 @@ const ue = {
196
196
  props: ue,
197
197
  setup(f) {
198
198
  const u = f, v = F(() => {
199
- var l;
200
- return (l = u.menu) == null ? void 0 : l.map((p) => {
199
+ var r;
200
+ return (r = u.menu) == null ? void 0 : r.map((p) => {
201
201
  let s = { label: p.label };
202
202
  p.icon != null && (s = { ...s, icon: p.icon });
203
203
  const x = typeof p.click == "function" ? p.click : () => {
@@ -210,10 +210,10 @@ const ue = {
210
210
  });
211
211
  }), d = () => {
212
212
  typeof u.onAccount == "function" && u.onAccount();
213
- }, a = () => {
213
+ }, c = () => {
214
214
  typeof u.onLogout == "function" && u.onLogout();
215
215
  };
216
- return (l, p) => (t(), L(ce, { stick: "right" }, {
216
+ return (r, p) => (t(), L(ce, { stick: "right" }, {
217
217
  button: I(({ onToggle: s, isExpanded: x }) => {
218
218
  var n, w;
219
219
  return [
@@ -222,9 +222,9 @@ const ue = {
222
222
  class: z(["p-1 rounded-full hover:bg-secondary-10", [x ? "bg-secondary-25" : ""]])
223
223
  }, [
224
224
  g(M, {
225
- text: ((n = l.user) == null ? void 0 : n.name) || "",
226
- size: l.iconSize,
227
- src: (w = l.user) == null ? void 0 : w.photo_url,
225
+ text: ((n = r.user) == null ? void 0 : n.name) || "",
226
+ size: r.iconSize,
227
+ src: (w = r.user) == null ? void 0 : w.photo_url,
228
228
  rounded: !0
229
229
  }, null, 8, ["text", "size", "src"])
230
230
  ], 10, he)
@@ -235,21 +235,21 @@ const ue = {
235
235
  return [
236
236
  e("div", fe, [
237
237
  g(M, {
238
- text: ((s = l.user) == null ? void 0 : s.name) || "",
238
+ text: ((s = r.user) == null ? void 0 : s.name) || "",
239
239
  size: 80,
240
- src: (x = l.user) == null ? void 0 : x.photo_url,
240
+ src: (x = r.user) == null ? void 0 : x.photo_url,
241
241
  rounded: !0,
242
242
  class: "mx-auto"
243
243
  }, null, 8, ["text", "src"]),
244
244
  e("div", ve, [
245
- e("div", me, c((n = l.user) == null ? void 0 : n.name), 1),
246
- e("div", xe, c((w = l.user) == null ? void 0 : w.email), 1)
245
+ e("div", me, a((n = r.user) == null ? void 0 : n.name), 1),
246
+ e("div", xe, a((w = r.user) == null ? void 0 : w.email), 1)
247
247
  ]),
248
248
  typeof u.onAccount == "function" ? (t(), o("a", {
249
249
  key: 0,
250
250
  onClick: d,
251
251
  class: "cursor-pointer justify-center px-8 py-2 mt-3 text-xs font-semibold tracking-wide leading-5 text-gray-600 border border-solid bg-neutral-100 border-slate-200 rounded-[50px] hover:bg-neutral-200"
252
- }, c(l.accountLabel), 1)) : h("", !0),
252
+ }, a(r.accountLabel), 1)) : h("", !0),
253
253
  e("div", ge, [
254
254
  (t(!0), o($, null, A(v.value, (k) => (t(), L(G, oe({
255
255
  key: k.key,
@@ -257,19 +257,19 @@ const ue = {
257
257
  }, k.args, {
258
258
  onClick: k.click
259
259
  }), null, 16, ["onClick"]))), 128)),
260
- typeof l.onLogout == "function" ? (t(), L(G, {
260
+ typeof r.onLogout == "function" ? (t(), L(G, {
261
261
  key: 0,
262
262
  icon: C(ae),
263
- label: l.logoutLabel,
263
+ label: r.logoutLabel,
264
264
  class: "rounded py-3",
265
- onClick: a
265
+ onClick: c
266
266
  }, null, 8, ["icon", "label"])) : h("", !0)
267
267
  ]),
268
268
  p[0] || (p[0] = e("div", {
269
269
  class: "space-y-2 text-center",
270
270
  style: { width: "240px" }
271
271
  }, null, -1)),
272
- e("div", _e, c((b = l.app) == null ? void 0 : b.version), 1)
272
+ e("div", _e, a((b = r.app) == null ? void 0 : b.version), 1)
273
273
  ])
274
274
  ];
275
275
  }),
@@ -434,8 +434,8 @@ const ye = ["data-opened"], be = {
434
434
  props: de,
435
435
  emits: ["open", "close"],
436
436
  setup(f, { emit: u }) {
437
- const v = u, d = f, a = j(!1), l = () => {
438
- a.value = !a.value, a.value ? v("open") : v("close");
437
+ const v = u, d = f, c = j(!1), r = () => {
438
+ c.value = !c.value, c.value ? v("open") : v("close");
439
439
  }, p = j(!1);
440
440
  F(() => p.value ? X : Q);
441
441
  const s = () => {
@@ -445,24 +445,24 @@ const ye = ["data-opened"], be = {
445
445
  };
446
446
  return (n, w) => {
447
447
  var b, k, O, i, _, y;
448
- return t(), o("div", { "data-opened": a.value }, [
448
+ return t(), o("div", { "data-opened": c.value }, [
449
449
  e("button", {
450
- onClick: l,
451
- class: z(["p-1 w-[44px] h-[44px] rounded-md hover:bg-secondary-10", { "bg-secondary-10": a.value }])
450
+ onClick: r,
451
+ class: z(["p-1 w-[44px] h-[44px] rounded-md hover:bg-secondary-10", { "bg-secondary-10": c.value }])
452
452
  }, [
453
453
  g(C(we), { class: "text-secondary-base w-full p-1 hover:text-blue-600 m-auto" })
454
454
  ], 2),
455
- a.value ? (t(), o("div", {
455
+ c.value ? (t(), o("div", {
456
456
  key: 0,
457
457
  class: "fixed top-0 left-0 w-screen h-screen z-10 bg-black/10",
458
- onClick: l
458
+ onClick: r
459
459
  })) : h("", !0),
460
- a.value ? (t(), o("div", be, [
460
+ c.value ? (t(), o("div", be, [
461
461
  e("div", Ce, [
462
- e("div", $e, c((b = n.workspace) == null ? void 0 : b.title), 1),
462
+ e("div", $e, a((b = n.workspace) == null ? void 0 : b.title), 1),
463
463
  g(C(J), {
464
464
  class: "w-6 cursor-pointer",
465
- onClick: l
465
+ onClick: r
466
466
  })
467
467
  ]),
468
468
  e("div", Ae, [
@@ -477,7 +477,7 @@ const ye = ["data-opened"], be = {
477
477
  class: "mx-auto"
478
478
  }, null, 8, ["text", "src"])
479
479
  ]),
480
- e("div", Me, c((i = n.workspace) == null ? void 0 : i.name), 1)
480
+ e("div", Me, a((i = n.workspace) == null ? void 0 : i.name), 1)
481
481
  ]),
482
482
  p.value ? (t(), o("div", Be, [
483
483
  (t(!0), o($, null, A(n.workspaces, (m) => (t(), o("div", {
@@ -490,7 +490,7 @@ const ye = ["data-opened"], be = {
490
490
  size: 30,
491
491
  rounded: !1
492
492
  }, null, 8, ["text", "src"]),
493
- e("span", ze, c(m.name), 1)
493
+ e("span", ze, a(m.name), 1)
494
494
  ]))), 128))
495
495
  ])) : h("", !0),
496
496
  w[0] || (w[0] = e("hr", null, null, -1)),
@@ -498,11 +498,11 @@ const ye = ["data-opened"], be = {
498
498
  onClick: s,
499
499
  class: "text-center py-2 cursor-pointer",
500
500
  style: { "font-size": "10px" }
501
- }, c((_ = n.workspace) == null ? void 0 : _.changeLabel), 1)
501
+ }, a((_ = n.workspace) == null ? void 0 : _.changeLabel), 1)
502
502
  ])
503
503
  ]),
504
504
  e("div", Oe, [
505
- e("div", Se, c((y = n.workspace) == null ? void 0 : y.appsLabel), 1),
505
+ e("div", Se, a((y = n.workspace) == null ? void 0 : y.appsLabel), 1),
506
506
  e("div", Ee, [
507
507
  n.apps && n.apps.length ? (t(), o("div", Ie, [
508
508
  (t(!0), o($, null, A(n.apps, (m) => (t(), o("div", {
@@ -520,8 +520,8 @@ const ye = ["data-opened"], be = {
520
520
  }, null, 8, ["text", "src"])
521
521
  ]),
522
522
  e("div", Ve, [
523
- e("p", De, c(m.name), 1),
524
- e("p", Re, c(m == null ? void 0 : m.short), 1)
523
+ e("p", De, a(m.name), 1),
524
+ e("p", Re, a(m == null ? void 0 : m.short), 1)
525
525
  ])
526
526
  ]),
527
527
  e("div", null, [
@@ -533,7 +533,7 @@ const ye = ["data-opened"], be = {
533
533
  ])
534
534
  ], 8, Pe))), 128))
535
535
  ])) : h("", !0),
536
- n.apps && n.apps.length ? (t(), o("button", qe, c("Дивитися всі"))) : h("", !0)
536
+ n.apps && n.apps.length ? (t(), o("button", qe, a("Дивитися всі"))) : h("", !0)
537
537
  ])
538
538
  ])
539
539
  ])) : h("", !0)
@@ -601,7 +601,7 @@ const Je = ["data-opened"], Ke = {
601
601
  }, Qe = { class: "flex justify-between items-center pt-3 mb-3" }, Xe = { class: "font-semibold text-xl px-3" }, Ye = {
602
602
  key: 0,
603
603
  class: "grid grid-cols-3 bg-[#FAFAFA] rounded-xl text-[#525B66] mb-2"
604
- }, Ze = ["onClick"], et = { class: "uppercase text-[8px]" }, tt = { class: "overflow-y-auto grid rounded-tl-xl" }, ot = { class: "max-h-full bg-[#FAFAFA] rounded-t-xl" }, nt = {
604
+ }, Ze = ["onClick"], et = { class: "uppercase text-[8px]" }, tt = { class: "overflow-y-auto grid rounded-xl" }, ot = { class: "max-h-full bg-[#FAFAFA]" }, nt = {
605
605
  key: 0,
606
606
  class: "space-y-2"
607
607
  }, st = ["onClick"], rt = { class: "flex" }, lt = { class: "pl-2" }, it = { class: "text-sm mt-1 font-semibold" }, ct = { class: "text-[10px] mt-1 text-[#979CA9]" }, at = { class: "mt-auto" }, ut = { key: 0 }, dt = ["onClick"], pt = { class: "flex items-center space-x-3" }, ht = { class: "h-16" }, ft = {
@@ -615,8 +615,8 @@ const Je = ["data-opened"], Ke = {
615
615
  props: pe,
616
616
  emits: ["open", "close"],
617
617
  setup(f, { emit: u }) {
618
- const v = u, d = f, a = j(!1), l = () => {
619
- a.value = !a.value, a.value ? v("open") : v("close");
618
+ const v = u, d = f, c = j(!1), r = () => {
619
+ c.value = !c.value, c.value ? v("open") : v("close");
620
620
  }, p = F(() => k.value ? X : Q), s = j(3), x = F(() => {
621
621
  var _, y;
622
622
  const i = ((y = (_ = d.help) == null ? void 0 : _.helpList) == null ? void 0 : y.length) || 0;
@@ -635,70 +635,70 @@ const Je = ["data-opened"], Ke = {
635
635
  };
636
636
  return (i, _) => {
637
637
  var y, m, S, H, T, V, D, R, q;
638
- return t(), o("div", { "data-opened": a.value }, [
638
+ return t(), o("div", { "data-opened": c.value }, [
639
639
  e("button", {
640
- onClick: l,
641
- class: z(["p-1 w-[44px] h-[44px] rounded-md hover:bg-secondary-10", { "bg-secondary-10": a.value }])
640
+ onClick: r,
641
+ class: z(["p-1 w-[44px] h-[44px] rounded-md hover:bg-secondary-10", { "bg-secondary-10": c.value }])
642
642
  }, [
643
643
  g(C(We), { class: "text-secondary-base w-full p-1 hover:text-blue-600 m-auto" })
644
644
  ], 2),
645
- a.value ? (t(), o("div", {
645
+ c.value ? (t(), o("div", {
646
646
  key: 0,
647
647
  class: "fixed top-0 left-0 w-screen h-screen z-10 bg-black/10 flex flex-col",
648
- onClick: l
648
+ onClick: r
649
649
  })) : h("", !0),
650
- a.value ? (t(), o("div", Ke, [
650
+ c.value ? (t(), o("div", Ke, [
651
651
  e("div", Qe, [
652
- e("div", Xe, c((y = i.help) == null ? void 0 : y.label), 1),
652
+ e("div", Xe, a((y = i.help) == null ? void 0 : y.label), 1),
653
653
  g(C(J), {
654
654
  class: "w-6 cursor-pointer",
655
- onClick: l
655
+ onClick: r
656
656
  })
657
657
  ]),
658
658
  (m = i.help) != null && m.helpButton ? (t(), o("div", Ye, [
659
- (t(!0), o($, null, A((S = i.help) == null ? void 0 : S.helpButton, (r) => (t(), o("button", {
660
- key: r.name,
661
- onClick: (E) => b(r.link),
659
+ (t(!0), o($, null, A((S = i.help) == null ? void 0 : S.helpButton, (l) => (t(), o("button", {
660
+ key: l.name,
661
+ onClick: (E) => b(l.link),
662
662
  class: "grid justify-center space-y-2 hover:bg-slate-100 p-3 rounded-xl hover:text-blue-500"
663
663
  }, [
664
664
  e("div", null, [
665
- (t(), L(P(r == null ? void 0 : r.icon), { class: "w-[16px] h-[16px] mx-auto" }))
665
+ (t(), L(P(l == null ? void 0 : l.icon), { class: "w-[16px] h-[16px] mx-auto" }))
666
666
  ]),
667
- e("span", et, c(r.name), 1)
667
+ e("span", et, a(l.name), 1)
668
668
  ], 8, Ze))), 128))
669
669
  ])) : h("", !0),
670
670
  e("div", tt, [
671
671
  e("div", ot, [
672
672
  (H = i.help) != null && H.helpList && i.help.helpList.length ? (t(), o("div", nt, [
673
- (t(!0), o($, null, A(n.value, (r) => (t(), o("div", {
674
- key: r.id,
675
- onClick: (E) => b(r.link),
673
+ (t(!0), o($, null, A(n.value, (l) => (t(), o("div", {
674
+ key: l.id,
675
+ onClick: (E) => b(l.link),
676
676
  class: "flex justify-between items-center rounded-lg hover:bg-slate-100 p-2 cursor-pointer hover:text-[#4089E0]"
677
677
  }, [
678
678
  e("div", rt, [
679
679
  e("div", lt, [
680
- e("p", it, c(r.name), 1),
681
- e("p", ct, c(r.inf) + "/" + c(r.name), 1)
680
+ e("p", it, a(l.name), 1),
681
+ e("p", ct, a(l.category), 1)
682
682
  ])
683
683
  ])
684
684
  ], 8, st))), 128))
685
685
  ])) : h("", !0)
686
686
  ])
687
687
  ]),
688
- (T = i.help) != null && T.helpList && i.help.helpList.length > 3 ? (t(), o("button", {
688
+ (T = i.help) != null && T.helpList && i.help.helpList.length < 0 ? (t(), o("button", {
689
689
  key: 1,
690
690
  onClick: w,
691
691
  class: "h-11 w-full bg-[#FAFAFA] hover:bg-slate-100 p-3 text-[#525B66] rounded-b-xl text-xs hover:text-[#4089E0] font-medium"
692
- }, c(x.value ? i.help.buttNoMore : i.help.buttMore), 1)) : h("", !0),
692
+ }, a(x.value ? i.help.buttNoMore : i.help.buttMore), 1)) : h("", !0),
693
693
  e("div", at, [
694
694
  (V = i.help) != null && V.video ? (t(), o("div", ut, [
695
- (t(!0), o($, null, A(i.help.video, (r) => (t(), o("button", {
696
- key: r.id,
697
- onClick: (E) => b(r.link),
695
+ (t(!0), o($, null, A(i.help.video, (l) => (t(), o("button", {
696
+ key: l.id,
697
+ onClick: (E) => b(l.link),
698
698
  class: "flex items-center space-x-3 mt-2 w-full bg-[#FAFAFA] hover:bg-slate-100 p-4 text-[#525B66] rounded-lg text-sm hover:text-[#4089E0] font-medium"
699
699
  }, [
700
700
  g(C(Ue), { class: "w-6 h-6" }),
701
- e("span", null, c(r.name), 1)
701
+ e("span", null, a(l.name), 1)
702
702
  ], 8, dt))), 128))
703
703
  ])) : h("", !0),
704
704
  (D = i.help) != null && D.socialList ? (t(), o("button", {
@@ -708,36 +708,36 @@ const Je = ["data-opened"], Ke = {
708
708
  }, [
709
709
  e("div", pt, [
710
710
  g(C(Ge), { class: "w-6 h-6" }),
711
- e("span", null, c(i.help.socialButt), 1)
711
+ e("span", null, a(i.help.socialButt), 1)
712
712
  ]),
713
713
  g(C(p), { class: "w-4 h-4" })
714
714
  ])) : h("", !0),
715
715
  e("div", ht, [
716
716
  k.value ? (t(), o("div", ft, [
717
717
  e("div", vt, [
718
- (t(!0), o($, null, A((R = i.help) == null ? void 0 : R.socialList, (r) => (t(), o("button", {
719
- key: r.id,
720
- onClick: (E) => b(r.link),
718
+ (t(!0), o($, null, A((R = i.help) == null ? void 0 : R.socialList, (l) => (t(), o("button", {
719
+ key: l.id,
720
+ onClick: (E) => b(l.link),
721
721
  class: "flex items-center space-x-2 p-2 rounded-lg hover:bg-slate-100 hover:text-blue-500 tooltip"
722
722
  }, [
723
723
  e("div", null, [
724
- r.name ? (t(), o("div", xt, c(r.name), 1)) : h("", !0),
725
- (t(), L(P(r == null ? void 0 : r.icon), { class: "w-[24px] h-[24px] mx-auto" }))
724
+ l.name ? (t(), o("div", xt, a(l.name), 1)) : h("", !0),
725
+ (t(), L(P(l == null ? void 0 : l.icon), { class: "w-[24px] h-[24px] mx-auto" }))
726
726
  ])
727
727
  ], 8, mt))), 128))
728
728
  ])
729
729
  ])) : h("", !0)
730
730
  ]),
731
731
  e("div", gt, [
732
- (t(!0), o($, null, A((q = i.help) == null ? void 0 : q.termsOffer, (r) => (t(), o("a", {
733
- key: r.name,
732
+ (t(!0), o($, null, A((q = i.help) == null ? void 0 : q.termsOffer, (l) => (t(), o("a", {
733
+ key: l.name,
734
734
  target: "_blank",
735
- href: r.link,
735
+ href: l.link,
736
736
  class: "ml-2 flex items-center rounded-lg text-xs hover:underline font-extralight cursor-pointer"
737
737
  }, [
738
738
  e("div", wt, [
739
739
  e("div", kt, [
740
- e("span", yt, c(r.name), 1)
740
+ e("span", yt, a(l.name), 1)
741
741
  ])
742
742
  ])
743
743
  ], 8, _t))), 128))
@@ -748,7 +748,7 @@ const Je = ["data-opened"], Ke = {
748
748
  };
749
749
  }
750
750
  });
751
- const Bt = /* @__PURE__ */ K(bt, [["__scopeId", "data-v-94a995fe"]]);
751
+ const Bt = /* @__PURE__ */ K(bt, [["__scopeId", "data-v-32f18d17"]]);
752
752
  export {
753
753
  Mt as O,
754
754
  ce as _,
@@ -1 +1 @@
1
- "use strict";const e=require("vue"),x=require("./common/index.cjs"),F=require("./XMarkIcon-f94baa4c.cjs"),P=require("./index-9f8735d9.cjs"),L=require("./_plugin-vue_export-helper-f246444f.cjs"),q={title:{type:String},stick:{type:String,default:"right"}},H={variant:{type:String,default:"primary"},label:{type:String},icon:{type:[Function,Object]}},I=["data-opened"],T={key:0,class:"text-sm text-secondary-content px-3 py-2 text-left"},D=e.defineComponent({__name:"OneDropdown",props:q,emits:["open","close"],setup(d,{emit:c}){const u=e.ref(!1),a=e.ref(null),s=c,r=d,i=()=>{u.value=!u.value,u.value?s("open"):s("close")};e.provide("OneDropdown",{onToggle:i});const o=e.computed(()=>{const t=a.value!=null&&a.value.getBoundingClientRect.x<270;return a.value!=null&&a.value.getBoundingClientRect().top+270>window.innerHeight?"up"+(t?"-right":"-left"):"down"+(t?"-right":"-left")}),m=e.computed(()=>{const t=["absolute z-10 w-fit rounded-md bg-white","py-1 shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none","overflow-auto max-h-[540px] min-w-[150px] max-w-[540px]"];return o.value.startsWith("up")?t.push("bottom-1 mb-10"):o.value.startsWith("down")&&t.push("top-1 mt-10"),r.stick==="right"?t.push("right-0"):r.stick==="left"&&t.push("left-0"),t});return(t,k)=>(e.openBlock(),e.createElementBlock("div",{class:"relative inline-block",ref_key:"menuRef",ref:a,"data-opened":u.value},[e.renderSlot(t.$slots,"button",e.normalizeProps(e.guardReactiveProps({onToggle:i,isExpanded:u.value}))),u.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"fixed top-0 left-0 w-screen h-screen z-10",onClick:i})):e.createCommentVNode("",!0),e.createVNode(e.Transition,{"enter-active-class":"transition ease-out duration-100","enter-from-class":"transform opacity-0 scale-95","enter-to-class":"transform opacity-100 scale-100","leave-active-class":"transition ease-in duration-75","leave-from-class":"transform opacity-100 scale-100","leave-to-class":"transform opacity-0 scale-95"},{default:e.withCtx(()=>[u.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["menu",m.value]),role:"menu","aria-orientation":"vertical",tabindex:"-1"},[t.title?(e.openBlock(),e.createElementBlock("div",T,e.toDisplayString(t.title),1)):e.createCommentVNode("",!0),e.renderSlot(t.$slots,"menu",e.normalizeProps(e.guardReactiveProps({onToggle:i})))],2)):e.createCommentVNode("",!0)]),_:3})],8,I))}}),b=e.defineComponent({__name:"OneDropdownItem",props:H,emits:["click"],setup(d,{emit:c}){const u=c,a=d,s=e.inject("OneDropdown"),r=()=>{s!==void 0&&s.onToggle(),u("click")},i=e.computed(()=>{const o=[];return a.variant==="secondary"?o.push("text-secondary-content hover:bg-secondary-body-hover"):a.variant==="danger"?o.push("text-danger-content hover:bg-danger-10"):a.variant==="warning"?o.push("text-warning-content hover:bg-warning-10"):a.variant==="info"?o.push("text-info-content hover:bg-info-10"):o.push("hover:bg-secondary-body-hover"),o});return(o,m)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(["px-3 py-1.5 flex items-center space-x-3 w-full whitespace-nowrap",i.value]),onClick:e.withModifiers(r,["prevent"])},[o.icon?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o.icon),{key:0,class:"w-4 h-4"})):e.createCommentVNode("",!0),e.createElementVNode("span",null,e.toDisplayString(o.label),1)],2))}});function R(d,c){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.8",stroke:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 9V5.25A2.25 2.25 0 0013.5 3h-6a2.25 2.25 0 00-2.25 2.25v13.5A2.25 2.25 0 007.5 21h6a2.25 2.25 0 002.25-2.25V15m3 0l3-3m0 0l-3-3m3 3H9"})])}const W={user:{type:Object,required:!0},menu:{type:Array,default:()=>[]},iconSize:{type:String,default:"34"},app:{type:Object},accountLabel:{type:String,default:"Account"},logoutLabel:{type:String,default:"Logout"},versionLabel:{type:String,default:""},onAccount:{type:Function},onLogout:{type:Function}},M={workspace:{type:Object,required:!0},workspaces:{type:Array},apps:{type:Array,required:!0},iconSize:{type:String,default:"24"},appsTitle:{type:String,default:"Ваші додатки"},changeLabel:{type:String,default:"Керувати робочими просторами"},onChange:{type:Function},onApp:{type:Function}},U={help:{type:Object,required:!0}},X=["onClick"],G={class:"flex flex-col items-center pt-5 pb-2 h-full"},J={class:"flex flex-col px-10 py-1 mt-2 text-center"},K={class:"self-center text-base font-medium tracking-wide text-black"},Q={class:"mt-1 text-xs leading-5 text-blue-500 font-light"},Y={class:"text-left w-full mt-5 px-3"},Z={class:"-mb-2 flex-shrink-0 mt-auto pt-6 text-[8px] leading-3 text-gray-400"},ee=e.defineComponent({__name:"OneUserMenu",props:W,setup(d){const c=d,u=e.computed(()=>{var r;return(r=c.menu)==null?void 0:r.map(i=>{let o={label:i.label};i.icon!=null&&(o={...o,icon:i.icon});const m=typeof i.click=="function"?i.click:()=>{};return{key:i.label,args:o,click:m}})}),a=()=>{typeof c.onAccount=="function"&&c.onAccount()},s=()=>{typeof c.onLogout=="function"&&c.onLogout()};return(r,i)=>(e.openBlock(),e.createBlock(D,{stick:"right"},{button:e.withCtx(({onToggle:o,isExpanded:m})=>{var t,k;return[e.createElementVNode("button",{onClick:o,class:e.normalizeClass(["p-1 rounded-full hover:bg-secondary-10",[m?"bg-secondary-25":""]])},[e.createVNode(x.OneAvatar,{text:((t=r.user)==null?void 0:t.name)||"",size:r.iconSize,src:(k=r.user)==null?void 0:k.photo_url,rounded:!0},null,8,["text","size","src"])],10,X)]}),menu:e.withCtx(()=>{var o,m,t,k,g;return[e.createElementVNode("div",G,[e.createVNode(x.OneAvatar,{text:((o=r.user)==null?void 0:o.name)||"",size:80,src:(m=r.user)==null?void 0:m.photo_url,rounded:!0,class:"mx-auto"},null,8,["text","src"]),e.createElementVNode("div",J,[e.createElementVNode("div",K,e.toDisplayString((t=r.user)==null?void 0:t.name),1),e.createElementVNode("div",Q,e.toDisplayString((k=r.user)==null?void 0:k.email),1)]),typeof c.onAccount=="function"?(e.openBlock(),e.createElementBlock("a",{key:0,onClick:a,class:"cursor-pointer justify-center px-8 py-2 mt-3 text-xs font-semibold tracking-wide leading-5 text-gray-600 border border-solid bg-neutral-100 border-slate-200 rounded-[50px] hover:bg-neutral-200"},e.toDisplayString(r.accountLabel),1)):e.createCommentVNode("",!0),e.createElementVNode("div",Y,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.value,f=>(e.openBlock(),e.createBlock(b,e.mergeProps({key:f.key,ref_for:!0},f.args,{onClick:f.click}),null,16,["onClick"]))),128)),typeof r.onLogout=="function"?(e.openBlock(),e.createBlock(b,{key:0,icon:e.unref(R),label:r.logoutLabel,class:"rounded py-3",onClick:s},null,8,["icon","label"])):e.createCommentVNode("",!0)]),i[0]||(i[0]=e.createElementVNode("div",{class:"space-y-2 text-center",style:{width:"240px"}},null,-1)),e.createElementVNode("div",Z,e.toDisplayString((g=r.app)==null?void 0:g.version),1)])]}),_:1}))}});function z(d,c){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.8",stroke:"currentColor","aria-hidden":"true"},[e.createElementVNode("rect",{width:"2.94",height:"2.94",x:"17.16",y:"3.9",fill:"currentColor","stroke-width":"1.8",rx:"1.1"}),e.createElementVNode("rect",{width:"2.94",height:"2.94",x:"10.53",y:"3.9",fill:"currentColor","stroke-width":"1.8",rx:"1.1"}),e.createElementVNode("rect",{width:"2.94",height:"2.94",x:"3.9",y:"3.9",fill:"currentColor","stroke-width":"1.8",rx:"1.1"}),e.createElementVNode("rect",{width:"2.94",height:"2.94",x:"17.16",y:"10.53",fill:"currentColor","stroke-width":"1.8",rx:"1.1"}),e.createElementVNode("rect",{width:"2.94",height:"2.94",x:"10.53",y:"10.53",fill:"currentColor","stroke-width":"1.8",rx:"1.1"}),e.createElementVNode("rect",{width:"2.94",height:"2.94",x:"3.9",y:"10.53",fill:"currentColor","stroke-width":"1.8",rx:"1.1"}),e.createElementVNode("rect",{width:"2.94",height:"2.94",x:"17.16",y:"17.16",fill:"currentColor","stroke-width":"1.8",rx:"1.1"}),e.createElementVNode("rect",{width:"2.94",height:"2.94",x:"10.53",y:"17.16",fill:"currentColor","stroke-width":"1.8",rx:"1.1"}),e.createElementVNode("rect",{width:"2.94",height:"2.94",x:"3.9",y:"17.16",fill:"currentColor","stroke-width":"1.8",rx:"1.1"})])}function B(d,c){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.8",stroke:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19.5 8.25l-7.5 7.5-7.5-7.5"})])}function E(d,c){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.8",stroke:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M4.5 15.75l7.5-7.5 7.5 7.5"})])}function j(d,c){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.8",stroke:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8.25 4.5l7.5 7.5-7.5 7.5"})])}const te=["data-opened"],oe={key:1,class:"absolute top-0 right-0 h-screen overflow-y-auto max-w-96 bg-white px-3 z-10"},ne={class:"flex justify-between items-center pt-3 mb-3"},re={class:"font-semibold text-xl px-3"},le={class:"grid"},se={class:"rounded-lg m-3 border"},ce={class:"space-x-2 flex items-center px-3 py-2",style:{width:"300px"}},ae={class:"flex justify-between relative"},ie={class:"flex items-center justify-between w-full text-left text-sm font-semibold"},de={key:0},ue={class:"text-xs font-semibold"},pe={class:"px-3 py-2"},me={class:"text-secondary-content text-left pb-1 text-xs uppercase"},he={class:"overflow-auto max-h-full"},ke={key:0,class:"space-y-2"},fe=["onClick"],ve={class:"flex"},ge={class:"border border-secondary-stroke rounded-2xl w-14 h-14 md:w-14 md:h-14 flex items-center justify-center"},xe={class:"pl-2"},ye={class:"text-sm mt-1 font-semibold"},_e={class:"text9 mt-1"},we={key:1,class:"mt-2 w-full bg-[#FAFAFA] hover:bg-secondary-10 p-2 rounded-lg mb-5 text-xs hidden"},be=e.defineComponent({__name:"OneBrowserMenu",props:M,emits:["open","close"],setup(d,{emit:c}){const u=c,a=d,s=e.ref(!1),r=()=>{s.value=!s.value,s.value?u("open"):u("close")},i=e.ref(!1);e.computed(()=>i.value?E:B);const o=()=>{typeof a.onChange=="function"&&a.onChange()},m=t=>{typeof a.onApp=="function"&&a.onApp(t)};return(t,k)=>{var g,f,y,l,h,v;return e.openBlock(),e.createElementBlock("div",{"data-opened":s.value},[e.createElementVNode("button",{onClick:r,class:e.normalizeClass(["p-1 w-[44px] h-[44px] rounded-md hover:bg-secondary-10",{"bg-secondary-10":s.value}])},[e.createVNode(e.unref(z),{class:"text-secondary-base w-full p-1 hover:text-blue-600 m-auto"})],2),s.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"fixed top-0 left-0 w-screen h-screen z-10 bg-black/10",onClick:r})):e.createCommentVNode("",!0),s.value?(e.openBlock(),e.createElementBlock("div",oe,[e.createElementVNode("div",ne,[e.createElementVNode("div",re,e.toDisplayString((g=t.workspace)==null?void 0:g.title),1),e.createVNode(e.unref(F.render),{class:"w-6 cursor-pointer",onClick:r})]),e.createElementVNode("div",le,[e.createElementVNode("div",se,[e.createElementVNode("div",ce,[e.createElementVNode("div",ae,[e.createVNode(x.OneAvatar,{text:((f=t.workspace)==null?void 0:f.name)||"",src:(y=t.workspace)==null?void 0:y.photo_url,size:44,rounded:!1,class:"mx-auto"},null,8,["text","src"])]),e.createElementVNode("div",ie,e.toDisplayString((l=t.workspace)==null?void 0:l.name),1)]),i.value?(e.openBlock(),e.createElementBlock("div",de,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.workspaces,p=>(e.openBlock(),e.createElementBlock("div",{key:p.name,class:"flex items-center space-x-3 border-t px-5 py-2 hover:bg-secondary-10"},[e.createVNode(x.OneAvatar,{text:p.name,src:p.photo_url,size:30,rounded:!1},null,8,["text","src"]),e.createElementVNode("span",ue,e.toDisplayString(p.name),1)]))),128))])):e.createCommentVNode("",!0),k[0]||(k[0]=e.createElementVNode("hr",null,null,-1)),e.createElementVNode("div",{onClick:o,class:"text-center py-2 cursor-pointer",style:{"font-size":"10px"}},e.toDisplayString((h=t.workspace)==null?void 0:h.changeLabel),1)])]),e.createElementVNode("div",pe,[e.createElementVNode("div",me,e.toDisplayString((v=t.workspace)==null?void 0:v.appsLabel),1),e.createElementVNode("div",he,[t.apps&&t.apps.length?(e.openBlock(),e.createElementBlock("div",ke,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.apps,p=>(e.openBlock(),e.createElementBlock("div",{key:p.id,onClick:_=>m(p),class:"flex justify-between items-center rounded-lg hover:bg-secondary-10 p-2 bg-[#FAFAFA] cursor-pointer"},[e.createElementVNode("div",ve,[e.createElementVNode("div",ge,[e.createVNode(x.OneAvatar,{text:p.name,src:p.photo_url,size:44,rounded:!1},null,8,["text","src"])]),e.createElementVNode("div",xe,[e.createElementVNode("p",ye,e.toDisplayString(p.name),1),e.createElementVNode("p",_e,e.toDisplayString(p==null?void 0:p.short),1)])]),e.createElementVNode("div",null,[e.createVNode(P._sfc_main,{variant:"touch",icon:e.unref(j),onClick:_=>m(p)},null,8,["icon","onClick"])])],8,fe))),128))])):e.createCommentVNode("",!0),t.apps&&t.apps.length?(e.openBlock(),e.createElementBlock("button",we,e.toDisplayString("Дивитися всі"))):e.createCommentVNode("",!0)])])])):e.createCommentVNode("",!0)],8,te)}}});const Be=L._export_sfc(be,[["__scopeId","data-v-4936d4e4"]]);function Ee(d,c){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.8",stroke:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9.879 7.519c1.171-1.025 3.071-1.025 4.242 0 1.172 1.025 1.172 2.687 0 3.712-.203.179-.43.326-.67.442-.745.361-1.45.999-1.45 1.827v.75M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-9 5.25h.008v.008H12v-.008z"})])}function Ve(d,c){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.8",stroke:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M21 12a9 9 0 11-18 0 9 9 0 0118 0z"}),e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.91 11.672a.375.375 0 010 .656l-5.603 3.113a.375.375 0 01-.557-.328V8.887c0-.286.307-.466.557-.327l5.603 3.112z"})])}function O(d,c){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.8",stroke:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 21a9.004 9.004 0 008.716-6.747M12 21a9.004 9.004 0 01-8.716-6.747M12 21c2.485 0 4.5-4.03 4.5-9S14.485 3 12 3m0 18c-2.485 0-4.5-4.03-4.5-9S9.515 3 12 3m0 0a8.997 8.997 0 017.843 4.582M12 3a8.997 8.997 0 00-7.843 4.582m15.686 0A11.953 11.953 0 0112 10.5c-2.998 0-5.74-1.1-7.843-2.918m15.686 0A8.959 8.959 0 0121 12c0 .778-.099 1.533-.284 2.253m0 0A17.919 17.919 0 0112 16.5c-3.162 0-6.133-.815-8.716-2.247m0 0A9.015 9.015 0 013 12c0-1.605.42-3.113 1.157-4.418"})])}const Ne=["data-opened"],Ce={key:1,class:"absolute top-0 right-0 h-screen max-w-96 bg-white px-3 z-10 flex flex-col"},$e={class:"flex justify-between items-center pt-3 mb-3"},Ae={class:"font-semibold text-xl px-3"},Se={key:0,class:"grid grid-cols-3 bg-[#FAFAFA] rounded-xl text-[#525B66] mb-2"},Fe=["onClick"],Le={class:"uppercase text-[8px]"},De={class:"overflow-y-auto grid rounded-tl-xl"},Me={class:"max-h-full bg-[#FAFAFA] rounded-t-xl"},ze={key:0,class:"space-y-2"},je=["onClick"],Oe={class:"flex"},Pe={class:"pl-2"},qe={class:"text-sm mt-1 font-semibold"},He={class:"text-[10px] mt-1 text-[#979CA9]"},Ie={class:"mt-auto"},Te={key:0},Re=["onClick"],We={class:"flex items-center space-x-3"},Ue={class:"h-16"},Xe={key:0,class:"bg-[#FAFAFA] rounded-lg p-3"},Ge={class:"flex justify-between"},Je=["onClick"],Ke={key:0,class:"tooltip-text min-w-[70px]"},Qe={class:"flex justify-between mb-4"},Ye=["href"],Ze={class:"flex flex-nowrap items-center w-max h-[24px]"},et={class:"whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full text-[#525B66]"},tt={class:"py-[8px] pl-0 pr-[8px]"},ot=e.defineComponent({__name:"OneHelpMenu",props:U,emits:["open","close"],setup(d,{emit:c}){const u=c,a=d,s=e.ref(!1),r=()=>{s.value=!s.value,s.value?u("open"):u("close")},i=e.computed(()=>f.value?E:B),o=e.ref(3),m=e.computed(()=>{var h,v;const l=((v=(h=a.help)==null?void 0:h.helpList)==null?void 0:v.length)||0;return o.value===l}),t=e.computed(()=>{var h;return(((h=a.help)==null?void 0:h.helpList)||[]).slice(0,o.value)}),k=()=>{var h,v;const l=((v=(h=a.help)==null?void 0:h.helpList)==null?void 0:v.length)||0;o.value=m.value?3:l},g=l=>{l&&window.open(l,"_blank")},f=e.ref(!1),y=()=>{f.value=!f.value};return(l,h)=>{var v,p,_,V,N,C,$,A,S;return e.openBlock(),e.createElementBlock("div",{"data-opened":s.value},[e.createElementVNode("button",{onClick:r,class:e.normalizeClass(["p-1 w-[44px] h-[44px] rounded-md hover:bg-secondary-10",{"bg-secondary-10":s.value}])},[e.createVNode(e.unref(Ee),{class:"text-secondary-base w-full p-1 hover:text-blue-600 m-auto"})],2),s.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"fixed top-0 left-0 w-screen h-screen z-10 bg-black/10 flex flex-col",onClick:r})):e.createCommentVNode("",!0),s.value?(e.openBlock(),e.createElementBlock("div",Ce,[e.createElementVNode("div",$e,[e.createElementVNode("div",Ae,e.toDisplayString((v=l.help)==null?void 0:v.label),1),e.createVNode(e.unref(F.render),{class:"w-6 cursor-pointer",onClick:r})]),(p=l.help)!=null&&p.helpButton?(e.openBlock(),e.createElementBlock("div",Se,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((_=l.help)==null?void 0:_.helpButton,n=>(e.openBlock(),e.createElementBlock("button",{key:n.name,onClick:w=>g(n.link),class:"grid justify-center space-y-2 hover:bg-slate-100 p-3 rounded-xl hover:text-blue-500"},[e.createElementVNode("div",null,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n==null?void 0:n.icon),{class:"w-[16px] h-[16px] mx-auto"}))]),e.createElementVNode("span",Le,e.toDisplayString(n.name),1)],8,Fe))),128))])):e.createCommentVNode("",!0),e.createElementVNode("div",De,[e.createElementVNode("div",Me,[(V=l.help)!=null&&V.helpList&&l.help.helpList.length?(e.openBlock(),e.createElementBlock("div",ze,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.value,n=>(e.openBlock(),e.createElementBlock("div",{key:n.id,onClick:w=>g(n.link),class:"flex justify-between items-center rounded-lg hover:bg-slate-100 p-2 cursor-pointer hover:text-[#4089E0]"},[e.createElementVNode("div",Oe,[e.createElementVNode("div",Pe,[e.createElementVNode("p",qe,e.toDisplayString(n.name),1),e.createElementVNode("p",He,e.toDisplayString(n.inf)+"/"+e.toDisplayString(n.name),1)])])],8,je))),128))])):e.createCommentVNode("",!0)])]),(N=l.help)!=null&&N.helpList&&l.help.helpList.length>3?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:k,class:"h-11 w-full bg-[#FAFAFA] hover:bg-slate-100 p-3 text-[#525B66] rounded-b-xl text-xs hover:text-[#4089E0] font-medium"},e.toDisplayString(m.value?l.help.buttNoMore:l.help.buttMore),1)):e.createCommentVNode("",!0),e.createElementVNode("div",Ie,[(C=l.help)!=null&&C.video?(e.openBlock(),e.createElementBlock("div",Te,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.help.video,n=>(e.openBlock(),e.createElementBlock("button",{key:n.id,onClick:w=>g(n.link),class:"flex items-center space-x-3 mt-2 w-full bg-[#FAFAFA] hover:bg-slate-100 p-4 text-[#525B66] rounded-lg text-sm hover:text-[#4089E0] font-medium"},[e.createVNode(e.unref(Ve),{class:"w-6 h-6"}),e.createElementVNode("span",null,e.toDisplayString(n.name),1)],8,Re))),128))])):e.createCommentVNode("",!0),($=l.help)!=null&&$.socialList?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:y,class:"flex items-center justify-between mt-2 w-full bg-[#FAFAFA] hover:bg-slate-100 p-4 text-[#525B66] rounded-lg text-sm hover:text-[#4089E0] font-medium"},[e.createElementVNode("div",We,[e.createVNode(e.unref(O),{class:"w-6 h-6"}),e.createElementVNode("span",null,e.toDisplayString(l.help.socialButt),1)]),e.createVNode(e.unref(i),{class:"w-4 h-4"})])):e.createCommentVNode("",!0),e.createElementVNode("div",Ue,[f.value?(e.openBlock(),e.createElementBlock("div",Xe,[e.createElementVNode("div",Ge,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((A=l.help)==null?void 0:A.socialList,n=>(e.openBlock(),e.createElementBlock("button",{key:n.id,onClick:w=>g(n.link),class:"flex items-center space-x-2 p-2 rounded-lg hover:bg-slate-100 hover:text-blue-500 tooltip"},[e.createElementVNode("div",null,[n.name?(e.openBlock(),e.createElementBlock("div",Ke,e.toDisplayString(n.name),1)):e.createCommentVNode("",!0),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n==null?void 0:n.icon),{class:"w-[24px] h-[24px] mx-auto"}))])],8,Je))),128))])])):e.createCommentVNode("",!0)]),e.createElementVNode("div",Qe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((S=l.help)==null?void 0:S.termsOffer,n=>(e.openBlock(),e.createElementBlock("a",{key:n.name,target:"_blank",href:n.link,class:"ml-2 flex items-center rounded-lg text-xs hover:underline font-extralight cursor-pointer"},[e.createElementVNode("div",Ze,[e.createElementVNode("div",et,[e.createElementVNode("span",tt,e.toDisplayString(n.name),1)])])],8,Ye))),128))])])])):e.createCommentVNode("",!0)],8,Ne)}}});const nt=L._export_sfc(ot,[["__scopeId","data-v-94a995fe"]]);exports.OneBrowserMenu=Be;exports.OneHelpMenu=nt;exports._sfc_main=D;exports._sfc_main$1=b;exports._sfc_main$2=ee;exports.browserMenuProps=M;exports.render=E;exports.render$1=B;exports.render$2=j;exports.render$3=O;exports.render$4=z;
1
+ "use strict";const e=require("vue"),x=require("./common/index.cjs"),F=require("./XMarkIcon-f94baa4c.cjs"),P=require("./index-9f8735d9.cjs"),L=require("./_plugin-vue_export-helper-f246444f.cjs"),q={title:{type:String},stick:{type:String,default:"right"}},H={variant:{type:String,default:"primary"},label:{type:String},icon:{type:[Function,Object]}},I=["data-opened"],T={key:0,class:"text-sm text-secondary-content px-3 py-2 text-left"},D=e.defineComponent({__name:"OneDropdown",props:q,emits:["open","close"],setup(d,{emit:c}){const u=e.ref(!1),a=e.ref(null),s=c,n=d,i=()=>{u.value=!u.value,u.value?s("open"):s("close")};e.provide("OneDropdown",{onToggle:i});const o=e.computed(()=>{const t=a.value!=null&&a.value.getBoundingClientRect.x<270;return a.value!=null&&a.value.getBoundingClientRect().top+270>window.innerHeight?"up"+(t?"-right":"-left"):"down"+(t?"-right":"-left")}),m=e.computed(()=>{const t=["absolute z-10 w-fit rounded-md bg-white","py-1 shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none","overflow-auto max-h-[540px] min-w-[150px] max-w-[540px]"];return o.value.startsWith("up")?t.push("bottom-1 mb-10"):o.value.startsWith("down")&&t.push("top-1 mt-10"),n.stick==="right"?t.push("right-0"):n.stick==="left"&&t.push("left-0"),t});return(t,k)=>(e.openBlock(),e.createElementBlock("div",{class:"relative inline-block",ref_key:"menuRef",ref:a,"data-opened":u.value},[e.renderSlot(t.$slots,"button",e.normalizeProps(e.guardReactiveProps({onToggle:i,isExpanded:u.value}))),u.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"fixed top-0 left-0 w-screen h-screen z-10",onClick:i})):e.createCommentVNode("",!0),e.createVNode(e.Transition,{"enter-active-class":"transition ease-out duration-100","enter-from-class":"transform opacity-0 scale-95","enter-to-class":"transform opacity-100 scale-100","leave-active-class":"transition ease-in duration-75","leave-from-class":"transform opacity-100 scale-100","leave-to-class":"transform opacity-0 scale-95"},{default:e.withCtx(()=>[u.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["menu",m.value]),role:"menu","aria-orientation":"vertical",tabindex:"-1"},[t.title?(e.openBlock(),e.createElementBlock("div",T,e.toDisplayString(t.title),1)):e.createCommentVNode("",!0),e.renderSlot(t.$slots,"menu",e.normalizeProps(e.guardReactiveProps({onToggle:i})))],2)):e.createCommentVNode("",!0)]),_:3})],8,I))}}),b=e.defineComponent({__name:"OneDropdownItem",props:H,emits:["click"],setup(d,{emit:c}){const u=c,a=d,s=e.inject("OneDropdown"),n=()=>{s!==void 0&&s.onToggle(),u("click")},i=e.computed(()=>{const o=[];return a.variant==="secondary"?o.push("text-secondary-content hover:bg-secondary-body-hover"):a.variant==="danger"?o.push("text-danger-content hover:bg-danger-10"):a.variant==="warning"?o.push("text-warning-content hover:bg-warning-10"):a.variant==="info"?o.push("text-info-content hover:bg-info-10"):o.push("hover:bg-secondary-body-hover"),o});return(o,m)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(["px-3 py-1.5 flex items-center space-x-3 w-full whitespace-nowrap",i.value]),onClick:e.withModifiers(n,["prevent"])},[o.icon?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o.icon),{key:0,class:"w-4 h-4"})):e.createCommentVNode("",!0),e.createElementVNode("span",null,e.toDisplayString(o.label),1)],2))}});function R(d,c){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.8",stroke:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 9V5.25A2.25 2.25 0 0013.5 3h-6a2.25 2.25 0 00-2.25 2.25v13.5A2.25 2.25 0 007.5 21h6a2.25 2.25 0 002.25-2.25V15m3 0l3-3m0 0l-3-3m3 3H9"})])}const W={user:{type:Object,required:!0},menu:{type:Array,default:()=>[]},iconSize:{type:String,default:"34"},app:{type:Object},accountLabel:{type:String,default:"Account"},logoutLabel:{type:String,default:"Logout"},versionLabel:{type:String,default:""},onAccount:{type:Function},onLogout:{type:Function}},M={workspace:{type:Object,required:!0},workspaces:{type:Array},apps:{type:Array,required:!0},iconSize:{type:String,default:"24"},appsTitle:{type:String,default:"Ваші додатки"},changeLabel:{type:String,default:"Керувати робочими просторами"},onChange:{type:Function},onApp:{type:Function}},U={help:{type:Object,required:!0}},X=["onClick"],G={class:"flex flex-col items-center pt-5 pb-2 h-full"},J={class:"flex flex-col px-10 py-1 mt-2 text-center"},K={class:"self-center text-base font-medium tracking-wide text-black"},Q={class:"mt-1 text-xs leading-5 text-blue-500 font-light"},Y={class:"text-left w-full mt-5 px-3"},Z={class:"-mb-2 flex-shrink-0 mt-auto pt-6 text-[8px] leading-3 text-gray-400"},ee=e.defineComponent({__name:"OneUserMenu",props:W,setup(d){const c=d,u=e.computed(()=>{var n;return(n=c.menu)==null?void 0:n.map(i=>{let o={label:i.label};i.icon!=null&&(o={...o,icon:i.icon});const m=typeof i.click=="function"?i.click:()=>{};return{key:i.label,args:o,click:m}})}),a=()=>{typeof c.onAccount=="function"&&c.onAccount()},s=()=>{typeof c.onLogout=="function"&&c.onLogout()};return(n,i)=>(e.openBlock(),e.createBlock(D,{stick:"right"},{button:e.withCtx(({onToggle:o,isExpanded:m})=>{var t,k;return[e.createElementVNode("button",{onClick:o,class:e.normalizeClass(["p-1 rounded-full hover:bg-secondary-10",[m?"bg-secondary-25":""]])},[e.createVNode(x.OneAvatar,{text:((t=n.user)==null?void 0:t.name)||"",size:n.iconSize,src:(k=n.user)==null?void 0:k.photo_url,rounded:!0},null,8,["text","size","src"])],10,X)]}),menu:e.withCtx(()=>{var o,m,t,k,g;return[e.createElementVNode("div",G,[e.createVNode(x.OneAvatar,{text:((o=n.user)==null?void 0:o.name)||"",size:80,src:(m=n.user)==null?void 0:m.photo_url,rounded:!0,class:"mx-auto"},null,8,["text","src"]),e.createElementVNode("div",J,[e.createElementVNode("div",K,e.toDisplayString((t=n.user)==null?void 0:t.name),1),e.createElementVNode("div",Q,e.toDisplayString((k=n.user)==null?void 0:k.email),1)]),typeof c.onAccount=="function"?(e.openBlock(),e.createElementBlock("a",{key:0,onClick:a,class:"cursor-pointer justify-center px-8 py-2 mt-3 text-xs font-semibold tracking-wide leading-5 text-gray-600 border border-solid bg-neutral-100 border-slate-200 rounded-[50px] hover:bg-neutral-200"},e.toDisplayString(n.accountLabel),1)):e.createCommentVNode("",!0),e.createElementVNode("div",Y,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.value,f=>(e.openBlock(),e.createBlock(b,e.mergeProps({key:f.key,ref_for:!0},f.args,{onClick:f.click}),null,16,["onClick"]))),128)),typeof n.onLogout=="function"?(e.openBlock(),e.createBlock(b,{key:0,icon:e.unref(R),label:n.logoutLabel,class:"rounded py-3",onClick:s},null,8,["icon","label"])):e.createCommentVNode("",!0)]),i[0]||(i[0]=e.createElementVNode("div",{class:"space-y-2 text-center",style:{width:"240px"}},null,-1)),e.createElementVNode("div",Z,e.toDisplayString((g=n.app)==null?void 0:g.version),1)])]}),_:1}))}});function z(d,c){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.8",stroke:"currentColor","aria-hidden":"true"},[e.createElementVNode("rect",{width:"2.94",height:"2.94",x:"17.16",y:"3.9",fill:"currentColor","stroke-width":"1.8",rx:"1.1"}),e.createElementVNode("rect",{width:"2.94",height:"2.94",x:"10.53",y:"3.9",fill:"currentColor","stroke-width":"1.8",rx:"1.1"}),e.createElementVNode("rect",{width:"2.94",height:"2.94",x:"3.9",y:"3.9",fill:"currentColor","stroke-width":"1.8",rx:"1.1"}),e.createElementVNode("rect",{width:"2.94",height:"2.94",x:"17.16",y:"10.53",fill:"currentColor","stroke-width":"1.8",rx:"1.1"}),e.createElementVNode("rect",{width:"2.94",height:"2.94",x:"10.53",y:"10.53",fill:"currentColor","stroke-width":"1.8",rx:"1.1"}),e.createElementVNode("rect",{width:"2.94",height:"2.94",x:"3.9",y:"10.53",fill:"currentColor","stroke-width":"1.8",rx:"1.1"}),e.createElementVNode("rect",{width:"2.94",height:"2.94",x:"17.16",y:"17.16",fill:"currentColor","stroke-width":"1.8",rx:"1.1"}),e.createElementVNode("rect",{width:"2.94",height:"2.94",x:"10.53",y:"17.16",fill:"currentColor","stroke-width":"1.8",rx:"1.1"}),e.createElementVNode("rect",{width:"2.94",height:"2.94",x:"3.9",y:"17.16",fill:"currentColor","stroke-width":"1.8",rx:"1.1"})])}function B(d,c){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.8",stroke:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19.5 8.25l-7.5 7.5-7.5-7.5"})])}function E(d,c){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.8",stroke:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M4.5 15.75l7.5-7.5 7.5 7.5"})])}function j(d,c){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.8",stroke:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8.25 4.5l7.5 7.5-7.5 7.5"})])}const te=["data-opened"],oe={key:1,class:"absolute top-0 right-0 h-screen overflow-y-auto max-w-96 bg-white px-3 z-10"},ne={class:"flex justify-between items-center pt-3 mb-3"},re={class:"font-semibold text-xl px-3"},le={class:"grid"},se={class:"rounded-lg m-3 border"},ce={class:"space-x-2 flex items-center px-3 py-2",style:{width:"300px"}},ae={class:"flex justify-between relative"},ie={class:"flex items-center justify-between w-full text-left text-sm font-semibold"},de={key:0},ue={class:"text-xs font-semibold"},pe={class:"px-3 py-2"},me={class:"text-secondary-content text-left pb-1 text-xs uppercase"},he={class:"overflow-auto max-h-full"},ke={key:0,class:"space-y-2"},fe=["onClick"],ve={class:"flex"},ge={class:"border border-secondary-stroke rounded-2xl w-14 h-14 md:w-14 md:h-14 flex items-center justify-center"},xe={class:"pl-2"},ye={class:"text-sm mt-1 font-semibold"},_e={class:"text9 mt-1"},we={key:1,class:"mt-2 w-full bg-[#FAFAFA] hover:bg-secondary-10 p-2 rounded-lg mb-5 text-xs hidden"},be=e.defineComponent({__name:"OneBrowserMenu",props:M,emits:["open","close"],setup(d,{emit:c}){const u=c,a=d,s=e.ref(!1),n=()=>{s.value=!s.value,s.value?u("open"):u("close")},i=e.ref(!1);e.computed(()=>i.value?E:B);const o=()=>{typeof a.onChange=="function"&&a.onChange()},m=t=>{typeof a.onApp=="function"&&a.onApp(t)};return(t,k)=>{var g,f,y,l,h,v;return e.openBlock(),e.createElementBlock("div",{"data-opened":s.value},[e.createElementVNode("button",{onClick:n,class:e.normalizeClass(["p-1 w-[44px] h-[44px] rounded-md hover:bg-secondary-10",{"bg-secondary-10":s.value}])},[e.createVNode(e.unref(z),{class:"text-secondary-base w-full p-1 hover:text-blue-600 m-auto"})],2),s.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"fixed top-0 left-0 w-screen h-screen z-10 bg-black/10",onClick:n})):e.createCommentVNode("",!0),s.value?(e.openBlock(),e.createElementBlock("div",oe,[e.createElementVNode("div",ne,[e.createElementVNode("div",re,e.toDisplayString((g=t.workspace)==null?void 0:g.title),1),e.createVNode(e.unref(F.render),{class:"w-6 cursor-pointer",onClick:n})]),e.createElementVNode("div",le,[e.createElementVNode("div",se,[e.createElementVNode("div",ce,[e.createElementVNode("div",ae,[e.createVNode(x.OneAvatar,{text:((f=t.workspace)==null?void 0:f.name)||"",src:(y=t.workspace)==null?void 0:y.photo_url,size:44,rounded:!1,class:"mx-auto"},null,8,["text","src"])]),e.createElementVNode("div",ie,e.toDisplayString((l=t.workspace)==null?void 0:l.name),1)]),i.value?(e.openBlock(),e.createElementBlock("div",de,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.workspaces,p=>(e.openBlock(),e.createElementBlock("div",{key:p.name,class:"flex items-center space-x-3 border-t px-5 py-2 hover:bg-secondary-10"},[e.createVNode(x.OneAvatar,{text:p.name,src:p.photo_url,size:30,rounded:!1},null,8,["text","src"]),e.createElementVNode("span",ue,e.toDisplayString(p.name),1)]))),128))])):e.createCommentVNode("",!0),k[0]||(k[0]=e.createElementVNode("hr",null,null,-1)),e.createElementVNode("div",{onClick:o,class:"text-center py-2 cursor-pointer",style:{"font-size":"10px"}},e.toDisplayString((h=t.workspace)==null?void 0:h.changeLabel),1)])]),e.createElementVNode("div",pe,[e.createElementVNode("div",me,e.toDisplayString((v=t.workspace)==null?void 0:v.appsLabel),1),e.createElementVNode("div",he,[t.apps&&t.apps.length?(e.openBlock(),e.createElementBlock("div",ke,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.apps,p=>(e.openBlock(),e.createElementBlock("div",{key:p.id,onClick:_=>m(p),class:"flex justify-between items-center rounded-lg hover:bg-secondary-10 p-2 bg-[#FAFAFA] cursor-pointer"},[e.createElementVNode("div",ve,[e.createElementVNode("div",ge,[e.createVNode(x.OneAvatar,{text:p.name,src:p.photo_url,size:44,rounded:!1},null,8,["text","src"])]),e.createElementVNode("div",xe,[e.createElementVNode("p",ye,e.toDisplayString(p.name),1),e.createElementVNode("p",_e,e.toDisplayString(p==null?void 0:p.short),1)])]),e.createElementVNode("div",null,[e.createVNode(P._sfc_main,{variant:"touch",icon:e.unref(j),onClick:_=>m(p)},null,8,["icon","onClick"])])],8,fe))),128))])):e.createCommentVNode("",!0),t.apps&&t.apps.length?(e.openBlock(),e.createElementBlock("button",we,e.toDisplayString("Дивитися всі"))):e.createCommentVNode("",!0)])])])):e.createCommentVNode("",!0)],8,te)}}});const Be=L._export_sfc(be,[["__scopeId","data-v-4936d4e4"]]);function Ee(d,c){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.8",stroke:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9.879 7.519c1.171-1.025 3.071-1.025 4.242 0 1.172 1.025 1.172 2.687 0 3.712-.203.179-.43.326-.67.442-.745.361-1.45.999-1.45 1.827v.75M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-9 5.25h.008v.008H12v-.008z"})])}function Ve(d,c){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.8",stroke:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M21 12a9 9 0 11-18 0 9 9 0 0118 0z"}),e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.91 11.672a.375.375 0 010 .656l-5.603 3.113a.375.375 0 01-.557-.328V8.887c0-.286.307-.466.557-.327l5.603 3.112z"})])}function O(d,c){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.8",stroke:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 21a9.004 9.004 0 008.716-6.747M12 21a9.004 9.004 0 01-8.716-6.747M12 21c2.485 0 4.5-4.03 4.5-9S14.485 3 12 3m0 18c-2.485 0-4.5-4.03-4.5-9S9.515 3 12 3m0 0a8.997 8.997 0 017.843 4.582M12 3a8.997 8.997 0 00-7.843 4.582m15.686 0A11.953 11.953 0 0112 10.5c-2.998 0-5.74-1.1-7.843-2.918m15.686 0A8.959 8.959 0 0121 12c0 .778-.099 1.533-.284 2.253m0 0A17.919 17.919 0 0112 16.5c-3.162 0-6.133-.815-8.716-2.247m0 0A9.015 9.015 0 013 12c0-1.605.42-3.113 1.157-4.418"})])}const Ne=["data-opened"],Ce={key:1,class:"absolute top-0 right-0 h-screen max-w-96 bg-white px-3 z-10 flex flex-col"},$e={class:"flex justify-between items-center pt-3 mb-3"},Ae={class:"font-semibold text-xl px-3"},Se={key:0,class:"grid grid-cols-3 bg-[#FAFAFA] rounded-xl text-[#525B66] mb-2"},Fe=["onClick"],Le={class:"uppercase text-[8px]"},De={class:"overflow-y-auto grid rounded-xl"},Me={class:"max-h-full bg-[#FAFAFA]"},ze={key:0,class:"space-y-2"},je=["onClick"],Oe={class:"flex"},Pe={class:"pl-2"},qe={class:"text-sm mt-1 font-semibold"},He={class:"text-[10px] mt-1 text-[#979CA9]"},Ie={class:"mt-auto"},Te={key:0},Re=["onClick"],We={class:"flex items-center space-x-3"},Ue={class:"h-16"},Xe={key:0,class:"bg-[#FAFAFA] rounded-lg p-3"},Ge={class:"flex justify-between"},Je=["onClick"],Ke={key:0,class:"tooltip-text min-w-[70px]"},Qe={class:"flex justify-between mb-4"},Ye=["href"],Ze={class:"flex flex-nowrap items-center w-max h-[24px]"},et={class:"whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full text-[#525B66]"},tt={class:"py-[8px] pl-0 pr-[8px]"},ot=e.defineComponent({__name:"OneHelpMenu",props:U,emits:["open","close"],setup(d,{emit:c}){const u=c,a=d,s=e.ref(!1),n=()=>{s.value=!s.value,s.value?u("open"):u("close")},i=e.computed(()=>f.value?E:B),o=e.ref(3),m=e.computed(()=>{var h,v;const l=((v=(h=a.help)==null?void 0:h.helpList)==null?void 0:v.length)||0;return o.value===l}),t=e.computed(()=>{var h;return(((h=a.help)==null?void 0:h.helpList)||[]).slice(0,o.value)}),k=()=>{var h,v;const l=((v=(h=a.help)==null?void 0:h.helpList)==null?void 0:v.length)||0;o.value=m.value?3:l},g=l=>{l&&window.open(l,"_blank")},f=e.ref(!1),y=()=>{f.value=!f.value};return(l,h)=>{var v,p,_,V,N,C,$,A,S;return e.openBlock(),e.createElementBlock("div",{"data-opened":s.value},[e.createElementVNode("button",{onClick:n,class:e.normalizeClass(["p-1 w-[44px] h-[44px] rounded-md hover:bg-secondary-10",{"bg-secondary-10":s.value}])},[e.createVNode(e.unref(Ee),{class:"text-secondary-base w-full p-1 hover:text-blue-600 m-auto"})],2),s.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"fixed top-0 left-0 w-screen h-screen z-10 bg-black/10 flex flex-col",onClick:n})):e.createCommentVNode("",!0),s.value?(e.openBlock(),e.createElementBlock("div",Ce,[e.createElementVNode("div",$e,[e.createElementVNode("div",Ae,e.toDisplayString((v=l.help)==null?void 0:v.label),1),e.createVNode(e.unref(F.render),{class:"w-6 cursor-pointer",onClick:n})]),(p=l.help)!=null&&p.helpButton?(e.openBlock(),e.createElementBlock("div",Se,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((_=l.help)==null?void 0:_.helpButton,r=>(e.openBlock(),e.createElementBlock("button",{key:r.name,onClick:w=>g(r.link),class:"grid justify-center space-y-2 hover:bg-slate-100 p-3 rounded-xl hover:text-blue-500"},[e.createElementVNode("div",null,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(r==null?void 0:r.icon),{class:"w-[16px] h-[16px] mx-auto"}))]),e.createElementVNode("span",Le,e.toDisplayString(r.name),1)],8,Fe))),128))])):e.createCommentVNode("",!0),e.createElementVNode("div",De,[e.createElementVNode("div",Me,[(V=l.help)!=null&&V.helpList&&l.help.helpList.length?(e.openBlock(),e.createElementBlock("div",ze,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.value,r=>(e.openBlock(),e.createElementBlock("div",{key:r.id,onClick:w=>g(r.link),class:"flex justify-between items-center rounded-lg hover:bg-slate-100 p-2 cursor-pointer hover:text-[#4089E0]"},[e.createElementVNode("div",Oe,[e.createElementVNode("div",Pe,[e.createElementVNode("p",qe,e.toDisplayString(r.name),1),e.createElementVNode("p",He,e.toDisplayString(r.category),1)])])],8,je))),128))])):e.createCommentVNode("",!0)])]),(N=l.help)!=null&&N.helpList&&l.help.helpList.length<0?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:k,class:"h-11 w-full bg-[#FAFAFA] hover:bg-slate-100 p-3 text-[#525B66] rounded-b-xl text-xs hover:text-[#4089E0] font-medium"},e.toDisplayString(m.value?l.help.buttNoMore:l.help.buttMore),1)):e.createCommentVNode("",!0),e.createElementVNode("div",Ie,[(C=l.help)!=null&&C.video?(e.openBlock(),e.createElementBlock("div",Te,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.help.video,r=>(e.openBlock(),e.createElementBlock("button",{key:r.id,onClick:w=>g(r.link),class:"flex items-center space-x-3 mt-2 w-full bg-[#FAFAFA] hover:bg-slate-100 p-4 text-[#525B66] rounded-lg text-sm hover:text-[#4089E0] font-medium"},[e.createVNode(e.unref(Ve),{class:"w-6 h-6"}),e.createElementVNode("span",null,e.toDisplayString(r.name),1)],8,Re))),128))])):e.createCommentVNode("",!0),($=l.help)!=null&&$.socialList?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:y,class:"flex items-center justify-between mt-2 w-full bg-[#FAFAFA] hover:bg-slate-100 p-4 text-[#525B66] rounded-lg text-sm hover:text-[#4089E0] font-medium"},[e.createElementVNode("div",We,[e.createVNode(e.unref(O),{class:"w-6 h-6"}),e.createElementVNode("span",null,e.toDisplayString(l.help.socialButt),1)]),e.createVNode(e.unref(i),{class:"w-4 h-4"})])):e.createCommentVNode("",!0),e.createElementVNode("div",Ue,[f.value?(e.openBlock(),e.createElementBlock("div",Xe,[e.createElementVNode("div",Ge,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((A=l.help)==null?void 0:A.socialList,r=>(e.openBlock(),e.createElementBlock("button",{key:r.id,onClick:w=>g(r.link),class:"flex items-center space-x-2 p-2 rounded-lg hover:bg-slate-100 hover:text-blue-500 tooltip"},[e.createElementVNode("div",null,[r.name?(e.openBlock(),e.createElementBlock("div",Ke,e.toDisplayString(r.name),1)):e.createCommentVNode("",!0),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(r==null?void 0:r.icon),{class:"w-[24px] h-[24px] mx-auto"}))])],8,Je))),128))])])):e.createCommentVNode("",!0)]),e.createElementVNode("div",Qe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((S=l.help)==null?void 0:S.termsOffer,r=>(e.openBlock(),e.createElementBlock("a",{key:r.name,target:"_blank",href:r.link,class:"ml-2 flex items-center rounded-lg text-xs hover:underline font-extralight cursor-pointer"},[e.createElementVNode("div",Ze,[e.createElementVNode("div",et,[e.createElementVNode("span",tt,e.toDisplayString(r.name),1)])])],8,Ye))),128))])])])):e.createCommentVNode("",!0)],8,Ne)}}});const nt=L._export_sfc(ot,[["__scopeId","data-v-32f18d17"]]);exports.OneBrowserMenu=Be;exports.OneHelpMenu=nt;exports._sfc_main=D;exports._sfc_main$1=b;exports._sfc_main$2=ee;exports.browserMenuProps=M;exports.render=E;exports.render$1=B;exports.render$2=j;exports.render$3=O;exports.render$4=z;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("../OneHelpMenu-c39e5368.cjs"),e=require("vue"),g=require("../_plugin-vue_export-helper-f246444f.cjs"),u=require("../common/index.cjs");require("../XMarkIcon-f94baa4c.cjs");require("../index-9f8735d9.cjs");const v={},k={class:"border-t border-secondary-stroke my-1"};function x(i,o){return e.openBlock(),e.createElementBlock("div",k)}const b=g._export_sfc(v,[["render",x]]),V=["onClick"],E={class:"grid"},N={class:"font-semibold px-3"},w={class:"rounded-lg m-3 border"},B={class:"space-x-2 flex items-center px-3 py-2",style:{width:"300px"}},A={class:"flex-shrink-0"},C={class:"w-full text-left"},O={class:"flex-shrink-0"},D={class:"px-3 py-2"},S={class:"text-secondary-content text-left pb-1 text-sm uppercase"},M={key:0,class:"space-y-2"},$=["onClick"],z={class:"pl-2"},F={class:"text-sm mt-1"},q={class:"text-xs mt-1"},m=3,H=e.defineComponent({__name:"OneBrowserMenuGrid",props:n.browserMenuProps,setup(i){const o=i,_=()=>{typeof o.onChange=="function"&&o.onChange()},r=e.ref(!1),h=e.computed(()=>o.apps?r.value?o.apps:o.apps.slice(0,m):[]),y=()=>{r.value=!r.value},f=t=>{typeof o.onApp=="function"&&o.onApp(t)};return(t,l)=>(e.openBlock(),e.createBlock(n._sfc_main,{stick:"right"},{button:e.withCtx(({onToggle:c,isExpanded:a})=>[e.createElementVNode("button",{onClick:c,class:e.normalizeClass(["p-1 rounded-md hover:bg-secondary-10",[a?"bg-secondary-25":""]])},[e.createVNode(e.unref(n.render$4),{class:"text-secondary-base",style:e.normalizeStyle(`width: ${t.iconSize}px; height: ${t.iconSize}px`)},null,8,["style"])],10,V)]),menu:e.withCtx(()=>{var c,a,d,p;return[e.createElementVNode("div",E,[e.createElementVNode("div",N,e.toDisplayString((c=t.workspace)==null?void 0:c.title),1),e.createElementVNode("div",w,[e.createElementVNode("div",B,[e.createElementVNode("div",A,[e.createVNode(u.OneAvatar,{text:((a=t.workspace)==null?void 0:a.name)||"",src:(d=t.workspace)==null?void 0:d.photo_url,size:44,rounded:!1,class:"mx-auto"},null,8,["text","src"])]),e.createElementVNode("div",C,e.toDisplayString((p=t.workspace)==null?void 0:p.name),1),e.createElementVNode("div",O,[e.createElementVNode("button",{class:"text-sm border border-secondary-stroke rounded px-2 py-0.5 text-secondary-content hover:text-primary-content",onClick:_},e.toDisplayString(t.changeLabel),1)])]),l[0]||(l[0]=e.createElementVNode("hr",null,null,-1)),l[1]||(l[1]=e.createElementVNode("div",{class:"text-center py-2",style:{"font-size":"10px"}},"Керувати робочими просторами",-1))])]),e.createElementVNode("div",D,[e.createElementVNode("div",S,e.toDisplayString(t.appsTitle),1),e.createElementVNode("div",null,[t.apps&&t.apps.length?(e.openBlock(),e.createElementBlock("div",M,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,s=>(e.openBlock(),e.createElementBlock("div",{key:s.id,onClick:G=>f(s),class:"flex items-center rounded-lg hover:bg-secondary-10 border p-2 bg-[#FAFAFA] cursor-pointer"},[e.createVNode(u.OneAvatar,{text:s.name,src:s.photo_url,size:44,rounded:!1},null,8,["text","src"]),e.createElementVNode("div",z,[e.createElementVNode("p",F,e.toDisplayString(s.name),1),e.createElementVNode("p",q,e.toDisplayString(s.short),1)])],8,$))),128))])):e.createCommentVNode("",!0),t.apps&&t.apps.length>m?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:y,class:"mt-2 w-full bg-[#FAFAFA] hover:bg-secondary-10 p-2 rounded-lg mb-5 text-xs"},e.toDisplayString(r.value?"Приховати":"Дивитися всі"),1)):e.createCommentVNode("",!0)])])]}),_:1}))}});exports.OneBrowserMenu=n.OneBrowserMenu;exports.OneDropdown=n._sfc_main;exports.OneDropdownItem=n._sfc_main$1;exports.OneHelpMenu=n.OneHelpMenu;exports.OneUserMenu=n._sfc_main$2;exports.OneBrowserMenuGrid=H;exports.OneDropdownDivider=b;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("../OneHelpMenu-eb183c47.cjs"),e=require("vue"),g=require("../_plugin-vue_export-helper-f246444f.cjs"),u=require("../common/index.cjs");require("../XMarkIcon-f94baa4c.cjs");require("../index-9f8735d9.cjs");const v={},k={class:"border-t border-secondary-stroke my-1"};function x(i,o){return e.openBlock(),e.createElementBlock("div",k)}const b=g._export_sfc(v,[["render",x]]),V=["onClick"],E={class:"grid"},N={class:"font-semibold px-3"},w={class:"rounded-lg m-3 border"},B={class:"space-x-2 flex items-center px-3 py-2",style:{width:"300px"}},A={class:"flex-shrink-0"},C={class:"w-full text-left"},O={class:"flex-shrink-0"},D={class:"px-3 py-2"},S={class:"text-secondary-content text-left pb-1 text-sm uppercase"},M={key:0,class:"space-y-2"},$=["onClick"],z={class:"pl-2"},F={class:"text-sm mt-1"},q={class:"text-xs mt-1"},m=3,H=e.defineComponent({__name:"OneBrowserMenuGrid",props:n.browserMenuProps,setup(i){const o=i,_=()=>{typeof o.onChange=="function"&&o.onChange()},r=e.ref(!1),h=e.computed(()=>o.apps?r.value?o.apps:o.apps.slice(0,m):[]),y=()=>{r.value=!r.value},f=t=>{typeof o.onApp=="function"&&o.onApp(t)};return(t,l)=>(e.openBlock(),e.createBlock(n._sfc_main,{stick:"right"},{button:e.withCtx(({onToggle:c,isExpanded:a})=>[e.createElementVNode("button",{onClick:c,class:e.normalizeClass(["p-1 rounded-md hover:bg-secondary-10",[a?"bg-secondary-25":""]])},[e.createVNode(e.unref(n.render$4),{class:"text-secondary-base",style:e.normalizeStyle(`width: ${t.iconSize}px; height: ${t.iconSize}px`)},null,8,["style"])],10,V)]),menu:e.withCtx(()=>{var c,a,d,p;return[e.createElementVNode("div",E,[e.createElementVNode("div",N,e.toDisplayString((c=t.workspace)==null?void 0:c.title),1),e.createElementVNode("div",w,[e.createElementVNode("div",B,[e.createElementVNode("div",A,[e.createVNode(u.OneAvatar,{text:((a=t.workspace)==null?void 0:a.name)||"",src:(d=t.workspace)==null?void 0:d.photo_url,size:44,rounded:!1,class:"mx-auto"},null,8,["text","src"])]),e.createElementVNode("div",C,e.toDisplayString((p=t.workspace)==null?void 0:p.name),1),e.createElementVNode("div",O,[e.createElementVNode("button",{class:"text-sm border border-secondary-stroke rounded px-2 py-0.5 text-secondary-content hover:text-primary-content",onClick:_},e.toDisplayString(t.changeLabel),1)])]),l[0]||(l[0]=e.createElementVNode("hr",null,null,-1)),l[1]||(l[1]=e.createElementVNode("div",{class:"text-center py-2",style:{"font-size":"10px"}},"Керувати робочими просторами",-1))])]),e.createElementVNode("div",D,[e.createElementVNode("div",S,e.toDisplayString(t.appsTitle),1),e.createElementVNode("div",null,[t.apps&&t.apps.length?(e.openBlock(),e.createElementBlock("div",M,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,s=>(e.openBlock(),e.createElementBlock("div",{key:s.id,onClick:G=>f(s),class:"flex items-center rounded-lg hover:bg-secondary-10 border p-2 bg-[#FAFAFA] cursor-pointer"},[e.createVNode(u.OneAvatar,{text:s.name,src:s.photo_url,size:44,rounded:!1},null,8,["text","src"]),e.createElementVNode("div",z,[e.createElementVNode("p",F,e.toDisplayString(s.name),1),e.createElementVNode("p",q,e.toDisplayString(s.short),1)])],8,$))),128))])):e.createCommentVNode("",!0),t.apps&&t.apps.length>m?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:y,class:"mt-2 w-full bg-[#FAFAFA] hover:bg-secondary-10 p-2 rounded-lg mb-5 text-xs"},e.toDisplayString(r.value?"Приховати":"Дивитися всі"),1)):e.createCommentVNode("",!0)])])]}),_:1}))}});exports.OneBrowserMenu=n.OneBrowserMenu;exports.OneDropdown=n._sfc_main;exports.OneDropdownItem=n._sfc_main$1;exports.OneHelpMenu=n.OneHelpMenu;exports.OneUserMenu=n._sfc_main$2;exports.OneBrowserMenuGrid=H;exports.OneDropdownDivider=b;
@@ -1,5 +1,5 @@
1
- import { g as w, _ as A, h as C } from "../OneHelpMenu-260fea46.js";
2
- import { O as pe, a as ue, c as me, b as he } from "../OneHelpMenu-260fea46.js";
1
+ import { g as w, _ as A, h as C } from "../OneHelpMenu-00822d7e.js";
2
+ import { O as pe, a as ue, c as me, b as he } from "../OneHelpMenu-00822d7e.js";
3
3
  import { openBlock as r, createElementBlock as l, defineComponent as O, ref as z, computed as F, createBlock as $, withCtx as _, createElementVNode as e, normalizeClass as B, createVNode as p, unref as M, normalizeStyle as D, toDisplayString as o, Fragment as S, renderList as V, createCommentVNode as f } from "vue";
4
4
  import { _ as N } from "../_plugin-vue_export-helper-dad06003.js";
5
5
  import { OneAvatar as y } from "../common/index.js";
package/dist/index.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("./index-9f8735d9.cjs"),f=require("./card/index.cjs"),p=require("./form/index.cjs"),m=require("./OneHelpMenu-c39e5368.cjs"),_=require("./dropdown/index.cjs"),x=require("./common/index.cjs"),e=require("vue"),y=require("./_plugin-vue_export-helper-f246444f.cjs");require("./XMarkIcon-f94baa4c.cjs");const C={color:{type:String,default:"red"},size:{type:String,default:"sm"},text:{type:String,default:""},variant:{type:String,default:"indicators"},bargeVariant:{type:String,default:"stand"}},b={class:"px-1 font-semibold",style:{color:"white"}},h=e.defineComponent({__name:"OneIndicators",props:{...C},setup(c){const t=c,r=e.computed(()=>{switch(t.color){case"green":return"#22c55e";case"blue":return"#3b82f6";case"red":return"#ef4444";case"yellow":return"#eab308";default:return"#E3ECF2"}}),u=e.computed(()=>{let n="",s="",o;return t.text?t.size==="sm"?(s="min-w-[12px]",o="textSm"):t.size==="md"?(s="min-w-[16px]",o="textMd"):t.size==="lg"&&(s="min-w-[20px]",o="textLg"):t.size==="sm"?n="w-3 min-w-[12px]":t.size==="lg"?n="w-5 min-w-[20px]":t.size==="md"&&(n="w-4 min-w-[16px]"),`${n} ${o} ${s} h-${t.size==="sm"?3:t.size==="lg"?5:4}`}),i=e.computed(()=>{let n="",s="",o;return t.text?t.size==="sm"?(s="min-w-[44px]",o="textMd"):t.size==="md"?(s="min-w-[58px]",o="text10"):t.size==="lg"&&(s="min-w-[68px]",o="text-sm"):t.size==="sm"?n="min-w-[44px]":t.size==="lg"?n="min-w-[68px]":t.size==="md"&&(n="min-w-[58px]"),`${n} ${o} ${s} h-${t.size==="sm"?5:t.size==="lg"?7:6}`}),d=e.computed(()=>{const n=t.bargeVariant==="stand"?"1A":"",s=t.bargeVariant==="stand"?"1px solid":"none";return{backgroundColor:`${r.value}${n}`,border:s,borderColor:r.value}});return(n,s)=>t.variant==="indicators"?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["rounded-full border border-white flex items-center justify-center w-max",[u.value]]),style:e.normalizeStyle({backgroundColor:r.value})},[e.createElementVNode("p",b,e.toDisplayString(n.text),1)],6)):t.variant==="barge"?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["rounded px-2 py-1 text-center w-max",[i.value,{"rounded-full":n.bargeVariant==="round",rounded:n.bargeVariant!=="round"}]]),style:e.normalizeStyle([d.value])},[e.createElementVNode("p",{class:"font-medium",style:e.normalizeStyle({color:n.bargeVariant!=="stand"?"white":r.value})},e.toDisplayString(n.text),5)],6)):e.createCommentVNode("",!0)}});const w=y._export_sfc(h,[["__scopeId","data-v-3d58c944"]]),z=e.defineComponent({__name:"OneLabel",props:{size:{type:String,default:"standard"},color:{type:String,default:"blue"},filled:{type:Boolean,default:!0},text:{type:String,default:"Label"}},setup(c){const t=c,r=e.ref(!1),u=e.computed(()=>{const n="inline-flex items-center cursor-pointer transition-opacity rounded-full",s=t.size==="mini"?"text-xs px-3 py-1":"text-sm px-4 py-2",o=t.filled?`${t.color}-filled`:`${t.color}-border`;return`${n} ${s} ${o} ${r.value?"opacity-80":"hover:opacity-90"}`}),i=()=>{r.value=!0},d=()=>{r.value=!1};return(n,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(u.value),onMousedown:i,onMouseup:d,onMouseleave:d},[e.createElementVNode("span",null,e.toDisplayString(c.text),1)],34))}});const $=e.defineComponent({__name:"OneCollapse",props:{blockClass:{},titleClass:{},defaultOpen:{type:Boolean}},setup(c){const t=c,{blockClass:r,titleClass:u,defaultOpen:i}=e.toRefs(t),d=e.ref(null),n=e.ref((i==null?void 0:i.value)??!1),s=()=>{n.value=!n.value},o=l=>{const a=l;a.style.height="0"},v=l=>{const a=l;a.style.height=`${l.scrollHeight}px`,a.style.transition="height 0.3s ease"},O=l=>{const a=l;a.style.height=`${l.scrollHeight}px`,e.nextTick(()=>{a.style.height="0",a.style.transition="height 0.3s ease"})};return(l,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(r))},[e.createElementVNode("div",{onClick:s,class:e.normalizeClass(e.unref(u))},[e.renderSlot(l.$slots,"title",{isOpen:n.value},void 0,!0)],2),e.createVNode(e.Transition,{name:"accordion",onBeforeEnter:o,onEnter:v,onLeave:O},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{ref_key:"content",ref:d},[e.renderSlot(l.$slots,"default",{},void 0,!0)],512),[[e.vShow,n.value]])]),_:3})],2))}});const S=y._export_sfc($,[["__scopeId","data-v-1c2c0817"]]);exports.OneButton=g._sfc_main;exports.OneCard=f.OneCard;exports.OneCardBody=f.OneCardBody;exports.OneCardFooter=f.OneCardFooter;exports.OneCardHeader=f.OneCardHeader;exports.OneForm=p.OneForm;exports.OneFormFeedback=p.OneFormFeedback;exports.OneFormField=p.OneFormField;exports.OneFormInput=p.OneFormInput;exports.OneFormLabel=p.OneFormLabel;exports.OneBrowserMenu=m.OneBrowserMenu;exports.OneDropdown=m._sfc_main;exports.OneDropdownItem=m._sfc_main$1;exports.OneHelpMenu=m.OneHelpMenu;exports.OneUserMenu=m._sfc_main$2;exports.OneBrowserMenuGrid=_.OneBrowserMenuGrid;exports.OneDropdownDivider=_.OneDropdownDivider;exports.OneAvatar=x.OneAvatar;exports.OneCollapse=S;exports.OneIndicators=w;exports.OneLabel=z;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("./index-9f8735d9.cjs"),f=require("./card/index.cjs"),p=require("./form/index.cjs"),m=require("./OneHelpMenu-eb183c47.cjs"),_=require("./dropdown/index.cjs"),x=require("./common/index.cjs"),e=require("vue"),y=require("./_plugin-vue_export-helper-f246444f.cjs");require("./XMarkIcon-f94baa4c.cjs");const C={color:{type:String,default:"red"},size:{type:String,default:"sm"},text:{type:String,default:""},variant:{type:String,default:"indicators"},bargeVariant:{type:String,default:"stand"}},b={class:"px-1 font-semibold",style:{color:"white"}},h=e.defineComponent({__name:"OneIndicators",props:{...C},setup(c){const t=c,r=e.computed(()=>{switch(t.color){case"green":return"#22c55e";case"blue":return"#3b82f6";case"red":return"#ef4444";case"yellow":return"#eab308";default:return"#E3ECF2"}}),u=e.computed(()=>{let n="",s="",o;return t.text?t.size==="sm"?(s="min-w-[12px]",o="textSm"):t.size==="md"?(s="min-w-[16px]",o="textMd"):t.size==="lg"&&(s="min-w-[20px]",o="textLg"):t.size==="sm"?n="w-3 min-w-[12px]":t.size==="lg"?n="w-5 min-w-[20px]":t.size==="md"&&(n="w-4 min-w-[16px]"),`${n} ${o} ${s} h-${t.size==="sm"?3:t.size==="lg"?5:4}`}),i=e.computed(()=>{let n="",s="",o;return t.text?t.size==="sm"?(s="min-w-[44px]",o="textMd"):t.size==="md"?(s="min-w-[58px]",o="text10"):t.size==="lg"&&(s="min-w-[68px]",o="text-sm"):t.size==="sm"?n="min-w-[44px]":t.size==="lg"?n="min-w-[68px]":t.size==="md"&&(n="min-w-[58px]"),`${n} ${o} ${s} h-${t.size==="sm"?5:t.size==="lg"?7:6}`}),d=e.computed(()=>{const n=t.bargeVariant==="stand"?"1A":"",s=t.bargeVariant==="stand"?"1px solid":"none";return{backgroundColor:`${r.value}${n}`,border:s,borderColor:r.value}});return(n,s)=>t.variant==="indicators"?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["rounded-full border border-white flex items-center justify-center w-max",[u.value]]),style:e.normalizeStyle({backgroundColor:r.value})},[e.createElementVNode("p",b,e.toDisplayString(n.text),1)],6)):t.variant==="barge"?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["rounded px-2 py-1 text-center w-max",[i.value,{"rounded-full":n.bargeVariant==="round",rounded:n.bargeVariant!=="round"}]]),style:e.normalizeStyle([d.value])},[e.createElementVNode("p",{class:"font-medium",style:e.normalizeStyle({color:n.bargeVariant!=="stand"?"white":r.value})},e.toDisplayString(n.text),5)],6)):e.createCommentVNode("",!0)}});const w=y._export_sfc(h,[["__scopeId","data-v-3d58c944"]]),z=e.defineComponent({__name:"OneLabel",props:{size:{type:String,default:"standard"},color:{type:String,default:"blue"},filled:{type:Boolean,default:!0},text:{type:String,default:"Label"}},setup(c){const t=c,r=e.ref(!1),u=e.computed(()=>{const n="inline-flex items-center cursor-pointer transition-opacity rounded-full",s=t.size==="mini"?"text-xs px-3 py-1":"text-sm px-4 py-2",o=t.filled?`${t.color}-filled`:`${t.color}-border`;return`${n} ${s} ${o} ${r.value?"opacity-80":"hover:opacity-90"}`}),i=()=>{r.value=!0},d=()=>{r.value=!1};return(n,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(u.value),onMousedown:i,onMouseup:d,onMouseleave:d},[e.createElementVNode("span",null,e.toDisplayString(c.text),1)],34))}});const $=e.defineComponent({__name:"OneCollapse",props:{blockClass:{},titleClass:{},defaultOpen:{type:Boolean}},setup(c){const t=c,{blockClass:r,titleClass:u,defaultOpen:i}=e.toRefs(t),d=e.ref(null),n=e.ref((i==null?void 0:i.value)??!1),s=()=>{n.value=!n.value},o=l=>{const a=l;a.style.height="0"},v=l=>{const a=l;a.style.height=`${l.scrollHeight}px`,a.style.transition="height 0.3s ease"},O=l=>{const a=l;a.style.height=`${l.scrollHeight}px`,e.nextTick(()=>{a.style.height="0",a.style.transition="height 0.3s ease"})};return(l,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(r))},[e.createElementVNode("div",{onClick:s,class:e.normalizeClass(e.unref(u))},[e.renderSlot(l.$slots,"title",{isOpen:n.value},void 0,!0)],2),e.createVNode(e.Transition,{name:"accordion",onBeforeEnter:o,onEnter:v,onLeave:O},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{ref_key:"content",ref:d},[e.renderSlot(l.$slots,"default",{},void 0,!0)],512),[[e.vShow,n.value]])]),_:3})],2))}});const S=y._export_sfc($,[["__scopeId","data-v-1c2c0817"]]);exports.OneButton=g._sfc_main;exports.OneCard=f.OneCard;exports.OneCardBody=f.OneCardBody;exports.OneCardFooter=f.OneCardFooter;exports.OneCardHeader=f.OneCardHeader;exports.OneForm=p.OneForm;exports.OneFormFeedback=p.OneFormFeedback;exports.OneFormField=p.OneFormField;exports.OneFormInput=p.OneFormInput;exports.OneFormLabel=p.OneFormLabel;exports.OneBrowserMenu=m.OneBrowserMenu;exports.OneDropdown=m._sfc_main;exports.OneDropdownItem=m._sfc_main$1;exports.OneHelpMenu=m.OneHelpMenu;exports.OneUserMenu=m._sfc_main$2;exports.OneBrowserMenuGrid=_.OneBrowserMenuGrid;exports.OneDropdownDivider=_.OneDropdownDivider;exports.OneAvatar=x.OneAvatar;exports.OneCollapse=S;exports.OneIndicators=w;exports.OneLabel=z;
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { _ as G } from "./index-f8afb6b6.js";
2
2
  import { OneCard as q, OneCardBody as J, OneCardFooter as K, OneCardHeader as Q } from "./card/index.js";
3
3
  import { OneForm as Y, OneFormFeedback as Z, OneFormField as ee, OneFormInput as te, OneFormLabel as se } from "./form/index.js";
4
- import { O as oe, _ as re, a as le, c as ae, b as ie } from "./OneHelpMenu-260fea46.js";
4
+ import { O as oe, _ as re, a as le, c as ae, b as ie } from "./OneHelpMenu-00822d7e.js";
5
5
  import { OneBrowserMenuGrid as de, OneDropdownDivider as ue } from "./dropdown/index.js";
6
6
  import { OneAvatar as me } from "./common/index.js";
7
7
  import { defineComponent as g, computed as u, openBlock as f, createElementBlock as x, normalizeClass as p, normalizeStyle as _, createElementVNode as m, toDisplayString as v, createCommentVNode as z, ref as y, toRefs as $, unref as h, renderSlot as b, createVNode as S, Transition as k, withCtx as E, withDirectives as B, vShow as F, nextTick as M } from "vue";
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),v=require("../OneHelpMenu-c39e5368.cjs"),q=require("../_plugin-vue_export-helper-f246444f.cjs"),A=require("../index-9f8735d9.cjs"),he=require("../XMarkIcon-f94baa4c.cjs");require("../common/index.cjs");const ue={items:{required:!0,type:Array},slim:{type:Boolean,default:!1},isMobile:{type:Boolean,default:!1},app:{type:Object},minimizedWidth:{type:String,default:"4rem"},width:{type:String,default:"16rem"},minimized:{type:Boolean,default:!1},hoverable:{type:Boolean,default:!1},modelValue:{type:Boolean,default:!0},news:{type:Object}},ve={route:{required:!1,type:[Object,String]},routeName:{required:!1,type:String},handler:{required:!1,type:Function,default(){return()=>{}}},isMobile:{type:Boolean,default:!1},href:{type:String},app:{type:Object},label:{type:String,required:!0},labelTop:{type:String,default:""},icon:{type:[Function,Object]},exact:{type:Boolean,required:!1,default:!1},slim:{type:Boolean,default:!0},open:{type:Boolean,default:!1},subItems:{type:Array,required:!1}},ke={sidebarItems:ue.items,logoSrc:{type:String},helpUrl:{type:String},app:{type:Object},user:{type:Object,required:!0},labels:{type:Object},apps:{type:Array},workspaces:{type:Array},workspace:{type:Object},showHeadre:{type:Boolean,default:!0},yourApps:{type:Object},news:{type:Object},handlers:{type:Object},improveTariff:{type:Object},help:{type:Object},menu:{type:Array,default:()=>[]}};function we(i,c){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.8",stroke:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"})])}function ye(i,c){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.8",stroke:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8.625 9.75a.375.375 0 11-.75 0 .375.375 0 01.75 0zm0 0H8.25m4.125 0a.375.375 0 11-.75 0 .375.375 0 01.75 0zm0 0H12m4.125 0a.375.375 0 11-.75 0 .375.375 0 01.75 0zm0 0h-.375m-13.5 3.01c0 1.6 1.123 2.994 2.707 3.227 1.087.16 2.185.283 3.293.369V21l4.184-4.183a1.14 1.14 0 01.778-.332 48.294 48.294 0 005.83-.498c1.585-.233 2.708-1.626 2.708-3.228V6.741c0-1.602-1.123-2.995-2.707-3.228A48.394 48.394 0 0012 3c-2.392 0-4.744.175-7.043.513C3.373 3.746 2.25 5.14 2.25 6.741v6.018z"})])}const xe=["href"],be={class:"flex flex-nowrap items-center w-full h-[24px]"},ge={key:0,class:"w-[44px] flex-shrink-0"},Be={class:"whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full"},Ve={class:"py-[8px] pl-0 pr-0"},Ee={class:"flex flex-nowrap items-center w-full h-[24px]"},Le={key:0,class:"w-[44px] flex-shrink-0"},Ne={class:"whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full"},_e={class:"py-[8px] pl-0 pr-0"},$e={key:1,class:"p-3"},Se={class:"flex flex-nowrap items-center w-full h-[24px] mb-0.5"},De={key:0,class:"w-[44px] flex-shrink-0"},Me={class:"whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full"},ze={class:"py-[8px] pl-0 pr-0"},Oe={key:1,class:"p-3"},Te=["href"],je={class:"flex items-center justify-between min-w-full h-[24px]"},He={class:"text-xs"},Ie={key:0,class:"pr-1"},Fe={class:"text-xs"},Pe={key:0,class:"pr-3"},Ae=e.defineComponent({__name:"OneSidebarLink",props:ve,emits:["update-collapsed"],setup(i,{emit:c}){const l=i,a=c,C=e.computed(()=>l.href??!1),u=e.computed(()=>d(l)),d=n=>n.route?n.route:n.routeName?{name:n.routeName}:"",f=e.ref(l.open),g=()=>{f.value=!f.value},k=(n,h)=>{l.subItems&&l.subItems.length>0&&!h&&(n.preventDefault(),g()),(h||!l.subItems||l.subItems.length===0)&&l.isMobile&&a("update-collapsed")};return(n,h)=>{const w=e.resolveComponent("RouterLink");return e.openBlock(),e.createElementBlock(e.Fragment,null,[n.labelTop?(e.openBlock(),e.createElementBlock("p",{key:0,style:{"font-size":"10px"},class:e.normalizeClass([{"text-center h-[15px]":n.slim},"text-[#a1a5b0] px-2 pt-0 font-medium"])},e.toDisplayString(n.slim?"":n.labelTop),3)):e.createCommentVNode("",!0),C.value?(e.openBlock(),e.createElementBlock("a",{key:1,href:C.value,class:e.normalizeClass(["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",[n.slim?"w-[44px] h-[44px]":"h-[44px] w-full"]]),onClick:k},[e.createElementVNode("div",be,[n.icon?(e.openBlock(),e.createElementBlock("div",ge,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.icon),{class:"w-[24px] h-[24px] mx-auto"}))])):e.createCommentVNode("",!0),e.createElementVNode("div",Be,[e.createElementVNode("span",Ve,e.toDisplayString(n.label),1)]),l.subItems&&l.subItems.length>0?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["ml-auto",[n.slim?"hidden":""]])},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(f.value?e.unref(v.render):e.unref(v.render$1)),{class:"w-[16px] h-[16px]"}))],2)):e.createCommentVNode("",!0)])],10,xe)):e.createCommentVNode("",!0),!C.value&&u.value?(e.openBlock(),e.createBlock(w,{key:2,to:u.value,class:e.normalizeClass(["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",[n.slim?"w-[44px] h-[44px]":"h-[44px] w-full"]]),"active-class":"bg-primary-10 !text-primary-base","exact-active-class":"bg-primary-10 !text-primary-base",exact:n.exact,onClick:e.withModifiers(k,["prevent"])},{default:e.withCtx(()=>[e.createElementVNode("div",Ee,[n.icon?(e.openBlock(),e.createElementBlock("div",Le,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.icon),{class:"w-[24px] h-[24px] mx-auto"}))])):e.createCommentVNode("",!0),e.createElementVNode("div",Ne,[e.createElementVNode("span",_e,e.toDisplayString(n.label),1)]),l.subItems&&l.subItems.length>0&&!n.slim?(e.openBlock(),e.createElementBlock("div",$e,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(f.value?e.unref(v.render):e.unref(v.render$1)),{class:"w-[16px] h-[16px]"}))])):e.createCommentVNode("",!0)])]),_:1},8,["to","exact","class"])):e.createCommentVNode("",!0),!C.value&&!u.value?(e.openBlock(),e.createElementBlock("span",{key:3,onClick:e.withModifiers(k,["prevent"]),class:e.normalizeClass([[n.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]"])},[e.createElementVNode("div",Se,[n.icon?(e.openBlock(),e.createElementBlock("div",De,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.icon),{class:"w-[24px] h-[24px] mx-auto"}))])):e.createCommentVNode("",!0),e.createElementVNode("div",Me,[e.createElementVNode("span",ze,e.toDisplayString(n.label),1)]),l.subItems&&l.subItems.length>0&&!n.slim?(e.openBlock(),e.createElementBlock("div",Oe,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(f.value?e.unref(v.render):e.unref(v.render$1)),{class:"w-[16px] h-[16px]"}))])):e.createCommentVNode("",!0)])],2)):e.createCommentVNode("",!0),f.value&&l.subItems?(e.openBlock(),e.createElementBlock("div",{key:4,class:e.normalizeClass([n.slim?"hidden":"pl-[36px] pr-3"])},[e.createElementVNode("div",{class:e.normalizeClass([(n.slim,"")])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.subItems,t=>(e.openBlock(),e.createElementBlock("div",{key:t.label,class:e.normalizeClass([(n.slim,"")])},[t.href?(e.openBlock(),e.createElementBlock("a",{key:0,href:t.href,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]"},[e.createElementVNode("div",je,[e.createElementVNode("span",He,e.toDisplayString(t.label),1),t.icon?(e.openBlock(),e.createElementBlock("div",Ie,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.icon),{class:"w-[15px] h-[15px] mx-auto"}))])):e.createCommentVNode("",!0)])],8,Te)):(e.openBlock(),e.createBlock(w,{key:1,to:d(t),onClick:h[0]||(h[0]=e.withModifiers(r=>k(r,!0),["prevent"])),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]",exact:n.exact,"active-class":"bg-primary-10 !text-primary-base","exact-active-class":"bg-primary-10 !text-primary-base"},{default:e.withCtx(()=>[e.createElementVNode("span",Fe,e.toDisplayString(t.label),1),t.icon?(e.openBlock(),e.createElementBlock("div",Pe,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.icon),{class:"w-[20px] h-[20px] mx-auto"}))])):e.createCommentVNode("",!0)]),_:2},1032,["to","exact"]))],2))),128))],2)],2)):e.createCommentVNode("",!0)],64)}}}),qe={},We={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"};function Re(i,c){return e.openBlock(),e.createElementBlock("svg",We,c[0]||(c[0]=[e.createElementVNode("path",{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",fill:"currentColor"},null,-1),e.createElementVNode("path",{d:"M15.7294 11.3876C16.2011 11.2795 16.7453 10.9769 16.7816 10.0547C16.7816 9.36299 16.5276 8.90188 16.1285 8.57766C15.6569 8.14537 14.9675 8.03729 14.3797 8.03729H11.4626V13.9309C11.4626 14.6802 11.6441 15.2061 12.0141 15.5087C12.3842 15.8113 13.0155 15.9626 13.8935 15.9626H14.9675C15.6859 15.9626 16.2374 15.7681 16.6365 15.3718C17.0428 14.9756 17.2388 14.4136 17.2388 13.6787C17.2388 12.7925 16.9993 11.6758 15.7294 11.3876ZM13.0228 9.42783L14.2564 9.39181C14.8296 9.39181 15.1199 9.68 15.1199 10.2492C15.1199 10.8184 14.8296 11.1066 14.2564 11.1066L13.0228 11.1426V9.42783ZM14.8079 14.5865H14.0024C13.6541 14.5865 13.4001 14.5289 13.2405 14.4064C13.0881 14.2911 13.0155 14.075 13.0155 13.7724V12.5259H14.8079C15.1344 12.5259 15.3666 12.6196 15.49 12.8069C15.6133 12.987 15.6786 13.2536 15.6786 13.6067C15.6859 14.2551 15.3956 14.5865 14.8079 14.5865Z",fill:"currentColor"},null,-1),e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13.6437 3H10.4761C10.462 3.00738 10.4468 3.00752 10.4317 3.00766L10.4237 3.00778L10.2163 3.01067L10.1771 3.01124C10.1389 3.01181 10.1006 3.01238 10.0624 3.01238C9.85585 3.01276 9.64939 3.01797 9.44293 3.02318C9.34618 3.02562 9.24943 3.02806 9.15267 3.03C9.04934 3.03209 8.94604 3.03642 8.84277 3.04075L8.7649 3.04397C8.68023 3.04733 8.59559 3.05152 8.51098 3.05656C8.48805 3.05791 8.46519 3.06072 8.44234 3.06353L8.41144 3.0672L8.41136 3.06733L8.41135 3.06733C8.36472 3.06357 8.31825 3.06706 8.27185 3.07055L8.2508 3.07211C8.17968 3.07719 8.10867 3.08303 8.03766 3.08888L7.99014 3.09278L7.93408 3.09722C7.88146 3.10132 7.82884 3.10543 7.77638 3.111C7.67642 3.12147 7.57658 3.13307 7.47685 3.14581L7.46711 3.14705C7.35956 3.16078 7.25195 3.17451 7.14491 3.19162C6.9685 3.21996 6.79301 3.25364 6.61912 3.29514C6.39508 3.34863 6.17474 3.41407 5.95992 3.49743C5.64582 3.6192 5.35134 3.77699 5.08051 3.97818C4.85418 4.14605 4.6417 4.33183 4.44509 4.5337C4.2703 4.71309 4.10878 4.90496 3.96183 5.1078C3.77344 5.36816 3.62514 5.65018 3.50915 5.94958C3.36896 6.31155 3.2788 6.68668 3.21499 7.06866C3.19851 7.1678 3.18411 7.26735 3.17082 7.36697C3.15756 7.46541 3.14628 7.56409 3.135 7.66276L3.13307 7.67973C3.12541 7.74641 3.11884 7.81305 3.11245 7.87981L3.11091 7.89541C3.10743 7.9302 3.10394 7.96508 3.10714 8.00012L3.10716 8.0001C3.09909 8.01985 3.09789 8.04067 3.0967 8.06145L3.09602 8.07249L3.07085 8.44649L3.07007 8.45985C3.06822 8.50323 3.06651 8.54661 3.0648 8.58999C3.06098 8.68709 3.05716 8.78418 3.05165 8.88117C3.04485 9.00132 3.04236 9.12161 3.03987 9.24188C3.03793 9.33581 3.03599 9.42973 3.03199 9.52356C3.02946 9.58278 3.02895 9.64209 3.02844 9.7014L3.02804 9.74445L3.02618 9.9482C3.02519 10.0655 3.02421 10.1828 3.02245 10.3001C3.02144 10.367 3.01875 10.4338 3.01605 10.5007L3.01316 10.5745L3.01312 10.5756C3.01256 10.5885 3.01199 10.6018 3 10.6107V13.3892C3.00108 13.3909 3.00237 13.3925 3.00365 13.3942L3.00366 13.3942C3.00655 13.3979 3.00944 13.4016 3.01007 13.4057C3.01249 13.4212 3.01389 13.4369 3.01427 13.4526L3.01611 13.5092L3.01611 13.5092C3.01871 13.5887 3.0213 13.6681 3.02293 13.7476C3.02474 13.8348 3.02545 13.922 3.02545 14.0092C3.0256 14.2458 3.03197 14.4823 3.03835 14.7188L3.03835 14.7188C3.04022 14.7885 3.0421 14.8582 3.04382 14.9279C3.04659 15.0408 3.05225 15.1535 3.05791 15.2663L3.06335 15.3769C3.06897 15.4952 3.07473 15.6135 3.08203 15.7318C3.08634 15.8018 3.09212 15.8717 3.0979 15.9417L3.0979 15.9417L3.10262 15.9992L3.10453 16.0229C3.10928 16.0819 3.11403 16.1408 3.12009 16.1996C3.13141 16.3108 3.14359 16.4219 3.15661 16.5328C3.16284 16.5864 3.1703 16.6399 3.17776 16.6933L3.185 16.7455C3.20654 16.9028 3.23441 17.0589 3.26627 17.2144C3.30583 17.4093 3.35558 17.602 3.4153 17.7917C3.50677 18.0804 3.62514 18.3571 3.77815 18.6188C3.87433 18.7833 3.98454 18.9379 4.10322 19.0866C4.38114 19.4348 4.70212 19.7464 5.05849 20.0138C5.34835 20.2318 5.66471 20.4005 6.00352 20.5279C6.22982 20.6131 6.46181 20.6788 6.69755 20.7318C6.88514 20.774 7.07435 20.8079 7.2645 20.8355C7.38593 20.8534 7.50793 20.8672 7.62989 20.881L7.6304 20.8811C7.7437 20.8937 7.8571 20.9052 7.97062 20.9156C8.03986 20.9219 8.10927 20.9264 8.17868 20.931L8.21137 20.9332C8.28755 20.9383 8.36371 20.943 8.43985 20.9478L8.54613 20.9545L8.556 20.9552C8.56163 20.9556 8.56727 20.956 8.57291 20.9562L8.71929 20.9621C8.81347 20.9658 8.90765 20.9695 9.0018 20.9736C9.21881 20.9828 9.43595 20.9864 9.65309 20.99L9.74613 20.9915L9.75798 20.9914C9.77405 20.9912 9.79026 20.9909 9.80497 21H14.0598C14.1664 20.9939 14.273 20.9919 14.3797 20.9899C14.4179 20.9892 14.4561 20.9885 14.4943 20.9876C14.7149 20.9825 14.9354 20.9772 15.156 20.9696C15.2421 20.9667 15.3282 20.9618 15.4143 20.9569C15.4551 20.9546 15.4958 20.9523 15.5366 20.9502L15.5761 20.9484C15.5941 20.9477 15.6121 20.947 15.6301 20.9459C15.6439 20.945 15.6578 20.9436 15.6716 20.9421L15.6898 20.9403L15.6899 20.9402C15.701 20.9399 15.7121 20.94 15.7231 20.9392L15.7557 20.9369C15.8318 20.9315 15.9079 20.9261 15.984 20.9202C15.9957 20.9194 16.0074 20.9185 16.0192 20.9176C16.081 20.913 16.1429 20.9083 16.2046 20.9021C16.272 20.8953 16.3393 20.8876 16.4066 20.8799C16.4414 20.8759 16.4763 20.8719 16.5111 20.868C16.6378 20.8539 16.7638 20.8353 16.8896 20.8154C17.0775 20.7859 17.2638 20.7493 17.4484 20.7044C17.6789 20.6482 17.905 20.5785 18.125 20.4897C18.4165 20.3719 18.6905 20.2225 18.9436 20.0355C19.3225 19.7539 19.6587 19.4279 19.952 19.0575C20.1845 18.7646 20.3725 18.4391 20.51 18.0914C20.609 17.8414 20.6842 17.5843 20.7426 17.3223C20.8039 17.0471 20.849 16.7692 20.8805 16.4891C20.8828 16.4688 20.8852 16.4484 20.8876 16.4281C20.8909 16.3996 20.8943 16.3711 20.8974 16.3426C20.9041 16.2803 20.9108 16.2181 20.9166 16.1558C20.9179 16.143 20.9176 16.13 20.9174 16.1171C20.9174 16.1122 20.9173 16.1073 20.9173 16.1025L20.9175 16.1023L20.9216 16.0734C20.9247 16.0521 20.9277 16.0308 20.9298 16.0094C20.9345 15.9583 20.9385 15.907 20.9419 15.8557C20.9481 15.7576 20.9542 15.6594 20.9595 15.5612C20.967 15.4207 20.974 15.2801 20.9806 15.1394C20.9829 15.0903 20.9838 15.0412 20.9846 14.992C20.9853 14.9473 20.9858 14.9026 20.9863 14.8579V14.8579C20.987 14.7953 20.9877 14.7328 20.9889 14.6702C20.9899 14.6211 20.9917 14.5721 20.9973 14.5231C21.0007 14.494 21.0001 14.4644 20.9995 14.4348C20.9993 14.4218 20.999 14.4088 20.9991 14.3959V9.63092L20.9991 9.60404L20.9991 9.55038L20.9991 9.53972C20.9989 9.51204 20.9988 9.48446 20.9941 9.45682C20.9908 9.4383 20.9906 9.4192 20.9904 9.40022V9.40019L20.9903 9.38995L20.9882 9.25341C20.9872 9.18265 20.9862 9.11189 20.9847 9.04114C20.9836 8.98836 20.9816 8.93561 20.9795 8.88285L20.9772 8.81995C20.9766 8.80494 20.9759 8.78993 20.9752 8.77493L20.9748 8.76634L20.9691 8.64082C20.9651 8.55088 20.9611 8.46094 20.956 8.37104C20.9522 8.30451 20.947 8.23805 20.9417 8.1716L20.9359 8.09682L20.9321 8.04666C20.9275 7.98535 20.9229 7.92405 20.9175 7.86274C20.9125 7.80634 20.9064 7.74993 20.9004 7.69354L20.9003 7.69313L20.897 7.66264C20.8931 7.62609 20.8889 7.58959 20.8846 7.5531L20.8845 7.55231L20.8803 7.51608C20.8416 7.18046 20.7858 6.84789 20.7029 6.52018C20.6311 6.23571 20.5375 5.95879 20.4129 5.6927C20.2939 5.43833 20.1468 5.20173 19.9745 4.98024C19.6752 4.5943 19.3289 4.25662 18.9357 3.9672C18.6895 3.78603 18.4233 3.64067 18.1406 3.52522C17.9042 3.42869 17.6608 3.35464 17.4126 3.29549C17.2386 3.25401 17.0631 3.22009 16.8865 3.192C16.7762 3.17443 16.6652 3.16021 16.5545 3.14604C16.4547 3.1333 16.3548 3.12195 16.2548 3.1114C16.1994 3.10556 16.1439 3.10111 16.0884 3.09667L16.0476 3.09338C15.9873 3.08847 15.9269 3.08378 15.8666 3.07909L15.8665 3.07909L15.7802 3.07236L15.7725 3.07169L15.7601 3.0707L15.6649 3.06539L15.6649 3.06539C15.5895 3.06113 15.5141 3.05688 15.4386 3.05333C15.316 3.0476 15.1933 3.04242 15.0707 3.03725L14.9361 3.03154C14.9137 3.03058 14.8914 3.02983 14.869 3.02942C14.7553 3.02747 14.6416 3.02471 14.5279 3.02195C14.3309 3.01717 14.1339 3.0124 13.9368 3.0118C13.8728 3.01162 13.8088 3.0106 13.7448 3.00958L13.6819 3.00861L13.677 3.00858C13.6653 3.00857 13.6535 3.00855 13.6437 3ZM19.1763 17.0579L19.1766 17.0517C19.1767 17.0471 19.1768 17.0425 19.1779 17.0381C19.2275 16.836 19.2624 16.631 19.291 16.4251C19.3098 16.2901 19.3268 16.1547 19.3375 16.0187C19.3417 15.9654 19.3464 15.9121 19.3511 15.8589C19.3586 15.774 19.3661 15.6892 19.3716 15.6042C19.3828 15.4301 19.391 15.2558 19.3987 15.0816C19.4046 14.9497 19.4094 14.8178 19.4117 14.6859L19.4153 14.4842C19.4205 14.2026 19.4257 13.9209 19.4268 13.6392C19.4297 12.9436 19.4306 12.248 19.4295 11.5523L19.4295 11.2777C19.4295 10.7542 19.4295 10.2306 19.4186 9.70709C19.4124 9.40296 19.4061 9.09888 19.3918 8.79501C19.3844 8.63644 19.3757 8.47787 19.3647 8.31947C19.3541 8.1655 19.3406 8.01182 19.3242 7.85844C19.3125 7.74723 19.2991 7.63627 19.284 7.52554C19.2621 7.36599 19.2346 7.20747 19.1999 7.05026C19.1657 6.89516 19.1232 6.74238 19.0697 6.59267C18.9916 6.37321 18.8802 6.16704 18.7395 5.98137C18.5884 5.78135 18.4163 5.59801 18.2263 5.43445C18.1883 5.40179 18.1494 5.37029 18.1105 5.33881L18.1104 5.33876L18.0812 5.3151C17.8793 5.15117 17.6528 5.03224 17.408 4.94664C17.207 4.87636 17.0007 4.82673 16.7919 4.78696C16.581 4.74669 16.3684 4.71721 16.155 4.69446C16.004 4.67833 15.8523 4.66544 15.7006 4.65444C15.5492 4.64344 15.3974 4.63568 15.2457 4.62792L15.2385 4.62756C15.1291 4.62194 15.0196 4.61762 14.91 4.61462L14.8134 4.61183C14.6511 4.60712 14.4888 4.6024 14.3265 4.60068C13.8657 4.59577 13.405 4.59101 12.9443 4.59016C12.2464 4.58885 11.5486 4.58938 10.8507 4.59177C10.5996 4.5923 10.3486 4.59439 10.0974 4.59647L10.0974 4.59647L9.8577 4.59841L9.82872 4.59862H9.82872C9.7489 4.59919 9.66907 4.59976 9.58934 4.60282C9.49703 4.60635 9.40468 4.60825 9.31233 4.61016L9.31231 4.61016L9.3123 4.61016C9.18105 4.61286 9.0498 4.61557 8.91869 4.62295C8.83304 4.62782 8.7474 4.63152 8.66175 4.63522C8.61777 4.63712 8.5738 4.63902 8.52981 4.64107C8.52362 4.64135 8.51744 4.64185 8.51126 4.64235L8.51126 4.64235L8.51126 4.64235L8.50306 4.64299L8.41244 4.64946C8.34449 4.65429 8.27653 4.65912 8.20857 4.66428L8.18781 4.66585C8.12337 4.67072 8.05892 4.67559 7.99463 4.68218C7.89227 4.69268 7.79008 4.70422 7.68806 4.71679C7.62913 4.72411 7.57031 4.73243 7.5115 4.74075L7.51148 4.74075L7.51141 4.74076C7.47952 4.74527 7.44763 4.74978 7.41572 4.75414C7.40685 4.75493 7.39794 4.75526 7.38904 4.75512L7.38907 4.75503L7.31739 4.76857L7.31738 4.76857C7.26453 4.7785 7.21167 4.78842 7.15898 4.79909C6.93749 4.84394 6.71967 4.90123 6.5096 4.98613C6.34776 5.05123 6.19426 5.1354 6.05234 5.23684C5.78124 5.43085 5.54562 5.66141 5.33918 5.92242C5.28924 5.98552 5.24069 6.04965 5.19677 6.11724C5.09636 6.27173 5.01967 6.43755 4.95864 6.61102C4.91632 6.73123 4.88184 6.85368 4.85186 6.97747C4.84793 6.99374 4.8434 7.00985 4.83887 7.02596L4.83887 7.02597L4.83261 7.04844L4.83272 7.0484L4.8298 7.06701C4.82771 7.08069 4.82563 7.09438 4.82265 7.10788C4.76979 7.35293 4.73521 7.60091 4.70752 7.84979C4.69096 7.99864 4.67853 8.148 4.66745 8.29738C4.65639 8.44663 4.64854 8.59619 4.64069 8.74569L4.64069 8.74569L4.64069 8.7457L4.64067 8.74609C4.63503 8.85329 4.63069 8.96055 4.62763 9.06786L4.62559 9.13807C4.62045 9.31366 4.61532 9.48925 4.61283 9.66486C4.608 10.0048 4.60357 10.3448 4.60262 10.6847C4.59962 11.7494 4.5969 12.8141 4.60737 13.8788C4.61072 14.2165 4.61777 14.5542 4.62607 14.8918C4.62673 14.9186 4.62753 14.9455 4.62877 14.9724L4.63381 15.0811C4.63926 15.199 4.64472 15.3169 4.65074 15.4347C4.65577 15.5308 4.66081 15.6268 4.66836 15.7227C4.67515 15.8081 4.68316 15.8934 4.69117 15.9787L4.70214 16.0968C4.71248 16.2104 4.7265 16.3235 4.74143 16.4366C4.7631 16.6007 4.79033 16.7638 4.82487 16.9256C4.85985 17.0897 4.90314 17.2516 4.95983 17.4096C5.02424 17.5893 5.10596 17.7603 5.21434 17.9181C5.29414 18.0342 5.38123 18.1452 5.47508 18.2503C5.64558 18.4412 5.83564 18.6105 6.0414 18.7625C6.1548 18.8463 6.27647 18.9182 6.4045 18.9772C6.5449 19.0421 6.69048 19.0925 6.83926 19.1339C7.11993 19.2121 7.40659 19.2588 7.69529 19.294C7.79514 19.3061 7.89529 19.3159 7.99546 19.3252L8.03116 19.3284L8.03143 19.3285L8.03148 19.3285C8.15306 19.3397 8.27467 19.3509 8.39647 19.359C8.56158 19.3699 8.72687 19.378 8.89219 19.3856C9.02176 19.3916 9.15144 19.3965 9.28109 19.399L9.45946 19.4025H9.4595H9.45953C9.71982 19.4078 9.98011 19.4131 10.2404 19.4145C11.3901 19.4206 12.5397 19.4191 13.6893 19.4158C13.9179 19.4151 14.1465 19.4106 14.375 19.4061C14.4976 19.4037 14.6201 19.4013 14.7426 19.3995C14.7627 19.3992 14.7829 19.3984 14.803 19.3976L14.9426 19.392C15.0681 19.387 15.1937 19.382 15.3192 19.3763C15.4286 19.3713 15.538 19.365 15.6474 19.3587C15.701 19.3556 15.7545 19.3513 15.808 19.3469C15.8726 19.3417 15.9372 19.3362 16.0018 19.33C16.0685 19.3236 16.1352 19.3168 16.2019 19.309C16.2973 19.2978 16.3927 19.2861 16.488 19.2738C16.5343 19.2678 16.5805 19.2613 16.6267 19.2547L16.687 19.2462C16.6871 19.2462 16.6871 19.2461 16.6871 19.246C16.7106 19.2413 16.7341 19.2367 16.7576 19.232C16.8085 19.2219 16.8595 19.2118 16.9104 19.2011C17.1251 19.1562 17.336 19.0987 17.5392 19.0149C17.6923 18.9519 17.8378 18.8717 17.9727 18.7758C18.2687 18.5653 18.5214 18.311 18.7414 18.0229C18.8499 17.8805 18.9401 17.725 19.01 17.5602C19.0583 17.4469 19.0978 17.3307 19.132 17.2125C19.138 17.1917 19.1435 17.1708 19.149 17.1498C19.1531 17.134 19.1572 17.1182 19.1616 17.1025C19.1644 17.0923 19.1679 17.0823 19.1713 17.0723C19.1729 17.0675 19.1746 17.0627 19.1762 17.058C19.1762 17.0579 19.1763 17.0579 19.1763 17.0579ZM3.12917 7.986L3.12916 7.98601L3.12903 7.98608C3.14334 7.97696 3.15765 7.96783 3.17163 7.95831C3.15771 7.96785 3.14344 7.97693 3.12917 7.986Z",fill:"currentColor"},null,-1)]))}const Ce=q._export_sfc(qe,[["render",Re]]),me=i=>{if(Array.isArray(i))return i.map(e.unref);const c=e.unref(i);return Array.isArray(c)?c:[c]},Ue=(i,c)=>{let l;const a=C=>{C.forEach(u=>{const d=e.unref(u);if(d){if(!(d instanceof Element))throw console.error("Vuestic: Trying to observe non-HTMLElement",{target:d,array:i}),new Error("Vuestic: Unable to observe non-HTMLElement");d&&(l==null||l.observe(d))}})};return e.watch(i,C=>{l==null||l.disconnect(),a(me(C))}),e.onMounted(()=>{l=new ResizeObserver(c),a(me(i))}),e.onBeforeUnmount(()=>l==null?void 0:l.disconnect()),l},Ze=i=>{const c=e.ref(null);return Ue([i],()=>{var l;c.value=((l=i.value)==null?void 0:l.clientWidth)??null}),e.watchEffect(()=>{var l;c.value=((l=i.value)==null?void 0:l.clientWidth)??null}),c},Xe={class:"mt-auto shrink px-2"},Ge=["href"],Je={class:"rounded-lg bg-[#FFF8E4] py-2 flex items-center space-x-3 px-3"},Ke={class:""},Qe={class:"",style:{"font-size":"10px"}},Ye={key:1,class:"flex justify-between border rounded-lg bg-[#F5F5F5] mb-2 w-full min-w-[220px] space-x-3 px-3"},e1={class:"flex items-center text-[#525B66] space-x-3"},t1={style:{"font-size":"10px"}},o1=["href"],l1={class:"flex flex-nowrap items-center w-max h-[24px]"},n1={class:"whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full text-[#525B66]"},s1={class:"py-[8px] pl-0 pr-[8px]"},a1=["href"],r1={class:"flex flex-nowrap items-center w-max h-[24px]"},i1={class:"whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full"},c1={class:"py-[8px] pl-0 pr-[8px]"},d1={key:4,class:"custom-select ml-3 w-full relative pt-3"},p1={class:"pl-2"},m1={key:0,class:"dropdown w-[220px] z-10 text-[#525B66]"},u1=["onClick"],C1={key:0,class:"mt-1 h-0 border-t border-secondary-stroke mb-1"},f1={key:0,class:"tooltip-text"},h1={class:"flex flex-nowrap items-center w-full h-[36px]"},v1={class:"w-[36px] flex-shrink-0 relative"},k1={key:0,class:"absolute top-0 right-1.5 w-2 h-2 bg-blue-600 text-white rounded-full animate-ping z-0"},w1={key:1,class:"absolute top-0 right-1.5 w-2 h-2 bg-blue-500 text-white rounded-full z-10"},y1=["href"],x1={key:0,class:"tooltip-text"},b1={class:"flex flex-nowrap items-center w-full h-[36px]"},g1={class:"w-[36px] flex-shrink-0 relative"},B1=e.defineComponent({__name:"OneSidebar",props:ue,emits:["show-news","show-tariff","select-language","update-collapsed","update:modelValue"],setup(i,{emit:c}){var V,E,L;const l=c,a=i,C=e.computed(()=>{var o;return((o=a.news)==null?void 0:o.unseenCount)||0}),u=()=>{l("show-news")},d=e.ref(!1),f=e.ref(a.hoverable);e.watch(a,()=>{a.modelValue?f.value=!0:f.value=!1}),a.modelValue&&(f.value=!0);const g=e.shallowRef(),k=e.computed(()=>{const o=[];if(a.slim||o.push("fixed"),!w.value)if(!a.isMobile)o.push("w-[260px]");else return o.push("w-full");return o.join(" ")}),n=e.computed(()=>""),h=o=>{d.value=f.value&&o},w=e.computed(()=>f.value&&!d.value),t=e.computed(()=>!!w.value),r=e.ref(),O=Ze(r),B=e.computed(()=>a.modelValue===!0||O.value===null?!0:O.value>0),T=e.ref(),j=()=>w.value?a.minimizedWidth:a.width;e.watchEffect(()=>{const o=j();setTimeout(()=>{T.value=o})});const y=e.ref(!1),x=e.ref((V=a.app)!=null&&V.availableLang&&((E=a.app)==null?void 0:E.availableLang.length)>0?(L=a.app)==null?void 0:L.availableLang.find(o=>{var p;return o.id==((p=a.app)==null?void 0:p.lang)}):null),H=()=>{y.value=!y.value},I=o=>{x.value=o,y.value=!1,l("select-language",o)},F=()=>{var o,p;(p=(o=a.app)==null?void 0:o.selectedPlan)!=null&&p.url&&(window.location.href=a.app.selectedPlan.url)};return(o,p)=>{var N,_,$,S,D,M,s,b,z,W,R,U,Z,X,G,J,K,Q,Y,ee,te,oe,le,ne,se,ae,re,ie,ce;return e.openBlock(),e.createElementBlock("aside",{ref_key:"rootElement",ref:g,class:e.normalizeClass(["oneb-sidebar pt-[56px] pb-1 cont sm:max-w-[270px] flex flex-col sidebar z-40",k.value]),style:e.normalizeStyle(n.value),onMouseenter:p[1]||(p[1]=m=>h(!0)),onMouseleave:p[2]||(p[2]=m=>h(!1))},[e.withDirectives(e.createElementVNode("div",{class:"overflow-y-auto top-[56px] left-0 overflow-hidden lg:bg-transparent transition-all z-50 px-1 ml-1 mr-1 mt-2 flex-grow",ref_key:"menu",ref:r},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.items,m=>(e.openBlock(),e.createBlock(Ae,{key:m.label,labelTop:m.labelTop,isMobile:o.isMobile,subItems:m.subItems,open:m.open,icon:m.icon,label:m.label,route:m.route,href:m.href,slim:t.value,"route-name":m.routeName,exact:m.exact||!1,onUpdateCollapsed:p[0]||(p[0]=P=>l("update-collapsed"))},null,8,["labelTop","isMobile","subItems","open","icon","label","route","href","slim","route-name","exact"]))),128))],512),[[e.vShow,B.value]]),e.withDirectives(e.createElementVNode("div",Xe,[e.createElementVNode("div",{class:e.normalizeClass([t.value?"hidden":"w-full hidden md:flex-col md:flex px-2"])},[(N=o.app)!=null&&N.offerPlan?(e.openBlock(),e.createElementBlock("a",{key:0,href:(_=o.app)==null?void 0:_.offerPlan.url,class:"w-full min-w-[220px] border-gradient rounded-lg p-[1px] bg-[#FFF8E4] mb-2 block",target:"_blank",rel:"noopener noreferrer"},[e.createElementVNode("div",Je,[e.createElementVNode("div",Ke,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(($=o.app)==null?void 0:$.offerPlan.icon),{class:"w-[16px] h-[16px]"}))]),e.createElementVNode("p",Qe,[e.createElementVNode("strong",null,e.toDisplayString((S=o.app)==null?void 0:S.offerPlan.title),1),e.createTextVNode(" «"+e.toDisplayString((D=o.app)==null?void 0:D.offerPlan.name)+"» ",1),p[3]||(p[3]=e.createElementVNode("br",null,null,-1)),e.createTextVNode(e.toDisplayString((M=o.app)==null?void 0:M.offerPlan.title1),1)])])],8,Ge)):e.createCommentVNode("",!0),(s=o.app)!=null&&s.selectedPlan&&((b=o.app)!=null&&b.selectedPlan.name)?(e.openBlock(),e.createElementBlock("div",Ye,[e.createElementVNode("div",e1,[e.createElementVNode("div",null,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent((z=o.app)==null?void 0:z.selectedPlan.icon),{class:"w-[16px] h-[16px]"}))]),e.createElementVNode("div",t1,[e.createElementVNode("p",null,e.toDisplayString(((W=o.app)==null?void 0:W.selectedPlan.name)||""),1),e.createElementVNode("p",null,e.toDisplayString(((R=o.app)==null?void 0:R.selectedPlan.title)||""),1)])]),e.createElementVNode("div",null,[e.createVNode(A._sfc_main,{class:"text-[#525B66] hover:text-[#4089E0]",variant:"touch",icon:e.unref(v.render$2),onClick:F},null,8,["icon"])])])):e.createCommentVNode("",!0),(U=o.app)!=null&&U.terms?(e.openBlock(),e.createElementBlock("a",{key:2,href:(Z=o.app)==null?void 0:Z.terms.url,target:"_blank",class:"ml-2 flex items-center rounded-lg text-xs hover:underline font-extralight"},[e.createElementVNode("div",l1,[e.createElementVNode("div",n1,[e.createElementVNode("span",s1,e.toDisplayString(((X=o.app)==null?void 0:X.terms.label)||"Terms"),1)])])],8,o1)):e.createCommentVNode("",!0),(G=o.app)!=null&&G.offer?(e.openBlock(),e.createElementBlock("a",{key:3,href:(J=o.app)==null?void 0:J.offer.url,target:"_blank",class:"ml-2 flex items-center rounded-lg text-xs hover:underline text-[#525B66] font-extralight"},[e.createElementVNode("div",r1,[e.createElementVNode("div",i1,[e.createElementVNode("span",c1,e.toDisplayString(((K=o.app)==null?void 0:K.offer.label)||"Offert"),1)])])],8,a1)):e.createCommentVNode("",!0),(Y=(Q=o.app)==null?void 0:Q.availableLang)!=null&&Y.length?(e.openBlock(),e.createElementBlock("div",d1,[e.createElementVNode("div",{class:"select-box flex gap-x-3 text-xs text-[#525B66] cursor-pointer",onClick:H},[e.createVNode(e.unref(v.render$3),{class:"w-4"}),e.createTextVNode(" "+e.toDisplayString((ee=x.value)==null?void 0:ee.name)+" ",1),e.createElementVNode("span",p1,e.toDisplayString(y.value?"▲":"▼"),1)]),y.value?(e.openBlock(),e.createElementBlock("div",m1,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((te=o.app)==null?void 0:te.availableLang,m=>{var P,de;return e.openBlock(),e.createElementBlock("div",{key:m.id,class:e.normalizeClass(["px-2",{"hover:bg-slate-200 rounded-lg cursor-pointer":m.id!==((P=x.value)==null?void 0:P.id),"text-gray-300":m.id===((de=x.value)==null?void 0:de.id)}]),onClick:mt=>{var pe;return m.id!==((pe=x.value)==null?void 0:pe.id)&&I(m)}},e.toDisplayString(m.name),11,u1)}),128))])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],2),t.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",C1)),e.createElementVNode("div",{class:e.normalizeClass([t.value?"grid":"flex space-x-2"])},[o.news?(e.openBlock(),e.createElementBlock("a",{key:0,href:"#",class:e.normalizeClass(["text-[#525B66] flex items-center rounded-lg text-sm tooltip hover:bg-primary-10-hover hover:text-primary-base transition-all",[t.value?"w-[44px] h-[44px]":"h-[36x]"]]),onClick:u},[o.news.menuLabel?(e.openBlock(),e.createElementBlock("div",f1,e.toDisplayString(o.news.menuLabel||"News"),1)):e.createCommentVNode("",!0),e.createElementVNode("div",h1,[e.createElementVNode("div",v1,[e.createElementVNode("div",null,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(Ce),{class:"w-[24px] h-[24px] mx-auto"}))]),C.value>0?(e.openBlock(),e.createElementBlock("span",k1)):e.createCommentVNode("",!0),C.value>0?(e.openBlock(),e.createElementBlock("span",w1)):e.createCommentVNode("",!0)])])],2)):e.createCommentVNode("",!0),(oe=o.app)!=null&&oe.support?(e.openBlock(),e.createElementBlock("a",{key:1,href:(ne=(le=o.app)==null?void 0:le.support)==null?void 0:ne.url,class:e.normalizeClass(["text-[#525B66] flex items-center rounded-lg text-sm tooltip hover:bg-primary-10-hover hover:text-primary-base transition-all",[t.value?"w-[44px] h-[44px]":"h-[36x]"]])},[(ae=(se=o.app)==null?void 0:se.support)!=null&&ae.label?(e.openBlock(),e.createElementBlock("div",x1,e.toDisplayString(((ie=(re=o.app)==null?void 0:re.support)==null?void 0:ie.label)||"Support"),1)):e.createCommentVNode("",!0),e.createElementVNode("div",b1,[e.createElementVNode("div",g1,[e.createElementVNode("div",null,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(ye)),{class:"w-[20px] h-[20px] mx-auto"}))])])])],10,y1)):e.createCommentVNode("",!0)],2),e.createElementVNode("p",{class:e.normalizeClass([[t.value?"hidden":"w-full"],"text-[7px] pl-2 text-[#979CA9] flex justify-between font-extralight"])},[p[4]||(p[4]=e.createElementVNode("span",null,"Powered by OneB",-1)),e.createElementVNode("span",null,e.toDisplayString((ce=o.app)==null?void 0:ce.version),1)],2)],512),[[e.vShow,B.value]])],38)}}});const fe=q._export_sfc(B1,[["__scopeId","data-v-bded4814"]]),V1={class:"h-screen h-dvh relative"},E1={class:"header h-[56px] flex items-center flex-nowrap fixed top-0 left-0 w-full z-50",style:{background:"rgba(245, 247, 251, 0.80)","backdrop-filter":"blur(5px)"}},L1={class:"p-2 flex-shrink-0"},N1={class:"w-10 h-10 flex items-center flex-shrink-0"},_1=["src"],$1={class:"whitespace-nowrap font-semibold text-xl"},S1={class:"text-xs whitespace-nowrap"},D1={class:"w-full"},M1={class:"w-full flex justify-end pr-3"},z1={class:"flex items-center space-x-1"},O1={key:0,class:"module-border-wrap flex justify-center items-center"},T1={class:"h-4 w-4"},j1={class:"ml-2 hidden sm:flex"},H1={class:"flex h-full"},I1={key:0},F1={key:0,class:"sm:w-[560px] w-full relative h-full"},P1={class:"h-full relative"},A1={class:"flex items-center p-3 space-x-1.5"},q1={class:"overflow-auto",style:{height:"calc(100% - 62px)"}},W1={key:0,class:"p-5"},R1={key:1},U1={class:"p-4 text-gray text-center"},Z1={key:2},X1={class:"p-3 space-y-1.5 rounded-lg",style:{"box-shadow":"0 0 6px #eaeaea"}},G1={key:0},J1={key:0,class:"text-xs px-2 py-1 rounded-md bg-green-600 text-white"},K1={key:1,class:"text-xs px-2 py-1 rounded-md bg-yellow-600 text-white"},Q1={key:2,class:"text-xs px-2 py-1 rounded-md bg-blue-600 text-white"},Y1={key:3,class:"text-xs px-2 py-1 rounded-md bg-gray-600 text-white"},et={class:"text-lg font-medium"},tt={class:"text-sm text-gray-600"},ot={key:0},lt=["src"],nt={class:"text-sm whitespace-pre-wrap break-words"},st={key:1},at=["href"],rt={class:"text-sm flex items-center justify-between mt-1"},it={class:"text-gray-800"},ct=["href"],dt=e.defineComponent({__name:"OneMainLayout",props:ke,emits:["load-news","load-tariff","open-tariff"],setup(i,{emit:c}){const l=c,a=i;let C=window.localStorage.getItem("sidebar-slim");window.document.body.offsetWidth<1024&&(window.localStorage.getItem("sidebar-slim")==null&&window.localStorage.setItem("sidebar-slim","1"),C="1");const u=e.ref(C==="1");e.ref(!0),e.watch(u,t=>{window.localStorage.setItem("sidebar-slim",String(t?1:0))});const d=e.ref(!1),f=()=>{d.value=!d.value,d.value&&l("load-news")},g=e.computed(()=>a.showHeadre);e.watch(()=>a.showHeadre,(t,r)=>{console.log(`Message змінився з "${r}" на "${t}"`),g.value=a.showHeadre});const k=e.ref(window.innerWidth),n=()=>{k.value=window.innerWidth},h=e.computed(()=>k.value<=768);e.onMounted(()=>{window.addEventListener("resize",n)}),e.onUnmounted(()=>{window.removeEventListener("resize",n)});const w=t=>{var r;(r=a.handlers)==null||r.onSetLang(t)};return(t,r)=>{var B,T,j,y,x,H,I,F,V,E,L,o,p,N,_,$,S,D,M;const O=e.resolveComponent("RouterLink");return e.openBlock(),e.createElementBlock("div",V1,[e.withDirectives(e.createElementVNode("div",E1,[e.createElementVNode("div",L1,[e.createElementVNode("button",{onClick:r[0]||(r[0]=s=>u.value=!u.value),class:"w-[44px] h-[44px] p-[8px] flex items-center justify-center rounded hover:bg-secondary-10 hover:text-blue-600"},[e.createVNode(e.unref(we),{class:"w-[24px] h-[24px]"})])]),e.createElementVNode("div",N1,[t.logoSrc!=null?(e.openBlock(),e.createElementBlock("img",{key:0,src:t.logoSrc,class:"w-8 h-8 mx-auto",alt:"logo"},null,8,_1)):e.createCommentVNode("",!0)]),t.app!=null?(e.openBlock(),e.createBlock(O,{key:0,to:"/",class:"pl-2 max-w-xs"},{default:e.withCtx(()=>{var s,b;return[e.createElementVNode("div",$1,e.toDisplayString(t.app.name),1),e.createElementVNode("div",S1,e.toDisplayString((b=(s=t.app)==null?void 0:s.workspace)==null?void 0:b.name),1)]}),_:1})):e.createCommentVNode("",!0),e.createElementVNode("div",D1,[e.createElementVNode("div",M1,[e.createElementVNode("div",z1,[e.renderSlot(t.$slots,"before-header-menu",{},void 0,!0),t.improveTariff&&((B=t.improveTariff)!=null&&B.label)&&t.improveTariff.label?(e.openBlock(),e.createElementBlock("div",O1,[e.createElementVNode("button",{type:"button",class:"cursor-pointer flex items-center h-full bg-[#FFF8E4] hover:bg-[#f2e3b8] rounded-full px-2 py-1 font-medium",onClick:r[1]||(r[1]=(...s)=>{var b,z;return((b=t.handlers)==null?void 0:b.onImproveTariff)&&((z=t.handlers)==null?void 0:z.onImproveTariff(...s))}),style:{"font-size":"10px"}},[e.createElementVNode("div",T1,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent((T=t.improveTariff)==null?void 0:T.icon),{class:"h-4 w-4 mx-auto"}))]),e.createElementVNode("span",j1,e.toDisplayString((j=t.improveTariff)==null?void 0:j.label),1)])])):e.createCommentVNode("",!0),t.help?(e.openBlock(),e.createBlock(v.OneHelpMenu,{key:1,help:t.help},null,8,["help"])):e.createCommentVNode("",!0),((y=t.handlers)==null?void 0:y.onBrowse)!=null?(e.openBlock(),e.createBlock(v.OneBrowserMenu,{key:2,workspace:(x=t.app)==null?void 0:x.workspace,apps:((H=t.app)==null?void 0:H.apps)||[],"change-label":((I=t.labels)==null?void 0:I.change)||"Change","apps-title":((F=t.labels)==null?void 0:F.apps)||"Apps","on-app":(V=t.handlers)==null?void 0:V.onApp,"on-change":(E=t.handlers)==null?void 0:E.onChange,onOpen:(L=t.handlers)==null?void 0:L.onBrowse},null,8,["workspace","apps","change-label","apps-title","on-app","on-change","onOpen"])):e.createCommentVNode("",!0),e.createVNode(v._sfc_main$2,{user:t.user,menu:t.menu,app:t.app,"account-label":((o=t.labels)==null?void 0:o.account)||"Account","logout-label":((p=t.labels)==null?void 0:p.logout)||"Logout","version-label":((N=t.labels)==null?void 0:N.version)||"","on-account":(_=t.handlers)==null?void 0:_.onAccount,"on-logout":($=t.handlers)==null?void 0:$.onLogout},null,8,["user","menu","app","account-label","logout-label","version-label","on-account","on-logout"])])])])],512),[[e.vShow,g.value]]),e.createElementVNode("div",H1,[!h.value||!u.value?(e.openBlock(),e.createBlock(fe,{key:0,app:t.app,items:t.sidebarItems,"with-news":t.news!=null,news:t.news,isMobile:h.value,modelValue:u.value,"onUpdate:modelValue":r[2]||(r[2]=s=>u.value=s),onShowNews:f,onSelectLanguage:w,onUpdateCollapsed:r[3]||(r[3]=s=>u.value=!u.value)},null,8,["app","items","with-news","news","isMobile","modelValue"])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass([[u.value?"sm:ml-[60px]":"sm:ml-[260px] hidden sm:block"],"body scroll-body w-full overflow-y-auto"])},[e.createElementVNode("div",{class:e.normalizeClass(["content transition-all",{"pt-[56px]":g.value}])},[e.renderSlot(t.$slots,"default",{},void 0,!0)],2)],2)]),t.news?(e.openBlock(),e.createElementBlock("div",I1,[d.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"fixed top-0 left-0 h-screen h-dvh w-screen bg-gray-100 bg-opacity-40 z-50",onClick:r[4]||(r[4]=e.withModifiers(s=>d.value=!1,["self"]))})):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["opacity-100 shadow-lg transition-all fixed top-0 left-0 h-dvh overflow-hidden z-50 bg-white",[d.value?"sm:w-[560px] w-full":"w-0"]])},[d.value?(e.openBlock(),e.createElementBlock("div",F1,[e.createElementVNode("div",P1,[e.createElementVNode("div",A1,[e.createVNode(Ce,{class:"w-10 h-10"}),r[6]||(r[6]=e.createElementVNode("div",{class:"w-full font-medium"},"OneB News",-1)),e.createElementVNode("div",null,[e.createVNode(A._sfc_main,{variant:"touch",icon:e.unref(he.render),onClick:r[5]||(r[5]=s=>d.value=!1)},null,8,["icon"])])]),e.createElementVNode("div",q1,[t.news.isLoading&&((S=t.news.items)==null?void 0:S.length)===0?(e.openBlock(),e.createElementBlock("div",W1,[e.createVNode(A.SpinnerIcon,{class:"w-6 h-6 text-gray-600 mx-auto"})])):((D=t.news.items)==null?void 0:D.length)===0?(e.openBlock(),e.createElementBlock("div",R1,[e.createElementVNode("div",U1,e.toDisplayString(t.news.emptyText),1)])):((M=t.news.items)==null?void 0:M.length)>0?(e.openBlock(),e.createElementBlock("div",Z1,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.news.items,s=>(e.openBlock(),e.createElementBlock("div",{key:s.id,class:"p-3"},[e.createElementVNode("div",X1,[e.createElementVNode("div",null,[s.type?(e.openBlock(),e.createElementBlock("div",G1,[s.type===10?(e.openBlock(),e.createElementBlock("span",J1,"update")):s.type===11?(e.openBlock(),e.createElementBlock("span",K1,"warning")):s.type===12?(e.openBlock(),e.createElementBlock("span",Q1,"notice")):s.type===13?(e.openBlock(),e.createElementBlock("span",Y1,"ads")):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",et,e.toDisplayString(s.title),1),e.createElementVNode("div",tt,e.toDisplayString(s.summary),1)]),s.image_url?(e.openBlock(),e.createElementBlock("div",ot,[e.createElementVNode("img",{src:s.image_url,alt:"",class:"w-full rounded-md"},null,8,lt)])):e.createCommentVNode("",!0),e.createElementVNode("div",nt,e.toDisplayString(s.body),1),s.video_url?(e.openBlock(),e.createElementBlock("div",st,[e.createElementVNode("a",{href:s.video_url,target:"_blank",class:"text-blue-600 hover:text-blue-700 px-3 py-2 border rounded-md w-full block"},e.toDisplayString(t.news.openVideoText),9,at)])):e.createCommentVNode("",!0),e.createElementVNode("div",rt,[e.createElementVNode("span",it,e.toDisplayString(s.published),1),s.post_url?(e.openBlock(),e.createElementBlock("a",{key:0,href:s.post_url,target:"_blank",class:"text-blue-600 hover:text-blue-700 block"},e.toDisplayString(t.news.moreText),9,ct)):e.createCommentVNode("",!0)])])]))),128))])):e.createCommentVNode("",!0)])])])):e.createCommentVNode("",!0)],2)])):e.createCommentVNode("",!0)])}}});const pt=q._export_sfc(dt,[["__scopeId","data-v-16b0e967"]]);exports.OneMainLayout=pt;exports.OneSidebar=fe;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),v=require("../OneHelpMenu-eb183c47.cjs"),q=require("../_plugin-vue_export-helper-f246444f.cjs"),A=require("../index-9f8735d9.cjs"),he=require("../XMarkIcon-f94baa4c.cjs");require("../common/index.cjs");const ue={items:{required:!0,type:Array},slim:{type:Boolean,default:!1},isMobile:{type:Boolean,default:!1},app:{type:Object},minimizedWidth:{type:String,default:"4rem"},width:{type:String,default:"16rem"},minimized:{type:Boolean,default:!1},hoverable:{type:Boolean,default:!1},modelValue:{type:Boolean,default:!0},news:{type:Object}},ve={route:{required:!1,type:[Object,String]},routeName:{required:!1,type:String},handler:{required:!1,type:Function,default(){return()=>{}}},isMobile:{type:Boolean,default:!1},href:{type:String},app:{type:Object},label:{type:String,required:!0},labelTop:{type:String,default:""},icon:{type:[Function,Object]},exact:{type:Boolean,required:!1,default:!1},slim:{type:Boolean,default:!0},open:{type:Boolean,default:!1},subItems:{type:Array,required:!1}},ke={sidebarItems:ue.items,logoSrc:{type:String},helpUrl:{type:String},app:{type:Object},user:{type:Object,required:!0},labels:{type:Object},apps:{type:Array},workspaces:{type:Array},workspace:{type:Object},showHeadre:{type:Boolean,default:!0},yourApps:{type:Object},news:{type:Object},handlers:{type:Object},improveTariff:{type:Object},help:{type:Object},menu:{type:Array,default:()=>[]}};function we(i,c){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.8",stroke:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"})])}function ye(i,c){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.8",stroke:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8.625 9.75a.375.375 0 11-.75 0 .375.375 0 01.75 0zm0 0H8.25m4.125 0a.375.375 0 11-.75 0 .375.375 0 01.75 0zm0 0H12m4.125 0a.375.375 0 11-.75 0 .375.375 0 01.75 0zm0 0h-.375m-13.5 3.01c0 1.6 1.123 2.994 2.707 3.227 1.087.16 2.185.283 3.293.369V21l4.184-4.183a1.14 1.14 0 01.778-.332 48.294 48.294 0 005.83-.498c1.585-.233 2.708-1.626 2.708-3.228V6.741c0-1.602-1.123-2.995-2.707-3.228A48.394 48.394 0 0012 3c-2.392 0-4.744.175-7.043.513C3.373 3.746 2.25 5.14 2.25 6.741v6.018z"})])}const xe=["href"],be={class:"flex flex-nowrap items-center w-full h-[24px]"},ge={key:0,class:"w-[44px] flex-shrink-0"},Be={class:"whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full"},Ve={class:"py-[8px] pl-0 pr-0"},Ee={class:"flex flex-nowrap items-center w-full h-[24px]"},Le={key:0,class:"w-[44px] flex-shrink-0"},Ne={class:"whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full"},_e={class:"py-[8px] pl-0 pr-0"},Se={key:1,class:"p-3"},$e={class:"flex flex-nowrap items-center w-full h-[24px] mb-0.5"},De={key:0,class:"w-[44px] flex-shrink-0"},Me={class:"whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full"},ze={class:"py-[8px] pl-0 pr-0"},Oe={key:1,class:"p-3"},Te=["href"],je={class:"flex items-center justify-between min-w-full h-[24px]"},He={class:"text-xs"},Ie={key:0,class:"pr-1"},Fe={class:"text-xs"},Pe={key:0,class:"pr-3"},Ae=e.defineComponent({__name:"OneSidebarLink",props:ve,emits:["update-collapsed"],setup(i,{emit:c}){const l=i,s=c,C=e.computed(()=>l.href??!1),u=e.computed(()=>d(l)),d=n=>n.route?n.route:n.routeName?{name:n.routeName}:"",f=e.ref(l.open),g=()=>{f.value=!f.value},k=(n,h)=>{l.subItems&&l.subItems.length>0&&!h&&(n.preventDefault(),g()),(h||!l.subItems||l.subItems.length===0)&&l.isMobile&&s("update-collapsed")};return(n,h)=>{const w=e.resolveComponent("RouterLink");return e.openBlock(),e.createElementBlock(e.Fragment,null,[n.labelTop?(e.openBlock(),e.createElementBlock("p",{key:0,style:{"font-size":"10px"},class:e.normalizeClass([{"text-center h-[15px]":n.slim},"text-[#a1a5b0] px-2 pt-0 font-medium"])},e.toDisplayString(n.slim?"":n.labelTop),3)):e.createCommentVNode("",!0),C.value?(e.openBlock(),e.createElementBlock("a",{key:1,href:C.value,class:e.normalizeClass(["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",[n.slim?"w-[44px] h-[44px]":"h-[44px] w-full"]]),onClick:k},[e.createElementVNode("div",be,[n.icon?(e.openBlock(),e.createElementBlock("div",ge,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.icon),{class:"w-[24px] h-[24px] mx-auto"}))])):e.createCommentVNode("",!0),e.createElementVNode("div",Be,[e.createElementVNode("span",Ve,e.toDisplayString(n.label),1)]),l.subItems&&l.subItems.length>0?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["ml-auto",[n.slim?"hidden":""]])},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(f.value?e.unref(v.render):e.unref(v.render$1)),{class:"w-[16px] h-[16px]"}))],2)):e.createCommentVNode("",!0)])],10,xe)):e.createCommentVNode("",!0),!C.value&&u.value?(e.openBlock(),e.createBlock(w,{key:2,to:u.value,class:e.normalizeClass(["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",[n.slim?"w-[44px] h-[44px]":"h-[44px] w-full"]]),"active-class":"bg-primary-10 !text-primary-base","exact-active-class":"bg-primary-10 !text-primary-base",exact:n.exact,onClick:e.withModifiers(k,["prevent"])},{default:e.withCtx(()=>[e.createElementVNode("div",Ee,[n.icon?(e.openBlock(),e.createElementBlock("div",Le,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.icon),{class:"w-[24px] h-[24px] mx-auto"}))])):e.createCommentVNode("",!0),e.createElementVNode("div",Ne,[e.createElementVNode("span",_e,e.toDisplayString(n.label),1)]),l.subItems&&l.subItems.length>0&&!n.slim?(e.openBlock(),e.createElementBlock("div",Se,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(f.value?e.unref(v.render):e.unref(v.render$1)),{class:"w-[16px] h-[16px]"}))])):e.createCommentVNode("",!0)])]),_:1},8,["to","exact","class"])):e.createCommentVNode("",!0),!C.value&&!u.value?(e.openBlock(),e.createElementBlock("span",{key:3,onClick:e.withModifiers(k,["prevent"]),class:e.normalizeClass([[n.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]"])},[e.createElementVNode("div",$e,[n.icon?(e.openBlock(),e.createElementBlock("div",De,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.icon),{class:"w-[24px] h-[24px] mx-auto"}))])):e.createCommentVNode("",!0),e.createElementVNode("div",Me,[e.createElementVNode("span",ze,e.toDisplayString(n.label),1)]),l.subItems&&l.subItems.length>0&&!n.slim?(e.openBlock(),e.createElementBlock("div",Oe,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(f.value?e.unref(v.render):e.unref(v.render$1)),{class:"w-[16px] h-[16px]"}))])):e.createCommentVNode("",!0)])],2)):e.createCommentVNode("",!0),f.value&&l.subItems?(e.openBlock(),e.createElementBlock("div",{key:4,class:e.normalizeClass([n.slim?"hidden":"pl-[36px] pr-3"])},[e.createElementVNode("div",{class:e.normalizeClass([(n.slim,"")])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.subItems,t=>(e.openBlock(),e.createElementBlock("div",{key:t.label,class:e.normalizeClass([(n.slim,"")])},[t.href?(e.openBlock(),e.createElementBlock("a",{key:0,href:t.href,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]"},[e.createElementVNode("div",je,[e.createElementVNode("span",He,e.toDisplayString(t.label),1),t.icon?(e.openBlock(),e.createElementBlock("div",Ie,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.icon),{class:"w-[15px] h-[15px] mx-auto"}))])):e.createCommentVNode("",!0)])],8,Te)):(e.openBlock(),e.createBlock(w,{key:1,to:d(t),onClick:h[0]||(h[0]=e.withModifiers(r=>k(r,!0),["prevent"])),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]",exact:n.exact,"active-class":"bg-primary-10 !text-primary-base","exact-active-class":"bg-primary-10 !text-primary-base"},{default:e.withCtx(()=>[e.createElementVNode("span",Fe,e.toDisplayString(t.label),1),t.icon?(e.openBlock(),e.createElementBlock("div",Pe,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.icon),{class:"w-[20px] h-[20px] mx-auto"}))])):e.createCommentVNode("",!0)]),_:2},1032,["to","exact"]))],2))),128))],2)],2)):e.createCommentVNode("",!0)],64)}}}),qe={},We={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"};function Re(i,c){return e.openBlock(),e.createElementBlock("svg",We,c[0]||(c[0]=[e.createElementVNode("path",{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",fill:"currentColor"},null,-1),e.createElementVNode("path",{d:"M15.7294 11.3876C16.2011 11.2795 16.7453 10.9769 16.7816 10.0547C16.7816 9.36299 16.5276 8.90188 16.1285 8.57766C15.6569 8.14537 14.9675 8.03729 14.3797 8.03729H11.4626V13.9309C11.4626 14.6802 11.6441 15.2061 12.0141 15.5087C12.3842 15.8113 13.0155 15.9626 13.8935 15.9626H14.9675C15.6859 15.9626 16.2374 15.7681 16.6365 15.3718C17.0428 14.9756 17.2388 14.4136 17.2388 13.6787C17.2388 12.7925 16.9993 11.6758 15.7294 11.3876ZM13.0228 9.42783L14.2564 9.39181C14.8296 9.39181 15.1199 9.68 15.1199 10.2492C15.1199 10.8184 14.8296 11.1066 14.2564 11.1066L13.0228 11.1426V9.42783ZM14.8079 14.5865H14.0024C13.6541 14.5865 13.4001 14.5289 13.2405 14.4064C13.0881 14.2911 13.0155 14.075 13.0155 13.7724V12.5259H14.8079C15.1344 12.5259 15.3666 12.6196 15.49 12.8069C15.6133 12.987 15.6786 13.2536 15.6786 13.6067C15.6859 14.2551 15.3956 14.5865 14.8079 14.5865Z",fill:"currentColor"},null,-1),e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13.6437 3H10.4761C10.462 3.00738 10.4468 3.00752 10.4317 3.00766L10.4237 3.00778L10.2163 3.01067L10.1771 3.01124C10.1389 3.01181 10.1006 3.01238 10.0624 3.01238C9.85585 3.01276 9.64939 3.01797 9.44293 3.02318C9.34618 3.02562 9.24943 3.02806 9.15267 3.03C9.04934 3.03209 8.94604 3.03642 8.84277 3.04075L8.7649 3.04397C8.68023 3.04733 8.59559 3.05152 8.51098 3.05656C8.48805 3.05791 8.46519 3.06072 8.44234 3.06353L8.41144 3.0672L8.41136 3.06733L8.41135 3.06733C8.36472 3.06357 8.31825 3.06706 8.27185 3.07055L8.2508 3.07211C8.17968 3.07719 8.10867 3.08303 8.03766 3.08888L7.99014 3.09278L7.93408 3.09722C7.88146 3.10132 7.82884 3.10543 7.77638 3.111C7.67642 3.12147 7.57658 3.13307 7.47685 3.14581L7.46711 3.14705C7.35956 3.16078 7.25195 3.17451 7.14491 3.19162C6.9685 3.21996 6.79301 3.25364 6.61912 3.29514C6.39508 3.34863 6.17474 3.41407 5.95992 3.49743C5.64582 3.6192 5.35134 3.77699 5.08051 3.97818C4.85418 4.14605 4.6417 4.33183 4.44509 4.5337C4.2703 4.71309 4.10878 4.90496 3.96183 5.1078C3.77344 5.36816 3.62514 5.65018 3.50915 5.94958C3.36896 6.31155 3.2788 6.68668 3.21499 7.06866C3.19851 7.1678 3.18411 7.26735 3.17082 7.36697C3.15756 7.46541 3.14628 7.56409 3.135 7.66276L3.13307 7.67973C3.12541 7.74641 3.11884 7.81305 3.11245 7.87981L3.11091 7.89541C3.10743 7.9302 3.10394 7.96508 3.10714 8.00012L3.10716 8.0001C3.09909 8.01985 3.09789 8.04067 3.0967 8.06145L3.09602 8.07249L3.07085 8.44649L3.07007 8.45985C3.06822 8.50323 3.06651 8.54661 3.0648 8.58999C3.06098 8.68709 3.05716 8.78418 3.05165 8.88117C3.04485 9.00132 3.04236 9.12161 3.03987 9.24188C3.03793 9.33581 3.03599 9.42973 3.03199 9.52356C3.02946 9.58278 3.02895 9.64209 3.02844 9.7014L3.02804 9.74445L3.02618 9.9482C3.02519 10.0655 3.02421 10.1828 3.02245 10.3001C3.02144 10.367 3.01875 10.4338 3.01605 10.5007L3.01316 10.5745L3.01312 10.5756C3.01256 10.5885 3.01199 10.6018 3 10.6107V13.3892C3.00108 13.3909 3.00237 13.3925 3.00365 13.3942L3.00366 13.3942C3.00655 13.3979 3.00944 13.4016 3.01007 13.4057C3.01249 13.4212 3.01389 13.4369 3.01427 13.4526L3.01611 13.5092L3.01611 13.5092C3.01871 13.5887 3.0213 13.6681 3.02293 13.7476C3.02474 13.8348 3.02545 13.922 3.02545 14.0092C3.0256 14.2458 3.03197 14.4823 3.03835 14.7188L3.03835 14.7188C3.04022 14.7885 3.0421 14.8582 3.04382 14.9279C3.04659 15.0408 3.05225 15.1535 3.05791 15.2663L3.06335 15.3769C3.06897 15.4952 3.07473 15.6135 3.08203 15.7318C3.08634 15.8018 3.09212 15.8717 3.0979 15.9417L3.0979 15.9417L3.10262 15.9992L3.10453 16.0229C3.10928 16.0819 3.11403 16.1408 3.12009 16.1996C3.13141 16.3108 3.14359 16.4219 3.15661 16.5328C3.16284 16.5864 3.1703 16.6399 3.17776 16.6933L3.185 16.7455C3.20654 16.9028 3.23441 17.0589 3.26627 17.2144C3.30583 17.4093 3.35558 17.602 3.4153 17.7917C3.50677 18.0804 3.62514 18.3571 3.77815 18.6188C3.87433 18.7833 3.98454 18.9379 4.10322 19.0866C4.38114 19.4348 4.70212 19.7464 5.05849 20.0138C5.34835 20.2318 5.66471 20.4005 6.00352 20.5279C6.22982 20.6131 6.46181 20.6788 6.69755 20.7318C6.88514 20.774 7.07435 20.8079 7.2645 20.8355C7.38593 20.8534 7.50793 20.8672 7.62989 20.881L7.6304 20.8811C7.7437 20.8937 7.8571 20.9052 7.97062 20.9156C8.03986 20.9219 8.10927 20.9264 8.17868 20.931L8.21137 20.9332C8.28755 20.9383 8.36371 20.943 8.43985 20.9478L8.54613 20.9545L8.556 20.9552C8.56163 20.9556 8.56727 20.956 8.57291 20.9562L8.71929 20.9621C8.81347 20.9658 8.90765 20.9695 9.0018 20.9736C9.21881 20.9828 9.43595 20.9864 9.65309 20.99L9.74613 20.9915L9.75798 20.9914C9.77405 20.9912 9.79026 20.9909 9.80497 21H14.0598C14.1664 20.9939 14.273 20.9919 14.3797 20.9899C14.4179 20.9892 14.4561 20.9885 14.4943 20.9876C14.7149 20.9825 14.9354 20.9772 15.156 20.9696C15.2421 20.9667 15.3282 20.9618 15.4143 20.9569C15.4551 20.9546 15.4958 20.9523 15.5366 20.9502L15.5761 20.9484C15.5941 20.9477 15.6121 20.947 15.6301 20.9459C15.6439 20.945 15.6578 20.9436 15.6716 20.9421L15.6898 20.9403L15.6899 20.9402C15.701 20.9399 15.7121 20.94 15.7231 20.9392L15.7557 20.9369C15.8318 20.9315 15.9079 20.9261 15.984 20.9202C15.9957 20.9194 16.0074 20.9185 16.0192 20.9176C16.081 20.913 16.1429 20.9083 16.2046 20.9021C16.272 20.8953 16.3393 20.8876 16.4066 20.8799C16.4414 20.8759 16.4763 20.8719 16.5111 20.868C16.6378 20.8539 16.7638 20.8353 16.8896 20.8154C17.0775 20.7859 17.2638 20.7493 17.4484 20.7044C17.6789 20.6482 17.905 20.5785 18.125 20.4897C18.4165 20.3719 18.6905 20.2225 18.9436 20.0355C19.3225 19.7539 19.6587 19.4279 19.952 19.0575C20.1845 18.7646 20.3725 18.4391 20.51 18.0914C20.609 17.8414 20.6842 17.5843 20.7426 17.3223C20.8039 17.0471 20.849 16.7692 20.8805 16.4891C20.8828 16.4688 20.8852 16.4484 20.8876 16.4281C20.8909 16.3996 20.8943 16.3711 20.8974 16.3426C20.9041 16.2803 20.9108 16.2181 20.9166 16.1558C20.9179 16.143 20.9176 16.13 20.9174 16.1171C20.9174 16.1122 20.9173 16.1073 20.9173 16.1025L20.9175 16.1023L20.9216 16.0734C20.9247 16.0521 20.9277 16.0308 20.9298 16.0094C20.9345 15.9583 20.9385 15.907 20.9419 15.8557C20.9481 15.7576 20.9542 15.6594 20.9595 15.5612C20.967 15.4207 20.974 15.2801 20.9806 15.1394C20.9829 15.0903 20.9838 15.0412 20.9846 14.992C20.9853 14.9473 20.9858 14.9026 20.9863 14.8579V14.8579C20.987 14.7953 20.9877 14.7328 20.9889 14.6702C20.9899 14.6211 20.9917 14.5721 20.9973 14.5231C21.0007 14.494 21.0001 14.4644 20.9995 14.4348C20.9993 14.4218 20.999 14.4088 20.9991 14.3959V9.63092L20.9991 9.60404L20.9991 9.55038L20.9991 9.53972C20.9989 9.51204 20.9988 9.48446 20.9941 9.45682C20.9908 9.4383 20.9906 9.4192 20.9904 9.40022V9.40019L20.9903 9.38995L20.9882 9.25341C20.9872 9.18265 20.9862 9.11189 20.9847 9.04114C20.9836 8.98836 20.9816 8.93561 20.9795 8.88285L20.9772 8.81995C20.9766 8.80494 20.9759 8.78993 20.9752 8.77493L20.9748 8.76634L20.9691 8.64082C20.9651 8.55088 20.9611 8.46094 20.956 8.37104C20.9522 8.30451 20.947 8.23805 20.9417 8.1716L20.9359 8.09682L20.9321 8.04666C20.9275 7.98535 20.9229 7.92405 20.9175 7.86274C20.9125 7.80634 20.9064 7.74993 20.9004 7.69354L20.9003 7.69313L20.897 7.66264C20.8931 7.62609 20.8889 7.58959 20.8846 7.5531L20.8845 7.55231L20.8803 7.51608C20.8416 7.18046 20.7858 6.84789 20.7029 6.52018C20.6311 6.23571 20.5375 5.95879 20.4129 5.6927C20.2939 5.43833 20.1468 5.20173 19.9745 4.98024C19.6752 4.5943 19.3289 4.25662 18.9357 3.9672C18.6895 3.78603 18.4233 3.64067 18.1406 3.52522C17.9042 3.42869 17.6608 3.35464 17.4126 3.29549C17.2386 3.25401 17.0631 3.22009 16.8865 3.192C16.7762 3.17443 16.6652 3.16021 16.5545 3.14604C16.4547 3.1333 16.3548 3.12195 16.2548 3.1114C16.1994 3.10556 16.1439 3.10111 16.0884 3.09667L16.0476 3.09338C15.9873 3.08847 15.9269 3.08378 15.8666 3.07909L15.8665 3.07909L15.7802 3.07236L15.7725 3.07169L15.7601 3.0707L15.6649 3.06539L15.6649 3.06539C15.5895 3.06113 15.5141 3.05688 15.4386 3.05333C15.316 3.0476 15.1933 3.04242 15.0707 3.03725L14.9361 3.03154C14.9137 3.03058 14.8914 3.02983 14.869 3.02942C14.7553 3.02747 14.6416 3.02471 14.5279 3.02195C14.3309 3.01717 14.1339 3.0124 13.9368 3.0118C13.8728 3.01162 13.8088 3.0106 13.7448 3.00958L13.6819 3.00861L13.677 3.00858C13.6653 3.00857 13.6535 3.00855 13.6437 3ZM19.1763 17.0579L19.1766 17.0517C19.1767 17.0471 19.1768 17.0425 19.1779 17.0381C19.2275 16.836 19.2624 16.631 19.291 16.4251C19.3098 16.2901 19.3268 16.1547 19.3375 16.0187C19.3417 15.9654 19.3464 15.9121 19.3511 15.8589C19.3586 15.774 19.3661 15.6892 19.3716 15.6042C19.3828 15.4301 19.391 15.2558 19.3987 15.0816C19.4046 14.9497 19.4094 14.8178 19.4117 14.6859L19.4153 14.4842C19.4205 14.2026 19.4257 13.9209 19.4268 13.6392C19.4297 12.9436 19.4306 12.248 19.4295 11.5523L19.4295 11.2777C19.4295 10.7542 19.4295 10.2306 19.4186 9.70709C19.4124 9.40296 19.4061 9.09888 19.3918 8.79501C19.3844 8.63644 19.3757 8.47787 19.3647 8.31947C19.3541 8.1655 19.3406 8.01182 19.3242 7.85844C19.3125 7.74723 19.2991 7.63627 19.284 7.52554C19.2621 7.36599 19.2346 7.20747 19.1999 7.05026C19.1657 6.89516 19.1232 6.74238 19.0697 6.59267C18.9916 6.37321 18.8802 6.16704 18.7395 5.98137C18.5884 5.78135 18.4163 5.59801 18.2263 5.43445C18.1883 5.40179 18.1494 5.37029 18.1105 5.33881L18.1104 5.33876L18.0812 5.3151C17.8793 5.15117 17.6528 5.03224 17.408 4.94664C17.207 4.87636 17.0007 4.82673 16.7919 4.78696C16.581 4.74669 16.3684 4.71721 16.155 4.69446C16.004 4.67833 15.8523 4.66544 15.7006 4.65444C15.5492 4.64344 15.3974 4.63568 15.2457 4.62792L15.2385 4.62756C15.1291 4.62194 15.0196 4.61762 14.91 4.61462L14.8134 4.61183C14.6511 4.60712 14.4888 4.6024 14.3265 4.60068C13.8657 4.59577 13.405 4.59101 12.9443 4.59016C12.2464 4.58885 11.5486 4.58938 10.8507 4.59177C10.5996 4.5923 10.3486 4.59439 10.0974 4.59647L10.0974 4.59647L9.8577 4.59841L9.82872 4.59862H9.82872C9.7489 4.59919 9.66907 4.59976 9.58934 4.60282C9.49703 4.60635 9.40468 4.60825 9.31233 4.61016L9.31231 4.61016L9.3123 4.61016C9.18105 4.61286 9.0498 4.61557 8.91869 4.62295C8.83304 4.62782 8.7474 4.63152 8.66175 4.63522C8.61777 4.63712 8.5738 4.63902 8.52981 4.64107C8.52362 4.64135 8.51744 4.64185 8.51126 4.64235L8.51126 4.64235L8.51126 4.64235L8.50306 4.64299L8.41244 4.64946C8.34449 4.65429 8.27653 4.65912 8.20857 4.66428L8.18781 4.66585C8.12337 4.67072 8.05892 4.67559 7.99463 4.68218C7.89227 4.69268 7.79008 4.70422 7.68806 4.71679C7.62913 4.72411 7.57031 4.73243 7.5115 4.74075L7.51148 4.74075L7.51141 4.74076C7.47952 4.74527 7.44763 4.74978 7.41572 4.75414C7.40685 4.75493 7.39794 4.75526 7.38904 4.75512L7.38907 4.75503L7.31739 4.76857L7.31738 4.76857C7.26453 4.7785 7.21167 4.78842 7.15898 4.79909C6.93749 4.84394 6.71967 4.90123 6.5096 4.98613C6.34776 5.05123 6.19426 5.1354 6.05234 5.23684C5.78124 5.43085 5.54562 5.66141 5.33918 5.92242C5.28924 5.98552 5.24069 6.04965 5.19677 6.11724C5.09636 6.27173 5.01967 6.43755 4.95864 6.61102C4.91632 6.73123 4.88184 6.85368 4.85186 6.97747C4.84793 6.99374 4.8434 7.00985 4.83887 7.02596L4.83887 7.02597L4.83261 7.04844L4.83272 7.0484L4.8298 7.06701C4.82771 7.08069 4.82563 7.09438 4.82265 7.10788C4.76979 7.35293 4.73521 7.60091 4.70752 7.84979C4.69096 7.99864 4.67853 8.148 4.66745 8.29738C4.65639 8.44663 4.64854 8.59619 4.64069 8.74569L4.64069 8.74569L4.64069 8.7457L4.64067 8.74609C4.63503 8.85329 4.63069 8.96055 4.62763 9.06786L4.62559 9.13807C4.62045 9.31366 4.61532 9.48925 4.61283 9.66486C4.608 10.0048 4.60357 10.3448 4.60262 10.6847C4.59962 11.7494 4.5969 12.8141 4.60737 13.8788C4.61072 14.2165 4.61777 14.5542 4.62607 14.8918C4.62673 14.9186 4.62753 14.9455 4.62877 14.9724L4.63381 15.0811C4.63926 15.199 4.64472 15.3169 4.65074 15.4347C4.65577 15.5308 4.66081 15.6268 4.66836 15.7227C4.67515 15.8081 4.68316 15.8934 4.69117 15.9787L4.70214 16.0968C4.71248 16.2104 4.7265 16.3235 4.74143 16.4366C4.7631 16.6007 4.79033 16.7638 4.82487 16.9256C4.85985 17.0897 4.90314 17.2516 4.95983 17.4096C5.02424 17.5893 5.10596 17.7603 5.21434 17.9181C5.29414 18.0342 5.38123 18.1452 5.47508 18.2503C5.64558 18.4412 5.83564 18.6105 6.0414 18.7625C6.1548 18.8463 6.27647 18.9182 6.4045 18.9772C6.5449 19.0421 6.69048 19.0925 6.83926 19.1339C7.11993 19.2121 7.40659 19.2588 7.69529 19.294C7.79514 19.3061 7.89529 19.3159 7.99546 19.3252L8.03116 19.3284L8.03143 19.3285L8.03148 19.3285C8.15306 19.3397 8.27467 19.3509 8.39647 19.359C8.56158 19.3699 8.72687 19.378 8.89219 19.3856C9.02176 19.3916 9.15144 19.3965 9.28109 19.399L9.45946 19.4025H9.4595H9.45953C9.71982 19.4078 9.98011 19.4131 10.2404 19.4145C11.3901 19.4206 12.5397 19.4191 13.6893 19.4158C13.9179 19.4151 14.1465 19.4106 14.375 19.4061C14.4976 19.4037 14.6201 19.4013 14.7426 19.3995C14.7627 19.3992 14.7829 19.3984 14.803 19.3976L14.9426 19.392C15.0681 19.387 15.1937 19.382 15.3192 19.3763C15.4286 19.3713 15.538 19.365 15.6474 19.3587C15.701 19.3556 15.7545 19.3513 15.808 19.3469C15.8726 19.3417 15.9372 19.3362 16.0018 19.33C16.0685 19.3236 16.1352 19.3168 16.2019 19.309C16.2973 19.2978 16.3927 19.2861 16.488 19.2738C16.5343 19.2678 16.5805 19.2613 16.6267 19.2547L16.687 19.2462C16.6871 19.2462 16.6871 19.2461 16.6871 19.246C16.7106 19.2413 16.7341 19.2367 16.7576 19.232C16.8085 19.2219 16.8595 19.2118 16.9104 19.2011C17.1251 19.1562 17.336 19.0987 17.5392 19.0149C17.6923 18.9519 17.8378 18.8717 17.9727 18.7758C18.2687 18.5653 18.5214 18.311 18.7414 18.0229C18.8499 17.8805 18.9401 17.725 19.01 17.5602C19.0583 17.4469 19.0978 17.3307 19.132 17.2125C19.138 17.1917 19.1435 17.1708 19.149 17.1498C19.1531 17.134 19.1572 17.1182 19.1616 17.1025C19.1644 17.0923 19.1679 17.0823 19.1713 17.0723C19.1729 17.0675 19.1746 17.0627 19.1762 17.058C19.1762 17.0579 19.1763 17.0579 19.1763 17.0579ZM3.12917 7.986L3.12916 7.98601L3.12903 7.98608C3.14334 7.97696 3.15765 7.96783 3.17163 7.95831C3.15771 7.96785 3.14344 7.97693 3.12917 7.986Z",fill:"currentColor"},null,-1)]))}const Ce=q._export_sfc(qe,[["render",Re]]),me=i=>{if(Array.isArray(i))return i.map(e.unref);const c=e.unref(i);return Array.isArray(c)?c:[c]},Ue=(i,c)=>{let l;const s=C=>{C.forEach(u=>{const d=e.unref(u);if(d){if(!(d instanceof Element))throw console.error("Vuestic: Trying to observe non-HTMLElement",{target:d,array:i}),new Error("Vuestic: Unable to observe non-HTMLElement");d&&(l==null||l.observe(d))}})};return e.watch(i,C=>{l==null||l.disconnect(),s(me(C))}),e.onMounted(()=>{l=new ResizeObserver(c),s(me(i))}),e.onBeforeUnmount(()=>l==null?void 0:l.disconnect()),l},Ze=i=>{const c=e.ref(null);return Ue([i],()=>{var l;c.value=((l=i.value)==null?void 0:l.clientWidth)??null}),e.watchEffect(()=>{var l;c.value=((l=i.value)==null?void 0:l.clientWidth)??null}),c},Xe={class:"mt-auto shrink px-2"},Ge=["href"],Je={class:"rounded-lg bg-[#FFF8E4] py-2 flex items-center space-x-3 px-3"},Ke={class:""},Qe={class:"",style:{"font-size":"10px"}},Ye={key:1,class:"flex justify-between border rounded-lg bg-[#F5F5F5] mb-2 w-full min-w-[220px] space-x-3 px-3"},e1={class:"flex items-center text-[#525B66] space-x-3"},t1={style:{"font-size":"10px"}},o1=["href"],l1={class:"flex flex-nowrap items-center w-max h-[24px]"},n1={class:"whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full text-[#525B66]"},a1={class:"py-[8px] pl-0 pr-[8px]"},s1=["href"],r1={class:"flex flex-nowrap items-center w-max h-[24px]"},i1={class:"whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full"},c1={class:"py-[8px] pl-0 pr-[8px]"},d1={key:4,class:"custom-select ml-3 w-full relative pt-3"},p1={class:"pl-2"},m1={key:0,class:"dropdown w-[220px] z-50 text-[#525B66]"},u1=["onClick"],C1={key:0,class:"mt-1 h-0 border-t border-secondary-stroke mb-1"},f1={key:0,class:"tooltip-text"},h1={class:"flex flex-nowrap items-center w-full h-[36px]"},v1={class:"w-[36px] flex-shrink-0 relative"},k1={key:0,class:"absolute top-0 right-1.5 w-2 h-2 bg-blue-600 text-white rounded-full animate-ping z-0"},w1={key:1,class:"absolute top-0 right-1.5 w-2 h-2 bg-blue-500 text-white rounded-full z-10"},y1=["href"],x1={key:0,class:"tooltip-text"},b1={class:"flex flex-nowrap items-center w-full h-[36px]"},g1={class:"w-[36px] flex-shrink-0 relative"},B1=e.defineComponent({__name:"OneSidebar",props:ue,emits:["show-news","show-tariff","select-language","update-collapsed","update:modelValue"],setup(i,{emit:c}){var V,E,L;const l=c,s=i,C=e.computed(()=>{var o;return((o=s.news)==null?void 0:o.unseenCount)||0}),u=()=>{l("show-news")},d=e.ref(!1),f=e.ref(s.hoverable);e.watch(s,()=>{s.modelValue?f.value=!0:f.value=!1}),s.modelValue&&(f.value=!0);const g=e.shallowRef(),k=e.computed(()=>{const o=[];if(s.slim||o.push("fixed"),!w.value)if(!s.isMobile)o.push("w-[260px]");else return o.push("w-full");return o.join(" ")}),n=e.computed(()=>""),h=o=>{d.value=f.value&&o},w=e.computed(()=>f.value&&!d.value),t=e.computed(()=>!!w.value),r=e.ref(),O=Ze(r),B=e.computed(()=>s.modelValue===!0||O.value===null?!0:O.value>0),T=e.ref(),j=()=>w.value?s.minimizedWidth:s.width;e.watchEffect(()=>{const o=j();setTimeout(()=>{T.value=o})});const y=e.ref(!1),x=e.ref((V=s.app)!=null&&V.availableLang&&((E=s.app)==null?void 0:E.availableLang.length)>0?(L=s.app)==null?void 0:L.availableLang.find(o=>{var p;return o.id==((p=s.app)==null?void 0:p.lang)}):null),H=()=>{y.value=!y.value},I=o=>{x.value=o,y.value=!1,l("select-language",o)},F=()=>{var o,p;(p=(o=s.app)==null?void 0:o.selectedPlan)!=null&&p.url&&(window.location.href=s.app.selectedPlan.url)};return(o,p)=>{var N,_,S,$,D,M,a,b,z,W,R,U,Z,X,G,J,K,Q,Y,ee,te,oe,le,ne,ae,se,re,ie,ce;return e.openBlock(),e.createElementBlock("aside",{ref_key:"rootElement",ref:g,class:e.normalizeClass(["oneb-sidebar pt-[56px] pb-1 cont sm:max-w-[270px] flex flex-col sidebar z-40",k.value]),style:e.normalizeStyle(n.value),onMouseenter:p[1]||(p[1]=m=>h(!0)),onMouseleave:p[2]||(p[2]=m=>h(!1))},[e.withDirectives(e.createElementVNode("div",{class:"overflow-y-auto top-[56px] left-0 overflow-hidden lg:bg-transparent transition-all z-50 px-1 ml-1 mr-1 mt-2 flex-grow",ref_key:"menu",ref:r},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.items,m=>(e.openBlock(),e.createBlock(Ae,{key:m.label,labelTop:m.labelTop,isMobile:o.isMobile,subItems:m.subItems,open:m.open,icon:m.icon,label:m.label,route:m.route,href:m.href,slim:t.value,"route-name":m.routeName,exact:m.exact||!1,onUpdateCollapsed:p[0]||(p[0]=P=>l("update-collapsed"))},null,8,["labelTop","isMobile","subItems","open","icon","label","route","href","slim","route-name","exact"]))),128))],512),[[e.vShow,B.value]]),e.withDirectives(e.createElementVNode("div",Xe,[e.createElementVNode("div",{class:e.normalizeClass([t.value?"hidden":"w-full hidden md:flex-col md:flex px-2"])},[(N=o.app)!=null&&N.offerPlan?(e.openBlock(),e.createElementBlock("a",{key:0,href:(_=o.app)==null?void 0:_.offerPlan.url,class:"w-full min-w-[220px] border-gradient rounded-lg p-[1px] bg-[#FFF8E4] mb-2 block",target:"_blank",rel:"noopener noreferrer"},[e.createElementVNode("div",Je,[e.createElementVNode("div",Ke,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent((S=o.app)==null?void 0:S.offerPlan.icon),{class:"w-[16px] h-[16px]"}))]),e.createElementVNode("p",Qe,[e.createElementVNode("strong",null,e.toDisplayString(($=o.app)==null?void 0:$.offerPlan.title),1),e.createTextVNode(" «"+e.toDisplayString((D=o.app)==null?void 0:D.offerPlan.name)+"» ",1),p[3]||(p[3]=e.createElementVNode("br",null,null,-1)),e.createTextVNode(e.toDisplayString((M=o.app)==null?void 0:M.offerPlan.title1),1)])])],8,Ge)):e.createCommentVNode("",!0),(a=o.app)!=null&&a.selectedPlan&&((b=o.app)!=null&&b.selectedPlan.name)?(e.openBlock(),e.createElementBlock("div",Ye,[e.createElementVNode("div",e1,[e.createElementVNode("div",null,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent((z=o.app)==null?void 0:z.selectedPlan.icon),{class:"w-[16px] h-[16px]"}))]),e.createElementVNode("div",t1,[e.createElementVNode("p",null,e.toDisplayString(((W=o.app)==null?void 0:W.selectedPlan.name)||""),1),e.createElementVNode("p",null,e.toDisplayString(((R=o.app)==null?void 0:R.selectedPlan.title)||""),1)])]),e.createElementVNode("div",null,[e.createVNode(A._sfc_main,{class:"text-[#525B66] hover:text-[#4089E0]",variant:"touch",icon:e.unref(v.render$2),onClick:F},null,8,["icon"])])])):e.createCommentVNode("",!0),(U=o.app)!=null&&U.terms?(e.openBlock(),e.createElementBlock("a",{key:2,href:(Z=o.app)==null?void 0:Z.terms.url,target:"_blank",class:"ml-2 flex items-center rounded-lg text-xs hover:underline font-extralight"},[e.createElementVNode("div",l1,[e.createElementVNode("div",n1,[e.createElementVNode("span",a1,e.toDisplayString(((X=o.app)==null?void 0:X.terms.label)||"Terms"),1)])])],8,o1)):e.createCommentVNode("",!0),(G=o.app)!=null&&G.offer?(e.openBlock(),e.createElementBlock("a",{key:3,href:(J=o.app)==null?void 0:J.offer.url,target:"_blank",class:"ml-2 flex items-center rounded-lg text-xs hover:underline text-[#525B66] font-extralight"},[e.createElementVNode("div",r1,[e.createElementVNode("div",i1,[e.createElementVNode("span",c1,e.toDisplayString(((K=o.app)==null?void 0:K.offer.label)||"Offert"),1)])])],8,s1)):e.createCommentVNode("",!0),(Y=(Q=o.app)==null?void 0:Q.availableLang)!=null&&Y.length?(e.openBlock(),e.createElementBlock("div",d1,[e.createElementVNode("div",{class:"select-box flex gap-x-3 text-xs text-[#525B66] cursor-pointer",onClick:H},[e.createVNode(e.unref(v.render$3),{class:"w-4"}),e.createTextVNode(" "+e.toDisplayString((ee=x.value)==null?void 0:ee.name)+" ",1),e.createElementVNode("span",p1,e.toDisplayString(y.value?"▲":"▼"),1)]),y.value?(e.openBlock(),e.createElementBlock("div",m1,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((te=o.app)==null?void 0:te.availableLang,m=>{var P,de;return e.openBlock(),e.createElementBlock("div",{key:m.id,class:e.normalizeClass(["px-2",{"hover:bg-slate-200 rounded-lg cursor-pointer":m.id!==((P=x.value)==null?void 0:P.id),"text-gray-300":m.id===((de=x.value)==null?void 0:de.id)}]),onClick:mt=>{var pe;return m.id!==((pe=x.value)==null?void 0:pe.id)&&I(m)}},e.toDisplayString(m.name),11,u1)}),128))])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],2),t.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",C1)),e.createElementVNode("div",{class:e.normalizeClass([t.value?"grid":"flex space-x-2"])},[o.news?(e.openBlock(),e.createElementBlock("a",{key:0,href:"#",class:e.normalizeClass(["text-[#525B66] flex items-center rounded-lg text-sm tooltip hover:bg-primary-10-hover hover:text-primary-base transition-all",[t.value?"w-[44px] h-[44px]":"h-[36x]"]]),onClick:u},[o.news.menuLabel?(e.openBlock(),e.createElementBlock("div",f1,e.toDisplayString(o.news.menuLabel||"News"),1)):e.createCommentVNode("",!0),e.createElementVNode("div",h1,[e.createElementVNode("div",v1,[e.createElementVNode("div",null,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(Ce),{class:"w-[24px] h-[24px] mx-auto"}))]),C.value>0?(e.openBlock(),e.createElementBlock("span",k1)):e.createCommentVNode("",!0),C.value>0?(e.openBlock(),e.createElementBlock("span",w1)):e.createCommentVNode("",!0)])])],2)):e.createCommentVNode("",!0),(oe=o.app)!=null&&oe.support?(e.openBlock(),e.createElementBlock("a",{key:1,href:(ne=(le=o.app)==null?void 0:le.support)==null?void 0:ne.url,class:e.normalizeClass(["text-[#525B66] flex items-center rounded-lg text-sm tooltip hover:bg-primary-10-hover hover:text-primary-base transition-all",[t.value?"w-[44px] h-[44px]":"h-[36x]"]])},[(se=(ae=o.app)==null?void 0:ae.support)!=null&&se.label?(e.openBlock(),e.createElementBlock("div",x1,e.toDisplayString(((ie=(re=o.app)==null?void 0:re.support)==null?void 0:ie.label)||"Support"),1)):e.createCommentVNode("",!0),e.createElementVNode("div",b1,[e.createElementVNode("div",g1,[e.createElementVNode("div",null,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(ye)),{class:"w-[20px] h-[20px] mx-auto"}))])])])],10,y1)):e.createCommentVNode("",!0)],2),e.createElementVNode("p",{class:e.normalizeClass([[t.value?"hidden":"w-full"],"text-[7px] pl-2 text-[#979CA9] flex justify-between font-extralight"])},[p[4]||(p[4]=e.createElementVNode("span",null,"Powered by OneB",-1)),e.createElementVNode("span",null,e.toDisplayString((ce=o.app)==null?void 0:ce.version),1)],2)],512),[[e.vShow,B.value]])],38)}}});const fe=q._export_sfc(B1,[["__scopeId","data-v-b1d7b3ae"]]),V1={class:"h-screen h-dvh relative"},E1={class:"header h-[56px] flex items-center flex-nowrap fixed top-0 left-0 w-full z-50",style:{background:"rgba(245, 247, 251, 0.80)","backdrop-filter":"blur(5px)"}},L1={class:"p-2 flex-shrink-0"},N1={class:"w-10 h-10 flex items-center flex-shrink-0"},_1=["src"],S1={class:"whitespace-nowrap font-semibold text-xl"},$1={class:"text-xs whitespace-nowrap"},D1={class:"w-full"},M1={class:"w-full flex justify-end pr-3"},z1={class:"flex items-center space-x-1"},O1={key:0,class:"module-border-wrap flex justify-center items-center"},T1={class:"h-4 w-4"},j1={class:"ml-2 hidden sm:flex"},H1={class:"flex h-full"},I1={key:0},F1={key:0,class:"sm:w-[560px] w-full relative h-full"},P1={class:"h-full relative"},A1={class:"flex items-center p-3 space-x-1.5"},q1={class:"overflow-auto",style:{height:"calc(100% - 62px)"}},W1={key:0,class:"p-5"},R1={key:1},U1={class:"p-4 text-gray text-center"},Z1={key:2},X1={class:"p-3 space-y-1.5 rounded-lg",style:{"box-shadow":"0 0 6px #eaeaea"}},G1={key:0},J1={key:0,class:"text-xs px-2 py-1 rounded-md bg-green-600 text-white"},K1={key:1,class:"text-xs px-2 py-1 rounded-md bg-yellow-600 text-white"},Q1={key:2,class:"text-xs px-2 py-1 rounded-md bg-blue-600 text-white"},Y1={key:3,class:"text-xs px-2 py-1 rounded-md bg-gray-600 text-white"},et={class:"text-lg font-medium"},tt={class:"text-sm text-gray-600"},ot={key:0},lt=["src"],nt={class:"text-sm whitespace-pre-wrap break-words"},at={key:1},st=["href"],rt={class:"text-sm flex items-center justify-between mt-1"},it={class:"text-gray-800"},ct=["href"],dt=e.defineComponent({__name:"OneMainLayout",props:ke,emits:["load-news","load-tariff","open-tariff"],setup(i,{emit:c}){const l=c,s=i;let C=window.localStorage.getItem("sidebar-slim");window.document.body.offsetWidth<1024&&(window.localStorage.getItem("sidebar-slim")==null&&window.localStorage.setItem("sidebar-slim","1"),C="1");const u=e.ref(C==="1");e.ref(!0),e.watch(u,t=>{window.localStorage.setItem("sidebar-slim",String(t?1:0))});const d=e.ref(!1),f=()=>{d.value=!d.value,d.value&&l("load-news")},g=e.computed(()=>s.showHeadre);e.watch(()=>s.showHeadre,()=>{g.value=s.showHeadre});const k=e.ref(window.innerWidth),n=()=>{k.value=window.innerWidth},h=e.computed(()=>k.value<=768);e.onMounted(()=>{window.addEventListener("resize",n)}),e.onUnmounted(()=>{window.removeEventListener("resize",n)});const w=t=>{var r;(r=s.handlers)==null||r.onSetLang(t)};return(t,r)=>{var B,T,j,y,x,H,I,F,V,E,L,o,p,N,_,S,$,D,M;const O=e.resolveComponent("RouterLink");return e.openBlock(),e.createElementBlock("div",V1,[e.withDirectives(e.createElementVNode("div",E1,[e.createElementVNode("div",L1,[e.createElementVNode("button",{onClick:r[0]||(r[0]=a=>u.value=!u.value),class:"w-[44px] h-[44px] p-[8px] flex items-center justify-center rounded hover:bg-secondary-10 hover:text-blue-600"},[e.createVNode(e.unref(we),{class:"w-[24px] h-[24px]"})])]),e.createElementVNode("div",N1,[t.logoSrc!=null?(e.openBlock(),e.createElementBlock("img",{key:0,src:t.logoSrc,class:"w-8 h-8 mx-auto",alt:"logo"},null,8,_1)):e.createCommentVNode("",!0)]),t.app!=null?(e.openBlock(),e.createBlock(O,{key:0,to:"/",class:"pl-2 max-w-xs"},{default:e.withCtx(()=>{var a,b;return[e.createElementVNode("div",S1,e.toDisplayString(t.app.name),1),e.createElementVNode("div",$1,e.toDisplayString((b=(a=t.app)==null?void 0:a.workspace)==null?void 0:b.name),1)]}),_:1})):e.createCommentVNode("",!0),e.createElementVNode("div",D1,[e.createElementVNode("div",M1,[e.createElementVNode("div",z1,[e.renderSlot(t.$slots,"before-header-menu",{},void 0,!0),t.improveTariff&&((B=t.improveTariff)!=null&&B.label)&&t.improveTariff.label?(e.openBlock(),e.createElementBlock("div",O1,[e.createElementVNode("button",{type:"button",class:"cursor-pointer flex items-center h-full bg-[#FFF8E4] hover:bg-[#f2e3b8] rounded-full px-2 py-1 font-medium",onClick:r[1]||(r[1]=(...a)=>{var b,z;return((b=t.handlers)==null?void 0:b.onImproveTariff)&&((z=t.handlers)==null?void 0:z.onImproveTariff(...a))}),style:{"font-size":"10px"}},[e.createElementVNode("div",T1,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent((T=t.improveTariff)==null?void 0:T.icon),{class:"h-4 w-4 mx-auto"}))]),e.createElementVNode("span",j1,e.toDisplayString((j=t.improveTariff)==null?void 0:j.label),1)])])):e.createCommentVNode("",!0),t.help?(e.openBlock(),e.createBlock(v.OneHelpMenu,{key:1,help:t.help},null,8,["help"])):e.createCommentVNode("",!0),((y=t.handlers)==null?void 0:y.onBrowse)!=null?(e.openBlock(),e.createBlock(v.OneBrowserMenu,{key:2,workspace:(x=t.app)==null?void 0:x.workspace,apps:((H=t.app)==null?void 0:H.apps)||[],"change-label":((I=t.labels)==null?void 0:I.change)||"Change","apps-title":((F=t.labels)==null?void 0:F.apps)||"Apps","on-app":(V=t.handlers)==null?void 0:V.onApp,"on-change":(E=t.handlers)==null?void 0:E.onChange,onOpen:(L=t.handlers)==null?void 0:L.onBrowse},null,8,["workspace","apps","change-label","apps-title","on-app","on-change","onOpen"])):e.createCommentVNode("",!0),e.createVNode(v._sfc_main$2,{user:t.user,menu:t.menu,app:t.app,"account-label":((o=t.labels)==null?void 0:o.account)||"Account","logout-label":((p=t.labels)==null?void 0:p.logout)||"Logout","version-label":((N=t.labels)==null?void 0:N.version)||"","on-account":(_=t.handlers)==null?void 0:_.onAccount,"on-logout":(S=t.handlers)==null?void 0:S.onLogout},null,8,["user","menu","app","account-label","logout-label","version-label","on-account","on-logout"])])])])],512),[[e.vShow,g.value]]),e.createElementVNode("div",H1,[!h.value||!u.value?(e.openBlock(),e.createBlock(fe,{key:0,app:t.app,items:t.sidebarItems,"with-news":t.news!=null,news:t.news,isMobile:h.value,modelValue:u.value,"onUpdate:modelValue":r[2]||(r[2]=a=>u.value=a),onShowNews:f,onSelectLanguage:w,onUpdateCollapsed:r[3]||(r[3]=a=>u.value=!u.value)},null,8,["app","items","with-news","news","isMobile","modelValue"])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass([[u.value?"sm:ml-[60px]":"sm:ml-[260px] hidden sm:block"],"body scroll-body w-full overflow-y-auto"])},[e.createElementVNode("div",{class:e.normalizeClass(["content transition-all",{"pt-[56px]":g.value}])},[e.renderSlot(t.$slots,"default",{},void 0,!0)],2)],2)]),t.news?(e.openBlock(),e.createElementBlock("div",I1,[d.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"fixed top-0 left-0 h-screen h-dvh w-screen bg-gray-100 bg-opacity-40 z-50",onClick:r[4]||(r[4]=e.withModifiers(a=>d.value=!1,["self"]))})):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["opacity-100 shadow-lg transition-all fixed top-0 left-0 h-dvh overflow-hidden z-50 bg-white",[d.value?"sm:w-[560px] w-full":"w-0"]])},[d.value?(e.openBlock(),e.createElementBlock("div",F1,[e.createElementVNode("div",P1,[e.createElementVNode("div",A1,[e.createVNode(Ce,{class:"w-10 h-10"}),r[6]||(r[6]=e.createElementVNode("div",{class:"w-full font-medium"},"OneB News",-1)),e.createElementVNode("div",null,[e.createVNode(A._sfc_main,{variant:"touch",icon:e.unref(he.render),onClick:r[5]||(r[5]=a=>d.value=!1)},null,8,["icon"])])]),e.createElementVNode("div",q1,[t.news.isLoading&&(($=t.news.items)==null?void 0:$.length)===0?(e.openBlock(),e.createElementBlock("div",W1,[e.createVNode(A.SpinnerIcon,{class:"w-6 h-6 text-gray-600 mx-auto"})])):((D=t.news.items)==null?void 0:D.length)===0?(e.openBlock(),e.createElementBlock("div",R1,[e.createElementVNode("div",U1,e.toDisplayString(t.news.emptyText),1)])):((M=t.news.items)==null?void 0:M.length)>0?(e.openBlock(),e.createElementBlock("div",Z1,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.news.items,a=>(e.openBlock(),e.createElementBlock("div",{key:a.id,class:"p-3"},[e.createElementVNode("div",X1,[e.createElementVNode("div",null,[a.type?(e.openBlock(),e.createElementBlock("div",G1,[a.type===10?(e.openBlock(),e.createElementBlock("span",J1,"update")):a.type===11?(e.openBlock(),e.createElementBlock("span",K1,"warning")):a.type===12?(e.openBlock(),e.createElementBlock("span",Q1,"notice")):a.type===13?(e.openBlock(),e.createElementBlock("span",Y1,"ads")):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",et,e.toDisplayString(a.title),1),e.createElementVNode("div",tt,e.toDisplayString(a.summary),1)]),a.image_url?(e.openBlock(),e.createElementBlock("div",ot,[e.createElementVNode("img",{src:a.image_url,alt:"",class:"w-full rounded-md"},null,8,lt)])):e.createCommentVNode("",!0),e.createElementVNode("div",nt,e.toDisplayString(a.body),1),a.video_url?(e.openBlock(),e.createElementBlock("div",at,[e.createElementVNode("a",{href:a.video_url,target:"_blank",class:"text-blue-600 hover:text-blue-700 px-3 py-2 border rounded-md w-full block"},e.toDisplayString(t.news.openVideoText),9,st)])):e.createCommentVNode("",!0),e.createElementVNode("div",rt,[e.createElementVNode("span",it,e.toDisplayString(a.published),1),a.post_url?(e.openBlock(),e.createElementBlock("a",{key:0,href:a.post_url,target:"_blank",class:"text-blue-600 hover:text-blue-700 block"},e.toDisplayString(t.news.moreText),9,ct)):e.createCommentVNode("",!0)])])]))),128))])):e.createCommentVNode("",!0)])])])):e.createCommentVNode("",!0)],2)])):e.createCommentVNode("",!0)])}}});const pt=q._export_sfc(dt,[["__scopeId","data-v-d9fab1d4"]]);exports.OneMainLayout=pt;exports.OneSidebar=fe;
@@ -1,5 +1,5 @@
1
1
  import { openBlock as t, createElementBlock as l, createElementVNode as e, defineComponent as i1, computed as $, ref as _, resolveComponent as z1, Fragment as U, normalizeClass as w, toDisplayString as p, createCommentVNode as n, createBlock as m, resolveDynamicComponent as L, unref as g, withModifiers as X, withCtx as n1, renderList as Y, watch as e1, onMounted as H1, onBeforeUnmount as F1, watchEffect as I1, shallowRef as N1, normalizeStyle as W1, withDirectives as a1, vShow as r1, createTextVNode as s1, createVNode as j, onUnmounted as q1, renderSlot as T1 } from "vue";
2
- import { r as l1, d as o1, e as R1, f as U1, c as Z1, O as D1, b as G1 } from "../OneHelpMenu-260fea46.js";
2
+ import { r as l1, d as o1, e as R1, f as U1, c as Z1, O as D1, b as G1 } from "../OneHelpMenu-00822d7e.js";
3
3
  import { _ as p1 } from "../_plugin-vue_export-helper-dad06003.js";
4
4
  import { _ as E1, S as J1 } from "../index-f8afb6b6.js";
5
5
  import { r as K1 } from "../XMarkIcon-51ef0691.js";
@@ -383,7 +383,7 @@ const P1 = /* @__PURE__ */ p1(Le, [["render", ke]]), j1 = (c) => {
383
383
  class: "custom-select ml-3 w-full relative pt-3"
384
384
  }, Ue = { class: "pl-2" }, Ze = {
385
385
  key: 0,
386
- class: "dropdown w-[220px] z-10 text-[#525B66]"
386
+ class: "dropdown w-[220px] z-50 text-[#525B66]"
387
387
  }, De = ["onClick"], Ge = {
388
388
  key: 0,
389
389
  class: "mt-1 h-0 border-t border-secondary-stroke mb-1"
@@ -396,10 +396,10 @@ const P1 = /* @__PURE__ */ p1(Le, [["render", ke]]), j1 = (c) => {
396
396
  }, Ye = {
397
397
  key: 1,
398
398
  class: "absolute top-0 right-1.5 w-2 h-2 bg-blue-500 text-white rounded-full z-10"
399
- }, e0 = ["href"], t0 = {
399
+ }, e9 = ["href"], t9 = {
400
400
  key: 0,
401
401
  class: "tooltip-text"
402
- }, s0 = { class: "flex flex-nowrap items-center w-full h-[36px]" }, l0 = { class: "w-[36px] flex-shrink-0 relative" }, o0 = /* @__PURE__ */ i1({
402
+ }, s9 = { class: "flex flex-nowrap items-center w-full h-[36px]" }, l9 = { class: "w-[36px] flex-shrink-0 relative" }, o9 = /* @__PURE__ */ i1({
403
403
  __name: "OneSidebar",
404
404
  props: A1,
405
405
  emits: ["show-news", "show-tariff", "select-language", "update-collapsed", "update:modelValue"],
@@ -556,7 +556,7 @@ const P1 = /* @__PURE__ */ p1(Le, [["render", ke]]), j1 = (c) => {
556
556
  return t(), l("div", {
557
557
  key: C.id,
558
558
  class: w(["px-2", { "hover:bg-slate-200 rounded-lg cursor-pointer": C.id !== ((t1 = V.value) == null ? void 0 : t1.id), "text-gray-300": C.id === ((V1 = V.value) == null ? void 0 : V1.id) }]),
559
- onClick: (Z0) => {
559
+ onClick: (Z9) => {
560
560
  var O1;
561
561
  return C.id !== ((O1 = V.value) == null ? void 0 : O1.id) && K(C);
562
562
  }
@@ -591,15 +591,15 @@ const P1 = /* @__PURE__ */ p1(Le, [["render", ke]]), j1 = (c) => {
591
591
  href: (_1 = (L1 = o.app) == null ? void 0 : L1.support) == null ? void 0 : _1.url,
592
592
  class: w(["text-[#525B66] flex items-center rounded-lg text-sm tooltip hover:bg-primary-10-hover hover:text-primary-base transition-all", [s.value ? "w-[44px] h-[44px]" : "h-[36x]"]])
593
593
  }, [
594
- ($1 = (k1 = o.app) == null ? void 0 : k1.support) != null && $1.label ? (t(), l("div", t0, p(((B1 = (S1 = o.app) == null ? void 0 : S1.support) == null ? void 0 : B1.label) || "Support"), 1)) : n("", !0),
595
- e("div", s0, [
596
- e("div", l0, [
594
+ ($1 = (k1 = o.app) == null ? void 0 : k1.support) != null && $1.label ? (t(), l("div", t9, p(((B1 = (S1 = o.app) == null ? void 0 : S1.support) == null ? void 0 : B1.label) || "Support"), 1)) : n("", !0),
595
+ e("div", s9, [
596
+ e("div", l9, [
597
597
  e("div", null, [
598
598
  (t(), m(L(g(ee)), { class: "w-[20px] h-[20px] mx-auto" }))
599
599
  ])
600
600
  ])
601
601
  ])
602
- ], 10, e0)) : n("", !0)
602
+ ], 10, e9)) : n("", !0)
603
603
  ], 2),
604
604
  e("p", {
605
605
  class: w([[s.value ? "hidden" : "w-full"], "text-[7px] pl-2 text-[#979CA9] flex justify-between font-extralight"])
@@ -614,37 +614,37 @@ const P1 = /* @__PURE__ */ p1(Le, [["render", ke]]), j1 = (c) => {
614
614
  };
615
615
  }
616
616
  });
617
- const n0 = /* @__PURE__ */ p1(o0, [["__scopeId", "data-v-bded4814"]]), a0 = { class: "h-screen h-dvh relative" }, r0 = {
617
+ const n9 = /* @__PURE__ */ p1(o9, [["__scopeId", "data-v-b1d7b3ae"]]), a9 = { class: "h-screen h-dvh relative" }, r9 = {
618
618
  class: "header h-[56px] flex items-center flex-nowrap fixed top-0 left-0 w-full z-50",
619
619
  style: { background: "rgba(245, 247, 251, 0.80)", "backdrop-filter": "blur(5px)" }
620
- }, 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 = {
620
+ }, i9 = { class: "p-2 flex-shrink-0" }, p9 = { class: "w-10 h-10 flex items-center flex-shrink-0" }, d9 = ["src"], u9 = { class: "whitespace-nowrap font-semibold text-xl" }, c9 = { class: "text-xs whitespace-nowrap" }, h9 = { class: "w-full" }, f9 = { class: "w-full flex justify-end pr-3" }, m9 = { class: "flex items-center space-x-1" }, v9 = {
621
621
  key: 0,
622
622
  class: "module-border-wrap flex justify-center items-center"
623
- }, C0 = { class: "h-4 w-4" }, w0 = { class: "ml-2 hidden sm:flex" }, x0 = { class: "flex h-full" }, b0 = { key: 0 }, y0 = {
623
+ }, C9 = { class: "h-4 w-4" }, w9 = { class: "ml-2 hidden sm:flex" }, x9 = { class: "flex h-full" }, b9 = { key: 0 }, y9 = {
624
624
  key: 0,
625
625
  class: "sm:w-[560px] w-full relative h-full"
626
- }, g0 = { class: "h-full relative" }, L0 = { class: "flex items-center p-3 space-x-1.5" }, _0 = {
626
+ }, g9 = { class: "h-full relative" }, L9 = { class: "flex items-center p-3 space-x-1.5" }, _9 = {
627
627
  class: "overflow-auto",
628
628
  style: { height: "calc(100% - 62px)" }
629
- }, k0 = {
629
+ }, k9 = {
630
630
  key: 0,
631
631
  class: "p-5"
632
- }, $0 = { key: 1 }, S0 = { class: "p-4 text-gray text-center" }, B0 = { key: 2 }, M0 = {
632
+ }, $9 = { key: 1 }, S9 = { class: "p-4 text-gray text-center" }, B9 = { key: 2 }, M9 = {
633
633
  class: "p-3 space-y-1.5 rounded-lg",
634
634
  style: { "box-shadow": "0 0 6px #eaeaea" }
635
- }, V0 = { key: 0 }, O0 = {
635
+ }, V9 = { key: 0 }, O9 = {
636
636
  key: 0,
637
637
  class: "text-xs px-2 py-1 rounded-md bg-green-600 text-white"
638
- }, T0 = {
638
+ }, T9 = {
639
639
  key: 1,
640
640
  class: "text-xs px-2 py-1 rounded-md bg-yellow-600 text-white"
641
- }, j0 = {
641
+ }, j9 = {
642
642
  key: 2,
643
643
  class: "text-xs px-2 py-1 rounded-md bg-blue-600 text-white"
644
- }, z0 = {
644
+ }, z9 = {
645
645
  key: 3,
646
646
  class: "text-xs px-2 py-1 rounded-md bg-gray-600 text-white"
647
- }, H0 = { class: "text-lg font-medium" }, I0 = { class: "text-sm text-gray-600" }, E0 = { key: 0 }, A0 = ["src"], P0 = { class: "text-sm whitespace-pre-wrap break-words" }, F0 = { key: 1 }, N0 = ["href"], W0 = { class: "text-sm flex items-center justify-between mt-1" }, q0 = { class: "text-gray-800" }, R0 = ["href"], U0 = /* @__PURE__ */ i1({
647
+ }, H9 = { class: "text-lg font-medium" }, I9 = { class: "text-sm text-gray-600" }, E9 = { key: 0 }, A9 = ["src"], P9 = { class: "text-sm whitespace-pre-wrap break-words" }, F9 = { key: 1 }, N9 = ["href"], W9 = { class: "text-sm flex items-center justify-between mt-1" }, q9 = { class: "text-gray-800" }, R9 = ["href"], U9 = /* @__PURE__ */ i1({
648
648
  __name: "OneMainLayout",
649
649
  props: X1,
650
650
  emits: ["load-news", "load-tariff", "open-tariff"],
@@ -662,8 +662,8 @@ const n0 = /* @__PURE__ */ p1(o0, [["__scopeId", "data-v-bded4814"]]), a0 = { cl
662
662
  e1(
663
663
  () => d.showHeadre,
664
664
  // Передаємо доступ до props
665
- (s, u) => {
666
- console.log(`Message змінився з "${u}" на "${s}"`), T.value = d.showHeadre;
665
+ () => {
666
+ T.value = d.showHeadre;
667
667
  }
668
668
  );
669
669
  const S = _(window.innerWidth), r = () => {
@@ -681,9 +681,9 @@ const n0 = /* @__PURE__ */ p1(o0, [["__scopeId", "data-v-bded4814"]]), a0 = { cl
681
681
  return (s, u) => {
682
682
  var z, D, G, M, V, J, K, Q, H, I, E, o, v, A, P, F, N, W, q;
683
683
  const Z = z1("RouterLink");
684
- return t(), l("div", a0, [
685
- a1(e("div", r0, [
686
- e("div", i0, [
684
+ return t(), l("div", a9, [
685
+ a1(e("div", r9, [
686
+ e("div", i9, [
687
687
  e("button", {
688
688
  onClick: u[0] || (u[0] = (i) => x.value = !x.value),
689
689
  class: "w-[44px] h-[44px] p-[8px] flex items-center justify-center rounded hover:bg-secondary-10 hover:text-blue-600"
@@ -691,13 +691,13 @@ const n0 = /* @__PURE__ */ p1(o0, [["__scopeId", "data-v-bded4814"]]), a0 = { cl
691
691
  j(g(Y1), { class: "w-[24px] h-[24px]" })
692
692
  ])
693
693
  ]),
694
- e("div", p0, [
694
+ e("div", p9, [
695
695
  s.logoSrc != null ? (t(), l("img", {
696
696
  key: 0,
697
697
  src: s.logoSrc,
698
698
  class: "w-8 h-8 mx-auto",
699
699
  alt: "logo"
700
- }, null, 8, d0)) : n("", !0)
700
+ }, null, 8, d9)) : n("", !0)
701
701
  ]),
702
702
  s.app != null ? (t(), m(Z, {
703
703
  key: 0,
@@ -707,17 +707,17 @@ const n0 = /* @__PURE__ */ p1(o0, [["__scopeId", "data-v-bded4814"]]), a0 = { cl
707
707
  default: n1(() => {
708
708
  var i, O;
709
709
  return [
710
- e("div", u0, p(s.app.name), 1),
711
- e("div", c0, p((O = (i = s.app) == null ? void 0 : i.workspace) == null ? void 0 : O.name), 1)
710
+ e("div", u9, p(s.app.name), 1),
711
+ e("div", c9, p((O = (i = s.app) == null ? void 0 : i.workspace) == null ? void 0 : O.name), 1)
712
712
  ];
713
713
  }),
714
714
  _: 1
715
715
  })) : n("", !0),
716
- e("div", h0, [
717
- e("div", f0, [
718
- e("div", m0, [
716
+ e("div", h9, [
717
+ e("div", f9, [
718
+ e("div", m9, [
719
719
  T1(s.$slots, "before-header-menu", {}, void 0, !0),
720
- s.improveTariff && ((z = s.improveTariff) != null && z.label) && s.improveTariff.label ? (t(), l("div", v0, [
720
+ s.improveTariff && ((z = s.improveTariff) != null && z.label) && s.improveTariff.label ? (t(), l("div", v9, [
721
721
  e("button", {
722
722
  type: "button",
723
723
  class: "cursor-pointer flex items-center h-full bg-[#FFF8E4] hover:bg-[#f2e3b8] rounded-full px-2 py-1 font-medium",
@@ -728,10 +728,10 @@ const n0 = /* @__PURE__ */ p1(o0, [["__scopeId", "data-v-bded4814"]]), a0 = { cl
728
728
  }),
729
729
  style: { "font-size": "10px" }
730
730
  }, [
731
- e("div", C0, [
731
+ e("div", C9, [
732
732
  (t(), m(L((D = s.improveTariff) == null ? void 0 : D.icon), { class: "h-4 w-4 mx-auto" }))
733
733
  ]),
734
- e("span", w0, p((G = s.improveTariff) == null ? void 0 : G.label), 1)
734
+ e("span", w9, p((G = s.improveTariff) == null ? void 0 : G.label), 1)
735
735
  ])
736
736
  ])) : n("", !0),
737
737
  s.help ? (t(), m(Z1, {
@@ -764,8 +764,8 @@ const n0 = /* @__PURE__ */ p1(o0, [["__scopeId", "data-v-bded4814"]]), a0 = { cl
764
764
  ], 512), [
765
765
  [r1, T.value]
766
766
  ]),
767
- e("div", x0, [
768
- !k.value || !x.value ? (t(), m(n0, {
767
+ e("div", x9, [
768
+ !k.value || !x.value ? (t(), m(n9, {
769
769
  key: 0,
770
770
  app: s.app,
771
771
  items: s.sidebarItems,
@@ -788,7 +788,7 @@ const n0 = /* @__PURE__ */ p1(o0, [["__scopeId", "data-v-bded4814"]]), a0 = { cl
788
788
  ], 2)
789
789
  ], 2)
790
790
  ]),
791
- s.news ? (t(), l("div", b0, [
791
+ s.news ? (t(), l("div", b9, [
792
792
  f.value ? (t(), l("div", {
793
793
  key: 0,
794
794
  class: "fixed top-0 left-0 h-screen h-dvh w-screen bg-gray-100 bg-opacity-40 z-50",
@@ -797,9 +797,9 @@ const n0 = /* @__PURE__ */ p1(o0, [["__scopeId", "data-v-bded4814"]]), a0 = { cl
797
797
  e("div", {
798
798
  class: w(["opacity-100 shadow-lg transition-all fixed top-0 left-0 h-dvh overflow-hidden z-50 bg-white", [f.value ? "sm:w-[560px] w-full" : "w-0"]])
799
799
  }, [
800
- f.value ? (t(), l("div", y0, [
801
- e("div", g0, [
802
- e("div", L0, [
800
+ f.value ? (t(), l("div", y9, [
801
+ e("div", g9, [
802
+ e("div", L9, [
803
803
  j(P1, { class: "w-10 h-10" }),
804
804
  u[6] || (u[6] = e("div", { class: "w-full font-medium" }, "OneB News", -1)),
805
805
  e("div", null, [
@@ -810,47 +810,47 @@ const n0 = /* @__PURE__ */ p1(o0, [["__scopeId", "data-v-bded4814"]]), a0 = { cl
810
810
  }, null, 8, ["icon"])
811
811
  ])
812
812
  ]),
813
- e("div", _0, [
814
- s.news.isLoading && ((N = s.news.items) == null ? void 0 : N.length) === 0 ? (t(), l("div", k0, [
813
+ e("div", _9, [
814
+ s.news.isLoading && ((N = s.news.items) == null ? void 0 : N.length) === 0 ? (t(), l("div", k9, [
815
815
  j(J1, { class: "w-6 h-6 text-gray-600 mx-auto" })
816
- ])) : ((W = s.news.items) == null ? void 0 : W.length) === 0 ? (t(), l("div", $0, [
817
- e("div", S0, p(s.news.emptyText), 1)
818
- ])) : ((q = s.news.items) == null ? void 0 : q.length) > 0 ? (t(), l("div", B0, [
816
+ ])) : ((W = s.news.items) == null ? void 0 : W.length) === 0 ? (t(), l("div", $9, [
817
+ e("div", S9, p(s.news.emptyText), 1)
818
+ ])) : ((q = s.news.items) == null ? void 0 : q.length) > 0 ? (t(), l("div", B9, [
819
819
  (t(!0), l(U, null, Y(s.news.items, (i) => (t(), l("div", {
820
820
  key: i.id,
821
821
  class: "p-3"
822
822
  }, [
823
- e("div", M0, [
823
+ e("div", M9, [
824
824
  e("div", null, [
825
- i.type ? (t(), l("div", V0, [
826
- i.type === 10 ? (t(), l("span", O0, "update")) : i.type === 11 ? (t(), l("span", T0, "warning")) : i.type === 12 ? (t(), l("span", j0, "notice")) : i.type === 13 ? (t(), l("span", z0, "ads")) : n("", !0)
825
+ i.type ? (t(), l("div", V9, [
826
+ i.type === 10 ? (t(), l("span", O9, "update")) : i.type === 11 ? (t(), l("span", T9, "warning")) : i.type === 12 ? (t(), l("span", j9, "notice")) : i.type === 13 ? (t(), l("span", z9, "ads")) : n("", !0)
827
827
  ])) : n("", !0),
828
- e("div", H0, p(i.title), 1),
829
- e("div", I0, p(i.summary), 1)
828
+ e("div", H9, p(i.title), 1),
829
+ e("div", I9, p(i.summary), 1)
830
830
  ]),
831
- i.image_url ? (t(), l("div", E0, [
831
+ i.image_url ? (t(), l("div", E9, [
832
832
  e("img", {
833
833
  src: i.image_url,
834
834
  alt: "",
835
835
  class: "w-full rounded-md"
836
- }, null, 8, A0)
836
+ }, null, 8, A9)
837
837
  ])) : n("", !0),
838
- e("div", P0, p(i.body), 1),
839
- i.video_url ? (t(), l("div", F0, [
838
+ e("div", P9, p(i.body), 1),
839
+ i.video_url ? (t(), l("div", F9, [
840
840
  e("a", {
841
841
  href: i.video_url,
842
842
  target: "_blank",
843
843
  class: "text-blue-600 hover:text-blue-700 px-3 py-2 border rounded-md w-full block"
844
- }, p(s.news.openVideoText), 9, N0)
844
+ }, p(s.news.openVideoText), 9, N9)
845
845
  ])) : n("", !0),
846
- e("div", W0, [
847
- e("span", q0, p(i.published), 1),
846
+ e("div", W9, [
847
+ e("span", q9, p(i.published), 1),
848
848
  i.post_url ? (t(), l("a", {
849
849
  key: 0,
850
850
  href: i.post_url,
851
851
  target: "_blank",
852
852
  class: "text-blue-600 hover:text-blue-700 block"
853
- }, p(s.news.moreText), 9, R0)) : n("", !0)
853
+ }, p(s.news.moreText), 9, R9)) : n("", !0)
854
854
  ])
855
855
  ])
856
856
  ]))), 128))
@@ -864,8 +864,8 @@ const n0 = /* @__PURE__ */ p1(o0, [["__scopeId", "data-v-bded4814"]]), a0 = { cl
864
864
  };
865
865
  }
866
866
  });
867
- const Y0 = /* @__PURE__ */ p1(U0, [["__scopeId", "data-v-16b0e967"]]);
867
+ const Y9 = /* @__PURE__ */ p1(U9, [["__scopeId", "data-v-d9fab1d4"]]);
868
868
  export {
869
- Y0 as OneMainLayout,
870
- n0 as OneSidebar
869
+ Y9 as OneMainLayout,
870
+ n9 as OneSidebar
871
871
  };
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- .textSm[data-v-3d58c944]{font-size:6px}.textMd[data-v-3d58c944]{font-size:8px}.textLg[data-v-3d58c944]{font-size:9px}.text10[data-v-3d58c944]{font-size:10px}.text-sm[data-v-3d58c944]{font-size:12px}.text-md[data-v-3d58c944]{font-size:14px}.text-lg[data-v-3d58c944]{font-size:16px}.blue-filled{background-color:#007bff;color:#fff}.blue-border{border:2px solid #007bff;color:#007bff}.red-filled{background-color:#dc3545;color:#fff}.red-border{border:2px solid #dc3545;color:#dc3545}.green-filled{background-color:#28a745;color:#fff}.green-border{border:2px solid #28a745;color:#28a745}.yellow-filled{background-color:#fbbc04;color:#fff}.yellow-border{border:2px solid #fbbc04;color:#fbbc04}.accordion-enter-active[data-v-1c2c0817],.accordion-leave-active[data-v-1c2c0817]{transition:height .3s ease}.accordion-enter[data-v-1c2c0817],.accordion-leave-to[data-v-1c2c0817]{height:0;overflow:hidden}.sidebar[data-v-bded4814]{background:rgba(245,247,251,.8);-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px)}.dropdown[data-v-bded4814]{position:absolute;background:white;border:1px solid #ccc;border-radius:5px;padding:10px;bottom:100%;left:0}.tooltip[data-v-bded4814]{position:relative}.tooltip-text[data-v-bded4814]{visibility:hidden;background-color:#000;color:#fff;text-align:center;padding:5px;border-radius:6px;position:absolute;z-index:1;bottom:125%;left:50%;transform:translate(-50%);opacity:0;transition:opacity .3s}.tooltip:hover .tooltip-text[data-v-bded4814]{visibility:visible;opacity:1}.cont[data-v-bded4814]{flex-direction:column;height:100vh;height:100dvh;justify-content:space-between}.overflow-y-auto[data-v-bded4814]::-webkit-scrollbar{width:2px}.overflow-y-auto[data-v-bded4814]::-webkit-scrollbar-track{background-color:#f1f1f1;border-radius:10px}.overflow-y-auto[data-v-bded4814]::-webkit-scrollbar-thumb{background-color:#888;border-radius:10px}.overflow-y-auto[data-v-bded4814]::-webkit-scrollbar-thumb:hover{background-color:#555}.border-gradient[data-v-bded4814]{position:relative;background:linear-gradient(to right,#E1A508,#E04040);border-radius:9px}.scroll-body[data-v-16b0e967]{height:100dvh}.module-border-wrap[data-v-16b0e967]{border-radius:14px;position:relative;background:linear-gradient(to right,#e1a508,#e04040);padding:1px}.overflow-y-auto[data-v-16b0e967]::-webkit-scrollbar{width:3px}.overflow-y-auto[data-v-16b0e967]::-webkit-scrollbar-track{background-color:#979ca9;border-radius:0}.overflow-y-auto[data-v-16b0e967]::-webkit-scrollbar-thumb{background-color:#888;border-radius:2px}.overflow-y-auto[data-v-16b0e967]::-webkit-scrollbar-thumb:hover{background-color:#555}.text9[data-v-4936d4e4]{font-size:9px}.h-browser[data-v-4936d4e4]{height:calc(100% - 75px)}.tooltip[data-v-94a995fe]{position:relative}.tooltip-text[data-v-94a995fe]{visibility:hidden;background-color:#000;color:#fff;text-align:center;padding:5px;border-radius:6px;position:absolute;z-index:1;bottom:125%;left:50%;transform:translate(-50%);opacity:0;transition:opacity .3s}.tooltip:hover .tooltip-text[data-v-94a995fe]{visibility:visible;opacity:1}.overflow-y-auto[data-v-94a995fe]::-webkit-scrollbar{width:2px}.overflow-y-auto[data-v-94a995fe]::-webkit-scrollbar-track{background-color:#f1f1f1;border-radius:10px}.overflow-y-auto[data-v-94a995fe]::-webkit-scrollbar-thumb{background-color:#888;border-radius:10px}.overflow-y-auto[data-v-94a995fe]::-webkit-scrollbar-thumb:hover{background-color:#555}@keyframes one-sp-ico-rot{to{transform:rotate(360deg)}}@keyframes one-sp-ico-dash{0%{stroke-dasharray:1,150;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-35}to{stroke-dasharray:90,150;stroke-dashoffset:-124}}
1
+ .textSm[data-v-3d58c944]{font-size:6px}.textMd[data-v-3d58c944]{font-size:8px}.textLg[data-v-3d58c944]{font-size:9px}.text10[data-v-3d58c944]{font-size:10px}.text-sm[data-v-3d58c944]{font-size:12px}.text-md[data-v-3d58c944]{font-size:14px}.text-lg[data-v-3d58c944]{font-size:16px}.blue-filled{background-color:#007bff;color:#fff}.blue-border{border:2px solid #007bff;color:#007bff}.red-filled{background-color:#dc3545;color:#fff}.red-border{border:2px solid #dc3545;color:#dc3545}.green-filled{background-color:#28a745;color:#fff}.green-border{border:2px solid #28a745;color:#28a745}.yellow-filled{background-color:#fbbc04;color:#fff}.yellow-border{border:2px solid #fbbc04;color:#fbbc04}.accordion-enter-active[data-v-1c2c0817],.accordion-leave-active[data-v-1c2c0817]{transition:height .3s ease}.accordion-enter[data-v-1c2c0817],.accordion-leave-to[data-v-1c2c0817]{height:0;overflow:hidden}.sidebar[data-v-b1d7b3ae]{background:rgba(245,247,251,.8);-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px)}.dropdown[data-v-b1d7b3ae]{position:absolute;background:white;border:1px solid #ccc;border-radius:5px;padding:10px;bottom:100%;left:0}.tooltip[data-v-b1d7b3ae]{position:relative}.tooltip-text[data-v-b1d7b3ae]{visibility:hidden;background-color:#000;color:#fff;text-align:center;padding:5px;border-radius:6px;position:absolute;z-index:1;bottom:125%;left:50%;transform:translate(-50%);opacity:0;transition:opacity .3s}.tooltip:hover .tooltip-text[data-v-b1d7b3ae]{visibility:visible;opacity:1}.cont[data-v-b1d7b3ae]{flex-direction:column;height:100vh;height:100dvh;justify-content:space-between}.overflow-y-auto[data-v-b1d7b3ae]::-webkit-scrollbar{width:2px}.overflow-y-auto[data-v-b1d7b3ae]::-webkit-scrollbar-track{background-color:#f1f1f1;border-radius:10px}.overflow-y-auto[data-v-b1d7b3ae]::-webkit-scrollbar-thumb{background-color:#888;border-radius:10px}.overflow-y-auto[data-v-b1d7b3ae]::-webkit-scrollbar-thumb:hover{background-color:#555}.border-gradient[data-v-b1d7b3ae]{position:relative;background:linear-gradient(to right,#E1A508,#E04040);border-radius:9px}.scroll-body[data-v-d9fab1d4]{height:100dvh}.module-border-wrap[data-v-d9fab1d4]{border-radius:14px;position:relative;background:linear-gradient(to right,#e1a508,#e04040);padding:1px}.overflow-y-auto[data-v-d9fab1d4]::-webkit-scrollbar{width:3px}.overflow-y-auto[data-v-d9fab1d4]::-webkit-scrollbar-track{background-color:#979ca9;border-radius:0}.overflow-y-auto[data-v-d9fab1d4]::-webkit-scrollbar-thumb{background-color:#888;border-radius:2px}.overflow-y-auto[data-v-d9fab1d4]::-webkit-scrollbar-thumb:hover{background-color:#555}.text9[data-v-4936d4e4]{font-size:9px}.h-browser[data-v-4936d4e4]{height:calc(100% - 75px)}.tooltip[data-v-32f18d17]{position:relative}.tooltip-text[data-v-32f18d17]{visibility:hidden;background-color:#000;color:#fff;text-align:center;padding:5px;border-radius:6px;position:absolute;z-index:1;bottom:125%;left:50%;transform:translate(-50%);opacity:0;transition:opacity .3s}.tooltip:hover .tooltip-text[data-v-32f18d17]{visibility:visible;opacity:1}.overflow-y-auto[data-v-32f18d17]::-webkit-scrollbar{width:2px}.overflow-y-auto[data-v-32f18d17]::-webkit-scrollbar-track{background-color:#f1f1f1;border-radius:10px}.overflow-y-auto[data-v-32f18d17]::-webkit-scrollbar-thumb{background-color:#888;border-radius:10px}.overflow-y-auto[data-v-32f18d17]::-webkit-scrollbar-thumb:hover{background-color:#555}@keyframes one-sp-ico-rot{to{transform:rotate(360deg)}}@keyframes one-sp-ico-dash{0%{stroke-dasharray:1,150;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-35}to{stroke-dasharray:90,150;stroke-dashoffset:-124}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oneb/ui-vue",
3
- "version": "0.1.28",
3
+ "version": "0.1.30",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "files": [