@topjoao/top-design-system 0.1.2-beta.1 → 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/dist/{TopToast-Dw5MKTR2.js → TopToast-BHqigMPQ.js} +443 -438
- package/dist/{TopToast-Dw5MKTR2.js.map → TopToast-BHqigMPQ.js.map} +1 -1
- package/dist/TopToast-ol9v4Ihn.cjs +2 -0
- package/dist/{TopToast-CWJSJl4P.cjs.map → TopToast-ol9v4Ihn.cjs.map} +1 -1
- package/dist/components/TopNavBar.vue.d.ts +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/plugin.cjs +1 -1
- package/dist/plugin.js +1 -1
- package/package.json +1 -1
- package/dist/TopToast-CWJSJl4P.cjs +0 -2
|
@@ -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 = [
|
|
@@ -1453,15 +1461,15 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
1453
1461
|
"user-click"
|
|
1454
1462
|
],
|
|
1455
1463
|
setup(s, { expose: u, emit: d }) {
|
|
1456
|
-
let f = s, p = d, g = te(), x = S(null), T = S(null), E = S(null), ee = S(null), k = S(null), M = S(null), P = S(f.mobileOpen ?? !1), F = S(!1), I = S(null), L = S([]), R = S(null), z = S([]), B = S(!1), V = S(!1), H = S(!1),
|
|
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({
|
|
1457
1465
|
collapseActions: !1,
|
|
1458
1466
|
searchIconOnly: !1,
|
|
1459
1467
|
hideUserName: !1,
|
|
1460
1468
|
hideContextDetails: !1
|
|
1461
|
-
}), le, ue, de, fe
|
|
1462
|
-
function
|
|
1469
|
+
}), ce, le, ue, de, fe = 0;
|
|
1470
|
+
function pe(e) {
|
|
1463
1471
|
return (e.children ?? []).filter(Boolean).map((e) => {
|
|
1464
|
-
let t =
|
|
1472
|
+
let t = pe(e);
|
|
1465
1473
|
if (!t.length) {
|
|
1466
1474
|
let { children: t, ...n } = e;
|
|
1467
1475
|
return n;
|
|
@@ -1472,63 +1480,63 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
1472
1480
|
};
|
|
1473
1481
|
});
|
|
1474
1482
|
}
|
|
1475
|
-
let
|
|
1483
|
+
let X = n(() => f.sections.map((e) => e.children === void 0 ? e : {
|
|
1476
1484
|
...e,
|
|
1477
|
-
children:
|
|
1478
|
-
})
|
|
1479
|
-
function
|
|
1485
|
+
children: pe(e)
|
|
1486
|
+
}).filter((e) => e.children === void 0 || e.children.length > 0));
|
|
1487
|
+
function me(e, t = []) {
|
|
1480
1488
|
return e.forEach((e) => {
|
|
1481
1489
|
let n = e.children ?? [];
|
|
1482
|
-
n.length ?
|
|
1490
|
+
n.length ? me(n, t) : t.push(e);
|
|
1483
1491
|
}), t;
|
|
1484
1492
|
}
|
|
1485
|
-
let
|
|
1486
|
-
function
|
|
1493
|
+
let he = n(() => me(X.value));
|
|
1494
|
+
function ge(e) {
|
|
1487
1495
|
return e.normalize("NFD").replace(/[\u0300-\u036f]/g, "").toLocaleLowerCase("pt-BR");
|
|
1488
1496
|
}
|
|
1489
|
-
let
|
|
1497
|
+
let _e = n(() => {
|
|
1490
1498
|
if (f.searchResults !== void 0) return f.searchResults;
|
|
1491
|
-
let e =
|
|
1492
|
-
return e ?
|
|
1499
|
+
let e = ge(q.value.trim());
|
|
1500
|
+
return e ? he.value.filter((t) => ge(t.label).includes(e)) : he.value;
|
|
1493
1501
|
});
|
|
1494
|
-
function
|
|
1502
|
+
function ve(e, t) {
|
|
1495
1503
|
return t ? e.flatMap((e) => {
|
|
1496
|
-
let n =
|
|
1504
|
+
let n = ge(e.label).includes(t), r = ve(e.children ?? [], t);
|
|
1497
1505
|
return !n && !r.length ? [] : [{
|
|
1498
1506
|
...e,
|
|
1499
1507
|
children: n ? e.children : r
|
|
1500
1508
|
}];
|
|
1501
1509
|
}) : e;
|
|
1502
1510
|
}
|
|
1503
|
-
let
|
|
1504
|
-
function
|
|
1511
|
+
let ye = n(() => ve(X.value, ge(q.value.trim())));
|
|
1512
|
+
function be(e, t, n = []) {
|
|
1505
1513
|
for (let r of e) {
|
|
1506
1514
|
let e = [...n, r];
|
|
1507
1515
|
if (r.id === t) return e;
|
|
1508
|
-
let i =
|
|
1516
|
+
let i = be(r.children ?? [], t, e);
|
|
1509
1517
|
if (i) return i;
|
|
1510
1518
|
}
|
|
1511
1519
|
return null;
|
|
1512
1520
|
}
|
|
1513
|
-
function
|
|
1521
|
+
function Se(e, t) {
|
|
1514
1522
|
for (let n of e) {
|
|
1515
1523
|
if (n.id === t) return n;
|
|
1516
|
-
let e =
|
|
1524
|
+
let e = Se(n.children ?? [], t);
|
|
1517
1525
|
if (e) return e;
|
|
1518
1526
|
}
|
|
1519
1527
|
return null;
|
|
1520
1528
|
}
|
|
1521
|
-
let
|
|
1529
|
+
let Ce = n(() => {
|
|
1522
1530
|
if (!f.activeItemId) return null;
|
|
1523
|
-
for (let e of
|
|
1531
|
+
for (let e of X.value) {
|
|
1524
1532
|
if (e.id === f.activeItemId) return [e];
|
|
1525
|
-
let t =
|
|
1533
|
+
let t = be(e.children ?? [], f.activeItemId);
|
|
1526
1534
|
if (t) return [e, ...t];
|
|
1527
1535
|
}
|
|
1528
1536
|
return null;
|
|
1529
|
-
}),
|
|
1537
|
+
}), we = n(() => {
|
|
1530
1538
|
if (f.breadcrumbs.length) return f.breadcrumbs;
|
|
1531
|
-
let e =
|
|
1539
|
+
let e = Ce.value;
|
|
1532
1540
|
if (!e?.length) return [];
|
|
1533
1541
|
let t = e.length - 1;
|
|
1534
1542
|
return e.map((e, n) => ({
|
|
@@ -1539,11 +1547,11 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
1539
1547
|
menuId: n > 0 && e.children?.length ? e.id : void 0
|
|
1540
1548
|
}));
|
|
1541
1549
|
});
|
|
1542
|
-
function
|
|
1543
|
-
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;
|
|
1544
1552
|
}
|
|
1545
|
-
let
|
|
1546
|
-
function
|
|
1553
|
+
let De = n(() => X.value.find((e) => e.id === I.value) ?? null);
|
|
1554
|
+
function Oe(e, t) {
|
|
1547
1555
|
let n = [], r = e, i = 0;
|
|
1548
1556
|
for (; r.length;) {
|
|
1549
1557
|
n.push(r);
|
|
@@ -1555,13 +1563,13 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
1555
1563
|
}
|
|
1556
1564
|
return n;
|
|
1557
1565
|
}
|
|
1558
|
-
let
|
|
1559
|
-
function
|
|
1566
|
+
let ke = n(() => De.value ? Oe(De.value.children ?? [], L.value) : []);
|
|
1567
|
+
function Ae(e, t = 10) {
|
|
1560
1568
|
let n = [];
|
|
1561
1569
|
for (let r = 0; r < e.length; r += t) n.push(e.slice(r, r + t));
|
|
1562
1570
|
return n;
|
|
1563
1571
|
}
|
|
1564
|
-
let
|
|
1572
|
+
let je = n(() => {
|
|
1565
1573
|
let e = [];
|
|
1566
1574
|
return f.showAia && e.push({
|
|
1567
1575
|
id: "__aia",
|
|
@@ -1577,7 +1585,7 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
1577
1585
|
...t,
|
|
1578
1586
|
kind: "action"
|
|
1579
1587
|
})), e;
|
|
1580
|
-
}),
|
|
1588
|
+
}), Me = n(() => {
|
|
1581
1589
|
let e = [];
|
|
1582
1590
|
return f.userMenuItems.forEach((t) => {
|
|
1583
1591
|
if (t.separator) {
|
|
@@ -1586,79 +1594,79 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
1586
1594
|
}
|
|
1587
1595
|
e.push(t);
|
|
1588
1596
|
}), e.at(-1)?.separator && e.pop(), e;
|
|
1589
|
-
}),
|
|
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 } : {
|
|
1590
1598
|
label: e.label,
|
|
1591
1599
|
icon: e.icon,
|
|
1592
1600
|
disabled: e.disabled,
|
|
1593
|
-
command: () =>
|
|
1594
|
-
})),
|
|
1601
|
+
command: () => qe(e)
|
|
1602
|
+
})), Ve = n(() => {
|
|
1595
1603
|
let e = f.appearance, t = f.spacing, n = {}, r = (e, t) => {
|
|
1596
1604
|
t !== void 0 && t !== "" && (n[e] = t);
|
|
1597
1605
|
};
|
|
1598
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;
|
|
1599
|
-
}),
|
|
1600
|
-
function
|
|
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() {
|
|
1601
1609
|
let e = Math.max(0, window.scrollY);
|
|
1602
|
-
if (!
|
|
1603
|
-
|
|
1610
|
+
if (!K.value && e >= Kn) {
|
|
1611
|
+
K.value = !0;
|
|
1604
1612
|
return;
|
|
1605
1613
|
}
|
|
1606
|
-
|
|
1614
|
+
K.value && e <= qn && (K.value = !1);
|
|
1607
1615
|
}
|
|
1608
|
-
function
|
|
1616
|
+
function We() {
|
|
1609
1617
|
let e = E.value, t = ee.value;
|
|
1610
|
-
!e || !t || (
|
|
1618
|
+
!e || !t || (ie.value = t.scrollWidth <= e.clientWidth + 1);
|
|
1611
1619
|
}
|
|
1612
|
-
function
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1620
|
+
function Ge() {
|
|
1621
|
+
de = window.requestAnimationFrame(() => {
|
|
1622
|
+
de = window.requestAnimationFrame(() => {
|
|
1623
|
+
ae.value = !0;
|
|
1616
1624
|
});
|
|
1617
1625
|
});
|
|
1618
1626
|
}
|
|
1619
|
-
function
|
|
1627
|
+
function Q() {
|
|
1620
1628
|
return typeof window < "u" && window.matchMedia?.("(hover: hover) and (pointer: fine)").matches;
|
|
1621
1629
|
}
|
|
1622
|
-
function
|
|
1630
|
+
function $(e) {
|
|
1623
1631
|
e.disabled || (p("navigate", e), P.value = !1, rr());
|
|
1624
1632
|
}
|
|
1625
|
-
function
|
|
1633
|
+
function Ke(e, t = !1) {
|
|
1626
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));
|
|
1627
1635
|
}
|
|
1628
|
-
function
|
|
1636
|
+
function qe(e, t = !1) {
|
|
1629
1637
|
e.disabled || e.separator || (p("user-action", e), V.value = !1, H.value = !1, t && (P.value = !1));
|
|
1630
1638
|
}
|
|
1631
|
-
function
|
|
1632
|
-
if (!
|
|
1639
|
+
function Je(e) {
|
|
1640
|
+
if (!Z.value) {
|
|
1633
1641
|
p("user-click", f.user);
|
|
1634
1642
|
return;
|
|
1635
1643
|
}
|
|
1636
|
-
|
|
1644
|
+
U.value?.toggle(e);
|
|
1637
1645
|
}
|
|
1638
|
-
function
|
|
1639
|
-
|
|
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());
|
|
1640
1651
|
}
|
|
1641
1652
|
function Ze() {
|
|
1642
|
-
|
|
1653
|
+
Q() && (F.value = !0);
|
|
1643
1654
|
}
|
|
1644
1655
|
function Qe() {
|
|
1645
|
-
|
|
1646
|
-
}
|
|
1647
|
-
function $e() {
|
|
1648
|
-
!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 = []);
|
|
1649
1657
|
}
|
|
1650
1658
|
function Jn() {
|
|
1651
|
-
if (
|
|
1659
|
+
if (Q()) {
|
|
1652
1660
|
F.value = !0;
|
|
1653
1661
|
return;
|
|
1654
1662
|
}
|
|
1655
1663
|
F.value = !F.value, F.value || (I.value = null, L.value = []);
|
|
1656
1664
|
}
|
|
1657
1665
|
function Yn(e) {
|
|
1658
|
-
|
|
1666
|
+
Q() && (I.value = e, L.value = []);
|
|
1659
1667
|
}
|
|
1660
1668
|
function Xn(e) {
|
|
1661
|
-
if (
|
|
1669
|
+
if (Q()) {
|
|
1662
1670
|
I.value = e, L.value = [];
|
|
1663
1671
|
return;
|
|
1664
1672
|
}
|
|
@@ -1666,13 +1674,13 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
1666
1674
|
I.value = t ? null : e, L.value = [];
|
|
1667
1675
|
}
|
|
1668
1676
|
function Zn(e, t, n, r) {
|
|
1669
|
-
if (r && !
|
|
1677
|
+
if (r && !Q()) return;
|
|
1670
1678
|
let i = e.value[n];
|
|
1671
1679
|
if (!t.children?.length) {
|
|
1672
|
-
e.value = e.value.slice(0, n), r ||
|
|
1680
|
+
e.value = e.value.slice(0, n), r || $(t);
|
|
1673
1681
|
return;
|
|
1674
1682
|
}
|
|
1675
|
-
if (!r &&
|
|
1683
|
+
if (!r && Q()) {
|
|
1676
1684
|
e.value = [...e.value.slice(0, n), t.id];
|
|
1677
1685
|
return;
|
|
1678
1686
|
}
|
|
@@ -1685,31 +1693,31 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
1685
1693
|
Zn(z, e, t, n);
|
|
1686
1694
|
}
|
|
1687
1695
|
function er(e) {
|
|
1688
|
-
|
|
1696
|
+
Q() && (R.value = e, z.value = []);
|
|
1689
1697
|
}
|
|
1690
1698
|
function tr() {
|
|
1691
|
-
!
|
|
1699
|
+
!Q() || window.innerWidth < 1024 || (R.value = null, z.value = []);
|
|
1692
1700
|
}
|
|
1693
1701
|
function nr(e) {
|
|
1694
|
-
if (
|
|
1702
|
+
if (Q()) {
|
|
1695
1703
|
R.value = e;
|
|
1696
1704
|
return;
|
|
1697
1705
|
}
|
|
1698
1706
|
R.value = R.value === e ? null : e, z.value = [];
|
|
1699
1707
|
}
|
|
1700
1708
|
function rr() {
|
|
1701
|
-
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;
|
|
1702
1710
|
}
|
|
1703
1711
|
async function ir() {
|
|
1704
1712
|
if (typeof window < "u" && window.innerWidth < 1024) {
|
|
1705
1713
|
P.value = !0, await m(), M.value?.focus();
|
|
1706
1714
|
return;
|
|
1707
1715
|
}
|
|
1708
|
-
|
|
1716
|
+
oe.value = !0, J.value = !0, await m(), k.value?.focus(), cr();
|
|
1709
1717
|
}
|
|
1710
1718
|
function ar() {
|
|
1711
1719
|
window.setTimeout(() => {
|
|
1712
|
-
|
|
1720
|
+
J.value = !1, Y.value.searchIconOnly && !q.value.trim() && (oe.value = !1, cr());
|
|
1713
1721
|
}, 150);
|
|
1714
1722
|
}
|
|
1715
1723
|
function or() {
|
|
@@ -1717,8 +1725,8 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
1717
1725
|
}
|
|
1718
1726
|
async function sr() {
|
|
1719
1727
|
if (typeof window > "u" || !T.value) return;
|
|
1720
|
-
let e = ++
|
|
1721
|
-
|
|
1728
|
+
let e = ++fe, t = or();
|
|
1729
|
+
se.value = t < 1024;
|
|
1722
1730
|
let n = {
|
|
1723
1731
|
collapseActions: !1,
|
|
1724
1732
|
searchIconOnly: !1,
|
|
@@ -1726,15 +1734,15 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
1726
1734
|
hideContextDetails: !1
|
|
1727
1735
|
};
|
|
1728
1736
|
if (t < 1024) {
|
|
1729
|
-
|
|
1737
|
+
Y.value = n, oe.value = !1;
|
|
1730
1738
|
return;
|
|
1731
1739
|
}
|
|
1732
|
-
if (
|
|
1740
|
+
if (Y.value = {
|
|
1733
1741
|
collapseActions: t < 1440,
|
|
1734
1742
|
searchIconOnly: t < 1320,
|
|
1735
1743
|
hideUserName: t < 1180,
|
|
1736
1744
|
hideContextDetails: !1
|
|
1737
|
-
}, await m(), e ===
|
|
1745
|
+
}, await m(), e === fe) for (let t of [
|
|
1738
1746
|
"collapseActions",
|
|
1739
1747
|
"searchIconOnly",
|
|
1740
1748
|
"hideUserName",
|
|
@@ -1742,72 +1750,72 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
1742
1750
|
]) {
|
|
1743
1751
|
let n = T.value;
|
|
1744
1752
|
if (!n || n.scrollWidth <= n.clientWidth + 1) break;
|
|
1745
|
-
if (
|
|
1746
|
-
...
|
|
1753
|
+
if (Y.value = {
|
|
1754
|
+
...Y.value,
|
|
1747
1755
|
[t]: !0
|
|
1748
|
-
}, await m(), e !==
|
|
1756
|
+
}, await m(), e !== fe) return;
|
|
1749
1757
|
}
|
|
1750
1758
|
}
|
|
1751
|
-
function
|
|
1752
|
-
typeof window > "u" || (
|
|
1753
|
-
|
|
1759
|
+
function cr() {
|
|
1760
|
+
typeof window > "u" || (ue !== void 0 && window.cancelAnimationFrame(ue), ue = window.requestAnimationFrame(() => {
|
|
1761
|
+
ue = void 0, sr();
|
|
1754
1762
|
}));
|
|
1755
1763
|
}
|
|
1756
|
-
function
|
|
1764
|
+
function lr(e) {
|
|
1757
1765
|
let t = e.target;
|
|
1758
1766
|
if (t instanceof Element && !t.closest(".top-nav-bar__mobile-menu")) {
|
|
1759
1767
|
if (!x.value?.contains(t)) {
|
|
1760
1768
|
rr();
|
|
1761
1769
|
return;
|
|
1762
1770
|
}
|
|
1763
|
-
t.closest("[data-top-nav-navigation]") || (F.value = !1, I.value = null, L.value = []), t.closest("[data-top-nav-breadcrumb]") || (R.value = null, z.value = []), t.closest("[data-top-nav-actions]") || (B.value = !1), t.closest("[data-top-nav-user]") || (V.value = !1), t.closest("[data-top-nav-favorites]") || (
|
|
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);
|
|
1764
1772
|
}
|
|
1765
1773
|
}
|
|
1766
|
-
function
|
|
1774
|
+
function ur(e) {
|
|
1767
1775
|
if ((e.ctrlKey || e.metaKey) && e.key.toLocaleLowerCase() === "k" && f.searchable) {
|
|
1768
1776
|
e.preventDefault(), ir();
|
|
1769
1777
|
return;
|
|
1770
1778
|
}
|
|
1771
1779
|
if (e.key === "Escape") {
|
|
1772
1780
|
if (H.value) {
|
|
1773
|
-
|
|
1781
|
+
U.value?.hide();
|
|
1774
1782
|
return;
|
|
1775
1783
|
}
|
|
1776
|
-
P.value &&= !1, rr(),
|
|
1784
|
+
P.value &&= !1, rr(), Y.value.searchIconOnly && !q.value.trim() && (oe.value = !1);
|
|
1777
1785
|
}
|
|
1778
1786
|
}
|
|
1779
|
-
function
|
|
1780
|
-
if (!
|
|
1787
|
+
function dr() {
|
|
1788
|
+
if (!Z.value) {
|
|
1781
1789
|
p("user-click", f.user);
|
|
1782
1790
|
return;
|
|
1783
1791
|
}
|
|
1784
|
-
if (
|
|
1792
|
+
if (Q()) {
|
|
1785
1793
|
V.value = !0;
|
|
1786
1794
|
return;
|
|
1787
1795
|
}
|
|
1788
1796
|
V.value = !V.value;
|
|
1789
1797
|
}
|
|
1790
|
-
function
|
|
1791
|
-
if (
|
|
1792
|
-
|
|
1798
|
+
function fr() {
|
|
1799
|
+
if (Q()) {
|
|
1800
|
+
W.value = !0;
|
|
1793
1801
|
return;
|
|
1794
1802
|
}
|
|
1795
|
-
|
|
1803
|
+
W.value = !W.value;
|
|
1796
1804
|
}
|
|
1797
1805
|
return A(() => f.searchValue, (e) => {
|
|
1798
|
-
e !== void 0 && e !==
|
|
1806
|
+
e !== void 0 && e !== q.value && (q.value = e);
|
|
1799
1807
|
}), A(() => f.mobileOpen, (e) => {
|
|
1800
1808
|
e !== void 0 && e !== P.value && (P.value = e);
|
|
1801
1809
|
}), A(P, (e) => p("update:mobileOpen", e)), A([
|
|
1802
|
-
|
|
1810
|
+
X,
|
|
1803
1811
|
() => f.user,
|
|
1804
|
-
|
|
1805
|
-
], () => m(
|
|
1806
|
-
document.addEventListener("keydown",
|
|
1807
|
-
|
|
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();
|
|
1808
1816
|
});
|
|
1809
1817
|
}), v(() => {
|
|
1810
|
-
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);
|
|
1811
1819
|
}), u({
|
|
1812
1820
|
close: rr,
|
|
1813
1821
|
closeDrawer: () => {
|
|
@@ -1821,15 +1829,15 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
1821
1829
|
ref_key: "rootRef",
|
|
1822
1830
|
ref: x,
|
|
1823
1831
|
class: "top-nav-bar top-solutions-component",
|
|
1824
|
-
style: _(
|
|
1832
|
+
style: _(Ve.value),
|
|
1825
1833
|
"aria-label": "Navegação principal"
|
|
1826
1834
|
}, [
|
|
1827
1835
|
o("header", {
|
|
1828
1836
|
ref_key: "headerRef",
|
|
1829
1837
|
ref: T,
|
|
1830
|
-
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 }])
|
|
1831
1839
|
}, [
|
|
1832
|
-
|
|
1840
|
+
Re.value ? (b(), a("button", {
|
|
1833
1841
|
key: 0,
|
|
1834
1842
|
class: "top-nav-bar__mobile-trigger top-nav-bar__square-button",
|
|
1835
1843
|
type: "button",
|
|
@@ -1839,33 +1847,33 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
1839
1847
|
}, [...u[19] ||= [o("i", {
|
|
1840
1848
|
class: "pi pi-bars",
|
|
1841
1849
|
"aria-hidden": "true"
|
|
1842
|
-
}, null, -1)]], 8,
|
|
1843
|
-
o("div",
|
|
1844
|
-
|
|
1845
|
-
|
|
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", {
|
|
1846
1854
|
client: s.client,
|
|
1847
1855
|
compact: !0
|
|
1848
1856
|
}, void 0, void 0, 0) : n.$slots.context ? w(n.$slots, "context", {
|
|
1849
1857
|
client: s.client,
|
|
1850
|
-
compact:
|
|
1858
|
+
compact: Y.value.hideContextDetails
|
|
1851
1859
|
}, void 0, void 0, 1) : n.$slots.scope ? w(n.$slots, "scope", {
|
|
1852
1860
|
client: s.client,
|
|
1853
|
-
compact:
|
|
1861
|
+
compact: Y.value.hideContextDetails
|
|
1854
1862
|
}, void 0, void 0, 2) : w(n.$slots, "client", {
|
|
1855
1863
|
client: s.client,
|
|
1856
|
-
compact:
|
|
1857
|
-
}, () => [s.client ? (b(), a("div",
|
|
1864
|
+
compact: Y.value.hideContextDetails
|
|
1865
|
+
}, () => [s.client ? (b(), a("div", it, [s.client.logoUrl ? (b(), a("img", {
|
|
1858
1866
|
key: 0,
|
|
1859
1867
|
src: s.client.logoUrl,
|
|
1860
1868
|
alt: "",
|
|
1861
1869
|
class: "top-nav-bar__client-logo"
|
|
1862
|
-
}, 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),
|
|
1863
1871
|
u[24] ||= o("div", {
|
|
1864
1872
|
class: "top-nav-bar__spacer",
|
|
1865
1873
|
"aria-hidden": "true"
|
|
1866
1874
|
}, null, -1),
|
|
1867
|
-
o("div",
|
|
1868
|
-
s.searchable ? (b(), a("div",
|
|
1875
|
+
o("div", ut, [
|
|
1876
|
+
s.searchable ? (b(), a("div", dt, [Y.value.searchIconOnly && !oe.value ? (b(), a("button", {
|
|
1869
1877
|
key: 0,
|
|
1870
1878
|
class: "top-nav-bar__square-button",
|
|
1871
1879
|
type: "button",
|
|
@@ -1877,7 +1885,7 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
1877
1885
|
"aria-hidden": "true"
|
|
1878
1886
|
}, null, -1)]])) : (b(), a("div", {
|
|
1879
1887
|
key: 1,
|
|
1880
|
-
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 }])
|
|
1881
1889
|
}, [
|
|
1882
1890
|
u[22] ||= o("i", {
|
|
1883
1891
|
class: "pi pi-search",
|
|
@@ -1886,44 +1894,44 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
1886
1894
|
o("input", {
|
|
1887
1895
|
ref_key: "searchInputRef",
|
|
1888
1896
|
ref: k,
|
|
1889
|
-
value:
|
|
1897
|
+
value: q.value,
|
|
1890
1898
|
type: "text",
|
|
1891
1899
|
role: "searchbox",
|
|
1892
1900
|
placeholder: s.searchPlaceholder,
|
|
1893
1901
|
"aria-label": "Pesquisar no menu",
|
|
1894
|
-
onFocus: u[1] ||= (e) =>
|
|
1902
|
+
onFocus: u[1] ||= (e) => J.value = !0,
|
|
1895
1903
|
onBlur: ar,
|
|
1896
|
-
onInput: u[2] ||= (e) =>
|
|
1897
|
-
}, null, 40,
|
|
1898
|
-
|
|
1904
|
+
onInput: u[2] ||= (e) => Ye(e.target.value)
|
|
1905
|
+
}, null, 40, ft),
|
|
1906
|
+
q.value || Y.value.searchIconOnly && oe.value ? (b(), a("button", {
|
|
1899
1907
|
key: 0,
|
|
1900
1908
|
class: "top-nav-bar__search-clear",
|
|
1901
1909
|
type: "button",
|
|
1902
|
-
"aria-label":
|
|
1910
|
+
"aria-label": q.value ? "Limpar pesquisa" : "Fechar pesquisa",
|
|
1903
1911
|
onMousedown: u[3] ||= N(() => {}, ["prevent"]),
|
|
1904
|
-
onClick: u[4] ||= (e) =>
|
|
1912
|
+
onClick: u[4] ||= (e) => q.value ? Xe() : oe.value = !1
|
|
1905
1913
|
}, [...u[21] ||= [o("i", {
|
|
1906
1914
|
class: "pi pi-times",
|
|
1907
1915
|
"aria-hidden": "true"
|
|
1908
|
-
}, null, -1)]], 40,
|
|
1909
|
-
|
|
1910
|
-
items:
|
|
1911
|
-
select:
|
|
1912
|
-
}, () => [(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", {
|
|
1913
1921
|
key: e.id,
|
|
1914
1922
|
class: "top-nav-bar__menu-item",
|
|
1915
1923
|
type: "button",
|
|
1916
1924
|
role: "menuitem",
|
|
1917
1925
|
disabled: e.disabled,
|
|
1918
1926
|
onMousedown: u[5] ||= N(() => {}, ["prevent"]),
|
|
1919
|
-
onClick: (t) =>
|
|
1927
|
+
onClick: (t) => $(e)
|
|
1920
1928
|
}, [e.icon ? (b(), a("i", {
|
|
1921
1929
|
key: 0,
|
|
1922
1930
|
class: h(e.icon),
|
|
1923
1931
|
"aria-hidden": "true"
|
|
1924
|
-
}, 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)
|
|
1925
1933
|
], 2))])) : i("", !0),
|
|
1926
|
-
|
|
1934
|
+
je.value.length ? (b(), a("div", vt, [Y.value.collapseActions ? (b(), a(e, { key: 1 }, [o("button", {
|
|
1927
1935
|
class: "top-nav-bar__square-button",
|
|
1928
1936
|
type: "button",
|
|
1929
1937
|
"aria-label": "Mais ações",
|
|
@@ -1932,17 +1940,17 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
1932
1940
|
}, [...u[23] ||= [o("i", {
|
|
1933
1941
|
class: "pi pi-ellipsis-h",
|
|
1934
1942
|
"aria-hidden": "true"
|
|
1935
|
-
}, 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", {
|
|
1936
1944
|
key: e.id,
|
|
1937
1945
|
class: "top-nav-bar__menu-item",
|
|
1938
1946
|
type: "button",
|
|
1939
1947
|
role: "menuitem",
|
|
1940
1948
|
disabled: e.disabled,
|
|
1941
|
-
onClick: (t) =>
|
|
1949
|
+
onClick: (t) => Ke(e)
|
|
1942
1950
|
}, [o("i", {
|
|
1943
1951
|
class: h(e.icon),
|
|
1944
1952
|
"aria-hidden": "true"
|
|
1945
|
-
}, 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", {
|
|
1946
1954
|
key: e.id,
|
|
1947
1955
|
class: h(["top-nav-bar__square-button", { "top-nav-bar__square-button--active": e.kind === "aia" && s.aiaActive }]),
|
|
1948
1956
|
type: "button",
|
|
@@ -1950,7 +1958,7 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
1950
1958
|
"aria-label": e.label,
|
|
1951
1959
|
"aria-pressed": e.kind === "aia" ? s.aiaActive : void 0,
|
|
1952
1960
|
title: e.label,
|
|
1953
|
-
onClick: (t) =>
|
|
1961
|
+
onClick: (t) => Ke(e)
|
|
1954
1962
|
}, [e.kind === "aia" ? w(n.$slots, "aia-icon", {}, () => [o("i", {
|
|
1955
1963
|
class: h(e.icon),
|
|
1956
1964
|
"aria-hidden": "true"
|
|
@@ -1961,61 +1969,61 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
1961
1969
|
key: 2,
|
|
1962
1970
|
class: h(e.icon),
|
|
1963
1971
|
"aria-hidden": "true"
|
|
1964
|
-
}, null, 2))], 10,
|
|
1965
|
-
n.$slots.actions ? (b(), a("div",
|
|
1966
|
-
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,
|
|
1967
1975
|
close: rr
|
|
1968
1976
|
})])) : i("", !0),
|
|
1969
|
-
|
|
1977
|
+
Ne.value ? (b(), a("div", {
|
|
1970
1978
|
key: 3,
|
|
1971
1979
|
class: "top-nav-bar__user-menu",
|
|
1972
1980
|
"data-top-nav-user": "",
|
|
1973
|
-
onMouseenter: u[7] ||= (e) =>
|
|
1974
|
-
onMouseleave: u[8] ||= (e) =>
|
|
1981
|
+
onMouseenter: u[7] ||= (e) => Z.value && Q() && (V.value = !0),
|
|
1982
|
+
onMouseleave: u[8] ||= (e) => Q() && (V.value = !1)
|
|
1975
1983
|
}, [o("button", {
|
|
1976
1984
|
class: "top-nav-bar__user-trigger",
|
|
1977
1985
|
type: "button",
|
|
1978
|
-
"aria-haspopup":
|
|
1979
|
-
"aria-expanded":
|
|
1980
|
-
onClick:
|
|
1986
|
+
"aria-haspopup": Z.value ? "menu" : void 0,
|
|
1987
|
+
"aria-expanded": Z.value ? V.value : void 0,
|
|
1988
|
+
onClick: dr
|
|
1981
1989
|
}, [w(n.$slots, "user", {
|
|
1982
1990
|
user: s.user,
|
|
1983
|
-
compact:
|
|
1991
|
+
compact: Y.value.hideUserName
|
|
1984
1992
|
}, () => [s.user?.avatarUrl ? (b(), a("img", {
|
|
1985
1993
|
key: 0,
|
|
1986
1994
|
src: s.user.avatarUrl,
|
|
1987
1995
|
alt: "",
|
|
1988
1996
|
class: "top-nav-bar__user-avatar"
|
|
1989
|
-
}, null, 8,
|
|
1990
|
-
items:
|
|
1991
|
-
select:
|
|
1992
|
-
}, () => [(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", {
|
|
1993
2001
|
key: 1,
|
|
1994
2002
|
class: "top-nav-bar__menu-item",
|
|
1995
2003
|
type: "button",
|
|
1996
2004
|
role: "menuitem",
|
|
1997
2005
|
disabled: t.disabled,
|
|
1998
|
-
onClick: (e) =>
|
|
2006
|
+
onClick: (e) => qe(t)
|
|
1999
2007
|
}, [t.icon ? (b(), a("i", {
|
|
2000
2008
|
key: 0,
|
|
2001
2009
|
class: h(t.icon),
|
|
2002
2010
|
"aria-hidden": "true"
|
|
2003
|
-
}, 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)
|
|
2004
2012
|
])
|
|
2005
2013
|
], 2),
|
|
2006
|
-
o("div",
|
|
2014
|
+
o("div", It, [
|
|
2007
2015
|
o("button", {
|
|
2008
2016
|
class: "top-nav-bar__crumb",
|
|
2009
2017
|
type: "button",
|
|
2010
|
-
onClick: u[9] ||= (e) =>
|
|
2011
|
-
}, [l(O(
|
|
2012
|
-
|
|
2013
|
-
|
|
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", {
|
|
2014
2022
|
key: 1,
|
|
2015
2023
|
class: "top-nav-bar__dropdown top-nav-bar__desktop-navigation",
|
|
2016
2024
|
"data-top-nav-navigation": "",
|
|
2017
|
-
onMouseenter:
|
|
2018
|
-
onMouseleave:
|
|
2025
|
+
onMouseenter: Ze,
|
|
2026
|
+
onMouseleave: Qe
|
|
2019
2027
|
}, [o("button", {
|
|
2020
2028
|
class: "top-nav-bar__crumb",
|
|
2021
2029
|
type: "button",
|
|
@@ -2032,32 +2040,29 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
2032
2040
|
class: "pi pi-chevron-down top-nav-bar__chevron",
|
|
2033
2041
|
"aria-hidden": "true"
|
|
2034
2042
|
}, null, -1)
|
|
2035
|
-
], 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", {
|
|
2036
2044
|
key: e.id,
|
|
2037
|
-
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 }]),
|
|
2038
2046
|
type: "button",
|
|
2039
2047
|
role: "menuitem",
|
|
2040
|
-
"aria-haspopup": "menu",
|
|
2041
|
-
"aria-expanded": I.value === e.id,
|
|
2042
|
-
onMouseenter: (t) => Yn(e.id),
|
|
2043
|
-
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)
|
|
2044
2052
|
}, [
|
|
2045
2053
|
e.icon ? (b(), a("i", {
|
|
2046
2054
|
key: 0,
|
|
2047
2055
|
class: h(e.icon),
|
|
2048
2056
|
"aria-hidden": "true"
|
|
2049
2057
|
}, null, 2)) : i("", !0),
|
|
2050
|
-
o("span",
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
"aria-hidden": "true"
|
|
2055
|
-
}, null, -1)
|
|
2056
|
-
], 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", {
|
|
2057
2062
|
key: `navigation-level-${n}`,
|
|
2058
2063
|
class: h(["top-nav-bar__cascade-level", { "top-nav-bar__section-items": n === 0 }]),
|
|
2059
2064
|
role: "menu"
|
|
2060
|
-
}, [(b(!0), a(e, null, C(
|
|
2065
|
+
}, [(b(!0), a(e, null, C(Ae(t), (t, r) => (b(), a("div", {
|
|
2061
2066
|
key: `navigation-${n}-${r}`,
|
|
2062
2067
|
class: "top-nav-bar__menu-column"
|
|
2063
2068
|
}, [(b(!0), a(e, null, C(t, (e) => (b(), a("button", {
|
|
@@ -2079,29 +2084,29 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
2079
2084
|
o("span", Jt, D(e.label), 1),
|
|
2080
2085
|
e.children?.length ? (b(), a("i", Yt)) : i("", !0)
|
|
2081
2086
|
], 42, qt))), 128))]))), 128))], 2))), 128))])) : i("", !0)])])) : i("", !0)], 32)) : i("", !0),
|
|
2082
|
-
(b(!0), a(e, null, C(
|
|
2083
|
-
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 }]),
|
|
2084
2089
|
"aria-hidden": "true"
|
|
2085
|
-
}, "/", 2),
|
|
2090
|
+
}, "/", 2), Te(t)?.children?.length ? (b(), a("div", {
|
|
2086
2091
|
key: 0,
|
|
2087
2092
|
class: "top-nav-bar__dropdown top-nav-bar__breadcrumb-dropdown",
|
|
2088
2093
|
"data-top-nav-breadcrumb": "",
|
|
2089
|
-
onMouseenter: (e) => !
|
|
2090
|
-
onMouseleave: u[10] ||= (e) => !
|
|
2091
|
-
}, [
|
|
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", {
|
|
2092
2097
|
key: 1,
|
|
2093
2098
|
class: "top-nav-bar__crumb",
|
|
2094
2099
|
type: "button",
|
|
2095
2100
|
"aria-haspopup": "menu",
|
|
2096
2101
|
"aria-expanded": R.value === t.id,
|
|
2097
2102
|
onClick: (e) => nr(t.id)
|
|
2098
|
-
}, [o("span", null, D(t.label), 1), u[
|
|
2103
|
+
}, [o("span", null, D(t.label), 1), u[27] ||= o("i", {
|
|
2099
2104
|
class: "pi pi-chevron-down top-nav-bar__chevron",
|
|
2100
2105
|
"aria-hidden": "true"
|
|
2101
|
-
}, 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", {
|
|
2102
2107
|
key: `breadcrumb-${t.id}-${r}`,
|
|
2103
2108
|
class: h(["top-nav-bar__cascade-level", { "top-nav-bar__breadcrumb-main-items": r === 0 }])
|
|
2104
|
-
}, [(b(!0), a(e, null, C(
|
|
2109
|
+
}, [(b(!0), a(e, null, C(Ae(n), (n, s) => (b(), a("div", {
|
|
2105
2110
|
key: `breadcrumb-${t.id}-${r}-${s}`,
|
|
2106
2111
|
class: "top-nav-bar__menu-column"
|
|
2107
2112
|
}, [(b(!0), a(e, null, C(n, (e) => (b(), a("button", {
|
|
@@ -2124,7 +2129,7 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
2124
2129
|
key: 1,
|
|
2125
2130
|
class: "top-nav-bar__crumb",
|
|
2126
2131
|
type: "button",
|
|
2127
|
-
onClick: (e) =>
|
|
2132
|
+
onClick: (e) => $(t)
|
|
2128
2133
|
}, D(t.label), 9, an)) : (b(), a("span", {
|
|
2129
2134
|
key: 2,
|
|
2130
2135
|
class: "top-nav-bar__current",
|
|
@@ -2142,37 +2147,37 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
2142
2147
|
}, null, 2)], 8, cn)) : i("", !0)], 8, on))], 64))), 128)),
|
|
2143
2148
|
o("div", ln, [l(t, {
|
|
2144
2149
|
name: "top-nav-bar-favorites-trigger",
|
|
2145
|
-
css:
|
|
2150
|
+
css: ae.value
|
|
2146
2151
|
}, {
|
|
2147
|
-
default: j(() => [
|
|
2152
|
+
default: j(() => [Ie.value && Fe.value.length ? (b(), a("div", {
|
|
2148
2153
|
key: 0,
|
|
2149
2154
|
class: "top-nav-bar__favorites-menu top-nav-bar__desktop-only",
|
|
2150
2155
|
"data-top-nav-favorites": "",
|
|
2151
|
-
onMouseenter: u[12] ||= (e) =>
|
|
2152
|
-
onMouseleave: u[13] ||= (e) =>
|
|
2156
|
+
onMouseenter: u[12] ||= (e) => Q() && (W.value = !0),
|
|
2157
|
+
onMouseleave: u[13] ||= (e) => Q() && (W.value = !1)
|
|
2153
2158
|
}, [o("button", {
|
|
2154
2159
|
class: "top-nav-bar__crumb",
|
|
2155
2160
|
type: "button",
|
|
2156
2161
|
"aria-haspopup": "menu",
|
|
2157
|
-
"aria-expanded":
|
|
2158
|
-
onClick:
|
|
2162
|
+
"aria-expanded": W.value,
|
|
2163
|
+
onClick: fr
|
|
2159
2164
|
}, [
|
|
2160
|
-
u[
|
|
2165
|
+
u[28] ||= o("i", {
|
|
2161
2166
|
class: "pi pi-star-fill top-nav-bar__accent",
|
|
2162
2167
|
"aria-hidden": "true"
|
|
2163
2168
|
}, null, -1),
|
|
2164
2169
|
o("span", null, D(s.favoriteLabel), 1),
|
|
2165
|
-
u[
|
|
2170
|
+
u[29] ||= o("i", {
|
|
2166
2171
|
class: "pi pi-chevron-down top-nav-bar__chevron",
|
|
2167
2172
|
"aria-hidden": "true"
|
|
2168
2173
|
}, null, -1)
|
|
2169
|
-
], 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", {
|
|
2170
2175
|
key: e.id,
|
|
2171
2176
|
class: "top-nav-bar__menu-item",
|
|
2172
2177
|
type: "button",
|
|
2173
2178
|
role: "menuitem",
|
|
2174
2179
|
disabled: e.disabled,
|
|
2175
|
-
onClick: (t) =>
|
|
2180
|
+
onClick: (t) => $(e)
|
|
2176
2181
|
}, [e.icon ? (b(), a("i", {
|
|
2177
2182
|
key: 0,
|
|
2178
2183
|
class: h(e.icon),
|
|
@@ -2190,10 +2195,10 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
2190
2195
|
ref_key: "favoritesMeasureContentRef",
|
|
2191
2196
|
ref: ee,
|
|
2192
2197
|
class: "top-nav-bar__favorites-measure-content"
|
|
2193
|
-
}, [o("span", mn, [u[
|
|
2198
|
+
}, [o("span", mn, [u[30] ||= o("i", {
|
|
2194
2199
|
class: "pi pi-star-fill top-nav-bar__favorites-icon",
|
|
2195
2200
|
"aria-hidden": "true"
|
|
2196
|
-
}, 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", {
|
|
2197
2202
|
key: `measure-${e.id}`,
|
|
2198
2203
|
class: "top-nav-bar__favorites-measure-item"
|
|
2199
2204
|
}, [t > 0 ? (b(), a("span", hn, "|")) : i("", !0), o("span", null, [e.icon ? (b(), a("i", {
|
|
@@ -2203,16 +2208,16 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
2203
2208
|
}, null, 2)) : i("", !0), c(" " + D(e.label), 1)])]))), 128))], 512)], 512),
|
|
2204
2209
|
l(t, {
|
|
2205
2210
|
name: "top-nav-bar-favorites-row",
|
|
2206
|
-
css:
|
|
2211
|
+
css: ae.value
|
|
2207
2212
|
}, {
|
|
2208
|
-
default: j(() => [
|
|
2213
|
+
default: j(() => [Le.value ? (b(), a("div", gn, [o("span", _n, [u[31] ||= o("i", {
|
|
2209
2214
|
class: "pi pi-star-fill top-nav-bar__favorites-icon",
|
|
2210
2215
|
"aria-hidden": "true"
|
|
2211
|
-
}, 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", {
|
|
2212
2217
|
class: "top-nav-bar__favorites-row-item",
|
|
2213
2218
|
type: "button",
|
|
2214
2219
|
disabled: t.disabled,
|
|
2215
|
-
onClick: (e) =>
|
|
2220
|
+
onClick: (e) => $(t)
|
|
2216
2221
|
}, [t.icon ? (b(), a("i", {
|
|
2217
2222
|
key: 0,
|
|
2218
2223
|
class: h(t.icon),
|
|
@@ -2225,7 +2230,7 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
2225
2230
|
"onUpdate:visible": u[16] ||= (e) => P.value = e,
|
|
2226
2231
|
position: "left",
|
|
2227
2232
|
class: "top-nav-bar__mobile-drawer",
|
|
2228
|
-
style: _([
|
|
2233
|
+
style: _([Ve.value, { width: "var(--top-nav-drawer-width, min(22rem, calc(100vw - 1.5rem)))" }])
|
|
2229
2234
|
}, {
|
|
2230
2235
|
container: j(({ closeCallback: d }) => [o("div", xn, [
|
|
2231
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", {
|
|
@@ -2233,91 +2238,91 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
2233
2238
|
type: "button",
|
|
2234
2239
|
"aria-label": "Fechar navegação",
|
|
2235
2240
|
onClick: d
|
|
2236
|
-
}, [...u[
|
|
2241
|
+
}, [...u[32] ||= [o("i", {
|
|
2237
2242
|
class: "pi pi-times",
|
|
2238
2243
|
"aria-hidden": "true"
|
|
2239
2244
|
}, null, -1)]], 8, wn)])]),
|
|
2240
|
-
s.searchable ||
|
|
2241
|
-
query:
|
|
2242
|
-
update:
|
|
2243
|
-
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
|
|
2244
2249
|
}, () => [o("div", En, [
|
|
2245
|
-
u[
|
|
2250
|
+
u[34] ||= o("i", {
|
|
2246
2251
|
class: "pi pi-search",
|
|
2247
2252
|
"aria-hidden": "true"
|
|
2248
2253
|
}, null, -1),
|
|
2249
2254
|
o("input", {
|
|
2250
2255
|
ref_key: "mobileSearchInputRef",
|
|
2251
2256
|
ref: M,
|
|
2252
|
-
value:
|
|
2257
|
+
value: q.value,
|
|
2253
2258
|
type: "text",
|
|
2254
2259
|
role: "searchbox",
|
|
2255
2260
|
placeholder: s.searchPlaceholder,
|
|
2256
2261
|
"aria-label": "Pesquisar no menu",
|
|
2257
|
-
onInput: u[14] ||= (e) =>
|
|
2262
|
+
onInput: u[14] ||= (e) => Ye(e.target.value)
|
|
2258
2263
|
}, null, 40, Dn),
|
|
2259
|
-
|
|
2264
|
+
q.value ? (b(), a("button", {
|
|
2260
2265
|
key: 0,
|
|
2261
2266
|
class: "top-nav-bar__search-clear",
|
|
2262
2267
|
type: "button",
|
|
2263
2268
|
"aria-label": "Limpar pesquisa",
|
|
2264
|
-
onClick:
|
|
2265
|
-
}, [...u[
|
|
2269
|
+
onClick: Xe
|
|
2270
|
+
}, [...u[33] ||= [o("i", {
|
|
2266
2271
|
class: "pi pi-times",
|
|
2267
2272
|
"aria-hidden": "true"
|
|
2268
2273
|
}, null, -1)]])) : i("", !0)
|
|
2269
2274
|
])], void 0, 0) : i("", !0), w(n.$slots, "drawer-actions", {
|
|
2270
|
-
actions:
|
|
2271
|
-
select: (e) =>
|
|
2275
|
+
actions: je.value,
|
|
2276
|
+
select: (e) => Ke(e, !0),
|
|
2272
2277
|
close: d
|
|
2273
|
-
}, () => [(b(!0), a(e, null, C(
|
|
2278
|
+
}, () => [(b(!0), a(e, null, C(je.value, (e) => (b(), a("button", {
|
|
2274
2279
|
key: `drawer-${e.id}`,
|
|
2275
2280
|
class: h(["top-nav-bar__drawer-action", { "top-nav-bar__drawer-action--active": e.kind === "aia" && s.aiaActive }]),
|
|
2276
2281
|
type: "button",
|
|
2277
2282
|
disabled: e.disabled,
|
|
2278
|
-
onClick: (t) =>
|
|
2283
|
+
onClick: (t) => Ke(e, !0)
|
|
2279
2284
|
}, [o("i", {
|
|
2280
2285
|
class: h(e.icon),
|
|
2281
2286
|
"aria-hidden": "true"
|
|
2282
2287
|
}, null, 2), o("span", null, D(e.label), 1)], 10, On))), 128))])])) : i("", !0),
|
|
2283
2288
|
o("div", kn, [
|
|
2284
2289
|
w(n.$slots, "drawer-before-menu", { close: d }),
|
|
2285
|
-
o("div", An, [
|
|
2290
|
+
o("div", An, [Fe.value.length ? (b(), a("section", jn, [o("button", {
|
|
2286
2291
|
class: "top-nav-bar__mobile-item",
|
|
2287
2292
|
type: "button",
|
|
2288
|
-
"aria-expanded":
|
|
2289
|
-
onClick: u[15] ||= (e) =>
|
|
2293
|
+
"aria-expanded": G.value,
|
|
2294
|
+
onClick: u[15] ||= (e) => G.value = !G.value
|
|
2290
2295
|
}, [
|
|
2291
|
-
u[
|
|
2296
|
+
u[35] ||= o("i", {
|
|
2292
2297
|
class: "pi pi-star-fill top-nav-bar__accent",
|
|
2293
2298
|
"aria-hidden": "true"
|
|
2294
2299
|
}, null, -1),
|
|
2295
2300
|
o("span", Nn, D(s.favoriteLabel), 1),
|
|
2296
|
-
o("span", Pn, D(
|
|
2301
|
+
o("span", Pn, D(Fe.value.length), 1),
|
|
2297
2302
|
o("i", {
|
|
2298
|
-
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 }]),
|
|
2299
2304
|
"aria-hidden": "true"
|
|
2300
2305
|
}, null, 2)
|
|
2301
2306
|
], 8, Mn), l(t, { name: "top-nav-bar-menu-expand" }, {
|
|
2302
|
-
default: j(() => [
|
|
2307
|
+
default: j(() => [G.value ? (b(), r($e, {
|
|
2303
2308
|
key: 0,
|
|
2304
|
-
items:
|
|
2309
|
+
items: Fe.value,
|
|
2305
2310
|
"active-item-id": s.activeItemId,
|
|
2306
2311
|
level: 1,
|
|
2307
|
-
onSelect:
|
|
2312
|
+
onSelect: $
|
|
2308
2313
|
}, null, 8, ["items", "active-item-id"])) : i("", !0)]),
|
|
2309
2314
|
_: 1
|
|
2310
2315
|
})])) : i("", !0), w(n.$slots, "drawer-menu", {
|
|
2311
|
-
sections:
|
|
2312
|
-
select:
|
|
2316
|
+
sections: ye.value,
|
|
2317
|
+
select: $,
|
|
2313
2318
|
close: d
|
|
2314
|
-
}, () => [
|
|
2319
|
+
}, () => [ye.value.length ? (b(), r($e, {
|
|
2315
2320
|
key: 0,
|
|
2316
|
-
items:
|
|
2321
|
+
items: ye.value,
|
|
2317
2322
|
"active-item-id": s.activeItemId,
|
|
2318
|
-
"force-open": !!
|
|
2323
|
+
"force-open": !!q.value.trim(),
|
|
2319
2324
|
"show-section-dividers": "",
|
|
2320
|
-
onSelect:
|
|
2325
|
+
onSelect: $
|
|
2321
2326
|
}, null, 8, [
|
|
2322
2327
|
"items",
|
|
2323
2328
|
"active-item-id",
|
|
@@ -2325,7 +2330,7 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
2325
2330
|
])) : (b(), a("div", Fn, "Nenhum menu encontrado."))])]),
|
|
2326
2331
|
w(n.$slots, "drawer-after-menu", { close: d })
|
|
2327
2332
|
]),
|
|
2328
|
-
|
|
2333
|
+
Ne.value || n.$slots["drawer-footer"] ? (b(), a("footer", In, [Ne.value ? w(n.$slots, "drawer-user", {
|
|
2329
2334
|
user: s.user,
|
|
2330
2335
|
client: s.client,
|
|
2331
2336
|
open: H.value,
|
|
@@ -2333,30 +2338,30 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
2333
2338
|
}, () => [o("button", {
|
|
2334
2339
|
class: "top-nav-bar__drawer-user",
|
|
2335
2340
|
type: "button",
|
|
2336
|
-
"aria-haspopup":
|
|
2337
|
-
"aria-expanded":
|
|
2338
|
-
onClick:
|
|
2341
|
+
"aria-haspopup": Z.value ? "menu" : void 0,
|
|
2342
|
+
"aria-expanded": Z.value ? H.value : void 0,
|
|
2343
|
+
onClick: Je
|
|
2339
2344
|
}, [
|
|
2340
2345
|
s.user?.avatarUrl ? (b(), a("img", {
|
|
2341
2346
|
key: 0,
|
|
2342
2347
|
src: s.user.avatarUrl,
|
|
2343
2348
|
alt: "",
|
|
2344
2349
|
class: "top-nav-bar__user-avatar"
|
|
2345
|
-
}, null, 8, Rn)) : (b(), a("span", zn, D(
|
|
2346
|
-
s.user ? (b(), a("span", Bn, [o("span", Vn, D(s.user.name), 1), s.client ? (b(), a("span", Hn, [o("span", Un, [u[
|
|
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", {
|
|
2347
2352
|
class: "pi pi-building",
|
|
2348
2353
|
"aria-hidden": "true"
|
|
2349
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),
|
|
2350
|
-
|
|
2355
|
+
Z.value ? (b(), a("i", Gn)) : i("", !0)
|
|
2351
2356
|
], 8, Ln)], void 0, 0) : i("", !0), w(n.$slots, "drawer-footer", { close: d })])) : i("", !0)
|
|
2352
2357
|
])]),
|
|
2353
2358
|
_: 3
|
|
2354
2359
|
}, 8, ["visible", "style"]),
|
|
2355
2360
|
l(O(re), {
|
|
2356
2361
|
ref_key: "drawerUserMenuRef",
|
|
2357
|
-
ref:
|
|
2362
|
+
ref: U,
|
|
2358
2363
|
class: "top-nav-bar__drawer-user-popup",
|
|
2359
|
-
model:
|
|
2364
|
+
model: Be.value,
|
|
2360
2365
|
popup: !0,
|
|
2361
2366
|
"append-to": "body",
|
|
2362
2367
|
"base-z-index": 10001,
|
|
@@ -2390,16 +2395,16 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
2390
2395
|
key: 1,
|
|
2391
2396
|
class: "flex w-full min-w-0 items-start gap-2 overflow-hidden px-2 py-3 text-sm",
|
|
2392
2397
|
style: { "white-space": "normal" }
|
|
2393
|
-
},
|
|
2398
|
+
}, cr = ["title"], lr = {
|
|
2394
2399
|
key: 0,
|
|
2395
2400
|
class: "top-select-option-prefix whitespace-nowrap font-bold text-primary-800 dark:text-primary-100"
|
|
2396
|
-
},
|
|
2401
|
+
}, ur = {
|
|
2397
2402
|
key: 0,
|
|
2398
2403
|
class: "rounded-sm bg-primary-200 p-0 font-bold text-black dark:bg-cyan-700 dark:text-white"
|
|
2399
|
-
},
|
|
2404
|
+
}, dr = {
|
|
2400
2405
|
key: 0,
|
|
2401
2406
|
class: "rounded-sm bg-primary-200 p-0 font-bold text-black dark:bg-cyan-700 dark:text-white"
|
|
2402
|
-
},
|
|
2407
|
+
}, fr = /* @__PURE__ */ u({
|
|
2403
2408
|
inheritAttrs: !1,
|
|
2404
2409
|
__name: "TopSelect",
|
|
2405
2410
|
props: {
|
|
@@ -2482,14 +2487,14 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
2482
2487
|
function re(e) {
|
|
2483
2488
|
return e == null ? "" : typeof f.optionLabel == "function" ? f.optionLabel(e) : ne(e, f.optionLabel);
|
|
2484
2489
|
}
|
|
2485
|
-
function
|
|
2490
|
+
function U(e) {
|
|
2486
2491
|
return f.optionPrefix ? ne(e, f.optionPrefix) : "";
|
|
2487
2492
|
}
|
|
2488
|
-
function
|
|
2489
|
-
let n = re(e), r =
|
|
2493
|
+
function W(e, t = f.showSelectedPrefix) {
|
|
2494
|
+
let n = re(e), r = U(e);
|
|
2490
2495
|
return t && r ? `${r} - ${n}` : n;
|
|
2491
2496
|
}
|
|
2492
|
-
function
|
|
2497
|
+
function G(e) {
|
|
2493
2498
|
let t = k.value;
|
|
2494
2499
|
if (!t) return [{
|
|
2495
2500
|
text: e,
|
|
@@ -2501,36 +2506,36 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
2501
2506
|
highlighted: e.toLowerCase() === t.toLowerCase()
|
|
2502
2507
|
}));
|
|
2503
2508
|
}
|
|
2504
|
-
function
|
|
2509
|
+
function K() {
|
|
2505
2510
|
P.value?.hide?.();
|
|
2506
2511
|
}
|
|
2507
|
-
function
|
|
2512
|
+
function ie() {
|
|
2508
2513
|
typeof window > "u" || window.dispatchEvent(new CustomEvent("top-select:close-others", { detail: { instanceId: L } }));
|
|
2509
2514
|
}
|
|
2510
|
-
function
|
|
2511
|
-
e.detail?.instanceId !== L &&
|
|
2515
|
+
function ae(e) {
|
|
2516
|
+
e.detail?.instanceId !== L && K();
|
|
2512
2517
|
}
|
|
2513
|
-
function
|
|
2518
|
+
function q() {
|
|
2514
2519
|
if (f.disabled || R) {
|
|
2515
|
-
|
|
2520
|
+
K();
|
|
2516
2521
|
return;
|
|
2517
2522
|
}
|
|
2518
|
-
N.value = !0,
|
|
2523
|
+
N.value = !0, ie();
|
|
2519
2524
|
}
|
|
2520
|
-
function
|
|
2521
|
-
f.closeOnSelect && (N.value = !1,
|
|
2522
|
-
|
|
2525
|
+
function J() {
|
|
2526
|
+
f.closeOnSelect && (N.value = !1, K(), m(K), R && clearTimeout(R), R = setTimeout(() => {
|
|
2527
|
+
K(), R = null;
|
|
2523
2528
|
}, 200));
|
|
2524
2529
|
}
|
|
2525
|
-
return r({ hideDropdown:
|
|
2526
|
-
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);
|
|
2527
2532
|
}), A(() => f.disabled, (e) => {
|
|
2528
|
-
e && (N.value = !1,
|
|
2533
|
+
e && (N.value = !1, K());
|
|
2529
2534
|
}), A(() => f.options, () => {
|
|
2530
|
-
N.value ||
|
|
2535
|
+
N.value || K();
|
|
2531
2536
|
}), (n, r) => (b(), a("div", {
|
|
2532
2537
|
class: h(["top-select top-solutions-component relative w-full", { "pointer-events-none": t.disabled }]),
|
|
2533
|
-
onFocusin:
|
|
2538
|
+
onFocusin: q
|
|
2534
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({
|
|
2535
2540
|
ref_key: "autocompleteRef",
|
|
2536
2541
|
ref: P
|
|
@@ -2541,7 +2546,7 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
2541
2546
|
"option-group-children": t.optionGroupChildren ?? void 0,
|
|
2542
2547
|
suggestions: t.options,
|
|
2543
2548
|
"data-key": t.optionKey,
|
|
2544
|
-
"option-label": (e) =>
|
|
2549
|
+
"option-label": (e) => W(e),
|
|
2545
2550
|
placeholder: t.placeholder,
|
|
2546
2551
|
multiple: t.multiple,
|
|
2547
2552
|
"min-length": t.minQueryLength,
|
|
@@ -2588,14 +2593,14 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
2588
2593
|
k.value = "", _("clear");
|
|
2589
2594
|
},
|
|
2590
2595
|
onItemSelect: r[2] ||= (e) => {
|
|
2591
|
-
k.value = "", _("select", e),
|
|
2596
|
+
k.value = "", _("select", e), J();
|
|
2592
2597
|
},
|
|
2593
2598
|
onComplete: r[3] ||= (e) => {
|
|
2594
2599
|
if (t.disabled) {
|
|
2595
|
-
|
|
2600
|
+
K();
|
|
2596
2601
|
return;
|
|
2597
2602
|
}
|
|
2598
|
-
k.value = e.query ?? "",
|
|
2603
|
+
k.value = e.query ?? "", ie(), _("search", {
|
|
2599
2604
|
...e,
|
|
2600
2605
|
query: k.value
|
|
2601
2606
|
});
|
|
@@ -2605,26 +2610,26 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
2605
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", {
|
|
2606
2611
|
class: "pi pi-times-circle shrink-0 cursor-pointer rounded-full hover:bg-primary-800",
|
|
2607
2612
|
onClick: (t) => e.removeCallback(t)
|
|
2608
|
-
}, 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)])), [[
|
|
2609
2614
|
O(F),
|
|
2610
|
-
|
|
2615
|
+
W(e.value),
|
|
2611
2616
|
void 0,
|
|
2612
2617
|
{ top: !0 }
|
|
2613
2618
|
]])])]))]),
|
|
2614
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))]),
|
|
2615
|
-
"selected-item": j((e) => [O(x)["selected-item"] ? w(n.$slots, "selected-item", g(d(e)), void 0, void 0, 0) : e.item ? (b(), a("span", ar, D(
|
|
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)]),
|
|
2616
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", {
|
|
2617
2622
|
key: 0,
|
|
2618
2623
|
class: h(e.option.icon)
|
|
2619
2624
|
}, null, 2)) : i("", !0), o("span", null, D(e.option[t.optionGroupLabel ?? "label"]), 1)]))]),
|
|
2620
2625
|
option: j((s) => [O(x).option ? w(n.$slots, "option", p(s, {
|
|
2621
2626
|
label: re(s.option),
|
|
2622
|
-
prefix:
|
|
2627
|
+
prefix: U(s.option),
|
|
2623
2628
|
query: k.value
|
|
2624
2629
|
}), void 0, void 0, 0) : M((b(), a("div", sr, [o("span", {
|
|
2625
2630
|
class: "top-select-option-label line-clamp-2 min-w-0 flex-1 text-secondary-700 dark:text-zinc-200",
|
|
2626
2631
|
title: re(s.option)
|
|
2627
|
-
}, [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)])), [[
|
|
2628
2633
|
O(F),
|
|
2629
2634
|
t.showTooltip ? re(s.option) : null,
|
|
2630
2635
|
void 0,
|
|
@@ -2653,7 +2658,7 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
2653
2658
|
"pt"
|
|
2654
2659
|
])], 34));
|
|
2655
2660
|
}
|
|
2656
|
-
}),
|
|
2661
|
+
}), pr = /* @__PURE__ */ u({
|
|
2657
2662
|
inheritAttrs: !1,
|
|
2658
2663
|
__name: "TopTabs",
|
|
2659
2664
|
props: {
|
|
@@ -2674,15 +2679,15 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
2674
2679
|
function o(e) {
|
|
2675
2680
|
return String(e.value);
|
|
2676
2681
|
}
|
|
2677
|
-
return (n, s) => (b(), r(O(
|
|
2682
|
+
return (n, s) => (b(), r(O(ie), p(n.$attrs, {
|
|
2678
2683
|
class: "top-tabs top-solutions-component w-full min-w-0",
|
|
2679
2684
|
value: t.modelValue,
|
|
2680
2685
|
lazy: t.lazy,
|
|
2681
2686
|
scrollable: t.scrollable,
|
|
2682
2687
|
"onUpdate:value": s[0] ||= (e) => i("update:modelValue", e)
|
|
2683
2688
|
}), {
|
|
2684
|
-
default: j(() => [l(O(
|
|
2685
|
-
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), {
|
|
2686
2691
|
key: e.value,
|
|
2687
2692
|
value: e.value,
|
|
2688
2693
|
disabled: e.disabled
|
|
@@ -2691,8 +2696,8 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
2691
2696
|
_: 2
|
|
2692
2697
|
}, 1032, ["value", "disabled"]))), 128))]),
|
|
2693
2698
|
_: 1
|
|
2694
|
-
}), l(O(
|
|
2695
|
-
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), {
|
|
2696
2701
|
key: e.value,
|
|
2697
2702
|
value: e.value
|
|
2698
2703
|
}, {
|
|
@@ -2714,12 +2719,12 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
2714
2719
|
});
|
|
2715
2720
|
//#endregion
|
|
2716
2721
|
//#region src/components/internal/topAccordion.ts
|
|
2717
|
-
function
|
|
2722
|
+
function mr(e, t) {
|
|
2718
2723
|
return `${e}--section-${encodeURIComponent(String(t))}`;
|
|
2719
2724
|
}
|
|
2720
2725
|
//#endregion
|
|
2721
2726
|
//#region src/components/TopAccordion.vue?vue&type=script&setup=true&lang.ts
|
|
2722
|
-
var
|
|
2727
|
+
var hr = Symbol("top-accordion-context"), gr = /* @__PURE__ */ u({
|
|
2723
2728
|
inheritAttrs: !1,
|
|
2724
2729
|
__name: "TopAccordion",
|
|
2725
2730
|
props: {
|
|
@@ -2744,7 +2749,7 @@ var mr = Symbol("top-accordion-context"), hr = /* @__PURE__ */ u({
|
|
|
2744
2749
|
return s.value.includes(e);
|
|
2745
2750
|
}
|
|
2746
2751
|
function g(e) {
|
|
2747
|
-
return
|
|
2752
|
+
return mr(i.id, e);
|
|
2748
2753
|
}
|
|
2749
2754
|
function _(e) {
|
|
2750
2755
|
s.value = Array.isArray(e) ? e : e == null ? [] : [e];
|
|
@@ -2760,7 +2765,7 @@ var mr = Symbol("top-accordion-context"), hr = /* @__PURE__ */ u({
|
|
|
2760
2765
|
behavior: t.behavior ?? "smooth"
|
|
2761
2766
|
}), !0;
|
|
2762
2767
|
}
|
|
2763
|
-
return x(
|
|
2768
|
+
return x(hr, {
|
|
2764
2769
|
accordionId: i.id,
|
|
2765
2770
|
sections: c,
|
|
2766
2771
|
openSections: s,
|
|
@@ -2775,7 +2780,7 @@ var mr = Symbol("top-accordion-context"), hr = /* @__PURE__ */ u({
|
|
|
2775
2780
|
ref_key: "rootRef",
|
|
2776
2781
|
ref: u,
|
|
2777
2782
|
class: "top-accordion top-solutions-component"
|
|
2778
|
-
}, [l(O(
|
|
2783
|
+
}, [l(O(ae), p(t.$attrs, {
|
|
2779
2784
|
value: d.value,
|
|
2780
2785
|
multiple: e.multiple,
|
|
2781
2786
|
"expand-icon": "pi pi-chevron-down",
|
|
@@ -2787,11 +2792,11 @@ var mr = Symbol("top-accordion-context"), hr = /* @__PURE__ */ u({
|
|
|
2787
2792
|
_: 3
|
|
2788
2793
|
}, 16, ["value", "multiple"])], 512));
|
|
2789
2794
|
}
|
|
2790
|
-
}),
|
|
2795
|
+
}), _r = {
|
|
2791
2796
|
key: 0,
|
|
2792
2797
|
class: "top-accordion-summary__separator",
|
|
2793
2798
|
"aria-hidden": "true"
|
|
2794
|
-
},
|
|
2799
|
+
}, vr = { class: "top-accordion-summary__item" }, yr = /* @__PURE__ */ u({
|
|
2795
2800
|
__name: "TopAccordionSummary",
|
|
2796
2801
|
props: {
|
|
2797
2802
|
items: { default: () => [] },
|
|
@@ -2812,12 +2817,12 @@ var mr = Symbol("top-accordion-context"), hr = /* @__PURE__ */ u({
|
|
|
2812
2817
|
return (r, s) => t.visible && (t.items.length || r.$slots.default) ? (b(), a("div", {
|
|
2813
2818
|
key: 0,
|
|
2814
2819
|
class: h(["top-accordion-summary", { "top-accordion-summary--nowrap": t.nowrap }])
|
|
2815
|
-
}, [(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);
|
|
2816
2821
|
}
|
|
2817
|
-
}),
|
|
2822
|
+
}), br = ["id"], xr = { class: "top-accordion-panel__heading" }, Sr = { class: "top-accordion-panel__title-row" }, Cr = {
|
|
2818
2823
|
class: "top-accordion-panel__badge",
|
|
2819
2824
|
"aria-hidden": "true"
|
|
2820
|
-
},
|
|
2825
|
+
}, wr = { key: 1 }, Tr = { class: "top-accordion-panel__title" }, Er = ["aria-label"], Dr = { class: "top-accordion-panel__content" }, Or = /* @__PURE__ */ u({
|
|
2821
2826
|
inheritAttrs: !1,
|
|
2822
2827
|
__name: "TopAccordionPanel",
|
|
2823
2828
|
props: {
|
|
@@ -2829,24 +2834,24 @@ var mr = Symbol("top-accordion-context"), hr = /* @__PURE__ */ u({
|
|
|
2829
2834
|
statusLabel: { default: "" }
|
|
2830
2835
|
},
|
|
2831
2836
|
setup(e) {
|
|
2832
|
-
let t = e, r = f(
|
|
2837
|
+
let t = e, r = f(hr);
|
|
2833
2838
|
if (!r) throw Error("TopAccordionPanel deve ser usado dentro de TopAccordion.");
|
|
2834
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");
|
|
2835
2840
|
return (t, n) => (b(), a("div", {
|
|
2836
2841
|
id: v.value,
|
|
2837
2842
|
class: "top-accordion-panel-anchor"
|
|
2838
|
-
}, [l(O(
|
|
2843
|
+
}, [l(O(oe), p(t.$attrs, {
|
|
2839
2844
|
value: e.value,
|
|
2840
2845
|
disabled: m.value,
|
|
2841
2846
|
class: "top-accordion-panel"
|
|
2842
2847
|
}), {
|
|
2843
|
-
default: j(() => [l(O(
|
|
2844
|
-
default: j(() => [o("div",
|
|
2845
|
-
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", {
|
|
2846
2851
|
key: 0,
|
|
2847
2852
|
class: h(d.value)
|
|
2848
|
-
}, null, 2)) : (b(), a("span",
|
|
2849
|
-
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)])]),
|
|
2850
2855
|
w(t.$slots, "status", {}, () => [e.status ? (b(), a("i", {
|
|
2851
2856
|
key: 0,
|
|
2852
2857
|
class: h([
|
|
@@ -2856,27 +2861,27 @@ var mr = Symbol("top-accordion-context"), hr = /* @__PURE__ */ u({
|
|
|
2856
2861
|
]),
|
|
2857
2862
|
"aria-label": e.statusLabel || (e.status === "valid" ? "Seção válida" : "Existem erros na seção"),
|
|
2858
2863
|
role: "img"
|
|
2859
|
-
}, null, 10,
|
|
2860
|
-
]), 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, {
|
|
2861
2866
|
items: e.summary,
|
|
2862
2867
|
visible: !_.value
|
|
2863
2868
|
}, null, 8, ["items", "visible"])], void 0, 1)])]),
|
|
2864
2869
|
_: 3
|
|
2865
|
-
}), l(O(
|
|
2866
|
-
default: j(() => [o("div",
|
|
2870
|
+
}), l(O(q), null, {
|
|
2871
|
+
default: j(() => [o("div", Dr, [w(t.$slots, "default")])]),
|
|
2867
2872
|
_: 3
|
|
2868
2873
|
})]),
|
|
2869
2874
|
_: 3
|
|
2870
|
-
}, 16, ["value", "disabled"])], 8,
|
|
2875
|
+
}, 16, ["value", "disabled"])], 8, br));
|
|
2871
2876
|
}
|
|
2872
|
-
}),
|
|
2877
|
+
}), kr = { class: "top-accordion-navigator__items" }, Ar = [
|
|
2873
2878
|
"disabled",
|
|
2874
2879
|
"aria-current",
|
|
2875
2880
|
"onClick"
|
|
2876
|
-
],
|
|
2881
|
+
], jr = { class: "top-accordion-navigator__badge" }, Mr = {
|
|
2877
2882
|
key: 0,
|
|
2878
2883
|
class: "pi pi-lock"
|
|
2879
|
-
},
|
|
2884
|
+
}, Nr = { key: 2 }, Pr = { class: "top-accordion-navigator__label" }, Fr = /* @__PURE__ */ u({
|
|
2880
2885
|
__name: "TopAccordionNavigator",
|
|
2881
2886
|
props: {
|
|
2882
2887
|
accordionId: {},
|
|
@@ -2912,7 +2917,7 @@ var mr = Symbol("top-accordion-context"), hr = /* @__PURE__ */ u({
|
|
|
2912
2917
|
async function E(e) {
|
|
2913
2918
|
if (e.disabled) return;
|
|
2914
2919
|
x(e.value) || (g.value = [...g.value, e.value]), c("navigate", e), await m(), await new Promise((e) => requestAnimationFrame(() => e()));
|
|
2915
|
-
let t = document.getElementById(
|
|
2920
|
+
let t = document.getElementById(mr(s.accordionId, e.value));
|
|
2916
2921
|
t && window.scrollTo({
|
|
2917
2922
|
top: t.getBoundingClientRect().top + window.scrollY - s.scrollOffset,
|
|
2918
2923
|
behavior: "smooth"
|
|
@@ -2951,7 +2956,7 @@ var mr = Symbol("top-accordion-context"), hr = /* @__PURE__ */ u({
|
|
|
2951
2956
|
ref_key: "containerRef",
|
|
2952
2957
|
ref: l,
|
|
2953
2958
|
class: "top-accordion-navigator__scroll-area"
|
|
2954
|
-
}, [o("div",
|
|
2959
|
+
}, [o("div", kr, [(b(!0), a(e, null, C(t.sections, (n, r) => (b(), a(e, { key: n.value }, [o("button", {
|
|
2955
2960
|
class: h(["top-accordion-navigator__item", {
|
|
2956
2961
|
"top-accordion-navigator__item--open": x(n.value),
|
|
2957
2962
|
"top-accordion-navigator__item--disabled": n.disabled
|
|
@@ -2960,20 +2965,20 @@ var mr = Symbol("top-accordion-context"), hr = /* @__PURE__ */ u({
|
|
|
2960
2965
|
type: "button",
|
|
2961
2966
|
"aria-current": x(n.value) ? "step" : void 0,
|
|
2962
2967
|
onClick: (e) => E(n)
|
|
2963
|
-
}, [o("span",
|
|
2968
|
+
}, [o("span", jr, [n.disabled ? (b(), a("i", Mr)) : n.icon ? (b(), a("i", {
|
|
2964
2969
|
key: 1,
|
|
2965
2970
|
class: h(n.icon)
|
|
2966
|
-
}, 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", {
|
|
2967
2972
|
key: 0,
|
|
2968
2973
|
class: h(["top-accordion-navigator__connector", { "top-accordion-navigator__connector--open": x(n.value) && x(t.sections[r + 1].value) }]),
|
|
2969
2974
|
"aria-hidden": "true"
|
|
2970
2975
|
}, null, 2)) : i("", !0)], 64))), 128))])], 512)
|
|
2971
2976
|
], 6));
|
|
2972
2977
|
}
|
|
2973
|
-
}),
|
|
2978
|
+
}), Ir = { class: "top-toast__content" }, Lr = { class: "top-toast__detail" }, Rr = ["onClick"], zr = {
|
|
2974
2979
|
key: 0,
|
|
2975
2980
|
class: "top-toast__footer"
|
|
2976
|
-
},
|
|
2981
|
+
}, Br = /* @__PURE__ */ u({
|
|
2977
2982
|
__name: "TopToast",
|
|
2978
2983
|
props: { baseZIndex: { default: 3e4 } },
|
|
2979
2984
|
setup(e) {
|
|
@@ -2995,13 +3000,13 @@ var mr = Symbol("top-accordion-context"), hr = /* @__PURE__ */ u({
|
|
|
2995
3000
|
function d(e, t) {
|
|
2996
3001
|
return `top-toast__${t}--${e.severity ?? "info"}`;
|
|
2997
3002
|
}
|
|
2998
|
-
return (f, p) => (b(), r(O(
|
|
3003
|
+
return (f, p) => (b(), r(O(se), {
|
|
2999
3004
|
position: "top-right",
|
|
3000
3005
|
"base-z-index": e.baseZIndex
|
|
3001
3006
|
}, {
|
|
3002
|
-
message: j((e) => [o("div",
|
|
3007
|
+
message: j((e) => [o("div", Ir, [
|
|
3003
3008
|
o("div", { class: h(["top-toast__summary", d(e.message, "summary")]) }, D(e.message.summary), 3),
|
|
3004
|
-
o("div",
|
|
3009
|
+
o("div", Lr, D(e.message.detail), 1),
|
|
3005
3010
|
u(e.message) ? w(f.$slots, "action", {
|
|
3006
3011
|
action: n(e.message),
|
|
3007
3012
|
message: e.message,
|
|
@@ -3015,17 +3020,17 @@ var mr = Symbol("top-accordion-context"), hr = /* @__PURE__ */ u({
|
|
|
3015
3020
|
key: 0,
|
|
3016
3021
|
class: h(n(e.message)?.icon),
|
|
3017
3022
|
"aria-hidden": "true"
|
|
3018
|
-
}, 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),
|
|
3019
3024
|
l(e.message) ? w(f.$slots, "footer", {
|
|
3020
3025
|
message: e.message,
|
|
3021
3026
|
footer: t(e.message)
|
|
3022
|
-
}, () => [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)
|
|
3023
3028
|
])]),
|
|
3024
3029
|
_: 3
|
|
3025
3030
|
}, 8, ["base-z-index"]));
|
|
3026
3031
|
}
|
|
3027
3032
|
});
|
|
3028
3033
|
//#endregion
|
|
3029
|
-
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 };
|
|
3030
3035
|
|
|
3031
|
-
//# sourceMappingURL=TopToast-
|
|
3036
|
+
//# sourceMappingURL=TopToast-BHqigMPQ.js.map
|