@topjoao/top-design-system 0.1.0-beta.20 → 0.1.0-beta.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +52 -25
- package/dist/TopToast-Dkz2oCA0.cjs +2 -0
- package/dist/TopToast-Dkz2oCA0.cjs.map +1 -0
- package/dist/{TopToast-SOmpzVY5.js → TopToast-ZB64v4w6.js} +663 -578
- package/dist/TopToast-ZB64v4w6.js.map +1 -0
- package/dist/components/TopNavBar.vue.d.ts +61 -58
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/plugin.cjs +1 -1
- package/dist/plugin.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/TopToast-CJpXTbO3.cjs +0 -2
- package/dist/TopToast-CJpXTbO3.cjs.map +0 -1
- package/dist/TopToast-SOmpzVY5.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Fragment as e, Transition as t, computed as n, createBlock as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, createSlots as s, createTextVNode as c, createVNode as l, defineComponent as u, guardReactiveProps as d, mergeProps as f, nextTick as p, normalizeClass as m, normalizeProps as h, normalizeStyle as g, onBeforeUnmount as ee, onMounted as te, openBlock as _, ref as v, renderList as y, renderSlot as b, resolveComponent as x, resolveDynamicComponent as S, toDisplayString as C, unref as w, useAttrs as
|
|
1
|
+
import { Fragment as e, Transition as t, computed as n, createBlock as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, createSlots as s, createTextVNode as c, createVNode as l, defineComponent as u, guardReactiveProps as d, mergeProps as f, nextTick as p, normalizeClass as m, normalizeProps as h, normalizeStyle as g, onBeforeUnmount as ee, onMounted as te, openBlock as _, ref as v, renderList as y, renderSlot as b, resolveComponent as x, resolveDynamicComponent as S, toDisplayString as C, unref as w, useAttrs as T, useId as E, useSlots as D, watch as O, withCtx as k, withDirectives as ne, withModifiers as A } from "vue";
|
|
2
2
|
import j from "primevue/button";
|
|
3
3
|
import M from "primevue/tooltip";
|
|
4
4
|
import { twMerge as N } from "tailwind-merge";
|
|
@@ -7,15 +7,16 @@ import F from "primevue/datepicker";
|
|
|
7
7
|
import I from "primevue/fileupload";
|
|
8
8
|
import L from "primevue/inputtext";
|
|
9
9
|
import re from "primevue/drawer";
|
|
10
|
+
import ie from "primevue/menu";
|
|
10
11
|
import R from "primevue/autocomplete";
|
|
11
12
|
import z from "primevue/tab";
|
|
12
13
|
import B from "primevue/tablist";
|
|
13
14
|
import V from "primevue/tabpanel";
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
15
|
+
import ae from "primevue/tabpanels";
|
|
16
|
+
import H from "primevue/tabs";
|
|
17
|
+
import U from "primevue/toast";
|
|
17
18
|
//#region src/components/TopButton.vue?vue&type=script&setup=true&lang.ts
|
|
18
|
-
var
|
|
19
|
+
var W = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px] bg-transparent" }, oe = /* @__PURE__ */ u({
|
|
19
20
|
__name: "TopButton",
|
|
20
21
|
props: {
|
|
21
22
|
tooltip: { default: "" },
|
|
@@ -48,11 +49,11 @@ var G = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px]
|
|
|
48
49
|
},
|
|
49
50
|
emits: ["click"],
|
|
50
51
|
setup(e, { emit: t }) {
|
|
51
|
-
let i =
|
|
52
|
+
let i = D(), o = n(() => !!i.icon), c = e, l = t, u = n(() => c.secondary ? "secondary" : c.severity), d = n(() => {
|
|
52
53
|
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";
|
|
53
54
|
return N(e, c.class);
|
|
54
55
|
});
|
|
55
|
-
return (t, n) => (_(), a("span",
|
|
56
|
+
return (t, n) => (_(), a("span", W, [ne((_(), r(w(j), {
|
|
56
57
|
type: e.type,
|
|
57
58
|
label: e.label,
|
|
58
59
|
disabled: e.disabled || e.loading,
|
|
@@ -65,7 +66,7 @@ var G = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px]
|
|
|
65
66
|
onClick: n[0] ||= (e) => l("click")
|
|
66
67
|
}, s({ _: 2 }, [o.value ? {
|
|
67
68
|
name: "icon",
|
|
68
|
-
fn:
|
|
69
|
+
fn: k(() => [b(t.$slots, "icon")]),
|
|
69
70
|
key: "0"
|
|
70
71
|
} : void 0]), 1032, [
|
|
71
72
|
"type",
|
|
@@ -87,7 +88,7 @@ var G = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px]
|
|
|
87
88
|
{ top: !0 }
|
|
88
89
|
]])]));
|
|
89
90
|
}
|
|
90
|
-
}),
|
|
91
|
+
}), se = {
|
|
91
92
|
primary: {
|
|
92
93
|
50: "#EEF9FF",
|
|
93
94
|
100: "#DFF4FF",
|
|
@@ -153,7 +154,7 @@ var G = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px]
|
|
|
153
154
|
900: "#5D0803",
|
|
154
155
|
950: "#450501"
|
|
155
156
|
}
|
|
156
|
-
},
|
|
157
|
+
}, G = ["aria-label", "disabled"], K = { class: "flex flex-col items-center gap-2 pt-2" }, q = { class: "text-base font-bold text-secondary-900 dark:text-zinc-100" }, ce = { class: "text-sm leading-5 text-secondary-700 dark:text-zinc-300" }, J = { class: "mt-2 flex w-full items-center justify-center gap-3" }, le = /* @__PURE__ */ u({
|
|
157
158
|
__name: "TopConfirmDialog",
|
|
158
159
|
props: {
|
|
159
160
|
modelValue: {
|
|
@@ -185,8 +186,8 @@ var G = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px]
|
|
|
185
186
|
!e && i.loading || a("update:modelValue", e);
|
|
186
187
|
}
|
|
187
188
|
}), u = n(() => ({
|
|
188
|
-
"--top-confirm-dialog-accent": i.severity === "danger" ?
|
|
189
|
-
"--top-confirm-dialog-accent-hover": i.severity === "danger" ?
|
|
189
|
+
"--top-confirm-dialog-accent": i.severity === "danger" ? se.danger[600] : se.primary[800],
|
|
190
|
+
"--top-confirm-dialog-accent-hover": i.severity === "danger" ? se.danger[700] : se.primary[700]
|
|
190
191
|
})), 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(" "));
|
|
191
192
|
function f() {
|
|
192
193
|
i.loading || a("confirm");
|
|
@@ -218,7 +219,7 @@ var G = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px]
|
|
|
218
219
|
},
|
|
219
220
|
onHide: n[1] ||= (e) => a("close")
|
|
220
221
|
}, {
|
|
221
|
-
default:
|
|
222
|
+
default: k(() => [o("div", {
|
|
222
223
|
class: "relative flex flex-col items-center gap-4 text-center",
|
|
223
224
|
style: g(u.value)
|
|
224
225
|
}, [
|
|
@@ -231,19 +232,19 @@ var G = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px]
|
|
|
231
232
|
}, [...n[2] ||= [o("i", {
|
|
232
233
|
class: "pi pi-times text-lg",
|
|
233
234
|
"aria-hidden": "true"
|
|
234
|
-
}, null, -1)]], 8,
|
|
235
|
-
o("div",
|
|
235
|
+
}, null, -1)]], 8, G),
|
|
236
|
+
o("div", K, [o("i", {
|
|
236
237
|
class: m([e.icon, "top-confirm-dialog__icon text-[40px]"]),
|
|
237
238
|
"aria-hidden": "true"
|
|
238
|
-
}, null, 2), o("p",
|
|
239
|
-
o("div",
|
|
240
|
-
o("div",
|
|
239
|
+
}, null, 2), o("p", q, C(e.title), 1)]),
|
|
240
|
+
o("div", ce, [b(t.$slots, "message", {}, () => [b(t.$slots, "default", {}, () => [c(C(e.message), 1)])])]),
|
|
241
|
+
o("div", J, [l(oe, {
|
|
241
242
|
label: e.cancelText,
|
|
242
243
|
secondary: "",
|
|
243
244
|
disabled: e.loading,
|
|
244
245
|
class: "px-3 py-2 text-sm",
|
|
245
246
|
onClick: p
|
|
246
|
-
}, null, 8, ["label", "disabled"]), l(
|
|
247
|
+
}, null, 8, ["label", "disabled"]), l(oe, {
|
|
247
248
|
label: e.loading ? e.loadingText : e.confirmText,
|
|
248
249
|
loading: e.loading,
|
|
249
250
|
class: m(d.value),
|
|
@@ -261,11 +262,11 @@ var G = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px]
|
|
|
261
262
|
"aria-label"
|
|
262
263
|
]));
|
|
263
264
|
}
|
|
264
|
-
}),
|
|
265
|
+
}), ue = { class: "top-date-picker top-solutions-component flex w-full flex-col gap-1" }, de = ["for"], fe = {
|
|
265
266
|
key: 0,
|
|
266
267
|
"aria-hidden": "true",
|
|
267
268
|
class: "text-red-600 dark:text-red-400"
|
|
268
|
-
},
|
|
269
|
+
}, pe = ["id"], me = /* @__PURE__ */ u({
|
|
269
270
|
inheritAttrs: !1,
|
|
270
271
|
__name: "TopDatePicker",
|
|
271
272
|
props: {
|
|
@@ -324,17 +325,17 @@ var G = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px]
|
|
|
324
325
|
"keydown"
|
|
325
326
|
],
|
|
326
327
|
setup(e, { emit: t }) {
|
|
327
|
-
let r = e, o = t, u =
|
|
328
|
+
let r = e, o = t, u = T(), p = D(), m = E(), g = n(() => u.id === void 0 || u.id === null || u.id === "" ? m : String(u.id)), ee = n(() => `${g.value}-error`), te = n(() => r.invalid || !!r.error), v = n(() => r.manualInput && !r.readonly && !r.disabled && r.selectionMode === "single" && r.dateFormat === "dd/mm/yy"), x = n(() => {
|
|
328
329
|
if (te.value) return !0;
|
|
329
330
|
let e = u["aria-invalid"];
|
|
330
331
|
return typeof e == "boolean" || e === "true" || e === "false" || e === "grammar" || e === "spelling" ? e : void 0;
|
|
331
332
|
}), S = n(() => {
|
|
332
333
|
let e = u["aria-describedby"], t = [typeof e == "string" ? e : "", r.error ? ee.value : ""].filter(Boolean);
|
|
333
334
|
return t.length ? t.join(" ") : void 0;
|
|
334
|
-
}),
|
|
335
|
+
}), O = n(() => {
|
|
335
336
|
let { id: e, "aria-describedby": t, "aria-invalid": n, ...r } = u;
|
|
336
337
|
return r;
|
|
337
|
-
}),
|
|
338
|
+
}), ne = n(() => ({ pcInputText: { root: {
|
|
338
339
|
"aria-describedby": S.value,
|
|
339
340
|
"aria-invalid": x.value,
|
|
340
341
|
onChange: (e) => o("change", e),
|
|
@@ -356,13 +357,13 @@ var G = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px]
|
|
|
356
357
|
}
|
|
357
358
|
o("input", e);
|
|
358
359
|
}
|
|
359
|
-
return (t, n) => (_(), a("div",
|
|
360
|
+
return (t, n) => (_(), a("div", ue, [
|
|
360
361
|
e.label ? (_(), a("label", {
|
|
361
362
|
key: 0,
|
|
362
363
|
for: g.value,
|
|
363
364
|
class: "top-field-label text-xs font-bold"
|
|
364
|
-
}, [c(C(e.label) + " ", 1), e.required ? (_(), a("span",
|
|
365
|
-
l(w(F), f(
|
|
365
|
+
}, [c(C(e.label) + " ", 1), e.required ? (_(), a("span", fe, "*")) : i("", !0)], 8, de)) : i("", !0),
|
|
366
|
+
l(w(F), f(O.value, {
|
|
366
367
|
"model-value": e.modelValue,
|
|
367
368
|
"input-id": g.value,
|
|
368
369
|
placeholder: e.placeholder,
|
|
@@ -380,7 +381,7 @@ var G = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px]
|
|
|
380
381
|
"manual-input": e.manualInput,
|
|
381
382
|
"show-button-bar": e.showButtonBar,
|
|
382
383
|
"append-to": e.appendTo,
|
|
383
|
-
pt:
|
|
384
|
+
pt: ne.value,
|
|
384
385
|
"input-class": "top-date-picker__input top-field-control h-[40px] w-full rounded-[10px] border px-3 py-2 text-xs read-only:cursor-default disabled:cursor-not-allowed",
|
|
385
386
|
"panel-class": "top-date-picker-panel top-solutions-component",
|
|
386
387
|
fluid: "",
|
|
@@ -398,7 +399,7 @@ var G = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px]
|
|
|
398
399
|
onKeydown: n[9] ||= (e) => o("keydown", e)
|
|
399
400
|
}), s({ _: 2 }, [y(w(p), (e, n) => ({
|
|
400
401
|
name: n,
|
|
401
|
-
fn:
|
|
402
|
+
fn: k((e) => [b(t.$slots, n, h(d(e ?? {})))])
|
|
402
403
|
}))]), 1040, [
|
|
403
404
|
"model-value",
|
|
404
405
|
"input-id",
|
|
@@ -423,10 +424,10 @@ var G = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px]
|
|
|
423
424
|
id: ee.value,
|
|
424
425
|
class: "text-[11px] text-red-600 dark:text-red-400",
|
|
425
426
|
role: "alert"
|
|
426
|
-
}, C(e.error), 9,
|
|
427
|
+
}, C(e.error), 9, pe)) : i("", !0)
|
|
427
428
|
]));
|
|
428
429
|
}
|
|
429
|
-
}),
|
|
430
|
+
}), Y = [["path", {
|
|
430
431
|
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",
|
|
431
432
|
stroke: "currentColor",
|
|
432
433
|
strokeLinecap: "round",
|
|
@@ -534,28 +535,28 @@ function ye(t, n, i, o, s, c) {
|
|
|
534
535
|
ref_for: !0
|
|
535
536
|
}, t.transformAttrs(e[1], t.calculatedStrokeWidth)), null, 16))), 128))], 16, ve);
|
|
536
537
|
}
|
|
537
|
-
var be = /* @__PURE__ */ _e(ge, [["render", ye], ["__file", "/Users/mahmudulhasan/Desktop/Projects/Hugeicons/hugeicons-monorepo/packages/vue/src/components/HugeiconsIcon.vue"]]), xe = { class: "top-file-upload top-solutions-component flex w-full flex-col gap-1" }, Se = ["for"],
|
|
538
|
+
var be = /* @__PURE__ */ _e(ge, [["render", ye], ["__file", "/Users/mahmudulhasan/Desktop/Projects/Hugeicons/hugeicons-monorepo/packages/vue/src/components/HugeiconsIcon.vue"]]), xe = { class: "top-file-upload top-solutions-component flex w-full flex-col gap-1" }, Se = ["for"], Ce = {
|
|
538
539
|
key: 0,
|
|
539
540
|
"aria-hidden": "true",
|
|
540
541
|
class: "text-red-600 dark:text-red-400"
|
|
541
|
-
},
|
|
542
|
+
}, we = { class: "flex min-h-[130px] w-full flex-col items-center justify-center gap-3" }, Te = {
|
|
542
543
|
class: "top-file-upload__empty-icon",
|
|
543
544
|
"aria-hidden": "true"
|
|
544
|
-
},
|
|
545
|
+
}, Ee = {
|
|
545
546
|
key: 0,
|
|
546
547
|
"aria-label": "Carregando...",
|
|
547
548
|
class: "pi pi-spin pi-spinner text-5xl"
|
|
548
|
-
},
|
|
549
|
+
}, De = { class: "m-0 text-center text-xs text-secondary-600 dark:text-zinc-300" }, Oe = {
|
|
549
550
|
key: 1,
|
|
550
551
|
class: "flex w-full flex-col gap-2"
|
|
551
|
-
},
|
|
552
|
+
}, ke = ["src", "alt"], Ae = {
|
|
552
553
|
key: 1,
|
|
553
554
|
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"
|
|
554
|
-
},
|
|
555
|
+
}, je = { class: "min-w-0 flex-1" }, Me = { class: "m-0 truncate text-xs font-bold text-secondary-900 dark:text-zinc-100" }, Ne = { class: "text-[11px] text-secondary-500 dark:text-zinc-400" }, X = [
|
|
555
556
|
"aria-label",
|
|
556
557
|
"disabled",
|
|
557
558
|
"onClick"
|
|
558
|
-
],
|
|
559
|
+
], Pe = ["id"], Fe = /* @__PURE__ */ u({
|
|
559
560
|
inheritAttrs: !1,
|
|
560
561
|
__name: "TopFileUpload",
|
|
561
562
|
props: {
|
|
@@ -594,12 +595,12 @@ var be = /* @__PURE__ */ _e(ge, [["render", ye], ["__file", "/Users/mahmudulhasa
|
|
|
594
595
|
"error"
|
|
595
596
|
],
|
|
596
597
|
setup(t, { expose: s, emit: u }) {
|
|
597
|
-
let d = t, f = u, m =
|
|
598
|
+
let d = t, f = u, m = T(), h = E(), g = v(null), x = v(F(d.modelValue)), S = v([]), D = /* @__PURE__ */ new Map(), ne = n(() => m.id === void 0 || m.id === null || m.id === "" ? h : String(m.id)), A = n(() => `${ne.value}-error`), j = n(() => d.error || S.value[0]?.message || ""), M = n(() => d.disabled || d.loading), N = n(() => {
|
|
598
599
|
let e = m["aria-describedby"], t = [typeof e == "string" ? e : "", j.value ? A.value : ""].filter(Boolean);
|
|
599
600
|
return t.length ? t.join(" ") : void 0;
|
|
600
601
|
}), P = n(() => ({
|
|
601
602
|
...m,
|
|
602
|
-
id:
|
|
603
|
+
id: ne.value,
|
|
603
604
|
required: d.required,
|
|
604
605
|
"aria-invalid": j.value ? !0 : m["aria-invalid"],
|
|
605
606
|
"aria-describedby": N.value,
|
|
@@ -617,17 +618,17 @@ var be = /* @__PURE__ */ _e(ge, [["render", ye], ["__file", "/Users/mahmudulhasa
|
|
|
617
618
|
return n ? n.startsWith(".") ? e.name.toLowerCase().endsWith(n) : n.endsWith("/*") ? r.startsWith(n.slice(0, -1)) : r === n : !1;
|
|
618
619
|
});
|
|
619
620
|
}
|
|
620
|
-
function
|
|
621
|
+
function ie(e) {
|
|
621
622
|
return e < 1024 ? `${e} B` : e < 1048576 ? `${(e / 1024).toFixed(1)} KB` : `${(e / 1048576).toFixed(2)} MB`;
|
|
622
623
|
}
|
|
623
|
-
function
|
|
624
|
+
function R(e) {
|
|
624
625
|
let t = [];
|
|
625
626
|
return {
|
|
626
627
|
errors: t,
|
|
627
628
|
validFiles: e.filter((e) => re(e) ? d.maxFileSize && e.size > d.maxFileSize ? (t.push({
|
|
628
629
|
code: "file-size",
|
|
629
630
|
file: e,
|
|
630
|
-
message: `O arquivo "${e.name}" excede o tamanho máximo de ${
|
|
631
|
+
message: `O arquivo "${e.name}" excede o tamanho máximo de ${ie(d.maxFileSize)}.`
|
|
631
632
|
}), !1) : !0 : (t.push({
|
|
632
633
|
code: "file-type",
|
|
633
634
|
file: e,
|
|
@@ -635,23 +636,23 @@ var be = /* @__PURE__ */ _e(ge, [["render", ye], ["__file", "/Users/mahmudulhasa
|
|
|
635
636
|
}), !1))
|
|
636
637
|
};
|
|
637
638
|
}
|
|
638
|
-
function
|
|
639
|
+
function z(e) {
|
|
639
640
|
let t = e.originalEvent;
|
|
640
641
|
return Array.from(t.dataTransfer?.files ?? t.target?.files ?? []);
|
|
641
642
|
}
|
|
642
|
-
function
|
|
643
|
+
function B(e) {
|
|
643
644
|
return d.multiple ? [...e] : e[0] ?? null;
|
|
644
645
|
}
|
|
645
|
-
function
|
|
646
|
+
function V() {
|
|
646
647
|
g.value && (g.value.files = [...x.value]);
|
|
647
648
|
}
|
|
648
|
-
function
|
|
649
|
-
x.value = e, S.value = [],
|
|
650
|
-
let n =
|
|
649
|
+
function ae(e, t) {
|
|
650
|
+
x.value = e, S.value = [], q(), p(V);
|
|
651
|
+
let n = B(e);
|
|
651
652
|
f("update:modelValue", n), f("change", n), t === "select" && f("select", [...e]), t === "clear" && f("clear");
|
|
652
653
|
}
|
|
653
|
-
function
|
|
654
|
-
let { errors: t, validFiles: n } = z(
|
|
654
|
+
function H(e) {
|
|
655
|
+
let { errors: t, validFiles: n } = R(z(e)), r = d.multiple ? [...x.value, ...n.filter((e) => !x.value.some((t) => L(t, e)))] : n.slice(-1);
|
|
655
656
|
if (d.maxFiles && r.length > d.maxFiles) {
|
|
656
657
|
let e = r.slice(d.maxFiles);
|
|
657
658
|
t.push(...e.map((e) => ({
|
|
@@ -660,57 +661,57 @@ var be = /* @__PURE__ */ _e(ge, [["render", ye], ["__file", "/Users/mahmudulhasa
|
|
|
660
661
|
message: `O limite máximo é de ${d.maxFiles} arquivo(s).`
|
|
661
662
|
}))), r = r.slice(0, d.maxFiles);
|
|
662
663
|
}
|
|
663
|
-
if (t.length ? (S.value = t, f("error", t)) : S.value = [],
|
|
664
|
-
x.value = r,
|
|
665
|
-
let e =
|
|
664
|
+
if (t.length ? (S.value = t, f("error", t)) : S.value = [], V(), n.length && !U(r, x.value)) {
|
|
665
|
+
x.value = r, q(), p(V);
|
|
666
|
+
let e = B(r);
|
|
666
667
|
f("update:modelValue", e), f("change", e), f("select", [...r]);
|
|
667
668
|
}
|
|
668
669
|
}
|
|
669
|
-
function
|
|
670
|
+
function U(e, t) {
|
|
670
671
|
return e.length === t.length && e.every((e, n) => L(e, t[n]));
|
|
671
672
|
}
|
|
672
|
-
function
|
|
673
|
+
function W() {
|
|
673
674
|
M.value || g.value?.choose();
|
|
674
675
|
}
|
|
675
|
-
function
|
|
676
|
+
function se(e, t) {
|
|
676
677
|
if (M.value) return;
|
|
677
678
|
let n = x.value[t];
|
|
678
679
|
if (!n) return;
|
|
679
680
|
e(t);
|
|
680
681
|
let r = x.value.filter((e, n) => n !== t);
|
|
681
|
-
|
|
682
|
+
ae(r, "remove"), f("remove", n, t), r.length || f("clear");
|
|
682
683
|
}
|
|
683
|
-
function
|
|
684
|
-
M.value || !x.value.length ||
|
|
684
|
+
function G() {
|
|
685
|
+
M.value || !x.value.length || ae([], "clear");
|
|
685
686
|
}
|
|
686
|
-
function
|
|
687
|
+
function K(e) {
|
|
687
688
|
if (!e.type.startsWith("image/") || typeof URL.createObjectURL != "function") return "";
|
|
688
|
-
let t =
|
|
689
|
+
let t = D.get(e);
|
|
689
690
|
if (t) return t;
|
|
690
691
|
let n = URL.createObjectURL(e);
|
|
691
|
-
return
|
|
692
|
+
return D.set(e, n), n;
|
|
692
693
|
}
|
|
693
|
-
function
|
|
694
|
-
for (let [e, t] of
|
|
694
|
+
function q() {
|
|
695
|
+
for (let [e, t] of D) x.value.includes(e) || (URL.revokeObjectURL(t), D.delete(e));
|
|
695
696
|
}
|
|
696
|
-
return
|
|
697
|
+
return O(() => d.modelValue, (e) => {
|
|
697
698
|
let t = F(e);
|
|
698
|
-
|
|
699
|
-
}),
|
|
699
|
+
U(t, x.value) || (x.value = t, S.value = [], q(), p(V));
|
|
700
|
+
}), O(() => d.multiple, () => {
|
|
700
701
|
let e = F(d.modelValue);
|
|
701
|
-
x.value = e,
|
|
702
|
-
}), te(
|
|
703
|
-
for (let e of
|
|
704
|
-
|
|
702
|
+
x.value = e, q(), p(V);
|
|
703
|
+
}), te(V), ee(() => {
|
|
704
|
+
for (let e of D.values()) URL.revokeObjectURL(e);
|
|
705
|
+
D.clear();
|
|
705
706
|
}), s({
|
|
706
|
-
choose:
|
|
707
|
-
clear:
|
|
707
|
+
choose: W,
|
|
708
|
+
clear: G
|
|
708
709
|
}), (n, s) => (_(), a("div", xe, [
|
|
709
710
|
t.label ? (_(), a("label", {
|
|
710
711
|
key: 0,
|
|
711
|
-
for:
|
|
712
|
+
for: ne.value,
|
|
712
713
|
class: "text-xs font-bold text-secondary-800 dark:text-zinc-200"
|
|
713
|
-
}, [c(C(t.label) + " ", 1), t.required ? (_(), a("span",
|
|
714
|
+
}, [c(C(t.label) + " ", 1), t.required ? (_(), a("span", Ce, "*")) : i("", !0)], 8, Se)) : i("", !0),
|
|
714
715
|
l(w(I), {
|
|
715
716
|
ref_key: "fileUploadRef",
|
|
716
717
|
ref: g,
|
|
@@ -731,37 +732,37 @@ var be = /* @__PURE__ */ _e(ge, [["render", ye], ["__file", "/Users/mahmudulhasa
|
|
|
731
732
|
M.value ? "cursor-not-allowed opacity-60" : ""
|
|
732
733
|
].join(" ") }
|
|
733
734
|
},
|
|
734
|
-
onSelect:
|
|
735
|
+
onSelect: H
|
|
735
736
|
}, {
|
|
736
|
-
content:
|
|
737
|
+
content: k(({ removeFileCallback: c }) => [o("div", we, [x.value.length ? (_(), a("div", Oe, [(_(!0), a(e, null, y(x.value, (e, r) => (_(), a("div", {
|
|
737
738
|
key: `${e.name}-${e.size}-${e.lastModified}`,
|
|
738
739
|
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"
|
|
739
740
|
}, [
|
|
740
741
|
b(n.$slots, "preview", {
|
|
741
742
|
file: e,
|
|
742
743
|
index: r,
|
|
743
|
-
url:
|
|
744
|
-
}, () => [
|
|
744
|
+
url: K(e)
|
|
745
|
+
}, () => [K(e) ? (_(), a("img", {
|
|
745
746
|
key: 0,
|
|
746
|
-
src:
|
|
747
|
+
src: K(e),
|
|
747
748
|
alt: `Pré-visualização de ${e.name}`,
|
|
748
749
|
class: "size-12 shrink-0 rounded-lg object-cover"
|
|
749
|
-
}, null, 8,
|
|
750
|
+
}, null, 8, ke)) : (_(), a("span", Ae, [...s[0] ||= [o("i", {
|
|
750
751
|
class: "pi pi-file text-2xl",
|
|
751
752
|
"aria-hidden": "true"
|
|
752
753
|
}, null, -1)]]))]),
|
|
753
|
-
o("div",
|
|
754
|
+
o("div", je, [o("p", Me, C(e.name), 1), o("span", Ne, C(ie(e.size)), 1)]),
|
|
754
755
|
o("button", {
|
|
755
756
|
type: "button",
|
|
756
757
|
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",
|
|
757
758
|
"aria-label": `${t.removeLabel}: ${e.name}`,
|
|
758
759
|
disabled: M.value,
|
|
759
|
-
onClick: (e) =>
|
|
760
|
+
onClick: (e) => se(c, r)
|
|
760
761
|
}, [...s[1] ||= [o("i", {
|
|
761
762
|
class: "pi pi-times",
|
|
762
763
|
"aria-hidden": "true"
|
|
763
|
-
}, null, -1)]], 8,
|
|
764
|
-
]))), 128)), t.multiple && (!t.maxFiles || x.value.length < t.maxFiles) ? (_(), r(
|
|
764
|
+
}, null, -1)]], 8, X)
|
|
765
|
+
]))), 128)), t.multiple && (!t.maxFiles || x.value.length < t.maxFiles) ? (_(), r(oe, {
|
|
765
766
|
key: 0,
|
|
766
767
|
label: t.selectLabel,
|
|
767
768
|
icon: "pi pi-plus-circle",
|
|
@@ -769,30 +770,30 @@ var be = /* @__PURE__ */ _e(ge, [["render", ye], ["__file", "/Users/mahmudulhasa
|
|
|
769
770
|
disabled: t.disabled,
|
|
770
771
|
loading: t.loading,
|
|
771
772
|
class: "mt-1 px-3 py-2 text-xs",
|
|
772
|
-
onClick:
|
|
773
|
+
onClick: W
|
|
773
774
|
}, null, 8, [
|
|
774
775
|
"label",
|
|
775
776
|
"disabled",
|
|
776
777
|
"loading"
|
|
777
778
|
])) : i("", !0)])) : b(n.$slots, "empty", {
|
|
778
|
-
choose:
|
|
779
|
+
choose: W,
|
|
779
780
|
disabled: M.value
|
|
780
781
|
}, () => [
|
|
781
|
-
o("span",
|
|
782
|
+
o("span", Te, [t.loading ? (_(), a("i", Ee)) : (_(), r(w(be), {
|
|
782
783
|
key: 1,
|
|
783
|
-
icon: w(
|
|
784
|
+
icon: w(Y),
|
|
784
785
|
size: 72,
|
|
785
786
|
"stroke-width": 1.5,
|
|
786
787
|
class: "text-primary-800 dark:text-primary-300"
|
|
787
788
|
}, null, 8, ["icon"]))]),
|
|
788
|
-
o("p",
|
|
789
|
-
l(
|
|
789
|
+
o("p", De, C(t.placeholder), 1),
|
|
790
|
+
l(oe, {
|
|
790
791
|
label: t.selectLabel,
|
|
791
792
|
icon: "pi pi-plus-circle",
|
|
792
793
|
disabled: t.disabled,
|
|
793
794
|
loading: t.loading,
|
|
794
795
|
class: "px-3 py-2 text-xs",
|
|
795
|
-
onClick:
|
|
796
|
+
onClick: W
|
|
796
797
|
}, null, 8, [
|
|
797
798
|
"label",
|
|
798
799
|
"disabled",
|
|
@@ -811,14 +812,14 @@ var be = /* @__PURE__ */ _e(ge, [["render", ye], ["__file", "/Users/mahmudulhasa
|
|
|
811
812
|
id: A.value,
|
|
812
813
|
class: "text-[11px] text-red-600 dark:text-red-400",
|
|
813
814
|
role: "alert"
|
|
814
|
-
}, C(j.value), 9,
|
|
815
|
+
}, C(j.value), 9, Pe)) : i("", !0)
|
|
815
816
|
]));
|
|
816
817
|
}
|
|
817
|
-
}),
|
|
818
|
+
}), Z = { class: "top-input-text top-solutions-component flex w-full flex-col gap-1" }, Ie = ["for"], Le = {
|
|
818
819
|
key: 0,
|
|
819
820
|
"aria-hidden": "true",
|
|
820
821
|
class: "text-red-600 dark:text-red-400"
|
|
821
|
-
},
|
|
822
|
+
}, Re = ["id"], ze = /* @__PURE__ */ u({
|
|
822
823
|
inheritAttrs: !1,
|
|
823
824
|
__name: "TopInputText",
|
|
824
825
|
props: {
|
|
@@ -841,7 +842,7 @@ var be = /* @__PURE__ */ _e(ge, [["render", ye], ["__file", "/Users/mahmudulhasa
|
|
|
841
842
|
},
|
|
842
843
|
emits: ["update:modelValue"],
|
|
843
844
|
setup(e, { emit: t }) {
|
|
844
|
-
let r = e, o = t, s =
|
|
845
|
+
let r = e, o = t, s = T(), u = E(), d = n(() => s.id === void 0 || s.id === null || s.id === "" ? u : String(s.id)), p = n(() => `${d.value}-error`), m = n(() => {
|
|
845
846
|
if (r.error) return !0;
|
|
846
847
|
let e = s["aria-invalid"];
|
|
847
848
|
return typeof e == "boolean" || e === "true" || e === "false" || e === "grammar" || e === "spelling" ? e : void 0;
|
|
@@ -852,12 +853,12 @@ var be = /* @__PURE__ */ _e(ge, [["render", ye], ["__file", "/Users/mahmudulhasa
|
|
|
852
853
|
function g(e) {
|
|
853
854
|
o("update:modelValue", e ?? "");
|
|
854
855
|
}
|
|
855
|
-
return (t, n) => (_(), a("div",
|
|
856
|
+
return (t, n) => (_(), a("div", Z, [
|
|
856
857
|
e.label ? (_(), a("label", {
|
|
857
858
|
key: 0,
|
|
858
859
|
for: d.value,
|
|
859
860
|
class: "top-field-label text-xs font-bold"
|
|
860
|
-
}, [c(C(e.label) + " ", 1), e.required ? (_(), a("span",
|
|
861
|
+
}, [c(C(e.label) + " ", 1), e.required ? (_(), a("span", Le, "*")) : i("", !0)], 8, Ie)) : i("", !0),
|
|
861
862
|
l(w(L), f(t.$attrs, {
|
|
862
863
|
id: d.value,
|
|
863
864
|
"model-value": e.modelValue,
|
|
@@ -888,18 +889,18 @@ var be = /* @__PURE__ */ _e(ge, [["render", ye], ["__file", "/Users/mahmudulhasa
|
|
|
888
889
|
id: p.value,
|
|
889
890
|
class: "text-[11px] text-red-600 dark:text-red-400",
|
|
890
891
|
role: "alert"
|
|
891
|
-
}, C(e.error), 9,
|
|
892
|
+
}, C(e.error), 9, Re)) : i("", !0)
|
|
892
893
|
]));
|
|
893
894
|
}
|
|
894
|
-
}),
|
|
895
|
+
}), Be = [
|
|
895
896
|
"disabled",
|
|
896
897
|
"aria-expanded",
|
|
897
898
|
"onClick"
|
|
898
|
-
],
|
|
899
|
+
], Ve = { class: "top-nav-bar__mobile-item-label" }, He = {
|
|
899
900
|
key: 1,
|
|
900
901
|
class: "top-nav-bar__mobile-count",
|
|
901
902
|
"aria-hidden": "true"
|
|
902
|
-
},
|
|
903
|
+
}, Ue = /* @__PURE__ */ u({
|
|
903
904
|
name: "TopNavMobileTree",
|
|
904
905
|
__name: "TopNavMobileTree",
|
|
905
906
|
props: {
|
|
@@ -936,7 +937,7 @@ var be = /* @__PURE__ */ _e(ge, [["render", ye], ["__file", "/Users/mahmudulhasa
|
|
|
936
937
|
let t = new Set(f.value);
|
|
937
938
|
t.has(e.id) ? t.delete(e.id) : t.add(e.id), f.value = t;
|
|
938
939
|
}
|
|
939
|
-
|
|
940
|
+
O(() => [u.activeItemId, u.items], () => {
|
|
940
941
|
let e = new Set(f.value);
|
|
941
942
|
u.items.forEach((t) => {
|
|
942
943
|
p(t).length && h(t) && e.add(t.id);
|
|
@@ -972,15 +973,15 @@ var be = /* @__PURE__ */ _e(ge, [["render", ye], ["__file", "/Users/mahmudulhasa
|
|
|
972
973
|
class: m(e.icon),
|
|
973
974
|
"aria-hidden": "true"
|
|
974
975
|
}, null, 2)) : i("", !0),
|
|
975
|
-
o("span",
|
|
976
|
-
p(e).length ? (_(), a("span",
|
|
976
|
+
o("span", Ve, C(e.label), 1),
|
|
977
|
+
p(e).length ? (_(), a("span", He, C(p(e).length), 1)) : i("", !0),
|
|
977
978
|
p(e).length ? (_(), a("i", {
|
|
978
979
|
key: 2,
|
|
979
980
|
class: m(["pi pi-chevron-down top-nav-bar__mobile-chevron", { "top-nav-bar__mobile-chevron--open": ee(e) }]),
|
|
980
981
|
"aria-hidden": "true"
|
|
981
982
|
}, null, 2)) : i("", !0)
|
|
982
|
-
], 10,
|
|
983
|
-
default:
|
|
983
|
+
], 10, Be), l(t, { name: "top-nav-bar-menu-expand" }, {
|
|
984
|
+
default: k(() => [p(e).length && ee(e) ? (_(), r(u, {
|
|
984
985
|
key: 0,
|
|
985
986
|
items: p(e),
|
|
986
987
|
"active-item-id": s.activeItemId,
|
|
@@ -997,144 +998,151 @@ var be = /* @__PURE__ */ _e(ge, [["render", ye], ["__file", "/Users/mahmudulhasa
|
|
|
997
998
|
}, 1024)], 2))), 128))], 6);
|
|
998
999
|
};
|
|
999
1000
|
}
|
|
1000
|
-
}),
|
|
1001
|
+
}), We = ["aria-expanded"], Ge = { class: "top-nav-bar__brand" }, Ke = {
|
|
1001
1002
|
key: 1,
|
|
1002
1003
|
class: "top-nav-bar__context"
|
|
1003
|
-
},
|
|
1004
|
+
}, qe = { class: "top-nav-bar__desktop-tools" }, Je = {
|
|
1004
1005
|
key: 0,
|
|
1005
1006
|
class: "top-nav-bar__search-shell",
|
|
1006
1007
|
"data-top-nav-search": ""
|
|
1007
|
-
},
|
|
1008
|
+
}, Ye = ["value", "placeholder"], Xe = ["aria-label"], Ze = {
|
|
1008
1009
|
key: 1,
|
|
1009
1010
|
class: "top-nav-bar__search-results",
|
|
1010
1011
|
role: "menu"
|
|
1011
|
-
},
|
|
1012
|
+
}, Qe = { class: "top-nav-bar__search-results-scroll" }, $e = ["disabled", "onClick"], et = {
|
|
1012
1013
|
key: 0,
|
|
1013
1014
|
class: "top-nav-bar__empty"
|
|
1014
|
-
},
|
|
1015
|
+
}, tt = {
|
|
1015
1016
|
key: 1,
|
|
1016
1017
|
class: "top-nav-bar__quick-actions",
|
|
1017
1018
|
"data-top-nav-actions": ""
|
|
1018
|
-
},
|
|
1019
|
+
}, nt = [
|
|
1019
1020
|
"disabled",
|
|
1020
1021
|
"aria-label",
|
|
1021
1022
|
"aria-pressed",
|
|
1022
1023
|
"title",
|
|
1023
1024
|
"onClick"
|
|
1024
|
-
],
|
|
1025
|
+
], rt = ["aria-expanded"], it = {
|
|
1025
1026
|
key: 0,
|
|
1026
1027
|
class: "top-nav-bar__popover-layer top-nav-bar__actions-layer"
|
|
1027
|
-
},
|
|
1028
|
+
}, at = {
|
|
1028
1029
|
class: "top-nav-bar__small-panel",
|
|
1029
1030
|
role: "menu"
|
|
1030
|
-
},
|
|
1031
|
+
}, ot = ["disabled", "onClick"], st = {
|
|
1031
1032
|
key: 2,
|
|
1032
1033
|
class: "top-nav-bar__custom-actions"
|
|
1033
|
-
},
|
|
1034
|
+
}, ct = ["aria-haspopup", "aria-expanded"], lt = ["src"], ut = {
|
|
1034
1035
|
key: 1,
|
|
1035
1036
|
class: "top-nav-bar__user-avatar"
|
|
1036
|
-
},
|
|
1037
|
+
}, dt = {
|
|
1037
1038
|
key: 2,
|
|
1038
1039
|
class: "top-nav-bar__user-details"
|
|
1039
|
-
},
|
|
1040
|
+
}, ft = { class: "top-nav-bar__user-name" }, pt = {
|
|
1040
1041
|
key: 0,
|
|
1041
1042
|
class: "top-nav-bar__user-subtitle"
|
|
1042
|
-
},
|
|
1043
|
+
}, mt = {
|
|
1043
1044
|
key: 0,
|
|
1044
1045
|
class: "pi pi-chevron-down top-nav-bar__chevron",
|
|
1045
1046
|
"aria-hidden": "true"
|
|
1046
|
-
},
|
|
1047
|
+
}, ht = {
|
|
1047
1048
|
key: 0,
|
|
1048
1049
|
class: "top-nav-bar__popover-layer top-nav-bar__user-layer"
|
|
1049
|
-
},
|
|
1050
|
+
}, gt = {
|
|
1050
1051
|
class: "top-nav-bar__small-panel top-nav-bar__user-dropdown",
|
|
1051
1052
|
role: "menu"
|
|
1052
|
-
},
|
|
1053
|
+
}, _t = {
|
|
1053
1054
|
key: 0,
|
|
1054
1055
|
class: "top-nav-bar__user-separator",
|
|
1055
1056
|
role: "separator"
|
|
1056
|
-
},
|
|
1057
|
+
}, vt = ["disabled", "onClick"], yt = {
|
|
1057
1058
|
class: "top-nav-bar__breadcrumbs",
|
|
1058
1059
|
"aria-label": "Breadcrumb"
|
|
1059
|
-
},
|
|
1060
|
+
}, bt = {
|
|
1060
1061
|
key: 0,
|
|
1061
1062
|
class: "top-nav-bar__separator top-nav-bar__desktop-navigation-separator",
|
|
1062
1063
|
"aria-hidden": "true"
|
|
1063
|
-
},
|
|
1064
|
+
}, xt = ["aria-expanded"], St = {
|
|
1064
1065
|
key: 0,
|
|
1065
1066
|
class: "top-nav-bar__menu-layer"
|
|
1066
|
-
},
|
|
1067
|
+
}, Ct = {
|
|
1067
1068
|
class: "top-nav-bar__menu-panel",
|
|
1068
1069
|
role: "menu"
|
|
1069
|
-
},
|
|
1070
|
+
}, wt = { class: "top-nav-bar__section-list" }, Tt = [
|
|
1070
1071
|
"aria-expanded",
|
|
1071
1072
|
"onMouseenter",
|
|
1072
1073
|
"onClick"
|
|
1073
|
-
],
|
|
1074
|
+
], Et = { class: "top-nav-bar__menu-label" }, Dt = { class: "top-nav-bar__item-count" }, Ot = {
|
|
1074
1075
|
key: 0,
|
|
1075
1076
|
class: "top-nav-bar__submenu-region"
|
|
1076
|
-
},
|
|
1077
|
+
}, kt = [
|
|
1077
1078
|
"disabled",
|
|
1078
1079
|
"aria-haspopup",
|
|
1079
1080
|
"aria-expanded",
|
|
1080
1081
|
"onMouseenter",
|
|
1081
1082
|
"onClick"
|
|
1082
|
-
],
|
|
1083
|
+
], At = { class: "top-nav-bar__menu-label" }, jt = {
|
|
1083
1084
|
key: 1,
|
|
1084
1085
|
class: "pi pi-chevron-right top-nav-bar__menu-arrow",
|
|
1085
1086
|
"aria-hidden": "true"
|
|
1086
|
-
},
|
|
1087
|
+
}, Mt = ["onMouseenter"], Nt = {
|
|
1087
1088
|
key: 0,
|
|
1088
1089
|
class: "top-nav-bar__crumb top-nav-bar__crumb--static"
|
|
1089
|
-
},
|
|
1090
|
+
}, Pt = ["aria-expanded", "onClick"], Ft = {
|
|
1090
1091
|
key: 2,
|
|
1091
1092
|
class: "top-nav-bar__menu-layer"
|
|
1092
|
-
},
|
|
1093
|
+
}, It = {
|
|
1093
1094
|
class: "top-nav-bar__menu-panel top-nav-bar__breadcrumb-panel",
|
|
1094
1095
|
role: "menu"
|
|
1095
|
-
},
|
|
1096
|
+
}, Lt = [
|
|
1096
1097
|
"disabled",
|
|
1097
1098
|
"onMouseenter",
|
|
1098
1099
|
"onClick"
|
|
1099
|
-
],
|
|
1100
|
+
], Rt = { class: "top-nav-bar__menu-label" }, zt = {
|
|
1100
1101
|
key: 1,
|
|
1101
1102
|
class: "pi pi-chevron-right top-nav-bar__menu-arrow",
|
|
1102
1103
|
"aria-hidden": "true"
|
|
1103
|
-
},
|
|
1104
|
+
}, Bt = ["onClick"], Vt = ["title"], Ht = { class: "top-nav-bar__current-label" }, Ut = ["aria-label", "aria-pressed"], Wt = { class: "top-nav-bar__breadcrumb-actions" }, Gt = ["aria-expanded"], Kt = {
|
|
1104
1105
|
key: 0,
|
|
1105
1106
|
class: "top-nav-bar__popover-layer top-nav-bar__favorites-layer"
|
|
1106
|
-
},
|
|
1107
|
+
}, qt = {
|
|
1107
1108
|
class: "top-nav-bar__small-panel top-nav-bar__favorites-panel",
|
|
1108
1109
|
role: "menu"
|
|
1109
|
-
},
|
|
1110
|
+
}, Jt = ["disabled", "onClick"], Yt = { class: "top-nav-bar__favorites-title" }, Xt = {
|
|
1111
|
+
key: 0,
|
|
1112
|
+
class: "top-nav-bar__favorites-separator"
|
|
1113
|
+
}, Zt = {
|
|
1114
|
+
key: 0,
|
|
1115
|
+
class: "top-nav-bar__favorites-row top-nav-bar__desktop-only"
|
|
1116
|
+
}, Qt = { class: "top-nav-bar__favorites-title" }, $t = { class: "top-nav-bar__favorites-list" }, en = {
|
|
1117
|
+
key: 0,
|
|
1118
|
+
class: "top-nav-bar__favorites-separator",
|
|
1119
|
+
"aria-hidden": "true"
|
|
1120
|
+
}, tn = ["disabled", "onClick"], nn = { class: "top-nav-bar__mobile-menu" }, rn = { class: "top-nav-bar__mobile-menu-header" }, an = { class: "top-nav-bar__drawer-brand" }, on = ["onClick"], sn = {
|
|
1110
1121
|
key: 0,
|
|
1111
1122
|
class: "top-nav-bar__drawer-tools"
|
|
1112
|
-
},
|
|
1123
|
+
}, cn = { class: "top-nav-bar__drawer-search" }, ln = ["value", "placeholder"], un = ["disabled", "onClick"], dn = { class: "top-nav-bar__mobile-menu-scroll" }, fn = { class: "top-nav-bar__mobile-menu-track" }, pn = {
|
|
1113
1124
|
key: 0,
|
|
1114
1125
|
class: "top-nav-bar__mobile-favorites"
|
|
1115
|
-
},
|
|
1126
|
+
}, mn = ["aria-expanded"], hn = { class: "top-nav-bar__mobile-item-label" }, gn = { class: "top-nav-bar__mobile-count" }, _n = {
|
|
1116
1127
|
key: 1,
|
|
1117
1128
|
class: "top-nav-bar__drawer-empty"
|
|
1118
|
-
},
|
|
1129
|
+
}, vn = {
|
|
1119
1130
|
key: 1,
|
|
1120
1131
|
class: "top-nav-bar__mobile-footer"
|
|
1121
|
-
},
|
|
1132
|
+
}, yn = ["aria-haspopup", "aria-expanded"], bn = ["src"], xn = {
|
|
1122
1133
|
key: 1,
|
|
1123
1134
|
class: "top-nav-bar__user-avatar"
|
|
1124
|
-
},
|
|
1135
|
+
}, Sn = {
|
|
1125
1136
|
key: 2,
|
|
1126
1137
|
class: "top-nav-bar__user-details"
|
|
1127
|
-
},
|
|
1138
|
+
}, Cn = { class: "top-nav-bar__user-name" }, wn = {
|
|
1128
1139
|
key: 0,
|
|
1129
1140
|
class: "top-nav-bar__user-subtitle"
|
|
1130
|
-
},
|
|
1131
|
-
key:
|
|
1132
|
-
class: "top-nav-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
class: "top-nav-bar__drawer-separator",
|
|
1136
|
-
role: "separator"
|
|
1137
|
-
}, gn = ["disabled", "onClick"], _n = /* @__PURE__ */ u({
|
|
1141
|
+
}, Tn = {
|
|
1142
|
+
key: 3,
|
|
1143
|
+
class: "pi pi-chevron-down top-nav-bar__mobile-chevron",
|
|
1144
|
+
"aria-hidden": "true"
|
|
1145
|
+
}, En = 120, Dn = 24, On = /* @__PURE__ */ u({
|
|
1138
1146
|
__name: "TopNavBar",
|
|
1139
1147
|
props: {
|
|
1140
1148
|
sections: { default: () => [] },
|
|
@@ -1198,16 +1206,16 @@ var be = /* @__PURE__ */ _e(ge, [["render", ye], ["__file", "/Users/mahmudulhasa
|
|
|
1198
1206
|
"user-action",
|
|
1199
1207
|
"user-click"
|
|
1200
1208
|
],
|
|
1201
|
-
setup(s, { expose:
|
|
1202
|
-
let
|
|
1209
|
+
setup(s, { expose: u, emit: d }) {
|
|
1210
|
+
let f = s, h = d, x = D(), S = v(null), T = v(null), E = v(null), ne = v(null), j = v(null), M = v(null), N = v(f.mobileOpen ?? !1), P = v(!1), F = v(null), I = v([]), L = v(null), R = v([]), z = v(!1), B = v(!1), V = v(!1), ae = v(null), H = v(!1), U = v(!1), W = v(!1), oe = v(!0), se = v(!1), G = v(f.searchValue ?? ""), K = v(!1), q = v(!1), ce = v(!1), J = v({
|
|
1203
1211
|
collapseActions: !1,
|
|
1204
1212
|
searchIconOnly: !1,
|
|
1205
1213
|
hideUserName: !1,
|
|
1206
1214
|
hideContextDetails: !1
|
|
1207
|
-
}),
|
|
1208
|
-
function
|
|
1215
|
+
}), le, ue, de, fe, pe = 0;
|
|
1216
|
+
function me(e) {
|
|
1209
1217
|
return (e.children ?? []).filter(Boolean).map((e) => {
|
|
1210
|
-
let t =
|
|
1218
|
+
let t = me(e);
|
|
1211
1219
|
if (!t.length) {
|
|
1212
1220
|
let { children: t, ...n } = e;
|
|
1213
1221
|
return n;
|
|
@@ -1218,63 +1226,63 @@ var be = /* @__PURE__ */ _e(ge, [["render", ye], ["__file", "/Users/mahmudulhasa
|
|
|
1218
1226
|
};
|
|
1219
1227
|
});
|
|
1220
1228
|
}
|
|
1221
|
-
let
|
|
1229
|
+
let Y = n(() => f.sections.map((e) => ({
|
|
1222
1230
|
...e,
|
|
1223
|
-
children:
|
|
1231
|
+
children: me(e)
|
|
1224
1232
|
})).filter((e) => e.children.length > 0));
|
|
1225
|
-
function
|
|
1233
|
+
function ge(e, t = []) {
|
|
1226
1234
|
return e.forEach((e) => {
|
|
1227
1235
|
let n = e.children ?? [];
|
|
1228
|
-
n.length ?
|
|
1236
|
+
n.length ? ge(n, t) : t.push(e);
|
|
1229
1237
|
}), t;
|
|
1230
1238
|
}
|
|
1231
|
-
let
|
|
1232
|
-
function
|
|
1239
|
+
let _e = n(() => Y.value.flatMap((e) => ge(e.children)));
|
|
1240
|
+
function ve(e) {
|
|
1233
1241
|
return e.normalize("NFD").replace(/[\u0300-\u036f]/g, "").toLocaleLowerCase("pt-BR");
|
|
1234
1242
|
}
|
|
1235
|
-
let
|
|
1236
|
-
if (
|
|
1237
|
-
let e =
|
|
1238
|
-
return e ?
|
|
1243
|
+
let ye = n(() => {
|
|
1244
|
+
if (f.searchResults !== void 0) return f.searchResults;
|
|
1245
|
+
let e = ve(G.value.trim());
|
|
1246
|
+
return e ? _e.value.filter((t) => ve(t.label).includes(e)) : _e.value;
|
|
1239
1247
|
});
|
|
1240
|
-
function
|
|
1248
|
+
function xe(e, t) {
|
|
1241
1249
|
return t ? e.flatMap((e) => {
|
|
1242
|
-
let n =
|
|
1250
|
+
let n = ve(e.label).includes(t), r = xe(e.children ?? [], t);
|
|
1243
1251
|
return !n && !r.length ? [] : [{
|
|
1244
1252
|
...e,
|
|
1245
1253
|
children: n ? e.children : r
|
|
1246
1254
|
}];
|
|
1247
1255
|
}) : e;
|
|
1248
1256
|
}
|
|
1249
|
-
let
|
|
1250
|
-
function
|
|
1257
|
+
let Se = n(() => xe(Y.value, ve(G.value.trim())));
|
|
1258
|
+
function Ce(e, t, n = []) {
|
|
1251
1259
|
for (let r of e) {
|
|
1252
1260
|
let e = [...n, r];
|
|
1253
1261
|
if (r.id === t) return e;
|
|
1254
|
-
let i =
|
|
1262
|
+
let i = Ce(r.children ?? [], t, e);
|
|
1255
1263
|
if (i) return i;
|
|
1256
1264
|
}
|
|
1257
1265
|
return null;
|
|
1258
1266
|
}
|
|
1259
|
-
function
|
|
1267
|
+
function we(e, t) {
|
|
1260
1268
|
for (let n of e) {
|
|
1261
1269
|
if (n.id === t) return n;
|
|
1262
|
-
let e =
|
|
1270
|
+
let e = we(n.children ?? [], t);
|
|
1263
1271
|
if (e) return e;
|
|
1264
1272
|
}
|
|
1265
1273
|
return null;
|
|
1266
1274
|
}
|
|
1267
|
-
let
|
|
1268
|
-
if (!
|
|
1269
|
-
for (let e of
|
|
1270
|
-
if (e.id ===
|
|
1271
|
-
let t =
|
|
1275
|
+
let Te = n(() => {
|
|
1276
|
+
if (!f.activeItemId) return null;
|
|
1277
|
+
for (let e of Y.value) {
|
|
1278
|
+
if (e.id === f.activeItemId) return [e];
|
|
1279
|
+
let t = Ce(e.children, f.activeItemId);
|
|
1272
1280
|
if (t) return [e, ...t];
|
|
1273
1281
|
}
|
|
1274
1282
|
return null;
|
|
1275
|
-
}),
|
|
1276
|
-
if (
|
|
1277
|
-
let e =
|
|
1283
|
+
}), Ee = n(() => {
|
|
1284
|
+
if (f.breadcrumbs.length) return f.breadcrumbs;
|
|
1285
|
+
let e = Te.value;
|
|
1278
1286
|
if (!e?.length) return [];
|
|
1279
1287
|
let t = e.length - 1;
|
|
1280
1288
|
return e.map((e, n) => ({
|
|
@@ -1285,11 +1293,11 @@ var be = /* @__PURE__ */ _e(ge, [["render", ye], ["__file", "/Users/mahmudulhasa
|
|
|
1285
1293
|
menuId: n > 0 && e.children?.length ? e.id : void 0
|
|
1286
1294
|
}));
|
|
1287
1295
|
});
|
|
1288
|
-
function
|
|
1289
|
-
return e.menuId ?
|
|
1296
|
+
function De(e) {
|
|
1297
|
+
return e.menuId ? we(Y.value, e.menuId) : e.sectionId ? Y.value.find((t) => t.id === e.sectionId) ?? null : null;
|
|
1290
1298
|
}
|
|
1291
|
-
let
|
|
1292
|
-
function
|
|
1299
|
+
let Oe = n(() => Y.value.find((e) => e.id === F.value) ?? null);
|
|
1300
|
+
function ke(e, t) {
|
|
1293
1301
|
let n = [], r = e, i = 0;
|
|
1294
1302
|
for (; r.length;) {
|
|
1295
1303
|
n.push(r);
|
|
@@ -1301,139 +1309,170 @@ var be = /* @__PURE__ */ _e(ge, [["render", ye], ["__file", "/Users/mahmudulhasa
|
|
|
1301
1309
|
}
|
|
1302
1310
|
return n;
|
|
1303
1311
|
}
|
|
1304
|
-
let
|
|
1305
|
-
function
|
|
1312
|
+
let Ae = n(() => Oe.value ? ke(Oe.value.children, I.value) : []);
|
|
1313
|
+
function je(e, t = 10) {
|
|
1306
1314
|
let n = [];
|
|
1307
1315
|
for (let r = 0; r < e.length; r += t) n.push(e.slice(r, r + t));
|
|
1308
1316
|
return n;
|
|
1309
1317
|
}
|
|
1310
|
-
let
|
|
1318
|
+
let Me = n(() => {
|
|
1311
1319
|
let e = [];
|
|
1312
|
-
return
|
|
1320
|
+
return f.showAia && e.push({
|
|
1313
1321
|
id: "__aia",
|
|
1314
|
-
label:
|
|
1322
|
+
label: f.aiaLabel,
|
|
1315
1323
|
icon: "pi pi-comments",
|
|
1316
1324
|
kind: "aia"
|
|
1317
|
-
}),
|
|
1325
|
+
}), f.showSupport && e.push({
|
|
1318
1326
|
id: "__support",
|
|
1319
|
-
label:
|
|
1327
|
+
label: f.supportLabel,
|
|
1320
1328
|
icon: "pi pi-headphones",
|
|
1321
1329
|
kind: "support"
|
|
1322
|
-
}),
|
|
1330
|
+
}), f.actions.forEach((t) => e.push({
|
|
1323
1331
|
...t,
|
|
1324
1332
|
kind: "action"
|
|
1325
1333
|
})), e;
|
|
1326
|
-
}),
|
|
1334
|
+
}), Ne = n(() => {
|
|
1327
1335
|
let e = [];
|
|
1328
|
-
return
|
|
1336
|
+
return f.userMenuItems.forEach((t) => {
|
|
1329
1337
|
if (t.separator) {
|
|
1330
1338
|
e.length && !e.at(-1)?.separator && e.push(t);
|
|
1331
1339
|
return;
|
|
1332
1340
|
}
|
|
1333
1341
|
e.push(t);
|
|
1334
1342
|
}), e.at(-1)?.separator && e.pop(), e;
|
|
1335
|
-
}), X = n(() => !!
|
|
1336
|
-
|
|
1343
|
+
}), X = n(() => !!x["user-menu"] || Ne.value.some((e) => !e.separator)), Pe = n(() => !!f.user || !!x.user), Fe = n(() => !!(x.context || x.scope || x.client || x["context-compact"])), Z = n(() => f.favoriteItems.filter(Boolean)), Ie = n(() => W.value || !oe.value), Le = n(() => Z.value.length > 0 && !Ie.value), Re = n(() => Y.value.length > 0 || f.searchable || Me.value.length > 0 || Pe.value || !!(x["drawer-menu"] || x["drawer-actions"] || x["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(() => Ne.value.map((e) => e.separator ? { separator: !0 } : {
|
|
1344
|
+
label: e.label,
|
|
1345
|
+
icon: e.icon,
|
|
1346
|
+
disabled: e.disabled,
|
|
1347
|
+
command: () => jn(e)
|
|
1348
|
+
})), Ve = n(() => {
|
|
1349
|
+
let e = f.appearance, t = {}, n = (e, n) => {
|
|
1337
1350
|
n !== void 0 && n !== "" && (t[e] = n);
|
|
1338
1351
|
};
|
|
1339
|
-
return n("--top-nav-bg", e.
|
|
1352
|
+
return n("--top-nav-bg", e.colors?.navigation), n("--top-nav-breadcrumb-bg", e.surfaces?.breadcrumb ?? e.colors?.navigation), n("--top-nav-drawer-bg", e.surfaces?.drawer ?? e.colors?.navigation), n("--top-nav-drawer-footer-bg", e.surfaces?.drawerFooter), n("--top-nav-fg", e.colors?.text), n("--top-nav-muted-fg", e.colors?.mutedText), n("--top-nav-accent", e.colors?.accent), n("--top-nav-menu-bg", e.surfaces?.menu), n("--top-nav-menu-fg", e.colors?.menuText), n("--top-nav-menu-hover", e.surfaces?.menuHover), n("--top-nav-menu-explored", e.surfaces?.menuExplored), n("--top-nav-border", e.colors?.border), n("--top-nav-menu-border", e.borders?.menu), n("--top-nav-menu-outline", e.borders?.menuOutline), n("--top-nav-radius", e.shape?.radius), n("--top-nav-drawer-radius", e.shape?.drawerRadius), n("--top-nav-shadow", e.shape?.shadow), n("--top-nav-mobile-active-bg", e.surfaces?.mobileActive), n("--top-nav-mobile-active-fg", e.colors?.mobileActiveText), n("--top-nav-mobile-divider", e.borders?.mobileDivider), n("--top-nav-favorites-bg", e.surfaces?.favorites), n("--top-nav-favorites-fg", e.colors?.favoritesText), n("--top-nav-favorites-border", e.borders?.favorites), n("--top-nav-favorites-shadow", e.shape?.favoritesShadow), n("--top-nav-focus-ring", e.focus?.onDark), n("--top-nav-focus-ring-light", e.focus?.onLight), n("--top-nav-current-bg", e.surfaces?.currentPage), n("--top-nav-current-border", e.borders?.currentPage), t;
|
|
1340
1353
|
});
|
|
1341
|
-
function
|
|
1354
|
+
function He() {
|
|
1355
|
+
let e = Math.max(0, window.scrollY);
|
|
1356
|
+
if (!W.value && e >= En) {
|
|
1357
|
+
W.value = !0;
|
|
1358
|
+
return;
|
|
1359
|
+
}
|
|
1360
|
+
W.value && e <= Dn && (W.value = !1);
|
|
1361
|
+
}
|
|
1362
|
+
function On() {
|
|
1363
|
+
let e = E.value, t = ne.value;
|
|
1364
|
+
!e || !t || (oe.value = t.scrollWidth <= e.clientWidth + 1);
|
|
1365
|
+
}
|
|
1366
|
+
function kn() {
|
|
1367
|
+
fe = window.requestAnimationFrame(() => {
|
|
1368
|
+
fe = window.requestAnimationFrame(() => {
|
|
1369
|
+
se.value = !0;
|
|
1370
|
+
});
|
|
1371
|
+
});
|
|
1372
|
+
}
|
|
1373
|
+
function Q() {
|
|
1342
1374
|
return typeof window < "u" && window.matchMedia?.("(hover: hover) and (pointer: fine)").matches;
|
|
1343
1375
|
}
|
|
1344
|
-
function
|
|
1345
|
-
e.disabled || (
|
|
1376
|
+
function $(e) {
|
|
1377
|
+
e.disabled || (h("navigate", e), N.value = !1, Kn());
|
|
1346
1378
|
}
|
|
1347
|
-
function
|
|
1348
|
-
e.disabled || (e.kind === "aia" ?
|
|
1379
|
+
function An(e, t = !1) {
|
|
1380
|
+
e.disabled || (e.kind === "aia" ? h("toggle-aia") : e.kind === "support" ? h("open-support") : h("action", e), z.value = !1, t && (N.value = !1));
|
|
1349
1381
|
}
|
|
1350
|
-
function
|
|
1351
|
-
e.disabled || e.separator || (
|
|
1382
|
+
function jn(e, t = !1) {
|
|
1383
|
+
e.disabled || e.separator || (h("user-action", e), B.value = !1, V.value = !1, t && (N.value = !1));
|
|
1384
|
+
}
|
|
1385
|
+
function Mn(e) {
|
|
1386
|
+
if (!X.value) {
|
|
1387
|
+
h("user-click", f.user);
|
|
1388
|
+
return;
|
|
1389
|
+
}
|
|
1390
|
+
ae.value?.toggle(e);
|
|
1352
1391
|
}
|
|
1353
|
-
function
|
|
1354
|
-
|
|
1392
|
+
function Nn(e) {
|
|
1393
|
+
G.value = e, h("update:searchValue", e), h("search", e);
|
|
1355
1394
|
}
|
|
1356
|
-
function
|
|
1357
|
-
|
|
1395
|
+
function Pn() {
|
|
1396
|
+
Nn(""), p(() => N.value ? M.value?.focus() : j.value?.focus());
|
|
1358
1397
|
}
|
|
1359
|
-
function
|
|
1360
|
-
|
|
1398
|
+
function Fn() {
|
|
1399
|
+
Q() && (P.value = !0);
|
|
1361
1400
|
}
|
|
1362
|
-
function
|
|
1363
|
-
!
|
|
1401
|
+
function In() {
|
|
1402
|
+
!Q() || window.innerWidth < 1024 || (P.value = !1, F.value = null, I.value = []);
|
|
1364
1403
|
}
|
|
1365
|
-
function
|
|
1366
|
-
if (
|
|
1367
|
-
|
|
1404
|
+
function Ln() {
|
|
1405
|
+
if (Q()) {
|
|
1406
|
+
P.value = !0;
|
|
1368
1407
|
return;
|
|
1369
1408
|
}
|
|
1370
|
-
|
|
1409
|
+
P.value = !P.value, P.value || (F.value = null, I.value = []);
|
|
1371
1410
|
}
|
|
1372
|
-
function
|
|
1373
|
-
|
|
1411
|
+
function Rn(e) {
|
|
1412
|
+
Q() && (F.value = e, I.value = []);
|
|
1374
1413
|
}
|
|
1375
|
-
function
|
|
1376
|
-
if (
|
|
1377
|
-
|
|
1414
|
+
function zn(e) {
|
|
1415
|
+
if (Q()) {
|
|
1416
|
+
F.value = e, I.value = [];
|
|
1378
1417
|
return;
|
|
1379
1418
|
}
|
|
1380
|
-
let t =
|
|
1381
|
-
|
|
1419
|
+
let t = F.value === e;
|
|
1420
|
+
F.value = t ? null : e, I.value = [];
|
|
1382
1421
|
}
|
|
1383
|
-
function
|
|
1384
|
-
if (r && !
|
|
1422
|
+
function Bn(e, t, n, r) {
|
|
1423
|
+
if (r && !Q()) return;
|
|
1385
1424
|
let i = e.value[n];
|
|
1386
1425
|
if (!t.children?.length) {
|
|
1387
|
-
e.value = e.value.slice(0, n), r ||
|
|
1426
|
+
e.value = e.value.slice(0, n), r || $(t);
|
|
1388
1427
|
return;
|
|
1389
1428
|
}
|
|
1390
|
-
if (!r &&
|
|
1429
|
+
if (!r && Q()) {
|
|
1391
1430
|
e.value = [...e.value.slice(0, n), t.id];
|
|
1392
1431
|
return;
|
|
1393
1432
|
}
|
|
1394
1433
|
e.value = i === t.id && !r ? e.value.slice(0, n) : [...e.value.slice(0, n), t.id];
|
|
1395
1434
|
}
|
|
1396
|
-
function
|
|
1397
|
-
|
|
1435
|
+
function Vn(e, t, n) {
|
|
1436
|
+
Bn(I, e, t, n);
|
|
1398
1437
|
}
|
|
1399
|
-
function
|
|
1400
|
-
|
|
1438
|
+
function Hn(e, t, n) {
|
|
1439
|
+
Bn(R, e, t, n);
|
|
1401
1440
|
}
|
|
1402
|
-
function
|
|
1403
|
-
|
|
1441
|
+
function Un(e) {
|
|
1442
|
+
Q() && (L.value = e, R.value = []);
|
|
1404
1443
|
}
|
|
1405
|
-
function
|
|
1406
|
-
!
|
|
1444
|
+
function Wn() {
|
|
1445
|
+
!Q() || window.innerWidth < 1024 || (L.value = null, R.value = []);
|
|
1407
1446
|
}
|
|
1408
|
-
function
|
|
1409
|
-
if (
|
|
1410
|
-
|
|
1447
|
+
function Gn(e) {
|
|
1448
|
+
if (Q()) {
|
|
1449
|
+
L.value = e;
|
|
1411
1450
|
return;
|
|
1412
1451
|
}
|
|
1413
|
-
|
|
1452
|
+
L.value = L.value === e ? null : e, R.value = [];
|
|
1414
1453
|
}
|
|
1415
|
-
function
|
|
1416
|
-
|
|
1454
|
+
function Kn() {
|
|
1455
|
+
P.value = !1, F.value = null, I.value = [], L.value = null, R.value = [], z.value = !1, B.value = !1, H.value = !1, K.value = !1;
|
|
1417
1456
|
}
|
|
1418
|
-
async function
|
|
1457
|
+
async function qn() {
|
|
1419
1458
|
if (typeof window < "u" && window.innerWidth < 1024) {
|
|
1420
|
-
|
|
1459
|
+
N.value = !0, await p(), M.value?.focus();
|
|
1421
1460
|
return;
|
|
1422
1461
|
}
|
|
1423
|
-
|
|
1462
|
+
q.value = !0, K.value = !0, await p(), j.value?.focus(), Zn();
|
|
1424
1463
|
}
|
|
1425
|
-
function
|
|
1464
|
+
function Jn() {
|
|
1426
1465
|
window.setTimeout(() => {
|
|
1427
|
-
|
|
1466
|
+
K.value = !1, J.value.searchIconOnly && !G.value.trim() && (q.value = !1, Zn());
|
|
1428
1467
|
}, 150);
|
|
1429
1468
|
}
|
|
1430
|
-
function
|
|
1469
|
+
function Yn() {
|
|
1431
1470
|
return Math.round(window.visualViewport?.width ?? window.innerWidth);
|
|
1432
1471
|
}
|
|
1433
|
-
async function
|
|
1434
|
-
if (typeof window > "u" || !
|
|
1435
|
-
let e = ++
|
|
1436
|
-
|
|
1472
|
+
async function Xn() {
|
|
1473
|
+
if (typeof window > "u" || !T.value) return;
|
|
1474
|
+
let e = ++pe, t = Yn();
|
|
1475
|
+
ce.value = t < 1024;
|
|
1437
1476
|
let n = {
|
|
1438
1477
|
collapseActions: !1,
|
|
1439
1478
|
searchIconOnly: !1,
|
|
@@ -1441,196 +1480,205 @@ var be = /* @__PURE__ */ _e(ge, [["render", ye], ["__file", "/Users/mahmudulhasa
|
|
|
1441
1480
|
hideContextDetails: !1
|
|
1442
1481
|
};
|
|
1443
1482
|
if (t < 1024) {
|
|
1444
|
-
|
|
1483
|
+
J.value = n, q.value = !1;
|
|
1445
1484
|
return;
|
|
1446
1485
|
}
|
|
1447
|
-
if (
|
|
1486
|
+
if (J.value = {
|
|
1448
1487
|
collapseActions: t < 1440,
|
|
1449
1488
|
searchIconOnly: t < 1320,
|
|
1450
1489
|
hideUserName: t < 1180,
|
|
1451
1490
|
hideContextDetails: !1
|
|
1452
|
-
}, await p(), e ===
|
|
1491
|
+
}, await p(), e === pe) for (let t of [
|
|
1453
1492
|
"collapseActions",
|
|
1454
1493
|
"searchIconOnly",
|
|
1455
1494
|
"hideUserName",
|
|
1456
1495
|
"hideContextDetails"
|
|
1457
1496
|
]) {
|
|
1458
|
-
let n =
|
|
1497
|
+
let n = T.value;
|
|
1459
1498
|
if (!n || n.scrollWidth <= n.clientWidth + 1) break;
|
|
1460
|
-
if (
|
|
1461
|
-
...
|
|
1499
|
+
if (J.value = {
|
|
1500
|
+
...J.value,
|
|
1462
1501
|
[t]: !0
|
|
1463
|
-
}, await p(), e !==
|
|
1502
|
+
}, await p(), e !== pe) return;
|
|
1464
1503
|
}
|
|
1465
1504
|
}
|
|
1466
|
-
function
|
|
1467
|
-
typeof window > "u" || (
|
|
1468
|
-
|
|
1505
|
+
function Zn() {
|
|
1506
|
+
typeof window > "u" || (de !== void 0 && window.cancelAnimationFrame(de), de = window.requestAnimationFrame(() => {
|
|
1507
|
+
de = void 0, Xn();
|
|
1469
1508
|
}));
|
|
1470
1509
|
}
|
|
1471
|
-
function
|
|
1510
|
+
function Qn(e) {
|
|
1472
1511
|
let t = e.target;
|
|
1473
1512
|
if (t instanceof Element && !t.closest(".top-nav-bar__mobile-menu")) {
|
|
1474
|
-
if (!
|
|
1475
|
-
|
|
1513
|
+
if (!S.value?.contains(t)) {
|
|
1514
|
+
Kn();
|
|
1476
1515
|
return;
|
|
1477
1516
|
}
|
|
1478
|
-
t.closest("[data-top-nav-navigation]") || (
|
|
1517
|
+
t.closest("[data-top-nav-navigation]") || (P.value = !1, F.value = null, I.value = []), t.closest("[data-top-nav-breadcrumb]") || (L.value = null, R.value = []), t.closest("[data-top-nav-actions]") || (z.value = !1), t.closest("[data-top-nav-user]") || (B.value = !1), t.closest("[data-top-nav-favorites]") || (H.value = !1), t.closest("[data-top-nav-search]") || (K.value = !1);
|
|
1479
1518
|
}
|
|
1480
1519
|
}
|
|
1481
|
-
function
|
|
1482
|
-
if ((e.ctrlKey || e.metaKey) && e.key.toLocaleLowerCase() === "k" &&
|
|
1483
|
-
e.preventDefault(),
|
|
1520
|
+
function $n(e) {
|
|
1521
|
+
if ((e.ctrlKey || e.metaKey) && e.key.toLocaleLowerCase() === "k" && f.searchable) {
|
|
1522
|
+
e.preventDefault(), qn();
|
|
1484
1523
|
return;
|
|
1485
1524
|
}
|
|
1486
|
-
e.key === "Escape"
|
|
1525
|
+
if (e.key === "Escape") {
|
|
1526
|
+
if (V.value) {
|
|
1527
|
+
ae.value?.hide();
|
|
1528
|
+
return;
|
|
1529
|
+
}
|
|
1530
|
+
N.value &&= !1, Kn(), J.value.searchIconOnly && !G.value.trim() && (q.value = !1);
|
|
1531
|
+
}
|
|
1487
1532
|
}
|
|
1488
|
-
function
|
|
1533
|
+
function er() {
|
|
1489
1534
|
if (!X.value) {
|
|
1490
|
-
|
|
1535
|
+
h("user-click", f.user);
|
|
1491
1536
|
return;
|
|
1492
1537
|
}
|
|
1493
|
-
if (
|
|
1494
|
-
|
|
1538
|
+
if (Q()) {
|
|
1539
|
+
B.value = !0;
|
|
1495
1540
|
return;
|
|
1496
1541
|
}
|
|
1497
|
-
|
|
1542
|
+
B.value = !B.value;
|
|
1498
1543
|
}
|
|
1499
|
-
function
|
|
1500
|
-
if (
|
|
1501
|
-
|
|
1544
|
+
function tr() {
|
|
1545
|
+
if (Q()) {
|
|
1546
|
+
H.value = !0;
|
|
1502
1547
|
return;
|
|
1503
1548
|
}
|
|
1504
|
-
|
|
1505
|
-
}
|
|
1506
|
-
return
|
|
1507
|
-
e !== void 0 && e !==
|
|
1508
|
-
}),
|
|
1509
|
-
e !== void 0 && e !==
|
|
1510
|
-
}),
|
|
1511
|
-
|
|
1512
|
-
() =>
|
|
1513
|
-
|
|
1514
|
-
], () => p(
|
|
1515
|
-
document.addEventListener("keydown",
|
|
1549
|
+
H.value = !H.value;
|
|
1550
|
+
}
|
|
1551
|
+
return O(() => f.searchValue, (e) => {
|
|
1552
|
+
e !== void 0 && e !== G.value && (G.value = e);
|
|
1553
|
+
}), O(() => f.mobileOpen, (e) => {
|
|
1554
|
+
e !== void 0 && e !== N.value && (N.value = e);
|
|
1555
|
+
}), O(N, (e) => h("update:mobileOpen", e)), O([
|
|
1556
|
+
Y,
|
|
1557
|
+
() => f.user,
|
|
1558
|
+
Me
|
|
1559
|
+
], () => p(Zn), { deep: !0 }), O(Z, () => p(On), { deep: !0 }), te(() => {
|
|
1560
|
+
document.addEventListener("keydown", $n), document.addEventListener("pointerdown", Qn), window.addEventListener("resize", Zn), window.visualViewport?.addEventListener("resize", Zn), window.addEventListener("resize", On), window.addEventListener("scroll", He, { passive: !0 }), typeof ResizeObserver < "u" && (le = new ResizeObserver(Zn), T.value && le.observe(T.value), ue = new ResizeObserver(On), E.value && ue.observe(E.value)), Zn(), p(() => {
|
|
1561
|
+
On(), He(), kn();
|
|
1562
|
+
});
|
|
1516
1563
|
}), ee(() => {
|
|
1517
|
-
document.removeEventListener("keydown",
|
|
1518
|
-
}),
|
|
1519
|
-
close:
|
|
1564
|
+
document.removeEventListener("keydown", $n), document.removeEventListener("pointerdown", Qn), window.removeEventListener("resize", Zn), window.visualViewport?.removeEventListener("resize", Zn), window.removeEventListener("resize", On), window.removeEventListener("scroll", He), le?.disconnect(), ue?.disconnect(), de !== void 0 && window.cancelAnimationFrame(de), fe !== void 0 && window.cancelAnimationFrame(fe);
|
|
1565
|
+
}), u({
|
|
1566
|
+
close: Kn,
|
|
1520
1567
|
closeDrawer: () => {
|
|
1521
|
-
|
|
1568
|
+
N.value = !1;
|
|
1522
1569
|
},
|
|
1523
|
-
focusSearch:
|
|
1570
|
+
focusSearch: qn,
|
|
1524
1571
|
openDrawer: () => {
|
|
1525
|
-
|
|
1572
|
+
N.value = !0;
|
|
1526
1573
|
}
|
|
1527
|
-
}), (n,
|
|
1574
|
+
}), (n, u) => (_(), a("nav", {
|
|
1528
1575
|
ref_key: "rootRef",
|
|
1529
|
-
ref:
|
|
1576
|
+
ref: S,
|
|
1530
1577
|
class: "top-nav-bar top-solutions-component",
|
|
1531
|
-
style: g(
|
|
1578
|
+
style: g(Ve.value),
|
|
1532
1579
|
"aria-label": "Navegação principal"
|
|
1533
1580
|
}, [
|
|
1534
1581
|
o("header", {
|
|
1535
1582
|
ref_key: "headerRef",
|
|
1536
|
-
ref:
|
|
1537
|
-
class: m(["top-nav-bar__header", { "top-nav-bar__header--context-compact":
|
|
1583
|
+
ref: T,
|
|
1584
|
+
class: m(["top-nav-bar__header", { "top-nav-bar__header--context-compact": J.value.hideContextDetails }])
|
|
1538
1585
|
}, [
|
|
1539
|
-
|
|
1586
|
+
Re.value ? (_(), a("button", {
|
|
1540
1587
|
key: 0,
|
|
1541
1588
|
class: "top-nav-bar__mobile-trigger top-nav-bar__square-button",
|
|
1542
1589
|
type: "button",
|
|
1543
1590
|
"aria-label": "Abrir navegação",
|
|
1544
|
-
"aria-expanded":
|
|
1545
|
-
onClick:
|
|
1546
|
-
}, [...
|
|
1591
|
+
"aria-expanded": N.value,
|
|
1592
|
+
onClick: u[0] ||= (e) => N.value = !N.value
|
|
1593
|
+
}, [...u[19] ||= [o("i", {
|
|
1547
1594
|
class: "pi pi-bars",
|
|
1548
1595
|
"aria-hidden": "true"
|
|
1549
|
-
}, null, -1)]], 8,
|
|
1550
|
-
o("div",
|
|
1551
|
-
|
|
1552
|
-
|
|
1596
|
+
}, null, -1)]], 8, We)) : i("", !0),
|
|
1597
|
+
o("div", Ge, [b(n.$slots, "brand", { compact: J.value.hideContextDetails })]),
|
|
1598
|
+
Fe.value ? (_(), a("div", Ke, [J.value.hideContextDetails && n.$slots["context-compact"] ? b(n.$slots, "context-compact", {}, void 0, void 0, 0) : n.$slots.context ? b(n.$slots, "context", { compact: J.value.hideContextDetails }, void 0, void 0, 1) : n.$slots.scope ? b(n.$slots, "scope", { compact: J.value.hideContextDetails }, void 0, void 0, 2) : b(n.$slots, "client", { compact: J.value.hideContextDetails }, void 0, void 0, 3)])) : i("", !0),
|
|
1599
|
+
u[24] ||= o("div", {
|
|
1553
1600
|
class: "top-nav-bar__spacer",
|
|
1554
1601
|
"aria-hidden": "true"
|
|
1555
1602
|
}, null, -1),
|
|
1556
|
-
o("div",
|
|
1557
|
-
s.searchable ? (_(), a("div",
|
|
1603
|
+
o("div", qe, [
|
|
1604
|
+
s.searchable ? (_(), a("div", Je, [J.value.searchIconOnly && !q.value ? (_(), a("button", {
|
|
1558
1605
|
key: 0,
|
|
1559
1606
|
class: "top-nav-bar__square-button",
|
|
1560
1607
|
type: "button",
|
|
1561
1608
|
"aria-label": "Pesquisar no menu",
|
|
1562
1609
|
title: "Pesquisar no menu (Ctrl+K)",
|
|
1563
|
-
onClick:
|
|
1564
|
-
}, [...
|
|
1610
|
+
onClick: qn
|
|
1611
|
+
}, [...u[20] ||= [o("i", {
|
|
1565
1612
|
class: "pi pi-search",
|
|
1566
1613
|
"aria-hidden": "true"
|
|
1567
1614
|
}, null, -1)]])) : (_(), a("div", {
|
|
1568
1615
|
key: 1,
|
|
1569
|
-
class: m(["top-nav-bar__search", { "top-nav-bar__search--expanded":
|
|
1616
|
+
class: m(["top-nav-bar__search", { "top-nav-bar__search--expanded": q.value }])
|
|
1570
1617
|
}, [
|
|
1571
|
-
|
|
1618
|
+
u[22] ||= o("i", {
|
|
1572
1619
|
class: "pi pi-search",
|
|
1573
1620
|
"aria-hidden": "true"
|
|
1574
1621
|
}, null, -1),
|
|
1575
1622
|
o("input", {
|
|
1576
1623
|
ref_key: "searchInputRef",
|
|
1577
|
-
ref:
|
|
1578
|
-
value:
|
|
1579
|
-
type: "
|
|
1624
|
+
ref: j,
|
|
1625
|
+
value: G.value,
|
|
1626
|
+
type: "text",
|
|
1627
|
+
role: "searchbox",
|
|
1580
1628
|
placeholder: s.searchPlaceholder,
|
|
1581
1629
|
"aria-label": "Pesquisar no menu",
|
|
1582
|
-
onFocus:
|
|
1583
|
-
onBlur:
|
|
1584
|
-
onInput:
|
|
1585
|
-
}, null, 40,
|
|
1586
|
-
|
|
1630
|
+
onFocus: u[1] ||= (e) => K.value = !0,
|
|
1631
|
+
onBlur: Jn,
|
|
1632
|
+
onInput: u[2] ||= (e) => Nn(e.target.value)
|
|
1633
|
+
}, null, 40, Ye),
|
|
1634
|
+
G.value || J.value.searchIconOnly && q.value ? (_(), a("button", {
|
|
1587
1635
|
key: 0,
|
|
1588
1636
|
class: "top-nav-bar__search-clear",
|
|
1589
1637
|
type: "button",
|
|
1590
|
-
"aria-label":
|
|
1591
|
-
onMousedown:
|
|
1592
|
-
onClick:
|
|
1593
|
-
}, [...
|
|
1638
|
+
"aria-label": G.value ? "Limpar pesquisa" : "Fechar pesquisa",
|
|
1639
|
+
onMousedown: u[3] ||= A(() => {}, ["prevent"]),
|
|
1640
|
+
onClick: u[4] ||= (e) => G.value ? Pn() : q.value = !1
|
|
1641
|
+
}, [...u[21] ||= [o("i", {
|
|
1594
1642
|
class: "pi pi-times",
|
|
1595
1643
|
"aria-hidden": "true"
|
|
1596
|
-
}, null, -1)]], 40,
|
|
1597
|
-
|
|
1598
|
-
items:
|
|
1599
|
-
select:
|
|
1600
|
-
}, () => [(_(!0), a(e, null, y(
|
|
1644
|
+
}, null, -1)]], 40, Xe)) : i("", !0),
|
|
1645
|
+
K.value ? (_(), a("div", Ze, [o("div", Qe, [b(n.$slots, "search-results", {
|
|
1646
|
+
items: ye.value,
|
|
1647
|
+
select: $
|
|
1648
|
+
}, () => [(_(!0), a(e, null, y(ye.value, (e) => (_(), a("button", {
|
|
1601
1649
|
key: e.id,
|
|
1602
1650
|
class: "top-nav-bar__menu-item",
|
|
1603
1651
|
type: "button",
|
|
1604
1652
|
role: "menuitem",
|
|
1605
1653
|
disabled: e.disabled,
|
|
1606
|
-
onMousedown:
|
|
1607
|
-
onClick: (t) =>
|
|
1654
|
+
onMousedown: u[5] ||= A(() => {}, ["prevent"]),
|
|
1655
|
+
onClick: (t) => $(e)
|
|
1608
1656
|
}, [e.icon ? (_(), a("i", {
|
|
1609
1657
|
key: 0,
|
|
1610
1658
|
class: m(e.icon),
|
|
1611
1659
|
"aria-hidden": "true"
|
|
1612
|
-
}, null, 2)) : i("", !0), o("span", null, C(e.label), 1)], 40,
|
|
1660
|
+
}, null, 2)) : i("", !0), o("span", null, C(e.label), 1)], 40, $e))), 128)), ye.value.length ? i("", !0) : (_(), a("span", et, "Nenhum item encontrado."))])])])) : i("", !0)
|
|
1613
1661
|
], 2))])) : i("", !0),
|
|
1614
|
-
|
|
1662
|
+
Me.value.length ? (_(), a("div", tt, [J.value.collapseActions ? (_(), a(e, { key: 1 }, [o("button", {
|
|
1615
1663
|
class: "top-nav-bar__square-button",
|
|
1616
1664
|
type: "button",
|
|
1617
1665
|
"aria-label": "Mais ações",
|
|
1618
|
-
"aria-expanded":
|
|
1619
|
-
onClick:
|
|
1620
|
-
}, [...
|
|
1666
|
+
"aria-expanded": z.value,
|
|
1667
|
+
onClick: u[6] ||= (e) => z.value = !z.value
|
|
1668
|
+
}, [...u[23] ||= [o("i", {
|
|
1621
1669
|
class: "pi pi-ellipsis-h",
|
|
1622
1670
|
"aria-hidden": "true"
|
|
1623
|
-
}, null, -1)]], 8,
|
|
1671
|
+
}, null, -1)]], 8, rt), z.value ? (_(), a("div", it, [o("div", at, [(_(!0), a(e, null, y(Me.value, (e) => (_(), a("button", {
|
|
1624
1672
|
key: e.id,
|
|
1625
1673
|
class: "top-nav-bar__menu-item",
|
|
1626
1674
|
type: "button",
|
|
1627
1675
|
role: "menuitem",
|
|
1628
1676
|
disabled: e.disabled,
|
|
1629
|
-
onClick: (t) =>
|
|
1677
|
+
onClick: (t) => An(e)
|
|
1630
1678
|
}, [o("i", {
|
|
1631
1679
|
class: m(e.icon),
|
|
1632
1680
|
"aria-hidden": "true"
|
|
1633
|
-
}, null, 2), o("span", null, C(e.label), 1)], 8,
|
|
1681
|
+
}, null, 2), o("span", null, C(e.label), 1)], 8, ot))), 128))])])) : i("", !0)], 64)) : (_(!0), a(e, { key: 0 }, y(Me.value, (e) => (_(), a("button", {
|
|
1634
1682
|
key: e.id,
|
|
1635
1683
|
class: m(["top-nav-bar__square-button", { "top-nav-bar__square-button--active": e.kind === "aia" && s.aiaActive }]),
|
|
1636
1684
|
type: "button",
|
|
@@ -1638,7 +1686,7 @@ var be = /* @__PURE__ */ _e(ge, [["render", ye], ["__file", "/Users/mahmudulhasa
|
|
|
1638
1686
|
"aria-label": e.label,
|
|
1639
1687
|
"aria-pressed": e.kind === "aia" ? s.aiaActive : void 0,
|
|
1640
1688
|
title: e.label,
|
|
1641
|
-
onClick: (t) =>
|
|
1689
|
+
onClick: (t) => An(e)
|
|
1642
1690
|
}, [e.kind === "aia" ? b(n.$slots, "aia-icon", {}, () => [o("i", {
|
|
1643
1691
|
class: m(e.icon),
|
|
1644
1692
|
"aria-hidden": "true"
|
|
@@ -1649,404 +1697,441 @@ var be = /* @__PURE__ */ _e(ge, [["render", ye], ["__file", "/Users/mahmudulhasa
|
|
|
1649
1697
|
key: 2,
|
|
1650
1698
|
class: m(e.icon),
|
|
1651
1699
|
"aria-hidden": "true"
|
|
1652
|
-
}, null, 2))], 10,
|
|
1653
|
-
n.$slots.actions ? (_(), a("div",
|
|
1654
|
-
compact:
|
|
1655
|
-
close:
|
|
1700
|
+
}, null, 2))], 10, nt))), 128))])) : i("", !0),
|
|
1701
|
+
n.$slots.actions ? (_(), a("div", st, [b(n.$slots, "actions", {
|
|
1702
|
+
compact: J.value.collapseActions,
|
|
1703
|
+
close: Kn
|
|
1656
1704
|
})])) : i("", !0),
|
|
1657
|
-
|
|
1705
|
+
Pe.value ? (_(), a("div", {
|
|
1658
1706
|
key: 3,
|
|
1659
1707
|
class: "top-nav-bar__user-menu",
|
|
1660
1708
|
"data-top-nav-user": "",
|
|
1661
|
-
onMouseenter:
|
|
1662
|
-
onMouseleave:
|
|
1709
|
+
onMouseenter: u[7] ||= (e) => X.value && Q() && (B.value = !0),
|
|
1710
|
+
onMouseleave: u[8] ||= (e) => Q() && (B.value = !1)
|
|
1663
1711
|
}, [o("button", {
|
|
1664
1712
|
class: "top-nav-bar__user-trigger",
|
|
1665
1713
|
type: "button",
|
|
1666
1714
|
"aria-haspopup": X.value ? "menu" : void 0,
|
|
1667
|
-
"aria-expanded": X.value ?
|
|
1668
|
-
onClick:
|
|
1715
|
+
"aria-expanded": X.value ? B.value : void 0,
|
|
1716
|
+
onClick: er
|
|
1669
1717
|
}, [b(n.$slots, "user", {
|
|
1670
1718
|
user: s.user,
|
|
1671
|
-
compact:
|
|
1719
|
+
compact: J.value.hideUserName
|
|
1672
1720
|
}, () => [s.user?.avatarUrl ? (_(), a("img", {
|
|
1673
1721
|
key: 0,
|
|
1674
1722
|
src: s.user.avatarUrl,
|
|
1675
1723
|
alt: "",
|
|
1676
1724
|
class: "top-nav-bar__user-avatar"
|
|
1677
|
-
}, null, 8,
|
|
1678
|
-
items:
|
|
1679
|
-
select:
|
|
1680
|
-
}, () => [(_(!0), a(e, null, y(
|
|
1725
|
+
}, null, 8, lt)) : (_(), a("span", ut, C(ze.value), 1)), s.user && !J.value.hideUserName ? (_(), a("span", dt, [o("span", ft, C(s.user.name), 1), s.user.subtitle ? (_(), a("span", pt, C(s.user.subtitle), 1)) : i("", !0)])) : i("", !0)]), X.value ? (_(), a("i", mt)) : i("", !0)], 8, ct), X.value && B.value ? (_(), a("div", ht, [o("div", gt, [b(n.$slots, "user-menu", {
|
|
1726
|
+
items: Ne.value,
|
|
1727
|
+
select: jn
|
|
1728
|
+
}, () => [(_(!0), a(e, null, y(Ne.value, (t) => (_(), a(e, { key: t.id }, [t.separator ? (_(), a("div", _t)) : (_(), a("button", {
|
|
1681
1729
|
key: 1,
|
|
1682
1730
|
class: "top-nav-bar__menu-item",
|
|
1683
1731
|
type: "button",
|
|
1684
1732
|
role: "menuitem",
|
|
1685
1733
|
disabled: t.disabled,
|
|
1686
|
-
onClick: (e) =>
|
|
1734
|
+
onClick: (e) => jn(t)
|
|
1687
1735
|
}, [t.icon ? (_(), a("i", {
|
|
1688
1736
|
key: 0,
|
|
1689
1737
|
class: m(t.icon),
|
|
1690
1738
|
"aria-hidden": "true"
|
|
1691
|
-
}, null, 2)) : i("", !0), o("span", null, C(t.label), 1)], 8,
|
|
1739
|
+
}, null, 2)) : i("", !0), o("span", null, C(t.label), 1)], 8, vt))], 64))), 128))])])])) : i("", !0)], 32)) : i("", !0)
|
|
1692
1740
|
])
|
|
1693
1741
|
], 2),
|
|
1694
|
-
o("div",
|
|
1742
|
+
o("div", yt, [
|
|
1695
1743
|
o("button", {
|
|
1696
1744
|
class: "top-nav-bar__crumb",
|
|
1697
1745
|
type: "button",
|
|
1698
|
-
onClick:
|
|
1746
|
+
onClick: u[9] ||= (e) => $(s.homeItem)
|
|
1699
1747
|
}, [l(w(be), { icon: w(he) }, null, 8, ["icon"]), o("span", null, C(s.homeItem.label), 1)]),
|
|
1700
|
-
|
|
1701
|
-
|
|
1748
|
+
Y.value.length ? (_(), a("span", bt, "/")) : i("", !0),
|
|
1749
|
+
Y.value.length ? (_(), a("div", {
|
|
1702
1750
|
key: 1,
|
|
1703
1751
|
class: "top-nav-bar__dropdown top-nav-bar__desktop-navigation",
|
|
1704
1752
|
"data-top-nav-navigation": "",
|
|
1705
|
-
onMouseenter:
|
|
1706
|
-
onMouseleave:
|
|
1753
|
+
onMouseenter: Fn,
|
|
1754
|
+
onMouseleave: In
|
|
1707
1755
|
}, [o("button", {
|
|
1708
1756
|
class: "top-nav-bar__crumb",
|
|
1709
1757
|
type: "button",
|
|
1710
1758
|
"aria-haspopup": "menu",
|
|
1711
|
-
"aria-expanded":
|
|
1712
|
-
onClick:
|
|
1759
|
+
"aria-expanded": P.value,
|
|
1760
|
+
onClick: Ln
|
|
1713
1761
|
}, [
|
|
1714
|
-
|
|
1762
|
+
u[25] ||= o("i", {
|
|
1715
1763
|
class: "pi pi-bars",
|
|
1716
1764
|
"aria-hidden": "true"
|
|
1717
1765
|
}, null, -1),
|
|
1718
1766
|
o("span", null, C(s.navigationLabel), 1),
|
|
1719
|
-
|
|
1767
|
+
u[26] ||= o("i", {
|
|
1720
1768
|
class: "pi pi-chevron-down top-nav-bar__chevron",
|
|
1721
1769
|
"aria-hidden": "true"
|
|
1722
1770
|
}, null, -1)
|
|
1723
|
-
], 8,
|
|
1771
|
+
], 8, xt), P.value ? (_(), a("div", St, [o("div", Ct, [o("div", wt, [(_(!0), a(e, null, y(Y.value, (e) => (_(), a("button", {
|
|
1724
1772
|
key: e.id,
|
|
1725
|
-
class: m(["top-nav-bar__menu-item", { "top-nav-bar__menu-item--explored":
|
|
1773
|
+
class: m(["top-nav-bar__menu-item", { "top-nav-bar__menu-item--explored": F.value === e.id }]),
|
|
1726
1774
|
type: "button",
|
|
1727
1775
|
role: "menuitem",
|
|
1728
1776
|
"aria-haspopup": "menu",
|
|
1729
|
-
"aria-expanded":
|
|
1730
|
-
onMouseenter: (t) =>
|
|
1731
|
-
onClick: (t) =>
|
|
1777
|
+
"aria-expanded": F.value === e.id,
|
|
1778
|
+
onMouseenter: (t) => Rn(e.id),
|
|
1779
|
+
onClick: (t) => zn(e.id)
|
|
1732
1780
|
}, [
|
|
1733
1781
|
e.icon ? (_(), a("i", {
|
|
1734
1782
|
key: 0,
|
|
1735
1783
|
class: m(e.icon),
|
|
1736
1784
|
"aria-hidden": "true"
|
|
1737
1785
|
}, null, 2)) : i("", !0),
|
|
1738
|
-
o("span",
|
|
1739
|
-
o("span",
|
|
1740
|
-
|
|
1786
|
+
o("span", Et, C(e.label), 1),
|
|
1787
|
+
o("span", Dt, C(e.children.length), 1),
|
|
1788
|
+
u[27] ||= o("i", {
|
|
1741
1789
|
class: "pi pi-chevron-right top-nav-bar__menu-arrow",
|
|
1742
1790
|
"aria-hidden": "true"
|
|
1743
1791
|
}, null, -1)
|
|
1744
|
-
], 42,
|
|
1792
|
+
], 42, Tt))), 128))]), Oe.value ? (_(), a("div", Ot, [(_(!0), a(e, null, y(Ae.value, (t, n) => (_(), a("div", {
|
|
1745
1793
|
key: `navigation-level-${n}`,
|
|
1746
1794
|
class: m(["top-nav-bar__cascade-level", { "top-nav-bar__section-items": n === 0 }]),
|
|
1747
1795
|
role: "menu"
|
|
1748
|
-
}, [(_(!0), a(e, null, y(
|
|
1796
|
+
}, [(_(!0), a(e, null, y(je(t), (t, r) => (_(), a("div", {
|
|
1749
1797
|
key: `navigation-${n}-${r}`,
|
|
1750
1798
|
class: "top-nav-bar__menu-column"
|
|
1751
1799
|
}, [(_(!0), a(e, null, y(t, (e) => (_(), a("button", {
|
|
1752
1800
|
key: e.id,
|
|
1753
|
-
class: m(["top-nav-bar__menu-item", { "top-nav-bar__menu-item--explored":
|
|
1801
|
+
class: m(["top-nav-bar__menu-item", { "top-nav-bar__menu-item--explored": I.value[n] === e.id }]),
|
|
1754
1802
|
type: "button",
|
|
1755
1803
|
role: "menuitem",
|
|
1756
1804
|
disabled: e.disabled,
|
|
1757
1805
|
"aria-haspopup": e.children?.length ? "menu" : void 0,
|
|
1758
|
-
"aria-expanded": e.children?.length ?
|
|
1759
|
-
onMouseenter: (t) =>
|
|
1760
|
-
onClick: (t) =>
|
|
1806
|
+
"aria-expanded": e.children?.length ? I.value[n] === e.id : void 0,
|
|
1807
|
+
onMouseenter: (t) => Vn(e, n, !0),
|
|
1808
|
+
onClick: (t) => Vn(e, n, !1)
|
|
1761
1809
|
}, [
|
|
1762
1810
|
e.icon ? (_(), a("i", {
|
|
1763
1811
|
key: 0,
|
|
1764
1812
|
class: m(e.icon),
|
|
1765
1813
|
"aria-hidden": "true"
|
|
1766
1814
|
}, null, 2)) : i("", !0),
|
|
1767
|
-
o("span",
|
|
1768
|
-
e.children?.length ? (_(), a("i",
|
|
1769
|
-
], 42,
|
|
1770
|
-
(_(!0), a(e, null, y(
|
|
1771
|
-
class: "top-nav-bar__separator",
|
|
1815
|
+
o("span", At, C(e.label), 1),
|
|
1816
|
+
e.children?.length ? (_(), a("i", jt)) : i("", !0)
|
|
1817
|
+
], 42, kt))), 128))]))), 128))], 2))), 128))])) : i("", !0)])])) : i("", !0)], 32)) : i("", !0),
|
|
1818
|
+
(_(!0), a(e, null, y(Ee.value, (t, n) => (_(), a(e, { key: t.id }, [o("span", {
|
|
1819
|
+
class: m(["top-nav-bar__separator", { "top-nav-bar__separator--current": !t.to && n === Ee.value.length - 1 }]),
|
|
1772
1820
|
"aria-hidden": "true"
|
|
1773
|
-
}, "/",
|
|
1821
|
+
}, "/", 2), De(t)?.children?.length ? (_(), a("div", {
|
|
1774
1822
|
key: 0,
|
|
1775
1823
|
class: "top-nav-bar__dropdown top-nav-bar__breadcrumb-dropdown",
|
|
1776
1824
|
"data-top-nav-breadcrumb": "",
|
|
1777
|
-
onMouseenter: (e) => !
|
|
1778
|
-
onMouseleave:
|
|
1779
|
-
}, [
|
|
1825
|
+
onMouseenter: (e) => !ce.value && Un(t.id),
|
|
1826
|
+
onMouseleave: u[10] ||= (e) => !ce.value && Wn()
|
|
1827
|
+
}, [ce.value ? (_(), a("span", Nt, C(t.label), 1)) : (_(), a("button", {
|
|
1780
1828
|
key: 1,
|
|
1781
1829
|
class: "top-nav-bar__crumb",
|
|
1782
1830
|
type: "button",
|
|
1783
1831
|
"aria-haspopup": "menu",
|
|
1784
|
-
"aria-expanded":
|
|
1785
|
-
onClick: (e) =>
|
|
1786
|
-
}, [o("span", null, C(t.label), 1),
|
|
1832
|
+
"aria-expanded": L.value === t.id,
|
|
1833
|
+
onClick: (e) => Gn(t.id)
|
|
1834
|
+
}, [o("span", null, C(t.label), 1), u[28] ||= o("i", {
|
|
1787
1835
|
class: "pi pi-chevron-down top-nav-bar__chevron",
|
|
1788
1836
|
"aria-hidden": "true"
|
|
1789
|
-
}, null, -1)], 8,
|
|
1837
|
+
}, null, -1)], 8, Pt)), !ce.value && L.value === t.id ? (_(), a("div", Ft, [o("div", It, [(_(!0), a(e, null, y(ke(De(t)?.children ?? [], R.value), (n, r) => (_(), a("div", {
|
|
1790
1838
|
key: `breadcrumb-${t.id}-${r}`,
|
|
1791
1839
|
class: m(["top-nav-bar__cascade-level", { "top-nav-bar__breadcrumb-main-items": r === 0 }])
|
|
1792
|
-
}, [(_(!0), a(e, null, y(
|
|
1840
|
+
}, [(_(!0), a(e, null, y(je(n), (n, s) => (_(), a("div", {
|
|
1793
1841
|
key: `breadcrumb-${t.id}-${r}-${s}`,
|
|
1794
1842
|
class: "top-nav-bar__menu-column"
|
|
1795
1843
|
}, [(_(!0), a(e, null, y(n, (e) => (_(), a("button", {
|
|
1796
1844
|
key: e.id,
|
|
1797
|
-
class: m(["top-nav-bar__menu-item", { "top-nav-bar__menu-item--explored":
|
|
1845
|
+
class: m(["top-nav-bar__menu-item", { "top-nav-bar__menu-item--explored": R.value[r] === e.id }]),
|
|
1798
1846
|
type: "button",
|
|
1799
1847
|
role: "menuitem",
|
|
1800
1848
|
disabled: e.disabled,
|
|
1801
|
-
onMouseenter: (t) =>
|
|
1802
|
-
onClick: (t) =>
|
|
1849
|
+
onMouseenter: (t) => Hn(e, r, !0),
|
|
1850
|
+
onClick: (t) => Hn(e, r, !1)
|
|
1803
1851
|
}, [
|
|
1804
1852
|
e.icon ? (_(), a("i", {
|
|
1805
1853
|
key: 0,
|
|
1806
1854
|
class: m(e.icon),
|
|
1807
1855
|
"aria-hidden": "true"
|
|
1808
1856
|
}, null, 2)) : i("", !0),
|
|
1809
|
-
o("span",
|
|
1810
|
-
e.children?.length ? (_(), a("i",
|
|
1811
|
-
], 42,
|
|
1857
|
+
o("span", Rt, C(e.label), 1),
|
|
1858
|
+
e.children?.length ? (_(), a("i", zt)) : i("", !0)
|
|
1859
|
+
], 42, Lt))), 128))]))), 128))], 2))), 128))])])) : i("", !0)], 40, Mt)) : t.to ? (_(), a("button", {
|
|
1812
1860
|
key: 1,
|
|
1813
1861
|
class: "top-nav-bar__crumb",
|
|
1814
1862
|
type: "button",
|
|
1815
|
-
onClick: (e) =>
|
|
1816
|
-
}, C(t.label), 9,
|
|
1863
|
+
onClick: (e) => $(t)
|
|
1864
|
+
}, C(t.label), 9, Bt)) : (_(), a("span", {
|
|
1817
1865
|
key: 2,
|
|
1818
1866
|
class: "top-nav-bar__current",
|
|
1819
1867
|
title: t.label
|
|
1820
|
-
}, C(t.label),
|
|
1821
|
-
|
|
1822
|
-
|
|
1868
|
+
}, [o("span", Ht, C(t.label), 1), s.showFavoriteToggle ? (_(), a("button", {
|
|
1869
|
+
key: 0,
|
|
1870
|
+
class: "top-nav-bar__favorite-toggle",
|
|
1871
|
+
type: "button",
|
|
1872
|
+
"aria-label": s.favoriteActive ? "Remover dos favoritos" : "Adicionar aos favoritos",
|
|
1873
|
+
"aria-pressed": s.favoriteActive,
|
|
1874
|
+
onClick: u[11] ||= A((e) => h("toggle-favorite"), ["stop"])
|
|
1875
|
+
}, [o("i", {
|
|
1876
|
+
class: m(s.favoriteActive ? "pi pi-star-fill" : "pi pi-star"),
|
|
1877
|
+
"aria-hidden": "true"
|
|
1878
|
+
}, null, 2)], 8, Ut)) : i("", !0)], 8, Vt))], 64))), 128)),
|
|
1879
|
+
o("div", Wt, [l(t, {
|
|
1880
|
+
name: "top-nav-bar-favorites-trigger",
|
|
1881
|
+
css: se.value
|
|
1882
|
+
}, {
|
|
1883
|
+
default: k(() => [Ie.value && Z.value.length ? (_(), a("div", {
|
|
1823
1884
|
key: 0,
|
|
1824
|
-
class: "top-nav-bar__favorite-toggle",
|
|
1825
|
-
type: "button",
|
|
1826
|
-
"aria-label": s.favoriteActive ? "Remover dos favoritos" : "Adicionar aos favoritos",
|
|
1827
|
-
"aria-pressed": s.favoriteActive,
|
|
1828
|
-
onClick: c[11] ||= (e) => f("toggle-favorite")
|
|
1829
|
-
}, [o("i", {
|
|
1830
|
-
class: m(s.favoriteActive ? "pi pi-star-fill" : "pi pi-star"),
|
|
1831
|
-
"aria-hidden": "true"
|
|
1832
|
-
}, null, 2)], 8, Bt)) : i("", !0),
|
|
1833
|
-
Ee.value.length ? (_(), a("div", {
|
|
1834
|
-
key: 1,
|
|
1835
1885
|
class: "top-nav-bar__favorites-menu top-nav-bar__desktop-only",
|
|
1836
1886
|
"data-top-nav-favorites": "",
|
|
1837
|
-
onMouseenter:
|
|
1838
|
-
onMouseleave:
|
|
1887
|
+
onMouseenter: u[12] ||= (e) => Q() && (H.value = !0),
|
|
1888
|
+
onMouseleave: u[13] ||= (e) => Q() && (H.value = !1)
|
|
1839
1889
|
}, [o("button", {
|
|
1840
1890
|
class: "top-nav-bar__crumb",
|
|
1841
1891
|
type: "button",
|
|
1842
1892
|
"aria-haspopup": "menu",
|
|
1843
|
-
"aria-expanded":
|
|
1844
|
-
onClick:
|
|
1893
|
+
"aria-expanded": H.value,
|
|
1894
|
+
onClick: tr
|
|
1845
1895
|
}, [
|
|
1846
|
-
|
|
1896
|
+
u[29] ||= o("i", {
|
|
1847
1897
|
class: "pi pi-star-fill top-nav-bar__accent",
|
|
1848
1898
|
"aria-hidden": "true"
|
|
1849
1899
|
}, null, -1),
|
|
1850
1900
|
o("span", null, C(s.favoriteLabel), 1),
|
|
1851
|
-
|
|
1901
|
+
u[30] ||= o("i", {
|
|
1852
1902
|
class: "pi pi-chevron-down top-nav-bar__chevron",
|
|
1853
1903
|
"aria-hidden": "true"
|
|
1854
1904
|
}, null, -1)
|
|
1855
|
-
], 8,
|
|
1905
|
+
], 8, Gt), H.value ? (_(), a("div", Kt, [o("div", qt, [(_(!0), a(e, null, y(Z.value, (e) => (_(), a("button", {
|
|
1856
1906
|
key: e.id,
|
|
1857
1907
|
class: "top-nav-bar__menu-item",
|
|
1858
1908
|
type: "button",
|
|
1859
1909
|
role: "menuitem",
|
|
1860
1910
|
disabled: e.disabled,
|
|
1861
|
-
onClick: (t) =>
|
|
1911
|
+
onClick: (t) => $(e)
|
|
1862
1912
|
}, [e.icon ? (_(), a("i", {
|
|
1863
1913
|
key: 0,
|
|
1864
1914
|
class: m(e.icon),
|
|
1865
1915
|
"aria-hidden": "true"
|
|
1866
|
-
}, null, 2)) : i("", !0), o("span", null, C(e.label), 1)], 8,
|
|
1867
|
-
|
|
1868
|
-
])
|
|
1916
|
+
}, null, 2)) : i("", !0), o("span", null, C(e.label), 1)], 8, Jt))), 128))])])) : i("", !0)], 32)) : i("", !0)]),
|
|
1917
|
+
_: 1
|
|
1918
|
+
}, 8, ["css"]), b(n.$slots, "breadcrumb-actions")])
|
|
1869
1919
|
]),
|
|
1920
|
+
o("div", {
|
|
1921
|
+
ref_key: "favoritesMeasureContainerRef",
|
|
1922
|
+
ref: E,
|
|
1923
|
+
class: "top-nav-bar__favorites-measure",
|
|
1924
|
+
"aria-hidden": "true"
|
|
1925
|
+
}, [o("div", {
|
|
1926
|
+
ref_key: "favoritesMeasureContentRef",
|
|
1927
|
+
ref: ne,
|
|
1928
|
+
class: "top-nav-bar__favorites-measure-content"
|
|
1929
|
+
}, [o("span", Yt, [u[31] ||= o("i", {
|
|
1930
|
+
class: "pi pi-star-fill top-nav-bar__favorites-icon",
|
|
1931
|
+
"aria-hidden": "true"
|
|
1932
|
+
}, null, -1), o("span", null, C(s.favoriteLabel), 1)]), (_(!0), a(e, null, y(Z.value, (e, t) => (_(), a("span", {
|
|
1933
|
+
key: `measure-${e.id}`,
|
|
1934
|
+
class: "top-nav-bar__favorites-measure-item"
|
|
1935
|
+
}, [t > 0 ? (_(), a("span", Xt, "|")) : i("", !0), o("span", null, [e.icon ? (_(), a("i", {
|
|
1936
|
+
key: 0,
|
|
1937
|
+
class: m(e.icon),
|
|
1938
|
+
"aria-hidden": "true"
|
|
1939
|
+
}, null, 2)) : i("", !0), c(" " + C(e.label), 1)])]))), 128))], 512)], 512),
|
|
1940
|
+
l(t, {
|
|
1941
|
+
name: "top-nav-bar-favorites-row",
|
|
1942
|
+
css: se.value
|
|
1943
|
+
}, {
|
|
1944
|
+
default: k(() => [Le.value ? (_(), a("div", Zt, [o("span", Qt, [u[32] ||= o("i", {
|
|
1945
|
+
class: "pi pi-star-fill top-nav-bar__favorites-icon",
|
|
1946
|
+
"aria-hidden": "true"
|
|
1947
|
+
}, null, -1), o("span", null, C(s.favoriteLabel), 1)]), o("div", $t, [(_(!0), a(e, null, y(Z.value, (t, n) => (_(), a(e, { key: `row-${t.id}` }, [n > 0 ? (_(), a("span", en, "|")) : i("", !0), o("button", {
|
|
1948
|
+
class: "top-nav-bar__favorites-row-item",
|
|
1949
|
+
type: "button",
|
|
1950
|
+
disabled: t.disabled,
|
|
1951
|
+
onClick: (e) => $(t)
|
|
1952
|
+
}, [t.icon ? (_(), a("i", {
|
|
1953
|
+
key: 0,
|
|
1954
|
+
class: m(t.icon),
|
|
1955
|
+
"aria-hidden": "true"
|
|
1956
|
+
}, null, 2)) : i("", !0), o("span", null, C(t.label), 1)], 8, tn)], 64))), 128))])])) : i("", !0)]),
|
|
1957
|
+
_: 1
|
|
1958
|
+
}, 8, ["css"]),
|
|
1870
1959
|
l(w(re), {
|
|
1871
|
-
visible:
|
|
1872
|
-
"onUpdate:visible":
|
|
1960
|
+
visible: N.value,
|
|
1961
|
+
"onUpdate:visible": u[16] ||= (e) => N.value = e,
|
|
1873
1962
|
position: "left",
|
|
1874
1963
|
class: "top-nav-bar__mobile-drawer",
|
|
1875
|
-
style: g([
|
|
1964
|
+
style: g([Ve.value, { width: "var(--top-nav-drawer-width, min(22rem, calc(100vw - 1.5rem)))" }])
|
|
1876
1965
|
}, {
|
|
1877
|
-
container:
|
|
1878
|
-
o("header",
|
|
1966
|
+
container: k(({ closeCallback: c }) => [o("div", nn, [
|
|
1967
|
+
o("header", rn, [b(n.$slots, "drawer-header", { close: c }, () => [o("div", an, [b(n.$slots, "drawer-brand", {}, () => [b(n.$slots, "brand", { compact: !1 })])]), o("button", {
|
|
1879
1968
|
class: "top-nav-bar__drawer-close top-nav-bar__square-button",
|
|
1880
1969
|
type: "button",
|
|
1881
1970
|
"aria-label": "Fechar navegação",
|
|
1882
|
-
onClick:
|
|
1883
|
-
}, [...
|
|
1971
|
+
onClick: c
|
|
1972
|
+
}, [...u[33] ||= [o("i", {
|
|
1884
1973
|
class: "pi pi-times",
|
|
1885
1974
|
"aria-hidden": "true"
|
|
1886
|
-
}, null, -1)]], 8,
|
|
1887
|
-
s.searchable ||
|
|
1888
|
-
query:
|
|
1889
|
-
update:
|
|
1890
|
-
clear:
|
|
1891
|
-
}, () => [o("div",
|
|
1892
|
-
|
|
1975
|
+
}, null, -1)]], 8, on)])]),
|
|
1976
|
+
s.searchable || Me.value.length || n.$slots["drawer-actions"] ? (_(), a("div", sn, [s.searchable ? b(n.$slots, "drawer-search", {
|
|
1977
|
+
query: G.value,
|
|
1978
|
+
update: Nn,
|
|
1979
|
+
clear: Pn
|
|
1980
|
+
}, () => [o("div", cn, [
|
|
1981
|
+
u[35] ||= o("i", {
|
|
1893
1982
|
class: "pi pi-search",
|
|
1894
1983
|
"aria-hidden": "true"
|
|
1895
1984
|
}, null, -1),
|
|
1896
1985
|
o("input", {
|
|
1897
1986
|
ref_key: "mobileSearchInputRef",
|
|
1898
|
-
ref:
|
|
1899
|
-
value:
|
|
1900
|
-
type: "
|
|
1987
|
+
ref: M,
|
|
1988
|
+
value: G.value,
|
|
1989
|
+
type: "text",
|
|
1990
|
+
role: "searchbox",
|
|
1901
1991
|
placeholder: s.searchPlaceholder,
|
|
1902
1992
|
"aria-label": "Pesquisar no menu",
|
|
1903
|
-
onInput:
|
|
1904
|
-
}, null, 40,
|
|
1905
|
-
|
|
1993
|
+
onInput: u[14] ||= (e) => Nn(e.target.value)
|
|
1994
|
+
}, null, 40, ln),
|
|
1995
|
+
G.value ? (_(), a("button", {
|
|
1906
1996
|
key: 0,
|
|
1907
1997
|
class: "top-nav-bar__search-clear",
|
|
1908
1998
|
type: "button",
|
|
1909
1999
|
"aria-label": "Limpar pesquisa",
|
|
1910
|
-
onClick:
|
|
1911
|
-
}, [...
|
|
2000
|
+
onClick: Pn
|
|
2001
|
+
}, [...u[34] ||= [o("i", {
|
|
1912
2002
|
class: "pi pi-times",
|
|
1913
2003
|
"aria-hidden": "true"
|
|
1914
2004
|
}, null, -1)]])) : i("", !0)
|
|
1915
2005
|
])], void 0, 0) : i("", !0), b(n.$slots, "drawer-actions", {
|
|
1916
|
-
actions:
|
|
1917
|
-
select: (e) =>
|
|
1918
|
-
close:
|
|
1919
|
-
}, () => [(_(!0), a(e, null, y(
|
|
2006
|
+
actions: Me.value,
|
|
2007
|
+
select: (e) => An(e, !0),
|
|
2008
|
+
close: c
|
|
2009
|
+
}, () => [(_(!0), a(e, null, y(Me.value, (e) => (_(), a("button", {
|
|
1920
2010
|
key: `drawer-${e.id}`,
|
|
1921
2011
|
class: m(["top-nav-bar__drawer-action", { "top-nav-bar__drawer-action--active": e.kind === "aia" && s.aiaActive }]),
|
|
1922
2012
|
type: "button",
|
|
1923
2013
|
disabled: e.disabled,
|
|
1924
|
-
onClick: (t) =>
|
|
2014
|
+
onClick: (t) => An(e, !0)
|
|
1925
2015
|
}, [o("i", {
|
|
1926
2016
|
class: m(e.icon),
|
|
1927
2017
|
"aria-hidden": "true"
|
|
1928
|
-
}, null, 2), o("span", null, C(e.label), 1)], 10,
|
|
1929
|
-
o("div",
|
|
1930
|
-
b(n.$slots, "drawer-before-menu", { close:
|
|
1931
|
-
o("div",
|
|
2018
|
+
}, null, 2), o("span", null, C(e.label), 1)], 10, un))), 128))])])) : i("", !0),
|
|
2019
|
+
o("div", dn, [
|
|
2020
|
+
b(n.$slots, "drawer-before-menu", { close: c }),
|
|
2021
|
+
o("div", fn, [Z.value.length ? (_(), a("section", pn, [o("button", {
|
|
1932
2022
|
class: "top-nav-bar__mobile-item",
|
|
1933
2023
|
type: "button",
|
|
1934
|
-
"aria-expanded":
|
|
1935
|
-
onClick:
|
|
2024
|
+
"aria-expanded": U.value,
|
|
2025
|
+
onClick: u[15] ||= (e) => U.value = !U.value
|
|
1936
2026
|
}, [
|
|
1937
|
-
|
|
2027
|
+
u[36] ||= o("i", {
|
|
1938
2028
|
class: "pi pi-star-fill top-nav-bar__accent",
|
|
1939
2029
|
"aria-hidden": "true"
|
|
1940
2030
|
}, null, -1),
|
|
1941
|
-
o("span",
|
|
1942
|
-
o("span",
|
|
2031
|
+
o("span", hn, C(s.favoriteLabel), 1),
|
|
2032
|
+
o("span", gn, C(Z.value.length), 1),
|
|
1943
2033
|
o("i", {
|
|
1944
|
-
class: m(["pi pi-chevron-down top-nav-bar__mobile-chevron", { "top-nav-bar__mobile-chevron--open":
|
|
2034
|
+
class: m(["pi pi-chevron-down top-nav-bar__mobile-chevron", { "top-nav-bar__mobile-chevron--open": U.value }]),
|
|
1945
2035
|
"aria-hidden": "true"
|
|
1946
2036
|
}, null, 2)
|
|
1947
|
-
], 8,
|
|
1948
|
-
default:
|
|
2037
|
+
], 8, mn), l(t, { name: "top-nav-bar-menu-expand" }, {
|
|
2038
|
+
default: k(() => [U.value ? (_(), r(Ue, {
|
|
1949
2039
|
key: 0,
|
|
1950
|
-
items:
|
|
2040
|
+
items: Z.value,
|
|
1951
2041
|
"active-item-id": s.activeItemId,
|
|
1952
2042
|
level: 1,
|
|
1953
|
-
onSelect:
|
|
2043
|
+
onSelect: $
|
|
1954
2044
|
}, null, 8, ["items", "active-item-id"])) : i("", !0)]),
|
|
1955
2045
|
_: 1
|
|
1956
2046
|
})])) : i("", !0), b(n.$slots, "drawer-menu", {
|
|
1957
|
-
sections:
|
|
1958
|
-
select:
|
|
1959
|
-
close:
|
|
1960
|
-
}, () => [
|
|
2047
|
+
sections: Se.value,
|
|
2048
|
+
select: $,
|
|
2049
|
+
close: c
|
|
2050
|
+
}, () => [Se.value.length ? (_(), r(Ue, {
|
|
1961
2051
|
key: 0,
|
|
1962
|
-
items:
|
|
2052
|
+
items: Se.value,
|
|
1963
2053
|
"active-item-id": s.activeItemId,
|
|
1964
|
-
"force-open": !!
|
|
2054
|
+
"force-open": !!G.value.trim(),
|
|
1965
2055
|
"show-section-dividers": "",
|
|
1966
|
-
onSelect:
|
|
2056
|
+
onSelect: $
|
|
1967
2057
|
}, null, 8, [
|
|
1968
2058
|
"items",
|
|
1969
2059
|
"active-item-id",
|
|
1970
2060
|
"force-open"
|
|
1971
|
-
])) : (_(), a("div",
|
|
1972
|
-
b(n.$slots, "drawer-after-menu", { close:
|
|
2061
|
+
])) : (_(), a("div", _n, "Nenhum menu encontrado."))])]),
|
|
2062
|
+
b(n.$slots, "drawer-after-menu", { close: c })
|
|
1973
2063
|
]),
|
|
1974
|
-
|
|
2064
|
+
Pe.value || n.$slots["drawer-footer"] ? (_(), a("footer", vn, [Pe.value ? b(n.$slots, "drawer-user", {
|
|
1975
2065
|
user: s.user,
|
|
1976
|
-
open:
|
|
1977
|
-
toggle: () =>
|
|
2066
|
+
open: V.value,
|
|
2067
|
+
toggle: () => V.value = !V.value
|
|
1978
2068
|
}, () => [o("button", {
|
|
1979
2069
|
class: "top-nav-bar__drawer-user",
|
|
1980
2070
|
type: "button",
|
|
1981
|
-
"aria-
|
|
1982
|
-
|
|
2071
|
+
"aria-haspopup": X.value ? "menu" : void 0,
|
|
2072
|
+
"aria-expanded": X.value ? V.value : void 0,
|
|
2073
|
+
onClick: Mn
|
|
1983
2074
|
}, [
|
|
1984
2075
|
s.user?.avatarUrl ? (_(), a("img", {
|
|
1985
2076
|
key: 0,
|
|
1986
2077
|
src: s.user.avatarUrl,
|
|
1987
2078
|
alt: "",
|
|
1988
2079
|
class: "top-nav-bar__user-avatar"
|
|
1989
|
-
}, null, 8,
|
|
1990
|
-
s.user ? (_(), a("span",
|
|
1991
|
-
X.value ? (_(), a("i",
|
|
1992
|
-
|
|
1993
|
-
class: m(["pi pi-chevron-down top-nav-bar__mobile-chevron", { "top-nav-bar__mobile-chevron--open": R.value }]),
|
|
1994
|
-
"aria-hidden": "true"
|
|
1995
|
-
}, null, 2)) : i("", !0)
|
|
1996
|
-
], 8, cn), l(t, { name: "top-nav-bar-menu-expand" }, {
|
|
1997
|
-
default: O(() => [X.value && R.value ? (_(), a("div", mn, [(_(!0), a(e, null, y(Ce.value, (t) => (_(), a(e, { key: `drawer-user-${t.id}` }, [t.separator ? (_(), a("div", hn)) : (_(), a("button", {
|
|
1998
|
-
key: 1,
|
|
1999
|
-
class: "top-nav-bar__drawer-user-action",
|
|
2000
|
-
type: "button",
|
|
2001
|
-
disabled: t.disabled,
|
|
2002
|
-
onClick: (e) => je(t, !0)
|
|
2003
|
-
}, [t.icon ? (_(), a("i", {
|
|
2004
|
-
key: 0,
|
|
2005
|
-
class: m(t.icon),
|
|
2006
|
-
"aria-hidden": "true"
|
|
2007
|
-
}, null, 2)) : i("", !0), o("span", null, C(t.label), 1)], 8, gn))], 64))), 128))])) : i("", !0)]),
|
|
2008
|
-
_: 1
|
|
2009
|
-
})], void 0, 0) : i("", !0), b(n.$slots, "drawer-footer", { close: u })])) : i("", !0)
|
|
2080
|
+
}, null, 8, bn)) : (_(), a("span", xn, C(ze.value), 1)),
|
|
2081
|
+
s.user ? (_(), a("span", Sn, [o("span", Cn, C(s.user.name), 1), s.user.subtitle ? (_(), a("span", wn, C(s.user.subtitle), 1)) : i("", !0)])) : i("", !0),
|
|
2082
|
+
X.value ? (_(), a("i", Tn)) : i("", !0)
|
|
2083
|
+
], 8, yn)], void 0, 0) : i("", !0), b(n.$slots, "drawer-footer", { close: c })])) : i("", !0)
|
|
2010
2084
|
])]),
|
|
2011
2085
|
_: 3
|
|
2012
|
-
}, 8, ["visible", "style"])
|
|
2086
|
+
}, 8, ["visible", "style"]),
|
|
2087
|
+
l(w(ie), {
|
|
2088
|
+
ref_key: "drawerUserMenuRef",
|
|
2089
|
+
ref: ae,
|
|
2090
|
+
class: "top-nav-bar__drawer-user-popup",
|
|
2091
|
+
model: Be.value,
|
|
2092
|
+
popup: !0,
|
|
2093
|
+
"append-to": "body",
|
|
2094
|
+
"base-z-index": 10001,
|
|
2095
|
+
onShow: u[17] ||= (e) => V.value = !0,
|
|
2096
|
+
onHide: u[18] ||= (e) => V.value = !1
|
|
2097
|
+
}, null, 8, ["model"])
|
|
2013
2098
|
], 4));
|
|
2014
2099
|
}
|
|
2015
|
-
}),
|
|
2100
|
+
}), kn = { class: "top-field-icon pointer-events-none absolute left-3 top-1/2 z-10 -translate-y-1/2" }, Q = {
|
|
2016
2101
|
key: 0,
|
|
2017
2102
|
class: "pi pi-spin pi-spinner"
|
|
2018
|
-
},
|
|
2103
|
+
}, $ = {
|
|
2019
2104
|
key: 1,
|
|
2020
2105
|
class: "pi pi-search"
|
|
2021
|
-
},
|
|
2106
|
+
}, An = {
|
|
2022
2107
|
key: 1,
|
|
2023
2108
|
class: "flex items-center gap-1 !text-sm"
|
|
2024
|
-
},
|
|
2109
|
+
}, jn = { class: "flex items-center gap-2 rounded-[9px] bg-primary-500 px-2 py-1 text-white" }, Mn = ["onClick"], Nn = { class: "line-clamp-1 max-w-[300px] overflow-hidden text-ellipsis" }, Pn = {
|
|
2025
2110
|
key: 1,
|
|
2026
2111
|
class: "flex min-h-[100px] flex-col items-center justify-center gap-2 py-2"
|
|
2027
|
-
},
|
|
2112
|
+
}, Fn = {
|
|
2028
2113
|
key: 0,
|
|
2029
2114
|
class: "text-xs font-medium text-primary-600"
|
|
2030
|
-
},
|
|
2115
|
+
}, In = {
|
|
2031
2116
|
key: 2,
|
|
2032
2117
|
class: "text-xs text-secondary-500"
|
|
2033
|
-
},
|
|
2118
|
+
}, Ln = { key: 1 }, Rn = {
|
|
2034
2119
|
key: 1,
|
|
2035
2120
|
class: "flex items-center gap-2 font-semibold"
|
|
2036
|
-
},
|
|
2121
|
+
}, zn = {
|
|
2037
2122
|
key: 1,
|
|
2038
2123
|
class: "flex w-full min-w-0 items-start gap-2 overflow-hidden px-2 py-3 text-sm",
|
|
2039
2124
|
style: { "white-space": "normal" }
|
|
2040
|
-
},
|
|
2125
|
+
}, Bn = ["title"], Vn = {
|
|
2041
2126
|
key: 0,
|
|
2042
2127
|
class: "top-select-option-prefix whitespace-nowrap font-bold text-primary-800 dark:text-primary-100"
|
|
2043
|
-
},
|
|
2128
|
+
}, Hn = {
|
|
2044
2129
|
key: 0,
|
|
2045
2130
|
class: "rounded-sm bg-primary-200 p-0 font-bold text-black dark:bg-cyan-700 dark:text-white"
|
|
2046
|
-
},
|
|
2131
|
+
}, Un = {
|
|
2047
2132
|
key: 0,
|
|
2048
2133
|
class: "rounded-sm bg-primary-200 p-0 font-bold text-black dark:bg-cyan-700 dark:text-white"
|
|
2049
|
-
},
|
|
2134
|
+
}, Wn = /* @__PURE__ */ u({
|
|
2050
2135
|
__name: "TopSelect",
|
|
2051
2136
|
props: {
|
|
2052
2137
|
modelValue: { default: null },
|
|
@@ -2115,7 +2200,7 @@ var be = /* @__PURE__ */ _e(ge, [["render", ye], ["__file", "/Users/mahmudulhasa
|
|
|
2115
2200
|
"change"
|
|
2116
2201
|
],
|
|
2117
2202
|
setup(t, { expose: r, emit: u }) {
|
|
2118
|
-
let g = t, x = u, S =
|
|
2203
|
+
let g = t, x = u, S = D(), T = R, E = v(""), A = v(!1), j = v(null), N = `top-select-${Math.random().toString(36).slice(2)}`, P = null, F = n({
|
|
2119
2204
|
get: () => g.modelValue,
|
|
2120
2205
|
set: (e) => x("update:modelValue", e)
|
|
2121
2206
|
});
|
|
@@ -2128,12 +2213,12 @@ var be = /* @__PURE__ */ _e(ge, [["render", ye], ["__file", "/Users/mahmudulhasa
|
|
|
2128
2213
|
function re(e) {
|
|
2129
2214
|
return g.optionPrefix ? I(e, g.optionPrefix) : "";
|
|
2130
2215
|
}
|
|
2131
|
-
function
|
|
2216
|
+
function ie(e, t = g.showSelectedPrefix) {
|
|
2132
2217
|
let n = L(e), r = re(e);
|
|
2133
2218
|
return t && r ? `${r} - ${n}` : n;
|
|
2134
2219
|
}
|
|
2135
|
-
function
|
|
2136
|
-
let t =
|
|
2220
|
+
function z(e) {
|
|
2221
|
+
let t = E.value;
|
|
2137
2222
|
if (!t) return [{
|
|
2138
2223
|
text: e,
|
|
2139
2224
|
highlighted: !1
|
|
@@ -2144,37 +2229,37 @@ var be = /* @__PURE__ */ _e(ge, [["render", ye], ["__file", "/Users/mahmudulhasa
|
|
|
2144
2229
|
highlighted: e.toLowerCase() === t.toLowerCase()
|
|
2145
2230
|
}));
|
|
2146
2231
|
}
|
|
2147
|
-
function
|
|
2232
|
+
function B() {
|
|
2148
2233
|
j.value?.hide?.();
|
|
2149
2234
|
}
|
|
2150
|
-
function
|
|
2235
|
+
function V() {
|
|
2151
2236
|
typeof window > "u" || window.dispatchEvent(new CustomEvent("top-select:close-others", { detail: { instanceId: N } }));
|
|
2152
2237
|
}
|
|
2153
|
-
function
|
|
2154
|
-
e.detail?.instanceId !== N &&
|
|
2238
|
+
function ae(e) {
|
|
2239
|
+
e.detail?.instanceId !== N && B();
|
|
2155
2240
|
}
|
|
2156
|
-
function
|
|
2241
|
+
function H() {
|
|
2157
2242
|
if (g.disabled || P) {
|
|
2158
|
-
|
|
2243
|
+
B();
|
|
2159
2244
|
return;
|
|
2160
2245
|
}
|
|
2161
|
-
A.value = !0,
|
|
2246
|
+
A.value = !0, V();
|
|
2162
2247
|
}
|
|
2163
|
-
function
|
|
2164
|
-
g.closeOnSelect && (A.value = !1,
|
|
2165
|
-
|
|
2248
|
+
function U() {
|
|
2249
|
+
g.closeOnSelect && (A.value = !1, B(), p(B), P && clearTimeout(P), P = setTimeout(() => {
|
|
2250
|
+
B(), P = null;
|
|
2166
2251
|
}, 200));
|
|
2167
2252
|
}
|
|
2168
|
-
return r({ hideDropdown:
|
|
2169
|
-
window.removeEventListener("top-select:close-others",
|
|
2170
|
-
}),
|
|
2171
|
-
e && (A.value = !1,
|
|
2172
|
-
}),
|
|
2173
|
-
A.value ||
|
|
2253
|
+
return r({ hideDropdown: B }), te(() => window.addEventListener("top-select:close-others", ae)), ee(() => {
|
|
2254
|
+
window.removeEventListener("top-select:close-others", ae), P && clearTimeout(P);
|
|
2255
|
+
}), O(() => g.disabled, (e) => {
|
|
2256
|
+
e && (A.value = !1, B());
|
|
2257
|
+
}), O(() => g.options, () => {
|
|
2258
|
+
A.value || B();
|
|
2174
2259
|
}), (n, r) => (_(), a("div", {
|
|
2175
2260
|
class: m(["top-select top-solutions-component relative w-full", { "pointer-events-none": t.disabled }]),
|
|
2176
|
-
onFocusin:
|
|
2177
|
-
}, [o("span",
|
|
2261
|
+
onFocusin: H
|
|
2262
|
+
}, [o("span", kn, [b(n.$slots, "icon", { loading: t.loading }, () => [t.loading ? (_(), a("i", Q)) : (_(), a("i", $))])]), l(w(T), {
|
|
2178
2263
|
ref_key: "autocompleteRef",
|
|
2179
2264
|
ref: j,
|
|
2180
2265
|
modelValue: F.value,
|
|
@@ -2183,7 +2268,7 @@ var be = /* @__PURE__ */ _e(ge, [["render", ye], ["__file", "/Users/mahmudulhasa
|
|
|
2183
2268
|
"option-group-children": t.optionGroupChildren ?? void 0,
|
|
2184
2269
|
suggestions: t.options,
|
|
2185
2270
|
"data-key": t.optionKey,
|
|
2186
|
-
"option-label": (e) =>
|
|
2271
|
+
"option-label": (e) => ie(e),
|
|
2187
2272
|
placeholder: t.placeholder,
|
|
2188
2273
|
multiple: t.multiple,
|
|
2189
2274
|
"min-length": t.minQueryLength,
|
|
@@ -2227,46 +2312,46 @@ var be = /* @__PURE__ */ _e(ge, [["render", ye], ["__file", "/Users/mahmudulhasa
|
|
|
2227
2312
|
},
|
|
2228
2313
|
"search-message": " ",
|
|
2229
2314
|
onClear: r[1] ||= (e) => {
|
|
2230
|
-
|
|
2315
|
+
E.value = "", x("clear");
|
|
2231
2316
|
},
|
|
2232
2317
|
onItemSelect: r[2] ||= (e) => {
|
|
2233
|
-
|
|
2318
|
+
E.value = "", x("select", e), U();
|
|
2234
2319
|
},
|
|
2235
2320
|
onComplete: r[3] ||= (e) => {
|
|
2236
2321
|
if (t.disabled) {
|
|
2237
|
-
|
|
2322
|
+
B();
|
|
2238
2323
|
return;
|
|
2239
2324
|
}
|
|
2240
|
-
|
|
2325
|
+
E.value = e.query ?? "", V(), x("search", {
|
|
2241
2326
|
...e,
|
|
2242
|
-
query:
|
|
2327
|
+
query: E.value
|
|
2243
2328
|
});
|
|
2244
2329
|
},
|
|
2245
2330
|
onChange: r[4] ||= (e) => x("change", e)
|
|
2246
2331
|
}, s({
|
|
2247
|
-
chip:
|
|
2332
|
+
chip: k((e) => [w(S).chip ? b(n.$slots, "chip", h(d(e)), void 0, void 0, 0) : (_(), a("div", An, [o("div", jn, [o("i", {
|
|
2248
2333
|
class: "pi pi-times-circle shrink-0 cursor-pointer rounded-full hover:bg-primary-800",
|
|
2249
2334
|
onClick: (t) => e.removeCallback(t)
|
|
2250
|
-
}, null, 8,
|
|
2335
|
+
}, null, 8, Mn), ne((_(), a("span", Nn, [c(C(ie(e.value)), 1)])), [[
|
|
2251
2336
|
w(M),
|
|
2252
|
-
|
|
2337
|
+
ie(e.value),
|
|
2253
2338
|
void 0,
|
|
2254
2339
|
{ top: !0 }
|
|
2255
2340
|
]])])]))]),
|
|
2256
|
-
empty:
|
|
2257
|
-
"selected-item":
|
|
2258
|
-
optiongroup:
|
|
2341
|
+
empty: k(() => [w(S).empty ? b(n.$slots, "empty", {}, void 0, void 0, 0) : t.loading ? (_(), a("div", Pn, [r[5] ||= o("span", { class: "pi pi-spin pi-spinner text-2xl text-primary-600" }, null, -1), t.showLoadingMessage ? (_(), a("span", Fn, C(t.loadingMessage), 1)) : i("", !0)])) : (_(), a("span", In, C(t.emptyMessage), 1))]),
|
|
2342
|
+
"selected-item": k((e) => [w(S)["selected-item"] ? b(n.$slots, "selected-item", h(d(e)), void 0, void 0, 0) : e.item ? (_(), a("span", Ln, C(ie(e.item)), 1)) : i("", !0)]),
|
|
2343
|
+
optiongroup: k((e) => [w(S)["option-group"] ? b(n.$slots, "option-group", h(d(e)), void 0, void 0, 0) : (_(), a("div", Rn, [e.option.icon ? (_(), a("i", {
|
|
2259
2344
|
key: 0,
|
|
2260
2345
|
class: m(e.option.icon)
|
|
2261
2346
|
}, null, 2)) : i("", !0), o("span", null, C(e.option[t.optionGroupLabel ?? "label"]), 1)]))]),
|
|
2262
|
-
option:
|
|
2347
|
+
option: k((s) => [w(S).option ? b(n.$slots, "option", f(s, {
|
|
2263
2348
|
label: L(s.option),
|
|
2264
2349
|
prefix: re(s.option),
|
|
2265
|
-
query:
|
|
2266
|
-
}), void 0, void 0, 0) :
|
|
2350
|
+
query: E.value
|
|
2351
|
+
}), void 0, void 0, 0) : ne((_(), a("div", zn, [o("span", {
|
|
2267
2352
|
class: "top-select-option-label line-clamp-2 min-w-0 flex-1 text-secondary-700 dark:text-zinc-200",
|
|
2268
2353
|
title: L(s.option)
|
|
2269
|
-
}, [t.showOptionPrefix && re(s.option) ? (_(), a("span",
|
|
2354
|
+
}, [t.showOptionPrefix && re(s.option) ? (_(), a("span", Vn, [(_(!0), a(e, null, y(z(re(s.option)), (t, n) => (_(), a(e, { key: n }, [t.highlighted ? (_(), a("mark", Hn, C(t.text), 1)) : (_(), a(e, { key: 1 }, [c(C(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), (_(!0), a(e, null, y(z(L(s.option)), (t, n) => (_(), a(e, { key: n }, [t.highlighted ? (_(), a("mark", Un, C(t.text), 1)) : (_(), a(e, { key: 1 }, [c(C(t.text), 1)], 64))], 64))), 128))], 8, Bn)])), [[
|
|
2270
2355
|
w(M),
|
|
2271
2356
|
t.showTooltip ? L(s.option) : null,
|
|
2272
2357
|
void 0,
|
|
@@ -2275,7 +2360,7 @@ var be = /* @__PURE__ */ _e(ge, [["render", ye], ["__file", "/Users/mahmudulhasa
|
|
|
2275
2360
|
_: 2
|
|
2276
2361
|
}, [w(S).footer ? {
|
|
2277
2362
|
name: "footer",
|
|
2278
|
-
fn:
|
|
2363
|
+
fn: k((e) => [b(n.$slots, "footer", h(d(e)))]),
|
|
2279
2364
|
key: "0"
|
|
2280
2365
|
} : void 0]), 1032, [
|
|
2281
2366
|
"modelValue",
|
|
@@ -2295,7 +2380,7 @@ var be = /* @__PURE__ */ _e(ge, [["render", ye], ["__file", "/Users/mahmudulhasa
|
|
|
2295
2380
|
"pt"
|
|
2296
2381
|
])], 34));
|
|
2297
2382
|
}
|
|
2298
|
-
}),
|
|
2383
|
+
}), Gn = /* @__PURE__ */ u({
|
|
2299
2384
|
inheritAttrs: !1,
|
|
2300
2385
|
__name: "TopTabs",
|
|
2301
2386
|
props: {
|
|
@@ -2316,29 +2401,29 @@ var be = /* @__PURE__ */ _e(ge, [["render", ye], ["__file", "/Users/mahmudulhasa
|
|
|
2316
2401
|
function o(e) {
|
|
2317
2402
|
return String(e.value);
|
|
2318
2403
|
}
|
|
2319
|
-
return (n, s) => (_(), r(w(
|
|
2404
|
+
return (n, s) => (_(), r(w(H), f(n.$attrs, {
|
|
2320
2405
|
class: "top-tabs top-solutions-component w-full min-w-0",
|
|
2321
2406
|
value: t.modelValue,
|
|
2322
2407
|
lazy: t.lazy,
|
|
2323
2408
|
scrollable: t.scrollable,
|
|
2324
2409
|
"onUpdate:value": s[0] ||= (e) => i("update:modelValue", e)
|
|
2325
2410
|
}), {
|
|
2326
|
-
default:
|
|
2327
|
-
default:
|
|
2411
|
+
default: k(() => [l(w(B), null, {
|
|
2412
|
+
default: k(() => [(_(!0), a(e, null, y(t.tabs, (e) => (_(), r(w(z), {
|
|
2328
2413
|
key: e.value,
|
|
2329
2414
|
value: e.value,
|
|
2330
2415
|
disabled: e.disabled
|
|
2331
2416
|
}, {
|
|
2332
|
-
default:
|
|
2417
|
+
default: k(() => [c(C(e.label), 1)]),
|
|
2333
2418
|
_: 2
|
|
2334
2419
|
}, 1032, ["value", "disabled"]))), 128))]),
|
|
2335
2420
|
_: 1
|
|
2336
|
-
}), l(w(
|
|
2337
|
-
default:
|
|
2421
|
+
}), l(w(ae), null, {
|
|
2422
|
+
default: k(() => [(_(!0), a(e, null, y(t.tabs, (e) => (_(), r(w(V), {
|
|
2338
2423
|
key: e.value,
|
|
2339
2424
|
value: e.value
|
|
2340
2425
|
}, {
|
|
2341
|
-
default:
|
|
2426
|
+
default: k(() => [b(n.$slots, o(e), {
|
|
2342
2427
|
tab: e,
|
|
2343
2428
|
active: t.modelValue === e.value
|
|
2344
2429
|
})]),
|
|
@@ -2353,10 +2438,10 @@ var be = /* @__PURE__ */ _e(ge, [["render", ye], ["__file", "/Users/mahmudulhasa
|
|
|
2353
2438
|
"scrollable"
|
|
2354
2439
|
]));
|
|
2355
2440
|
}
|
|
2356
|
-
}),
|
|
2441
|
+
}), Kn = { class: "top-toast__content" }, qn = { class: "top-toast__detail" }, Jn = ["onClick"], Yn = {
|
|
2357
2442
|
key: 0,
|
|
2358
2443
|
class: "top-toast__footer"
|
|
2359
|
-
},
|
|
2444
|
+
}, Xn = /* @__PURE__ */ u({
|
|
2360
2445
|
__name: "TopToast",
|
|
2361
2446
|
props: { baseZIndex: { default: 3e4 } },
|
|
2362
2447
|
setup(e) {
|
|
@@ -2378,13 +2463,13 @@ var be = /* @__PURE__ */ _e(ge, [["render", ye], ["__file", "/Users/mahmudulhasa
|
|
|
2378
2463
|
function d(e, t) {
|
|
2379
2464
|
return `top-toast__${t}--${e.severity ?? "info"}`;
|
|
2380
2465
|
}
|
|
2381
|
-
return (f, p) => (_(), r(w(
|
|
2466
|
+
return (f, p) => (_(), r(w(U), {
|
|
2382
2467
|
position: "top-right",
|
|
2383
2468
|
"base-z-index": e.baseZIndex
|
|
2384
2469
|
}, {
|
|
2385
|
-
message:
|
|
2470
|
+
message: k((e) => [o("div", Kn, [
|
|
2386
2471
|
o("div", { class: m(["top-toast__summary", d(e.message, "summary")]) }, C(e.message.summary), 3),
|
|
2387
|
-
o("div",
|
|
2472
|
+
o("div", qn, C(e.message.detail), 1),
|
|
2388
2473
|
u(e.message) ? b(f.$slots, "action", {
|
|
2389
2474
|
action: n(e.message),
|
|
2390
2475
|
message: e.message,
|
|
@@ -2398,17 +2483,17 @@ var be = /* @__PURE__ */ _e(ge, [["render", ye], ["__file", "/Users/mahmudulhasa
|
|
|
2398
2483
|
key: 0,
|
|
2399
2484
|
class: m(n(e.message)?.icon),
|
|
2400
2485
|
"aria-hidden": "true"
|
|
2401
|
-
}, null, 2)) : i("", !0), c(" " + C(n(e.message)?.label), 1)], 10,
|
|
2486
|
+
}, null, 2)) : i("", !0), c(" " + C(n(e.message)?.label), 1)], 10, Jn)) : i("", !0)], void 0, 0) : i("", !0),
|
|
2402
2487
|
l(e.message) ? b(f.$slots, "footer", {
|
|
2403
2488
|
message: e.message,
|
|
2404
2489
|
footer: t(e.message)
|
|
2405
|
-
}, () => [t(e.message) === void 0 ? i("", !0) : (_(), a("div",
|
|
2490
|
+
}, () => [t(e.message) === void 0 ? i("", !0) : (_(), a("div", Yn, C(t(e.message)), 1))], void 0, 1) : i("", !0)
|
|
2406
2491
|
])]),
|
|
2407
2492
|
_: 3
|
|
2408
2493
|
}, 8, ["base-z-index"]));
|
|
2409
2494
|
}
|
|
2410
2495
|
});
|
|
2411
2496
|
//#endregion
|
|
2412
|
-
export {
|
|
2497
|
+
export { ze as a, le as c, On as i, se as l, Gn as n, Fe as o, Wn as r, me as s, Xn as t, oe as u };
|
|
2413
2498
|
|
|
2414
|
-
//# sourceMappingURL=TopToast-
|
|
2499
|
+
//# sourceMappingURL=TopToast-ZB64v4w6.js.map
|