@topjoao/top-design-system 0.1.2-beta.0 → 0.1.2
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-BhGAG5mK.js → TopToast-BHqigMPQ.js} +448 -442
- package/dist/TopToast-BHqigMPQ.js.map +1 -0
- package/dist/TopToast-ol9v4Ihn.cjs +2 -0
- package/dist/TopToast-ol9v4Ihn.cjs.map +1 -0
- package/dist/components/TopNavBar.vue.d.ts +8 -1
- 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-BhGAG5mK.js.map +0 -1
- package/dist/TopToast-NWCYTyh8.cjs +0 -2
- package/dist/TopToast-NWCYTyh8.cjs.map +0 -1
|
@@ -10,18 +10,18 @@ import V from "primevue/inputnumber";
|
|
|
10
10
|
import ne from "primevue/drawer";
|
|
11
11
|
import re from "primevue/menu";
|
|
12
12
|
import H from "primevue/autocomplete";
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
13
|
+
import U from "primevue/tab";
|
|
14
|
+
import W from "primevue/tablist";
|
|
15
|
+
import G from "primevue/tabpanel";
|
|
16
|
+
import K from "primevue/tabpanels";
|
|
17
|
+
import ie from "primevue/tabs";
|
|
18
|
+
import ae from "primevue/accordion";
|
|
19
|
+
import q from "primevue/accordioncontent";
|
|
20
|
+
import J from "primevue/accordionheader";
|
|
21
|
+
import oe from "primevue/accordionpanel";
|
|
22
|
+
import se from "primevue/toast";
|
|
23
23
|
//#region src/components/TopButton.vue?vue&type=script&setup=true&lang.ts
|
|
24
|
-
var
|
|
24
|
+
var Y = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px] bg-transparent" }, ce = /* @__PURE__ */ u({
|
|
25
25
|
__name: "TopButton",
|
|
26
26
|
props: {
|
|
27
27
|
tooltip: { default: "" },
|
|
@@ -58,7 +58,7 @@ var J = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px]
|
|
|
58
58
|
let e = c.unstyled ? "" : u.value === "secondary" ? "rounded-[10px] border px-3 py-2 font-bold dark:!border-zinc-500 dark:!bg-zinc-700 dark:!text-zinc-100 dark:hover:!bg-zinc-600" : c.outlined ? u.value === "primary" ? "shrink-0 rounded-[10px] border-primary-800 px-3 py-2 text-primary-800 hover:bg-primary-50 dark:border-primary-200 dark:bg-transparent dark:text-primary-100 dark:hover:bg-primary-900" : "shrink-0 rounded-[10px] border px-3 py-2 font-bold" : u.value === "primary" ? "rounded-[10px] !border-primary-900 bg-primary-900 px-3 py-2 font-bold text-white hover:!border-primary-800 hover:bg-primary-800 dark:!text-white" : "rounded-[10px] border px-3 py-2 font-bold";
|
|
59
59
|
return I(e, c.class);
|
|
60
60
|
});
|
|
61
|
-
return (t, n) => (b(), a("span",
|
|
61
|
+
return (t, n) => (b(), a("span", Y, [M((b(), r(O(P), {
|
|
62
62
|
type: e.type,
|
|
63
63
|
label: e.label,
|
|
64
64
|
disabled: e.disabled || e.loading,
|
|
@@ -93,7 +93,7 @@ var J = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px]
|
|
|
93
93
|
{ top: !0 }
|
|
94
94
|
]])]));
|
|
95
95
|
}
|
|
96
|
-
}),
|
|
96
|
+
}), le = {
|
|
97
97
|
primary: {
|
|
98
98
|
50: "#EEF9FF",
|
|
99
99
|
100: "#DFF4FF",
|
|
@@ -159,7 +159,7 @@ var J = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px]
|
|
|
159
159
|
900: "#5D0803",
|
|
160
160
|
950: "#450501"
|
|
161
161
|
}
|
|
162
|
-
},
|
|
162
|
+
}, ue = ["aria-label", "disabled"], de = { class: "flex flex-col items-center gap-2 pt-2" }, fe = { class: "text-base font-bold text-secondary-900 dark:text-zinc-100" }, pe = { class: "text-sm leading-5 text-secondary-700 dark:text-zinc-300" }, X = { class: "mt-2 flex w-full items-center justify-center gap-3" }, me = /* @__PURE__ */ u({
|
|
163
163
|
__name: "TopConfirmDialog",
|
|
164
164
|
props: {
|
|
165
165
|
modelValue: {
|
|
@@ -191,8 +191,8 @@ var J = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px]
|
|
|
191
191
|
!e && i.loading || a("update:modelValue", e);
|
|
192
192
|
}
|
|
193
193
|
}), u = n(() => ({
|
|
194
|
-
"--top-confirm-dialog-accent": i.severity === "danger" ?
|
|
195
|
-
"--top-confirm-dialog-accent-hover": i.severity === "danger" ?
|
|
194
|
+
"--top-confirm-dialog-accent": i.severity === "danger" ? le.danger[600] : le.primary[800],
|
|
195
|
+
"--top-confirm-dialog-accent-hover": i.severity === "danger" ? le.danger[700] : le.primary[700]
|
|
196
196
|
})), d = n(() => ["px-3 py-2 text-sm", i.severity === "danger" ? "!border-red-600 !bg-red-600 hover:!border-red-700 hover:!bg-red-700" : ""].filter(Boolean).join(" "));
|
|
197
197
|
function f() {
|
|
198
198
|
i.loading || a("confirm");
|
|
@@ -237,19 +237,19 @@ var J = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px]
|
|
|
237
237
|
}, [...n[2] ||= [o("i", {
|
|
238
238
|
class: "pi pi-times text-lg",
|
|
239
239
|
"aria-hidden": "true"
|
|
240
|
-
}, null, -1)]], 8,
|
|
241
|
-
o("div",
|
|
240
|
+
}, null, -1)]], 8, ue),
|
|
241
|
+
o("div", de, [o("i", {
|
|
242
242
|
class: h([e.icon, "top-confirm-dialog__icon text-[40px]"]),
|
|
243
243
|
"aria-hidden": "true"
|
|
244
|
-
}, null, 2), o("p",
|
|
245
|
-
o("div",
|
|
246
|
-
o("div",
|
|
244
|
+
}, null, 2), o("p", fe, D(e.title), 1)]),
|
|
245
|
+
o("div", pe, [w(t.$slots, "message", {}, () => [w(t.$slots, "default", {}, () => [c(D(e.message), 1)])])]),
|
|
246
|
+
o("div", X, [l(ce, {
|
|
247
247
|
label: e.cancelText,
|
|
248
248
|
secondary: "",
|
|
249
249
|
disabled: e.loading,
|
|
250
250
|
class: "px-3 py-2 text-sm",
|
|
251
251
|
onClick: p
|
|
252
|
-
}, null, 8, ["label", "disabled"]), l(
|
|
252
|
+
}, null, 8, ["label", "disabled"]), l(ce, {
|
|
253
253
|
label: e.loading ? e.loadingText : e.confirmText,
|
|
254
254
|
loading: e.loading,
|
|
255
255
|
class: h(d.value),
|
|
@@ -267,11 +267,11 @@ var J = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px]
|
|
|
267
267
|
"aria-label"
|
|
268
268
|
]));
|
|
269
269
|
}
|
|
270
|
-
}),
|
|
270
|
+
}), he = { class: "top-date-picker top-solutions-component flex w-full flex-col gap-1" }, ge = ["for"], _e = {
|
|
271
271
|
key: 0,
|
|
272
272
|
"aria-hidden": "true",
|
|
273
273
|
class: "text-red-600 dark:text-red-400"
|
|
274
|
-
},
|
|
274
|
+
}, ve = ["id"], ye = /* @__PURE__ */ u({
|
|
275
275
|
inheritAttrs: !1,
|
|
276
276
|
__name: "TopDatePicker",
|
|
277
277
|
props: {
|
|
@@ -362,12 +362,12 @@ var J = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px]
|
|
|
362
362
|
}
|
|
363
363
|
o("input", e);
|
|
364
364
|
}
|
|
365
|
-
return (t, n) => (b(), a("div",
|
|
365
|
+
return (t, n) => (b(), a("div", he, [
|
|
366
366
|
e.label ? (b(), a("label", {
|
|
367
367
|
key: 0,
|
|
368
368
|
for: h.value,
|
|
369
369
|
class: "top-field-label text-xs font-bold"
|
|
370
|
-
}, [c(D(e.label) + " ", 1), e.required ? (b(), a("span",
|
|
370
|
+
}, [c(D(e.label) + " ", 1), e.required ? (b(), a("span", _e, "*")) : i("", !0)], 8, ge)) : i("", !0),
|
|
371
371
|
l(O(R), p(T.value, {
|
|
372
372
|
"model-value": e.modelValue,
|
|
373
373
|
"input-id": h.value,
|
|
@@ -429,10 +429,10 @@ var J = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px]
|
|
|
429
429
|
id: _.value,
|
|
430
430
|
class: "text-[11px] text-red-600 dark:text-red-400",
|
|
431
431
|
role: "alert"
|
|
432
|
-
}, D(e.error), 9,
|
|
432
|
+
}, D(e.error), 9, ve)) : i("", !0)
|
|
433
433
|
]));
|
|
434
434
|
}
|
|
435
|
-
}),
|
|
435
|
+
}), be = [["path", {
|
|
436
436
|
d: "M17.4776 9.01106C17.485 9.01102 17.4925 9.01101 17.5 9.01101C19.9853 9.01101 22 11.0294 22 13.5193C22 15.8398 20.25 17.7508 18 18M17.4776 9.01106C17.4924 8.84606 17.5 8.67896 17.5 8.51009C17.5 5.46695 15.0376 3 12 3C9.12324 3 6.76233 5.21267 6.52042 8.03192M17.4776 9.01106C17.3753 10.1476 16.9286 11.1846 16.2428 12.0165M6.52042 8.03192C3.98398 8.27373 2 10.4139 2 13.0183C2 15.4417 3.71776 17.4632 6 17.9273M6.52042 8.03192C6.67826 8.01687 6.83823 8.00917 7 8.00917C8.12582 8.00917 9.16474 8.38194 10.0005 9.01101",
|
|
437
437
|
stroke: "currentColor",
|
|
438
438
|
strokeLinecap: "round",
|
|
@@ -446,7 +446,7 @@ var J = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px]
|
|
|
446
446
|
strokeLinejoin: "round",
|
|
447
447
|
strokeWidth: "1.5",
|
|
448
448
|
key: "1"
|
|
449
|
-
}]],
|
|
449
|
+
}]], xe = [["path", {
|
|
450
450
|
d: "M12.8924 2.80982L21.4876 9.59547C21.8112 9.85095 22 10.2405 22 10.6528C22 11.3969 21.3969 12 20.6528 12H20V15.5C20 18.3284 20 19.7426 19.1213 20.6213C18.2426 21.5 16.8284 21.5 14 21.5H10C7.17157 21.5 5.75736 21.5 4.87868 20.6213C4 19.7426 4 18.3284 4 15.5V12H3.34716C2.60315 12 2 11.3969 2 10.6528C2 10.2405 2.1888 9.85095 2.5124 9.59547L11.1076 2.80982C11.3617 2.60915 11.6761 2.5 12 2.5C12.3239 2.5 12.6383 2.60915 12.8924 2.80982Z",
|
|
451
451
|
stroke: "currentColor",
|
|
452
452
|
strokeLinecap: "round",
|
|
@@ -460,7 +460,7 @@ var J = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px]
|
|
|
460
460
|
strokeLinejoin: "round",
|
|
461
461
|
strokeWidth: "1.5",
|
|
462
462
|
key: "1"
|
|
463
|
-
}]],
|
|
463
|
+
}]], Se = u({
|
|
464
464
|
name: "HugeiconsIcon",
|
|
465
465
|
inheritAttrs: !1,
|
|
466
466
|
props: {
|
|
@@ -518,16 +518,16 @@ var J = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px]
|
|
|
518
518
|
currentIcon: n(() => e.altIcon && e.showAlt ? e.altIcon : e.icon)
|
|
519
519
|
};
|
|
520
520
|
}
|
|
521
|
-
}),
|
|
521
|
+
}), Ce = (e, t) => {
|
|
522
522
|
let n = e.__vccOpts || e;
|
|
523
523
|
for (let [e, r] of t) n[e] = r;
|
|
524
524
|
return n;
|
|
525
|
-
},
|
|
525
|
+
}, we = [
|
|
526
526
|
"width",
|
|
527
527
|
"height",
|
|
528
528
|
"color"
|
|
529
529
|
];
|
|
530
|
-
function
|
|
530
|
+
function Te(t, n, i, o, s, c) {
|
|
531
531
|
return b(), a("svg", p({
|
|
532
532
|
width: t.computedSize,
|
|
533
533
|
height: t.computedSize,
|
|
@@ -538,30 +538,30 @@ function Ee(t, n, i, o, s, c) {
|
|
|
538
538
|
}, t.$attrs), [(b(!0), a(e, null, C(t.currentIcon, (e, n) => (b(), r(E(e[0]), p({
|
|
539
539
|
key: n,
|
|
540
540
|
ref_for: !0
|
|
541
|
-
}, t.transformAttrs(e[1], t.calculatedStrokeWidth)), null, 16))), 128))], 16,
|
|
541
|
+
}, t.transformAttrs(e[1], t.calculatedStrokeWidth)), null, 16))), 128))], 16, we);
|
|
542
542
|
}
|
|
543
|
-
var
|
|
543
|
+
var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasan/Desktop/Projects/Hugeicons/hugeicons-monorepo/packages/vue/src/components/HugeiconsIcon.vue"]]), De = { class: "top-file-upload top-solutions-component flex w-full flex-col gap-1" }, Oe = ["for"], ke = {
|
|
544
544
|
key: 0,
|
|
545
545
|
"aria-hidden": "true",
|
|
546
546
|
class: "text-red-600 dark:text-red-400"
|
|
547
|
-
},
|
|
547
|
+
}, Ae = { class: "flex min-h-[130px] w-full flex-col items-center justify-center gap-3" }, je = {
|
|
548
548
|
class: "top-file-upload__empty-icon",
|
|
549
549
|
"aria-hidden": "true"
|
|
550
|
-
},
|
|
550
|
+
}, Me = {
|
|
551
551
|
key: 0,
|
|
552
552
|
"aria-label": "Carregando...",
|
|
553
553
|
class: "pi pi-spin pi-spinner text-5xl"
|
|
554
|
-
},
|
|
554
|
+
}, Z = { class: "m-0 text-center text-xs text-secondary-600 dark:text-zinc-300" }, Ne = {
|
|
555
555
|
key: 1,
|
|
556
556
|
class: "flex w-full flex-col gap-2"
|
|
557
|
-
},
|
|
557
|
+
}, Pe = ["src", "alt"], Fe = {
|
|
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
|
+
}, Ie = { class: "min-w-0 flex-1" }, Le = { class: "m-0 truncate text-xs font-bold text-secondary-900 dark:text-zinc-100" }, Re = { class: "text-[11px] text-secondary-500 dark:text-zinc-400" }, ze = [
|
|
561
561
|
"aria-label",
|
|
562
562
|
"disabled",
|
|
563
563
|
"onClick"
|
|
564
|
-
],
|
|
564
|
+
], Be = ["id"], Ve = /* @__PURE__ */ u({
|
|
565
565
|
inheritAttrs: !1,
|
|
566
566
|
__name: "TopFileUpload",
|
|
567
567
|
props: {
|
|
@@ -651,12 +651,12 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
651
651
|
function H() {
|
|
652
652
|
g.value && (g.value.files = [..._.value]);
|
|
653
653
|
}
|
|
654
|
-
function
|
|
655
|
-
_.value = e, x.value = [],
|
|
654
|
+
function U(e, t) {
|
|
655
|
+
_.value = e, x.value = [], J(), m(H);
|
|
656
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
|
|
659
|
+
function W(e) {
|
|
660
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);
|
|
@@ -666,57 +666,57 @@ 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 = [], H(), n.length && !
|
|
670
|
-
_.value = r,
|
|
669
|
+
if (t.length ? (x.value = t, f("error", t)) : x.value = [], H(), n.length && !G(r, _.value)) {
|
|
670
|
+
_.value = r, J(), m(H);
|
|
671
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 G(e, t) {
|
|
676
676
|
return e.length === t.length && e.every((e, n) => L(e, t[n]));
|
|
677
677
|
}
|
|
678
|
-
function
|
|
678
|
+
function K() {
|
|
679
679
|
N.value || g.value?.choose();
|
|
680
680
|
}
|
|
681
|
-
function
|
|
681
|
+
function ie(e, t) {
|
|
682
682
|
if (N.value) return;
|
|
683
683
|
let n = _.value[t];
|
|
684
684
|
if (!n) return;
|
|
685
685
|
e(t);
|
|
686
686
|
let r = _.value.filter((e, n) => n !== t);
|
|
687
|
-
|
|
687
|
+
U(r, "remove"), f("remove", n, t), r.length || f("clear");
|
|
688
688
|
}
|
|
689
|
-
function
|
|
690
|
-
N.value || !_.value.length ||
|
|
689
|
+
function ae() {
|
|
690
|
+
N.value || !_.value.length || U([], "clear");
|
|
691
691
|
}
|
|
692
|
-
function
|
|
692
|
+
function q(e) {
|
|
693
693
|
if (!e.type.startsWith("image/") || typeof URL.createObjectURL != "function") return "";
|
|
694
694
|
let t = T.get(e);
|
|
695
695
|
if (t) return t;
|
|
696
696
|
let n = URL.createObjectURL(e);
|
|
697
697
|
return T.set(e, n), n;
|
|
698
698
|
}
|
|
699
|
-
function
|
|
699
|
+
function J() {
|
|
700
700
|
for (let [e, t] of T) _.value.includes(e) || (URL.revokeObjectURL(t), T.delete(e));
|
|
701
701
|
}
|
|
702
702
|
return A(() => d.modelValue, (e) => {
|
|
703
703
|
let t = I(e);
|
|
704
|
-
|
|
704
|
+
G(t, _.value) || (_.value = t, x.value = [], J(), m(H));
|
|
705
705
|
}), A(() => d.multiple, () => {
|
|
706
706
|
let e = I(d.modelValue);
|
|
707
|
-
_.value = e,
|
|
707
|
+
_.value = e, J(), m(H);
|
|
708
708
|
}), y(H), v(() => {
|
|
709
709
|
for (let e of T.values()) URL.revokeObjectURL(e);
|
|
710
710
|
T.clear();
|
|
711
711
|
}), s({
|
|
712
|
-
choose:
|
|
713
|
-
clear:
|
|
714
|
-
}), (n, s) => (b(), a("div",
|
|
712
|
+
choose: K,
|
|
713
|
+
clear: ae
|
|
714
|
+
}), (n, s) => (b(), a("div", De, [
|
|
715
715
|
t.label ? (b(), a("label", {
|
|
716
716
|
key: 0,
|
|
717
717
|
for: E.value,
|
|
718
718
|
class: "text-xs font-bold text-secondary-800 dark:text-zinc-200"
|
|
719
|
-
}, [c(D(t.label) + " ", 1), t.required ? (b(), a("span",
|
|
719
|
+
}, [c(D(t.label) + " ", 1), t.required ? (b(), a("span", ke, "*")) : i("", !0)], 8, Oe)) : i("", !0),
|
|
720
720
|
l(O(z), {
|
|
721
721
|
ref_key: "fileUploadRef",
|
|
722
722
|
ref: g,
|
|
@@ -737,37 +737,37 @@ 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: W
|
|
741
741
|
}, {
|
|
742
|
-
content: j(({ removeFileCallback: c }) => [o("div",
|
|
742
|
+
content: j(({ removeFileCallback: c }) => [o("div", Ae, [_.value.length ? (b(), a("div", Ne, [(b(!0), a(e, null, C(_.value, (e, r) => (b(), a("div", {
|
|
743
743
|
key: `${e.name}-${e.size}-${e.lastModified}`,
|
|
744
744
|
class: "flex min-w-0 items-center gap-3 rounded-[10px] border border-secondary-300 bg-white p-3 dark:border-zinc-600 dark:bg-zinc-900"
|
|
745
745
|
}, [
|
|
746
746
|
w(n.$slots, "preview", {
|
|
747
747
|
file: e,
|
|
748
748
|
index: r,
|
|
749
|
-
url:
|
|
750
|
-
}, () => [
|
|
749
|
+
url: q(e)
|
|
750
|
+
}, () => [q(e) ? (b(), a("img", {
|
|
751
751
|
key: 0,
|
|
752
|
-
src:
|
|
752
|
+
src: q(e),
|
|
753
753
|
alt: `Pré-visualização de ${e.name}`,
|
|
754
754
|
class: "size-12 shrink-0 rounded-lg object-cover"
|
|
755
|
-
}, null, 8,
|
|
755
|
+
}, null, 8, Pe)) : (b(), a("span", Fe, [...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", Ie, [o("p", Le, D(e.name), 1), o("span", Re, 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",
|
|
763
763
|
"aria-label": `${t.removeLabel}: ${e.name}`,
|
|
764
764
|
disabled: N.value,
|
|
765
|
-
onClick: (e) =>
|
|
765
|
+
onClick: (e) => ie(c, r)
|
|
766
766
|
}, [...s[1] ||= [o("i", {
|
|
767
767
|
class: "pi pi-times",
|
|
768
768
|
"aria-hidden": "true"
|
|
769
|
-
}, null, -1)]], 8,
|
|
770
|
-
]))), 128)), t.multiple && (!t.maxFiles || _.value.length < t.maxFiles) ? (b(), r(
|
|
769
|
+
}, null, -1)]], 8, ze)
|
|
770
|
+
]))), 128)), t.multiple && (!t.maxFiles || _.value.length < t.maxFiles) ? (b(), r(ce, {
|
|
771
771
|
key: 0,
|
|
772
772
|
label: t.selectLabel,
|
|
773
773
|
icon: "pi pi-plus-circle",
|
|
@@ -775,30 +775,30 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
775
775
|
disabled: t.disabled,
|
|
776
776
|
loading: t.loading,
|
|
777
777
|
class: "mt-1 px-3 py-2 text-xs",
|
|
778
|
-
onClick:
|
|
778
|
+
onClick: K
|
|
779
779
|
}, null, 8, [
|
|
780
780
|
"label",
|
|
781
781
|
"disabled",
|
|
782
782
|
"loading"
|
|
783
783
|
])) : i("", !0)])) : w(n.$slots, "empty", {
|
|
784
|
-
choose:
|
|
784
|
+
choose: K,
|
|
785
785
|
disabled: N.value
|
|
786
786
|
}, () => [
|
|
787
|
-
o("span",
|
|
787
|
+
o("span", je, [t.loading ? (b(), a("i", Me)) : (b(), r(O(Ee), {
|
|
788
788
|
key: 1,
|
|
789
|
-
icon: O(
|
|
789
|
+
icon: O(be),
|
|
790
790
|
size: 72,
|
|
791
791
|
"stroke-width": 1.5,
|
|
792
792
|
class: "text-primary-800 dark:text-primary-300"
|
|
793
793
|
}, null, 8, ["icon"]))]),
|
|
794
|
-
o("p",
|
|
795
|
-
l(
|
|
794
|
+
o("p", Z, D(t.placeholder), 1),
|
|
795
|
+
l(ce, {
|
|
796
796
|
label: t.selectLabel,
|
|
797
797
|
icon: "pi pi-plus-circle",
|
|
798
798
|
disabled: t.disabled,
|
|
799
799
|
loading: t.loading,
|
|
800
800
|
class: "px-3 py-2 text-xs",
|
|
801
|
-
onClick:
|
|
801
|
+
onClick: K
|
|
802
802
|
}, null, 8, [
|
|
803
803
|
"label",
|
|
804
804
|
"disabled",
|
|
@@ -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, Be)) : i("", !0)
|
|
821
821
|
]));
|
|
822
822
|
}
|
|
823
|
-
}),
|
|
823
|
+
}), He = { class: "top-input-text top-solutions-component flex w-full flex-col gap-1" }, Ue = ["for"], We = {
|
|
824
824
|
key: 0,
|
|
825
825
|
"aria-hidden": "true",
|
|
826
826
|
class: "text-red-600 dark:text-red-400"
|
|
827
|
-
},
|
|
827
|
+
}, Ge = ["id"], Q = /* @__PURE__ */ u({
|
|
828
828
|
inheritAttrs: !1,
|
|
829
829
|
__name: "TopInputText",
|
|
830
830
|
props: {
|
|
@@ -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", He, [
|
|
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", We, "*")) : i("", !0)], 8, Ue)) : 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, Ge)) : i("", !0)
|
|
898
898
|
]));
|
|
899
899
|
}
|
|
900
|
-
}),
|
|
900
|
+
}), $ = { class: "top-input-number top-solutions-component flex w-full flex-col gap-1" }, Ke = ["for"], qe = {
|
|
901
901
|
key: 0,
|
|
902
902
|
"aria-hidden": "true",
|
|
903
903
|
class: "text-red-600 dark:text-red-400"
|
|
904
|
-
},
|
|
904
|
+
}, Je = ["id"], Ye = /* @__PURE__ */ u({
|
|
905
905
|
inheritAttrs: !1,
|
|
906
906
|
__name: "TopInputNumber",
|
|
907
907
|
props: {
|
|
@@ -1037,12 +1037,12 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
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", $, [
|
|
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", qe, "*")) : i("", !0)], 8, Ke)) : i("", !0),
|
|
1046
1046
|
T.value ? (b(), r(O(B), p({ key: 1 }, M.value, {
|
|
1047
1047
|
id: _.value,
|
|
1048
1048
|
"model-value": R(e.modelValue),
|
|
@@ -1114,18 +1114,18 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
1114
1114
|
id: v.value,
|
|
1115
1115
|
class: "text-[11px] text-red-600 dark:text-red-400",
|
|
1116
1116
|
role: "alert"
|
|
1117
|
-
}, D(e.error), 9,
|
|
1117
|
+
}, D(e.error), 9, Je)) : i("", !0)
|
|
1118
1118
|
]));
|
|
1119
1119
|
}
|
|
1120
|
-
}),
|
|
1120
|
+
}), Xe = [
|
|
1121
1121
|
"disabled",
|
|
1122
1122
|
"aria-expanded",
|
|
1123
1123
|
"onClick"
|
|
1124
|
-
],
|
|
1124
|
+
], Ze = { class: "top-nav-bar__mobile-item-label" }, Qe = {
|
|
1125
1125
|
key: 1,
|
|
1126
1126
|
class: "top-nav-bar__mobile-count",
|
|
1127
1127
|
"aria-hidden": "true"
|
|
1128
|
-
},
|
|
1128
|
+
}, $e = /* @__PURE__ */ u({
|
|
1129
1129
|
name: "TopNavMobileTree",
|
|
1130
1130
|
__name: "TopNavMobileTree",
|
|
1131
1131
|
props: {
|
|
@@ -1198,14 +1198,14 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
1198
1198
|
class: h(e.icon),
|
|
1199
1199
|
"aria-hidden": "true"
|
|
1200
1200
|
}, null, 2)) : i("", !0),
|
|
1201
|
-
o("span",
|
|
1202
|
-
p(e).length ? (b(), a("span",
|
|
1201
|
+
o("span", Ze, D(e.label), 1),
|
|
1202
|
+
p(e).length ? (b(), a("span", Qe, D(p(e).length), 1)) : i("", !0),
|
|
1203
1203
|
p(e).length ? (b(), a("i", {
|
|
1204
1204
|
key: 2,
|
|
1205
1205
|
class: h(["pi pi-chevron-down top-nav-bar__mobile-chevron", { "top-nav-bar__mobile-chevron--open": g(e) }]),
|
|
1206
1206
|
"aria-hidden": "true"
|
|
1207
1207
|
}, null, 2)) : i("", !0)
|
|
1208
|
-
], 10,
|
|
1208
|
+
], 10, Xe), l(t, { name: "top-nav-bar-menu-expand" }, {
|
|
1209
1209
|
default: j(() => [p(e).length && g(e) ? (b(), r(u, {
|
|
1210
1210
|
key: 0,
|
|
1211
1211
|
items: p(e),
|
|
@@ -1223,96 +1223,104 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
1223
1223
|
}, 1024)], 2))), 128))], 6);
|
|
1224
1224
|
};
|
|
1225
1225
|
}
|
|
1226
|
-
}),
|
|
1226
|
+
}), et = ["aria-expanded"], tt = { class: "top-nav-bar__brand" }, nt = {
|
|
1227
1227
|
key: 1,
|
|
1228
1228
|
class: "top-nav-bar__brand-context-divider",
|
|
1229
1229
|
"aria-hidden": "true"
|
|
1230
|
-
},
|
|
1230
|
+
}, rt = {
|
|
1231
1231
|
key: 2,
|
|
1232
1232
|
class: "top-nav-bar__context"
|
|
1233
|
-
},
|
|
1233
|
+
}, it = {
|
|
1234
1234
|
key: 0,
|
|
1235
1235
|
class: "top-nav-bar__client"
|
|
1236
|
-
},
|
|
1236
|
+
}, at = ["src"], ot = {
|
|
1237
1237
|
key: 1,
|
|
1238
1238
|
class: "top-nav-bar__client-logo"
|
|
1239
|
-
},
|
|
1239
|
+
}, st = {
|
|
1240
1240
|
key: 2,
|
|
1241
1241
|
class: "top-nav-bar__client-details"
|
|
1242
|
-
},
|
|
1242
|
+
}, ct = { class: "top-nav-bar__client-name" }, lt = {
|
|
1243
1243
|
key: 0,
|
|
1244
1244
|
class: "top-nav-bar__client-subtitle"
|
|
1245
|
-
},
|
|
1245
|
+
}, ut = { class: "top-nav-bar__desktop-tools" }, dt = {
|
|
1246
1246
|
key: 0,
|
|
1247
1247
|
class: "top-nav-bar__search-shell",
|
|
1248
1248
|
"data-top-nav-search": ""
|
|
1249
|
-
},
|
|
1249
|
+
}, ft = ["value", "placeholder"], pt = ["aria-label"], mt = {
|
|
1250
1250
|
key: 1,
|
|
1251
1251
|
class: "top-nav-bar__search-results",
|
|
1252
1252
|
role: "menu"
|
|
1253
|
-
},
|
|
1253
|
+
}, ht = { class: "top-nav-bar__search-results-scroll" }, gt = ["disabled", "onClick"], _t = {
|
|
1254
1254
|
key: 0,
|
|
1255
1255
|
class: "top-nav-bar__empty"
|
|
1256
|
-
},
|
|
1256
|
+
}, vt = {
|
|
1257
1257
|
key: 1,
|
|
1258
1258
|
class: "top-nav-bar__quick-actions",
|
|
1259
1259
|
"data-top-nav-actions": ""
|
|
1260
|
-
},
|
|
1260
|
+
}, yt = [
|
|
1261
1261
|
"disabled",
|
|
1262
1262
|
"aria-label",
|
|
1263
1263
|
"aria-pressed",
|
|
1264
1264
|
"title",
|
|
1265
1265
|
"onClick"
|
|
1266
|
-
],
|
|
1266
|
+
], bt = ["aria-expanded"], xt = {
|
|
1267
1267
|
key: 0,
|
|
1268
1268
|
class: "top-nav-bar__popover-layer top-nav-bar__actions-layer"
|
|
1269
|
-
},
|
|
1269
|
+
}, St = {
|
|
1270
1270
|
class: "top-nav-bar__small-panel",
|
|
1271
1271
|
role: "menu"
|
|
1272
|
-
},
|
|
1272
|
+
}, Ct = ["disabled", "onClick"], wt = {
|
|
1273
1273
|
key: 2,
|
|
1274
1274
|
class: "top-nav-bar__custom-actions"
|
|
1275
|
-
},
|
|
1275
|
+
}, Tt = ["aria-haspopup", "aria-expanded"], Et = ["src"], Dt = {
|
|
1276
1276
|
key: 1,
|
|
1277
1277
|
class: "top-nav-bar__user-avatar"
|
|
1278
|
-
},
|
|
1278
|
+
}, Ot = {
|
|
1279
1279
|
key: 2,
|
|
1280
1280
|
class: "top-nav-bar__user-details"
|
|
1281
|
-
},
|
|
1281
|
+
}, kt = { class: "top-nav-bar__user-name" }, At = {
|
|
1282
1282
|
key: 0,
|
|
1283
1283
|
class: "top-nav-bar__user-subtitle"
|
|
1284
|
-
},
|
|
1284
|
+
}, jt = {
|
|
1285
1285
|
key: 0,
|
|
1286
1286
|
class: "pi pi-chevron-down top-nav-bar__chevron",
|
|
1287
1287
|
"aria-hidden": "true"
|
|
1288
|
-
},
|
|
1288
|
+
}, Mt = {
|
|
1289
1289
|
key: 0,
|
|
1290
1290
|
class: "top-nav-bar__popover-layer top-nav-bar__user-layer"
|
|
1291
|
-
},
|
|
1291
|
+
}, Nt = {
|
|
1292
1292
|
class: "top-nav-bar__small-panel top-nav-bar__user-dropdown",
|
|
1293
1293
|
role: "menu"
|
|
1294
|
-
},
|
|
1294
|
+
}, Pt = {
|
|
1295
1295
|
key: 0,
|
|
1296
1296
|
class: "top-nav-bar__user-separator",
|
|
1297
1297
|
role: "separator"
|
|
1298
|
-
},
|
|
1298
|
+
}, Ft = ["disabled", "onClick"], It = {
|
|
1299
1299
|
class: "top-nav-bar__breadcrumbs",
|
|
1300
1300
|
"aria-label": "Breadcrumb"
|
|
1301
|
-
},
|
|
1301
|
+
}, Lt = {
|
|
1302
1302
|
key: 0,
|
|
1303
1303
|
class: "top-nav-bar__separator top-nav-bar__desktop-navigation-separator",
|
|
1304
1304
|
"aria-hidden": "true"
|
|
1305
|
-
},
|
|
1305
|
+
}, Rt = ["aria-expanded"], zt = {
|
|
1306
1306
|
key: 0,
|
|
1307
1307
|
class: "top-nav-bar__menu-layer"
|
|
1308
|
-
},
|
|
1308
|
+
}, Bt = {
|
|
1309
1309
|
class: "top-nav-bar__menu-panel",
|
|
1310
1310
|
role: "menu"
|
|
1311
|
-
},
|
|
1311
|
+
}, Vt = { class: "top-nav-bar__section-list" }, Ht = [
|
|
1312
|
+
"aria-haspopup",
|
|
1312
1313
|
"aria-expanded",
|
|
1313
1314
|
"onMouseenter",
|
|
1314
1315
|
"onClick"
|
|
1315
|
-
],
|
|
1316
|
+
], Ut = { class: "top-nav-bar__menu-label" }, Wt = {
|
|
1317
|
+
key: 1,
|
|
1318
|
+
class: "top-nav-bar__item-count"
|
|
1319
|
+
}, Gt = {
|
|
1320
|
+
key: 2,
|
|
1321
|
+
class: "pi pi-chevron-right top-nav-bar__menu-arrow",
|
|
1322
|
+
"aria-hidden": "true"
|
|
1323
|
+
}, Kt = {
|
|
1316
1324
|
key: 0,
|
|
1317
1325
|
class: "top-nav-bar__submenu-region"
|
|
1318
1326
|
}, qt = [
|
|
@@ -1437,7 +1445,8 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
1437
1445
|
type: Boolean,
|
|
1438
1446
|
default: void 0
|
|
1439
1447
|
},
|
|
1440
|
-
appearance: { default: () => ({}) }
|
|
1448
|
+
appearance: { default: () => ({}) },
|
|
1449
|
+
spacing: { default: () => ({}) }
|
|
1441
1450
|
},
|
|
1442
1451
|
emits: [
|
|
1443
1452
|
"navigate",
|
|
@@ -1452,15 +1461,15 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
1452
1461
|
"user-click"
|
|
1453
1462
|
],
|
|
1454
1463
|
setup(s, { expose: u, emit: d }) {
|
|
1455
|
-
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),
|
|
1464
|
+
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), U = S(null), W = S(!1), G = S(!1), K = S(!1), ie = S(!0), ae = S(!1), q = S(f.searchValue ?? ""), J = S(!1), oe = S(!1), se = S(!1), Y = S({
|
|
1456
1465
|
collapseActions: !1,
|
|
1457
1466
|
searchIconOnly: !1,
|
|
1458
1467
|
hideUserName: !1,
|
|
1459
1468
|
hideContextDetails: !1
|
|
1460
|
-
}), le, ue, de, fe
|
|
1461
|
-
function
|
|
1469
|
+
}), ce, le, ue, de, fe = 0;
|
|
1470
|
+
function pe(e) {
|
|
1462
1471
|
return (e.children ?? []).filter(Boolean).map((e) => {
|
|
1463
|
-
let t =
|
|
1472
|
+
let t = pe(e);
|
|
1464
1473
|
if (!t.length) {
|
|
1465
1474
|
let { children: t, ...n } = e;
|
|
1466
1475
|
return n;
|
|
@@ -1471,63 +1480,63 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
1471
1480
|
};
|
|
1472
1481
|
});
|
|
1473
1482
|
}
|
|
1474
|
-
let
|
|
1483
|
+
let X = n(() => f.sections.map((e) => e.children === void 0 ? e : {
|
|
1475
1484
|
...e,
|
|
1476
|
-
children:
|
|
1477
|
-
})
|
|
1478
|
-
function
|
|
1485
|
+
children: pe(e)
|
|
1486
|
+
}).filter((e) => e.children === void 0 || e.children.length > 0));
|
|
1487
|
+
function me(e, t = []) {
|
|
1479
1488
|
return e.forEach((e) => {
|
|
1480
1489
|
let n = e.children ?? [];
|
|
1481
|
-
n.length ?
|
|
1490
|
+
n.length ? me(n, t) : t.push(e);
|
|
1482
1491
|
}), t;
|
|
1483
1492
|
}
|
|
1484
|
-
let
|
|
1485
|
-
function
|
|
1493
|
+
let he = n(() => me(X.value));
|
|
1494
|
+
function ge(e) {
|
|
1486
1495
|
return e.normalize("NFD").replace(/[\u0300-\u036f]/g, "").toLocaleLowerCase("pt-BR");
|
|
1487
1496
|
}
|
|
1488
|
-
let
|
|
1497
|
+
let _e = n(() => {
|
|
1489
1498
|
if (f.searchResults !== void 0) return f.searchResults;
|
|
1490
|
-
let e =
|
|
1491
|
-
return e ?
|
|
1499
|
+
let e = ge(q.value.trim());
|
|
1500
|
+
return e ? he.value.filter((t) => ge(t.label).includes(e)) : he.value;
|
|
1492
1501
|
});
|
|
1493
|
-
function
|
|
1502
|
+
function ve(e, t) {
|
|
1494
1503
|
return t ? e.flatMap((e) => {
|
|
1495
|
-
let n =
|
|
1504
|
+
let n = ge(e.label).includes(t), r = ve(e.children ?? [], t);
|
|
1496
1505
|
return !n && !r.length ? [] : [{
|
|
1497
1506
|
...e,
|
|
1498
1507
|
children: n ? e.children : r
|
|
1499
1508
|
}];
|
|
1500
1509
|
}) : e;
|
|
1501
1510
|
}
|
|
1502
|
-
let
|
|
1503
|
-
function
|
|
1511
|
+
let ye = n(() => ve(X.value, ge(q.value.trim())));
|
|
1512
|
+
function be(e, t, n = []) {
|
|
1504
1513
|
for (let r of e) {
|
|
1505
1514
|
let e = [...n, r];
|
|
1506
1515
|
if (r.id === t) return e;
|
|
1507
|
-
let i =
|
|
1516
|
+
let i = be(r.children ?? [], t, e);
|
|
1508
1517
|
if (i) return i;
|
|
1509
1518
|
}
|
|
1510
1519
|
return null;
|
|
1511
1520
|
}
|
|
1512
|
-
function
|
|
1521
|
+
function Se(e, t) {
|
|
1513
1522
|
for (let n of e) {
|
|
1514
1523
|
if (n.id === t) return n;
|
|
1515
|
-
let e =
|
|
1524
|
+
let e = Se(n.children ?? [], t);
|
|
1516
1525
|
if (e) return e;
|
|
1517
1526
|
}
|
|
1518
1527
|
return null;
|
|
1519
1528
|
}
|
|
1520
|
-
let
|
|
1529
|
+
let Ce = n(() => {
|
|
1521
1530
|
if (!f.activeItemId) return null;
|
|
1522
|
-
for (let e of
|
|
1531
|
+
for (let e of X.value) {
|
|
1523
1532
|
if (e.id === f.activeItemId) return [e];
|
|
1524
|
-
let t =
|
|
1533
|
+
let t = be(e.children ?? [], f.activeItemId);
|
|
1525
1534
|
if (t) return [e, ...t];
|
|
1526
1535
|
}
|
|
1527
1536
|
return null;
|
|
1528
|
-
}),
|
|
1537
|
+
}), we = n(() => {
|
|
1529
1538
|
if (f.breadcrumbs.length) return f.breadcrumbs;
|
|
1530
|
-
let e =
|
|
1539
|
+
let e = Ce.value;
|
|
1531
1540
|
if (!e?.length) return [];
|
|
1532
1541
|
let t = e.length - 1;
|
|
1533
1542
|
return e.map((e, n) => ({
|
|
@@ -1538,11 +1547,11 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
1538
1547
|
menuId: n > 0 && e.children?.length ? e.id : void 0
|
|
1539
1548
|
}));
|
|
1540
1549
|
});
|
|
1541
|
-
function
|
|
1542
|
-
return e.menuId ?
|
|
1550
|
+
function Te(e) {
|
|
1551
|
+
return e.menuId ? Se(X.value, e.menuId) : e.sectionId ? X.value.find((t) => t.id === e.sectionId) ?? null : null;
|
|
1543
1552
|
}
|
|
1544
|
-
let
|
|
1545
|
-
function
|
|
1553
|
+
let De = n(() => X.value.find((e) => e.id === I.value) ?? null);
|
|
1554
|
+
function Oe(e, t) {
|
|
1546
1555
|
let n = [], r = e, i = 0;
|
|
1547
1556
|
for (; r.length;) {
|
|
1548
1557
|
n.push(r);
|
|
@@ -1554,13 +1563,13 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
1554
1563
|
}
|
|
1555
1564
|
return n;
|
|
1556
1565
|
}
|
|
1557
|
-
let
|
|
1558
|
-
function
|
|
1566
|
+
let ke = n(() => De.value ? Oe(De.value.children ?? [], L.value) : []);
|
|
1567
|
+
function Ae(e, t = 10) {
|
|
1559
1568
|
let n = [];
|
|
1560
1569
|
for (let r = 0; r < e.length; r += t) n.push(e.slice(r, r + t));
|
|
1561
1570
|
return n;
|
|
1562
1571
|
}
|
|
1563
|
-
let
|
|
1572
|
+
let je = n(() => {
|
|
1564
1573
|
let e = [];
|
|
1565
1574
|
return f.showAia && e.push({
|
|
1566
1575
|
id: "__aia",
|
|
@@ -1576,7 +1585,7 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
1576
1585
|
...t,
|
|
1577
1586
|
kind: "action"
|
|
1578
1587
|
})), e;
|
|
1579
|
-
}),
|
|
1588
|
+
}), Me = n(() => {
|
|
1580
1589
|
let e = [];
|
|
1581
1590
|
return f.userMenuItems.forEach((t) => {
|
|
1582
1591
|
if (t.separator) {
|
|
@@ -1585,79 +1594,79 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
1585
1594
|
}
|
|
1586
1595
|
e.push(t);
|
|
1587
1596
|
}), e.at(-1)?.separator && e.pop(), e;
|
|
1588
|
-
}),
|
|
1597
|
+
}), Z = n(() => !!g["user-menu"] || Me.value.some((e) => !e.separator)), Ne = n(() => !!f.user || !!g.user), Pe = n(() => !!(f.client || g.context || g.scope || g.client || g["context-compact"])), Fe = n(() => f.favoriteItems.filter(Boolean)), Ie = n(() => K.value || !ie.value), Le = n(() => Fe.value.length > 0 && !Ie.value), Re = n(() => X.value.length > 0 || f.searchable || je.value.length > 0 || Ne.value || !!(g["drawer-menu"] || g["drawer-actions"] || g["drawer-footer"])), ze = 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("") : ""), Be = n(() => Me.value.map((e) => e.separator ? { separator: !0 } : {
|
|
1589
1598
|
label: e.label,
|
|
1590
1599
|
icon: e.icon,
|
|
1591
1600
|
disabled: e.disabled,
|
|
1592
|
-
command: () =>
|
|
1593
|
-
})),
|
|
1594
|
-
let e = f.appearance, t = {},
|
|
1595
|
-
|
|
1601
|
+
command: () => qe(e)
|
|
1602
|
+
})), Ve = n(() => {
|
|
1603
|
+
let e = f.appearance, t = f.spacing, n = {}, r = (e, t) => {
|
|
1604
|
+
t !== void 0 && t !== "" && (n[e] = t);
|
|
1596
1605
|
};
|
|
1597
|
-
return
|
|
1598
|
-
}),
|
|
1599
|
-
function
|
|
1606
|
+
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;
|
|
1607
|
+
}), He = 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("") : "");
|
|
1608
|
+
function Ue() {
|
|
1600
1609
|
let e = Math.max(0, window.scrollY);
|
|
1601
|
-
if (!
|
|
1602
|
-
|
|
1610
|
+
if (!K.value && e >= Kn) {
|
|
1611
|
+
K.value = !0;
|
|
1603
1612
|
return;
|
|
1604
1613
|
}
|
|
1605
|
-
|
|
1614
|
+
K.value && e <= qn && (K.value = !1);
|
|
1606
1615
|
}
|
|
1607
|
-
function
|
|
1616
|
+
function We() {
|
|
1608
1617
|
let e = E.value, t = ee.value;
|
|
1609
|
-
!e || !t || (
|
|
1618
|
+
!e || !t || (ie.value = t.scrollWidth <= e.clientWidth + 1);
|
|
1610
1619
|
}
|
|
1611
|
-
function
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1620
|
+
function Ge() {
|
|
1621
|
+
de = window.requestAnimationFrame(() => {
|
|
1622
|
+
de = window.requestAnimationFrame(() => {
|
|
1623
|
+
ae.value = !0;
|
|
1615
1624
|
});
|
|
1616
1625
|
});
|
|
1617
1626
|
}
|
|
1618
|
-
function
|
|
1627
|
+
function Q() {
|
|
1619
1628
|
return typeof window < "u" && window.matchMedia?.("(hover: hover) and (pointer: fine)").matches;
|
|
1620
1629
|
}
|
|
1621
|
-
function
|
|
1630
|
+
function $(e) {
|
|
1622
1631
|
e.disabled || (p("navigate", e), P.value = !1, rr());
|
|
1623
1632
|
}
|
|
1624
|
-
function
|
|
1633
|
+
function Ke(e, t = !1) {
|
|
1625
1634
|
e.disabled || (e.kind === "aia" ? p("toggle-aia") : e.kind === "support" ? p("open-support") : p("action", e), B.value = !1, t && (P.value = !1));
|
|
1626
1635
|
}
|
|
1627
|
-
function
|
|
1636
|
+
function qe(e, t = !1) {
|
|
1628
1637
|
e.disabled || e.separator || (p("user-action", e), V.value = !1, H.value = !1, t && (P.value = !1));
|
|
1629
1638
|
}
|
|
1630
|
-
function
|
|
1631
|
-
if (!
|
|
1639
|
+
function Je(e) {
|
|
1640
|
+
if (!Z.value) {
|
|
1632
1641
|
p("user-click", f.user);
|
|
1633
1642
|
return;
|
|
1634
1643
|
}
|
|
1635
|
-
|
|
1644
|
+
U.value?.toggle(e);
|
|
1636
1645
|
}
|
|
1637
|
-
function
|
|
1638
|
-
|
|
1646
|
+
function Ye(e) {
|
|
1647
|
+
q.value = e, p("update:searchValue", e), p("search", e);
|
|
1648
|
+
}
|
|
1649
|
+
function Xe() {
|
|
1650
|
+
Ye(""), m(() => P.value ? M.value?.focus() : k.value?.focus());
|
|
1639
1651
|
}
|
|
1640
1652
|
function Ze() {
|
|
1641
|
-
|
|
1653
|
+
Q() && (F.value = !0);
|
|
1642
1654
|
}
|
|
1643
1655
|
function Qe() {
|
|
1644
|
-
|
|
1645
|
-
}
|
|
1646
|
-
function $e() {
|
|
1647
|
-
!Z() || window.innerWidth < 1024 || (F.value = !1, I.value = null, L.value = []);
|
|
1656
|
+
!Q() || window.innerWidth < 1024 || (F.value = !1, I.value = null, L.value = []);
|
|
1648
1657
|
}
|
|
1649
1658
|
function Jn() {
|
|
1650
|
-
if (
|
|
1659
|
+
if (Q()) {
|
|
1651
1660
|
F.value = !0;
|
|
1652
1661
|
return;
|
|
1653
1662
|
}
|
|
1654
1663
|
F.value = !F.value, F.value || (I.value = null, L.value = []);
|
|
1655
1664
|
}
|
|
1656
1665
|
function Yn(e) {
|
|
1657
|
-
|
|
1666
|
+
Q() && (I.value = e, L.value = []);
|
|
1658
1667
|
}
|
|
1659
1668
|
function Xn(e) {
|
|
1660
|
-
if (
|
|
1669
|
+
if (Q()) {
|
|
1661
1670
|
I.value = e, L.value = [];
|
|
1662
1671
|
return;
|
|
1663
1672
|
}
|
|
@@ -1665,13 +1674,13 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
1665
1674
|
I.value = t ? null : e, L.value = [];
|
|
1666
1675
|
}
|
|
1667
1676
|
function Zn(e, t, n, r) {
|
|
1668
|
-
if (r && !
|
|
1677
|
+
if (r && !Q()) return;
|
|
1669
1678
|
let i = e.value[n];
|
|
1670
1679
|
if (!t.children?.length) {
|
|
1671
|
-
e.value = e.value.slice(0, n), r ||
|
|
1680
|
+
e.value = e.value.slice(0, n), r || $(t);
|
|
1672
1681
|
return;
|
|
1673
1682
|
}
|
|
1674
|
-
if (!r &&
|
|
1683
|
+
if (!r && Q()) {
|
|
1675
1684
|
e.value = [...e.value.slice(0, n), t.id];
|
|
1676
1685
|
return;
|
|
1677
1686
|
}
|
|
@@ -1684,31 +1693,31 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
1684
1693
|
Zn(z, e, t, n);
|
|
1685
1694
|
}
|
|
1686
1695
|
function er(e) {
|
|
1687
|
-
|
|
1696
|
+
Q() && (R.value = e, z.value = []);
|
|
1688
1697
|
}
|
|
1689
1698
|
function tr() {
|
|
1690
|
-
!
|
|
1699
|
+
!Q() || window.innerWidth < 1024 || (R.value = null, z.value = []);
|
|
1691
1700
|
}
|
|
1692
1701
|
function nr(e) {
|
|
1693
|
-
if (
|
|
1702
|
+
if (Q()) {
|
|
1694
1703
|
R.value = e;
|
|
1695
1704
|
return;
|
|
1696
1705
|
}
|
|
1697
1706
|
R.value = R.value === e ? null : e, z.value = [];
|
|
1698
1707
|
}
|
|
1699
1708
|
function rr() {
|
|
1700
|
-
F.value = !1, I.value = null, L.value = [], R.value = null, z.value = [], B.value = !1, V.value = !1,
|
|
1709
|
+
F.value = !1, I.value = null, L.value = [], R.value = null, z.value = [], B.value = !1, V.value = !1, W.value = !1, J.value = !1;
|
|
1701
1710
|
}
|
|
1702
1711
|
async function ir() {
|
|
1703
1712
|
if (typeof window < "u" && window.innerWidth < 1024) {
|
|
1704
1713
|
P.value = !0, await m(), M.value?.focus();
|
|
1705
1714
|
return;
|
|
1706
1715
|
}
|
|
1707
|
-
|
|
1716
|
+
oe.value = !0, J.value = !0, await m(), k.value?.focus(), cr();
|
|
1708
1717
|
}
|
|
1709
1718
|
function ar() {
|
|
1710
1719
|
window.setTimeout(() => {
|
|
1711
|
-
|
|
1720
|
+
J.value = !1, Y.value.searchIconOnly && !q.value.trim() && (oe.value = !1, cr());
|
|
1712
1721
|
}, 150);
|
|
1713
1722
|
}
|
|
1714
1723
|
function or() {
|
|
@@ -1716,8 +1725,8 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
1716
1725
|
}
|
|
1717
1726
|
async function sr() {
|
|
1718
1727
|
if (typeof window > "u" || !T.value) return;
|
|
1719
|
-
let e = ++
|
|
1720
|
-
|
|
1728
|
+
let e = ++fe, t = or();
|
|
1729
|
+
se.value = t < 1024;
|
|
1721
1730
|
let n = {
|
|
1722
1731
|
collapseActions: !1,
|
|
1723
1732
|
searchIconOnly: !1,
|
|
@@ -1725,15 +1734,15 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
1725
1734
|
hideContextDetails: !1
|
|
1726
1735
|
};
|
|
1727
1736
|
if (t < 1024) {
|
|
1728
|
-
|
|
1737
|
+
Y.value = n, oe.value = !1;
|
|
1729
1738
|
return;
|
|
1730
1739
|
}
|
|
1731
|
-
if (
|
|
1740
|
+
if (Y.value = {
|
|
1732
1741
|
collapseActions: t < 1440,
|
|
1733
1742
|
searchIconOnly: t < 1320,
|
|
1734
1743
|
hideUserName: t < 1180,
|
|
1735
1744
|
hideContextDetails: !1
|
|
1736
|
-
}, await m(), e ===
|
|
1745
|
+
}, await m(), e === fe) for (let t of [
|
|
1737
1746
|
"collapseActions",
|
|
1738
1747
|
"searchIconOnly",
|
|
1739
1748
|
"hideUserName",
|
|
@@ -1741,72 +1750,72 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
1741
1750
|
]) {
|
|
1742
1751
|
let n = T.value;
|
|
1743
1752
|
if (!n || n.scrollWidth <= n.clientWidth + 1) break;
|
|
1744
|
-
if (
|
|
1745
|
-
...
|
|
1753
|
+
if (Y.value = {
|
|
1754
|
+
...Y.value,
|
|
1746
1755
|
[t]: !0
|
|
1747
|
-
}, await m(), e !==
|
|
1756
|
+
}, await m(), e !== fe) return;
|
|
1748
1757
|
}
|
|
1749
1758
|
}
|
|
1750
|
-
function
|
|
1751
|
-
typeof window > "u" || (
|
|
1752
|
-
|
|
1759
|
+
function cr() {
|
|
1760
|
+
typeof window > "u" || (ue !== void 0 && window.cancelAnimationFrame(ue), ue = window.requestAnimationFrame(() => {
|
|
1761
|
+
ue = void 0, sr();
|
|
1753
1762
|
}));
|
|
1754
1763
|
}
|
|
1755
|
-
function
|
|
1764
|
+
function lr(e) {
|
|
1756
1765
|
let t = e.target;
|
|
1757
1766
|
if (t instanceof Element && !t.closest(".top-nav-bar__mobile-menu")) {
|
|
1758
1767
|
if (!x.value?.contains(t)) {
|
|
1759
1768
|
rr();
|
|
1760
1769
|
return;
|
|
1761
1770
|
}
|
|
1762
|
-
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]") || (
|
|
1771
|
+
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]") || (W.value = !1), t.closest("[data-top-nav-search]") || (J.value = !1);
|
|
1763
1772
|
}
|
|
1764
1773
|
}
|
|
1765
|
-
function
|
|
1774
|
+
function ur(e) {
|
|
1766
1775
|
if ((e.ctrlKey || e.metaKey) && e.key.toLocaleLowerCase() === "k" && f.searchable) {
|
|
1767
1776
|
e.preventDefault(), ir();
|
|
1768
1777
|
return;
|
|
1769
1778
|
}
|
|
1770
1779
|
if (e.key === "Escape") {
|
|
1771
1780
|
if (H.value) {
|
|
1772
|
-
|
|
1781
|
+
U.value?.hide();
|
|
1773
1782
|
return;
|
|
1774
1783
|
}
|
|
1775
|
-
P.value &&= !1, rr(),
|
|
1784
|
+
P.value &&= !1, rr(), Y.value.searchIconOnly && !q.value.trim() && (oe.value = !1);
|
|
1776
1785
|
}
|
|
1777
1786
|
}
|
|
1778
|
-
function
|
|
1779
|
-
if (!
|
|
1787
|
+
function dr() {
|
|
1788
|
+
if (!Z.value) {
|
|
1780
1789
|
p("user-click", f.user);
|
|
1781
1790
|
return;
|
|
1782
1791
|
}
|
|
1783
|
-
if (
|
|
1792
|
+
if (Q()) {
|
|
1784
1793
|
V.value = !0;
|
|
1785
1794
|
return;
|
|
1786
1795
|
}
|
|
1787
1796
|
V.value = !V.value;
|
|
1788
1797
|
}
|
|
1789
|
-
function
|
|
1790
|
-
if (
|
|
1791
|
-
|
|
1798
|
+
function fr() {
|
|
1799
|
+
if (Q()) {
|
|
1800
|
+
W.value = !0;
|
|
1792
1801
|
return;
|
|
1793
1802
|
}
|
|
1794
|
-
|
|
1803
|
+
W.value = !W.value;
|
|
1795
1804
|
}
|
|
1796
1805
|
return A(() => f.searchValue, (e) => {
|
|
1797
|
-
e !== void 0 && e !==
|
|
1806
|
+
e !== void 0 && e !== q.value && (q.value = e);
|
|
1798
1807
|
}), A(() => f.mobileOpen, (e) => {
|
|
1799
1808
|
e !== void 0 && e !== P.value && (P.value = e);
|
|
1800
1809
|
}), A(P, (e) => p("update:mobileOpen", e)), A([
|
|
1801
|
-
|
|
1810
|
+
X,
|
|
1802
1811
|
() => f.user,
|
|
1803
|
-
|
|
1804
|
-
], () => m(
|
|
1805
|
-
document.addEventListener("keydown",
|
|
1806
|
-
|
|
1812
|
+
je
|
|
1813
|
+
], () => m(cr), { deep: !0 }), A(Fe, () => m(We), { deep: !0 }), y(() => {
|
|
1814
|
+
document.addEventListener("keydown", ur), document.addEventListener("pointerdown", lr), window.addEventListener("resize", cr), window.visualViewport?.addEventListener("resize", cr), window.addEventListener("resize", We), window.addEventListener("scroll", Ue, { passive: !0 }), typeof ResizeObserver < "u" && (ce = new ResizeObserver(cr), T.value && ce.observe(T.value), le = new ResizeObserver(We), E.value && le.observe(E.value)), cr(), m(() => {
|
|
1815
|
+
We(), Ue(), Ge();
|
|
1807
1816
|
});
|
|
1808
1817
|
}), v(() => {
|
|
1809
|
-
document.removeEventListener("keydown",
|
|
1818
|
+
document.removeEventListener("keydown", ur), document.removeEventListener("pointerdown", lr), window.removeEventListener("resize", cr), window.visualViewport?.removeEventListener("resize", cr), window.removeEventListener("resize", We), window.removeEventListener("scroll", Ue), ce?.disconnect(), le?.disconnect(), ue !== void 0 && window.cancelAnimationFrame(ue), de !== void 0 && window.cancelAnimationFrame(de);
|
|
1810
1819
|
}), u({
|
|
1811
1820
|
close: rr,
|
|
1812
1821
|
closeDrawer: () => {
|
|
@@ -1820,15 +1829,15 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
1820
1829
|
ref_key: "rootRef",
|
|
1821
1830
|
ref: x,
|
|
1822
1831
|
class: "top-nav-bar top-solutions-component",
|
|
1823
|
-
style: _(
|
|
1832
|
+
style: _(Ve.value),
|
|
1824
1833
|
"aria-label": "Navegação principal"
|
|
1825
1834
|
}, [
|
|
1826
1835
|
o("header", {
|
|
1827
1836
|
ref_key: "headerRef",
|
|
1828
1837
|
ref: T,
|
|
1829
|
-
class: h(["top-nav-bar__header", { "top-nav-bar__header--context-compact":
|
|
1838
|
+
class: h(["top-nav-bar__header", { "top-nav-bar__header--context-compact": Y.value.hideContextDetails }])
|
|
1830
1839
|
}, [
|
|
1831
|
-
|
|
1840
|
+
Re.value ? (b(), a("button", {
|
|
1832
1841
|
key: 0,
|
|
1833
1842
|
class: "top-nav-bar__mobile-trigger top-nav-bar__square-button",
|
|
1834
1843
|
type: "button",
|
|
@@ -1838,33 +1847,33 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
1838
1847
|
}, [...u[19] ||= [o("i", {
|
|
1839
1848
|
class: "pi pi-bars",
|
|
1840
1849
|
"aria-hidden": "true"
|
|
1841
|
-
}, null, -1)]], 8,
|
|
1842
|
-
o("div",
|
|
1843
|
-
|
|
1844
|
-
|
|
1850
|
+
}, null, -1)]], 8, et)) : i("", !0),
|
|
1851
|
+
o("div", tt, [w(n.$slots, "brand", { compact: Y.value.hideContextDetails })]),
|
|
1852
|
+
Pe.value ? (b(), a("div", nt)) : i("", !0),
|
|
1853
|
+
Pe.value ? (b(), a("div", rt, [Y.value.hideContextDetails && n.$slots["context-compact"] ? w(n.$slots, "context-compact", {
|
|
1845
1854
|
client: s.client,
|
|
1846
1855
|
compact: !0
|
|
1847
1856
|
}, void 0, void 0, 0) : n.$slots.context ? w(n.$slots, "context", {
|
|
1848
1857
|
client: s.client,
|
|
1849
|
-
compact:
|
|
1858
|
+
compact: Y.value.hideContextDetails
|
|
1850
1859
|
}, void 0, void 0, 1) : n.$slots.scope ? w(n.$slots, "scope", {
|
|
1851
1860
|
client: s.client,
|
|
1852
|
-
compact:
|
|
1861
|
+
compact: Y.value.hideContextDetails
|
|
1853
1862
|
}, void 0, void 0, 2) : w(n.$slots, "client", {
|
|
1854
1863
|
client: s.client,
|
|
1855
|
-
compact:
|
|
1856
|
-
}, () => [s.client ? (b(), a("div",
|
|
1864
|
+
compact: Y.value.hideContextDetails
|
|
1865
|
+
}, () => [s.client ? (b(), a("div", it, [s.client.logoUrl ? (b(), a("img", {
|
|
1857
1866
|
key: 0,
|
|
1858
1867
|
src: s.client.logoUrl,
|
|
1859
1868
|
alt: "",
|
|
1860
1869
|
class: "top-nav-bar__client-logo"
|
|
1861
|
-
}, null, 8,
|
|
1870
|
+
}, null, 8, at)) : (b(), a("span", ot, D(He.value), 1)), Y.value.hideContextDetails ? i("", !0) : (b(), a("span", st, [o("span", ct, D(s.client.name), 1), s.client.subtitle ? (b(), a("span", lt, D(s.client.subtitle), 1)) : i("", !0)]))])) : i("", !0)], void 0, 3)])) : i("", !0),
|
|
1862
1871
|
u[24] ||= o("div", {
|
|
1863
1872
|
class: "top-nav-bar__spacer",
|
|
1864
1873
|
"aria-hidden": "true"
|
|
1865
1874
|
}, null, -1),
|
|
1866
|
-
o("div",
|
|
1867
|
-
s.searchable ? (b(), a("div",
|
|
1875
|
+
o("div", ut, [
|
|
1876
|
+
s.searchable ? (b(), a("div", dt, [Y.value.searchIconOnly && !oe.value ? (b(), a("button", {
|
|
1868
1877
|
key: 0,
|
|
1869
1878
|
class: "top-nav-bar__square-button",
|
|
1870
1879
|
type: "button",
|
|
@@ -1876,7 +1885,7 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
1876
1885
|
"aria-hidden": "true"
|
|
1877
1886
|
}, null, -1)]])) : (b(), a("div", {
|
|
1878
1887
|
key: 1,
|
|
1879
|
-
class: h(["top-nav-bar__search", { "top-nav-bar__search--expanded":
|
|
1888
|
+
class: h(["top-nav-bar__search", { "top-nav-bar__search--expanded": oe.value }])
|
|
1880
1889
|
}, [
|
|
1881
1890
|
u[22] ||= o("i", {
|
|
1882
1891
|
class: "pi pi-search",
|
|
@@ -1885,44 +1894,44 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
1885
1894
|
o("input", {
|
|
1886
1895
|
ref_key: "searchInputRef",
|
|
1887
1896
|
ref: k,
|
|
1888
|
-
value:
|
|
1897
|
+
value: q.value,
|
|
1889
1898
|
type: "text",
|
|
1890
1899
|
role: "searchbox",
|
|
1891
1900
|
placeholder: s.searchPlaceholder,
|
|
1892
1901
|
"aria-label": "Pesquisar no menu",
|
|
1893
|
-
onFocus: u[1] ||= (e) =>
|
|
1902
|
+
onFocus: u[1] ||= (e) => J.value = !0,
|
|
1894
1903
|
onBlur: ar,
|
|
1895
|
-
onInput: u[2] ||= (e) =>
|
|
1896
|
-
}, null, 40,
|
|
1897
|
-
|
|
1904
|
+
onInput: u[2] ||= (e) => Ye(e.target.value)
|
|
1905
|
+
}, null, 40, ft),
|
|
1906
|
+
q.value || Y.value.searchIconOnly && oe.value ? (b(), a("button", {
|
|
1898
1907
|
key: 0,
|
|
1899
1908
|
class: "top-nav-bar__search-clear",
|
|
1900
1909
|
type: "button",
|
|
1901
|
-
"aria-label":
|
|
1910
|
+
"aria-label": q.value ? "Limpar pesquisa" : "Fechar pesquisa",
|
|
1902
1911
|
onMousedown: u[3] ||= N(() => {}, ["prevent"]),
|
|
1903
|
-
onClick: u[4] ||= (e) =>
|
|
1912
|
+
onClick: u[4] ||= (e) => q.value ? Xe() : oe.value = !1
|
|
1904
1913
|
}, [...u[21] ||= [o("i", {
|
|
1905
1914
|
class: "pi pi-times",
|
|
1906
1915
|
"aria-hidden": "true"
|
|
1907
|
-
}, null, -1)]], 40,
|
|
1908
|
-
|
|
1909
|
-
items:
|
|
1910
|
-
select:
|
|
1911
|
-
}, () => [(b(!0), a(e, null, C(
|
|
1916
|
+
}, null, -1)]], 40, pt)) : i("", !0),
|
|
1917
|
+
J.value ? (b(), a("div", mt, [o("div", ht, [w(n.$slots, "search-results", {
|
|
1918
|
+
items: _e.value,
|
|
1919
|
+
select: $
|
|
1920
|
+
}, () => [(b(!0), a(e, null, C(_e.value, (e) => (b(), a("button", {
|
|
1912
1921
|
key: e.id,
|
|
1913
1922
|
class: "top-nav-bar__menu-item",
|
|
1914
1923
|
type: "button",
|
|
1915
1924
|
role: "menuitem",
|
|
1916
1925
|
disabled: e.disabled,
|
|
1917
1926
|
onMousedown: u[5] ||= N(() => {}, ["prevent"]),
|
|
1918
|
-
onClick: (t) =>
|
|
1927
|
+
onClick: (t) => $(e)
|
|
1919
1928
|
}, [e.icon ? (b(), a("i", {
|
|
1920
1929
|
key: 0,
|
|
1921
1930
|
class: h(e.icon),
|
|
1922
1931
|
"aria-hidden": "true"
|
|
1923
|
-
}, null, 2)) : i("", !0), o("span", null, D(e.label), 1)], 40,
|
|
1932
|
+
}, null, 2)) : i("", !0), o("span", null, D(e.label), 1)], 40, gt))), 128)), _e.value.length ? i("", !0) : (b(), a("span", _t, "Nenhum item encontrado."))])])])) : i("", !0)
|
|
1924
1933
|
], 2))])) : i("", !0),
|
|
1925
|
-
|
|
1934
|
+
je.value.length ? (b(), a("div", vt, [Y.value.collapseActions ? (b(), a(e, { key: 1 }, [o("button", {
|
|
1926
1935
|
class: "top-nav-bar__square-button",
|
|
1927
1936
|
type: "button",
|
|
1928
1937
|
"aria-label": "Mais ações",
|
|
@@ -1931,17 +1940,17 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
1931
1940
|
}, [...u[23] ||= [o("i", {
|
|
1932
1941
|
class: "pi pi-ellipsis-h",
|
|
1933
1942
|
"aria-hidden": "true"
|
|
1934
|
-
}, null, -1)]], 8,
|
|
1943
|
+
}, null, -1)]], 8, bt), B.value ? (b(), a("div", xt, [o("div", St, [(b(!0), a(e, null, C(je.value, (e) => (b(), a("button", {
|
|
1935
1944
|
key: e.id,
|
|
1936
1945
|
class: "top-nav-bar__menu-item",
|
|
1937
1946
|
type: "button",
|
|
1938
1947
|
role: "menuitem",
|
|
1939
1948
|
disabled: e.disabled,
|
|
1940
|
-
onClick: (t) =>
|
|
1949
|
+
onClick: (t) => Ke(e)
|
|
1941
1950
|
}, [o("i", {
|
|
1942
1951
|
class: h(e.icon),
|
|
1943
1952
|
"aria-hidden": "true"
|
|
1944
|
-
}, null, 2), o("span", null, D(e.label), 1)], 8,
|
|
1953
|
+
}, null, 2), o("span", null, D(e.label), 1)], 8, Ct))), 128))])])) : i("", !0)], 64)) : (b(!0), a(e, { key: 0 }, C(je.value, (e) => (b(), a("button", {
|
|
1945
1954
|
key: e.id,
|
|
1946
1955
|
class: h(["top-nav-bar__square-button", { "top-nav-bar__square-button--active": e.kind === "aia" && s.aiaActive }]),
|
|
1947
1956
|
type: "button",
|
|
@@ -1949,7 +1958,7 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
1949
1958
|
"aria-label": e.label,
|
|
1950
1959
|
"aria-pressed": e.kind === "aia" ? s.aiaActive : void 0,
|
|
1951
1960
|
title: e.label,
|
|
1952
|
-
onClick: (t) =>
|
|
1961
|
+
onClick: (t) => Ke(e)
|
|
1953
1962
|
}, [e.kind === "aia" ? w(n.$slots, "aia-icon", {}, () => [o("i", {
|
|
1954
1963
|
class: h(e.icon),
|
|
1955
1964
|
"aria-hidden": "true"
|
|
@@ -1960,61 +1969,61 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
1960
1969
|
key: 2,
|
|
1961
1970
|
class: h(e.icon),
|
|
1962
1971
|
"aria-hidden": "true"
|
|
1963
|
-
}, null, 2))], 10,
|
|
1964
|
-
n.$slots.actions ? (b(), a("div",
|
|
1965
|
-
compact:
|
|
1972
|
+
}, null, 2))], 10, yt))), 128))])) : i("", !0),
|
|
1973
|
+
n.$slots.actions ? (b(), a("div", wt, [w(n.$slots, "actions", {
|
|
1974
|
+
compact: Y.value.collapseActions,
|
|
1966
1975
|
close: rr
|
|
1967
1976
|
})])) : i("", !0),
|
|
1968
|
-
|
|
1977
|
+
Ne.value ? (b(), a("div", {
|
|
1969
1978
|
key: 3,
|
|
1970
1979
|
class: "top-nav-bar__user-menu",
|
|
1971
1980
|
"data-top-nav-user": "",
|
|
1972
|
-
onMouseenter: u[7] ||= (e) =>
|
|
1973
|
-
onMouseleave: u[8] ||= (e) =>
|
|
1981
|
+
onMouseenter: u[7] ||= (e) => Z.value && Q() && (V.value = !0),
|
|
1982
|
+
onMouseleave: u[8] ||= (e) => Q() && (V.value = !1)
|
|
1974
1983
|
}, [o("button", {
|
|
1975
1984
|
class: "top-nav-bar__user-trigger",
|
|
1976
1985
|
type: "button",
|
|
1977
|
-
"aria-haspopup":
|
|
1978
|
-
"aria-expanded":
|
|
1979
|
-
onClick:
|
|
1986
|
+
"aria-haspopup": Z.value ? "menu" : void 0,
|
|
1987
|
+
"aria-expanded": Z.value ? V.value : void 0,
|
|
1988
|
+
onClick: dr
|
|
1980
1989
|
}, [w(n.$slots, "user", {
|
|
1981
1990
|
user: s.user,
|
|
1982
|
-
compact:
|
|
1991
|
+
compact: Y.value.hideUserName
|
|
1983
1992
|
}, () => [s.user?.avatarUrl ? (b(), a("img", {
|
|
1984
1993
|
key: 0,
|
|
1985
1994
|
src: s.user.avatarUrl,
|
|
1986
1995
|
alt: "",
|
|
1987
1996
|
class: "top-nav-bar__user-avatar"
|
|
1988
|
-
}, null, 8,
|
|
1989
|
-
items:
|
|
1990
|
-
select:
|
|
1991
|
-
}, () => [(b(!0), a(e, null, C(
|
|
1997
|
+
}, null, 8, Et)) : (b(), a("span", Dt, D(ze.value), 1)), s.user && !Y.value.hideUserName ? (b(), a("span", Ot, [o("span", kt, D(s.user.name), 1), s.user.subtitle ? (b(), a("span", At, D(s.user.subtitle), 1)) : i("", !0)])) : i("", !0)]), Z.value ? (b(), a("i", jt)) : i("", !0)], 8, Tt), Z.value && V.value ? (b(), a("div", Mt, [o("div", Nt, [w(n.$slots, "user-menu", {
|
|
1998
|
+
items: Me.value,
|
|
1999
|
+
select: qe
|
|
2000
|
+
}, () => [(b(!0), a(e, null, C(Me.value, (t) => (b(), a(e, { key: t.id }, [t.separator ? (b(), a("div", Pt)) : (b(), a("button", {
|
|
1992
2001
|
key: 1,
|
|
1993
2002
|
class: "top-nav-bar__menu-item",
|
|
1994
2003
|
type: "button",
|
|
1995
2004
|
role: "menuitem",
|
|
1996
2005
|
disabled: t.disabled,
|
|
1997
|
-
onClick: (e) =>
|
|
2006
|
+
onClick: (e) => qe(t)
|
|
1998
2007
|
}, [t.icon ? (b(), a("i", {
|
|
1999
2008
|
key: 0,
|
|
2000
2009
|
class: h(t.icon),
|
|
2001
2010
|
"aria-hidden": "true"
|
|
2002
|
-
}, null, 2)) : i("", !0), o("span", null, D(t.label), 1)], 8,
|
|
2011
|
+
}, null, 2)) : i("", !0), o("span", null, D(t.label), 1)], 8, Ft))], 64))), 128))])])])) : i("", !0)], 32)) : i("", !0)
|
|
2003
2012
|
])
|
|
2004
2013
|
], 2),
|
|
2005
|
-
o("div",
|
|
2014
|
+
o("div", It, [
|
|
2006
2015
|
o("button", {
|
|
2007
2016
|
class: "top-nav-bar__crumb",
|
|
2008
2017
|
type: "button",
|
|
2009
|
-
onClick: u[9] ||= (e) =>
|
|
2010
|
-
}, [l(O(
|
|
2011
|
-
|
|
2012
|
-
|
|
2018
|
+
onClick: u[9] ||= (e) => $(s.homeItem)
|
|
2019
|
+
}, [l(O(Ee), { icon: O(xe) }, null, 8, ["icon"]), o("span", null, D(s.homeItem.label), 1)]),
|
|
2020
|
+
X.value.length ? (b(), a("span", Lt, "/")) : i("", !0),
|
|
2021
|
+
X.value.length ? (b(), a("div", {
|
|
2013
2022
|
key: 1,
|
|
2014
2023
|
class: "top-nav-bar__dropdown top-nav-bar__desktop-navigation",
|
|
2015
2024
|
"data-top-nav-navigation": "",
|
|
2016
|
-
onMouseenter:
|
|
2017
|
-
onMouseleave:
|
|
2025
|
+
onMouseenter: Ze,
|
|
2026
|
+
onMouseleave: Qe
|
|
2018
2027
|
}, [o("button", {
|
|
2019
2028
|
class: "top-nav-bar__crumb",
|
|
2020
2029
|
type: "button",
|
|
@@ -2031,32 +2040,29 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
2031
2040
|
class: "pi pi-chevron-down top-nav-bar__chevron",
|
|
2032
2041
|
"aria-hidden": "true"
|
|
2033
2042
|
}, null, -1)
|
|
2034
|
-
], 8,
|
|
2043
|
+
], 8, Rt), F.value ? (b(), a("div", zt, [o("div", Bt, [o("div", Vt, [(b(!0), a(e, null, C(X.value, (e) => (b(), a("button", {
|
|
2035
2044
|
key: e.id,
|
|
2036
|
-
class: h(["top-nav-bar__menu-item", { "top-nav-bar__menu-item--explored": I.value === e.id }]),
|
|
2045
|
+
class: h(["top-nav-bar__menu-item", { "top-nav-bar__menu-item--explored": e.children?.length && I.value === e.id }]),
|
|
2037
2046
|
type: "button",
|
|
2038
2047
|
role: "menuitem",
|
|
2039
|
-
"aria-haspopup": "menu",
|
|
2040
|
-
"aria-expanded": I.value === e.id,
|
|
2041
|
-
onMouseenter: (t) => Yn(e.id),
|
|
2042
|
-
onClick: (t) => Xn(e.id)
|
|
2048
|
+
"aria-haspopup": e.children?.length ? "menu" : void 0,
|
|
2049
|
+
"aria-expanded": e.children?.length ? I.value === e.id : void 0,
|
|
2050
|
+
onMouseenter: (t) => e.children?.length ? Yn(e.id) : void 0,
|
|
2051
|
+
onClick: (t) => e.children?.length ? Xn(e.id) : $(e)
|
|
2043
2052
|
}, [
|
|
2044
2053
|
e.icon ? (b(), a("i", {
|
|
2045
2054
|
key: 0,
|
|
2046
2055
|
class: h(e.icon),
|
|
2047
2056
|
"aria-hidden": "true"
|
|
2048
2057
|
}, null, 2)) : i("", !0),
|
|
2049
|
-
o("span",
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
"aria-hidden": "true"
|
|
2054
|
-
}, null, -1)
|
|
2055
|
-
], 42, Ut))), 128))]), Oe.value ? (b(), a("div", Kt, [(b(!0), a(e, null, C(Ae.value, (t, n) => (b(), a("div", {
|
|
2058
|
+
o("span", Ut, D(e.label), 1),
|
|
2059
|
+
e.children?.length ? (b(), a("span", Wt, D(e.children.length), 1)) : i("", !0),
|
|
2060
|
+
e.children?.length ? (b(), a("i", Gt)) : i("", !0)
|
|
2061
|
+
], 42, Ht))), 128))]), De.value ? (b(), a("div", Kt, [(b(!0), a(e, null, C(ke.value, (t, n) => (b(), a("div", {
|
|
2056
2062
|
key: `navigation-level-${n}`,
|
|
2057
2063
|
class: h(["top-nav-bar__cascade-level", { "top-nav-bar__section-items": n === 0 }]),
|
|
2058
2064
|
role: "menu"
|
|
2059
|
-
}, [(b(!0), a(e, null, C(
|
|
2065
|
+
}, [(b(!0), a(e, null, C(Ae(t), (t, r) => (b(), a("div", {
|
|
2060
2066
|
key: `navigation-${n}-${r}`,
|
|
2061
2067
|
class: "top-nav-bar__menu-column"
|
|
2062
2068
|
}, [(b(!0), a(e, null, C(t, (e) => (b(), a("button", {
|
|
@@ -2078,29 +2084,29 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
2078
2084
|
o("span", Jt, D(e.label), 1),
|
|
2079
2085
|
e.children?.length ? (b(), a("i", Yt)) : i("", !0)
|
|
2080
2086
|
], 42, qt))), 128))]))), 128))], 2))), 128))])) : i("", !0)])])) : i("", !0)], 32)) : i("", !0),
|
|
2081
|
-
(b(!0), a(e, null, C(
|
|
2082
|
-
class: h(["top-nav-bar__separator", { "top-nav-bar__separator--current": !t.to && n ===
|
|
2087
|
+
(b(!0), a(e, null, C(we.value, (t, n) => (b(), a(e, { key: t.id }, [o("span", {
|
|
2088
|
+
class: h(["top-nav-bar__separator", { "top-nav-bar__separator--current": !t.to && n === we.value.length - 1 }]),
|
|
2083
2089
|
"aria-hidden": "true"
|
|
2084
|
-
}, "/", 2),
|
|
2090
|
+
}, "/", 2), Te(t)?.children?.length ? (b(), a("div", {
|
|
2085
2091
|
key: 0,
|
|
2086
2092
|
class: "top-nav-bar__dropdown top-nav-bar__breadcrumb-dropdown",
|
|
2087
2093
|
"data-top-nav-breadcrumb": "",
|
|
2088
|
-
onMouseenter: (e) => !
|
|
2089
|
-
onMouseleave: u[10] ||= (e) => !
|
|
2090
|
-
}, [
|
|
2094
|
+
onMouseenter: (e) => !se.value && er(t.id),
|
|
2095
|
+
onMouseleave: u[10] ||= (e) => !se.value && tr()
|
|
2096
|
+
}, [se.value ? (b(), a("span", Zt, D(t.label), 1)) : (b(), a("button", {
|
|
2091
2097
|
key: 1,
|
|
2092
2098
|
class: "top-nav-bar__crumb",
|
|
2093
2099
|
type: "button",
|
|
2094
2100
|
"aria-haspopup": "menu",
|
|
2095
2101
|
"aria-expanded": R.value === t.id,
|
|
2096
2102
|
onClick: (e) => nr(t.id)
|
|
2097
|
-
}, [o("span", null, D(t.label), 1), u[
|
|
2103
|
+
}, [o("span", null, D(t.label), 1), u[27] ||= o("i", {
|
|
2098
2104
|
class: "pi pi-chevron-down top-nav-bar__chevron",
|
|
2099
2105
|
"aria-hidden": "true"
|
|
2100
|
-
}, null, -1)], 8, Qt)), !
|
|
2106
|
+
}, null, -1)], 8, Qt)), !se.value && R.value === t.id ? (b(), a("div", $t, [o("div", en, [(b(!0), a(e, null, C(Oe(Te(t)?.children ?? [], z.value), (n, r) => (b(), a("div", {
|
|
2101
2107
|
key: `breadcrumb-${t.id}-${r}`,
|
|
2102
2108
|
class: h(["top-nav-bar__cascade-level", { "top-nav-bar__breadcrumb-main-items": r === 0 }])
|
|
2103
|
-
}, [(b(!0), a(e, null, C(
|
|
2109
|
+
}, [(b(!0), a(e, null, C(Ae(n), (n, s) => (b(), a("div", {
|
|
2104
2110
|
key: `breadcrumb-${t.id}-${r}-${s}`,
|
|
2105
2111
|
class: "top-nav-bar__menu-column"
|
|
2106
2112
|
}, [(b(!0), a(e, null, C(n, (e) => (b(), a("button", {
|
|
@@ -2123,7 +2129,7 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
2123
2129
|
key: 1,
|
|
2124
2130
|
class: "top-nav-bar__crumb",
|
|
2125
2131
|
type: "button",
|
|
2126
|
-
onClick: (e) =>
|
|
2132
|
+
onClick: (e) => $(t)
|
|
2127
2133
|
}, D(t.label), 9, an)) : (b(), a("span", {
|
|
2128
2134
|
key: 2,
|
|
2129
2135
|
class: "top-nav-bar__current",
|
|
@@ -2141,37 +2147,37 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
2141
2147
|
}, null, 2)], 8, cn)) : i("", !0)], 8, on))], 64))), 128)),
|
|
2142
2148
|
o("div", ln, [l(t, {
|
|
2143
2149
|
name: "top-nav-bar-favorites-trigger",
|
|
2144
|
-
css:
|
|
2150
|
+
css: ae.value
|
|
2145
2151
|
}, {
|
|
2146
|
-
default: j(() => [
|
|
2152
|
+
default: j(() => [Ie.value && Fe.value.length ? (b(), a("div", {
|
|
2147
2153
|
key: 0,
|
|
2148
2154
|
class: "top-nav-bar__favorites-menu top-nav-bar__desktop-only",
|
|
2149
2155
|
"data-top-nav-favorites": "",
|
|
2150
|
-
onMouseenter: u[12] ||= (e) =>
|
|
2151
|
-
onMouseleave: u[13] ||= (e) =>
|
|
2156
|
+
onMouseenter: u[12] ||= (e) => Q() && (W.value = !0),
|
|
2157
|
+
onMouseleave: u[13] ||= (e) => Q() && (W.value = !1)
|
|
2152
2158
|
}, [o("button", {
|
|
2153
2159
|
class: "top-nav-bar__crumb",
|
|
2154
2160
|
type: "button",
|
|
2155
2161
|
"aria-haspopup": "menu",
|
|
2156
|
-
"aria-expanded":
|
|
2157
|
-
onClick:
|
|
2162
|
+
"aria-expanded": W.value,
|
|
2163
|
+
onClick: fr
|
|
2158
2164
|
}, [
|
|
2159
|
-
u[
|
|
2165
|
+
u[28] ||= o("i", {
|
|
2160
2166
|
class: "pi pi-star-fill top-nav-bar__accent",
|
|
2161
2167
|
"aria-hidden": "true"
|
|
2162
2168
|
}, null, -1),
|
|
2163
2169
|
o("span", null, D(s.favoriteLabel), 1),
|
|
2164
|
-
u[
|
|
2170
|
+
u[29] ||= o("i", {
|
|
2165
2171
|
class: "pi pi-chevron-down top-nav-bar__chevron",
|
|
2166
2172
|
"aria-hidden": "true"
|
|
2167
2173
|
}, null, -1)
|
|
2168
|
-
], 8, un),
|
|
2174
|
+
], 8, un), W.value ? (b(), a("div", dn, [o("div", fn, [(b(!0), a(e, null, C(Fe.value, (e) => (b(), a("button", {
|
|
2169
2175
|
key: e.id,
|
|
2170
2176
|
class: "top-nav-bar__menu-item",
|
|
2171
2177
|
type: "button",
|
|
2172
2178
|
role: "menuitem",
|
|
2173
2179
|
disabled: e.disabled,
|
|
2174
|
-
onClick: (t) =>
|
|
2180
|
+
onClick: (t) => $(e)
|
|
2175
2181
|
}, [e.icon ? (b(), a("i", {
|
|
2176
2182
|
key: 0,
|
|
2177
2183
|
class: h(e.icon),
|
|
@@ -2189,10 +2195,10 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
2189
2195
|
ref_key: "favoritesMeasureContentRef",
|
|
2190
2196
|
ref: ee,
|
|
2191
2197
|
class: "top-nav-bar__favorites-measure-content"
|
|
2192
|
-
}, [o("span", mn, [u[
|
|
2198
|
+
}, [o("span", mn, [u[30] ||= o("i", {
|
|
2193
2199
|
class: "pi pi-star-fill top-nav-bar__favorites-icon",
|
|
2194
2200
|
"aria-hidden": "true"
|
|
2195
|
-
}, null, -1), o("span", null, D(s.favoriteLabel), 1)]), (b(!0), a(e, null, C(
|
|
2201
|
+
}, null, -1), o("span", null, D(s.favoriteLabel), 1)]), (b(!0), a(e, null, C(Fe.value, (e, t) => (b(), a("span", {
|
|
2196
2202
|
key: `measure-${e.id}`,
|
|
2197
2203
|
class: "top-nav-bar__favorites-measure-item"
|
|
2198
2204
|
}, [t > 0 ? (b(), a("span", hn, "|")) : i("", !0), o("span", null, [e.icon ? (b(), a("i", {
|
|
@@ -2202,16 +2208,16 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
2202
2208
|
}, null, 2)) : i("", !0), c(" " + D(e.label), 1)])]))), 128))], 512)], 512),
|
|
2203
2209
|
l(t, {
|
|
2204
2210
|
name: "top-nav-bar-favorites-row",
|
|
2205
|
-
css:
|
|
2211
|
+
css: ae.value
|
|
2206
2212
|
}, {
|
|
2207
|
-
default: j(() => [
|
|
2213
|
+
default: j(() => [Le.value ? (b(), a("div", gn, [o("span", _n, [u[31] ||= o("i", {
|
|
2208
2214
|
class: "pi pi-star-fill top-nav-bar__favorites-icon",
|
|
2209
2215
|
"aria-hidden": "true"
|
|
2210
|
-
}, null, -1), o("span", null, D(s.favoriteLabel), 1)]), o("div", vn, [(b(!0), a(e, null, C(
|
|
2216
|
+
}, null, -1), o("span", null, D(s.favoriteLabel), 1)]), o("div", vn, [(b(!0), a(e, null, C(Fe.value, (t, n) => (b(), a(e, { key: `row-${t.id}` }, [n > 0 ? (b(), a("span", yn, "|")) : i("", !0), o("button", {
|
|
2211
2217
|
class: "top-nav-bar__favorites-row-item",
|
|
2212
2218
|
type: "button",
|
|
2213
2219
|
disabled: t.disabled,
|
|
2214
|
-
onClick: (e) =>
|
|
2220
|
+
onClick: (e) => $(t)
|
|
2215
2221
|
}, [t.icon ? (b(), a("i", {
|
|
2216
2222
|
key: 0,
|
|
2217
2223
|
class: h(t.icon),
|
|
@@ -2224,7 +2230,7 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
2224
2230
|
"onUpdate:visible": u[16] ||= (e) => P.value = e,
|
|
2225
2231
|
position: "left",
|
|
2226
2232
|
class: "top-nav-bar__mobile-drawer",
|
|
2227
|
-
style: _([
|
|
2233
|
+
style: _([Ve.value, { width: "var(--top-nav-drawer-width, min(22rem, calc(100vw - 1.5rem)))" }])
|
|
2228
2234
|
}, {
|
|
2229
2235
|
container: j(({ closeCallback: d }) => [o("div", xn, [
|
|
2230
2236
|
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", {
|
|
@@ -2232,91 +2238,91 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
2232
2238
|
type: "button",
|
|
2233
2239
|
"aria-label": "Fechar navegação",
|
|
2234
2240
|
onClick: d
|
|
2235
|
-
}, [...u[
|
|
2241
|
+
}, [...u[32] ||= [o("i", {
|
|
2236
2242
|
class: "pi pi-times",
|
|
2237
2243
|
"aria-hidden": "true"
|
|
2238
2244
|
}, null, -1)]], 8, wn)])]),
|
|
2239
|
-
s.searchable ||
|
|
2240
|
-
query:
|
|
2241
|
-
update:
|
|
2242
|
-
clear:
|
|
2245
|
+
s.searchable || je.value.length || n.$slots["drawer-actions"] ? (b(), a("div", Tn, [s.searchable ? w(n.$slots, "drawer-search", {
|
|
2246
|
+
query: q.value,
|
|
2247
|
+
update: Ye,
|
|
2248
|
+
clear: Xe
|
|
2243
2249
|
}, () => [o("div", En, [
|
|
2244
|
-
u[
|
|
2250
|
+
u[34] ||= o("i", {
|
|
2245
2251
|
class: "pi pi-search",
|
|
2246
2252
|
"aria-hidden": "true"
|
|
2247
2253
|
}, null, -1),
|
|
2248
2254
|
o("input", {
|
|
2249
2255
|
ref_key: "mobileSearchInputRef",
|
|
2250
2256
|
ref: M,
|
|
2251
|
-
value:
|
|
2257
|
+
value: q.value,
|
|
2252
2258
|
type: "text",
|
|
2253
2259
|
role: "searchbox",
|
|
2254
2260
|
placeholder: s.searchPlaceholder,
|
|
2255
2261
|
"aria-label": "Pesquisar no menu",
|
|
2256
|
-
onInput: u[14] ||= (e) =>
|
|
2262
|
+
onInput: u[14] ||= (e) => Ye(e.target.value)
|
|
2257
2263
|
}, null, 40, Dn),
|
|
2258
|
-
|
|
2264
|
+
q.value ? (b(), a("button", {
|
|
2259
2265
|
key: 0,
|
|
2260
2266
|
class: "top-nav-bar__search-clear",
|
|
2261
2267
|
type: "button",
|
|
2262
2268
|
"aria-label": "Limpar pesquisa",
|
|
2263
|
-
onClick:
|
|
2264
|
-
}, [...u[
|
|
2269
|
+
onClick: Xe
|
|
2270
|
+
}, [...u[33] ||= [o("i", {
|
|
2265
2271
|
class: "pi pi-times",
|
|
2266
2272
|
"aria-hidden": "true"
|
|
2267
2273
|
}, null, -1)]])) : i("", !0)
|
|
2268
2274
|
])], void 0, 0) : i("", !0), w(n.$slots, "drawer-actions", {
|
|
2269
|
-
actions:
|
|
2270
|
-
select: (e) =>
|
|
2275
|
+
actions: je.value,
|
|
2276
|
+
select: (e) => Ke(e, !0),
|
|
2271
2277
|
close: d
|
|
2272
|
-
}, () => [(b(!0), a(e, null, C(
|
|
2278
|
+
}, () => [(b(!0), a(e, null, C(je.value, (e) => (b(), a("button", {
|
|
2273
2279
|
key: `drawer-${e.id}`,
|
|
2274
2280
|
class: h(["top-nav-bar__drawer-action", { "top-nav-bar__drawer-action--active": e.kind === "aia" && s.aiaActive }]),
|
|
2275
2281
|
type: "button",
|
|
2276
2282
|
disabled: e.disabled,
|
|
2277
|
-
onClick: (t) =>
|
|
2283
|
+
onClick: (t) => Ke(e, !0)
|
|
2278
2284
|
}, [o("i", {
|
|
2279
2285
|
class: h(e.icon),
|
|
2280
2286
|
"aria-hidden": "true"
|
|
2281
2287
|
}, null, 2), o("span", null, D(e.label), 1)], 10, On))), 128))])])) : i("", !0),
|
|
2282
2288
|
o("div", kn, [
|
|
2283
2289
|
w(n.$slots, "drawer-before-menu", { close: d }),
|
|
2284
|
-
o("div", An, [
|
|
2290
|
+
o("div", An, [Fe.value.length ? (b(), a("section", jn, [o("button", {
|
|
2285
2291
|
class: "top-nav-bar__mobile-item",
|
|
2286
2292
|
type: "button",
|
|
2287
|
-
"aria-expanded":
|
|
2288
|
-
onClick: u[15] ||= (e) =>
|
|
2293
|
+
"aria-expanded": G.value,
|
|
2294
|
+
onClick: u[15] ||= (e) => G.value = !G.value
|
|
2289
2295
|
}, [
|
|
2290
|
-
u[
|
|
2296
|
+
u[35] ||= o("i", {
|
|
2291
2297
|
class: "pi pi-star-fill top-nav-bar__accent",
|
|
2292
2298
|
"aria-hidden": "true"
|
|
2293
2299
|
}, null, -1),
|
|
2294
2300
|
o("span", Nn, D(s.favoriteLabel), 1),
|
|
2295
|
-
o("span", Pn, D(
|
|
2301
|
+
o("span", Pn, D(Fe.value.length), 1),
|
|
2296
2302
|
o("i", {
|
|
2297
|
-
class: h(["pi pi-chevron-down top-nav-bar__mobile-chevron", { "top-nav-bar__mobile-chevron--open":
|
|
2303
|
+
class: h(["pi pi-chevron-down top-nav-bar__mobile-chevron", { "top-nav-bar__mobile-chevron--open": G.value }]),
|
|
2298
2304
|
"aria-hidden": "true"
|
|
2299
2305
|
}, null, 2)
|
|
2300
2306
|
], 8, Mn), l(t, { name: "top-nav-bar-menu-expand" }, {
|
|
2301
|
-
default: j(() => [
|
|
2307
|
+
default: j(() => [G.value ? (b(), r($e, {
|
|
2302
2308
|
key: 0,
|
|
2303
|
-
items:
|
|
2309
|
+
items: Fe.value,
|
|
2304
2310
|
"active-item-id": s.activeItemId,
|
|
2305
2311
|
level: 1,
|
|
2306
|
-
onSelect:
|
|
2312
|
+
onSelect: $
|
|
2307
2313
|
}, null, 8, ["items", "active-item-id"])) : i("", !0)]),
|
|
2308
2314
|
_: 1
|
|
2309
2315
|
})])) : i("", !0), w(n.$slots, "drawer-menu", {
|
|
2310
|
-
sections:
|
|
2311
|
-
select:
|
|
2316
|
+
sections: ye.value,
|
|
2317
|
+
select: $,
|
|
2312
2318
|
close: d
|
|
2313
|
-
}, () => [
|
|
2319
|
+
}, () => [ye.value.length ? (b(), r($e, {
|
|
2314
2320
|
key: 0,
|
|
2315
|
-
items:
|
|
2321
|
+
items: ye.value,
|
|
2316
2322
|
"active-item-id": s.activeItemId,
|
|
2317
|
-
"force-open": !!
|
|
2323
|
+
"force-open": !!q.value.trim(),
|
|
2318
2324
|
"show-section-dividers": "",
|
|
2319
|
-
onSelect:
|
|
2325
|
+
onSelect: $
|
|
2320
2326
|
}, null, 8, [
|
|
2321
2327
|
"items",
|
|
2322
2328
|
"active-item-id",
|
|
@@ -2324,7 +2330,7 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
2324
2330
|
])) : (b(), a("div", Fn, "Nenhum menu encontrado."))])]),
|
|
2325
2331
|
w(n.$slots, "drawer-after-menu", { close: d })
|
|
2326
2332
|
]),
|
|
2327
|
-
|
|
2333
|
+
Ne.value || n.$slots["drawer-footer"] ? (b(), a("footer", In, [Ne.value ? w(n.$slots, "drawer-user", {
|
|
2328
2334
|
user: s.user,
|
|
2329
2335
|
client: s.client,
|
|
2330
2336
|
open: H.value,
|
|
@@ -2332,30 +2338,30 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
2332
2338
|
}, () => [o("button", {
|
|
2333
2339
|
class: "top-nav-bar__drawer-user",
|
|
2334
2340
|
type: "button",
|
|
2335
|
-
"aria-haspopup":
|
|
2336
|
-
"aria-expanded":
|
|
2337
|
-
onClick:
|
|
2341
|
+
"aria-haspopup": Z.value ? "menu" : void 0,
|
|
2342
|
+
"aria-expanded": Z.value ? H.value : void 0,
|
|
2343
|
+
onClick: Je
|
|
2338
2344
|
}, [
|
|
2339
2345
|
s.user?.avatarUrl ? (b(), a("img", {
|
|
2340
2346
|
key: 0,
|
|
2341
2347
|
src: s.user.avatarUrl,
|
|
2342
2348
|
alt: "",
|
|
2343
2349
|
class: "top-nav-bar__user-avatar"
|
|
2344
|
-
}, null, 8, Rn)) : (b(), a("span", zn, D(
|
|
2345
|
-
s.user ? (b(), a("span", Bn, [o("span", Vn, D(s.user.name), 1), s.client ? (b(), a("span", Hn, [o("span", Un, [u[
|
|
2350
|
+
}, null, 8, Rn)) : (b(), a("span", zn, D(ze.value), 1)),
|
|
2351
|
+
s.user ? (b(), a("span", Bn, [o("span", Vn, D(s.user.name), 1), s.client ? (b(), a("span", Hn, [o("span", Un, [u[36] ||= o("i", {
|
|
2346
2352
|
class: "pi pi-building",
|
|
2347
2353
|
"aria-hidden": "true"
|
|
2348
2354
|
}, 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),
|
|
2349
|
-
|
|
2355
|
+
Z.value ? (b(), a("i", Gn)) : i("", !0)
|
|
2350
2356
|
], 8, Ln)], void 0, 0) : i("", !0), w(n.$slots, "drawer-footer", { close: d })])) : i("", !0)
|
|
2351
2357
|
])]),
|
|
2352
2358
|
_: 3
|
|
2353
2359
|
}, 8, ["visible", "style"]),
|
|
2354
2360
|
l(O(re), {
|
|
2355
2361
|
ref_key: "drawerUserMenuRef",
|
|
2356
|
-
ref:
|
|
2362
|
+
ref: U,
|
|
2357
2363
|
class: "top-nav-bar__drawer-user-popup",
|
|
2358
|
-
model:
|
|
2364
|
+
model: Be.value,
|
|
2359
2365
|
popup: !0,
|
|
2360
2366
|
"append-to": "body",
|
|
2361
2367
|
"base-z-index": 10001,
|
|
@@ -2389,16 +2395,16 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
2389
2395
|
key: 1,
|
|
2390
2396
|
class: "flex w-full min-w-0 items-start gap-2 overflow-hidden px-2 py-3 text-sm",
|
|
2391
2397
|
style: { "white-space": "normal" }
|
|
2392
|
-
},
|
|
2398
|
+
}, cr = ["title"], lr = {
|
|
2393
2399
|
key: 0,
|
|
2394
2400
|
class: "top-select-option-prefix whitespace-nowrap font-bold text-primary-800 dark:text-primary-100"
|
|
2395
|
-
},
|
|
2401
|
+
}, ur = {
|
|
2396
2402
|
key: 0,
|
|
2397
2403
|
class: "rounded-sm bg-primary-200 p-0 font-bold text-black dark:bg-cyan-700 dark:text-white"
|
|
2398
|
-
},
|
|
2404
|
+
}, dr = {
|
|
2399
2405
|
key: 0,
|
|
2400
2406
|
class: "rounded-sm bg-primary-200 p-0 font-bold text-black dark:bg-cyan-700 dark:text-white"
|
|
2401
|
-
},
|
|
2407
|
+
}, fr = /* @__PURE__ */ u({
|
|
2402
2408
|
inheritAttrs: !1,
|
|
2403
2409
|
__name: "TopSelect",
|
|
2404
2410
|
props: {
|
|
@@ -2481,14 +2487,14 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
2481
2487
|
function re(e) {
|
|
2482
2488
|
return e == null ? "" : typeof f.optionLabel == "function" ? f.optionLabel(e) : ne(e, f.optionLabel);
|
|
2483
2489
|
}
|
|
2484
|
-
function
|
|
2490
|
+
function U(e) {
|
|
2485
2491
|
return f.optionPrefix ? ne(e, f.optionPrefix) : "";
|
|
2486
2492
|
}
|
|
2487
|
-
function
|
|
2488
|
-
let n = re(e), r =
|
|
2493
|
+
function W(e, t = f.showSelectedPrefix) {
|
|
2494
|
+
let n = re(e), r = U(e);
|
|
2489
2495
|
return t && r ? `${r} - ${n}` : n;
|
|
2490
2496
|
}
|
|
2491
|
-
function
|
|
2497
|
+
function G(e) {
|
|
2492
2498
|
let t = k.value;
|
|
2493
2499
|
if (!t) return [{
|
|
2494
2500
|
text: e,
|
|
@@ -2500,36 +2506,36 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
2500
2506
|
highlighted: e.toLowerCase() === t.toLowerCase()
|
|
2501
2507
|
}));
|
|
2502
2508
|
}
|
|
2503
|
-
function
|
|
2509
|
+
function K() {
|
|
2504
2510
|
P.value?.hide?.();
|
|
2505
2511
|
}
|
|
2506
|
-
function
|
|
2512
|
+
function ie() {
|
|
2507
2513
|
typeof window > "u" || window.dispatchEvent(new CustomEvent("top-select:close-others", { detail: { instanceId: L } }));
|
|
2508
2514
|
}
|
|
2509
|
-
function
|
|
2510
|
-
e.detail?.instanceId !== L &&
|
|
2515
|
+
function ae(e) {
|
|
2516
|
+
e.detail?.instanceId !== L && K();
|
|
2511
2517
|
}
|
|
2512
|
-
function
|
|
2518
|
+
function q() {
|
|
2513
2519
|
if (f.disabled || R) {
|
|
2514
|
-
|
|
2520
|
+
K();
|
|
2515
2521
|
return;
|
|
2516
2522
|
}
|
|
2517
|
-
N.value = !0,
|
|
2523
|
+
N.value = !0, ie();
|
|
2518
2524
|
}
|
|
2519
|
-
function
|
|
2520
|
-
f.closeOnSelect && (N.value = !1,
|
|
2521
|
-
|
|
2525
|
+
function J() {
|
|
2526
|
+
f.closeOnSelect && (N.value = !1, K(), m(K), R && clearTimeout(R), R = setTimeout(() => {
|
|
2527
|
+
K(), R = null;
|
|
2522
2528
|
}, 200));
|
|
2523
2529
|
}
|
|
2524
|
-
return r({ hideDropdown:
|
|
2525
|
-
window.removeEventListener("top-select:close-others",
|
|
2530
|
+
return r({ hideDropdown: K }), y(() => window.addEventListener("top-select:close-others", ae)), v(() => {
|
|
2531
|
+
window.removeEventListener("top-select:close-others", ae), R && clearTimeout(R);
|
|
2526
2532
|
}), A(() => f.disabled, (e) => {
|
|
2527
|
-
e && (N.value = !1,
|
|
2533
|
+
e && (N.value = !1, K());
|
|
2528
2534
|
}), A(() => f.options, () => {
|
|
2529
|
-
N.value ||
|
|
2535
|
+
N.value || K();
|
|
2530
2536
|
}), (n, r) => (b(), a("div", {
|
|
2531
2537
|
class: h(["top-select top-solutions-component relative w-full", { "pointer-events-none": t.disabled }]),
|
|
2532
|
-
onFocusin:
|
|
2538
|
+
onFocusin: q
|
|
2533
2539
|
}, [o("span", Yn, [w(n.$slots, "icon", { loading: t.loading }, () => [t.loading ? (b(), a("i", Xn)) : (b(), a("i", Zn))])]), l(O(E), p({
|
|
2534
2540
|
ref_key: "autocompleteRef",
|
|
2535
2541
|
ref: P
|
|
@@ -2540,7 +2546,7 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
2540
2546
|
"option-group-children": t.optionGroupChildren ?? void 0,
|
|
2541
2547
|
suggestions: t.options,
|
|
2542
2548
|
"data-key": t.optionKey,
|
|
2543
|
-
"option-label": (e) =>
|
|
2549
|
+
"option-label": (e) => W(e),
|
|
2544
2550
|
placeholder: t.placeholder,
|
|
2545
2551
|
multiple: t.multiple,
|
|
2546
2552
|
"min-length": t.minQueryLength,
|
|
@@ -2587,14 +2593,14 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
2587
2593
|
k.value = "", _("clear");
|
|
2588
2594
|
},
|
|
2589
2595
|
onItemSelect: r[2] ||= (e) => {
|
|
2590
|
-
k.value = "", _("select", e),
|
|
2596
|
+
k.value = "", _("select", e), J();
|
|
2591
2597
|
},
|
|
2592
2598
|
onComplete: r[3] ||= (e) => {
|
|
2593
2599
|
if (t.disabled) {
|
|
2594
|
-
|
|
2600
|
+
K();
|
|
2595
2601
|
return;
|
|
2596
2602
|
}
|
|
2597
|
-
k.value = e.query ?? "",
|
|
2603
|
+
k.value = e.query ?? "", ie(), _("search", {
|
|
2598
2604
|
...e,
|
|
2599
2605
|
query: k.value
|
|
2600
2606
|
});
|
|
@@ -2604,26 +2610,26 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
2604
2610
|
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", {
|
|
2605
2611
|
class: "pi pi-times-circle shrink-0 cursor-pointer rounded-full hover:bg-primary-800",
|
|
2606
2612
|
onClick: (t) => e.removeCallback(t)
|
|
2607
|
-
}, null, 8, er), M((b(), a("span", tr, [c(D(
|
|
2613
|
+
}, null, 8, er), M((b(), a("span", tr, [c(D(W(e.value)), 1)])), [[
|
|
2608
2614
|
O(F),
|
|
2609
|
-
|
|
2615
|
+
W(e.value),
|
|
2610
2616
|
void 0,
|
|
2611
2617
|
{ top: !0 }
|
|
2612
2618
|
]])])]))]),
|
|
2613
2619
|
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))]),
|
|
2614
|
-
"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(
|
|
2620
|
+
"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(W(e.item)), 1)) : i("", !0)]),
|
|
2615
2621
|
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", {
|
|
2616
2622
|
key: 0,
|
|
2617
2623
|
class: h(e.option.icon)
|
|
2618
2624
|
}, null, 2)) : i("", !0), o("span", null, D(e.option[t.optionGroupLabel ?? "label"]), 1)]))]),
|
|
2619
2625
|
option: j((s) => [O(x).option ? w(n.$slots, "option", p(s, {
|
|
2620
2626
|
label: re(s.option),
|
|
2621
|
-
prefix:
|
|
2627
|
+
prefix: U(s.option),
|
|
2622
2628
|
query: k.value
|
|
2623
2629
|
}), void 0, void 0, 0) : M((b(), a("div", sr, [o("span", {
|
|
2624
2630
|
class: "top-select-option-label line-clamp-2 min-w-0 flex-1 text-secondary-700 dark:text-zinc-200",
|
|
2625
2631
|
title: re(s.option)
|
|
2626
|
-
}, [t.showOptionPrefix &&
|
|
2632
|
+
}, [t.showOptionPrefix && U(s.option) ? (b(), a("span", lr, [(b(!0), a(e, null, C(G(U(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)), 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(G(re(s.option)), (t, n) => (b(), a(e, { key: n }, [t.highlighted ? (b(), a("mark", dr, D(t.text), 1)) : (b(), a(e, { key: 1 }, [c(D(t.text), 1)], 64))], 64))), 128))], 8, cr)])), [[
|
|
2627
2633
|
O(F),
|
|
2628
2634
|
t.showTooltip ? re(s.option) : null,
|
|
2629
2635
|
void 0,
|
|
@@ -2652,7 +2658,7 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
2652
2658
|
"pt"
|
|
2653
2659
|
])], 34));
|
|
2654
2660
|
}
|
|
2655
|
-
}),
|
|
2661
|
+
}), pr = /* @__PURE__ */ u({
|
|
2656
2662
|
inheritAttrs: !1,
|
|
2657
2663
|
__name: "TopTabs",
|
|
2658
2664
|
props: {
|
|
@@ -2673,15 +2679,15 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
2673
2679
|
function o(e) {
|
|
2674
2680
|
return String(e.value);
|
|
2675
2681
|
}
|
|
2676
|
-
return (n, s) => (b(), r(O(
|
|
2682
|
+
return (n, s) => (b(), r(O(ie), p(n.$attrs, {
|
|
2677
2683
|
class: "top-tabs top-solutions-component w-full min-w-0",
|
|
2678
2684
|
value: t.modelValue,
|
|
2679
2685
|
lazy: t.lazy,
|
|
2680
2686
|
scrollable: t.scrollable,
|
|
2681
2687
|
"onUpdate:value": s[0] ||= (e) => i("update:modelValue", e)
|
|
2682
2688
|
}), {
|
|
2683
|
-
default: j(() => [l(O(
|
|
2684
|
-
default: j(() => [(b(!0), a(e, null, C(t.tabs, (e) => (b(), r(O(
|
|
2689
|
+
default: j(() => [l(O(W), null, {
|
|
2690
|
+
default: j(() => [(b(!0), a(e, null, C(t.tabs, (e) => (b(), r(O(U), {
|
|
2685
2691
|
key: e.value,
|
|
2686
2692
|
value: e.value,
|
|
2687
2693
|
disabled: e.disabled
|
|
@@ -2690,8 +2696,8 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
2690
2696
|
_: 2
|
|
2691
2697
|
}, 1032, ["value", "disabled"]))), 128))]),
|
|
2692
2698
|
_: 1
|
|
2693
|
-
}), l(O(
|
|
2694
|
-
default: j(() => [(b(!0), a(e, null, C(t.tabs, (e) => (b(), r(O(
|
|
2699
|
+
}), l(O(K), null, {
|
|
2700
|
+
default: j(() => [(b(!0), a(e, null, C(t.tabs, (e) => (b(), r(O(G), {
|
|
2695
2701
|
key: e.value,
|
|
2696
2702
|
value: e.value
|
|
2697
2703
|
}, {
|
|
@@ -2713,12 +2719,12 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
2713
2719
|
});
|
|
2714
2720
|
//#endregion
|
|
2715
2721
|
//#region src/components/internal/topAccordion.ts
|
|
2716
|
-
function
|
|
2722
|
+
function mr(e, t) {
|
|
2717
2723
|
return `${e}--section-${encodeURIComponent(String(t))}`;
|
|
2718
2724
|
}
|
|
2719
2725
|
//#endregion
|
|
2720
2726
|
//#region src/components/TopAccordion.vue?vue&type=script&setup=true&lang.ts
|
|
2721
|
-
var
|
|
2727
|
+
var hr = Symbol("top-accordion-context"), gr = /* @__PURE__ */ u({
|
|
2722
2728
|
inheritAttrs: !1,
|
|
2723
2729
|
__name: "TopAccordion",
|
|
2724
2730
|
props: {
|
|
@@ -2743,7 +2749,7 @@ var mr = Symbol("top-accordion-context"), hr = /* @__PURE__ */ u({
|
|
|
2743
2749
|
return s.value.includes(e);
|
|
2744
2750
|
}
|
|
2745
2751
|
function g(e) {
|
|
2746
|
-
return
|
|
2752
|
+
return mr(i.id, e);
|
|
2747
2753
|
}
|
|
2748
2754
|
function _(e) {
|
|
2749
2755
|
s.value = Array.isArray(e) ? e : e == null ? [] : [e];
|
|
@@ -2759,7 +2765,7 @@ var mr = Symbol("top-accordion-context"), hr = /* @__PURE__ */ u({
|
|
|
2759
2765
|
behavior: t.behavior ?? "smooth"
|
|
2760
2766
|
}), !0;
|
|
2761
2767
|
}
|
|
2762
|
-
return x(
|
|
2768
|
+
return x(hr, {
|
|
2763
2769
|
accordionId: i.id,
|
|
2764
2770
|
sections: c,
|
|
2765
2771
|
openSections: s,
|
|
@@ -2774,7 +2780,7 @@ var mr = Symbol("top-accordion-context"), hr = /* @__PURE__ */ u({
|
|
|
2774
2780
|
ref_key: "rootRef",
|
|
2775
2781
|
ref: u,
|
|
2776
2782
|
class: "top-accordion top-solutions-component"
|
|
2777
|
-
}, [l(O(
|
|
2783
|
+
}, [l(O(ae), p(t.$attrs, {
|
|
2778
2784
|
value: d.value,
|
|
2779
2785
|
multiple: e.multiple,
|
|
2780
2786
|
"expand-icon": "pi pi-chevron-down",
|
|
@@ -2786,11 +2792,11 @@ var mr = Symbol("top-accordion-context"), hr = /* @__PURE__ */ u({
|
|
|
2786
2792
|
_: 3
|
|
2787
2793
|
}, 16, ["value", "multiple"])], 512));
|
|
2788
2794
|
}
|
|
2789
|
-
}),
|
|
2795
|
+
}), _r = {
|
|
2790
2796
|
key: 0,
|
|
2791
2797
|
class: "top-accordion-summary__separator",
|
|
2792
2798
|
"aria-hidden": "true"
|
|
2793
|
-
},
|
|
2799
|
+
}, vr = { class: "top-accordion-summary__item" }, yr = /* @__PURE__ */ u({
|
|
2794
2800
|
__name: "TopAccordionSummary",
|
|
2795
2801
|
props: {
|
|
2796
2802
|
items: { default: () => [] },
|
|
@@ -2811,12 +2817,12 @@ var mr = Symbol("top-accordion-context"), hr = /* @__PURE__ */ u({
|
|
|
2811
2817
|
return (r, s) => t.visible && (t.items.length || r.$slots.default) ? (b(), a("div", {
|
|
2812
2818
|
key: 0,
|
|
2813
2819
|
class: h(["top-accordion-summary", { "top-accordion-summary--nowrap": t.nowrap }])
|
|
2814
|
-
}, [(b(!0), a(e, null, C(t.items, (t, r) => (b(), a(e, { key: `${t.label}-${r}` }, [r > 0 ? (b(), a("span",
|
|
2820
|
+
}, [(b(!0), a(e, null, C(t.items, (t, r) => (b(), a(e, { key: `${t.label}-${r}` }, [r > 0 ? (b(), a("span", _r)) : i("", !0), o("span", vr, [o("strong", null, D(t.label) + ":", 1), c(" " + D(n(t)), 1)])], 64))), 128)), w(r.$slots, "default")], 2)) : i("", !0);
|
|
2815
2821
|
}
|
|
2816
|
-
}),
|
|
2822
|
+
}), br = ["id"], xr = { class: "top-accordion-panel__heading" }, Sr = { class: "top-accordion-panel__title-row" }, Cr = {
|
|
2817
2823
|
class: "top-accordion-panel__badge",
|
|
2818
2824
|
"aria-hidden": "true"
|
|
2819
|
-
},
|
|
2825
|
+
}, wr = { key: 1 }, Tr = { class: "top-accordion-panel__title" }, Er = ["aria-label"], Dr = { class: "top-accordion-panel__content" }, Or = /* @__PURE__ */ u({
|
|
2820
2826
|
inheritAttrs: !1,
|
|
2821
2827
|
__name: "TopAccordionPanel",
|
|
2822
2828
|
props: {
|
|
@@ -2828,24 +2834,24 @@ var mr = Symbol("top-accordion-context"), hr = /* @__PURE__ */ u({
|
|
|
2828
2834
|
statusLabel: { default: "" }
|
|
2829
2835
|
},
|
|
2830
2836
|
setup(e) {
|
|
2831
|
-
let t = e, r = f(
|
|
2837
|
+
let t = e, r = f(hr);
|
|
2832
2838
|
if (!r) throw Error("TopAccordionPanel deve ser usado dentro de TopAccordion.");
|
|
2833
2839
|
let s = n(() => r.getSection(t.value)), u = n(() => t.title || s.value?.label || String(t.value)), d = n(() => t.icon || s.value?.icon || ""), m = n(() => !!s.value?.disabled), g = n(() => r.sections.value.findIndex((e) => e.value === t.value) + 1), _ = n(() => r.isOpen(t.value)), v = n(() => r.getAnchorId(t.value)), y = n(() => t.status === "valid" ? "pi pi-check-circle" : "pi pi-times-circle"), x = n(() => t.status === "valid" ? "top-accordion-panel__status--valid" : "top-accordion-panel__status--error");
|
|
2834
2840
|
return (t, n) => (b(), a("div", {
|
|
2835
2841
|
id: v.value,
|
|
2836
2842
|
class: "top-accordion-panel-anchor"
|
|
2837
|
-
}, [l(O(
|
|
2843
|
+
}, [l(O(oe), p(t.$attrs, {
|
|
2838
2844
|
value: e.value,
|
|
2839
2845
|
disabled: m.value,
|
|
2840
2846
|
class: "top-accordion-panel"
|
|
2841
2847
|
}), {
|
|
2842
|
-
default: j(() => [l(O(
|
|
2843
|
-
default: j(() => [o("div",
|
|
2844
|
-
o("span",
|
|
2848
|
+
default: j(() => [l(O(J), { class: "top-accordion-panel__header" }, {
|
|
2849
|
+
default: j(() => [o("div", xr, [o("div", Sr, [
|
|
2850
|
+
o("span", Cr, [w(t.$slots, "icon", {}, () => [d.value ? (b(), a("i", {
|
|
2845
2851
|
key: 0,
|
|
2846
2852
|
class: h(d.value)
|
|
2847
|
-
}, null, 2)) : (b(), a("span",
|
|
2848
|
-
o("span",
|
|
2853
|
+
}, null, 2)) : (b(), a("span", wr, D(g.value), 1))])]),
|
|
2854
|
+
o("span", Tr, [w(t.$slots, "title", {}, () => [c(D(u.value), 1)])]),
|
|
2849
2855
|
w(t.$slots, "status", {}, () => [e.status ? (b(), a("i", {
|
|
2850
2856
|
key: 0,
|
|
2851
2857
|
class: h([
|
|
@@ -2855,27 +2861,27 @@ var mr = Symbol("top-accordion-context"), hr = /* @__PURE__ */ u({
|
|
|
2855
2861
|
]),
|
|
2856
2862
|
"aria-label": e.statusLabel || (e.status === "valid" ? "Seção válida" : "Existem erros na seção"),
|
|
2857
2863
|
role: "img"
|
|
2858
|
-
}, null, 10,
|
|
2859
|
-
]), t.$slots.preview ? w(t.$slots, "preview", { open: _.value }, void 0, void 0, 0) : w(t.$slots, "summary", { open: _.value }, () => [l(
|
|
2864
|
+
}, null, 10, Er)) : i("", !0)])
|
|
2865
|
+
]), t.$slots.preview ? w(t.$slots, "preview", { open: _.value }, void 0, void 0, 0) : w(t.$slots, "summary", { open: _.value }, () => [l(yr, {
|
|
2860
2866
|
items: e.summary,
|
|
2861
2867
|
visible: !_.value
|
|
2862
2868
|
}, null, 8, ["items", "visible"])], void 0, 1)])]),
|
|
2863
2869
|
_: 3
|
|
2864
|
-
}), l(O(
|
|
2865
|
-
default: j(() => [o("div",
|
|
2870
|
+
}), l(O(q), null, {
|
|
2871
|
+
default: j(() => [o("div", Dr, [w(t.$slots, "default")])]),
|
|
2866
2872
|
_: 3
|
|
2867
2873
|
})]),
|
|
2868
2874
|
_: 3
|
|
2869
|
-
}, 16, ["value", "disabled"])], 8,
|
|
2875
|
+
}, 16, ["value", "disabled"])], 8, br));
|
|
2870
2876
|
}
|
|
2871
|
-
}),
|
|
2877
|
+
}), kr = { class: "top-accordion-navigator__items" }, Ar = [
|
|
2872
2878
|
"disabled",
|
|
2873
2879
|
"aria-current",
|
|
2874
2880
|
"onClick"
|
|
2875
|
-
],
|
|
2881
|
+
], jr = { class: "top-accordion-navigator__badge" }, Mr = {
|
|
2876
2882
|
key: 0,
|
|
2877
2883
|
class: "pi pi-lock"
|
|
2878
|
-
},
|
|
2884
|
+
}, Nr = { key: 2 }, Pr = { class: "top-accordion-navigator__label" }, Fr = /* @__PURE__ */ u({
|
|
2879
2885
|
__name: "TopAccordionNavigator",
|
|
2880
2886
|
props: {
|
|
2881
2887
|
accordionId: {},
|
|
@@ -2911,7 +2917,7 @@ var mr = Symbol("top-accordion-context"), hr = /* @__PURE__ */ u({
|
|
|
2911
2917
|
async function E(e) {
|
|
2912
2918
|
if (e.disabled) return;
|
|
2913
2919
|
x(e.value) || (g.value = [...g.value, e.value]), c("navigate", e), await m(), await new Promise((e) => requestAnimationFrame(() => e()));
|
|
2914
|
-
let t = document.getElementById(
|
|
2920
|
+
let t = document.getElementById(mr(s.accordionId, e.value));
|
|
2915
2921
|
t && window.scrollTo({
|
|
2916
2922
|
top: t.getBoundingClientRect().top + window.scrollY - s.scrollOffset,
|
|
2917
2923
|
behavior: "smooth"
|
|
@@ -2950,7 +2956,7 @@ var mr = Symbol("top-accordion-context"), hr = /* @__PURE__ */ u({
|
|
|
2950
2956
|
ref_key: "containerRef",
|
|
2951
2957
|
ref: l,
|
|
2952
2958
|
class: "top-accordion-navigator__scroll-area"
|
|
2953
|
-
}, [o("div",
|
|
2959
|
+
}, [o("div", kr, [(b(!0), a(e, null, C(t.sections, (n, r) => (b(), a(e, { key: n.value }, [o("button", {
|
|
2954
2960
|
class: h(["top-accordion-navigator__item", {
|
|
2955
2961
|
"top-accordion-navigator__item--open": x(n.value),
|
|
2956
2962
|
"top-accordion-navigator__item--disabled": n.disabled
|
|
@@ -2959,20 +2965,20 @@ var mr = Symbol("top-accordion-context"), hr = /* @__PURE__ */ u({
|
|
|
2959
2965
|
type: "button",
|
|
2960
2966
|
"aria-current": x(n.value) ? "step" : void 0,
|
|
2961
2967
|
onClick: (e) => E(n)
|
|
2962
|
-
}, [o("span",
|
|
2968
|
+
}, [o("span", jr, [n.disabled ? (b(), a("i", Mr)) : n.icon ? (b(), a("i", {
|
|
2963
2969
|
key: 1,
|
|
2964
2970
|
class: h(n.icon)
|
|
2965
|
-
}, null, 2)) : (b(), a("span",
|
|
2971
|
+
}, null, 2)) : (b(), a("span", Nr, D(r + 1), 1))]), o("span", Pr, D(n.label), 1)], 10, Ar), r < t.sections.length - 1 ? (b(), a("span", {
|
|
2966
2972
|
key: 0,
|
|
2967
2973
|
class: h(["top-accordion-navigator__connector", { "top-accordion-navigator__connector--open": x(n.value) && x(t.sections[r + 1].value) }]),
|
|
2968
2974
|
"aria-hidden": "true"
|
|
2969
2975
|
}, null, 2)) : i("", !0)], 64))), 128))])], 512)
|
|
2970
2976
|
], 6));
|
|
2971
2977
|
}
|
|
2972
|
-
}),
|
|
2978
|
+
}), Ir = { class: "top-toast__content" }, Lr = { class: "top-toast__detail" }, Rr = ["onClick"], zr = {
|
|
2973
2979
|
key: 0,
|
|
2974
2980
|
class: "top-toast__footer"
|
|
2975
|
-
},
|
|
2981
|
+
}, Br = /* @__PURE__ */ u({
|
|
2976
2982
|
__name: "TopToast",
|
|
2977
2983
|
props: { baseZIndex: { default: 3e4 } },
|
|
2978
2984
|
setup(e) {
|
|
@@ -2994,13 +3000,13 @@ var mr = Symbol("top-accordion-context"), hr = /* @__PURE__ */ u({
|
|
|
2994
3000
|
function d(e, t) {
|
|
2995
3001
|
return `top-toast__${t}--${e.severity ?? "info"}`;
|
|
2996
3002
|
}
|
|
2997
|
-
return (f, p) => (b(), r(O(
|
|
3003
|
+
return (f, p) => (b(), r(O(se), {
|
|
2998
3004
|
position: "top-right",
|
|
2999
3005
|
"base-z-index": e.baseZIndex
|
|
3000
3006
|
}, {
|
|
3001
|
-
message: j((e) => [o("div",
|
|
3007
|
+
message: j((e) => [o("div", Ir, [
|
|
3002
3008
|
o("div", { class: h(["top-toast__summary", d(e.message, "summary")]) }, D(e.message.summary), 3),
|
|
3003
|
-
o("div",
|
|
3009
|
+
o("div", Lr, D(e.message.detail), 1),
|
|
3004
3010
|
u(e.message) ? w(f.$slots, "action", {
|
|
3005
3011
|
action: n(e.message),
|
|
3006
3012
|
message: e.message,
|
|
@@ -3014,17 +3020,17 @@ var mr = Symbol("top-accordion-context"), hr = /* @__PURE__ */ u({
|
|
|
3014
3020
|
key: 0,
|
|
3015
3021
|
class: h(n(e.message)?.icon),
|
|
3016
3022
|
"aria-hidden": "true"
|
|
3017
|
-
}, null, 2)) : i("", !0), c(" " + D(n(e.message)?.label), 1)], 10,
|
|
3023
|
+
}, null, 2)) : i("", !0), c(" " + D(n(e.message)?.label), 1)], 10, Rr)) : i("", !0)], void 0, 0) : i("", !0),
|
|
3018
3024
|
l(e.message) ? w(f.$slots, "footer", {
|
|
3019
3025
|
message: e.message,
|
|
3020
3026
|
footer: t(e.message)
|
|
3021
|
-
}, () => [t(e.message) === void 0 ? i("", !0) : (b(), a("div",
|
|
3027
|
+
}, () => [t(e.message) === void 0 ? i("", !0) : (b(), a("div", zr, D(t(e.message)), 1))], void 0, 1) : i("", !0)
|
|
3022
3028
|
])]),
|
|
3023
3029
|
_: 3
|
|
3024
3030
|
}, 8, ["base-z-index"]));
|
|
3025
3031
|
}
|
|
3026
3032
|
});
|
|
3027
3033
|
//#endregion
|
|
3028
|
-
export {
|
|
3034
|
+
export { gr as a, Jn as c, Ve as d, ye as f, ce as h, yr as i, Ye as l, le as m, Fr as n, pr as o, me as p, Or as r, fr as s, Br as t, Q as u };
|
|
3029
3035
|
|
|
3030
|
-
//# sourceMappingURL=TopToast-
|
|
3036
|
+
//# sourceMappingURL=TopToast-BHqigMPQ.js.map
|