@topjoao/top-design-system 0.1.1 → 0.1.2-beta.1
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.
- package/README.md +28 -8
- package/dist/TopToast-CWJSJl4P.cjs +2 -0
- package/dist/TopToast-CWJSJl4P.cjs.map +1 -0
- package/dist/{TopToast-BI4cWWtd.js → TopToast-Dw5MKTR2.js} +401 -394
- package/dist/TopToast-Dw5MKTR2.js.map +1 -0
- package/dist/components/TopNavBar.vue.d.ts +7 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/plugin.cjs +1 -1
- package/dist/plugin.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/TopToast-BI4cWWtd.js.map +0 -1
- package/dist/TopToast-tPhTQRza.cjs +0 -2
- package/dist/TopToast-tPhTQRza.cjs.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Fragment as e, Transition as t, computed as n, createBlock as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, createSlots as s, createTextVNode as c, createVNode as l, defineComponent as u, guardReactiveProps as d, inject as f, mergeProps as p, nextTick as m, normalizeClass as h, normalizeProps as g, normalizeStyle as _, onBeforeUnmount as v, onMounted as y, openBlock as b, provide as x, ref as S, renderList as C, renderSlot as w, resolveComponent as T, resolveDynamicComponent as E, toDisplayString as D, unref as O, useAttrs as
|
|
1
|
+
import { Fragment as e, Transition as t, computed as n, createBlock as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, createSlots as s, createTextVNode as c, createVNode as l, defineComponent as u, guardReactiveProps as d, inject as f, mergeProps as p, nextTick as m, normalizeClass as h, normalizeProps as g, normalizeStyle as _, onBeforeUnmount as v, onMounted as y, openBlock as b, provide as x, ref as S, renderList as C, renderSlot as w, resolveComponent as T, resolveDynamicComponent as E, toDisplayString as D, unref as O, useAttrs as ee, useId as k, useSlots as te, watch as A, withCtx as j, withDirectives as M, withModifiers as N } from "vue";
|
|
2
2
|
import P from "primevue/button";
|
|
3
3
|
import F from "primevue/tooltip";
|
|
4
4
|
import { twMerge as I } from "tailwind-merge";
|
|
@@ -7,12 +7,12 @@ import R from "primevue/datepicker";
|
|
|
7
7
|
import z from "primevue/fileupload";
|
|
8
8
|
import B from "primevue/inputtext";
|
|
9
9
|
import V from "primevue/inputnumber";
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
10
|
+
import ne from "primevue/drawer";
|
|
11
|
+
import re from "primevue/menu";
|
|
12
|
+
import H from "primevue/autocomplete";
|
|
13
|
+
import ie from "primevue/tab";
|
|
14
|
+
import U from "primevue/tablist";
|
|
15
|
+
import W from "primevue/tabpanel";
|
|
16
16
|
import G from "primevue/tabpanels";
|
|
17
17
|
import ae from "primevue/tabs";
|
|
18
18
|
import oe from "primevue/accordion";
|
|
@@ -330,7 +330,7 @@ var J = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px]
|
|
|
330
330
|
"keydown"
|
|
331
331
|
],
|
|
332
332
|
setup(e, { emit: t }) {
|
|
333
|
-
let r = e, o = t, u =
|
|
333
|
+
let r = e, o = t, u = ee(), f = te(), m = k(), h = n(() => u.id === void 0 || u.id === null || u.id === "" ? m : String(u.id)), _ = n(() => `${h.value}-error`), v = n(() => r.invalid || !!r.error), y = n(() => r.manualInput && !r.readonly && !r.disabled && r.selectionMode === "single" && r.dateFormat === "dd/mm/yy"), x = n(() => {
|
|
334
334
|
if (v.value) return !0;
|
|
335
335
|
let e = u["aria-invalid"];
|
|
336
336
|
return typeof e == "boolean" || e === "true" || e === "false" || e === "grammar" || e === "spelling" ? e : void 0;
|
|
@@ -554,14 +554,14 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
554
554
|
}, X = { class: "m-0 text-center text-xs text-secondary-600 dark:text-zinc-300" }, Pe = {
|
|
555
555
|
key: 1,
|
|
556
556
|
class: "flex w-full flex-col gap-2"
|
|
557
|
-
}, Fe = ["src", "alt"],
|
|
557
|
+
}, Fe = ["src", "alt"], Ie = {
|
|
558
558
|
key: 1,
|
|
559
559
|
class: "flex size-12 shrink-0 items-center justify-center rounded-lg bg-primary-50 text-primary-800 dark:bg-primary-950 dark:text-primary-200"
|
|
560
|
-
},
|
|
560
|
+
}, Le = { class: "min-w-0 flex-1" }, Re = { class: "m-0 truncate text-xs font-bold text-secondary-900 dark:text-zinc-100" }, ze = { class: "text-[11px] text-secondary-500 dark:text-zinc-400" }, Be = [
|
|
561
561
|
"aria-label",
|
|
562
562
|
"disabled",
|
|
563
563
|
"onClick"
|
|
564
|
-
],
|
|
564
|
+
], Ve = ["id"], He = /* @__PURE__ */ u({
|
|
565
565
|
inheritAttrs: !1,
|
|
566
566
|
__name: "TopFileUpload",
|
|
567
567
|
props: {
|
|
@@ -600,7 +600,7 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
600
600
|
"error"
|
|
601
601
|
],
|
|
602
602
|
setup(t, { expose: s, emit: u }) {
|
|
603
|
-
let d = t, f = u, p =
|
|
603
|
+
let d = t, f = u, p = ee(), h = k(), g = S(null), _ = S(I(d.modelValue)), x = S([]), T = /* @__PURE__ */ new Map(), E = n(() => p.id === void 0 || p.id === null || p.id === "" ? h : String(p.id)), te = n(() => `${E.value}-error`), M = n(() => d.error || x.value[0]?.message || ""), N = n(() => d.disabled || d.loading), P = n(() => {
|
|
604
604
|
let e = p["aria-describedby"], t = [typeof e == "string" ? e : "", M.value ? te.value : ""].filter(Boolean);
|
|
605
605
|
return t.length ? t.join(" ") : void 0;
|
|
606
606
|
}), F = n(() => ({
|
|
@@ -641,23 +641,23 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
641
641
|
}), !1))
|
|
642
642
|
};
|
|
643
643
|
}
|
|
644
|
-
function
|
|
644
|
+
function ne(e) {
|
|
645
645
|
let t = e.originalEvent;
|
|
646
646
|
return Array.from(t.dataTransfer?.files ?? t.target?.files ?? []);
|
|
647
647
|
}
|
|
648
|
-
function
|
|
648
|
+
function re(e) {
|
|
649
649
|
return d.multiple ? [...e] : e[0] ?? null;
|
|
650
650
|
}
|
|
651
|
-
function
|
|
651
|
+
function H() {
|
|
652
652
|
g.value && (g.value.files = [..._.value]);
|
|
653
653
|
}
|
|
654
|
-
function
|
|
655
|
-
_.value = e, x.value = [], q(), m(
|
|
656
|
-
let n =
|
|
654
|
+
function ie(e, t) {
|
|
655
|
+
_.value = e, x.value = [], q(), m(H);
|
|
656
|
+
let n = re(e);
|
|
657
657
|
f("update:modelValue", n), f("change", n), t === "select" && f("select", [...e]), t === "clear" && f("clear");
|
|
658
658
|
}
|
|
659
|
-
function
|
|
660
|
-
let { errors: t, validFiles: n } = V(
|
|
659
|
+
function U(e) {
|
|
660
|
+
let { errors: t, validFiles: n } = V(ne(e)), r = d.multiple ? [..._.value, ...n.filter((e) => !_.value.some((t) => L(t, e)))] : n.slice(-1);
|
|
661
661
|
if (d.maxFiles && r.length > d.maxFiles) {
|
|
662
662
|
let e = r.slice(d.maxFiles);
|
|
663
663
|
t.push(...e.map((e) => ({
|
|
@@ -666,13 +666,13 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
666
666
|
message: `O limite máximo é de ${d.maxFiles} arquivo(s).`
|
|
667
667
|
}))), r = r.slice(0, d.maxFiles);
|
|
668
668
|
}
|
|
669
|
-
if (t.length ? (x.value = t, f("error", t)) : x.value = [],
|
|
670
|
-
_.value = r, q(), m(
|
|
671
|
-
let e =
|
|
669
|
+
if (t.length ? (x.value = t, f("error", t)) : x.value = [], H(), n.length && !W(r, _.value)) {
|
|
670
|
+
_.value = r, q(), m(H);
|
|
671
|
+
let e = re(r);
|
|
672
672
|
f("update:modelValue", e), f("change", e), f("select", [...r]);
|
|
673
673
|
}
|
|
674
674
|
}
|
|
675
|
-
function
|
|
675
|
+
function W(e, t) {
|
|
676
676
|
return e.length === t.length && e.every((e, n) => L(e, t[n]));
|
|
677
677
|
}
|
|
678
678
|
function G() {
|
|
@@ -684,10 +684,10 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
684
684
|
if (!n) return;
|
|
685
685
|
e(t);
|
|
686
686
|
let r = _.value.filter((e, n) => n !== t);
|
|
687
|
-
|
|
687
|
+
ie(r, "remove"), f("remove", n, t), r.length || f("clear");
|
|
688
688
|
}
|
|
689
689
|
function oe() {
|
|
690
|
-
N.value || !_.value.length ||
|
|
690
|
+
N.value || !_.value.length || ie([], "clear");
|
|
691
691
|
}
|
|
692
692
|
function K(e) {
|
|
693
693
|
if (!e.type.startsWith("image/") || typeof URL.createObjectURL != "function") return "";
|
|
@@ -701,11 +701,11 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
701
701
|
}
|
|
702
702
|
return A(() => d.modelValue, (e) => {
|
|
703
703
|
let t = I(e);
|
|
704
|
-
|
|
704
|
+
W(t, _.value) || (_.value = t, x.value = [], q(), m(H));
|
|
705
705
|
}), A(() => d.multiple, () => {
|
|
706
706
|
let e = I(d.modelValue);
|
|
707
|
-
_.value = e, q(), m(
|
|
708
|
-
}), y(
|
|
707
|
+
_.value = e, q(), m(H);
|
|
708
|
+
}), y(H), v(() => {
|
|
709
709
|
for (let e of T.values()) URL.revokeObjectURL(e);
|
|
710
710
|
T.clear();
|
|
711
711
|
}), s({
|
|
@@ -737,7 +737,7 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
737
737
|
N.value ? "cursor-not-allowed opacity-60" : ""
|
|
738
738
|
].join(" ") }
|
|
739
739
|
},
|
|
740
|
-
onSelect:
|
|
740
|
+
onSelect: U
|
|
741
741
|
}, {
|
|
742
742
|
content: j(({ removeFileCallback: c }) => [o("div", je, [_.value.length ? (b(), a("div", Pe, [(b(!0), a(e, null, C(_.value, (e, r) => (b(), a("div", {
|
|
743
743
|
key: `${e.name}-${e.size}-${e.lastModified}`,
|
|
@@ -752,11 +752,11 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
752
752
|
src: K(e),
|
|
753
753
|
alt: `Pré-visualização de ${e.name}`,
|
|
754
754
|
class: "size-12 shrink-0 rounded-lg object-cover"
|
|
755
|
-
}, null, 8, Fe)) : (b(), a("span",
|
|
755
|
+
}, null, 8, Fe)) : (b(), a("span", Ie, [...s[0] ||= [o("i", {
|
|
756
756
|
class: "pi pi-file text-2xl",
|
|
757
757
|
"aria-hidden": "true"
|
|
758
758
|
}, null, -1)]]))]),
|
|
759
|
-
o("div",
|
|
759
|
+
o("div", Le, [o("p", Re, D(e.name), 1), o("span", ze, D(B(e.size)), 1)]),
|
|
760
760
|
o("button", {
|
|
761
761
|
type: "button",
|
|
762
762
|
class: "flex size-8 shrink-0 items-center justify-center rounded-full border-0 bg-transparent p-0 text-red-600 transition-colors hover:bg-red-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-red-500 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 dark:text-red-400 dark:hover:bg-red-950/40 dark:focus-visible:ring-offset-zinc-900",
|
|
@@ -766,7 +766,7 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
766
766
|
}, [...s[1] ||= [o("i", {
|
|
767
767
|
class: "pi pi-times",
|
|
768
768
|
"aria-hidden": "true"
|
|
769
|
-
}, null, -1)]], 8,
|
|
769
|
+
}, null, -1)]], 8, Be)
|
|
770
770
|
]))), 128)), t.multiple && (!t.maxFiles || _.value.length < t.maxFiles) ? (b(), r(le, {
|
|
771
771
|
key: 0,
|
|
772
772
|
label: t.selectLabel,
|
|
@@ -817,14 +817,14 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
817
817
|
id: te.value,
|
|
818
818
|
class: "text-[11px] text-red-600 dark:text-red-400",
|
|
819
819
|
role: "alert"
|
|
820
|
-
}, D(M.value), 9,
|
|
820
|
+
}, D(M.value), 9, Ve)) : i("", !0)
|
|
821
821
|
]));
|
|
822
822
|
}
|
|
823
|
-
}),
|
|
823
|
+
}), Ue = { class: "top-input-text top-solutions-component flex w-full flex-col gap-1" }, We = ["for"], Ge = {
|
|
824
824
|
key: 0,
|
|
825
825
|
"aria-hidden": "true",
|
|
826
826
|
class: "text-red-600 dark:text-red-400"
|
|
827
|
-
},
|
|
827
|
+
}, Ke = ["id"], Z = /* @__PURE__ */ u({
|
|
828
828
|
inheritAttrs: !1,
|
|
829
829
|
__name: "TopInputText",
|
|
830
830
|
props: {
|
|
@@ -847,7 +847,7 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
847
847
|
},
|
|
848
848
|
emits: ["update:modelValue"],
|
|
849
849
|
setup(e, { emit: t }) {
|
|
850
|
-
let r = e, o = t, s =
|
|
850
|
+
let r = e, o = t, s = ee(), u = k(), d = n(() => s.id === void 0 || s.id === null || s.id === "" ? u : String(s.id)), f = n(() => `${d.value}-error`), m = n(() => {
|
|
851
851
|
if (r.error) return !0;
|
|
852
852
|
let e = s["aria-invalid"];
|
|
853
853
|
return typeof e == "boolean" || e === "true" || e === "false" || e === "grammar" || e === "spelling" ? e : void 0;
|
|
@@ -858,12 +858,12 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
858
858
|
function g(e) {
|
|
859
859
|
o("update:modelValue", e ?? "");
|
|
860
860
|
}
|
|
861
|
-
return (t, n) => (b(), a("div",
|
|
861
|
+
return (t, n) => (b(), a("div", Ue, [
|
|
862
862
|
e.label ? (b(), a("label", {
|
|
863
863
|
key: 0,
|
|
864
864
|
for: d.value,
|
|
865
865
|
class: "top-field-label text-xs font-bold"
|
|
866
|
-
}, [c(D(e.label) + " ", 1), e.required ? (b(), a("span",
|
|
866
|
+
}, [c(D(e.label) + " ", 1), e.required ? (b(), a("span", Ge, "*")) : i("", !0)], 8, We)) : i("", !0),
|
|
867
867
|
l(O(B), p(t.$attrs, {
|
|
868
868
|
id: d.value,
|
|
869
869
|
"model-value": e.modelValue,
|
|
@@ -894,14 +894,14 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
894
894
|
id: f.value,
|
|
895
895
|
class: "text-[11px] text-red-600 dark:text-red-400",
|
|
896
896
|
role: "alert"
|
|
897
|
-
}, D(e.error), 9,
|
|
897
|
+
}, D(e.error), 9, Ke)) : i("", !0)
|
|
898
898
|
]));
|
|
899
899
|
}
|
|
900
|
-
}),
|
|
900
|
+
}), Q = { class: "top-input-number top-solutions-component flex w-full flex-col gap-1" }, qe = ["for"], Je = {
|
|
901
901
|
key: 0,
|
|
902
902
|
"aria-hidden": "true",
|
|
903
903
|
class: "text-red-600 dark:text-red-400"
|
|
904
|
-
},
|
|
904
|
+
}, Ye = ["id"], Xe = /* @__PURE__ */ u({
|
|
905
905
|
inheritAttrs: !1,
|
|
906
906
|
__name: "TopInputNumber",
|
|
907
907
|
props: {
|
|
@@ -975,7 +975,7 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
975
975
|
"blur"
|
|
976
976
|
],
|
|
977
977
|
setup(e, { emit: t }) {
|
|
978
|
-
let o = e, l = t, u =
|
|
978
|
+
let o = e, l = t, u = ee(), f = te(), h = k(), _ = n(() => u.id === void 0 || u.id === null || u.id === "" ? h : String(u.id)), v = n(() => `${_.value}-error`), y = n(() => o.invalid || !!o.error), x = n(() => {
|
|
979
979
|
if (y.value) return !0;
|
|
980
980
|
let e = u["aria-invalid"];
|
|
981
981
|
return typeof e == "boolean" || e === "true" || e === "false" || e === "grammar" || e === "spelling" ? e : void 0;
|
|
@@ -986,9 +986,9 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
986
986
|
let e = o.centsFractionDigits ?? o.currencyFractionDigits ?? o.maxFractionDigits ?? 2;
|
|
987
987
|
return Math.min(20, Math.max(0, e));
|
|
988
988
|
}), M = n(() => {
|
|
989
|
-
let {
|
|
990
|
-
return
|
|
991
|
-
}), N = n(() => {
|
|
989
|
+
let { class: e, id: t, "aria-describedby": n, "aria-invalid": r, ...i } = u;
|
|
990
|
+
return i;
|
|
991
|
+
}), N = n(() => I("top-input-number__control top-field-control h-[40px] w-full rounded-[10px] border px-3 py-2 text-xs read-only:cursor-default disabled:cursor-not-allowed", u.class)), P = n(() => {
|
|
992
992
|
let e = u.pt, t = e && typeof e == "object" ? e : {}, n = t.pcInputText && typeof t.pcInputText == "object" ? t.pcInputText : {}, r = n.root && typeof n.root == "object" ? n.root : {};
|
|
993
993
|
return {
|
|
994
994
|
...t,
|
|
@@ -1002,13 +1002,13 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
1002
1002
|
}
|
|
1003
1003
|
};
|
|
1004
1004
|
});
|
|
1005
|
-
function
|
|
1005
|
+
function F(e) {
|
|
1006
1006
|
l("update:modelValue", e ?? null);
|
|
1007
1007
|
}
|
|
1008
|
-
function
|
|
1008
|
+
function L(e) {
|
|
1009
1009
|
return o.min !== void 0 && e < o.min ? o.min : o.max !== void 0 && e > o.max ? o.max : e;
|
|
1010
1010
|
}
|
|
1011
|
-
function
|
|
1011
|
+
function R(e) {
|
|
1012
1012
|
return e === null ? "" : new Intl.NumberFormat(o.locale, {
|
|
1013
1013
|
style: "currency",
|
|
1014
1014
|
currency: o.currency || "BRL",
|
|
@@ -1018,10 +1018,10 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
1018
1018
|
maximumFractionDigits: A.value
|
|
1019
1019
|
}).format(e);
|
|
1020
1020
|
}
|
|
1021
|
-
function
|
|
1021
|
+
function z(e) {
|
|
1022
1022
|
let t = e.target;
|
|
1023
1023
|
if (!(t instanceof HTMLInputElement)) return;
|
|
1024
|
-
let n = t.value.replace(/\D/g, ""), r = 10 ** A.value, i = n ?
|
|
1024
|
+
let n = t.value.replace(/\D/g, ""), r = 10 ** A.value, i = n ? L(Number(n) / r) : o.allowEmpty ? null : 0, a = R(i);
|
|
1025
1025
|
t.value = a, l("update:modelValue", i), l("input", {
|
|
1026
1026
|
originalEvent: e,
|
|
1027
1027
|
value: i ?? void 0,
|
|
@@ -1030,22 +1030,22 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
1030
1030
|
t.value = a;
|
|
1031
1031
|
});
|
|
1032
1032
|
}
|
|
1033
|
-
function
|
|
1033
|
+
function ne(e) {
|
|
1034
1034
|
let t = e.target;
|
|
1035
1035
|
l("blur", {
|
|
1036
1036
|
originalEvent: e,
|
|
1037
1037
|
value: t instanceof HTMLInputElement ? t.value : ""
|
|
1038
1038
|
});
|
|
1039
1039
|
}
|
|
1040
|
-
return (t, n) => (b(), a("div",
|
|
1040
|
+
return (t, n) => (b(), a("div", Q, [
|
|
1041
1041
|
e.label ? (b(), a("label", {
|
|
1042
1042
|
key: 0,
|
|
1043
1043
|
for: _.value,
|
|
1044
1044
|
class: "top-field-label text-xs font-bold"
|
|
1045
|
-
}, [c(D(e.label) + " ", 1), e.required ? (b(), a("span",
|
|
1045
|
+
}, [c(D(e.label) + " ", 1), e.required ? (b(), a("span", Je, "*")) : i("", !0)], 8, qe)) : i("", !0),
|
|
1046
1046
|
T.value ? (b(), r(O(B), p({ key: 1 }, M.value, {
|
|
1047
1047
|
id: _.value,
|
|
1048
|
-
"model-value":
|
|
1048
|
+
"model-value": R(e.modelValue),
|
|
1049
1049
|
type: "text",
|
|
1050
1050
|
inputmode: "numeric",
|
|
1051
1051
|
placeholder: e.placeholder,
|
|
@@ -1056,10 +1056,10 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
1056
1056
|
"aria-invalid": x.value,
|
|
1057
1057
|
"aria-describedby": S.value,
|
|
1058
1058
|
fluid: "",
|
|
1059
|
-
class:
|
|
1060
|
-
onInput:
|
|
1059
|
+
class: N.value,
|
|
1060
|
+
onInput: z,
|
|
1061
1061
|
onFocus: n[0] ||= (e) => l("focus", e),
|
|
1062
|
-
onBlur:
|
|
1062
|
+
onBlur: ne
|
|
1063
1063
|
}), null, 16, [
|
|
1064
1064
|
"id",
|
|
1065
1065
|
"model-value",
|
|
@@ -1069,7 +1069,8 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
1069
1069
|
"disabled",
|
|
1070
1070
|
"readonly",
|
|
1071
1071
|
"aria-invalid",
|
|
1072
|
-
"aria-describedby"
|
|
1072
|
+
"aria-describedby",
|
|
1073
|
+
"class"
|
|
1073
1074
|
])) : (b(), r(O(V), p({ key: 2 }, M.value, {
|
|
1074
1075
|
"model-value": e.modelValue,
|
|
1075
1076
|
"input-id": _.value,
|
|
@@ -1096,10 +1097,10 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
1096
1097
|
"show-clear": e.showClear,
|
|
1097
1098
|
"aria-invalid": x.value,
|
|
1098
1099
|
"aria-describedby": S.value,
|
|
1099
|
-
pt:
|
|
1100
|
-
"input-class":
|
|
1100
|
+
pt: P.value,
|
|
1101
|
+
"input-class": N.value,
|
|
1101
1102
|
fluid: "",
|
|
1102
|
-
"onUpdate:modelValue":
|
|
1103
|
+
"onUpdate:modelValue": F,
|
|
1103
1104
|
onValueChange: n[1] ||= (e) => l("value-change", e ?? null),
|
|
1104
1105
|
onInput: n[2] ||= (e) => l("input", e),
|
|
1105
1106
|
onFocus: n[3] ||= (e) => l("focus", e),
|
|
@@ -1107,24 +1108,24 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
1107
1108
|
}), s({ _: 2 }, [C(O(f), (e, n) => ({
|
|
1108
1109
|
name: n,
|
|
1109
1110
|
fn: j((e) => [w(t.$slots, n, g(d(e ?? {})))])
|
|
1110
|
-
}))]), 1040, /* @__PURE__ */ "model-value.input-id.placeholder.required.invalid.disabled.readonly.format.show-buttons.button-layout.locale.mode.currency.currency-display.use-grouping.min-fraction-digits.max-fraction-digits.min.max.step.allow-empty.highlight-on-focus.show-clear.aria-invalid.aria-describedby.pt".split("."))),
|
|
1111
|
+
}))]), 1040, /* @__PURE__ */ "model-value.input-id.placeholder.required.invalid.disabled.readonly.format.show-buttons.button-layout.locale.mode.currency.currency-display.use-grouping.min-fraction-digits.max-fraction-digits.min.max.step.allow-empty.highlight-on-focus.show-clear.aria-invalid.aria-describedby.pt.input-class".split("."))),
|
|
1111
1112
|
e.error ? (b(), a("span", {
|
|
1112
1113
|
key: 3,
|
|
1113
1114
|
id: v.value,
|
|
1114
1115
|
class: "text-[11px] text-red-600 dark:text-red-400",
|
|
1115
1116
|
role: "alert"
|
|
1116
|
-
}, D(e.error), 9,
|
|
1117
|
+
}, D(e.error), 9, Ye)) : i("", !0)
|
|
1117
1118
|
]));
|
|
1118
1119
|
}
|
|
1119
|
-
}),
|
|
1120
|
+
}), Ze = [
|
|
1120
1121
|
"disabled",
|
|
1121
1122
|
"aria-expanded",
|
|
1122
1123
|
"onClick"
|
|
1123
|
-
],
|
|
1124
|
+
], Qe = { class: "top-nav-bar__mobile-item-label" }, $e = {
|
|
1124
1125
|
key: 1,
|
|
1125
1126
|
class: "top-nav-bar__mobile-count",
|
|
1126
1127
|
"aria-hidden": "true"
|
|
1127
|
-
},
|
|
1128
|
+
}, et = /* @__PURE__ */ u({
|
|
1128
1129
|
name: "TopNavMobileTree",
|
|
1129
1130
|
__name: "TopNavMobileTree",
|
|
1130
1131
|
props: {
|
|
@@ -1197,14 +1198,14 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
1197
1198
|
class: h(e.icon),
|
|
1198
1199
|
"aria-hidden": "true"
|
|
1199
1200
|
}, null, 2)) : i("", !0),
|
|
1200
|
-
o("span",
|
|
1201
|
-
p(e).length ? (b(), a("span",
|
|
1201
|
+
o("span", Qe, D(e.label), 1),
|
|
1202
|
+
p(e).length ? (b(), a("span", $e, D(p(e).length), 1)) : i("", !0),
|
|
1202
1203
|
p(e).length ? (b(), a("i", {
|
|
1203
1204
|
key: 2,
|
|
1204
1205
|
class: h(["pi pi-chevron-down top-nav-bar__mobile-chevron", { "top-nav-bar__mobile-chevron--open": g(e) }]),
|
|
1205
1206
|
"aria-hidden": "true"
|
|
1206
1207
|
}, null, 2)) : i("", !0)
|
|
1207
|
-
], 10,
|
|
1208
|
+
], 10, Ze), l(t, { name: "top-nav-bar-menu-expand" }, {
|
|
1208
1209
|
default: j(() => [p(e).length && g(e) ? (b(), r(u, {
|
|
1209
1210
|
key: 0,
|
|
1210
1211
|
items: p(e),
|
|
@@ -1222,170 +1223,170 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
1222
1223
|
}, 1024)], 2))), 128))], 6);
|
|
1223
1224
|
};
|
|
1224
1225
|
}
|
|
1225
|
-
}),
|
|
1226
|
+
}), tt = ["aria-expanded"], nt = { class: "top-nav-bar__brand" }, rt = {
|
|
1226
1227
|
key: 1,
|
|
1227
1228
|
class: "top-nav-bar__brand-context-divider",
|
|
1228
1229
|
"aria-hidden": "true"
|
|
1229
|
-
},
|
|
1230
|
+
}, it = {
|
|
1230
1231
|
key: 2,
|
|
1231
1232
|
class: "top-nav-bar__context"
|
|
1232
|
-
},
|
|
1233
|
+
}, at = {
|
|
1233
1234
|
key: 0,
|
|
1234
1235
|
class: "top-nav-bar__client"
|
|
1235
|
-
},
|
|
1236
|
+
}, ot = ["src"], st = {
|
|
1236
1237
|
key: 1,
|
|
1237
1238
|
class: "top-nav-bar__client-logo"
|
|
1238
|
-
},
|
|
1239
|
+
}, ct = {
|
|
1239
1240
|
key: 2,
|
|
1240
1241
|
class: "top-nav-bar__client-details"
|
|
1241
|
-
},
|
|
1242
|
+
}, lt = { class: "top-nav-bar__client-name" }, ut = {
|
|
1242
1243
|
key: 0,
|
|
1243
1244
|
class: "top-nav-bar__client-subtitle"
|
|
1244
|
-
},
|
|
1245
|
+
}, dt = { class: "top-nav-bar__desktop-tools" }, ft = {
|
|
1245
1246
|
key: 0,
|
|
1246
1247
|
class: "top-nav-bar__search-shell",
|
|
1247
1248
|
"data-top-nav-search": ""
|
|
1248
|
-
},
|
|
1249
|
+
}, pt = ["value", "placeholder"], mt = ["aria-label"], ht = {
|
|
1249
1250
|
key: 1,
|
|
1250
1251
|
class: "top-nav-bar__search-results",
|
|
1251
1252
|
role: "menu"
|
|
1252
|
-
},
|
|
1253
|
+
}, gt = { class: "top-nav-bar__search-results-scroll" }, _t = ["disabled", "onClick"], vt = {
|
|
1253
1254
|
key: 0,
|
|
1254
1255
|
class: "top-nav-bar__empty"
|
|
1255
|
-
},
|
|
1256
|
+
}, yt = {
|
|
1256
1257
|
key: 1,
|
|
1257
1258
|
class: "top-nav-bar__quick-actions",
|
|
1258
1259
|
"data-top-nav-actions": ""
|
|
1259
|
-
},
|
|
1260
|
+
}, bt = [
|
|
1260
1261
|
"disabled",
|
|
1261
1262
|
"aria-label",
|
|
1262
1263
|
"aria-pressed",
|
|
1263
1264
|
"title",
|
|
1264
1265
|
"onClick"
|
|
1265
|
-
],
|
|
1266
|
+
], xt = ["aria-expanded"], St = {
|
|
1266
1267
|
key: 0,
|
|
1267
1268
|
class: "top-nav-bar__popover-layer top-nav-bar__actions-layer"
|
|
1268
|
-
},
|
|
1269
|
+
}, Ct = {
|
|
1269
1270
|
class: "top-nav-bar__small-panel",
|
|
1270
1271
|
role: "menu"
|
|
1271
|
-
},
|
|
1272
|
+
}, wt = ["disabled", "onClick"], Tt = {
|
|
1272
1273
|
key: 2,
|
|
1273
1274
|
class: "top-nav-bar__custom-actions"
|
|
1274
|
-
},
|
|
1275
|
+
}, Et = ["aria-haspopup", "aria-expanded"], Dt = ["src"], Ot = {
|
|
1275
1276
|
key: 1,
|
|
1276
1277
|
class: "top-nav-bar__user-avatar"
|
|
1277
|
-
},
|
|
1278
|
+
}, kt = {
|
|
1278
1279
|
key: 2,
|
|
1279
1280
|
class: "top-nav-bar__user-details"
|
|
1280
|
-
},
|
|
1281
|
+
}, At = { class: "top-nav-bar__user-name" }, jt = {
|
|
1281
1282
|
key: 0,
|
|
1282
1283
|
class: "top-nav-bar__user-subtitle"
|
|
1283
|
-
},
|
|
1284
|
+
}, Mt = {
|
|
1284
1285
|
key: 0,
|
|
1285
1286
|
class: "pi pi-chevron-down top-nav-bar__chevron",
|
|
1286
1287
|
"aria-hidden": "true"
|
|
1287
|
-
},
|
|
1288
|
+
}, Nt = {
|
|
1288
1289
|
key: 0,
|
|
1289
1290
|
class: "top-nav-bar__popover-layer top-nav-bar__user-layer"
|
|
1290
|
-
},
|
|
1291
|
+
}, Pt = {
|
|
1291
1292
|
class: "top-nav-bar__small-panel top-nav-bar__user-dropdown",
|
|
1292
1293
|
role: "menu"
|
|
1293
|
-
},
|
|
1294
|
+
}, Ft = {
|
|
1294
1295
|
key: 0,
|
|
1295
1296
|
class: "top-nav-bar__user-separator",
|
|
1296
1297
|
role: "separator"
|
|
1297
|
-
},
|
|
1298
|
+
}, It = ["disabled", "onClick"], Lt = {
|
|
1298
1299
|
class: "top-nav-bar__breadcrumbs",
|
|
1299
1300
|
"aria-label": "Breadcrumb"
|
|
1300
|
-
},
|
|
1301
|
+
}, Rt = {
|
|
1301
1302
|
key: 0,
|
|
1302
1303
|
class: "top-nav-bar__separator top-nav-bar__desktop-navigation-separator",
|
|
1303
1304
|
"aria-hidden": "true"
|
|
1304
|
-
},
|
|
1305
|
+
}, zt = ["aria-expanded"], Bt = {
|
|
1305
1306
|
key: 0,
|
|
1306
1307
|
class: "top-nav-bar__menu-layer"
|
|
1307
|
-
},
|
|
1308
|
+
}, Vt = {
|
|
1308
1309
|
class: "top-nav-bar__menu-panel",
|
|
1309
1310
|
role: "menu"
|
|
1310
|
-
},
|
|
1311
|
+
}, Ht = { class: "top-nav-bar__section-list" }, Ut = [
|
|
1311
1312
|
"aria-expanded",
|
|
1312
1313
|
"onMouseenter",
|
|
1313
1314
|
"onClick"
|
|
1314
|
-
],
|
|
1315
|
+
], Wt = { class: "top-nav-bar__menu-label" }, Gt = { class: "top-nav-bar__item-count" }, Kt = {
|
|
1315
1316
|
key: 0,
|
|
1316
1317
|
class: "top-nav-bar__submenu-region"
|
|
1317
|
-
},
|
|
1318
|
+
}, qt = [
|
|
1318
1319
|
"disabled",
|
|
1319
1320
|
"aria-haspopup",
|
|
1320
1321
|
"aria-expanded",
|
|
1321
1322
|
"onMouseenter",
|
|
1322
1323
|
"onClick"
|
|
1323
|
-
],
|
|
1324
|
+
], Jt = { class: "top-nav-bar__menu-label" }, Yt = {
|
|
1324
1325
|
key: 1,
|
|
1325
1326
|
class: "pi pi-chevron-right top-nav-bar__menu-arrow",
|
|
1326
1327
|
"aria-hidden": "true"
|
|
1327
|
-
},
|
|
1328
|
+
}, Xt = ["onMouseenter"], Zt = {
|
|
1328
1329
|
key: 0,
|
|
1329
1330
|
class: "top-nav-bar__crumb top-nav-bar__crumb--static"
|
|
1330
|
-
},
|
|
1331
|
+
}, Qt = ["aria-expanded", "onClick"], $t = {
|
|
1331
1332
|
key: 2,
|
|
1332
1333
|
class: "top-nav-bar__menu-layer"
|
|
1333
|
-
},
|
|
1334
|
+
}, en = {
|
|
1334
1335
|
class: "top-nav-bar__menu-panel top-nav-bar__breadcrumb-panel",
|
|
1335
1336
|
role: "menu"
|
|
1336
|
-
},
|
|
1337
|
+
}, tn = [
|
|
1337
1338
|
"disabled",
|
|
1338
1339
|
"onMouseenter",
|
|
1339
1340
|
"onClick"
|
|
1340
|
-
],
|
|
1341
|
+
], nn = { class: "top-nav-bar__menu-label" }, rn = {
|
|
1341
1342
|
key: 1,
|
|
1342
1343
|
class: "pi pi-chevron-right top-nav-bar__menu-arrow",
|
|
1343
1344
|
"aria-hidden": "true"
|
|
1344
|
-
},
|
|
1345
|
+
}, an = ["onClick"], on = ["title"], sn = { class: "top-nav-bar__current-label" }, cn = ["aria-label", "aria-pressed"], ln = { class: "top-nav-bar__breadcrumb-actions" }, un = ["aria-expanded"], dn = {
|
|
1345
1346
|
key: 0,
|
|
1346
1347
|
class: "top-nav-bar__popover-layer top-nav-bar__favorites-layer"
|
|
1347
|
-
},
|
|
1348
|
+
}, fn = {
|
|
1348
1349
|
class: "top-nav-bar__small-panel top-nav-bar__favorites-panel",
|
|
1349
1350
|
role: "menu"
|
|
1350
|
-
},
|
|
1351
|
+
}, pn = ["disabled", "onClick"], mn = { class: "top-nav-bar__favorites-title" }, hn = {
|
|
1351
1352
|
key: 0,
|
|
1352
1353
|
class: "top-nav-bar__favorites-separator"
|
|
1353
|
-
},
|
|
1354
|
+
}, gn = {
|
|
1354
1355
|
key: 0,
|
|
1355
1356
|
class: "top-nav-bar__favorites-row top-nav-bar__desktop-only"
|
|
1356
|
-
},
|
|
1357
|
+
}, _n = { class: "top-nav-bar__favorites-title" }, vn = { class: "top-nav-bar__favorites-list" }, yn = {
|
|
1357
1358
|
key: 0,
|
|
1358
1359
|
class: "top-nav-bar__favorites-separator",
|
|
1359
1360
|
"aria-hidden": "true"
|
|
1360
|
-
},
|
|
1361
|
+
}, bn = ["disabled", "onClick"], xn = { class: "top-nav-bar__mobile-menu" }, Sn = { class: "top-nav-bar__mobile-menu-header" }, Cn = { class: "top-nav-bar__drawer-brand" }, wn = ["onClick"], Tn = {
|
|
1361
1362
|
key: 0,
|
|
1362
1363
|
class: "top-nav-bar__drawer-tools"
|
|
1363
|
-
},
|
|
1364
|
+
}, En = { class: "top-nav-bar__drawer-search" }, Dn = ["value", "placeholder"], On = ["disabled", "onClick"], kn = { class: "top-nav-bar__mobile-menu-scroll" }, An = { class: "top-nav-bar__mobile-menu-track" }, jn = {
|
|
1364
1365
|
key: 0,
|
|
1365
1366
|
class: "top-nav-bar__mobile-favorites"
|
|
1366
|
-
},
|
|
1367
|
+
}, Mn = ["aria-expanded"], Nn = { class: "top-nav-bar__mobile-item-label" }, Pn = { class: "top-nav-bar__mobile-count" }, Fn = {
|
|
1367
1368
|
key: 1,
|
|
1368
1369
|
class: "top-nav-bar__drawer-empty"
|
|
1369
|
-
},
|
|
1370
|
+
}, In = {
|
|
1370
1371
|
key: 1,
|
|
1371
1372
|
class: "top-nav-bar__mobile-footer"
|
|
1372
|
-
},
|
|
1373
|
+
}, Ln = ["aria-haspopup", "aria-expanded"], Rn = ["src"], zn = {
|
|
1373
1374
|
key: 1,
|
|
1374
1375
|
class: "top-nav-bar__user-avatar"
|
|
1375
|
-
},
|
|
1376
|
+
}, Bn = {
|
|
1376
1377
|
key: 2,
|
|
1377
1378
|
class: "top-nav-bar__user-details"
|
|
1378
|
-
},
|
|
1379
|
+
}, Vn = { class: "top-nav-bar__user-name" }, Hn = {
|
|
1379
1380
|
key: 0,
|
|
1380
1381
|
class: "top-nav-bar__drawer-user-context"
|
|
1381
|
-
},
|
|
1382
|
+
}, Un = { class: "top-nav-bar__drawer-user-client" }, Wn = {
|
|
1382
1383
|
key: 0,
|
|
1383
1384
|
class: "top-nav-bar__drawer-user-client-subtitle"
|
|
1384
|
-
},
|
|
1385
|
+
}, Gn = {
|
|
1385
1386
|
key: 3,
|
|
1386
1387
|
class: "pi pi-chevron-down top-nav-bar__mobile-chevron",
|
|
1387
1388
|
"aria-hidden": "true"
|
|
1388
|
-
},
|
|
1389
|
+
}, Kn = 120, qn = 24, Jn = /* @__PURE__ */ u({
|
|
1389
1390
|
__name: "TopNavBar",
|
|
1390
1391
|
props: {
|
|
1391
1392
|
sections: { default: () => [] },
|
|
@@ -1436,7 +1437,8 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
1436
1437
|
type: Boolean,
|
|
1437
1438
|
default: void 0
|
|
1438
1439
|
},
|
|
1439
|
-
appearance: { default: () => ({}) }
|
|
1440
|
+
appearance: { default: () => ({}) },
|
|
1441
|
+
spacing: { default: () => ({}) }
|
|
1440
1442
|
},
|
|
1441
1443
|
emits: [
|
|
1442
1444
|
"navigate",
|
|
@@ -1451,7 +1453,7 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
1451
1453
|
"user-click"
|
|
1452
1454
|
],
|
|
1453
1455
|
setup(s, { expose: u, emit: d }) {
|
|
1454
|
-
let f = s, p = d, g = te(), x = S(null), T = S(null), E = S(null),
|
|
1456
|
+
let f = s, p = d, g = te(), x = S(null), T = S(null), E = S(null), ee = S(null), k = S(null), M = S(null), P = S(f.mobileOpen ?? !1), F = S(!1), I = S(null), L = S([]), R = S(null), z = S([]), B = S(!1), V = S(!1), H = S(!1), ie = S(null), U = S(!1), W = S(!1), G = S(!1), ae = S(!0), oe = S(!1), K = S(f.searchValue ?? ""), q = S(!1), se = S(!1), ce = S(!1), J = S({
|
|
1455
1457
|
collapseActions: !1,
|
|
1456
1458
|
searchIconOnly: !1,
|
|
1457
1459
|
hideUserName: !1,
|
|
@@ -1584,138 +1586,138 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
1584
1586
|
}
|
|
1585
1587
|
e.push(t);
|
|
1586
1588
|
}), e.at(-1)?.separator && e.pop(), e;
|
|
1587
|
-
}), X = n(() => !!g["user-menu"] || Ne.value.some((e) => !e.separator)), Pe = n(() => !!f.user || !!g.user), Fe = n(() => !!(f.client || g.context || g.scope || g.client || g["context-compact"])),
|
|
1589
|
+
}), X = n(() => !!g["user-menu"] || Ne.value.some((e) => !e.separator)), Pe = n(() => !!f.user || !!g.user), Fe = n(() => !!(f.client || g.context || g.scope || g.client || g["context-compact"])), Ie = n(() => f.favoriteItems.filter(Boolean)), Le = n(() => G.value || !ae.value), Re = n(() => Ie.value.length > 0 && !Le.value), ze = n(() => Y.value.length > 0 || f.searchable || Me.value.length > 0 || Pe.value || !!(g["drawer-menu"] || g["drawer-actions"] || g["drawer-footer"])), Be = n(() => f.user ? f.user.initials ? f.user.initials : f.user.name.split(/\s+/).filter(Boolean).slice(0, 2).map((e) => e[0]?.toLocaleUpperCase("pt-BR")).join("") : ""), Ve = n(() => Ne.value.map((e) => e.separator ? { separator: !0 } : {
|
|
1588
1590
|
label: e.label,
|
|
1589
1591
|
icon: e.icon,
|
|
1590
1592
|
disabled: e.disabled,
|
|
1591
|
-
command: () =>
|
|
1592
|
-
})),
|
|
1593
|
-
let e = f.appearance, t = {},
|
|
1594
|
-
|
|
1593
|
+
command: () => Je(e)
|
|
1594
|
+
})), He = n(() => {
|
|
1595
|
+
let e = f.appearance, t = f.spacing, n = {}, r = (e, t) => {
|
|
1596
|
+
t !== void 0 && t !== "" && (n[e] = t);
|
|
1595
1597
|
};
|
|
1596
|
-
return
|
|
1597
|
-
}),
|
|
1598
|
-
function
|
|
1598
|
+
return r("--top-nav-bg", e.colors?.navigation), r("--top-nav-breadcrumb-bg", e.surfaces?.breadcrumb ?? e.colors?.navigation), r("--top-nav-drawer-bg", e.surfaces?.drawer ?? e.colors?.navigation), r("--top-nav-drawer-footer-bg", e.surfaces?.drawerFooter), r("--top-nav-fg", e.colors?.text), r("--top-nav-muted-fg", e.colors?.mutedText), r("--top-nav-accent", e.colors?.accent), r("--top-nav-menu-bg", e.surfaces?.menu), r("--top-nav-menu-fg", e.colors?.menuText), r("--top-nav-menu-hover", e.surfaces?.menuHover), r("--top-nav-menu-explored", e.surfaces?.menuExplored), r("--top-nav-border", e.colors?.border), r("--top-nav-menu-border", e.borders?.menu), r("--top-nav-menu-outline", e.borders?.menuOutline), r("--top-nav-radius", e.shape?.radius), r("--top-nav-drawer-radius", e.shape?.drawerRadius), r("--top-nav-shadow", e.shape?.shadow), r("--top-nav-mobile-active-bg", e.surfaces?.mobileActive), r("--top-nav-mobile-active-fg", e.colors?.mobileActiveText), r("--top-nav-mobile-divider", e.borders?.mobileDivider), r("--top-nav-favorites-bg", e.surfaces?.favorites), r("--top-nav-favorites-fg", e.colors?.favoritesText), r("--top-nav-favorites-border", e.borders?.favorites), r("--top-nav-favorites-shadow", e.shape?.favoritesShadow), r("--top-nav-focus-ring", e.focus?.onDark), r("--top-nav-focus-ring-light", e.focus?.onLight), r("--top-nav-current-bg", e.surfaces?.currentPage), r("--top-nav-current-border", e.borders?.currentPage), r("--top-nav-header-padding", t.headerPadding), r("--top-nav-breadcrumb-padding", t.breadcrumbPadding), n;
|
|
1599
|
+
}), Ue = n(() => f.client ? f.client.initials ? f.client.initials : f.client.name.split(/\s+/).filter(Boolean).slice(0, 2).map((e) => e[0]?.toLocaleUpperCase("pt-BR")).join("") : "");
|
|
1600
|
+
function We() {
|
|
1599
1601
|
let e = Math.max(0, window.scrollY);
|
|
1600
|
-
if (!G.value && e >=
|
|
1602
|
+
if (!G.value && e >= Kn) {
|
|
1601
1603
|
G.value = !0;
|
|
1602
1604
|
return;
|
|
1603
1605
|
}
|
|
1604
|
-
G.value && e <=
|
|
1606
|
+
G.value && e <= qn && (G.value = !1);
|
|
1605
1607
|
}
|
|
1606
|
-
function
|
|
1607
|
-
let e = E.value, t =
|
|
1608
|
+
function Ge() {
|
|
1609
|
+
let e = E.value, t = ee.value;
|
|
1608
1610
|
!e || !t || (ae.value = t.scrollWidth <= e.clientWidth + 1);
|
|
1609
1611
|
}
|
|
1610
|
-
function
|
|
1612
|
+
function Ke() {
|
|
1611
1613
|
fe = window.requestAnimationFrame(() => {
|
|
1612
1614
|
fe = window.requestAnimationFrame(() => {
|
|
1613
1615
|
oe.value = !0;
|
|
1614
1616
|
});
|
|
1615
1617
|
});
|
|
1616
1618
|
}
|
|
1617
|
-
function
|
|
1619
|
+
function Z() {
|
|
1618
1620
|
return typeof window < "u" && window.matchMedia?.("(hover: hover) and (pointer: fine)").matches;
|
|
1619
1621
|
}
|
|
1620
|
-
function
|
|
1621
|
-
e.disabled || (p("navigate", e), P.value = !1,
|
|
1622
|
+
function Q(e) {
|
|
1623
|
+
e.disabled || (p("navigate", e), P.value = !1, rr());
|
|
1622
1624
|
}
|
|
1623
|
-
function
|
|
1625
|
+
function qe(e, t = !1) {
|
|
1624
1626
|
e.disabled || (e.kind === "aia" ? p("toggle-aia") : e.kind === "support" ? p("open-support") : p("action", e), B.value = !1, t && (P.value = !1));
|
|
1625
1627
|
}
|
|
1626
|
-
function
|
|
1627
|
-
e.disabled || e.separator || (p("user-action", e), V.value = !1,
|
|
1628
|
+
function Je(e, t = !1) {
|
|
1629
|
+
e.disabled || e.separator || (p("user-action", e), V.value = !1, H.value = !1, t && (P.value = !1));
|
|
1628
1630
|
}
|
|
1629
|
-
function
|
|
1631
|
+
function Ye(e) {
|
|
1630
1632
|
if (!X.value) {
|
|
1631
1633
|
p("user-click", f.user);
|
|
1632
1634
|
return;
|
|
1633
1635
|
}
|
|
1634
|
-
|
|
1636
|
+
ie.value?.toggle(e);
|
|
1635
1637
|
}
|
|
1636
|
-
function
|
|
1638
|
+
function Xe(e) {
|
|
1637
1639
|
K.value = e, p("update:searchValue", e), p("search", e);
|
|
1638
1640
|
}
|
|
1639
|
-
function Xe() {
|
|
1640
|
-
Ye(""), m(() => P.value ? M.value?.focus() : ee.value?.focus());
|
|
1641
|
-
}
|
|
1642
1641
|
function Ze() {
|
|
1643
|
-
|
|
1642
|
+
Xe(""), m(() => P.value ? M.value?.focus() : k.value?.focus());
|
|
1644
1643
|
}
|
|
1645
1644
|
function Qe() {
|
|
1646
|
-
|
|
1645
|
+
Z() && (F.value = !0);
|
|
1646
|
+
}
|
|
1647
|
+
function $e() {
|
|
1648
|
+
!Z() || window.innerWidth < 1024 || (F.value = !1, I.value = null, L.value = []);
|
|
1647
1649
|
}
|
|
1648
|
-
function
|
|
1649
|
-
if (
|
|
1650
|
+
function Jn() {
|
|
1651
|
+
if (Z()) {
|
|
1650
1652
|
F.value = !0;
|
|
1651
1653
|
return;
|
|
1652
1654
|
}
|
|
1653
1655
|
F.value = !F.value, F.value || (I.value = null, L.value = []);
|
|
1654
1656
|
}
|
|
1655
|
-
function Jn(e) {
|
|
1656
|
-
Q() && (I.value = e, L.value = []);
|
|
1657
|
-
}
|
|
1658
1657
|
function Yn(e) {
|
|
1659
|
-
|
|
1658
|
+
Z() && (I.value = e, L.value = []);
|
|
1659
|
+
}
|
|
1660
|
+
function Xn(e) {
|
|
1661
|
+
if (Z()) {
|
|
1660
1662
|
I.value = e, L.value = [];
|
|
1661
1663
|
return;
|
|
1662
1664
|
}
|
|
1663
1665
|
let t = I.value === e;
|
|
1664
1666
|
I.value = t ? null : e, L.value = [];
|
|
1665
1667
|
}
|
|
1666
|
-
function
|
|
1667
|
-
if (r && !
|
|
1668
|
+
function Zn(e, t, n, r) {
|
|
1669
|
+
if (r && !Z()) return;
|
|
1668
1670
|
let i = e.value[n];
|
|
1669
1671
|
if (!t.children?.length) {
|
|
1670
|
-
e.value = e.value.slice(0, n), r ||
|
|
1672
|
+
e.value = e.value.slice(0, n), r || Q(t);
|
|
1671
1673
|
return;
|
|
1672
1674
|
}
|
|
1673
|
-
if (!r &&
|
|
1675
|
+
if (!r && Z()) {
|
|
1674
1676
|
e.value = [...e.value.slice(0, n), t.id];
|
|
1675
1677
|
return;
|
|
1676
1678
|
}
|
|
1677
1679
|
e.value = i === t.id && !r ? e.value.slice(0, n) : [...e.value.slice(0, n), t.id];
|
|
1678
1680
|
}
|
|
1679
|
-
function Zn(e, t, n) {
|
|
1680
|
-
Xn(L, e, t, n);
|
|
1681
|
-
}
|
|
1682
1681
|
function Qn(e, t, n) {
|
|
1683
|
-
|
|
1682
|
+
Zn(L, e, t, n);
|
|
1683
|
+
}
|
|
1684
|
+
function $n(e, t, n) {
|
|
1685
|
+
Zn(z, e, t, n);
|
|
1684
1686
|
}
|
|
1685
|
-
function
|
|
1686
|
-
|
|
1687
|
+
function er(e) {
|
|
1688
|
+
Z() && (R.value = e, z.value = []);
|
|
1687
1689
|
}
|
|
1688
|
-
function
|
|
1689
|
-
!
|
|
1690
|
+
function tr() {
|
|
1691
|
+
!Z() || window.innerWidth < 1024 || (R.value = null, z.value = []);
|
|
1690
1692
|
}
|
|
1691
|
-
function
|
|
1692
|
-
if (
|
|
1693
|
+
function nr(e) {
|
|
1694
|
+
if (Z()) {
|
|
1693
1695
|
R.value = e;
|
|
1694
1696
|
return;
|
|
1695
1697
|
}
|
|
1696
1698
|
R.value = R.value === e ? null : e, z.value = [];
|
|
1697
1699
|
}
|
|
1698
|
-
function
|
|
1699
|
-
F.value = !1, I.value = null, L.value = [], R.value = null, z.value = [], B.value = !1, V.value = !1,
|
|
1700
|
+
function rr() {
|
|
1701
|
+
F.value = !1, I.value = null, L.value = [], R.value = null, z.value = [], B.value = !1, V.value = !1, U.value = !1, q.value = !1;
|
|
1700
1702
|
}
|
|
1701
|
-
async function
|
|
1703
|
+
async function ir() {
|
|
1702
1704
|
if (typeof window < "u" && window.innerWidth < 1024) {
|
|
1703
1705
|
P.value = !0, await m(), M.value?.focus();
|
|
1704
1706
|
return;
|
|
1705
1707
|
}
|
|
1706
|
-
se.value = !0, q.value = !0, await m(),
|
|
1708
|
+
se.value = !0, q.value = !0, await m(), k.value?.focus(), $();
|
|
1707
1709
|
}
|
|
1708
|
-
function
|
|
1710
|
+
function ar() {
|
|
1709
1711
|
window.setTimeout(() => {
|
|
1710
|
-
q.value = !1, J.value.searchIconOnly && !K.value.trim() && (se.value = !1,
|
|
1712
|
+
q.value = !1, J.value.searchIconOnly && !K.value.trim() && (se.value = !1, $());
|
|
1711
1713
|
}, 150);
|
|
1712
1714
|
}
|
|
1713
|
-
function
|
|
1715
|
+
function or() {
|
|
1714
1716
|
return Math.round(window.visualViewport?.width ?? window.innerWidth);
|
|
1715
1717
|
}
|
|
1716
|
-
async function
|
|
1718
|
+
async function sr() {
|
|
1717
1719
|
if (typeof window > "u" || !T.value) return;
|
|
1718
|
-
let e = ++pe, t =
|
|
1720
|
+
let e = ++pe, t = or();
|
|
1719
1721
|
ce.value = t < 1024;
|
|
1720
1722
|
let n = {
|
|
1721
1723
|
collapseActions: !1,
|
|
@@ -1746,32 +1748,32 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
1746
1748
|
}, await m(), e !== pe) return;
|
|
1747
1749
|
}
|
|
1748
1750
|
}
|
|
1749
|
-
function
|
|
1751
|
+
function $() {
|
|
1750
1752
|
typeof window > "u" || (de !== void 0 && window.cancelAnimationFrame(de), de = window.requestAnimationFrame(() => {
|
|
1751
|
-
de = void 0,
|
|
1753
|
+
de = void 0, sr();
|
|
1752
1754
|
}));
|
|
1753
1755
|
}
|
|
1754
1756
|
function cr(e) {
|
|
1755
1757
|
let t = e.target;
|
|
1756
1758
|
if (t instanceof Element && !t.closest(".top-nav-bar__mobile-menu")) {
|
|
1757
1759
|
if (!x.value?.contains(t)) {
|
|
1758
|
-
|
|
1760
|
+
rr();
|
|
1759
1761
|
return;
|
|
1760
1762
|
}
|
|
1761
|
-
t.closest("[data-top-nav-navigation]") || (F.value = !1, I.value = null, L.value = []), t.closest("[data-top-nav-breadcrumb]") || (R.value = null, z.value = []), t.closest("[data-top-nav-actions]") || (B.value = !1), t.closest("[data-top-nav-user]") || (V.value = !1), t.closest("[data-top-nav-favorites]") || (
|
|
1763
|
+
t.closest("[data-top-nav-navigation]") || (F.value = !1, I.value = null, L.value = []), t.closest("[data-top-nav-breadcrumb]") || (R.value = null, z.value = []), t.closest("[data-top-nav-actions]") || (B.value = !1), t.closest("[data-top-nav-user]") || (V.value = !1), t.closest("[data-top-nav-favorites]") || (U.value = !1), t.closest("[data-top-nav-search]") || (q.value = !1);
|
|
1762
1764
|
}
|
|
1763
1765
|
}
|
|
1764
1766
|
function lr(e) {
|
|
1765
1767
|
if ((e.ctrlKey || e.metaKey) && e.key.toLocaleLowerCase() === "k" && f.searchable) {
|
|
1766
|
-
e.preventDefault(),
|
|
1768
|
+
e.preventDefault(), ir();
|
|
1767
1769
|
return;
|
|
1768
1770
|
}
|
|
1769
1771
|
if (e.key === "Escape") {
|
|
1770
|
-
if (
|
|
1771
|
-
|
|
1772
|
+
if (H.value) {
|
|
1773
|
+
ie.value?.hide();
|
|
1772
1774
|
return;
|
|
1773
1775
|
}
|
|
1774
|
-
P.value &&= !1,
|
|
1776
|
+
P.value &&= !1, rr(), J.value.searchIconOnly && !K.value.trim() && (se.value = !1);
|
|
1775
1777
|
}
|
|
1776
1778
|
}
|
|
1777
1779
|
function ur() {
|
|
@@ -1779,18 +1781,18 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
1779
1781
|
p("user-click", f.user);
|
|
1780
1782
|
return;
|
|
1781
1783
|
}
|
|
1782
|
-
if (
|
|
1784
|
+
if (Z()) {
|
|
1783
1785
|
V.value = !0;
|
|
1784
1786
|
return;
|
|
1785
1787
|
}
|
|
1786
1788
|
V.value = !V.value;
|
|
1787
1789
|
}
|
|
1788
1790
|
function dr() {
|
|
1789
|
-
if (
|
|
1790
|
-
|
|
1791
|
+
if (Z()) {
|
|
1792
|
+
U.value = !0;
|
|
1791
1793
|
return;
|
|
1792
1794
|
}
|
|
1793
|
-
|
|
1795
|
+
U.value = !U.value;
|
|
1794
1796
|
}
|
|
1795
1797
|
return A(() => f.searchValue, (e) => {
|
|
1796
1798
|
e !== void 0 && e !== K.value && (K.value = e);
|
|
@@ -1800,18 +1802,18 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
1800
1802
|
Y,
|
|
1801
1803
|
() => f.user,
|
|
1802
1804
|
Me
|
|
1803
|
-
], () => m(
|
|
1804
|
-
document.addEventListener("keydown", lr), document.addEventListener("pointerdown", cr), window.addEventListener("resize",
|
|
1805
|
-
|
|
1805
|
+
], () => m($), { deep: !0 }), A(Ie, () => m(Ge), { deep: !0 }), y(() => {
|
|
1806
|
+
document.addEventListener("keydown", lr), document.addEventListener("pointerdown", cr), window.addEventListener("resize", $), window.visualViewport?.addEventListener("resize", $), window.addEventListener("resize", Ge), window.addEventListener("scroll", We, { passive: !0 }), typeof ResizeObserver < "u" && (le = new ResizeObserver($), T.value && le.observe(T.value), ue = new ResizeObserver(Ge), E.value && ue.observe(E.value)), $(), m(() => {
|
|
1807
|
+
Ge(), We(), Ke();
|
|
1806
1808
|
});
|
|
1807
1809
|
}), v(() => {
|
|
1808
|
-
document.removeEventListener("keydown", lr), document.removeEventListener("pointerdown", cr), window.removeEventListener("resize",
|
|
1810
|
+
document.removeEventListener("keydown", lr), document.removeEventListener("pointerdown", cr), window.removeEventListener("resize", $), window.visualViewport?.removeEventListener("resize", $), window.removeEventListener("resize", Ge), window.removeEventListener("scroll", We), le?.disconnect(), ue?.disconnect(), de !== void 0 && window.cancelAnimationFrame(de), fe !== void 0 && window.cancelAnimationFrame(fe);
|
|
1809
1811
|
}), u({
|
|
1810
|
-
close:
|
|
1812
|
+
close: rr,
|
|
1811
1813
|
closeDrawer: () => {
|
|
1812
1814
|
P.value = !1;
|
|
1813
1815
|
},
|
|
1814
|
-
focusSearch:
|
|
1816
|
+
focusSearch: ir,
|
|
1815
1817
|
openDrawer: () => {
|
|
1816
1818
|
P.value = !0;
|
|
1817
1819
|
}
|
|
@@ -1819,7 +1821,7 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
1819
1821
|
ref_key: "rootRef",
|
|
1820
1822
|
ref: x,
|
|
1821
1823
|
class: "top-nav-bar top-solutions-component",
|
|
1822
|
-
style: _(
|
|
1824
|
+
style: _(He.value),
|
|
1823
1825
|
"aria-label": "Navegação principal"
|
|
1824
1826
|
}, [
|
|
1825
1827
|
o("header", {
|
|
@@ -1827,7 +1829,7 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
1827
1829
|
ref: T,
|
|
1828
1830
|
class: h(["top-nav-bar__header", { "top-nav-bar__header--context-compact": J.value.hideContextDetails }])
|
|
1829
1831
|
}, [
|
|
1830
|
-
|
|
1832
|
+
ze.value ? (b(), a("button", {
|
|
1831
1833
|
key: 0,
|
|
1832
1834
|
class: "top-nav-bar__mobile-trigger top-nav-bar__square-button",
|
|
1833
1835
|
type: "button",
|
|
@@ -1837,10 +1839,10 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
1837
1839
|
}, [...u[19] ||= [o("i", {
|
|
1838
1840
|
class: "pi pi-bars",
|
|
1839
1841
|
"aria-hidden": "true"
|
|
1840
|
-
}, null, -1)]], 8,
|
|
1841
|
-
o("div",
|
|
1842
|
-
Fe.value ? (b(), a("div",
|
|
1843
|
-
Fe.value ? (b(), a("div",
|
|
1842
|
+
}, null, -1)]], 8, tt)) : i("", !0),
|
|
1843
|
+
o("div", nt, [w(n.$slots, "brand", { compact: J.value.hideContextDetails })]),
|
|
1844
|
+
Fe.value ? (b(), a("div", rt)) : i("", !0),
|
|
1845
|
+
Fe.value ? (b(), a("div", it, [J.value.hideContextDetails && n.$slots["context-compact"] ? w(n.$slots, "context-compact", {
|
|
1844
1846
|
client: s.client,
|
|
1845
1847
|
compact: !0
|
|
1846
1848
|
}, void 0, void 0, 0) : n.$slots.context ? w(n.$slots, "context", {
|
|
@@ -1852,24 +1854,24 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
1852
1854
|
}, void 0, void 0, 2) : w(n.$slots, "client", {
|
|
1853
1855
|
client: s.client,
|
|
1854
1856
|
compact: J.value.hideContextDetails
|
|
1855
|
-
}, () => [s.client ? (b(), a("div",
|
|
1857
|
+
}, () => [s.client ? (b(), a("div", at, [s.client.logoUrl ? (b(), a("img", {
|
|
1856
1858
|
key: 0,
|
|
1857
1859
|
src: s.client.logoUrl,
|
|
1858
1860
|
alt: "",
|
|
1859
1861
|
class: "top-nav-bar__client-logo"
|
|
1860
|
-
}, null, 8,
|
|
1862
|
+
}, null, 8, ot)) : (b(), a("span", st, D(Ue.value), 1)), J.value.hideContextDetails ? i("", !0) : (b(), a("span", ct, [o("span", lt, D(s.client.name), 1), s.client.subtitle ? (b(), a("span", ut, D(s.client.subtitle), 1)) : i("", !0)]))])) : i("", !0)], void 0, 3)])) : i("", !0),
|
|
1861
1863
|
u[24] ||= o("div", {
|
|
1862
1864
|
class: "top-nav-bar__spacer",
|
|
1863
1865
|
"aria-hidden": "true"
|
|
1864
1866
|
}, null, -1),
|
|
1865
|
-
o("div",
|
|
1866
|
-
s.searchable ? (b(), a("div",
|
|
1867
|
+
o("div", dt, [
|
|
1868
|
+
s.searchable ? (b(), a("div", ft, [J.value.searchIconOnly && !se.value ? (b(), a("button", {
|
|
1867
1869
|
key: 0,
|
|
1868
1870
|
class: "top-nav-bar__square-button",
|
|
1869
1871
|
type: "button",
|
|
1870
1872
|
"aria-label": "Pesquisar no menu",
|
|
1871
1873
|
title: "Pesquisar no menu (Ctrl+K)",
|
|
1872
|
-
onClick:
|
|
1874
|
+
onClick: ir
|
|
1873
1875
|
}, [...u[20] ||= [o("i", {
|
|
1874
1876
|
class: "pi pi-search",
|
|
1875
1877
|
"aria-hidden": "true"
|
|
@@ -1883,30 +1885,30 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
1883
1885
|
}, null, -1),
|
|
1884
1886
|
o("input", {
|
|
1885
1887
|
ref_key: "searchInputRef",
|
|
1886
|
-
ref:
|
|
1888
|
+
ref: k,
|
|
1887
1889
|
value: K.value,
|
|
1888
1890
|
type: "text",
|
|
1889
1891
|
role: "searchbox",
|
|
1890
1892
|
placeholder: s.searchPlaceholder,
|
|
1891
1893
|
"aria-label": "Pesquisar no menu",
|
|
1892
1894
|
onFocus: u[1] ||= (e) => q.value = !0,
|
|
1893
|
-
onBlur:
|
|
1894
|
-
onInput: u[2] ||= (e) =>
|
|
1895
|
-
}, null, 40,
|
|
1895
|
+
onBlur: ar,
|
|
1896
|
+
onInput: u[2] ||= (e) => Xe(e.target.value)
|
|
1897
|
+
}, null, 40, pt),
|
|
1896
1898
|
K.value || J.value.searchIconOnly && se.value ? (b(), a("button", {
|
|
1897
1899
|
key: 0,
|
|
1898
1900
|
class: "top-nav-bar__search-clear",
|
|
1899
1901
|
type: "button",
|
|
1900
1902
|
"aria-label": K.value ? "Limpar pesquisa" : "Fechar pesquisa",
|
|
1901
1903
|
onMousedown: u[3] ||= N(() => {}, ["prevent"]),
|
|
1902
|
-
onClick: u[4] ||= (e) => K.value ?
|
|
1904
|
+
onClick: u[4] ||= (e) => K.value ? Ze() : se.value = !1
|
|
1903
1905
|
}, [...u[21] ||= [o("i", {
|
|
1904
1906
|
class: "pi pi-times",
|
|
1905
1907
|
"aria-hidden": "true"
|
|
1906
|
-
}, null, -1)]], 40,
|
|
1907
|
-
q.value ? (b(), a("div",
|
|
1908
|
+
}, null, -1)]], 40, mt)) : i("", !0),
|
|
1909
|
+
q.value ? (b(), a("div", ht, [o("div", gt, [w(n.$slots, "search-results", {
|
|
1908
1910
|
items: ve.value,
|
|
1909
|
-
select:
|
|
1911
|
+
select: Q
|
|
1910
1912
|
}, () => [(b(!0), a(e, null, C(ve.value, (e) => (b(), a("button", {
|
|
1911
1913
|
key: e.id,
|
|
1912
1914
|
class: "top-nav-bar__menu-item",
|
|
@@ -1914,14 +1916,14 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
1914
1916
|
role: "menuitem",
|
|
1915
1917
|
disabled: e.disabled,
|
|
1916
1918
|
onMousedown: u[5] ||= N(() => {}, ["prevent"]),
|
|
1917
|
-
onClick: (t) =>
|
|
1919
|
+
onClick: (t) => Q(e)
|
|
1918
1920
|
}, [e.icon ? (b(), a("i", {
|
|
1919
1921
|
key: 0,
|
|
1920
1922
|
class: h(e.icon),
|
|
1921
1923
|
"aria-hidden": "true"
|
|
1922
|
-
}, null, 2)) : i("", !0), o("span", null, D(e.label), 1)], 40,
|
|
1924
|
+
}, null, 2)) : i("", !0), o("span", null, D(e.label), 1)], 40, _t))), 128)), ve.value.length ? i("", !0) : (b(), a("span", vt, "Nenhum item encontrado."))])])])) : i("", !0)
|
|
1923
1925
|
], 2))])) : i("", !0),
|
|
1924
|
-
Me.value.length ? (b(), a("div",
|
|
1926
|
+
Me.value.length ? (b(), a("div", yt, [J.value.collapseActions ? (b(), a(e, { key: 1 }, [o("button", {
|
|
1925
1927
|
class: "top-nav-bar__square-button",
|
|
1926
1928
|
type: "button",
|
|
1927
1929
|
"aria-label": "Mais ações",
|
|
@@ -1930,17 +1932,17 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
1930
1932
|
}, [...u[23] ||= [o("i", {
|
|
1931
1933
|
class: "pi pi-ellipsis-h",
|
|
1932
1934
|
"aria-hidden": "true"
|
|
1933
|
-
}, null, -1)]], 8,
|
|
1935
|
+
}, null, -1)]], 8, xt), B.value ? (b(), a("div", St, [o("div", Ct, [(b(!0), a(e, null, C(Me.value, (e) => (b(), a("button", {
|
|
1934
1936
|
key: e.id,
|
|
1935
1937
|
class: "top-nav-bar__menu-item",
|
|
1936
1938
|
type: "button",
|
|
1937
1939
|
role: "menuitem",
|
|
1938
1940
|
disabled: e.disabled,
|
|
1939
|
-
onClick: (t) =>
|
|
1941
|
+
onClick: (t) => qe(e)
|
|
1940
1942
|
}, [o("i", {
|
|
1941
1943
|
class: h(e.icon),
|
|
1942
1944
|
"aria-hidden": "true"
|
|
1943
|
-
}, null, 2), o("span", null, D(e.label), 1)], 8,
|
|
1945
|
+
}, null, 2), o("span", null, D(e.label), 1)], 8, wt))), 128))])])) : i("", !0)], 64)) : (b(!0), a(e, { key: 0 }, C(Me.value, (e) => (b(), a("button", {
|
|
1944
1946
|
key: e.id,
|
|
1945
1947
|
class: h(["top-nav-bar__square-button", { "top-nav-bar__square-button--active": e.kind === "aia" && s.aiaActive }]),
|
|
1946
1948
|
type: "button",
|
|
@@ -1948,7 +1950,7 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
1948
1950
|
"aria-label": e.label,
|
|
1949
1951
|
"aria-pressed": e.kind === "aia" ? s.aiaActive : void 0,
|
|
1950
1952
|
title: e.label,
|
|
1951
|
-
onClick: (t) =>
|
|
1953
|
+
onClick: (t) => qe(e)
|
|
1952
1954
|
}, [e.kind === "aia" ? w(n.$slots, "aia-icon", {}, () => [o("i", {
|
|
1953
1955
|
class: h(e.icon),
|
|
1954
1956
|
"aria-hidden": "true"
|
|
@@ -1959,17 +1961,17 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
1959
1961
|
key: 2,
|
|
1960
1962
|
class: h(e.icon),
|
|
1961
1963
|
"aria-hidden": "true"
|
|
1962
|
-
}, null, 2))], 10,
|
|
1963
|
-
n.$slots.actions ? (b(), a("div",
|
|
1964
|
+
}, null, 2))], 10, bt))), 128))])) : i("", !0),
|
|
1965
|
+
n.$slots.actions ? (b(), a("div", Tt, [w(n.$slots, "actions", {
|
|
1964
1966
|
compact: J.value.collapseActions,
|
|
1965
|
-
close:
|
|
1967
|
+
close: rr
|
|
1966
1968
|
})])) : i("", !0),
|
|
1967
1969
|
Pe.value ? (b(), a("div", {
|
|
1968
1970
|
key: 3,
|
|
1969
1971
|
class: "top-nav-bar__user-menu",
|
|
1970
1972
|
"data-top-nav-user": "",
|
|
1971
|
-
onMouseenter: u[7] ||= (e) => X.value &&
|
|
1972
|
-
onMouseleave: u[8] ||= (e) =>
|
|
1973
|
+
onMouseenter: u[7] ||= (e) => X.value && Z() && (V.value = !0),
|
|
1974
|
+
onMouseleave: u[8] ||= (e) => Z() && (V.value = !1)
|
|
1973
1975
|
}, [o("button", {
|
|
1974
1976
|
class: "top-nav-bar__user-trigger",
|
|
1975
1977
|
type: "button",
|
|
@@ -1984,42 +1986,42 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
1984
1986
|
src: s.user.avatarUrl,
|
|
1985
1987
|
alt: "",
|
|
1986
1988
|
class: "top-nav-bar__user-avatar"
|
|
1987
|
-
}, null, 8,
|
|
1989
|
+
}, null, 8, Dt)) : (b(), a("span", Ot, D(Be.value), 1)), s.user && !J.value.hideUserName ? (b(), a("span", kt, [o("span", At, D(s.user.name), 1), s.user.subtitle ? (b(), a("span", jt, D(s.user.subtitle), 1)) : i("", !0)])) : i("", !0)]), X.value ? (b(), a("i", Mt)) : i("", !0)], 8, Et), X.value && V.value ? (b(), a("div", Nt, [o("div", Pt, [w(n.$slots, "user-menu", {
|
|
1988
1990
|
items: Ne.value,
|
|
1989
|
-
select:
|
|
1990
|
-
}, () => [(b(!0), a(e, null, C(Ne.value, (t) => (b(), a(e, { key: t.id }, [t.separator ? (b(), a("div",
|
|
1991
|
+
select: Je
|
|
1992
|
+
}, () => [(b(!0), a(e, null, C(Ne.value, (t) => (b(), a(e, { key: t.id }, [t.separator ? (b(), a("div", Ft)) : (b(), a("button", {
|
|
1991
1993
|
key: 1,
|
|
1992
1994
|
class: "top-nav-bar__menu-item",
|
|
1993
1995
|
type: "button",
|
|
1994
1996
|
role: "menuitem",
|
|
1995
1997
|
disabled: t.disabled,
|
|
1996
|
-
onClick: (e) =>
|
|
1998
|
+
onClick: (e) => Je(t)
|
|
1997
1999
|
}, [t.icon ? (b(), a("i", {
|
|
1998
2000
|
key: 0,
|
|
1999
2001
|
class: h(t.icon),
|
|
2000
2002
|
"aria-hidden": "true"
|
|
2001
|
-
}, null, 2)) : i("", !0), o("span", null, D(t.label), 1)], 8,
|
|
2003
|
+
}, null, 2)) : i("", !0), o("span", null, D(t.label), 1)], 8, It))], 64))), 128))])])])) : i("", !0)], 32)) : i("", !0)
|
|
2002
2004
|
])
|
|
2003
2005
|
], 2),
|
|
2004
|
-
o("div",
|
|
2006
|
+
o("div", Lt, [
|
|
2005
2007
|
o("button", {
|
|
2006
2008
|
class: "top-nav-bar__crumb",
|
|
2007
2009
|
type: "button",
|
|
2008
|
-
onClick: u[9] ||= (e) =>
|
|
2010
|
+
onClick: u[9] ||= (e) => Q(s.homeItem)
|
|
2009
2011
|
}, [l(O(De), { icon: O(Se) }, null, 8, ["icon"]), o("span", null, D(s.homeItem.label), 1)]),
|
|
2010
|
-
Y.value.length ? (b(), a("span",
|
|
2012
|
+
Y.value.length ? (b(), a("span", Rt, "/")) : i("", !0),
|
|
2011
2013
|
Y.value.length ? (b(), a("div", {
|
|
2012
2014
|
key: 1,
|
|
2013
2015
|
class: "top-nav-bar__dropdown top-nav-bar__desktop-navigation",
|
|
2014
2016
|
"data-top-nav-navigation": "",
|
|
2015
|
-
onMouseenter:
|
|
2016
|
-
onMouseleave:
|
|
2017
|
+
onMouseenter: Qe,
|
|
2018
|
+
onMouseleave: $e
|
|
2017
2019
|
}, [o("button", {
|
|
2018
2020
|
class: "top-nav-bar__crumb",
|
|
2019
2021
|
type: "button",
|
|
2020
2022
|
"aria-haspopup": "menu",
|
|
2021
2023
|
"aria-expanded": F.value,
|
|
2022
|
-
onClick:
|
|
2024
|
+
onClick: Jn
|
|
2023
2025
|
}, [
|
|
2024
2026
|
u[25] ||= o("i", {
|
|
2025
2027
|
class: "pi pi-bars",
|
|
@@ -2030,28 +2032,28 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
2030
2032
|
class: "pi pi-chevron-down top-nav-bar__chevron",
|
|
2031
2033
|
"aria-hidden": "true"
|
|
2032
2034
|
}, null, -1)
|
|
2033
|
-
], 8,
|
|
2035
|
+
], 8, zt), F.value ? (b(), a("div", Bt, [o("div", Vt, [o("div", Ht, [(b(!0), a(e, null, C(Y.value, (e) => (b(), a("button", {
|
|
2034
2036
|
key: e.id,
|
|
2035
2037
|
class: h(["top-nav-bar__menu-item", { "top-nav-bar__menu-item--explored": I.value === e.id }]),
|
|
2036
2038
|
type: "button",
|
|
2037
2039
|
role: "menuitem",
|
|
2038
2040
|
"aria-haspopup": "menu",
|
|
2039
2041
|
"aria-expanded": I.value === e.id,
|
|
2040
|
-
onMouseenter: (t) =>
|
|
2041
|
-
onClick: (t) =>
|
|
2042
|
+
onMouseenter: (t) => Yn(e.id),
|
|
2043
|
+
onClick: (t) => Xn(e.id)
|
|
2042
2044
|
}, [
|
|
2043
2045
|
e.icon ? (b(), a("i", {
|
|
2044
2046
|
key: 0,
|
|
2045
2047
|
class: h(e.icon),
|
|
2046
2048
|
"aria-hidden": "true"
|
|
2047
2049
|
}, null, 2)) : i("", !0),
|
|
2048
|
-
o("span",
|
|
2049
|
-
o("span",
|
|
2050
|
+
o("span", Wt, D(e.label), 1),
|
|
2051
|
+
o("span", Gt, D(e.children.length), 1),
|
|
2050
2052
|
u[27] ||= o("i", {
|
|
2051
2053
|
class: "pi pi-chevron-right top-nav-bar__menu-arrow",
|
|
2052
2054
|
"aria-hidden": "true"
|
|
2053
2055
|
}, null, -1)
|
|
2054
|
-
], 42,
|
|
2056
|
+
], 42, Ut))), 128))]), Oe.value ? (b(), a("div", Kt, [(b(!0), a(e, null, C(Ae.value, (t, n) => (b(), a("div", {
|
|
2055
2057
|
key: `navigation-level-${n}`,
|
|
2056
2058
|
class: h(["top-nav-bar__cascade-level", { "top-nav-bar__section-items": n === 0 }]),
|
|
2057
2059
|
role: "menu"
|
|
@@ -2066,17 +2068,17 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
2066
2068
|
disabled: e.disabled,
|
|
2067
2069
|
"aria-haspopup": e.children?.length ? "menu" : void 0,
|
|
2068
2070
|
"aria-expanded": e.children?.length ? L.value[n] === e.id : void 0,
|
|
2069
|
-
onMouseenter: (t) =>
|
|
2070
|
-
onClick: (t) =>
|
|
2071
|
+
onMouseenter: (t) => Qn(e, n, !0),
|
|
2072
|
+
onClick: (t) => Qn(e, n, !1)
|
|
2071
2073
|
}, [
|
|
2072
2074
|
e.icon ? (b(), a("i", {
|
|
2073
2075
|
key: 0,
|
|
2074
2076
|
class: h(e.icon),
|
|
2075
2077
|
"aria-hidden": "true"
|
|
2076
2078
|
}, null, 2)) : i("", !0),
|
|
2077
|
-
o("span",
|
|
2078
|
-
e.children?.length ? (b(), a("i",
|
|
2079
|
-
], 42,
|
|
2079
|
+
o("span", Jt, D(e.label), 1),
|
|
2080
|
+
e.children?.length ? (b(), a("i", Yt)) : i("", !0)
|
|
2081
|
+
], 42, qt))), 128))]))), 128))], 2))), 128))])) : i("", !0)])])) : i("", !0)], 32)) : i("", !0),
|
|
2080
2082
|
(b(!0), a(e, null, C(Te.value, (t, n) => (b(), a(e, { key: t.id }, [o("span", {
|
|
2081
2083
|
class: h(["top-nav-bar__separator", { "top-nav-bar__separator--current": !t.to && n === Te.value.length - 1 }]),
|
|
2082
2084
|
"aria-hidden": "true"
|
|
@@ -2084,19 +2086,19 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
2084
2086
|
key: 0,
|
|
2085
2087
|
class: "top-nav-bar__dropdown top-nav-bar__breadcrumb-dropdown",
|
|
2086
2088
|
"data-top-nav-breadcrumb": "",
|
|
2087
|
-
onMouseenter: (e) => !ce.value &&
|
|
2088
|
-
onMouseleave: u[10] ||= (e) => !ce.value &&
|
|
2089
|
-
}, [ce.value ? (b(), a("span",
|
|
2089
|
+
onMouseenter: (e) => !ce.value && er(t.id),
|
|
2090
|
+
onMouseleave: u[10] ||= (e) => !ce.value && tr()
|
|
2091
|
+
}, [ce.value ? (b(), a("span", Zt, D(t.label), 1)) : (b(), a("button", {
|
|
2090
2092
|
key: 1,
|
|
2091
2093
|
class: "top-nav-bar__crumb",
|
|
2092
2094
|
type: "button",
|
|
2093
2095
|
"aria-haspopup": "menu",
|
|
2094
2096
|
"aria-expanded": R.value === t.id,
|
|
2095
|
-
onClick: (e) =>
|
|
2097
|
+
onClick: (e) => nr(t.id)
|
|
2096
2098
|
}, [o("span", null, D(t.label), 1), u[28] ||= o("i", {
|
|
2097
2099
|
class: "pi pi-chevron-down top-nav-bar__chevron",
|
|
2098
2100
|
"aria-hidden": "true"
|
|
2099
|
-
}, null, -1)], 8,
|
|
2101
|
+
}, null, -1)], 8, Qt)), !ce.value && R.value === t.id ? (b(), a("div", $t, [o("div", en, [(b(!0), a(e, null, C(ke(Ee(t)?.children ?? [], z.value), (n, r) => (b(), a("div", {
|
|
2100
2102
|
key: `breadcrumb-${t.id}-${r}`,
|
|
2101
2103
|
class: h(["top-nav-bar__cascade-level", { "top-nav-bar__breadcrumb-main-items": r === 0 }])
|
|
2102
2104
|
}, [(b(!0), a(e, null, C(je(n), (n, s) => (b(), a("div", {
|
|
@@ -2108,26 +2110,26 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
2108
2110
|
type: "button",
|
|
2109
2111
|
role: "menuitem",
|
|
2110
2112
|
disabled: e.disabled,
|
|
2111
|
-
onMouseenter: (t) =>
|
|
2112
|
-
onClick: (t) =>
|
|
2113
|
+
onMouseenter: (t) => $n(e, r, !0),
|
|
2114
|
+
onClick: (t) => $n(e, r, !1)
|
|
2113
2115
|
}, [
|
|
2114
2116
|
e.icon ? (b(), a("i", {
|
|
2115
2117
|
key: 0,
|
|
2116
2118
|
class: h(e.icon),
|
|
2117
2119
|
"aria-hidden": "true"
|
|
2118
2120
|
}, null, 2)) : i("", !0),
|
|
2119
|
-
o("span",
|
|
2120
|
-
e.children?.length ? (b(), a("i",
|
|
2121
|
-
], 42,
|
|
2121
|
+
o("span", nn, D(e.label), 1),
|
|
2122
|
+
e.children?.length ? (b(), a("i", rn)) : i("", !0)
|
|
2123
|
+
], 42, tn))), 128))]))), 128))], 2))), 128))])])) : i("", !0)], 40, Xt)) : t.to ? (b(), a("button", {
|
|
2122
2124
|
key: 1,
|
|
2123
2125
|
class: "top-nav-bar__crumb",
|
|
2124
2126
|
type: "button",
|
|
2125
|
-
onClick: (e) =>
|
|
2126
|
-
}, D(t.label), 9,
|
|
2127
|
+
onClick: (e) => Q(t)
|
|
2128
|
+
}, D(t.label), 9, an)) : (b(), a("span", {
|
|
2127
2129
|
key: 2,
|
|
2128
2130
|
class: "top-nav-bar__current",
|
|
2129
2131
|
title: t.label
|
|
2130
|
-
}, [o("span",
|
|
2132
|
+
}, [o("span", sn, D(t.label), 1), s.showFavoriteToggle ? (b(), a("button", {
|
|
2131
2133
|
key: 0,
|
|
2132
2134
|
class: "top-nav-bar__favorite-toggle",
|
|
2133
2135
|
type: "button",
|
|
@@ -2137,22 +2139,22 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
2137
2139
|
}, [o("i", {
|
|
2138
2140
|
class: h(s.favoriteActive ? "pi pi-star-fill" : "pi pi-star"),
|
|
2139
2141
|
"aria-hidden": "true"
|
|
2140
|
-
}, null, 2)], 8,
|
|
2141
|
-
o("div",
|
|
2142
|
+
}, null, 2)], 8, cn)) : i("", !0)], 8, on))], 64))), 128)),
|
|
2143
|
+
o("div", ln, [l(t, {
|
|
2142
2144
|
name: "top-nav-bar-favorites-trigger",
|
|
2143
2145
|
css: oe.value
|
|
2144
2146
|
}, {
|
|
2145
|
-
default: j(() => [
|
|
2147
|
+
default: j(() => [Le.value && Ie.value.length ? (b(), a("div", {
|
|
2146
2148
|
key: 0,
|
|
2147
2149
|
class: "top-nav-bar__favorites-menu top-nav-bar__desktop-only",
|
|
2148
2150
|
"data-top-nav-favorites": "",
|
|
2149
|
-
onMouseenter: u[12] ||= (e) =>
|
|
2150
|
-
onMouseleave: u[13] ||= (e) =>
|
|
2151
|
+
onMouseenter: u[12] ||= (e) => Z() && (U.value = !0),
|
|
2152
|
+
onMouseleave: u[13] ||= (e) => Z() && (U.value = !1)
|
|
2151
2153
|
}, [o("button", {
|
|
2152
2154
|
class: "top-nav-bar__crumb",
|
|
2153
2155
|
type: "button",
|
|
2154
2156
|
"aria-haspopup": "menu",
|
|
2155
|
-
"aria-expanded":
|
|
2157
|
+
"aria-expanded": U.value,
|
|
2156
2158
|
onClick: dr
|
|
2157
2159
|
}, [
|
|
2158
2160
|
u[29] ||= o("i", {
|
|
@@ -2164,18 +2166,18 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
2164
2166
|
class: "pi pi-chevron-down top-nav-bar__chevron",
|
|
2165
2167
|
"aria-hidden": "true"
|
|
2166
2168
|
}, null, -1)
|
|
2167
|
-
], 8,
|
|
2169
|
+
], 8, un), U.value ? (b(), a("div", dn, [o("div", fn, [(b(!0), a(e, null, C(Ie.value, (e) => (b(), a("button", {
|
|
2168
2170
|
key: e.id,
|
|
2169
2171
|
class: "top-nav-bar__menu-item",
|
|
2170
2172
|
type: "button",
|
|
2171
2173
|
role: "menuitem",
|
|
2172
2174
|
disabled: e.disabled,
|
|
2173
|
-
onClick: (t) =>
|
|
2175
|
+
onClick: (t) => Q(e)
|
|
2174
2176
|
}, [e.icon ? (b(), a("i", {
|
|
2175
2177
|
key: 0,
|
|
2176
2178
|
class: h(e.icon),
|
|
2177
2179
|
"aria-hidden": "true"
|
|
2178
|
-
}, null, 2)) : i("", !0), o("span", null, D(e.label), 1)], 8,
|
|
2180
|
+
}, null, 2)) : i("", !0), o("span", null, D(e.label), 1)], 8, pn))), 128))])])) : i("", !0)], 32)) : i("", !0)]),
|
|
2179
2181
|
_: 1
|
|
2180
2182
|
}, 8, ["css"]), w(n.$slots, "breadcrumb-actions")])
|
|
2181
2183
|
]),
|
|
@@ -2186,15 +2188,15 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
2186
2188
|
"aria-hidden": "true"
|
|
2187
2189
|
}, [o("div", {
|
|
2188
2190
|
ref_key: "favoritesMeasureContentRef",
|
|
2189
|
-
ref:
|
|
2191
|
+
ref: ee,
|
|
2190
2192
|
class: "top-nav-bar__favorites-measure-content"
|
|
2191
|
-
}, [o("span",
|
|
2193
|
+
}, [o("span", mn, [u[31] ||= o("i", {
|
|
2192
2194
|
class: "pi pi-star-fill top-nav-bar__favorites-icon",
|
|
2193
2195
|
"aria-hidden": "true"
|
|
2194
|
-
}, null, -1), o("span", null, D(s.favoriteLabel), 1)]), (b(!0), a(e, null, C(
|
|
2196
|
+
}, null, -1), o("span", null, D(s.favoriteLabel), 1)]), (b(!0), a(e, null, C(Ie.value, (e, t) => (b(), a("span", {
|
|
2195
2197
|
key: `measure-${e.id}`,
|
|
2196
2198
|
class: "top-nav-bar__favorites-measure-item"
|
|
2197
|
-
}, [t > 0 ? (b(), a("span",
|
|
2199
|
+
}, [t > 0 ? (b(), a("span", hn, "|")) : i("", !0), o("span", null, [e.icon ? (b(), a("i", {
|
|
2198
2200
|
key: 0,
|
|
2199
2201
|
class: h(e.icon),
|
|
2200
2202
|
"aria-hidden": "true"
|
|
@@ -2203,30 +2205,30 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
2203
2205
|
name: "top-nav-bar-favorites-row",
|
|
2204
2206
|
css: oe.value
|
|
2205
2207
|
}, {
|
|
2206
|
-
default: j(() => [
|
|
2208
|
+
default: j(() => [Re.value ? (b(), a("div", gn, [o("span", _n, [u[32] ||= o("i", {
|
|
2207
2209
|
class: "pi pi-star-fill top-nav-bar__favorites-icon",
|
|
2208
2210
|
"aria-hidden": "true"
|
|
2209
|
-
}, null, -1), o("span", null, D(s.favoriteLabel), 1)]), o("div",
|
|
2211
|
+
}, null, -1), o("span", null, D(s.favoriteLabel), 1)]), o("div", vn, [(b(!0), a(e, null, C(Ie.value, (t, n) => (b(), a(e, { key: `row-${t.id}` }, [n > 0 ? (b(), a("span", yn, "|")) : i("", !0), o("button", {
|
|
2210
2212
|
class: "top-nav-bar__favorites-row-item",
|
|
2211
2213
|
type: "button",
|
|
2212
2214
|
disabled: t.disabled,
|
|
2213
|
-
onClick: (e) =>
|
|
2215
|
+
onClick: (e) => Q(t)
|
|
2214
2216
|
}, [t.icon ? (b(), a("i", {
|
|
2215
2217
|
key: 0,
|
|
2216
2218
|
class: h(t.icon),
|
|
2217
2219
|
"aria-hidden": "true"
|
|
2218
|
-
}, null, 2)) : i("", !0), o("span", null, D(t.label), 1)], 8,
|
|
2220
|
+
}, null, 2)) : i("", !0), o("span", null, D(t.label), 1)], 8, bn)], 64))), 128))])])) : i("", !0)]),
|
|
2219
2221
|
_: 1
|
|
2220
2222
|
}, 8, ["css"]),
|
|
2221
|
-
l(O(
|
|
2223
|
+
l(O(ne), {
|
|
2222
2224
|
visible: P.value,
|
|
2223
2225
|
"onUpdate:visible": u[16] ||= (e) => P.value = e,
|
|
2224
2226
|
position: "left",
|
|
2225
2227
|
class: "top-nav-bar__mobile-drawer",
|
|
2226
|
-
style: _([
|
|
2228
|
+
style: _([He.value, { width: "var(--top-nav-drawer-width, min(22rem, calc(100vw - 1.5rem)))" }])
|
|
2227
2229
|
}, {
|
|
2228
|
-
container: j(({ closeCallback: d }) => [o("div",
|
|
2229
|
-
o("header",
|
|
2230
|
+
container: j(({ closeCallback: d }) => [o("div", xn, [
|
|
2231
|
+
o("header", Sn, [w(n.$slots, "drawer-header", { close: d }, () => [o("div", Cn, [w(n.$slots, "drawer-brand", {}, () => [w(n.$slots, "brand", { compact: !1 })])]), o("button", {
|
|
2230
2232
|
class: "top-nav-bar__drawer-close top-nav-bar__square-button",
|
|
2231
2233
|
type: "button",
|
|
2232
2234
|
"aria-label": "Fechar navegação",
|
|
@@ -2234,12 +2236,12 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
2234
2236
|
}, [...u[33] ||= [o("i", {
|
|
2235
2237
|
class: "pi pi-times",
|
|
2236
2238
|
"aria-hidden": "true"
|
|
2237
|
-
}, null, -1)]], 8,
|
|
2238
|
-
s.searchable || Me.value.length || n.$slots["drawer-actions"] ? (b(), a("div",
|
|
2239
|
+
}, null, -1)]], 8, wn)])]),
|
|
2240
|
+
s.searchable || Me.value.length || n.$slots["drawer-actions"] ? (b(), a("div", Tn, [s.searchable ? w(n.$slots, "drawer-search", {
|
|
2239
2241
|
query: K.value,
|
|
2240
|
-
update:
|
|
2241
|
-
clear:
|
|
2242
|
-
}, () => [o("div",
|
|
2242
|
+
update: Xe,
|
|
2243
|
+
clear: Ze
|
|
2244
|
+
}, () => [o("div", En, [
|
|
2243
2245
|
u[35] ||= o("i", {
|
|
2244
2246
|
class: "pi pi-search",
|
|
2245
2247
|
"aria-hidden": "true"
|
|
@@ -2252,143 +2254,143 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
2252
2254
|
role: "searchbox",
|
|
2253
2255
|
placeholder: s.searchPlaceholder,
|
|
2254
2256
|
"aria-label": "Pesquisar no menu",
|
|
2255
|
-
onInput: u[14] ||= (e) =>
|
|
2256
|
-
}, null, 40,
|
|
2257
|
+
onInput: u[14] ||= (e) => Xe(e.target.value)
|
|
2258
|
+
}, null, 40, Dn),
|
|
2257
2259
|
K.value ? (b(), a("button", {
|
|
2258
2260
|
key: 0,
|
|
2259
2261
|
class: "top-nav-bar__search-clear",
|
|
2260
2262
|
type: "button",
|
|
2261
2263
|
"aria-label": "Limpar pesquisa",
|
|
2262
|
-
onClick:
|
|
2264
|
+
onClick: Ze
|
|
2263
2265
|
}, [...u[34] ||= [o("i", {
|
|
2264
2266
|
class: "pi pi-times",
|
|
2265
2267
|
"aria-hidden": "true"
|
|
2266
2268
|
}, null, -1)]])) : i("", !0)
|
|
2267
2269
|
])], void 0, 0) : i("", !0), w(n.$slots, "drawer-actions", {
|
|
2268
2270
|
actions: Me.value,
|
|
2269
|
-
select: (e) =>
|
|
2271
|
+
select: (e) => qe(e, !0),
|
|
2270
2272
|
close: d
|
|
2271
2273
|
}, () => [(b(!0), a(e, null, C(Me.value, (e) => (b(), a("button", {
|
|
2272
2274
|
key: `drawer-${e.id}`,
|
|
2273
2275
|
class: h(["top-nav-bar__drawer-action", { "top-nav-bar__drawer-action--active": e.kind === "aia" && s.aiaActive }]),
|
|
2274
2276
|
type: "button",
|
|
2275
2277
|
disabled: e.disabled,
|
|
2276
|
-
onClick: (t) =>
|
|
2278
|
+
onClick: (t) => qe(e, !0)
|
|
2277
2279
|
}, [o("i", {
|
|
2278
2280
|
class: h(e.icon),
|
|
2279
2281
|
"aria-hidden": "true"
|
|
2280
|
-
}, null, 2), o("span", null, D(e.label), 1)], 10,
|
|
2281
|
-
o("div",
|
|
2282
|
+
}, null, 2), o("span", null, D(e.label), 1)], 10, On))), 128))])])) : i("", !0),
|
|
2283
|
+
o("div", kn, [
|
|
2282
2284
|
w(n.$slots, "drawer-before-menu", { close: d }),
|
|
2283
|
-
o("div",
|
|
2285
|
+
o("div", An, [Ie.value.length ? (b(), a("section", jn, [o("button", {
|
|
2284
2286
|
class: "top-nav-bar__mobile-item",
|
|
2285
2287
|
type: "button",
|
|
2286
|
-
"aria-expanded":
|
|
2287
|
-
onClick: u[15] ||= (e) =>
|
|
2288
|
+
"aria-expanded": W.value,
|
|
2289
|
+
onClick: u[15] ||= (e) => W.value = !W.value
|
|
2288
2290
|
}, [
|
|
2289
2291
|
u[36] ||= o("i", {
|
|
2290
2292
|
class: "pi pi-star-fill top-nav-bar__accent",
|
|
2291
2293
|
"aria-hidden": "true"
|
|
2292
2294
|
}, null, -1),
|
|
2293
|
-
o("span",
|
|
2294
|
-
o("span",
|
|
2295
|
+
o("span", Nn, D(s.favoriteLabel), 1),
|
|
2296
|
+
o("span", Pn, D(Ie.value.length), 1),
|
|
2295
2297
|
o("i", {
|
|
2296
|
-
class: h(["pi pi-chevron-down top-nav-bar__mobile-chevron", { "top-nav-bar__mobile-chevron--open":
|
|
2298
|
+
class: h(["pi pi-chevron-down top-nav-bar__mobile-chevron", { "top-nav-bar__mobile-chevron--open": W.value }]),
|
|
2297
2299
|
"aria-hidden": "true"
|
|
2298
2300
|
}, null, 2)
|
|
2299
|
-
], 8,
|
|
2300
|
-
default: j(() => [
|
|
2301
|
+
], 8, Mn), l(t, { name: "top-nav-bar-menu-expand" }, {
|
|
2302
|
+
default: j(() => [W.value ? (b(), r(et, {
|
|
2301
2303
|
key: 0,
|
|
2302
|
-
items:
|
|
2304
|
+
items: Ie.value,
|
|
2303
2305
|
"active-item-id": s.activeItemId,
|
|
2304
2306
|
level: 1,
|
|
2305
|
-
onSelect:
|
|
2307
|
+
onSelect: Q
|
|
2306
2308
|
}, null, 8, ["items", "active-item-id"])) : i("", !0)]),
|
|
2307
2309
|
_: 1
|
|
2308
2310
|
})])) : i("", !0), w(n.$slots, "drawer-menu", {
|
|
2309
2311
|
sections: be.value,
|
|
2310
|
-
select:
|
|
2312
|
+
select: Q,
|
|
2311
2313
|
close: d
|
|
2312
|
-
}, () => [be.value.length ? (b(), r(
|
|
2314
|
+
}, () => [be.value.length ? (b(), r(et, {
|
|
2313
2315
|
key: 0,
|
|
2314
2316
|
items: be.value,
|
|
2315
2317
|
"active-item-id": s.activeItemId,
|
|
2316
2318
|
"force-open": !!K.value.trim(),
|
|
2317
2319
|
"show-section-dividers": "",
|
|
2318
|
-
onSelect:
|
|
2320
|
+
onSelect: Q
|
|
2319
2321
|
}, null, 8, [
|
|
2320
2322
|
"items",
|
|
2321
2323
|
"active-item-id",
|
|
2322
2324
|
"force-open"
|
|
2323
|
-
])) : (b(), a("div",
|
|
2325
|
+
])) : (b(), a("div", Fn, "Nenhum menu encontrado."))])]),
|
|
2324
2326
|
w(n.$slots, "drawer-after-menu", { close: d })
|
|
2325
2327
|
]),
|
|
2326
|
-
Pe.value || n.$slots["drawer-footer"] ? (b(), a("footer",
|
|
2328
|
+
Pe.value || n.$slots["drawer-footer"] ? (b(), a("footer", In, [Pe.value ? w(n.$slots, "drawer-user", {
|
|
2327
2329
|
user: s.user,
|
|
2328
2330
|
client: s.client,
|
|
2329
|
-
open:
|
|
2330
|
-
toggle: () =>
|
|
2331
|
+
open: H.value,
|
|
2332
|
+
toggle: () => H.value = !H.value
|
|
2331
2333
|
}, () => [o("button", {
|
|
2332
2334
|
class: "top-nav-bar__drawer-user",
|
|
2333
2335
|
type: "button",
|
|
2334
2336
|
"aria-haspopup": X.value ? "menu" : void 0,
|
|
2335
|
-
"aria-expanded": X.value ?
|
|
2336
|
-
onClick:
|
|
2337
|
+
"aria-expanded": X.value ? H.value : void 0,
|
|
2338
|
+
onClick: Ye
|
|
2337
2339
|
}, [
|
|
2338
2340
|
s.user?.avatarUrl ? (b(), a("img", {
|
|
2339
2341
|
key: 0,
|
|
2340
2342
|
src: s.user.avatarUrl,
|
|
2341
2343
|
alt: "",
|
|
2342
2344
|
class: "top-nav-bar__user-avatar"
|
|
2343
|
-
}, null, 8,
|
|
2344
|
-
s.user ? (b(), a("span",
|
|
2345
|
+
}, null, 8, Rn)) : (b(), a("span", zn, D(Be.value), 1)),
|
|
2346
|
+
s.user ? (b(), a("span", Bn, [o("span", Vn, D(s.user.name), 1), s.client ? (b(), a("span", Hn, [o("span", Un, [u[37] ||= o("i", {
|
|
2345
2347
|
class: "pi pi-building",
|
|
2346
2348
|
"aria-hidden": "true"
|
|
2347
|
-
}, null, -1), c(D(s.client.name), 1)]), s.client.subtitle ? (b(), a("span",
|
|
2348
|
-
X.value ? (b(), a("i",
|
|
2349
|
-
], 8,
|
|
2349
|
+
}, null, -1), c(D(s.client.name), 1)]), s.client.subtitle ? (b(), a("span", Wn, D(s.client.subtitle), 1)) : i("", !0)])) : i("", !0)])) : i("", !0),
|
|
2350
|
+
X.value ? (b(), a("i", Gn)) : i("", !0)
|
|
2351
|
+
], 8, Ln)], void 0, 0) : i("", !0), w(n.$slots, "drawer-footer", { close: d })])) : i("", !0)
|
|
2350
2352
|
])]),
|
|
2351
2353
|
_: 3
|
|
2352
2354
|
}, 8, ["visible", "style"]),
|
|
2353
|
-
l(O(
|
|
2355
|
+
l(O(re), {
|
|
2354
2356
|
ref_key: "drawerUserMenuRef",
|
|
2355
|
-
ref:
|
|
2357
|
+
ref: ie,
|
|
2356
2358
|
class: "top-nav-bar__drawer-user-popup",
|
|
2357
|
-
model:
|
|
2359
|
+
model: Ve.value,
|
|
2358
2360
|
popup: !0,
|
|
2359
2361
|
"append-to": "body",
|
|
2360
2362
|
"base-z-index": 10001,
|
|
2361
|
-
onShow: u[17] ||= (e) =>
|
|
2362
|
-
onHide: u[18] ||= (e) =>
|
|
2363
|
+
onShow: u[17] ||= (e) => H.value = !0,
|
|
2364
|
+
onHide: u[18] ||= (e) => H.value = !1
|
|
2363
2365
|
}, null, 8, ["model"])
|
|
2364
2366
|
], 4));
|
|
2365
2367
|
}
|
|
2366
|
-
}),
|
|
2368
|
+
}), Yn = { class: "top-field-icon pointer-events-none absolute left-3 top-1/2 z-10 -translate-y-1/2" }, Xn = {
|
|
2367
2369
|
key: 0,
|
|
2368
2370
|
class: "pi pi-spin pi-spinner"
|
|
2369
|
-
},
|
|
2371
|
+
}, Zn = {
|
|
2370
2372
|
key: 1,
|
|
2371
2373
|
class: "pi pi-search"
|
|
2372
|
-
},
|
|
2374
|
+
}, Qn = {
|
|
2373
2375
|
key: 1,
|
|
2374
2376
|
class: "flex items-center gap-1 !text-sm"
|
|
2375
|
-
},
|
|
2377
|
+
}, $n = { class: "flex items-center gap-2 rounded-[9px] bg-primary-500 px-2 py-1 text-white" }, er = ["onClick"], tr = { class: "line-clamp-1 max-w-[300px] overflow-hidden text-ellipsis" }, nr = {
|
|
2376
2378
|
key: 1,
|
|
2377
2379
|
class: "flex min-h-[100px] flex-col items-center justify-center gap-2 py-2"
|
|
2378
|
-
},
|
|
2380
|
+
}, rr = {
|
|
2379
2381
|
key: 0,
|
|
2380
2382
|
class: "text-xs font-medium text-primary-600"
|
|
2381
|
-
},
|
|
2383
|
+
}, ir = {
|
|
2382
2384
|
key: 2,
|
|
2383
2385
|
class: "text-xs text-secondary-500"
|
|
2384
|
-
},
|
|
2386
|
+
}, ar = { key: 1 }, or = {
|
|
2385
2387
|
key: 1,
|
|
2386
2388
|
class: "flex items-center gap-2 font-semibold"
|
|
2387
|
-
},
|
|
2389
|
+
}, sr = {
|
|
2388
2390
|
key: 1,
|
|
2389
2391
|
class: "flex w-full min-w-0 items-start gap-2 overflow-hidden px-2 py-3 text-sm",
|
|
2390
2392
|
style: { "white-space": "normal" }
|
|
2391
|
-
},
|
|
2393
|
+
}, $ = ["title"], cr = {
|
|
2392
2394
|
key: 0,
|
|
2393
2395
|
class: "top-select-option-prefix whitespace-nowrap font-bold text-primary-800 dark:text-primary-100"
|
|
2394
2396
|
}, lr = {
|
|
@@ -2398,6 +2400,7 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
2398
2400
|
key: 0,
|
|
2399
2401
|
class: "rounded-sm bg-primary-200 p-0 font-bold text-black dark:bg-cyan-700 dark:text-white"
|
|
2400
2402
|
}, dr = /* @__PURE__ */ u({
|
|
2403
|
+
inheritAttrs: !1,
|
|
2401
2404
|
__name: "TopSelect",
|
|
2402
2405
|
props: {
|
|
2403
2406
|
modelValue: { default: null },
|
|
@@ -2466,25 +2469,28 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
2466
2469
|
"change"
|
|
2467
2470
|
],
|
|
2468
2471
|
setup(t, { expose: r, emit: u }) {
|
|
2469
|
-
let f = t, _ = u, x = te(), T =
|
|
2472
|
+
let f = t, _ = u, x = te(), T = ee(), E = H, k = S(""), N = S(!1), P = S(null), L = `top-select-${Math.random().toString(36).slice(2)}`, R = null, z = n({
|
|
2470
2473
|
get: () => f.modelValue,
|
|
2471
2474
|
set: (e) => _("update:modelValue", e)
|
|
2472
|
-
})
|
|
2473
|
-
|
|
2475
|
+
}), B = n(() => {
|
|
2476
|
+
let { class: e, ...t } = T;
|
|
2477
|
+
return t;
|
|
2478
|
+
}), V = n(() => I("top-field-control w-full h-auto text-xs", f.multiple ? "border-0 py-1 !shadow-none outline-none ring-0 rounded-[10px] pl-9 min-h-[40px]" : "border rounded-[10px] !pl-9 min-h-[36px]", T.class));
|
|
2479
|
+
function ne(e, t) {
|
|
2474
2480
|
return e == null ? "" : String(typeof e == "object" ? e[t] ?? "" : e);
|
|
2475
2481
|
}
|
|
2476
|
-
function
|
|
2477
|
-
return e == null ? "" : typeof f.optionLabel == "function" ? f.optionLabel(e) :
|
|
2482
|
+
function re(e) {
|
|
2483
|
+
return e == null ? "" : typeof f.optionLabel == "function" ? f.optionLabel(e) : ne(e, f.optionLabel);
|
|
2478
2484
|
}
|
|
2479
|
-
function
|
|
2480
|
-
return f.optionPrefix ?
|
|
2485
|
+
function ie(e) {
|
|
2486
|
+
return f.optionPrefix ? ne(e, f.optionPrefix) : "";
|
|
2481
2487
|
}
|
|
2482
|
-
function
|
|
2483
|
-
let n =
|
|
2488
|
+
function U(e, t = f.showSelectedPrefix) {
|
|
2489
|
+
let n = re(e), r = ie(e);
|
|
2484
2490
|
return t && r ? `${r} - ${n}` : n;
|
|
2485
2491
|
}
|
|
2486
|
-
function
|
|
2487
|
-
let t =
|
|
2492
|
+
function W(e) {
|
|
2493
|
+
let t = k.value;
|
|
2488
2494
|
if (!t) return [{
|
|
2489
2495
|
text: e,
|
|
2490
2496
|
highlighted: !1
|
|
@@ -2495,46 +2501,47 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
2495
2501
|
highlighted: e.toLowerCase() === t.toLowerCase()
|
|
2496
2502
|
}));
|
|
2497
2503
|
}
|
|
2498
|
-
function
|
|
2499
|
-
|
|
2504
|
+
function G() {
|
|
2505
|
+
P.value?.hide?.();
|
|
2500
2506
|
}
|
|
2501
|
-
function
|
|
2502
|
-
typeof window > "u" || window.dispatchEvent(new CustomEvent("top-select:close-others", { detail: { instanceId:
|
|
2507
|
+
function ae() {
|
|
2508
|
+
typeof window > "u" || window.dispatchEvent(new CustomEvent("top-select:close-others", { detail: { instanceId: L } }));
|
|
2503
2509
|
}
|
|
2504
|
-
function
|
|
2505
|
-
e.detail?.instanceId !==
|
|
2510
|
+
function oe(e) {
|
|
2511
|
+
e.detail?.instanceId !== L && G();
|
|
2506
2512
|
}
|
|
2507
|
-
function
|
|
2508
|
-
if (f.disabled ||
|
|
2509
|
-
|
|
2513
|
+
function K() {
|
|
2514
|
+
if (f.disabled || R) {
|
|
2515
|
+
G();
|
|
2510
2516
|
return;
|
|
2511
2517
|
}
|
|
2512
|
-
|
|
2518
|
+
N.value = !0, ae();
|
|
2513
2519
|
}
|
|
2514
|
-
function
|
|
2515
|
-
f.closeOnSelect && (
|
|
2516
|
-
|
|
2520
|
+
function q() {
|
|
2521
|
+
f.closeOnSelect && (N.value = !1, G(), m(G), R && clearTimeout(R), R = setTimeout(() => {
|
|
2522
|
+
G(), R = null;
|
|
2517
2523
|
}, 200));
|
|
2518
2524
|
}
|
|
2519
|
-
return r({ hideDropdown:
|
|
2520
|
-
window.removeEventListener("top-select:close-others",
|
|
2525
|
+
return r({ hideDropdown: G }), y(() => window.addEventListener("top-select:close-others", oe)), v(() => {
|
|
2526
|
+
window.removeEventListener("top-select:close-others", oe), R && clearTimeout(R);
|
|
2521
2527
|
}), A(() => f.disabled, (e) => {
|
|
2522
|
-
e && (
|
|
2528
|
+
e && (N.value = !1, G());
|
|
2523
2529
|
}), A(() => f.options, () => {
|
|
2524
|
-
|
|
2530
|
+
N.value || G();
|
|
2525
2531
|
}), (n, r) => (b(), a("div", {
|
|
2526
2532
|
class: h(["top-select top-solutions-component relative w-full", { "pointer-events-none": t.disabled }]),
|
|
2527
|
-
onFocusin:
|
|
2528
|
-
}, [o("span",
|
|
2533
|
+
onFocusin: K
|
|
2534
|
+
}, [o("span", Yn, [w(n.$slots, "icon", { loading: t.loading }, () => [t.loading ? (b(), a("i", Xn)) : (b(), a("i", Zn))])]), l(O(E), p({
|
|
2529
2535
|
ref_key: "autocompleteRef",
|
|
2530
|
-
ref:
|
|
2531
|
-
|
|
2532
|
-
|
|
2536
|
+
ref: P
|
|
2537
|
+
}, B.value, {
|
|
2538
|
+
modelValue: z.value,
|
|
2539
|
+
"onUpdate:modelValue": r[0] ||= (e) => z.value = e,
|
|
2533
2540
|
"option-group-label": t.optionGroupLabel ?? void 0,
|
|
2534
2541
|
"option-group-children": t.optionGroupChildren ?? void 0,
|
|
2535
2542
|
suggestions: t.options,
|
|
2536
2543
|
"data-key": t.optionKey,
|
|
2537
|
-
"option-label": (e) =>
|
|
2544
|
+
"option-label": (e) => U(e),
|
|
2538
2545
|
placeholder: t.placeholder,
|
|
2539
2546
|
multiple: t.multiple,
|
|
2540
2547
|
"min-length": t.minQueryLength,
|
|
@@ -2557,9 +2564,9 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
2557
2564
|
},
|
|
2558
2565
|
pt: {
|
|
2559
2566
|
root: { class: ["w-full text-xs", t.multiple ? "h-auto" : "h-[40px]"].join(" ") },
|
|
2560
|
-
pcInputText: { root: { class:
|
|
2561
|
-
input: { class:
|
|
2562
|
-
inputMultiple: { class:
|
|
2567
|
+
pcInputText: { root: { class: V.value } },
|
|
2568
|
+
input: { class: V.value },
|
|
2569
|
+
inputMultiple: { class: V.value },
|
|
2563
2570
|
inputChip: { class: "py-0" },
|
|
2564
2571
|
token: { class: "bg-primary-100 text-primary-900 rounded-md gap-2 px-2 my-1 dark:bg-primary-900 dark:text-primary-100" },
|
|
2565
2572
|
removeTokenIcon: { class: "text-primary-900 w-3 h-3 cursor-pointer dark:text-primary-100" },
|
|
@@ -2578,48 +2585,48 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
2578
2585
|
},
|
|
2579
2586
|
"search-message": " ",
|
|
2580
2587
|
onClear: r[1] ||= (e) => {
|
|
2581
|
-
|
|
2588
|
+
k.value = "", _("clear");
|
|
2582
2589
|
},
|
|
2583
2590
|
onItemSelect: r[2] ||= (e) => {
|
|
2584
|
-
|
|
2591
|
+
k.value = "", _("select", e), q();
|
|
2585
2592
|
},
|
|
2586
2593
|
onComplete: r[3] ||= (e) => {
|
|
2587
2594
|
if (t.disabled) {
|
|
2588
|
-
|
|
2595
|
+
G();
|
|
2589
2596
|
return;
|
|
2590
2597
|
}
|
|
2591
|
-
|
|
2598
|
+
k.value = e.query ?? "", ae(), _("search", {
|
|
2592
2599
|
...e,
|
|
2593
|
-
query:
|
|
2600
|
+
query: k.value
|
|
2594
2601
|
});
|
|
2595
2602
|
},
|
|
2596
2603
|
onChange: r[4] ||= (e) => _("change", e)
|
|
2597
|
-
}, s({
|
|
2598
|
-
chip: j((e) => [O(x).chip ? w(n.$slots, "chip", g(d(e)), void 0, void 0, 0) : (b(), a("div",
|
|
2604
|
+
}), s({
|
|
2605
|
+
chip: j((e) => [O(x).chip ? w(n.$slots, "chip", g(d(e)), void 0, void 0, 0) : (b(), a("div", Qn, [o("div", $n, [o("i", {
|
|
2599
2606
|
class: "pi pi-times-circle shrink-0 cursor-pointer rounded-full hover:bg-primary-800",
|
|
2600
2607
|
onClick: (t) => e.removeCallback(t)
|
|
2601
|
-
}, null, 8,
|
|
2608
|
+
}, null, 8, er), M((b(), a("span", tr, [c(D(U(e.value)), 1)])), [[
|
|
2602
2609
|
O(F),
|
|
2603
|
-
|
|
2610
|
+
U(e.value),
|
|
2604
2611
|
void 0,
|
|
2605
2612
|
{ top: !0 }
|
|
2606
2613
|
]])])]))]),
|
|
2607
|
-
empty: j(() => [O(x).empty ? w(n.$slots, "empty", {}, void 0, void 0, 0) : t.loading ? (b(), a("div",
|
|
2608
|
-
"selected-item": j((e) => [O(x)["selected-item"] ? w(n.$slots, "selected-item", g(d(e)), void 0, void 0, 0) : e.item ? (b(), a("span",
|
|
2609
|
-
optiongroup: j((e) => [O(x)["option-group"] ? w(n.$slots, "option-group", g(d(e)), void 0, void 0, 0) : (b(), a("div",
|
|
2614
|
+
empty: j(() => [O(x).empty ? w(n.$slots, "empty", {}, void 0, void 0, 0) : t.loading ? (b(), a("div", nr, [r[5] ||= o("span", { class: "pi pi-spin pi-spinner text-2xl text-primary-600" }, null, -1), t.showLoadingMessage ? (b(), a("span", rr, D(t.loadingMessage), 1)) : i("", !0)])) : (b(), a("span", ir, D(t.emptyMessage), 1))]),
|
|
2615
|
+
"selected-item": j((e) => [O(x)["selected-item"] ? w(n.$slots, "selected-item", g(d(e)), void 0, void 0, 0) : e.item ? (b(), a("span", ar, D(U(e.item)), 1)) : i("", !0)]),
|
|
2616
|
+
optiongroup: j((e) => [O(x)["option-group"] ? w(n.$slots, "option-group", g(d(e)), void 0, void 0, 0) : (b(), a("div", or, [e.option.icon ? (b(), a("i", {
|
|
2610
2617
|
key: 0,
|
|
2611
2618
|
class: h(e.option.icon)
|
|
2612
2619
|
}, null, 2)) : i("", !0), o("span", null, D(e.option[t.optionGroupLabel ?? "label"]), 1)]))]),
|
|
2613
2620
|
option: j((s) => [O(x).option ? w(n.$slots, "option", p(s, {
|
|
2614
|
-
label:
|
|
2615
|
-
prefix:
|
|
2616
|
-
query:
|
|
2617
|
-
}), void 0, void 0, 0) : M((b(), a("div",
|
|
2621
|
+
label: re(s.option),
|
|
2622
|
+
prefix: ie(s.option),
|
|
2623
|
+
query: k.value
|
|
2624
|
+
}), void 0, void 0, 0) : M((b(), a("div", sr, [o("span", {
|
|
2618
2625
|
class: "top-select-option-label line-clamp-2 min-w-0 flex-1 text-secondary-700 dark:text-zinc-200",
|
|
2619
|
-
title:
|
|
2620
|
-
}, [t.showOptionPrefix &&
|
|
2626
|
+
title: re(s.option)
|
|
2627
|
+
}, [t.showOptionPrefix && ie(s.option) ? (b(), a("span", cr, [(b(!0), a(e, null, C(W(ie(s.option)), (t, n) => (b(), a(e, { key: n }, [t.highlighted ? (b(), a("mark", lr, D(t.text), 1)) : (b(), a(e, { key: 1 }, [c(D(t.text), 1)], 64))], 64))), 128)), r[6] ||= o("span", { class: "font-bold text-secondary-500 dark:text-zinc-400" }, "\xA0-\xA0", -1)])) : i("", !0), (b(!0), a(e, null, C(W(re(s.option)), (t, n) => (b(), a(e, { key: n }, [t.highlighted ? (b(), a("mark", ur, D(t.text), 1)) : (b(), a(e, { key: 1 }, [c(D(t.text), 1)], 64))], 64))), 128))], 8, $)])), [[
|
|
2621
2628
|
O(F),
|
|
2622
|
-
t.showTooltip ?
|
|
2629
|
+
t.showTooltip ? re(s.option) : null,
|
|
2623
2630
|
void 0,
|
|
2624
2631
|
{ top: !0 }
|
|
2625
2632
|
]])]),
|
|
@@ -2628,7 +2635,7 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
2628
2635
|
name: "footer",
|
|
2629
2636
|
fn: j((e) => [w(n.$slots, "footer", g(d(e)))]),
|
|
2630
2637
|
key: "0"
|
|
2631
|
-
} : void 0]),
|
|
2638
|
+
} : void 0]), 1040, [
|
|
2632
2639
|
"modelValue",
|
|
2633
2640
|
"option-group-label",
|
|
2634
2641
|
"option-group-children",
|
|
@@ -2674,8 +2681,8 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
2674
2681
|
scrollable: t.scrollable,
|
|
2675
2682
|
"onUpdate:value": s[0] ||= (e) => i("update:modelValue", e)
|
|
2676
2683
|
}), {
|
|
2677
|
-
default: j(() => [l(O(
|
|
2678
|
-
default: j(() => [(b(!0), a(e, null, C(t.tabs, (e) => (b(), r(O(
|
|
2684
|
+
default: j(() => [l(O(U), null, {
|
|
2685
|
+
default: j(() => [(b(!0), a(e, null, C(t.tabs, (e) => (b(), r(O(ie), {
|
|
2679
2686
|
key: e.value,
|
|
2680
2687
|
value: e.value,
|
|
2681
2688
|
disabled: e.disabled
|
|
@@ -2685,7 +2692,7 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
2685
2692
|
}, 1032, ["value", "disabled"]))), 128))]),
|
|
2686
2693
|
_: 1
|
|
2687
2694
|
}), l(O(G), null, {
|
|
2688
|
-
default: j(() => [(b(!0), a(e, null, C(t.tabs, (e) => (b(), r(O(
|
|
2695
|
+
default: j(() => [(b(!0), a(e, null, C(t.tabs, (e) => (b(), r(O(W), {
|
|
2689
2696
|
key: e.value,
|
|
2690
2697
|
value: e.value
|
|
2691
2698
|
}, {
|
|
@@ -3019,6 +3026,6 @@ var mr = Symbol("top-accordion-context"), hr = /* @__PURE__ */ u({
|
|
|
3019
3026
|
}
|
|
3020
3027
|
});
|
|
3021
3028
|
//#endregion
|
|
3022
|
-
export { hr as a,
|
|
3029
|
+
export { hr as a, Jn as c, He as d, be as f, le as h, vr as i, Xe as l, ue as m, Pr as n, fr as o, he as p, Dr as r, dr as s, zr as t, Z as u };
|
|
3023
3030
|
|
|
3024
|
-
//# sourceMappingURL=TopToast-
|
|
3031
|
+
//# sourceMappingURL=TopToast-Dw5MKTR2.js.map
|