@oneb/ui-vue 0.4.2 → 0.4.5

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,5 +1,5 @@
1
- import { openBlock as e, createElementBlock as s, createElementVNode as t, defineComponent as K, computed as S, ref as V, resolveComponent as Ce, resolveDirective as ht, Fragment as W, toDisplayString as d, createCommentVNode as o, createBlock as h, withCtx as I, resolveDynamicComponent as _, mergeProps as mt, renderList as U, withDirectives as pe, normalizeClass as y, unref as O, withModifiers as he, watch as Me, shallowRef as ft, watchEffect as vt, normalizeStyle as tt, vShow as ge, createVNode as B, createTextVNode as ce, onMounted as xe, onUnmounted as Oe, renderSlot as P } from "vue";
2
- import { _ as st, e as yt, f as wt, c as lt, O as ot, b as at } from "../OneHelpMenu-2a2051d7.js";
1
+ import { openBlock as e, createElementBlock as s, createElementVNode as t, defineComponent as K, computed as S, ref as V, resolveComponent as Ce, resolveDirective as ht, Fragment as W, toDisplayString as d, createCommentVNode as o, createBlock as h, withCtx as I, resolveDynamicComponent as _, mergeProps as ft, renderList as U, withDirectives as pe, normalizeClass as y, unref as O, withModifiers as he, watch as Me, shallowRef as mt, watchEffect as vt, normalizeStyle as tt, vShow as ge, createVNode as B, createTextVNode as ce, onMounted as xe, onUnmounted as Oe, renderSlot as P } from "vue";
2
+ import { _ as st, e as yt, f as wt, c as lt, O as ot, b as at } from "../OneHelpMenu-485d8bff.js";
3
3
  import { r as Be } from "../ChevronUpIcon-c43f27a9.js";
4
4
  import { r as be } from "../ChevronDownIcon-6805ce6c.js";
5
5
  import { _ as $e } from "../_plugin-vue_export-helper-dad06003.js";
@@ -18,7 +18,7 @@ import "../dropdown-c81fb945.js";
18
18
  import "@floating-ui/dom";
19
19
  import "@floating-ui/vue";
20
20
  import "vue-markdown-render";
21
- function je(u, f) {
21
+ function je(u, m) {
22
22
  return e(), s("svg", {
23
23
  xmlns: "http://www.w3.org/2000/svg",
24
24
  fill: "none",
@@ -239,8 +239,8 @@ const ut = {
239
239
  __name: "OneSidebarLink",
240
240
  props: kt,
241
241
  emits: ["update-collapsed"],
242
- setup(u, { emit: f }) {
243
- const c = u, p = f, g = (l) => l.route ? l.route : l.routeName ? { name: l.routeName } : null, m = S(() => g(c)), C = S(() => Array.isArray(c.subItems) && c.subItems.length > 0), T = S(() => C.value && c.subItems.some((l) => l.href)), L = S(() => c.href ? "a" : m.value ? "router-link" : "span"), A = S(() => c.href ? { href: c.href, title: C.value ? null : c.label } : m.value ? { to: m.value, title: C.value ? null : c.label } : { title: C.value ? null : c.label }), z = S(() => [
242
+ setup(u, { emit: m }) {
243
+ const c = u, p = m, g = (l) => l.route ? l.route : l.routeName ? { name: l.routeName } : null, f = S(() => g(c)), C = S(() => Array.isArray(c.subItems) && c.subItems.length > 0), T = S(() => C.value && c.subItems.some((l) => l.href)), L = S(() => c.href ? "a" : f.value ? "router-link" : "span"), A = S(() => c.href ? { href: c.href, title: C.value ? null : c.label } : f.value ? { to: f.value, title: C.value ? null : c.label } : { title: C.value ? null : c.label }), z = S(() => [
244
244
  "flex items-center justify-center text-sm font-medium hover:bg-primary-10-hover hover:text-primary-base transition-all text-[#525B66] mb-0.5 rounded-10 w-[44px] h-[44px] cursor-pointer",
245
245
  c.active ? "bg-primary-10 !text-primary-base" : ""
246
246
  ]), M = V(c.open), D = (l, j = c) => {
@@ -265,7 +265,7 @@ const ut = {
265
265
  offset: 12
266
266
  }, {
267
267
  button: I(() => [
268
- (e(), h(_(L.value), mt(A.value, {
268
+ (e(), h(_(L.value), ft(A.value, {
269
269
  class: z.value,
270
270
  onClick: E
271
271
  }), {
@@ -343,9 +343,9 @@ const ut = {
343
343
  ], 10, zt)), [
344
344
  [b, l.slim && !C.value ? l.label : "", "right"]
345
345
  ]) : o("", !0),
346
- !l.href && m.value ? pe((e(), h(i, {
346
+ !l.href && f.value ? pe((e(), h(i, {
347
347
  key: 1,
348
- to: m.value,
348
+ to: f.value,
349
349
  exact: l.exact,
350
350
  class: y(["relative flex items-center cursor-pointer text-sm font-medium hover:bg-primary-10-hover hover:text-primary-base transition-all text-[#525B66] mb-0.5", {
351
351
  "rounded-10": l.island,
@@ -379,7 +379,7 @@ const ut = {
379
379
  }, 8, ["to", "exact", "active-class", "class"])), [
380
380
  [b, l.slim && !C.value ? l.label : "", "right"]
381
381
  ]) : o("", !0),
382
- !l.href && !m.value ? pe((e(), s("span", {
382
+ !l.href && !f.value ? pe((e(), s("span", {
383
383
  key: 2,
384
384
  onClick: he(E, ["prevent"]),
385
385
  class: y(["mb-0.5 relative flex items-center cursor-pointer text-sm font-medium hover:bg-primary-10-hover hover:text-primary-base transition-all text-[#525B66]", [
@@ -455,8 +455,8 @@ const ut = {
455
455
  viewBox: "0 0 24 24",
456
456
  fill: "none"
457
457
  };
458
- function ss(u, f) {
459
- return e(), s("svg", ts, [...f[0] || (f[0] = [
458
+ function ss(u, m) {
459
+ return e(), s("svg", ts, [...m[0] || (m[0] = [
460
460
  t("path", {
461
461
  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",
462
462
  fill: "currentColor"
@@ -474,7 +474,7 @@ function ss(u, f) {
474
474
  ])]);
475
475
  }
476
476
  const ke = /* @__PURE__ */ $e(es, [["render", ss]]);
477
- function ls(u, f) {
477
+ function ls(u, m) {
478
478
  return e(), s("svg", {
479
479
  xmlns: "http://www.w3.org/2000/svg",
480
480
  fill: "none",
@@ -510,7 +510,7 @@ const os = {
510
510
  }, cs = { class: "truncate" }, hs = {
511
511
  key: 1,
512
512
  class: "mt-auto pb-2 flex justify-center shrink-0"
513
- }, ms = ["href"], fs = { class: "rounded-lg bg-[#FFF8E4] py-2 flex items-center space-x-1 px-2" }, vs = { class: "" }, ys = {
513
+ }, fs = ["href"], ms = { class: "rounded-lg bg-[#FFF8E4] py-2 flex items-center space-x-1 px-2" }, vs = { class: "" }, ys = {
514
514
  class: "",
515
515
  style: { "font-size": "10px" }
516
516
  }, ws = {
@@ -552,9 +552,9 @@ const os = {
552
552
  "toggle-menu",
553
553
  "update:modelValue"
554
554
  ],
555
- setup(u, { emit: f }) {
555
+ setup(u, { emit: m }) {
556
556
  var X, Y, ee;
557
- const c = f, p = u, g = Le(), m = S(() => p.t ?? g), C = S(() => {
557
+ const c = m, p = u, g = Le(), f = S(() => p.t ?? g), C = S(() => {
558
558
  var n;
559
559
  return ((n = p.news) == null ? void 0 : n.unseenCount) || 0;
560
560
  }), T = () => {
@@ -563,7 +563,7 @@ const os = {
563
563
  Me(p, () => {
564
564
  p.modelValue ? A.value = !0 : A.value = !1;
565
565
  }), p.modelValue && (A.value = !0);
566
- const z = ft(), M = S(() => {
566
+ const z = mt(), M = S(() => {
567
567
  const n = [];
568
568
  if (p.slim || n.push("fixed"), !E.value)
569
569
  if (!p.isMobile)
@@ -594,7 +594,7 @@ const os = {
594
594
  (k = (n = p.app) == null ? void 0 : n.selectedPlan) != null && k.url && (window.location.href = p.app.selectedPlan.url);
595
595
  };
596
596
  return (n, k) => {
597
- var te, se, le, v, R, oe, me, fe, ve, ye, we, w, N, q, ae, ne, F, de, G, re, Te, ze, Fe, Ve, He, We, Pe, Ae, Ee, Ne, Ge, Ie, Re, qe, Ue, Ze, De, Je, Ke, Qe, Xe;
597
+ var te, se, le, v, R, oe, fe, me, ve, ye, we, w, N, q, ae, ne, F, de, G, re, Te, ze, Fe, Ve, He, We, Pe, Ae, Ee, Ne, Ge, Ie, Re, qe, Ue, Ze, De, Je, Ke, Qe, Xe;
598
598
  return e(), s("aside", {
599
599
  ref_key: "rootElement",
600
600
  ref: z,
@@ -629,7 +629,7 @@ const os = {
629
629
  t("div", ds, [
630
630
  t("p", us, d(n.app.name), 1),
631
631
  (le = (se = n.app) == null ? void 0 : se.selectedPlan) != null && le.name ? (e(), s("div", ps, [
632
- t("span", cs, d(m.value("ui.layout.plan")) + " " + d(n.app.selectedPlan.name), 1)
632
+ t("span", cs, d(f.value("ui.layout.plan")) + " " + d(n.app.selectedPlan.name), 1)
633
633
  ])) : o("", !0)
634
634
  ])
635
635
  ])) : o("", !0),
@@ -692,18 +692,18 @@ const os = {
692
692
  target: "_blank",
693
693
  rel: "noopener noreferrer"
694
694
  }, [
695
- t("div", fs, [
695
+ t("div", ms, [
696
696
  t("div", vs, [
697
697
  (e(), h(_((oe = n.app) == null ? void 0 : oe.offerPlan.icon), { class: "w-[16px] h-[16px]" }))
698
698
  ]),
699
699
  t("p", ys, [
700
- t("strong", null, d((me = n.app) == null ? void 0 : me.offerPlan.title), 1),
701
- ce(" «" + d((fe = n.app) == null ? void 0 : fe.offerPlan.name) + "» ", 1),
700
+ t("strong", null, d((fe = n.app) == null ? void 0 : fe.offerPlan.title), 1),
701
+ ce(" «" + d((me = n.app) == null ? void 0 : me.offerPlan.name) + "» ", 1),
702
702
  k[5] || (k[5] = t("br", null, null, -1)),
703
703
  ce(d((ve = n.app) == null ? void 0 : ve.offerPlan.title1), 1)
704
704
  ])
705
705
  ])
706
- ], 8, ms)) : o("", !0),
706
+ ], 8, fs)) : o("", !0),
707
707
  (ye = n.app) != null && ye.selectedPlan && ((we = n.app) != null && we.selectedPlan.name) ? (e(), s("div", ws, [
708
708
  t("div", bs, [
709
709
  t("div", null, [
@@ -731,7 +731,7 @@ const os = {
731
731
  }, [
732
732
  t("div", Cs, [
733
733
  t("div", $s, [
734
- t("span", _s, d(((F = n.app) == null ? void 0 : F.terms.label) || m.value("ui.layout.terms")), 1)
734
+ t("span", _s, d(((F = n.app) == null ? void 0 : F.terms.label) || f.value("ui.layout.terms")), 1)
735
735
  ])
736
736
  ])
737
737
  ], 8, ks)) : o("", !0),
@@ -743,7 +743,7 @@ const os = {
743
743
  }, [
744
744
  t("div", Ss, [
745
745
  t("div", Bs, [
746
- t("span", Os, d(((re = n.app) == null ? void 0 : re.offer.label) || m.value("ui.layout.offer")), 1)
746
+ t("span", Os, d(((re = n.app) == null ? void 0 : re.offer.label) || f.value("ui.layout.offer")), 1)
747
747
  ])
748
748
  ])
749
749
  ], 8, Ls)) : o("", !0),
@@ -784,7 +784,7 @@ const os = {
784
784
  class: y(["text-[#525B66] flex items-center rounded-lg text-sm tooltip hover:bg-primary-10-hover hover:text-primary-base transition-all bg-gray-100 px-1", [l.value ? "w-[44px] h-[44px] text-center" : "h-[36x] pr-2"]]),
785
785
  onClick: T
786
786
  }, [
787
- n.news.menuLabel ? (e(), s("div", Vs, d(n.news.menuLabel || m.value("ui.layout.news")), 1)) : o("", !0),
787
+ n.news.menuLabel ? (e(), s("div", Vs, d(n.news.menuLabel || f.value("ui.layout.news")), 1)) : o("", !0),
788
788
  t("div", {
789
789
  class: y(["w-full", [l.value ? "" : "flex flex-nowrap items-center h-[36px]"]])
790
790
  }, [
@@ -794,7 +794,7 @@ const os = {
794
794
  t("div", null, [
795
795
  (e(), h(_(ke), { class: "w-[24px] h-[24px] mx-auto" }))
796
796
  ]),
797
- l.value ? o("", !0) : (e(), s("div", Hs, d(n.news.menuLabel || m.value("ui.layout.news")), 1)),
797
+ l.value ? o("", !0) : (e(), s("div", Hs, d(n.news.menuLabel || f.value("ui.layout.news")), 1)),
798
798
  C.value > 0 ? (e(), s("span", Ws)) : o("", !0),
799
799
  C.value > 0 ? (e(), s("span", Ps)) : o("", !0)
800
800
  ], 2)
@@ -805,7 +805,7 @@ const os = {
805
805
  href: (Re = (Ie = n.app) == null ? void 0 : Ie.support) == null ? void 0 : Re.url,
806
806
  class: y(["text-[#525B66] flex items-center rounded-lg text-sm tooltip hover:bg-primary-10-hover hover:text-primary-base transition-all", [l.value ? "w-[44px] h-[44px] text-center" : "h-[36x]"]])
807
807
  }, [
808
- (Ue = (qe = n.app) == null ? void 0 : qe.support) != null && Ue.label ? (e(), s("div", Es, d(((De = (Ze = n.app) == null ? void 0 : Ze.support) == null ? void 0 : De.label) || m.value("ui.layout.support")), 1)) : o("", !0),
808
+ (Ue = (qe = n.app) == null ? void 0 : qe.support) != null && Ue.label ? (e(), s("div", Es, d(((De = (Ze = n.app) == null ? void 0 : Ze.support) == null ? void 0 : De.label) || f.value("ui.layout.support")), 1)) : o("", !0),
809
809
  t("div", {
810
810
  class: y(["w-full", [l.value ? "" : "flex flex-nowrap items-center h-[36px]"]])
811
811
  }, [
@@ -815,14 +815,14 @@ const os = {
815
815
  t("div", null, [
816
816
  (e(), h(_(O(wt)), { class: "w-[20px] h-[20px] mx-auto" }))
817
817
  ]),
818
- l.value ? o("", !0) : (e(), s("div", Ns, d(((Ke = (Je = n.app) == null ? void 0 : Je.support) == null ? void 0 : Ke.label) || m.value("ui.layout.support")), 1))
818
+ l.value ? o("", !0) : (e(), s("div", Ns, d(((Ke = (Je = n.app) == null ? void 0 : Je.support) == null ? void 0 : Ke.label) || f.value("ui.layout.support")), 1))
819
819
  ], 2)
820
820
  ], 2)
821
821
  ], 10, As)) : o("", !0)
822
822
  ], 2),
823
823
  n.island && !l.value ? (e(), s("div", Gs, [
824
824
  t("span", null, [
825
- ce(d(m.value("ui.layout.powered_by")) + " ", 1),
825
+ ce(d(f.value("ui.layout.powered_by")) + " ", 1),
826
826
  k[6] || (k[6] = t("span", { class: "capitalize" }, "OneB", -1))
827
827
  ]),
828
828
  (Qe = n.app) != null && Qe.version ? (e(), s("span", Is, "V." + d(n.app.version), 1)) : o("", !0)
@@ -832,7 +832,7 @@ const os = {
832
832
  class: y([[l.value ? "hidden" : "w-full"], "text-[7px] pl-2 text-[#979CA9] flex justify-between font-extralight pt-1"])
833
833
  }, [
834
834
  t("span", null, [
835
- ce(d(m.value("ui.layout.powered_by")) + " ", 1),
835
+ ce(d(f.value("ui.layout.powered_by")) + " ", 1),
836
836
  k[7] || (k[7] = t("span", { class: "text-blue-700" }, "OneB", -1))
837
837
  ]),
838
838
  t("span", null, d((Xe = n.app) == null ? void 0 : Xe.version), 1)
@@ -859,7 +859,7 @@ const ct = /* @__PURE__ */ $e(Rs, [["__scopeId", "data-v-28310709"]]), qs = { cl
859
859
  }, p1 = {
860
860
  key: 0,
861
861
  class: "p-5"
862
- }, c1 = { key: 1 }, h1 = { class: "p-4 text-gray text-center" }, m1 = { key: 2 }, f1 = {
862
+ }, c1 = { key: 1 }, h1 = { class: "p-4 text-gray text-center" }, f1 = { key: 2 }, m1 = {
863
863
  class: "p-3 space-y-1.5 rounded-lg",
864
864
  style: { "box-shadow": "0 0 6px #eaeaea" }
865
865
  }, v1 = { key: 0 }, y1 = {
@@ -878,8 +878,8 @@ const ct = /* @__PURE__ */ $e(Rs, [["__scopeId", "data-v-28310709"]]), qs = { cl
878
878
  __name: "OneMainLayout",
879
879
  props: pt,
880
880
  emits: ["load-news", "load-tariff", "open-tariff"],
881
- setup(u, { emit: f }) {
882
- const c = f, p = u, g = Le(), m = S(() => p.t ?? g);
881
+ setup(u, { emit: m }) {
882
+ const c = m, p = u, g = Le(), f = S(() => p.t ?? g);
883
883
  let C = window.localStorage.getItem("sidebar-slim");
884
884
  window.document.body.offsetWidth < 1024 && (window.localStorage.getItem("sidebar-slim") == null && window.localStorage.setItem("sidebar-slim", "1"), C = "1");
885
885
  const T = V(C === "1");
@@ -913,6 +913,7 @@ const ct = /* @__PURE__ */ $e(Rs, [["__scopeId", "data-v-28310709"]]), qs = { cl
913
913
  pe(t("div", Us, [
914
914
  t("div", Zs, [
915
915
  t("button", {
916
+ type: "button",
916
917
  onClick: b[0] || (b[0] = (v) => T.value = !T.value),
917
918
  class: "sm:w-[44px] sm:h-[44px] w-8 h-8 sm:p-[8px] flex items-center justify-center rounded hover:bg-secondary-10 hover:text-blue-600"
918
919
  }, [
@@ -967,13 +968,13 @@ const ct = /* @__PURE__ */ $e(Rs, [["__scopeId", "data-v-28310709"]]), qs = { cl
967
968
  key: 1,
968
969
  help: i.help,
969
970
  "help-slug": i.helpSlug,
970
- t: m.value
971
+ t: f.value
971
972
  }, null, 8, ["help", "help-slug", "t"])) : o("", !0),
972
973
  ((H = i.handlers) == null ? void 0 : H.onBrowse) != null ? (e(), h(ot, {
973
974
  key: 2,
974
975
  workspace: (J = i.app) == null ? void 0 : J.workspace,
975
976
  apps: ((ie = i.app) == null ? void 0 : ie.apps) || [],
976
- t: m.value,
977
+ t: f.value,
977
978
  "on-app": (X = i.handlers) == null ? void 0 : X.onApp,
978
979
  "on-change": (Y = i.handlers) == null ? void 0 : Y.onChange,
979
980
  onOpen: (ee = i.handlers) == null ? void 0 : ee.onBrowse
@@ -982,7 +983,7 @@ const ct = /* @__PURE__ */ $e(Rs, [["__scopeId", "data-v-28310709"]]), qs = { cl
982
983
  user: i.user,
983
984
  menu: i.menu,
984
985
  app: i.app,
985
- t: m.value,
986
+ t: f.value,
986
987
  "on-account": (n = i.handlers) == null ? void 0 : n.onAccount,
987
988
  "on-logout": (k = i.handlers) == null ? void 0 : k.onLogout
988
989
  }, null, 8, ["user", "menu", "app", "t", "on-account", "on-logout"])
@@ -996,7 +997,7 @@ const ct = /* @__PURE__ */ $e(Rs, [["__scopeId", "data-v-28310709"]]), qs = { cl
996
997
  !Z.value || !T.value ? (e(), h(ct, {
997
998
  key: 0,
998
999
  app: i.app,
999
- t: m.value,
1000
+ t: f.value,
1000
1001
  items: i.sidebarItems,
1001
1002
  "with-news": i.news != null,
1002
1003
  news: i.news,
@@ -1033,7 +1034,7 @@ const ct = /* @__PURE__ */ $e(Rs, [["__scopeId", "data-v-28310709"]]), qs = { cl
1033
1034
  t("div", r1, [
1034
1035
  t("div", i1, [
1035
1036
  B(ke, { class: "w-10 h-10" }),
1036
- t("div", d1, d(m.value("ui.layout.news")), 1),
1037
+ t("div", d1, d(f.value("ui.layout.news")), 1),
1037
1038
  t("div", null, [
1038
1039
  B(_e, {
1039
1040
  variant: "touch",
@@ -1047,12 +1048,12 @@ const ct = /* @__PURE__ */ $e(Rs, [["__scopeId", "data-v-28310709"]]), qs = { cl
1047
1048
  B(it, { class: "w-6 h-6 text-gray-600 mx-auto" })
1048
1049
  ])) : ((se = i.news.items) == null ? void 0 : se.length) === 0 ? (e(), s("div", c1, [
1049
1050
  t("div", h1, d(i.news.emptyText), 1)
1050
- ])) : ((le = i.news.items) == null ? void 0 : le.length) > 0 ? (e(), s("div", m1, [
1051
+ ])) : ((le = i.news.items) == null ? void 0 : le.length) > 0 ? (e(), s("div", f1, [
1051
1052
  (e(!0), s(W, null, U(i.news.items, (v) => (e(), s("div", {
1052
1053
  key: v.id,
1053
1054
  class: "p-3"
1054
1055
  }, [
1055
- t("div", f1, [
1056
+ t("div", m1, [
1056
1057
  t("div", null, [
1057
1058
  v.type ? (e(), s("div", v1, [
1058
1059
  v.type === 10 ? (e(), s("span", y1, "update")) : v.type === 11 ? (e(), s("span", w1, "warning")) : v.type === 12 ? (e(), s("span", b1, "notice")) : v.type === 13 ? (e(), s("span", g1, "ads")) : o("", !0)
@@ -1100,7 +1101,7 @@ const ct = /* @__PURE__ */ $e(Rs, [["__scopeId", "data-v-28310709"]]), qs = { cl
1100
1101
  };
1101
1102
  }
1102
1103
  });
1103
- const yo = /* @__PURE__ */ $e(j1, [["__scopeId", "data-v-e0173e75"]]), T1 = { class: "bg-secondary-body-island min-h-screen p-3" }, z1 = { class: "flex gap-3 items-stretch" }, F1 = { class: "flex-1 flex flex-col gap-3 min-w-0" }, V1 = { class: "bg-white rounded-10 h-14 flex items-center justify-between pl-3 pr-3 shrink-0" }, H1 = { class: "flex items-center min-w-0 gap-2" }, W1 = { class: "text-base text-black truncate" }, P1 = ["onClick"], A1 = { class: "text-base text-black truncate" }, E1 = { class: "w-[320px] py-2" }, N1 = ["onClick"], G1 = { class: "text-sm" }, I1 = {
1104
+ const yo = /* @__PURE__ */ $e(j1, [["__scopeId", "data-v-48e4d08d"]]), T1 = { class: "bg-secondary-body-island h-dvh overflow-hidden p-3" }, z1 = { class: "flex gap-3 items-stretch h-full" }, F1 = { class: "flex-1 flex flex-col gap-3 min-w-0" }, V1 = { class: "bg-white rounded-10 h-14 flex items-center justify-between pl-3 pr-3 shrink-0" }, H1 = { class: "flex items-center min-w-0 gap-2" }, W1 = { class: "text-base text-black truncate" }, P1 = ["onClick"], A1 = { class: "text-base text-black truncate" }, E1 = { class: "w-[320px] py-2" }, N1 = ["onClick"], G1 = { class: "text-sm" }, I1 = {
1104
1105
  key: 0,
1105
1106
  class: "border-t border-secondary-stroke my-1"
1106
1107
  }, R1 = {
@@ -1109,7 +1110,7 @@ const yo = /* @__PURE__ */ $e(j1, [["__scopeId", "data-v-e0173e75"]]), T1 = { cl
1109
1110
  }, q1 = ["onClick"], U1 = { class: "text-sm" }, Z1 = {
1110
1111
  key: 2,
1111
1112
  class: "border-t border-secondary-stroke mt-1 pt-1"
1112
- }, D1 = ["onClick"], J1 = { class: "flex items-center gap-2 shrink-0" }, K1 = ["href"], Q1 = { class: "text-2xs font-semibold text-black leading-loose" }, X1 = { class: "flex-1 min-w-0" }, Y1 = { key: 0 }, el = {
1113
+ }, D1 = ["onClick"], J1 = { class: "flex items-center gap-2 shrink-0" }, K1 = ["href"], Q1 = { class: "text-2xs font-semibold text-black leading-loose" }, X1 = { class: "scroll-content flex-1 min-w-0 min-h-0 overflow-y-auto" }, Y1 = { key: 0 }, el = {
1113
1114
  key: 0,
1114
1115
  class: "sm:w-[560px] w-full relative h-full"
1115
1116
  }, tl = { class: "h-full relative" }, sl = { class: "flex items-center p-3 space-x-1.5" }, ll = { class: "w-full font-medium" }, ol = {
@@ -1130,15 +1131,15 @@ const yo = /* @__PURE__ */ $e(j1, [["__scopeId", "data-v-e0173e75"]]), T1 = { cl
1130
1131
  }, hl = {
1131
1132
  key: 2,
1132
1133
  class: "text-xs px-2 py-1 rounded-md bg-blue-600 text-white"
1133
- }, ml = {
1134
+ }, fl = {
1134
1135
  key: 3,
1135
1136
  class: "text-xs px-2 py-1 rounded-md bg-gray-600 text-white"
1136
- }, fl = { class: "text-lg font-medium" }, vl = { class: "text-sm text-gray-600" }, yl = { key: 0 }, wl = ["src"], bl = { class: "text-sm" }, gl = { key: 1 }, xl = ["href"], kl = { class: "text-sm flex items-center justify-between mt-1" }, Cl = { class: "text-gray-800" }, $l = ["href"], _l = /* @__PURE__ */ K({
1137
+ }, ml = { class: "text-lg font-medium" }, vl = { class: "text-sm text-gray-600" }, yl = { key: 0 }, wl = ["src"], bl = { class: "text-sm" }, gl = { key: 1 }, xl = ["href"], kl = { class: "text-sm flex items-center justify-between mt-1" }, Cl = { class: "text-gray-800" }, $l = ["href"], _l = /* @__PURE__ */ K({
1137
1138
  __name: "OneIslandLayout",
1138
1139
  props: pt,
1139
1140
  emits: ["load-news", "load-tariff", "open-tariff", "browse", "workspace-click", "manage-workspaces"],
1140
- setup(u, { emit: f }) {
1141
- const c = f, p = u, g = Le(), m = S(() => p.t ?? g), C = () => {
1141
+ setup(u, { emit: m }) {
1142
+ const c = m, p = u, g = Le(), f = S(() => p.t ?? g), C = () => {
1142
1143
  var a, r;
1143
1144
  c("browse"), (r = (a = p.handlers) == null ? void 0 : a.onBrowse) == null || r.call(a);
1144
1145
  }, T = () => {
@@ -1173,14 +1174,14 @@ const yo = /* @__PURE__ */ $e(j1, [["__scopeId", "data-v-e0173e75"]]), T1 = { cl
1173
1174
  (x = (r = p.handlers) == null ? void 0 : r.onSetLang) == null || x.call(r, a);
1174
1175
  };
1175
1176
  return (a, r) => {
1176
- var x, H, J, ie, X, Y, ee, n, k, te, se, le, v, R, oe, me, fe, ve, ye, we;
1177
+ var x, H, J, ie, X, Y, ee, n, k, te, se, le, v, R, oe, fe, me, ve, ye, we;
1177
1178
  return e(), s("div", T1, [
1178
1179
  t("div", z1, [
1179
1180
  !b.value || !z.value ? (e(), h(ct, {
1180
1181
  key: 0,
1181
1182
  items: a.sidebarItems,
1182
1183
  island: !0,
1183
- t: m.value,
1184
+ t: f.value,
1184
1185
  app: a.app,
1185
1186
  "logo-src": a.logoSrc,
1186
1187
  "with-news": a.news != null,
@@ -1268,7 +1269,7 @@ const yo = /* @__PURE__ */ $e(j1, [["__scopeId", "data-v-e0173e75"]]), T1 = { cl
1268
1269
  t("span", G1, d(F.name), 1)
1269
1270
  ], 8, N1))), 128)),
1270
1271
  (N = a.workspaces) != null && N.length ? (e(), s("div", I1)) : o("", !0),
1271
- (q = a.apps) != null && q.length ? (e(), s("div", R1, d(m.value("ui.layout.apps")), 1)) : o("", !0),
1272
+ (q = a.apps) != null && q.length ? (e(), s("div", R1, d(f.value("ui.layout.apps")), 1)) : o("", !0),
1272
1273
  (e(!0), s(W, null, U(a.apps || [], (F) => (e(), s("div", {
1273
1274
  key: F.id,
1274
1275
  class: "flex items-center gap-2 px-3 py-2 hover:bg-secondary-10 cursor-pointer",
@@ -1290,7 +1291,7 @@ const yo = /* @__PURE__ */ $e(j1, [["__scopeId", "data-v-e0173e75"]]), T1 = { cl
1290
1291
  type: "button",
1291
1292
  class: "w-full text-left text-xs text-secondary-content px-3 py-2 hover:bg-secondary-10",
1292
1293
  onClick: (F) => (L(), w())
1293
- }, d(m.value("ui.layout.change_workspace")), 9, D1)
1294
+ }, d(f.value("ui.layout.change_workspace")), 9, D1)
1294
1295
  ])) : o("", !0)
1295
1296
  ])
1296
1297
  ];
@@ -1322,12 +1323,12 @@ const yo = /* @__PURE__ */ $e(j1, [["__scopeId", "data-v-e0173e75"]]), T1 = { cl
1322
1323
  ref: Z,
1323
1324
  help: a.help,
1324
1325
  "help-slug": a.helpSlug,
1325
- t: m.value
1326
+ t: f.value
1326
1327
  }, null, 8, ["help", "help-slug", "t"])) : o("", !0),
1327
1328
  B(ot, {
1328
1329
  workspace: a.workspace || ((le = a.app) == null ? void 0 : le.workspace),
1329
1330
  apps: a.apps || ((v = a.app) == null ? void 0 : v.apps) || [],
1330
- t: m.value,
1331
+ t: f.value,
1331
1332
  "on-app": (R = a.handlers) == null ? void 0 : R.onApp,
1332
1333
  "on-change": (oe = a.handlers) == null ? void 0 : oe.onChange,
1333
1334
  onOpen: C
@@ -1336,9 +1337,9 @@ const yo = /* @__PURE__ */ $e(j1, [["__scopeId", "data-v-e0173e75"]]), T1 = { cl
1336
1337
  user: a.user,
1337
1338
  menu: a.menu,
1338
1339
  app: a.app,
1339
- t: m.value,
1340
- "on-account": (me = a.handlers) == null ? void 0 : me.onAccount,
1341
- "on-logout": (fe = a.handlers) == null ? void 0 : fe.onLogout
1340
+ t: f.value,
1341
+ "on-account": (fe = a.handlers) == null ? void 0 : fe.onAccount,
1342
+ "on-logout": (me = a.handlers) == null ? void 0 : me.onLogout
1342
1343
  }, null, 8, ["user", "menu", "app", "t", "on-account", "on-logout"])
1343
1344
  ])
1344
1345
  ], 512), [
@@ -1362,7 +1363,7 @@ const yo = /* @__PURE__ */ $e(j1, [["__scopeId", "data-v-e0173e75"]]), T1 = { cl
1362
1363
  t("div", tl, [
1363
1364
  t("div", sl, [
1364
1365
  B(ke, { class: "w-10 h-10" }),
1365
- t("div", ll, d(m.value("ui.layout.news")), 1),
1366
+ t("div", ll, d(f.value("ui.layout.news")), 1),
1366
1367
  t("div", null, [
1367
1368
  B(_e, {
1368
1369
  variant: "touch",
@@ -1384,9 +1385,9 @@ const yo = /* @__PURE__ */ $e(j1, [["__scopeId", "data-v-e0173e75"]]), T1 = { cl
1384
1385
  t("div", dl, [
1385
1386
  t("div", null, [
1386
1387
  w.type ? (e(), s("div", ul, [
1387
- w.type === 10 ? (e(), s("span", pl, "update")) : w.type === 11 ? (e(), s("span", cl, "warning")) : w.type === 12 ? (e(), s("span", hl, "notice")) : w.type === 13 ? (e(), s("span", ml, "ads")) : o("", !0)
1388
+ w.type === 10 ? (e(), s("span", pl, "update")) : w.type === 11 ? (e(), s("span", cl, "warning")) : w.type === 12 ? (e(), s("span", hl, "notice")) : w.type === 13 ? (e(), s("span", fl, "ads")) : o("", !0)
1388
1389
  ])) : o("", !0),
1389
- t("div", fl, d(w.title), 1),
1390
+ t("div", ml, d(w.title), 1),
1390
1391
  t("div", vl, d(w.summary), 1)
1391
1392
  ]),
1392
1393
  w.image_url ? (e(), s("div", yl, [
@@ -1429,13 +1430,13 @@ const yo = /* @__PURE__ */ $e(j1, [["__scopeId", "data-v-e0173e75"]]), T1 = { cl
1429
1430
  };
1430
1431
  }
1431
1432
  });
1432
- const wo = /* @__PURE__ */ $e(_l, [["__scopeId", "data-v-b8001409"]]), Ll = { class: "not-prose relative bg-slate-50 rounded-xl overflow-hidden dark:bg-slate-800/25" }, Sl = { class: "relative rounded-xl overflow-auto p-8" }, Bl = { class: "grid lg:grid-cols-4 2xl:grid-cols-6 gap-4 font-mono text-white text-sm text-center font-bold leading-6 bg-stripes-fuchsia rounded-lg" }, bo = /* @__PURE__ */ K({
1433
+ const wo = /* @__PURE__ */ $e(_l, [["__scopeId", "data-v-4f6069fe"]]), Ll = { class: "not-prose relative bg-slate-50 rounded-xl overflow-hidden dark:bg-slate-800/25" }, Sl = { class: "relative rounded-xl overflow-auto p-8" }, Bl = { class: "grid lg:grid-cols-4 2xl:grid-cols-6 gap-4 font-mono text-white text-sm text-center font-bold leading-6 bg-stripes-fuchsia rounded-lg" }, bo = /* @__PURE__ */ K({
1433
1434
  __name: "OneGridLayout",
1434
1435
  props: Ct,
1435
1436
  setup(u) {
1436
- const f = u, c = S(() => Array.from({ length: f.count || 2 }, (p, g) => g + 1));
1437
+ const m = u, c = S(() => Array.from({ length: m.count || 2 }, (p, g) => g + 1));
1437
1438
  return (p, g) => {
1438
- const m = Ce("font");
1439
+ const f = Ce("font");
1439
1440
  return e(), s("div", Ll, [
1440
1441
  g[0] || (g[0] = t("div", {
1441
1442
  class: "absolute inset-0 bg-grid-slate-100 [mask-image:linear-gradient(0deg,#fff,rgba(255,255,255,0.6))] dark:bg-grid-slate-700/25 dark:[mask-image:linear-gradient(0deg,rgba(255,255,255,0.1),rgba(255,255,255,0.5))]",
@@ -1447,9 +1448,9 @@ const wo = /* @__PURE__ */ $e(_l, [["__scopeId", "data-v-b8001409"]]), Ll = { cl
1447
1448
  class: "p-4 rounded-lg shadow-lg bg-fuchsia-500",
1448
1449
  key: C
1449
1450
  }, [
1450
- B(m, { style: { "vertical-align": "inherit" } }, {
1451
+ B(f, { style: { "vertical-align": "inherit" } }, {
1451
1452
  default: I(() => [
1452
- B(m, { style: { "vertical-align": "inherit" } }, {
1453
+ B(f, { style: { "vertical-align": "inherit" } }, {
1453
1454
  default: I(() => [
1454
1455
  ce(d(C), 1)
1455
1456
  ]),
@@ -1500,17 +1501,17 @@ const wo = /* @__PURE__ */ $e(_l, [["__scopeId", "data-v-b8001409"]]), Ll = { cl
1500
1501
  }
1501
1502
  },
1502
1503
  setup(u) {
1503
- const f = u, c = gt(), p = Le(), g = S(() => f.t ?? p), m = V(!1);
1504
+ const m = u, c = gt(), p = Le(), g = S(() => m.t ?? p), f = V(!1);
1504
1505
  xe(() => {
1505
1506
  var L;
1506
- m.value = ((L = window.history.state) == null ? void 0 : L.back) != null;
1507
+ f.value = ((L = window.history.state) == null ? void 0 : L.back) != null;
1507
1508
  });
1508
1509
  const C = () => {
1509
- if (f.handler != null && f.handler())
1510
+ if (m.handler != null && m.handler())
1510
1511
  return;
1511
1512
  const L = c.options.history.state;
1512
- m.value && L.back !== L.current ? c.back() : f.to != null ? c.push(f.to) : c.back();
1513
- }, T = S(() => f.label || g.value("ui.back"));
1513
+ f.value && L.back !== L.current ? c.back() : m.to != null ? c.push(m.to) : c.back();
1514
+ }, T = S(() => m.label || g.value("ui.back"));
1514
1515
  return (L, A) => (e(), h(O(_e), {
1515
1516
  class: y(["!text-[#525B66] text-xs", u.classButton]),
1516
1517
  label: T.value,
@@ -1591,7 +1592,7 @@ const wo = /* @__PURE__ */ $e(_l, [["__scopeId", "data-v-b8001409"]]), Ll = { cl
1591
1592
  }
1592
1593
  },
1593
1594
  setup(u) {
1594
- return (f, c) => (e(), s("div", {
1595
+ return (m, c) => (e(), s("div", {
1595
1596
  class: y(u.whiteBackground ? "bg-white min-h-screen" : "min-h-screen bg-[#FAFBFC]")
1596
1597
  }, [
1597
1598
  u.showHeader ? (e(), s("div", {
@@ -1626,13 +1627,13 @@ const wo = /* @__PURE__ */ $e(_l, [["__scopeId", "data-v-b8001409"]]), Ll = { cl
1626
1627
  "class-icon": "!w-4"
1627
1628
  }, null, 8, ["to"])) : o("", !0),
1628
1629
  u.title ? (e(), s("h1", Vl, d(u.title), 1)) : o("", !0),
1629
- P(f.$slots, "header-left")
1630
+ P(m.$slots, "header-left")
1630
1631
  ]),
1631
1632
  t("div", Hl, [
1632
- P(f.$slots, "header-center")
1633
+ P(m.$slots, "header-center")
1633
1634
  ]),
1634
1635
  t("div", Wl, [
1635
- P(f.$slots, "header-right", {}, () => {
1636
+ P(m.$slots, "header-right", {}, () => {
1636
1637
  var p;
1637
1638
  return [
1638
1639
  (p = u.user) != null && p.name ? (e(), s("div", Pl, [
@@ -1649,13 +1650,13 @@ const wo = /* @__PURE__ */ $e(_l, [["__scopeId", "data-v-b8001409"]]), Ll = { cl
1649
1650
  ])
1650
1651
  ], 4)) : o("", !0),
1651
1652
  t("div", El, [
1652
- P(f.$slots, "default")
1653
+ P(m.$slots, "default")
1653
1654
  ]),
1654
1655
  u.showFooter ? (e(), s(W, { key: 1 }, [
1655
1656
  c[0] || (c[0] = t("div", { class: "h-16" }, null, -1)),
1656
1657
  t("div", Nl, [
1657
1658
  t("div", Gl, [
1658
- P(f.$slots, "footer")
1659
+ P(m.$slots, "footer")
1659
1660
  ])
1660
1661
  ])
1661
1662
  ], 64)) : o("", !0)
@@ -1677,21 +1678,21 @@ const wo = /* @__PURE__ */ $e(_l, [["__scopeId", "data-v-b8001409"]]), Ll = { cl
1677
1678
  }
1678
1679
  },
1679
1680
  setup(u) {
1680
- return (f, c) => (e(), s("div", Il, [
1681
+ return (m, c) => (e(), s("div", Il, [
1681
1682
  t("div", {
1682
1683
  class: y(["w-full bg-white h-full flex flex-col justify-between", u.panelWidthClass])
1683
1684
  }, [
1684
1685
  t("div", Rl, [
1685
1686
  t("div", ql, [
1686
- P(f.$slots, "default")
1687
+ P(m.$slots, "default")
1687
1688
  ])
1688
1689
  ]),
1689
- f.$slots.footer ? (e(), s("div", Ul, [
1690
- P(f.$slots, "footer")
1690
+ m.$slots.footer ? (e(), s("div", Ul, [
1691
+ P(m.$slots, "footer")
1691
1692
  ])) : o("", !0)
1692
1693
  ], 2),
1693
- f.$slots.brand ? (e(), s("div", Zl, [
1694
- P(f.$slots, "brand")
1694
+ m.$slots.brand ? (e(), s("div", Zl, [
1695
+ P(m.$slots, "brand")
1695
1696
  ])) : o("", !0)
1696
1697
  ]));
1697
1698
  }
@@ -1708,18 +1709,18 @@ const wo = /* @__PURE__ */ $e(_l, [["__scopeId", "data-v-b8001409"]]), Ll = { cl
1708
1709
  }
1709
1710
  },
1710
1711
  setup(u) {
1711
- return (f, c) => {
1712
+ return (m, c) => {
1712
1713
  const p = Ce("RouterLink");
1713
1714
  return e(), s("nav", {
1714
1715
  class: y(["flex items-center gap-1 min-w-0", u.pill ? "bg-light-body rounded-10 px-3 py-1" : ""]),
1715
1716
  "aria-label": "Breadcrumb"
1716
1717
  }, [
1717
- (e(!0), s(W, null, U(u.items, (g, m) => (e(), s(W, { key: m }, [
1718
- m > 0 ? (e(), h(O(nt), {
1718
+ (e(!0), s(W, null, U(u.items, (g, f) => (e(), s(W, { key: f }, [
1719
+ f > 0 ? (e(), h(O(nt), {
1719
1720
  key: 0,
1720
1721
  class: "w-3 h-3 text-secondary-content shrink-0"
1721
1722
  })) : o("", !0),
1722
- g.to != null && m < u.items.length - 1 ? (e(), h(p, {
1723
+ g.to != null && f < u.items.length - 1 ? (e(), h(p, {
1723
1724
  key: 1,
1724
1725
  to: g.to,
1725
1726
  class: "flex items-center gap-2 min-w-0 text-sm text-primary-content hover:text-primary-base transition-colors",
@@ -1738,7 +1739,7 @@ const wo = /* @__PURE__ */ $e(_l, [["__scopeId", "data-v-b8001409"]]), Ll = { cl
1738
1739
  _: 2
1739
1740
  }, 1032, ["to"])) : (e(), s("span", {
1740
1741
  key: 2,
1741
- class: y(["flex items-center gap-2 min-w-0 text-sm", m === u.items.length - 1 ? "text-secondary-content" : ""])
1742
+ class: y(["flex items-center gap-2 min-w-0 text-sm", f === u.items.length - 1 ? "text-secondary-content" : ""])
1742
1743
  }, [
1743
1744
  g.avatarSrc ? (e(), h(ue, {
1744
1745
  key: 0,