@topjoao/top-design-system 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +105 -6
- package/dist/{TopToast-BFY94BWZ.js → TopToast-BI4cWWtd.js} +1174 -684
- package/dist/TopToast-BI4cWWtd.js.map +1 -0
- package/dist/TopToast-tPhTQRza.cjs +2 -0
- package/dist/TopToast-tPhTQRza.cjs.map +1 -0
- package/dist/components/TopAccordion.vue.d.ts +48 -0
- package/dist/components/TopAccordionNavigator.vue.d.ts +35 -0
- package/dist/components/TopAccordionPanel.vue.d.ts +42 -0
- package/dist/components/TopAccordionSummary.vue.d.ts +23 -0
- package/dist/components/TopInputNumber.vue.d.ts +89 -0
- package/dist/components/TopNavBar.vue.d.ts +1 -0
- package/dist/components/internal/topAccordion.d.ts +14 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +8 -0
- package/dist/index.js +10 -10
- package/dist/nuxt.cjs +1 -1
- package/dist/nuxt.cjs.map +1 -1
- package/dist/nuxt.js +20 -0
- package/dist/nuxt.js.map +1 -1
- package/dist/plugin.cjs +1 -1
- package/dist/plugin.cjs.map +1 -1
- package/dist/plugin.d.ts +10 -0
- package/dist/plugin.js +4 -4
- package/dist/plugin.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/TopToast-BFY94BWZ.js.map +0 -1
- package/dist/TopToast-CC6iBs5S.cjs +0 -2
- package/dist/TopToast-CC6iBs5S.cjs.map +0 -1
|
@@ -1,22 +1,27 @@
|
|
|
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,
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { twMerge as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
1
|
+
import { Fragment as e, Transition as t, computed as n, createBlock as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, createSlots as s, createTextVNode as c, createVNode as l, defineComponent as u, guardReactiveProps as d, inject as f, mergeProps as p, nextTick as m, normalizeClass as h, normalizeProps as g, normalizeStyle as _, onBeforeUnmount as v, onMounted as y, openBlock as b, provide as x, ref as S, renderList as C, renderSlot as w, resolveComponent as T, resolveDynamicComponent as E, toDisplayString as D, unref as O, useAttrs as k, useId as ee, useSlots as te, watch as A, withCtx as j, withDirectives as M, withModifiers as N } from "vue";
|
|
2
|
+
import P from "primevue/button";
|
|
3
|
+
import F from "primevue/tooltip";
|
|
4
|
+
import { twMerge as I } from "tailwind-merge";
|
|
5
|
+
import L from "primevue/dialog";
|
|
6
|
+
import R from "primevue/datepicker";
|
|
7
|
+
import z from "primevue/fileupload";
|
|
8
|
+
import B from "primevue/inputtext";
|
|
9
|
+
import V from "primevue/inputnumber";
|
|
10
|
+
import H from "primevue/drawer";
|
|
11
|
+
import ne from "primevue/menu";
|
|
12
|
+
import U from "primevue/autocomplete";
|
|
13
|
+
import re from "primevue/tab";
|
|
14
|
+
import W from "primevue/tablist";
|
|
15
|
+
import ie from "primevue/tabpanel";
|
|
16
|
+
import G from "primevue/tabpanels";
|
|
17
|
+
import ae from "primevue/tabs";
|
|
18
|
+
import oe from "primevue/accordion";
|
|
19
|
+
import K from "primevue/accordioncontent";
|
|
20
|
+
import q from "primevue/accordionheader";
|
|
21
|
+
import se from "primevue/accordionpanel";
|
|
22
|
+
import ce from "primevue/toast";
|
|
18
23
|
//#region src/components/TopButton.vue?vue&type=script&setup=true&lang.ts
|
|
19
|
-
var
|
|
24
|
+
var J = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px] bg-transparent" }, le = /* @__PURE__ */ u({
|
|
20
25
|
__name: "TopButton",
|
|
21
26
|
props: {
|
|
22
27
|
tooltip: { default: "" },
|
|
@@ -49,11 +54,11 @@ var W = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px]
|
|
|
49
54
|
},
|
|
50
55
|
emits: ["click"],
|
|
51
56
|
setup(e, { emit: t }) {
|
|
52
|
-
let i =
|
|
57
|
+
let i = te(), o = n(() => !!i.icon), c = e, l = t, u = n(() => c.secondary ? "secondary" : c.severity), d = n(() => {
|
|
53
58
|
let e = c.unstyled ? "" : u.value === "secondary" ? "rounded-[10px] border px-3 py-2 font-bold dark:!border-zinc-500 dark:!bg-zinc-700 dark:!text-zinc-100 dark:hover:!bg-zinc-600" : c.outlined ? u.value === "primary" ? "shrink-0 rounded-[10px] border-primary-800 px-3 py-2 text-primary-800 hover:bg-primary-50 dark:border-primary-200 dark:bg-transparent dark:text-primary-100 dark:hover:bg-primary-900" : "shrink-0 rounded-[10px] border px-3 py-2 font-bold" : u.value === "primary" ? "rounded-[10px] !border-primary-900 bg-primary-900 px-3 py-2 font-bold text-white hover:!border-primary-800 hover:bg-primary-800 dark:!text-white" : "rounded-[10px] border px-3 py-2 font-bold";
|
|
54
|
-
return
|
|
59
|
+
return I(e, c.class);
|
|
55
60
|
});
|
|
56
|
-
return (t, n) => (
|
|
61
|
+
return (t, n) => (b(), a("span", J, [M((b(), r(O(P), {
|
|
57
62
|
type: e.type,
|
|
58
63
|
label: e.label,
|
|
59
64
|
disabled: e.disabled || e.loading,
|
|
@@ -61,12 +66,12 @@ var W = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px]
|
|
|
61
66
|
loading: e.loading,
|
|
62
67
|
outlined: e.outlined || u.value === "secondary",
|
|
63
68
|
severity: u.value === "primary" ? void 0 : u.value,
|
|
64
|
-
class:
|
|
69
|
+
class: h(d.value),
|
|
65
70
|
pt: { root: { class: d.value } },
|
|
66
71
|
onClick: n[0] ||= (e) => l("click")
|
|
67
72
|
}, s({ _: 2 }, [o.value ? {
|
|
68
73
|
name: "icon",
|
|
69
|
-
fn:
|
|
74
|
+
fn: j(() => [w(t.$slots, "icon")]),
|
|
70
75
|
key: "0"
|
|
71
76
|
} : void 0]), 1032, [
|
|
72
77
|
"type",
|
|
@@ -79,7 +84,7 @@ var W = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px]
|
|
|
79
84
|
"class",
|
|
80
85
|
"pt"
|
|
81
86
|
])), [[
|
|
82
|
-
|
|
87
|
+
O(F),
|
|
83
88
|
{
|
|
84
89
|
value: e.tooltip,
|
|
85
90
|
class: e.tooltipClass
|
|
@@ -88,7 +93,7 @@ var W = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px]
|
|
|
88
93
|
{ top: !0 }
|
|
89
94
|
]])]));
|
|
90
95
|
}
|
|
91
|
-
}),
|
|
96
|
+
}), ue = {
|
|
92
97
|
primary: {
|
|
93
98
|
50: "#EEF9FF",
|
|
94
99
|
100: "#DFF4FF",
|
|
@@ -154,7 +159,7 @@ var W = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px]
|
|
|
154
159
|
900: "#5D0803",
|
|
155
160
|
950: "#450501"
|
|
156
161
|
}
|
|
157
|
-
},
|
|
162
|
+
}, de = ["aria-label", "disabled"], fe = { class: "flex flex-col items-center gap-2 pt-2" }, pe = { class: "text-base font-bold text-secondary-900 dark:text-zinc-100" }, me = { class: "text-sm leading-5 text-secondary-700 dark:text-zinc-300" }, Y = { class: "mt-2 flex w-full items-center justify-center gap-3" }, he = /* @__PURE__ */ u({
|
|
158
163
|
__name: "TopConfirmDialog",
|
|
159
164
|
props: {
|
|
160
165
|
modelValue: {
|
|
@@ -186,8 +191,8 @@ var W = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px]
|
|
|
186
191
|
!e && i.loading || a("update:modelValue", e);
|
|
187
192
|
}
|
|
188
193
|
}), u = n(() => ({
|
|
189
|
-
"--top-confirm-dialog-accent": i.severity === "danger" ?
|
|
190
|
-
"--top-confirm-dialog-accent-hover": i.severity === "danger" ?
|
|
194
|
+
"--top-confirm-dialog-accent": i.severity === "danger" ? ue.danger[600] : ue.primary[800],
|
|
195
|
+
"--top-confirm-dialog-accent-hover": i.severity === "danger" ? ue.danger[700] : ue.primary[700]
|
|
191
196
|
})), d = n(() => ["px-3 py-2 text-sm", i.severity === "danger" ? "!border-red-600 !bg-red-600 hover:!border-red-700 hover:!bg-red-700" : ""].filter(Boolean).join(" "));
|
|
192
197
|
function f() {
|
|
193
198
|
i.loading || a("confirm");
|
|
@@ -195,10 +200,10 @@ var W = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px]
|
|
|
195
200
|
function p() {
|
|
196
201
|
i.loading || (a("cancel"), s.value = !1);
|
|
197
202
|
}
|
|
198
|
-
function
|
|
203
|
+
function m() {
|
|
199
204
|
i.loading || (s.value = !1);
|
|
200
205
|
}
|
|
201
|
-
return (t, n) => (
|
|
206
|
+
return (t, n) => (b(), r(O(L), {
|
|
202
207
|
visible: s.value,
|
|
203
208
|
"onUpdate:visible": n[0] ||= (e) => s.value = e,
|
|
204
209
|
modal: "",
|
|
@@ -219,35 +224,35 @@ var W = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px]
|
|
|
219
224
|
},
|
|
220
225
|
onHide: n[1] ||= (e) => a("close")
|
|
221
226
|
}, {
|
|
222
|
-
default:
|
|
227
|
+
default: j(() => [o("div", {
|
|
223
228
|
class: "relative flex flex-col items-center gap-4 text-center",
|
|
224
|
-
style:
|
|
229
|
+
style: _(u.value)
|
|
225
230
|
}, [
|
|
226
231
|
o("button", {
|
|
227
232
|
type: "button",
|
|
228
233
|
class: "absolute right-[-0.25rem] top-[-0.5rem] flex size-8 items-center justify-center rounded-full border-0 bg-transparent p-0 text-secondary-700 outline-none transition-colors hover:bg-secondary-200 focus-visible:ring-2 focus-visible:ring-primary-500 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 dark:text-zinc-200 dark:hover:bg-zinc-700",
|
|
229
234
|
"aria-label": e.cancelText,
|
|
230
235
|
disabled: e.loading,
|
|
231
|
-
onClick:
|
|
236
|
+
onClick: m
|
|
232
237
|
}, [...n[2] ||= [o("i", {
|
|
233
238
|
class: "pi pi-times text-lg",
|
|
234
239
|
"aria-hidden": "true"
|
|
235
|
-
}, null, -1)]], 8,
|
|
236
|
-
o("div",
|
|
237
|
-
class:
|
|
240
|
+
}, null, -1)]], 8, de),
|
|
241
|
+
o("div", fe, [o("i", {
|
|
242
|
+
class: h([e.icon, "top-confirm-dialog__icon text-[40px]"]),
|
|
238
243
|
"aria-hidden": "true"
|
|
239
|
-
}, null, 2), o("p",
|
|
240
|
-
o("div",
|
|
241
|
-
o("div",
|
|
244
|
+
}, null, 2), o("p", pe, D(e.title), 1)]),
|
|
245
|
+
o("div", me, [w(t.$slots, "message", {}, () => [w(t.$slots, "default", {}, () => [c(D(e.message), 1)])])]),
|
|
246
|
+
o("div", Y, [l(le, {
|
|
242
247
|
label: e.cancelText,
|
|
243
248
|
secondary: "",
|
|
244
249
|
disabled: e.loading,
|
|
245
250
|
class: "px-3 py-2 text-sm",
|
|
246
251
|
onClick: p
|
|
247
|
-
}, null, 8, ["label", "disabled"]), l(
|
|
252
|
+
}, null, 8, ["label", "disabled"]), l(le, {
|
|
248
253
|
label: e.loading ? e.loadingText : e.confirmText,
|
|
249
254
|
loading: e.loading,
|
|
250
|
-
class:
|
|
255
|
+
class: h(d.value),
|
|
251
256
|
onClick: f
|
|
252
257
|
}, null, 8, [
|
|
253
258
|
"label",
|
|
@@ -262,11 +267,11 @@ var W = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px]
|
|
|
262
267
|
"aria-label"
|
|
263
268
|
]));
|
|
264
269
|
}
|
|
265
|
-
}),
|
|
270
|
+
}), ge = { class: "top-date-picker top-solutions-component flex w-full flex-col gap-1" }, _e = ["for"], ve = {
|
|
266
271
|
key: 0,
|
|
267
272
|
"aria-hidden": "true",
|
|
268
273
|
class: "text-red-600 dark:text-red-400"
|
|
269
|
-
},
|
|
274
|
+
}, ye = ["id"], be = /* @__PURE__ */ u({
|
|
270
275
|
inheritAttrs: !1,
|
|
271
276
|
__name: "TopDatePicker",
|
|
272
277
|
props: {
|
|
@@ -325,29 +330,29 @@ var W = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px]
|
|
|
325
330
|
"keydown"
|
|
326
331
|
],
|
|
327
332
|
setup(e, { emit: t }) {
|
|
328
|
-
let r = e, o = t, u =
|
|
329
|
-
if (
|
|
333
|
+
let r = e, o = t, u = k(), f = te(), m = ee(), h = n(() => u.id === void 0 || u.id === null || u.id === "" ? m : String(u.id)), _ = n(() => `${h.value}-error`), v = n(() => r.invalid || !!r.error), y = n(() => r.manualInput && !r.readonly && !r.disabled && r.selectionMode === "single" && r.dateFormat === "dd/mm/yy"), x = n(() => {
|
|
334
|
+
if (v.value) return !0;
|
|
330
335
|
let e = u["aria-invalid"];
|
|
331
336
|
return typeof e == "boolean" || e === "true" || e === "false" || e === "grammar" || e === "spelling" ? e : void 0;
|
|
332
337
|
}), S = n(() => {
|
|
333
|
-
let e = u["aria-describedby"], t = [typeof e == "string" ? e : "", r.error ?
|
|
338
|
+
let e = u["aria-describedby"], t = [typeof e == "string" ? e : "", r.error ? _.value : ""].filter(Boolean);
|
|
334
339
|
return t.length ? t.join(" ") : void 0;
|
|
335
|
-
}),
|
|
340
|
+
}), T = n(() => {
|
|
336
341
|
let { id: e, "aria-describedby": t, "aria-invalid": n, ...r } = u;
|
|
337
342
|
return r;
|
|
338
|
-
}),
|
|
343
|
+
}), E = n(() => ({ pcInputText: { root: {
|
|
339
344
|
"aria-describedby": S.value,
|
|
340
345
|
"aria-invalid": x.value,
|
|
341
346
|
onChange: (e) => o("change", e),
|
|
342
|
-
inputmode:
|
|
343
|
-
maxlength:
|
|
347
|
+
inputmode: y.value ? "numeric" : void 0,
|
|
348
|
+
maxlength: y.value ? 10 : void 0
|
|
344
349
|
} } }));
|
|
345
350
|
function A(e) {
|
|
346
351
|
o("update:modelValue", e ?? null);
|
|
347
352
|
}
|
|
348
|
-
function
|
|
353
|
+
function M(e) {
|
|
349
354
|
let t = e.target;
|
|
350
|
-
if (
|
|
355
|
+
if (y.value && t instanceof HTMLInputElement && !e.isComposing) {
|
|
351
356
|
let e = t.value.replace(/\D/g, "").slice(0, 8);
|
|
352
357
|
t.value = [
|
|
353
358
|
e.slice(0, 2),
|
|
@@ -357,18 +362,18 @@ var W = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px]
|
|
|
357
362
|
}
|
|
358
363
|
o("input", e);
|
|
359
364
|
}
|
|
360
|
-
return (t, n) => (
|
|
361
|
-
e.label ? (
|
|
365
|
+
return (t, n) => (b(), a("div", ge, [
|
|
366
|
+
e.label ? (b(), a("label", {
|
|
362
367
|
key: 0,
|
|
363
|
-
for:
|
|
368
|
+
for: h.value,
|
|
364
369
|
class: "top-field-label text-xs font-bold"
|
|
365
|
-
}, [c(
|
|
366
|
-
l(
|
|
370
|
+
}, [c(D(e.label) + " ", 1), e.required ? (b(), a("span", ve, "*")) : i("", !0)], 8, _e)) : i("", !0),
|
|
371
|
+
l(O(R), p(T.value, {
|
|
367
372
|
"model-value": e.modelValue,
|
|
368
|
-
"input-id":
|
|
373
|
+
"input-id": h.value,
|
|
369
374
|
placeholder: e.placeholder,
|
|
370
375
|
required: e.required,
|
|
371
|
-
invalid:
|
|
376
|
+
invalid: v.value,
|
|
372
377
|
disabled: e.disabled,
|
|
373
378
|
readonly: e.readonly,
|
|
374
379
|
"selection-mode": e.selectionMode,
|
|
@@ -381,12 +386,12 @@ var W = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px]
|
|
|
381
386
|
"manual-input": e.manualInput,
|
|
382
387
|
"show-button-bar": e.showButtonBar,
|
|
383
388
|
"append-to": e.appendTo,
|
|
384
|
-
pt:
|
|
389
|
+
pt: E.value,
|
|
385
390
|
"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",
|
|
386
391
|
"panel-class": "top-date-picker-panel top-solutions-component",
|
|
387
392
|
fluid: "",
|
|
388
393
|
"onUpdate:modelValue": A,
|
|
389
|
-
onInput:
|
|
394
|
+
onInput: M,
|
|
390
395
|
onDateSelect: n[0] ||= (e) => o("date-select", e),
|
|
391
396
|
onShow: n[1] ||= (e) => o("show"),
|
|
392
397
|
onHide: n[2] ||= (e) => o("hide"),
|
|
@@ -397,9 +402,9 @@ var W = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px]
|
|
|
397
402
|
onFocus: n[7] ||= (e) => o("focus", e),
|
|
398
403
|
onBlur: n[8] ||= (e) => o("blur", e),
|
|
399
404
|
onKeydown: n[9] ||= (e) => o("keydown", e)
|
|
400
|
-
}), s({ _: 2 }, [
|
|
405
|
+
}), s({ _: 2 }, [C(O(f), (e, n) => ({
|
|
401
406
|
name: n,
|
|
402
|
-
fn:
|
|
407
|
+
fn: j((e) => [w(t.$slots, n, g(d(e ?? {})))])
|
|
403
408
|
}))]), 1040, [
|
|
404
409
|
"model-value",
|
|
405
410
|
"input-id",
|
|
@@ -419,15 +424,15 @@ var W = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px]
|
|
|
419
424
|
"append-to",
|
|
420
425
|
"pt"
|
|
421
426
|
]),
|
|
422
|
-
e.error ? (
|
|
427
|
+
e.error ? (b(), a("span", {
|
|
423
428
|
key: 1,
|
|
424
|
-
id:
|
|
429
|
+
id: _.value,
|
|
425
430
|
class: "text-[11px] text-red-600 dark:text-red-400",
|
|
426
431
|
role: "alert"
|
|
427
|
-
},
|
|
432
|
+
}, D(e.error), 9, ye)) : i("", !0)
|
|
428
433
|
]));
|
|
429
434
|
}
|
|
430
|
-
}),
|
|
435
|
+
}), xe = [["path", {
|
|
431
436
|
d: "M17.4776 9.01106C17.485 9.01102 17.4925 9.01101 17.5 9.01101C19.9853 9.01101 22 11.0294 22 13.5193C22 15.8398 20.25 17.7508 18 18M17.4776 9.01106C17.4924 8.84606 17.5 8.67896 17.5 8.51009C17.5 5.46695 15.0376 3 12 3C9.12324 3 6.76233 5.21267 6.52042 8.03192M17.4776 9.01106C17.3753 10.1476 16.9286 11.1846 16.2428 12.0165M6.52042 8.03192C3.98398 8.27373 2 10.4139 2 13.0183C2 15.4417 3.71776 17.4632 6 17.9273M6.52042 8.03192C6.67826 8.01687 6.83823 8.00917 7 8.00917C8.12582 8.00917 9.16474 8.38194 10.0005 9.01101",
|
|
432
437
|
stroke: "currentColor",
|
|
433
438
|
strokeLinecap: "round",
|
|
@@ -441,7 +446,7 @@ var W = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px]
|
|
|
441
446
|
strokeLinejoin: "round",
|
|
442
447
|
strokeWidth: "1.5",
|
|
443
448
|
key: "1"
|
|
444
|
-
}]],
|
|
449
|
+
}]], Se = [["path", {
|
|
445
450
|
d: "M12.8924 2.80982L21.4876 9.59547C21.8112 9.85095 22 10.2405 22 10.6528C22 11.3969 21.3969 12 20.6528 12H20V15.5C20 18.3284 20 19.7426 19.1213 20.6213C18.2426 21.5 16.8284 21.5 14 21.5H10C7.17157 21.5 5.75736 21.5 4.87868 20.6213C4 19.7426 4 18.3284 4 15.5V12H3.34716C2.60315 12 2 11.3969 2 10.6528C2 10.2405 2.1888 9.85095 2.5124 9.59547L11.1076 2.80982C11.3617 2.60915 11.6761 2.5 12 2.5C12.3239 2.5 12.6383 2.60915 12.8924 2.80982Z",
|
|
446
451
|
stroke: "currentColor",
|
|
447
452
|
strokeLinecap: "round",
|
|
@@ -455,7 +460,7 @@ var W = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px]
|
|
|
455
460
|
strokeLinejoin: "round",
|
|
456
461
|
strokeWidth: "1.5",
|
|
457
462
|
key: "1"
|
|
458
|
-
}]],
|
|
463
|
+
}]], Ce = u({
|
|
459
464
|
name: "HugeiconsIcon",
|
|
460
465
|
inheritAttrs: !1,
|
|
461
466
|
props: {
|
|
@@ -513,50 +518,50 @@ var W = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px]
|
|
|
513
518
|
currentIcon: n(() => e.altIcon && e.showAlt ? e.altIcon : e.icon)
|
|
514
519
|
};
|
|
515
520
|
}
|
|
516
|
-
}),
|
|
521
|
+
}), we = (e, t) => {
|
|
517
522
|
let n = e.__vccOpts || e;
|
|
518
523
|
for (let [e, r] of t) n[e] = r;
|
|
519
524
|
return n;
|
|
520
|
-
},
|
|
525
|
+
}, Te = [
|
|
521
526
|
"width",
|
|
522
527
|
"height",
|
|
523
528
|
"color"
|
|
524
529
|
];
|
|
525
|
-
function
|
|
526
|
-
return
|
|
530
|
+
function Ee(t, n, i, o, s, c) {
|
|
531
|
+
return b(), a("svg", p({
|
|
527
532
|
width: t.computedSize,
|
|
528
533
|
height: t.computedSize,
|
|
529
534
|
viewBox: "0 0 24 24",
|
|
530
535
|
xmlns: "http://www.w3.org/2000/svg",
|
|
531
536
|
fill: "none",
|
|
532
537
|
color: t.color
|
|
533
|
-
}, t.$attrs), [(
|
|
538
|
+
}, t.$attrs), [(b(!0), a(e, null, C(t.currentIcon, (e, n) => (b(), r(E(e[0]), p({
|
|
534
539
|
key: n,
|
|
535
540
|
ref_for: !0
|
|
536
|
-
}, t.transformAttrs(e[1], t.calculatedStrokeWidth)), null, 16))), 128))], 16,
|
|
541
|
+
}, t.transformAttrs(e[1], t.calculatedStrokeWidth)), null, 16))), 128))], 16, Te);
|
|
537
542
|
}
|
|
538
|
-
var
|
|
543
|
+
var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasan/Desktop/Projects/Hugeicons/hugeicons-monorepo/packages/vue/src/components/HugeiconsIcon.vue"]]), Oe = { class: "top-file-upload top-solutions-component flex w-full flex-col gap-1" }, ke = ["for"], Ae = {
|
|
539
544
|
key: 0,
|
|
540
545
|
"aria-hidden": "true",
|
|
541
546
|
class: "text-red-600 dark:text-red-400"
|
|
542
|
-
},
|
|
547
|
+
}, je = { class: "flex min-h-[130px] w-full flex-col items-center justify-center gap-3" }, Me = {
|
|
543
548
|
class: "top-file-upload__empty-icon",
|
|
544
549
|
"aria-hidden": "true"
|
|
545
|
-
},
|
|
550
|
+
}, Ne = {
|
|
546
551
|
key: 0,
|
|
547
552
|
"aria-label": "Carregando...",
|
|
548
553
|
class: "pi pi-spin pi-spinner text-5xl"
|
|
549
|
-
},
|
|
554
|
+
}, X = { class: "m-0 text-center text-xs text-secondary-600 dark:text-zinc-300" }, Pe = {
|
|
550
555
|
key: 1,
|
|
551
556
|
class: "flex w-full flex-col gap-2"
|
|
552
|
-
},
|
|
557
|
+
}, Fe = ["src", "alt"], Z = {
|
|
553
558
|
key: 1,
|
|
554
559
|
class: "flex size-12 shrink-0 items-center justify-center rounded-lg bg-primary-50 text-primary-800 dark:bg-primary-950 dark:text-primary-200"
|
|
555
|
-
},
|
|
560
|
+
}, Ie = { class: "min-w-0 flex-1" }, Le = { class: "m-0 truncate text-xs font-bold text-secondary-900 dark:text-zinc-100" }, Re = { class: "text-[11px] text-secondary-500 dark:text-zinc-400" }, ze = [
|
|
556
561
|
"aria-label",
|
|
557
562
|
"disabled",
|
|
558
563
|
"onClick"
|
|
559
|
-
],
|
|
564
|
+
], Be = ["id"], Ve = /* @__PURE__ */ u({
|
|
560
565
|
inheritAttrs: !1,
|
|
561
566
|
__name: "TopFileUpload",
|
|
562
567
|
props: {
|
|
@@ -595,40 +600,40 @@ var be = /* @__PURE__ */ _e(ge, [["render", ye], ["__file", "/Users/mahmudulhasa
|
|
|
595
600
|
"error"
|
|
596
601
|
],
|
|
597
602
|
setup(t, { expose: s, emit: u }) {
|
|
598
|
-
let d = t, f = u,
|
|
599
|
-
let e =
|
|
603
|
+
let d = t, f = u, p = k(), h = ee(), g = S(null), _ = S(I(d.modelValue)), x = S([]), T = /* @__PURE__ */ new Map(), E = n(() => p.id === void 0 || p.id === null || p.id === "" ? h : String(p.id)), te = n(() => `${E.value}-error`), M = n(() => d.error || x.value[0]?.message || ""), N = n(() => d.disabled || d.loading), P = n(() => {
|
|
604
|
+
let e = p["aria-describedby"], t = [typeof e == "string" ? e : "", M.value ? te.value : ""].filter(Boolean);
|
|
600
605
|
return t.length ? t.join(" ") : void 0;
|
|
601
|
-
}),
|
|
602
|
-
...
|
|
603
|
-
id:
|
|
606
|
+
}), F = n(() => ({
|
|
607
|
+
...p,
|
|
608
|
+
id: E.value,
|
|
604
609
|
required: d.required,
|
|
605
|
-
"aria-invalid":
|
|
606
|
-
"aria-describedby":
|
|
607
|
-
"aria-label":
|
|
610
|
+
"aria-invalid": M.value ? !0 : p["aria-invalid"],
|
|
611
|
+
"aria-describedby": P.value,
|
|
612
|
+
"aria-label": p["aria-label"] || (d.label ? void 0 : d.selectLabel)
|
|
608
613
|
}));
|
|
609
|
-
function
|
|
614
|
+
function I(e) {
|
|
610
615
|
return e ? Array.isArray(e) ? d.multiple ? [...e] : e.slice(0, 1) : [e] : [];
|
|
611
616
|
}
|
|
612
617
|
function L(e, t) {
|
|
613
618
|
return e.name === t.name && e.type === t.type && e.size === t.size;
|
|
614
619
|
}
|
|
615
|
-
function
|
|
620
|
+
function R(e) {
|
|
616
621
|
return !d.accept.trim() || d.accept.split(",").some((t) => {
|
|
617
622
|
let n = t.trim().toLowerCase(), r = e.type.toLowerCase();
|
|
618
623
|
return n ? n.startsWith(".") ? e.name.toLowerCase().endsWith(n) : n.endsWith("/*") ? r.startsWith(n.slice(0, -1)) : r === n : !1;
|
|
619
624
|
});
|
|
620
625
|
}
|
|
621
|
-
function
|
|
626
|
+
function B(e) {
|
|
622
627
|
return e < 1024 ? `${e} B` : e < 1048576 ? `${(e / 1024).toFixed(1)} KB` : `${(e / 1048576).toFixed(2)} MB`;
|
|
623
628
|
}
|
|
624
|
-
function
|
|
629
|
+
function V(e) {
|
|
625
630
|
let t = [];
|
|
626
631
|
return {
|
|
627
632
|
errors: t,
|
|
628
|
-
validFiles: e.filter((e) =>
|
|
633
|
+
validFiles: e.filter((e) => R(e) ? d.maxFileSize && e.size > d.maxFileSize ? (t.push({
|
|
629
634
|
code: "file-size",
|
|
630
635
|
file: e,
|
|
631
|
-
message: `O arquivo "${e.name}" excede o tamanho máximo de ${
|
|
636
|
+
message: `O arquivo "${e.name}" excede o tamanho máximo de ${B(d.maxFileSize)}.`
|
|
632
637
|
}), !1) : !0 : (t.push({
|
|
633
638
|
code: "file-type",
|
|
634
639
|
file: e,
|
|
@@ -636,23 +641,23 @@ var be = /* @__PURE__ */ _e(ge, [["render", ye], ["__file", "/Users/mahmudulhasa
|
|
|
636
641
|
}), !1))
|
|
637
642
|
};
|
|
638
643
|
}
|
|
639
|
-
function
|
|
644
|
+
function H(e) {
|
|
640
645
|
let t = e.originalEvent;
|
|
641
646
|
return Array.from(t.dataTransfer?.files ?? t.target?.files ?? []);
|
|
642
647
|
}
|
|
643
|
-
function
|
|
648
|
+
function ne(e) {
|
|
644
649
|
return d.multiple ? [...e] : e[0] ?? null;
|
|
645
650
|
}
|
|
646
|
-
function
|
|
647
|
-
g.value && (g.value.files = [...
|
|
651
|
+
function U() {
|
|
652
|
+
g.value && (g.value.files = [..._.value]);
|
|
648
653
|
}
|
|
649
|
-
function
|
|
650
|
-
|
|
651
|
-
let n =
|
|
654
|
+
function re(e, t) {
|
|
655
|
+
_.value = e, x.value = [], q(), m(U);
|
|
656
|
+
let n = ne(e);
|
|
652
657
|
f("update:modelValue", n), f("change", n), t === "select" && f("select", [...e]), t === "clear" && f("clear");
|
|
653
658
|
}
|
|
654
|
-
function
|
|
655
|
-
let { errors: t, validFiles: n } =
|
|
659
|
+
function W(e) {
|
|
660
|
+
let { errors: t, validFiles: n } = V(H(e)), r = d.multiple ? [..._.value, ...n.filter((e) => !_.value.some((t) => L(t, e)))] : n.slice(-1);
|
|
656
661
|
if (d.maxFiles && r.length > d.maxFiles) {
|
|
657
662
|
let e = r.slice(d.maxFiles);
|
|
658
663
|
t.push(...e.map((e) => ({
|
|
@@ -661,108 +666,108 @@ var be = /* @__PURE__ */ _e(ge, [["render", ye], ["__file", "/Users/mahmudulhasa
|
|
|
661
666
|
message: `O limite máximo é de ${d.maxFiles} arquivo(s).`
|
|
662
667
|
}))), r = r.slice(0, d.maxFiles);
|
|
663
668
|
}
|
|
664
|
-
if (t.length ? (
|
|
665
|
-
|
|
666
|
-
let e =
|
|
669
|
+
if (t.length ? (x.value = t, f("error", t)) : x.value = [], U(), n.length && !ie(r, _.value)) {
|
|
670
|
+
_.value = r, q(), m(U);
|
|
671
|
+
let e = ne(r);
|
|
667
672
|
f("update:modelValue", e), f("change", e), f("select", [...r]);
|
|
668
673
|
}
|
|
669
674
|
}
|
|
670
|
-
function
|
|
675
|
+
function ie(e, t) {
|
|
671
676
|
return e.length === t.length && e.every((e, n) => L(e, t[n]));
|
|
672
677
|
}
|
|
673
|
-
function
|
|
674
|
-
|
|
678
|
+
function G() {
|
|
679
|
+
N.value || g.value?.choose();
|
|
675
680
|
}
|
|
676
|
-
function
|
|
677
|
-
if (
|
|
678
|
-
let n =
|
|
681
|
+
function ae(e, t) {
|
|
682
|
+
if (N.value) return;
|
|
683
|
+
let n = _.value[t];
|
|
679
684
|
if (!n) return;
|
|
680
685
|
e(t);
|
|
681
|
-
let r =
|
|
682
|
-
|
|
686
|
+
let r = _.value.filter((e, n) => n !== t);
|
|
687
|
+
re(r, "remove"), f("remove", n, t), r.length || f("clear");
|
|
683
688
|
}
|
|
684
|
-
function
|
|
685
|
-
|
|
689
|
+
function oe() {
|
|
690
|
+
N.value || !_.value.length || re([], "clear");
|
|
686
691
|
}
|
|
687
692
|
function K(e) {
|
|
688
693
|
if (!e.type.startsWith("image/") || typeof URL.createObjectURL != "function") return "";
|
|
689
|
-
let t =
|
|
694
|
+
let t = T.get(e);
|
|
690
695
|
if (t) return t;
|
|
691
696
|
let n = URL.createObjectURL(e);
|
|
692
|
-
return
|
|
697
|
+
return T.set(e, n), n;
|
|
693
698
|
}
|
|
694
699
|
function q() {
|
|
695
|
-
for (let [e, t] of
|
|
696
|
-
}
|
|
697
|
-
return
|
|
698
|
-
let t =
|
|
699
|
-
|
|
700
|
-
}),
|
|
701
|
-
let e =
|
|
702
|
-
|
|
703
|
-
}),
|
|
704
|
-
for (let e of
|
|
705
|
-
|
|
700
|
+
for (let [e, t] of T) _.value.includes(e) || (URL.revokeObjectURL(t), T.delete(e));
|
|
701
|
+
}
|
|
702
|
+
return A(() => d.modelValue, (e) => {
|
|
703
|
+
let t = I(e);
|
|
704
|
+
ie(t, _.value) || (_.value = t, x.value = [], q(), m(U));
|
|
705
|
+
}), A(() => d.multiple, () => {
|
|
706
|
+
let e = I(d.modelValue);
|
|
707
|
+
_.value = e, q(), m(U);
|
|
708
|
+
}), y(U), v(() => {
|
|
709
|
+
for (let e of T.values()) URL.revokeObjectURL(e);
|
|
710
|
+
T.clear();
|
|
706
711
|
}), s({
|
|
707
|
-
choose:
|
|
708
|
-
clear:
|
|
709
|
-
}), (n, s) => (
|
|
710
|
-
t.label ? (
|
|
712
|
+
choose: G,
|
|
713
|
+
clear: oe
|
|
714
|
+
}), (n, s) => (b(), a("div", Oe, [
|
|
715
|
+
t.label ? (b(), a("label", {
|
|
711
716
|
key: 0,
|
|
712
|
-
for:
|
|
717
|
+
for: E.value,
|
|
713
718
|
class: "text-xs font-bold text-secondary-800 dark:text-zinc-200"
|
|
714
|
-
}, [c(
|
|
715
|
-
l(
|
|
719
|
+
}, [c(D(t.label) + " ", 1), t.required ? (b(), a("span", Ae, "*")) : i("", !0)], 8, ke)) : i("", !0),
|
|
720
|
+
l(O(z), {
|
|
716
721
|
ref_key: "fileUploadRef",
|
|
717
722
|
ref: g,
|
|
718
723
|
mode: "advanced",
|
|
719
724
|
accept: t.accept || void 0,
|
|
720
725
|
multiple: t.multiple,
|
|
721
|
-
disabled:
|
|
726
|
+
disabled: N.value,
|
|
722
727
|
"custom-upload": !0,
|
|
723
728
|
"show-upload-button": !1,
|
|
724
729
|
"show-cancel-button": !1,
|
|
725
730
|
pt: {
|
|
726
731
|
root: { class: "top-file-upload__root w-full" },
|
|
727
732
|
header: { class: "hidden" },
|
|
728
|
-
input:
|
|
733
|
+
input: F.value,
|
|
729
734
|
content: { class: [
|
|
730
735
|
"top-file-upload__dropzone min-h-[224px] rounded-[10px] border p-4 transition-colors",
|
|
731
|
-
|
|
732
|
-
|
|
736
|
+
M.value ? "border-red-600 bg-red-50 dark:border-red-400 dark:bg-red-950/20" : "border-secondary-300 bg-white hover:border-primary-600 hover:bg-primary-50 dark:border-zinc-600 dark:bg-zinc-800 dark:hover:border-primary-400 dark:hover:bg-zinc-700",
|
|
737
|
+
N.value ? "cursor-not-allowed opacity-60" : ""
|
|
733
738
|
].join(" ") }
|
|
734
739
|
},
|
|
735
|
-
onSelect:
|
|
740
|
+
onSelect: W
|
|
736
741
|
}, {
|
|
737
|
-
content:
|
|
742
|
+
content: j(({ removeFileCallback: c }) => [o("div", je, [_.value.length ? (b(), a("div", Pe, [(b(!0), a(e, null, C(_.value, (e, r) => (b(), a("div", {
|
|
738
743
|
key: `${e.name}-${e.size}-${e.lastModified}`,
|
|
739
744
|
class: "flex min-w-0 items-center gap-3 rounded-[10px] border border-secondary-300 bg-white p-3 dark:border-zinc-600 dark:bg-zinc-900"
|
|
740
745
|
}, [
|
|
741
|
-
|
|
746
|
+
w(n.$slots, "preview", {
|
|
742
747
|
file: e,
|
|
743
748
|
index: r,
|
|
744
749
|
url: K(e)
|
|
745
|
-
}, () => [K(e) ? (
|
|
750
|
+
}, () => [K(e) ? (b(), a("img", {
|
|
746
751
|
key: 0,
|
|
747
752
|
src: K(e),
|
|
748
753
|
alt: `Pré-visualização de ${e.name}`,
|
|
749
754
|
class: "size-12 shrink-0 rounded-lg object-cover"
|
|
750
|
-
}, null, 8,
|
|
755
|
+
}, null, 8, Fe)) : (b(), a("span", Z, [...s[0] ||= [o("i", {
|
|
751
756
|
class: "pi pi-file text-2xl",
|
|
752
757
|
"aria-hidden": "true"
|
|
753
758
|
}, null, -1)]]))]),
|
|
754
|
-
o("div",
|
|
759
|
+
o("div", Ie, [o("p", Le, D(e.name), 1), o("span", Re, D(B(e.size)), 1)]),
|
|
755
760
|
o("button", {
|
|
756
761
|
type: "button",
|
|
757
762
|
class: "flex size-8 shrink-0 items-center justify-center rounded-full border-0 bg-transparent p-0 text-red-600 transition-colors hover:bg-red-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-red-500 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 dark:text-red-400 dark:hover:bg-red-950/40 dark:focus-visible:ring-offset-zinc-900",
|
|
758
763
|
"aria-label": `${t.removeLabel}: ${e.name}`,
|
|
759
|
-
disabled:
|
|
760
|
-
onClick: (e) =>
|
|
764
|
+
disabled: N.value,
|
|
765
|
+
onClick: (e) => ae(c, r)
|
|
761
766
|
}, [...s[1] ||= [o("i", {
|
|
762
767
|
class: "pi pi-times",
|
|
763
768
|
"aria-hidden": "true"
|
|
764
|
-
}, null, -1)]], 8,
|
|
765
|
-
]))), 128)), t.multiple && (!t.maxFiles ||
|
|
769
|
+
}, null, -1)]], 8, ze)
|
|
770
|
+
]))), 128)), t.multiple && (!t.maxFiles || _.value.length < t.maxFiles) ? (b(), r(le, {
|
|
766
771
|
key: 0,
|
|
767
772
|
label: t.selectLabel,
|
|
768
773
|
icon: "pi pi-plus-circle",
|
|
@@ -770,30 +775,30 @@ var be = /* @__PURE__ */ _e(ge, [["render", ye], ["__file", "/Users/mahmudulhasa
|
|
|
770
775
|
disabled: t.disabled,
|
|
771
776
|
loading: t.loading,
|
|
772
777
|
class: "mt-1 px-3 py-2 text-xs",
|
|
773
|
-
onClick:
|
|
778
|
+
onClick: G
|
|
774
779
|
}, null, 8, [
|
|
775
780
|
"label",
|
|
776
781
|
"disabled",
|
|
777
782
|
"loading"
|
|
778
|
-
])) : i("", !0)])) :
|
|
779
|
-
choose:
|
|
780
|
-
disabled:
|
|
783
|
+
])) : i("", !0)])) : w(n.$slots, "empty", {
|
|
784
|
+
choose: G,
|
|
785
|
+
disabled: N.value
|
|
781
786
|
}, () => [
|
|
782
|
-
o("span",
|
|
787
|
+
o("span", Me, [t.loading ? (b(), a("i", Ne)) : (b(), r(O(De), {
|
|
783
788
|
key: 1,
|
|
784
|
-
icon:
|
|
789
|
+
icon: O(xe),
|
|
785
790
|
size: 72,
|
|
786
791
|
"stroke-width": 1.5,
|
|
787
792
|
class: "text-primary-800 dark:text-primary-300"
|
|
788
793
|
}, null, 8, ["icon"]))]),
|
|
789
|
-
o("p",
|
|
790
|
-
l(
|
|
794
|
+
o("p", X, D(t.placeholder), 1),
|
|
795
|
+
l(le, {
|
|
791
796
|
label: t.selectLabel,
|
|
792
797
|
icon: "pi pi-plus-circle",
|
|
793
798
|
disabled: t.disabled,
|
|
794
799
|
loading: t.loading,
|
|
795
800
|
class: "px-3 py-2 text-xs",
|
|
796
|
-
onClick:
|
|
801
|
+
onClick: G
|
|
797
802
|
}, null, 8, [
|
|
798
803
|
"label",
|
|
799
804
|
"disabled",
|
|
@@ -807,19 +812,19 @@ var be = /* @__PURE__ */ _e(ge, [["render", ye], ["__file", "/Users/mahmudulhasa
|
|
|
807
812
|
"disabled",
|
|
808
813
|
"pt"
|
|
809
814
|
]),
|
|
810
|
-
|
|
815
|
+
M.value ? (b(), a("span", {
|
|
811
816
|
key: 1,
|
|
812
|
-
id:
|
|
817
|
+
id: te.value,
|
|
813
818
|
class: "text-[11px] text-red-600 dark:text-red-400",
|
|
814
819
|
role: "alert"
|
|
815
|
-
},
|
|
820
|
+
}, D(M.value), 9, Be)) : i("", !0)
|
|
816
821
|
]));
|
|
817
822
|
}
|
|
818
|
-
}),
|
|
823
|
+
}), He = { class: "top-input-text top-solutions-component flex w-full flex-col gap-1" }, Ue = ["for"], We = {
|
|
819
824
|
key: 0,
|
|
820
825
|
"aria-hidden": "true",
|
|
821
826
|
class: "text-red-600 dark:text-red-400"
|
|
822
|
-
},
|
|
827
|
+
}, Ge = ["id"], Q = /* @__PURE__ */ u({
|
|
823
828
|
inheritAttrs: !1,
|
|
824
829
|
__name: "TopInputText",
|
|
825
830
|
props: {
|
|
@@ -842,24 +847,24 @@ var be = /* @__PURE__ */ _e(ge, [["render", ye], ["__file", "/Users/mahmudulhasa
|
|
|
842
847
|
},
|
|
843
848
|
emits: ["update:modelValue"],
|
|
844
849
|
setup(e, { emit: t }) {
|
|
845
|
-
let r = e, o = t, s =
|
|
850
|
+
let r = e, o = t, s = k(), u = ee(), d = n(() => s.id === void 0 || s.id === null || s.id === "" ? u : String(s.id)), f = n(() => `${d.value}-error`), m = n(() => {
|
|
846
851
|
if (r.error) return !0;
|
|
847
852
|
let e = s["aria-invalid"];
|
|
848
853
|
return typeof e == "boolean" || e === "true" || e === "false" || e === "grammar" || e === "spelling" ? e : void 0;
|
|
849
854
|
}), h = n(() => {
|
|
850
|
-
let e = s["aria-describedby"], t = [typeof e == "string" ? e : "", r.error ?
|
|
855
|
+
let e = s["aria-describedby"], t = [typeof e == "string" ? e : "", r.error ? f.value : ""].filter(Boolean);
|
|
851
856
|
return t.length ? t.join(" ") : void 0;
|
|
852
857
|
});
|
|
853
858
|
function g(e) {
|
|
854
859
|
o("update:modelValue", e ?? "");
|
|
855
860
|
}
|
|
856
|
-
return (t, n) => (
|
|
857
|
-
e.label ? (
|
|
861
|
+
return (t, n) => (b(), a("div", He, [
|
|
862
|
+
e.label ? (b(), a("label", {
|
|
858
863
|
key: 0,
|
|
859
864
|
for: d.value,
|
|
860
865
|
class: "top-field-label text-xs font-bold"
|
|
861
|
-
}, [c(
|
|
862
|
-
l(
|
|
866
|
+
}, [c(D(e.label) + " ", 1), e.required ? (b(), a("span", We, "*")) : i("", !0)], 8, Ue)) : i("", !0),
|
|
867
|
+
l(O(B), p(t.$attrs, {
|
|
863
868
|
id: d.value,
|
|
864
869
|
"model-value": e.modelValue,
|
|
865
870
|
type: "text",
|
|
@@ -884,23 +889,242 @@ var be = /* @__PURE__ */ _e(ge, [["render", ye], ["__file", "/Users/mahmudulhasa
|
|
|
884
889
|
"aria-invalid",
|
|
885
890
|
"aria-describedby"
|
|
886
891
|
]),
|
|
887
|
-
e.error ? (
|
|
892
|
+
e.error ? (b(), a("span", {
|
|
888
893
|
key: 1,
|
|
889
|
-
id:
|
|
894
|
+
id: f.value,
|
|
895
|
+
class: "text-[11px] text-red-600 dark:text-red-400",
|
|
896
|
+
role: "alert"
|
|
897
|
+
}, D(e.error), 9, Ge)) : i("", !0)
|
|
898
|
+
]));
|
|
899
|
+
}
|
|
900
|
+
}), $ = { class: "top-input-number top-solutions-component flex w-full flex-col gap-1" }, Ke = ["for"], qe = {
|
|
901
|
+
key: 0,
|
|
902
|
+
"aria-hidden": "true",
|
|
903
|
+
class: "text-red-600 dark:text-red-400"
|
|
904
|
+
}, Je = ["id"], Ye = /* @__PURE__ */ u({
|
|
905
|
+
inheritAttrs: !1,
|
|
906
|
+
__name: "TopInputNumber",
|
|
907
|
+
props: {
|
|
908
|
+
modelValue: { default: null },
|
|
909
|
+
label: { default: "" },
|
|
910
|
+
placeholder: { default: "" },
|
|
911
|
+
required: {
|
|
912
|
+
type: Boolean,
|
|
913
|
+
default: !1
|
|
914
|
+
},
|
|
915
|
+
error: { default: "" },
|
|
916
|
+
invalid: {
|
|
917
|
+
type: Boolean,
|
|
918
|
+
default: !1
|
|
919
|
+
},
|
|
920
|
+
disabled: {
|
|
921
|
+
type: Boolean,
|
|
922
|
+
default: !1
|
|
923
|
+
},
|
|
924
|
+
readonly: {
|
|
925
|
+
type: Boolean,
|
|
926
|
+
default: !1
|
|
927
|
+
},
|
|
928
|
+
format: {
|
|
929
|
+
type: Boolean,
|
|
930
|
+
default: !0
|
|
931
|
+
},
|
|
932
|
+
showButtons: {
|
|
933
|
+
type: Boolean,
|
|
934
|
+
default: !1
|
|
935
|
+
},
|
|
936
|
+
buttonLayout: { default: "stacked" },
|
|
937
|
+
locale: { default: "pt-BR" },
|
|
938
|
+
mode: { default: "decimal" },
|
|
939
|
+
currency: { default: void 0 },
|
|
940
|
+
currencyDisplay: { default: "symbol" },
|
|
941
|
+
currencyInputMode: { default: "cents" },
|
|
942
|
+
currencyFractionDigits: { default: void 0 },
|
|
943
|
+
cents: {
|
|
944
|
+
type: Boolean,
|
|
945
|
+
default: !0
|
|
946
|
+
},
|
|
947
|
+
centsFractionDigits: { default: void 0 },
|
|
948
|
+
useGrouping: {
|
|
949
|
+
type: Boolean,
|
|
950
|
+
default: !0
|
|
951
|
+
},
|
|
952
|
+
minFractionDigits: { default: void 0 },
|
|
953
|
+
maxFractionDigits: { default: void 0 },
|
|
954
|
+
min: { default: void 0 },
|
|
955
|
+
max: { default: void 0 },
|
|
956
|
+
step: { default: 1 },
|
|
957
|
+
allowEmpty: {
|
|
958
|
+
type: Boolean,
|
|
959
|
+
default: !0
|
|
960
|
+
},
|
|
961
|
+
highlightOnFocus: {
|
|
962
|
+
type: Boolean,
|
|
963
|
+
default: !1
|
|
964
|
+
},
|
|
965
|
+
showClear: {
|
|
966
|
+
type: Boolean,
|
|
967
|
+
default: !1
|
|
968
|
+
}
|
|
969
|
+
},
|
|
970
|
+
emits: [
|
|
971
|
+
"update:modelValue",
|
|
972
|
+
"value-change",
|
|
973
|
+
"input",
|
|
974
|
+
"focus",
|
|
975
|
+
"blur"
|
|
976
|
+
],
|
|
977
|
+
setup(e, { emit: t }) {
|
|
978
|
+
let o = e, l = t, u = k(), f = te(), h = ee(), _ = n(() => u.id === void 0 || u.id === null || u.id === "" ? h : String(u.id)), v = n(() => `${_.value}-error`), y = n(() => o.invalid || !!o.error), x = n(() => {
|
|
979
|
+
if (y.value) return !0;
|
|
980
|
+
let e = u["aria-invalid"];
|
|
981
|
+
return typeof e == "boolean" || e === "true" || e === "false" || e === "grammar" || e === "spelling" ? e : void 0;
|
|
982
|
+
}), S = n(() => {
|
|
983
|
+
let e = u["aria-describedby"], t = [typeof e == "string" ? e : "", o.error ? v.value : ""].filter(Boolean);
|
|
984
|
+
return t.length ? t.join(" ") : void 0;
|
|
985
|
+
}), T = n(() => o.mode === "currency" && o.cents && o.currencyInputMode !== "decimal"), E = n(() => o.maxFractionDigits === void 0 ? o.mode === "decimal" ? 20 : void 0 : o.maxFractionDigits), A = n(() => {
|
|
986
|
+
let e = o.centsFractionDigits ?? o.currencyFractionDigits ?? o.maxFractionDigits ?? 2;
|
|
987
|
+
return Math.min(20, Math.max(0, e));
|
|
988
|
+
}), M = n(() => {
|
|
989
|
+
let { id: e, "aria-describedby": t, "aria-invalid": n, ...r } = u;
|
|
990
|
+
return r;
|
|
991
|
+
}), N = n(() => {
|
|
992
|
+
let e = u.pt, t = e && typeof e == "object" ? e : {}, n = t.pcInputText && typeof t.pcInputText == "object" ? t.pcInputText : {}, r = n.root && typeof n.root == "object" ? n.root : {};
|
|
993
|
+
return {
|
|
994
|
+
...t,
|
|
995
|
+
pcInputText: {
|
|
996
|
+
...n,
|
|
997
|
+
root: {
|
|
998
|
+
...r,
|
|
999
|
+
"aria-invalid": x.value,
|
|
1000
|
+
"aria-describedby": S.value
|
|
1001
|
+
}
|
|
1002
|
+
}
|
|
1003
|
+
};
|
|
1004
|
+
});
|
|
1005
|
+
function P(e) {
|
|
1006
|
+
l("update:modelValue", e ?? null);
|
|
1007
|
+
}
|
|
1008
|
+
function F(e) {
|
|
1009
|
+
return o.min !== void 0 && e < o.min ? o.min : o.max !== void 0 && e > o.max ? o.max : e;
|
|
1010
|
+
}
|
|
1011
|
+
function I(e) {
|
|
1012
|
+
return e === null ? "" : new Intl.NumberFormat(o.locale, {
|
|
1013
|
+
style: "currency",
|
|
1014
|
+
currency: o.currency || "BRL",
|
|
1015
|
+
currencyDisplay: o.currencyDisplay,
|
|
1016
|
+
useGrouping: o.useGrouping,
|
|
1017
|
+
minimumFractionDigits: A.value,
|
|
1018
|
+
maximumFractionDigits: A.value
|
|
1019
|
+
}).format(e);
|
|
1020
|
+
}
|
|
1021
|
+
function L(e) {
|
|
1022
|
+
let t = e.target;
|
|
1023
|
+
if (!(t instanceof HTMLInputElement)) return;
|
|
1024
|
+
let n = t.value.replace(/\D/g, ""), r = 10 ** A.value, i = n ? F(Number(n) / r) : o.allowEmpty ? null : 0, a = I(i);
|
|
1025
|
+
t.value = a, l("update:modelValue", i), l("input", {
|
|
1026
|
+
originalEvent: e,
|
|
1027
|
+
value: i ?? void 0,
|
|
1028
|
+
formattedValue: a
|
|
1029
|
+
}), m(() => {
|
|
1030
|
+
t.value = a;
|
|
1031
|
+
});
|
|
1032
|
+
}
|
|
1033
|
+
function R(e) {
|
|
1034
|
+
let t = e.target;
|
|
1035
|
+
l("blur", {
|
|
1036
|
+
originalEvent: e,
|
|
1037
|
+
value: t instanceof HTMLInputElement ? t.value : ""
|
|
1038
|
+
});
|
|
1039
|
+
}
|
|
1040
|
+
return (t, n) => (b(), a("div", $, [
|
|
1041
|
+
e.label ? (b(), a("label", {
|
|
1042
|
+
key: 0,
|
|
1043
|
+
for: _.value,
|
|
1044
|
+
class: "top-field-label text-xs font-bold"
|
|
1045
|
+
}, [c(D(e.label) + " ", 1), e.required ? (b(), a("span", qe, "*")) : i("", !0)], 8, Ke)) : i("", !0),
|
|
1046
|
+
T.value ? (b(), r(O(B), p({ key: 1 }, M.value, {
|
|
1047
|
+
id: _.value,
|
|
1048
|
+
"model-value": I(e.modelValue),
|
|
1049
|
+
type: "text",
|
|
1050
|
+
inputmode: "numeric",
|
|
1051
|
+
placeholder: e.placeholder,
|
|
1052
|
+
required: e.required,
|
|
1053
|
+
invalid: y.value,
|
|
1054
|
+
disabled: e.disabled,
|
|
1055
|
+
readonly: e.readonly,
|
|
1056
|
+
"aria-invalid": x.value,
|
|
1057
|
+
"aria-describedby": S.value,
|
|
1058
|
+
fluid: "",
|
|
1059
|
+
class: "top-input-number__control top-field-control h-[40px] w-full rounded-[10px] border px-3 py-2 text-xs read-only:cursor-default disabled:cursor-not-allowed",
|
|
1060
|
+
onInput: L,
|
|
1061
|
+
onFocus: n[0] ||= (e) => l("focus", e),
|
|
1062
|
+
onBlur: R
|
|
1063
|
+
}), null, 16, [
|
|
1064
|
+
"id",
|
|
1065
|
+
"model-value",
|
|
1066
|
+
"placeholder",
|
|
1067
|
+
"required",
|
|
1068
|
+
"invalid",
|
|
1069
|
+
"disabled",
|
|
1070
|
+
"readonly",
|
|
1071
|
+
"aria-invalid",
|
|
1072
|
+
"aria-describedby"
|
|
1073
|
+
])) : (b(), r(O(V), p({ key: 2 }, M.value, {
|
|
1074
|
+
"model-value": e.modelValue,
|
|
1075
|
+
"input-id": _.value,
|
|
1076
|
+
placeholder: e.placeholder,
|
|
1077
|
+
required: e.required,
|
|
1078
|
+
invalid: y.value,
|
|
1079
|
+
disabled: e.disabled,
|
|
1080
|
+
readonly: e.readonly,
|
|
1081
|
+
format: e.format,
|
|
1082
|
+
"show-buttons": e.showButtons,
|
|
1083
|
+
"button-layout": e.buttonLayout,
|
|
1084
|
+
locale: e.locale,
|
|
1085
|
+
mode: e.mode,
|
|
1086
|
+
currency: e.currency,
|
|
1087
|
+
"currency-display": e.currencyDisplay,
|
|
1088
|
+
"use-grouping": e.useGrouping,
|
|
1089
|
+
"min-fraction-digits": e.minFractionDigits,
|
|
1090
|
+
"max-fraction-digits": E.value,
|
|
1091
|
+
min: e.min,
|
|
1092
|
+
max: e.max,
|
|
1093
|
+
step: e.step,
|
|
1094
|
+
"allow-empty": e.allowEmpty,
|
|
1095
|
+
"highlight-on-focus": e.highlightOnFocus,
|
|
1096
|
+
"show-clear": e.showClear,
|
|
1097
|
+
"aria-invalid": x.value,
|
|
1098
|
+
"aria-describedby": S.value,
|
|
1099
|
+
pt: N.value,
|
|
1100
|
+
"input-class": "top-input-number__control top-field-control h-[40px] w-full rounded-[10px] border px-3 py-2 text-xs read-only:cursor-default disabled:cursor-not-allowed",
|
|
1101
|
+
fluid: "",
|
|
1102
|
+
"onUpdate:modelValue": P,
|
|
1103
|
+
onValueChange: n[1] ||= (e) => l("value-change", e ?? null),
|
|
1104
|
+
onInput: n[2] ||= (e) => l("input", e),
|
|
1105
|
+
onFocus: n[3] ||= (e) => l("focus", e),
|
|
1106
|
+
onBlur: n[4] ||= (e) => l("blur", e)
|
|
1107
|
+
}), s({ _: 2 }, [C(O(f), (e, n) => ({
|
|
1108
|
+
name: n,
|
|
1109
|
+
fn: j((e) => [w(t.$slots, n, g(d(e ?? {})))])
|
|
1110
|
+
}))]), 1040, /* @__PURE__ */ "model-value.input-id.placeholder.required.invalid.disabled.readonly.format.show-buttons.button-layout.locale.mode.currency.currency-display.use-grouping.min-fraction-digits.max-fraction-digits.min.max.step.allow-empty.highlight-on-focus.show-clear.aria-invalid.aria-describedby.pt".split("."))),
|
|
1111
|
+
e.error ? (b(), a("span", {
|
|
1112
|
+
key: 3,
|
|
1113
|
+
id: v.value,
|
|
890
1114
|
class: "text-[11px] text-red-600 dark:text-red-400",
|
|
891
1115
|
role: "alert"
|
|
892
|
-
},
|
|
1116
|
+
}, D(e.error), 9, Je)) : i("", !0)
|
|
893
1117
|
]));
|
|
894
1118
|
}
|
|
895
|
-
}),
|
|
1119
|
+
}), Xe = [
|
|
896
1120
|
"disabled",
|
|
897
1121
|
"aria-expanded",
|
|
898
1122
|
"onClick"
|
|
899
|
-
],
|
|
1123
|
+
], Ze = { class: "top-nav-bar__mobile-item-label" }, Qe = {
|
|
900
1124
|
key: 1,
|
|
901
1125
|
class: "top-nav-bar__mobile-count",
|
|
902
1126
|
"aria-hidden": "true"
|
|
903
|
-
},
|
|
1127
|
+
}, $e = /* @__PURE__ */ u({
|
|
904
1128
|
name: "TopNavMobileTree",
|
|
905
1129
|
__name: "TopNavMobileTree",
|
|
906
1130
|
props: {
|
|
@@ -918,17 +1142,17 @@ var be = /* @__PURE__ */ _e(ge, [["render", ye], ["__file", "/Users/mahmudulhasa
|
|
|
918
1142
|
},
|
|
919
1143
|
emits: ["select"],
|
|
920
1144
|
setup(s, { emit: c }) {
|
|
921
|
-
let u = s, d = c, f =
|
|
1145
|
+
let u = s, d = c, f = S(/* @__PURE__ */ new Set());
|
|
922
1146
|
function p(e) {
|
|
923
1147
|
return e.children?.filter(Boolean) ?? [];
|
|
924
1148
|
}
|
|
925
|
-
function
|
|
926
|
-
return e.id === u.activeItemId || p(e).some(
|
|
1149
|
+
function m(e) {
|
|
1150
|
+
return e.id === u.activeItemId || p(e).some(m);
|
|
927
1151
|
}
|
|
928
|
-
function
|
|
1152
|
+
function g(e) {
|
|
929
1153
|
return u.forceOpen || f.value.has(e.id);
|
|
930
1154
|
}
|
|
931
|
-
function
|
|
1155
|
+
function v(e) {
|
|
932
1156
|
if (e.disabled) return;
|
|
933
1157
|
if (!p(e).length) {
|
|
934
1158
|
d("select", e);
|
|
@@ -937,51 +1161,51 @@ var be = /* @__PURE__ */ _e(ge, [["render", ye], ["__file", "/Users/mahmudulhasa
|
|
|
937
1161
|
let t = new Set(f.value);
|
|
938
1162
|
t.has(e.id) ? t.delete(e.id) : t.add(e.id), f.value = t;
|
|
939
1163
|
}
|
|
940
|
-
|
|
1164
|
+
A(() => [u.activeItemId, u.items], () => {
|
|
941
1165
|
let e = new Set(f.value);
|
|
942
1166
|
u.items.forEach((t) => {
|
|
943
|
-
p(t).length &&
|
|
1167
|
+
p(t).length && m(t) && e.add(t.id);
|
|
944
1168
|
}), f.value = e;
|
|
945
1169
|
}, {
|
|
946
1170
|
immediate: !0,
|
|
947
1171
|
deep: !0
|
|
948
1172
|
});
|
|
949
|
-
let
|
|
1173
|
+
let y = n(() => u.level > 0 ? { "--top-nav-tree-level": String(u.level) } : void 0);
|
|
950
1174
|
return (n, c) => {
|
|
951
|
-
let u =
|
|
952
|
-
return
|
|
953
|
-
class:
|
|
1175
|
+
let u = T("TopNavMobileTree", !0);
|
|
1176
|
+
return b(), a("div", {
|
|
1177
|
+
class: h(["top-nav-bar__mobile-tree", {
|
|
954
1178
|
"top-nav-bar__mobile-tree--nested": s.level > 0,
|
|
955
1179
|
"top-nav-bar__mobile-tree--sections": s.showSectionDividers && s.level === 0
|
|
956
1180
|
}]),
|
|
957
|
-
style:
|
|
958
|
-
}, [(
|
|
1181
|
+
style: _(y.value)
|
|
1182
|
+
}, [(b(!0), a(e, null, C(s.items, (e, n) => (b(), a("div", {
|
|
959
1183
|
key: e.id,
|
|
960
|
-
class:
|
|
1184
|
+
class: h(["top-nav-bar__mobile-node", { "top-nav-bar__mobile-node--section": s.showSectionDividers && s.level === 0 && n > 0 }])
|
|
961
1185
|
}, [o("button", {
|
|
962
|
-
class:
|
|
1186
|
+
class: h(["top-nav-bar__mobile-item", {
|
|
963
1187
|
"top-nav-bar__mobile-item--active": e.id === s.activeItemId,
|
|
964
|
-
"top-nav-bar__mobile-item--ancestor": e.id !== s.activeItemId &&
|
|
1188
|
+
"top-nav-bar__mobile-item--ancestor": e.id !== s.activeItemId && m(e)
|
|
965
1189
|
}]),
|
|
966
1190
|
type: "button",
|
|
967
1191
|
disabled: e.disabled,
|
|
968
|
-
"aria-expanded": p(e).length ?
|
|
969
|
-
onClick: (t) =>
|
|
1192
|
+
"aria-expanded": p(e).length ? g(e) : void 0,
|
|
1193
|
+
onClick: (t) => v(e)
|
|
970
1194
|
}, [
|
|
971
|
-
e.icon ? (
|
|
1195
|
+
e.icon ? (b(), a("i", {
|
|
972
1196
|
key: 0,
|
|
973
|
-
class:
|
|
1197
|
+
class: h(e.icon),
|
|
974
1198
|
"aria-hidden": "true"
|
|
975
1199
|
}, null, 2)) : i("", !0),
|
|
976
|
-
o("span",
|
|
977
|
-
p(e).length ? (
|
|
978
|
-
p(e).length ? (
|
|
1200
|
+
o("span", Ze, D(e.label), 1),
|
|
1201
|
+
p(e).length ? (b(), a("span", Qe, D(p(e).length), 1)) : i("", !0),
|
|
1202
|
+
p(e).length ? (b(), a("i", {
|
|
979
1203
|
key: 2,
|
|
980
|
-
class:
|
|
1204
|
+
class: h(["pi pi-chevron-down top-nav-bar__mobile-chevron", { "top-nav-bar__mobile-chevron--open": g(e) }]),
|
|
981
1205
|
"aria-hidden": "true"
|
|
982
1206
|
}, null, 2)) : i("", !0)
|
|
983
|
-
], 10,
|
|
984
|
-
default:
|
|
1207
|
+
], 10, Xe), l(t, { name: "top-nav-bar-menu-expand" }, {
|
|
1208
|
+
default: j(() => [p(e).length && g(e) ? (b(), r(u, {
|
|
985
1209
|
key: 0,
|
|
986
1210
|
items: p(e),
|
|
987
1211
|
"active-item-id": s.activeItemId,
|
|
@@ -998,167 +1222,170 @@ var be = /* @__PURE__ */ _e(ge, [["render", ye], ["__file", "/Users/mahmudulhasa
|
|
|
998
1222
|
}, 1024)], 2))), 128))], 6);
|
|
999
1223
|
};
|
|
1000
1224
|
}
|
|
1001
|
-
}),
|
|
1225
|
+
}), et = ["aria-expanded"], tt = { class: "top-nav-bar__brand" }, nt = {
|
|
1002
1226
|
key: 1,
|
|
1003
1227
|
class: "top-nav-bar__brand-context-divider",
|
|
1004
1228
|
"aria-hidden": "true"
|
|
1005
|
-
},
|
|
1229
|
+
}, rt = {
|
|
1006
1230
|
key: 2,
|
|
1007
1231
|
class: "top-nav-bar__context"
|
|
1008
|
-
},
|
|
1232
|
+
}, it = {
|
|
1009
1233
|
key: 0,
|
|
1010
1234
|
class: "top-nav-bar__client"
|
|
1011
|
-
},
|
|
1235
|
+
}, at = ["src"], ot = {
|
|
1012
1236
|
key: 1,
|
|
1013
1237
|
class: "top-nav-bar__client-logo"
|
|
1014
|
-
},
|
|
1238
|
+
}, st = {
|
|
1015
1239
|
key: 2,
|
|
1016
1240
|
class: "top-nav-bar__client-details"
|
|
1017
|
-
},
|
|
1241
|
+
}, ct = { class: "top-nav-bar__client-name" }, lt = {
|
|
1018
1242
|
key: 0,
|
|
1019
1243
|
class: "top-nav-bar__client-subtitle"
|
|
1020
|
-
},
|
|
1244
|
+
}, ut = { class: "top-nav-bar__desktop-tools" }, dt = {
|
|
1021
1245
|
key: 0,
|
|
1022
1246
|
class: "top-nav-bar__search-shell",
|
|
1023
1247
|
"data-top-nav-search": ""
|
|
1024
|
-
},
|
|
1248
|
+
}, ft = ["value", "placeholder"], pt = ["aria-label"], mt = {
|
|
1025
1249
|
key: 1,
|
|
1026
1250
|
class: "top-nav-bar__search-results",
|
|
1027
1251
|
role: "menu"
|
|
1028
|
-
},
|
|
1252
|
+
}, ht = { class: "top-nav-bar__search-results-scroll" }, gt = ["disabled", "onClick"], _t = {
|
|
1029
1253
|
key: 0,
|
|
1030
1254
|
class: "top-nav-bar__empty"
|
|
1031
|
-
},
|
|
1255
|
+
}, vt = {
|
|
1032
1256
|
key: 1,
|
|
1033
1257
|
class: "top-nav-bar__quick-actions",
|
|
1034
1258
|
"data-top-nav-actions": ""
|
|
1035
|
-
},
|
|
1259
|
+
}, yt = [
|
|
1036
1260
|
"disabled",
|
|
1037
1261
|
"aria-label",
|
|
1038
1262
|
"aria-pressed",
|
|
1039
1263
|
"title",
|
|
1040
1264
|
"onClick"
|
|
1041
|
-
],
|
|
1265
|
+
], bt = ["aria-expanded"], xt = {
|
|
1042
1266
|
key: 0,
|
|
1043
1267
|
class: "top-nav-bar__popover-layer top-nav-bar__actions-layer"
|
|
1044
|
-
},
|
|
1268
|
+
}, St = {
|
|
1045
1269
|
class: "top-nav-bar__small-panel",
|
|
1046
1270
|
role: "menu"
|
|
1047
|
-
},
|
|
1271
|
+
}, Ct = ["disabled", "onClick"], wt = {
|
|
1048
1272
|
key: 2,
|
|
1049
1273
|
class: "top-nav-bar__custom-actions"
|
|
1050
|
-
},
|
|
1274
|
+
}, Tt = ["aria-haspopup", "aria-expanded"], Et = ["src"], Dt = {
|
|
1051
1275
|
key: 1,
|
|
1052
1276
|
class: "top-nav-bar__user-avatar"
|
|
1053
|
-
},
|
|
1277
|
+
}, Ot = {
|
|
1054
1278
|
key: 2,
|
|
1055
1279
|
class: "top-nav-bar__user-details"
|
|
1056
|
-
},
|
|
1280
|
+
}, kt = { class: "top-nav-bar__user-name" }, At = {
|
|
1057
1281
|
key: 0,
|
|
1058
1282
|
class: "top-nav-bar__user-subtitle"
|
|
1059
|
-
},
|
|
1283
|
+
}, jt = {
|
|
1060
1284
|
key: 0,
|
|
1061
1285
|
class: "pi pi-chevron-down top-nav-bar__chevron",
|
|
1062
1286
|
"aria-hidden": "true"
|
|
1063
|
-
},
|
|
1287
|
+
}, Mt = {
|
|
1064
1288
|
key: 0,
|
|
1065
1289
|
class: "top-nav-bar__popover-layer top-nav-bar__user-layer"
|
|
1066
|
-
},
|
|
1290
|
+
}, Nt = {
|
|
1067
1291
|
class: "top-nav-bar__small-panel top-nav-bar__user-dropdown",
|
|
1068
1292
|
role: "menu"
|
|
1069
|
-
},
|
|
1293
|
+
}, Pt = {
|
|
1070
1294
|
key: 0,
|
|
1071
1295
|
class: "top-nav-bar__user-separator",
|
|
1072
1296
|
role: "separator"
|
|
1073
|
-
},
|
|
1297
|
+
}, Ft = ["disabled", "onClick"], It = {
|
|
1074
1298
|
class: "top-nav-bar__breadcrumbs",
|
|
1075
1299
|
"aria-label": "Breadcrumb"
|
|
1076
|
-
},
|
|
1300
|
+
}, Lt = {
|
|
1077
1301
|
key: 0,
|
|
1078
1302
|
class: "top-nav-bar__separator top-nav-bar__desktop-navigation-separator",
|
|
1079
1303
|
"aria-hidden": "true"
|
|
1080
|
-
},
|
|
1304
|
+
}, Rt = ["aria-expanded"], zt = {
|
|
1081
1305
|
key: 0,
|
|
1082
1306
|
class: "top-nav-bar__menu-layer"
|
|
1083
|
-
},
|
|
1307
|
+
}, Bt = {
|
|
1084
1308
|
class: "top-nav-bar__menu-panel",
|
|
1085
1309
|
role: "menu"
|
|
1086
|
-
},
|
|
1310
|
+
}, Vt = { class: "top-nav-bar__section-list" }, Ht = [
|
|
1087
1311
|
"aria-expanded",
|
|
1088
1312
|
"onMouseenter",
|
|
1089
1313
|
"onClick"
|
|
1090
|
-
],
|
|
1314
|
+
], Ut = { class: "top-nav-bar__menu-label" }, Wt = { class: "top-nav-bar__item-count" }, Gt = {
|
|
1091
1315
|
key: 0,
|
|
1092
1316
|
class: "top-nav-bar__submenu-region"
|
|
1093
|
-
},
|
|
1317
|
+
}, Kt = [
|
|
1094
1318
|
"disabled",
|
|
1095
1319
|
"aria-haspopup",
|
|
1096
1320
|
"aria-expanded",
|
|
1097
1321
|
"onMouseenter",
|
|
1098
1322
|
"onClick"
|
|
1099
|
-
],
|
|
1323
|
+
], qt = { class: "top-nav-bar__menu-label" }, Jt = {
|
|
1100
1324
|
key: 1,
|
|
1101
1325
|
class: "pi pi-chevron-right top-nav-bar__menu-arrow",
|
|
1102
1326
|
"aria-hidden": "true"
|
|
1103
|
-
},
|
|
1327
|
+
}, Yt = ["onMouseenter"], Xt = {
|
|
1104
1328
|
key: 0,
|
|
1105
1329
|
class: "top-nav-bar__crumb top-nav-bar__crumb--static"
|
|
1106
|
-
},
|
|
1330
|
+
}, Zt = ["aria-expanded", "onClick"], Qt = {
|
|
1107
1331
|
key: 2,
|
|
1108
1332
|
class: "top-nav-bar__menu-layer"
|
|
1109
|
-
},
|
|
1333
|
+
}, $t = {
|
|
1110
1334
|
class: "top-nav-bar__menu-panel top-nav-bar__breadcrumb-panel",
|
|
1111
1335
|
role: "menu"
|
|
1112
|
-
},
|
|
1336
|
+
}, en = [
|
|
1113
1337
|
"disabled",
|
|
1114
1338
|
"onMouseenter",
|
|
1115
1339
|
"onClick"
|
|
1116
|
-
],
|
|
1340
|
+
], tn = { class: "top-nav-bar__menu-label" }, nn = {
|
|
1117
1341
|
key: 1,
|
|
1118
1342
|
class: "pi pi-chevron-right top-nav-bar__menu-arrow",
|
|
1119
1343
|
"aria-hidden": "true"
|
|
1120
|
-
},
|
|
1344
|
+
}, rn = ["onClick"], an = ["title"], on = { class: "top-nav-bar__current-label" }, sn = ["aria-label", "aria-pressed"], cn = { class: "top-nav-bar__breadcrumb-actions" }, ln = ["aria-expanded"], un = {
|
|
1121
1345
|
key: 0,
|
|
1122
1346
|
class: "top-nav-bar__popover-layer top-nav-bar__favorites-layer"
|
|
1123
|
-
},
|
|
1347
|
+
}, dn = {
|
|
1124
1348
|
class: "top-nav-bar__small-panel top-nav-bar__favorites-panel",
|
|
1125
1349
|
role: "menu"
|
|
1126
|
-
},
|
|
1350
|
+
}, fn = ["disabled", "onClick"], pn = { class: "top-nav-bar__favorites-title" }, mn = {
|
|
1127
1351
|
key: 0,
|
|
1128
1352
|
class: "top-nav-bar__favorites-separator"
|
|
1129
|
-
},
|
|
1353
|
+
}, hn = {
|
|
1130
1354
|
key: 0,
|
|
1131
1355
|
class: "top-nav-bar__favorites-row top-nav-bar__desktop-only"
|
|
1132
|
-
},
|
|
1356
|
+
}, gn = { class: "top-nav-bar__favorites-title" }, _n = { class: "top-nav-bar__favorites-list" }, vn = {
|
|
1133
1357
|
key: 0,
|
|
1134
1358
|
class: "top-nav-bar__favorites-separator",
|
|
1135
1359
|
"aria-hidden": "true"
|
|
1136
|
-
},
|
|
1360
|
+
}, yn = ["disabled", "onClick"], bn = { class: "top-nav-bar__mobile-menu" }, xn = { class: "top-nav-bar__mobile-menu-header" }, Sn = { class: "top-nav-bar__drawer-brand" }, Cn = ["onClick"], wn = {
|
|
1137
1361
|
key: 0,
|
|
1138
1362
|
class: "top-nav-bar__drawer-tools"
|
|
1139
|
-
},
|
|
1363
|
+
}, Tn = { class: "top-nav-bar__drawer-search" }, En = ["value", "placeholder"], Dn = ["disabled", "onClick"], On = { class: "top-nav-bar__mobile-menu-scroll" }, kn = { class: "top-nav-bar__mobile-menu-track" }, An = {
|
|
1140
1364
|
key: 0,
|
|
1141
1365
|
class: "top-nav-bar__mobile-favorites"
|
|
1142
|
-
},
|
|
1366
|
+
}, jn = ["aria-expanded"], Mn = { class: "top-nav-bar__mobile-item-label" }, Nn = { class: "top-nav-bar__mobile-count" }, Pn = {
|
|
1143
1367
|
key: 1,
|
|
1144
1368
|
class: "top-nav-bar__drawer-empty"
|
|
1145
|
-
},
|
|
1369
|
+
}, Fn = {
|
|
1146
1370
|
key: 1,
|
|
1147
1371
|
class: "top-nav-bar__mobile-footer"
|
|
1148
|
-
},
|
|
1372
|
+
}, In = ["aria-haspopup", "aria-expanded"], Ln = ["src"], Rn = {
|
|
1149
1373
|
key: 1,
|
|
1150
1374
|
class: "top-nav-bar__user-avatar"
|
|
1151
|
-
},
|
|
1375
|
+
}, zn = {
|
|
1152
1376
|
key: 2,
|
|
1153
1377
|
class: "top-nav-bar__user-details"
|
|
1154
|
-
},
|
|
1378
|
+
}, Bn = { class: "top-nav-bar__user-name" }, Vn = {
|
|
1155
1379
|
key: 0,
|
|
1156
|
-
class: "top-nav-
|
|
1157
|
-
},
|
|
1380
|
+
class: "top-nav-bar__drawer-user-context"
|
|
1381
|
+
}, Hn = { class: "top-nav-bar__drawer-user-client" }, Un = {
|
|
1382
|
+
key: 0,
|
|
1383
|
+
class: "top-nav-bar__drawer-user-client-subtitle"
|
|
1384
|
+
}, Wn = {
|
|
1158
1385
|
key: 3,
|
|
1159
1386
|
class: "pi pi-chevron-down top-nav-bar__mobile-chevron",
|
|
1160
1387
|
"aria-hidden": "true"
|
|
1161
|
-
},
|
|
1388
|
+
}, Gn = 120, Kn = 24, qn = /* @__PURE__ */ u({
|
|
1162
1389
|
__name: "TopNavBar",
|
|
1163
1390
|
props: {
|
|
1164
1391
|
sections: { default: () => [] },
|
|
@@ -1224,7 +1451,7 @@ var be = /* @__PURE__ */ _e(ge, [["render", ye], ["__file", "/Users/mahmudulhasa
|
|
|
1224
1451
|
"user-click"
|
|
1225
1452
|
],
|
|
1226
1453
|
setup(s, { expose: u, emit: d }) {
|
|
1227
|
-
let f = s,
|
|
1454
|
+
let f = s, p = d, g = te(), x = S(null), T = S(null), E = S(null), k = S(null), ee = S(null), M = S(null), P = S(f.mobileOpen ?? !1), F = S(!1), I = S(null), L = S([]), R = S(null), z = S([]), B = S(!1), V = S(!1), U = S(!1), re = S(null), W = S(!1), ie = S(!1), G = S(!1), ae = S(!0), oe = S(!1), K = S(f.searchValue ?? ""), q = S(!1), se = S(!1), ce = S(!1), J = S({
|
|
1228
1455
|
collapseActions: !1,
|
|
1229
1456
|
searchIconOnly: !1,
|
|
1230
1457
|
hideUserName: !1,
|
|
@@ -1247,59 +1474,59 @@ var be = /* @__PURE__ */ _e(ge, [["render", ye], ["__file", "/Users/mahmudulhasa
|
|
|
1247
1474
|
...e,
|
|
1248
1475
|
children: me(e)
|
|
1249
1476
|
})).filter((e) => e.children.length > 0));
|
|
1250
|
-
function
|
|
1477
|
+
function he(e, t = []) {
|
|
1251
1478
|
return e.forEach((e) => {
|
|
1252
1479
|
let n = e.children ?? [];
|
|
1253
|
-
n.length ?
|
|
1480
|
+
n.length ? he(n, t) : t.push(e);
|
|
1254
1481
|
}), t;
|
|
1255
1482
|
}
|
|
1256
|
-
let
|
|
1257
|
-
function
|
|
1483
|
+
let ge = n(() => Y.value.flatMap((e) => he(e.children)));
|
|
1484
|
+
function _e(e) {
|
|
1258
1485
|
return e.normalize("NFD").replace(/[\u0300-\u036f]/g, "").toLocaleLowerCase("pt-BR");
|
|
1259
1486
|
}
|
|
1260
|
-
let
|
|
1487
|
+
let ve = n(() => {
|
|
1261
1488
|
if (f.searchResults !== void 0) return f.searchResults;
|
|
1262
|
-
let e =
|
|
1263
|
-
return e ?
|
|
1489
|
+
let e = _e(K.value.trim());
|
|
1490
|
+
return e ? ge.value.filter((t) => _e(t.label).includes(e)) : ge.value;
|
|
1264
1491
|
});
|
|
1265
|
-
function
|
|
1492
|
+
function ye(e, t) {
|
|
1266
1493
|
return t ? e.flatMap((e) => {
|
|
1267
|
-
let n =
|
|
1494
|
+
let n = _e(e.label).includes(t), r = ye(e.children ?? [], t);
|
|
1268
1495
|
return !n && !r.length ? [] : [{
|
|
1269
1496
|
...e,
|
|
1270
1497
|
children: n ? e.children : r
|
|
1271
1498
|
}];
|
|
1272
1499
|
}) : e;
|
|
1273
1500
|
}
|
|
1274
|
-
let
|
|
1275
|
-
function
|
|
1501
|
+
let be = n(() => ye(Y.value, _e(K.value.trim())));
|
|
1502
|
+
function xe(e, t, n = []) {
|
|
1276
1503
|
for (let r of e) {
|
|
1277
1504
|
let e = [...n, r];
|
|
1278
1505
|
if (r.id === t) return e;
|
|
1279
|
-
let i =
|
|
1506
|
+
let i = xe(r.children ?? [], t, e);
|
|
1280
1507
|
if (i) return i;
|
|
1281
1508
|
}
|
|
1282
1509
|
return null;
|
|
1283
1510
|
}
|
|
1284
|
-
function
|
|
1511
|
+
function Ce(e, t) {
|
|
1285
1512
|
for (let n of e) {
|
|
1286
1513
|
if (n.id === t) return n;
|
|
1287
|
-
let e =
|
|
1514
|
+
let e = Ce(n.children ?? [], t);
|
|
1288
1515
|
if (e) return e;
|
|
1289
1516
|
}
|
|
1290
1517
|
return null;
|
|
1291
1518
|
}
|
|
1292
|
-
let
|
|
1519
|
+
let we = n(() => {
|
|
1293
1520
|
if (!f.activeItemId) return null;
|
|
1294
1521
|
for (let e of Y.value) {
|
|
1295
1522
|
if (e.id === f.activeItemId) return [e];
|
|
1296
|
-
let t =
|
|
1523
|
+
let t = xe(e.children, f.activeItemId);
|
|
1297
1524
|
if (t) return [e, ...t];
|
|
1298
1525
|
}
|
|
1299
1526
|
return null;
|
|
1300
|
-
}),
|
|
1527
|
+
}), Te = n(() => {
|
|
1301
1528
|
if (f.breadcrumbs.length) return f.breadcrumbs;
|
|
1302
|
-
let e =
|
|
1529
|
+
let e = we.value;
|
|
1303
1530
|
if (!e?.length) return [];
|
|
1304
1531
|
let t = e.length - 1;
|
|
1305
1532
|
return e.map((e, n) => ({
|
|
@@ -1310,10 +1537,10 @@ var be = /* @__PURE__ */ _e(ge, [["render", ye], ["__file", "/Users/mahmudulhasa
|
|
|
1310
1537
|
menuId: n > 0 && e.children?.length ? e.id : void 0
|
|
1311
1538
|
}));
|
|
1312
1539
|
});
|
|
1313
|
-
function
|
|
1314
|
-
return e.menuId ?
|
|
1540
|
+
function Ee(e) {
|
|
1541
|
+
return e.menuId ? Ce(Y.value, e.menuId) : e.sectionId ? Y.value.find((t) => t.id === e.sectionId) ?? null : null;
|
|
1315
1542
|
}
|
|
1316
|
-
let Oe = n(() => Y.value.find((e) => e.id ===
|
|
1543
|
+
let Oe = n(() => Y.value.find((e) => e.id === I.value) ?? null);
|
|
1317
1544
|
function ke(e, t) {
|
|
1318
1545
|
let n = [], r = e, i = 0;
|
|
1319
1546
|
for (; r.length;) {
|
|
@@ -1326,7 +1553,7 @@ var be = /* @__PURE__ */ _e(ge, [["render", ye], ["__file", "/Users/mahmudulhasa
|
|
|
1326
1553
|
}
|
|
1327
1554
|
return n;
|
|
1328
1555
|
}
|
|
1329
|
-
let Ae = n(() => Oe.value ? ke(Oe.value.children,
|
|
1556
|
+
let Ae = n(() => Oe.value ? ke(Oe.value.children, L.value) : []);
|
|
1330
1557
|
function je(e, t = 10) {
|
|
1331
1558
|
let n = [];
|
|
1332
1559
|
for (let r = 0; r < e.length; r += t) n.push(e.slice(r, r + t));
|
|
@@ -1357,33 +1584,33 @@ var be = /* @__PURE__ */ _e(ge, [["render", ye], ["__file", "/Users/mahmudulhasa
|
|
|
1357
1584
|
}
|
|
1358
1585
|
e.push(t);
|
|
1359
1586
|
}), e.at(-1)?.separator && e.pop(), e;
|
|
1360
|
-
}), X = n(() => !!
|
|
1587
|
+
}), X = n(() => !!g["user-menu"] || Ne.value.some((e) => !e.separator)), Pe = n(() => !!f.user || !!g.user), Fe = n(() => !!(f.client || g.context || g.scope || g.client || g["context-compact"])), Z = n(() => f.favoriteItems.filter(Boolean)), Ie = n(() => G.value || !ae.value), Le = n(() => Z.value.length > 0 && !Ie.value), Re = n(() => Y.value.length > 0 || f.searchable || Me.value.length > 0 || Pe.value || !!(g["drawer-menu"] || g["drawer-actions"] || g["drawer-footer"])), ze = n(() => f.user ? f.user.initials ? f.user.initials : f.user.name.split(/\s+/).filter(Boolean).slice(0, 2).map((e) => e[0]?.toLocaleUpperCase("pt-BR")).join("") : ""), Be = n(() => Ne.value.map((e) => e.separator ? { separator: !0 } : {
|
|
1361
1588
|
label: e.label,
|
|
1362
1589
|
icon: e.icon,
|
|
1363
1590
|
disabled: e.disabled,
|
|
1364
|
-
command: () =>
|
|
1591
|
+
command: () => qe(e)
|
|
1365
1592
|
})), Ve = n(() => {
|
|
1366
1593
|
let e = f.appearance, t = {}, n = (e, n) => {
|
|
1367
1594
|
n !== void 0 && n !== "" && (t[e] = n);
|
|
1368
1595
|
};
|
|
1369
1596
|
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;
|
|
1370
1597
|
}), He = n(() => f.client ? f.client.initials ? f.client.initials : f.client.name.split(/\s+/).filter(Boolean).slice(0, 2).map((e) => e[0]?.toLocaleUpperCase("pt-BR")).join("") : "");
|
|
1371
|
-
function
|
|
1598
|
+
function Ue() {
|
|
1372
1599
|
let e = Math.max(0, window.scrollY);
|
|
1373
|
-
if (!
|
|
1374
|
-
|
|
1600
|
+
if (!G.value && e >= Gn) {
|
|
1601
|
+
G.value = !0;
|
|
1375
1602
|
return;
|
|
1376
1603
|
}
|
|
1377
|
-
|
|
1604
|
+
G.value && e <= Kn && (G.value = !1);
|
|
1378
1605
|
}
|
|
1379
|
-
function
|
|
1380
|
-
let e =
|
|
1381
|
-
!e || !t || (
|
|
1606
|
+
function We() {
|
|
1607
|
+
let e = E.value, t = k.value;
|
|
1608
|
+
!e || !t || (ae.value = t.scrollWidth <= e.clientWidth + 1);
|
|
1382
1609
|
}
|
|
1383
|
-
function
|
|
1610
|
+
function Ge() {
|
|
1384
1611
|
fe = window.requestAnimationFrame(() => {
|
|
1385
1612
|
fe = window.requestAnimationFrame(() => {
|
|
1386
|
-
|
|
1613
|
+
oe.value = !0;
|
|
1387
1614
|
});
|
|
1388
1615
|
});
|
|
1389
1616
|
}
|
|
@@ -1391,52 +1618,52 @@ var be = /* @__PURE__ */ _e(ge, [["render", ye], ["__file", "/Users/mahmudulhasa
|
|
|
1391
1618
|
return typeof window < "u" && window.matchMedia?.("(hover: hover) and (pointer: fine)").matches;
|
|
1392
1619
|
}
|
|
1393
1620
|
function $(e) {
|
|
1394
|
-
e.disabled || (
|
|
1621
|
+
e.disabled || (p("navigate", e), P.value = !1, nr());
|
|
1395
1622
|
}
|
|
1396
|
-
function
|
|
1397
|
-
e.disabled || (e.kind === "aia" ?
|
|
1623
|
+
function Ke(e, t = !1) {
|
|
1624
|
+
e.disabled || (e.kind === "aia" ? p("toggle-aia") : e.kind === "support" ? p("open-support") : p("action", e), B.value = !1, t && (P.value = !1));
|
|
1398
1625
|
}
|
|
1399
|
-
function
|
|
1400
|
-
e.disabled || e.separator || (
|
|
1626
|
+
function qe(e, t = !1) {
|
|
1627
|
+
e.disabled || e.separator || (p("user-action", e), V.value = !1, U.value = !1, t && (P.value = !1));
|
|
1401
1628
|
}
|
|
1402
|
-
function
|
|
1629
|
+
function Je(e) {
|
|
1403
1630
|
if (!X.value) {
|
|
1404
|
-
|
|
1631
|
+
p("user-click", f.user);
|
|
1405
1632
|
return;
|
|
1406
1633
|
}
|
|
1407
|
-
|
|
1634
|
+
re.value?.toggle(e);
|
|
1408
1635
|
}
|
|
1409
|
-
function
|
|
1410
|
-
|
|
1636
|
+
function Ye(e) {
|
|
1637
|
+
K.value = e, p("update:searchValue", e), p("search", e);
|
|
1411
1638
|
}
|
|
1412
|
-
function
|
|
1413
|
-
|
|
1639
|
+
function Xe() {
|
|
1640
|
+
Ye(""), m(() => P.value ? M.value?.focus() : ee.value?.focus());
|
|
1414
1641
|
}
|
|
1415
|
-
function
|
|
1416
|
-
Q() && (
|
|
1642
|
+
function Ze() {
|
|
1643
|
+
Q() && (F.value = !0);
|
|
1417
1644
|
}
|
|
1418
|
-
function
|
|
1419
|
-
!Q() || window.innerWidth < 1024 || (
|
|
1645
|
+
function Qe() {
|
|
1646
|
+
!Q() || window.innerWidth < 1024 || (F.value = !1, I.value = null, L.value = []);
|
|
1420
1647
|
}
|
|
1421
|
-
function
|
|
1648
|
+
function qn() {
|
|
1422
1649
|
if (Q()) {
|
|
1423
|
-
|
|
1650
|
+
F.value = !0;
|
|
1424
1651
|
return;
|
|
1425
1652
|
}
|
|
1426
|
-
|
|
1653
|
+
F.value = !F.value, F.value || (I.value = null, L.value = []);
|
|
1427
1654
|
}
|
|
1428
|
-
function
|
|
1429
|
-
Q() && (
|
|
1655
|
+
function Jn(e) {
|
|
1656
|
+
Q() && (I.value = e, L.value = []);
|
|
1430
1657
|
}
|
|
1431
|
-
function
|
|
1658
|
+
function Yn(e) {
|
|
1432
1659
|
if (Q()) {
|
|
1433
|
-
|
|
1660
|
+
I.value = e, L.value = [];
|
|
1434
1661
|
return;
|
|
1435
1662
|
}
|
|
1436
|
-
let t =
|
|
1437
|
-
|
|
1663
|
+
let t = I.value === e;
|
|
1664
|
+
I.value = t ? null : e, L.value = [];
|
|
1438
1665
|
}
|
|
1439
|
-
function
|
|
1666
|
+
function Xn(e, t, n, r) {
|
|
1440
1667
|
if (r && !Q()) return;
|
|
1441
1668
|
let i = e.value[n];
|
|
1442
1669
|
if (!t.children?.length) {
|
|
@@ -1449,46 +1676,46 @@ var be = /* @__PURE__ */ _e(ge, [["render", ye], ["__file", "/Users/mahmudulhasa
|
|
|
1449
1676
|
}
|
|
1450
1677
|
e.value = i === t.id && !r ? e.value.slice(0, n) : [...e.value.slice(0, n), t.id];
|
|
1451
1678
|
}
|
|
1452
|
-
function
|
|
1453
|
-
|
|
1679
|
+
function Zn(e, t, n) {
|
|
1680
|
+
Xn(L, e, t, n);
|
|
1454
1681
|
}
|
|
1455
|
-
function
|
|
1456
|
-
|
|
1682
|
+
function Qn(e, t, n) {
|
|
1683
|
+
Xn(z, e, t, n);
|
|
1457
1684
|
}
|
|
1458
|
-
function
|
|
1459
|
-
Q() && (
|
|
1685
|
+
function $n(e) {
|
|
1686
|
+
Q() && (R.value = e, z.value = []);
|
|
1460
1687
|
}
|
|
1461
|
-
function
|
|
1462
|
-
!Q() || window.innerWidth < 1024 || (
|
|
1688
|
+
function er() {
|
|
1689
|
+
!Q() || window.innerWidth < 1024 || (R.value = null, z.value = []);
|
|
1463
1690
|
}
|
|
1464
|
-
function
|
|
1691
|
+
function tr(e) {
|
|
1465
1692
|
if (Q()) {
|
|
1466
|
-
|
|
1693
|
+
R.value = e;
|
|
1467
1694
|
return;
|
|
1468
1695
|
}
|
|
1469
|
-
|
|
1696
|
+
R.value = R.value === e ? null : e, z.value = [];
|
|
1470
1697
|
}
|
|
1471
|
-
function
|
|
1472
|
-
|
|
1698
|
+
function nr() {
|
|
1699
|
+
F.value = !1, I.value = null, L.value = [], R.value = null, z.value = [], B.value = !1, V.value = !1, W.value = !1, q.value = !1;
|
|
1473
1700
|
}
|
|
1474
|
-
async function
|
|
1701
|
+
async function rr() {
|
|
1475
1702
|
if (typeof window < "u" && window.innerWidth < 1024) {
|
|
1476
|
-
|
|
1703
|
+
P.value = !0, await m(), M.value?.focus();
|
|
1477
1704
|
return;
|
|
1478
1705
|
}
|
|
1479
|
-
|
|
1706
|
+
se.value = !0, q.value = !0, await m(), ee.value?.focus(), sr();
|
|
1480
1707
|
}
|
|
1481
|
-
function
|
|
1708
|
+
function ir() {
|
|
1482
1709
|
window.setTimeout(() => {
|
|
1483
|
-
|
|
1710
|
+
q.value = !1, J.value.searchIconOnly && !K.value.trim() && (se.value = !1, sr());
|
|
1484
1711
|
}, 150);
|
|
1485
1712
|
}
|
|
1486
|
-
function
|
|
1713
|
+
function ar() {
|
|
1487
1714
|
return Math.round(window.visualViewport?.width ?? window.innerWidth);
|
|
1488
1715
|
}
|
|
1489
|
-
async function
|
|
1490
|
-
if (typeof window > "u" || !
|
|
1491
|
-
let e = ++pe, t =
|
|
1716
|
+
async function or() {
|
|
1717
|
+
if (typeof window > "u" || !T.value) return;
|
|
1718
|
+
let e = ++pe, t = ar();
|
|
1492
1719
|
ce.value = t < 1024;
|
|
1493
1720
|
let n = {
|
|
1494
1721
|
collapseActions: !1,
|
|
@@ -1497,7 +1724,7 @@ var be = /* @__PURE__ */ _e(ge, [["render", ye], ["__file", "/Users/mahmudulhasa
|
|
|
1497
1724
|
hideContextDetails: !1
|
|
1498
1725
|
};
|
|
1499
1726
|
if (t < 1024) {
|
|
1500
|
-
J.value = n,
|
|
1727
|
+
J.value = n, se.value = !1;
|
|
1501
1728
|
return;
|
|
1502
1729
|
}
|
|
1503
1730
|
if (J.value = {
|
|
@@ -1505,150 +1732,150 @@ var be = /* @__PURE__ */ _e(ge, [["render", ye], ["__file", "/Users/mahmudulhasa
|
|
|
1505
1732
|
searchIconOnly: t < 1320,
|
|
1506
1733
|
hideUserName: t < 1180,
|
|
1507
1734
|
hideContextDetails: !1
|
|
1508
|
-
}, await
|
|
1735
|
+
}, await m(), e === pe) for (let t of [
|
|
1509
1736
|
"collapseActions",
|
|
1510
1737
|
"searchIconOnly",
|
|
1511
1738
|
"hideUserName",
|
|
1512
1739
|
"hideContextDetails"
|
|
1513
1740
|
]) {
|
|
1514
|
-
let n =
|
|
1741
|
+
let n = T.value;
|
|
1515
1742
|
if (!n || n.scrollWidth <= n.clientWidth + 1) break;
|
|
1516
1743
|
if (J.value = {
|
|
1517
1744
|
...J.value,
|
|
1518
1745
|
[t]: !0
|
|
1519
|
-
}, await
|
|
1746
|
+
}, await m(), e !== pe) return;
|
|
1520
1747
|
}
|
|
1521
1748
|
}
|
|
1522
|
-
function
|
|
1749
|
+
function sr() {
|
|
1523
1750
|
typeof window > "u" || (de !== void 0 && window.cancelAnimationFrame(de), de = window.requestAnimationFrame(() => {
|
|
1524
|
-
de = void 0,
|
|
1751
|
+
de = void 0, or();
|
|
1525
1752
|
}));
|
|
1526
1753
|
}
|
|
1527
|
-
function
|
|
1754
|
+
function cr(e) {
|
|
1528
1755
|
let t = e.target;
|
|
1529
1756
|
if (t instanceof Element && !t.closest(".top-nav-bar__mobile-menu")) {
|
|
1530
|
-
if (!
|
|
1531
|
-
|
|
1757
|
+
if (!x.value?.contains(t)) {
|
|
1758
|
+
nr();
|
|
1532
1759
|
return;
|
|
1533
1760
|
}
|
|
1534
|
-
t.closest("[data-top-nav-navigation]") || (
|
|
1761
|
+
t.closest("[data-top-nav-navigation]") || (F.value = !1, I.value = null, L.value = []), t.closest("[data-top-nav-breadcrumb]") || (R.value = null, z.value = []), t.closest("[data-top-nav-actions]") || (B.value = !1), t.closest("[data-top-nav-user]") || (V.value = !1), t.closest("[data-top-nav-favorites]") || (W.value = !1), t.closest("[data-top-nav-search]") || (q.value = !1);
|
|
1535
1762
|
}
|
|
1536
1763
|
}
|
|
1537
|
-
function
|
|
1764
|
+
function lr(e) {
|
|
1538
1765
|
if ((e.ctrlKey || e.metaKey) && e.key.toLocaleLowerCase() === "k" && f.searchable) {
|
|
1539
|
-
e.preventDefault(),
|
|
1766
|
+
e.preventDefault(), rr();
|
|
1540
1767
|
return;
|
|
1541
1768
|
}
|
|
1542
1769
|
if (e.key === "Escape") {
|
|
1543
|
-
if (
|
|
1544
|
-
|
|
1770
|
+
if (U.value) {
|
|
1771
|
+
re.value?.hide();
|
|
1545
1772
|
return;
|
|
1546
1773
|
}
|
|
1547
|
-
|
|
1774
|
+
P.value &&= !1, nr(), J.value.searchIconOnly && !K.value.trim() && (se.value = !1);
|
|
1548
1775
|
}
|
|
1549
1776
|
}
|
|
1550
|
-
function
|
|
1777
|
+
function ur() {
|
|
1551
1778
|
if (!X.value) {
|
|
1552
|
-
|
|
1779
|
+
p("user-click", f.user);
|
|
1553
1780
|
return;
|
|
1554
1781
|
}
|
|
1555
1782
|
if (Q()) {
|
|
1556
|
-
|
|
1783
|
+
V.value = !0;
|
|
1557
1784
|
return;
|
|
1558
1785
|
}
|
|
1559
|
-
|
|
1786
|
+
V.value = !V.value;
|
|
1560
1787
|
}
|
|
1561
|
-
function
|
|
1788
|
+
function dr() {
|
|
1562
1789
|
if (Q()) {
|
|
1563
|
-
|
|
1790
|
+
W.value = !0;
|
|
1564
1791
|
return;
|
|
1565
1792
|
}
|
|
1566
|
-
|
|
1793
|
+
W.value = !W.value;
|
|
1567
1794
|
}
|
|
1568
|
-
return
|
|
1569
|
-
e !== void 0 && e !==
|
|
1570
|
-
}),
|
|
1571
|
-
e !== void 0 && e !==
|
|
1572
|
-
}),
|
|
1795
|
+
return A(() => f.searchValue, (e) => {
|
|
1796
|
+
e !== void 0 && e !== K.value && (K.value = e);
|
|
1797
|
+
}), A(() => f.mobileOpen, (e) => {
|
|
1798
|
+
e !== void 0 && e !== P.value && (P.value = e);
|
|
1799
|
+
}), A(P, (e) => p("update:mobileOpen", e)), A([
|
|
1573
1800
|
Y,
|
|
1574
1801
|
() => f.user,
|
|
1575
1802
|
Me
|
|
1576
|
-
], () =>
|
|
1577
|
-
document.addEventListener("keydown",
|
|
1578
|
-
|
|
1803
|
+
], () => m(sr), { deep: !0 }), A(Z, () => m(We), { deep: !0 }), y(() => {
|
|
1804
|
+
document.addEventListener("keydown", lr), document.addEventListener("pointerdown", cr), window.addEventListener("resize", sr), window.visualViewport?.addEventListener("resize", sr), window.addEventListener("resize", We), window.addEventListener("scroll", Ue, { passive: !0 }), typeof ResizeObserver < "u" && (le = new ResizeObserver(sr), T.value && le.observe(T.value), ue = new ResizeObserver(We), E.value && ue.observe(E.value)), sr(), m(() => {
|
|
1805
|
+
We(), Ue(), Ge();
|
|
1579
1806
|
});
|
|
1580
|
-
}),
|
|
1581
|
-
document.removeEventListener("keydown",
|
|
1807
|
+
}), v(() => {
|
|
1808
|
+
document.removeEventListener("keydown", lr), document.removeEventListener("pointerdown", cr), window.removeEventListener("resize", sr), window.visualViewport?.removeEventListener("resize", sr), window.removeEventListener("resize", We), window.removeEventListener("scroll", Ue), le?.disconnect(), ue?.disconnect(), de !== void 0 && window.cancelAnimationFrame(de), fe !== void 0 && window.cancelAnimationFrame(fe);
|
|
1582
1809
|
}), u({
|
|
1583
|
-
close:
|
|
1810
|
+
close: nr,
|
|
1584
1811
|
closeDrawer: () => {
|
|
1585
|
-
|
|
1812
|
+
P.value = !1;
|
|
1586
1813
|
},
|
|
1587
|
-
focusSearch:
|
|
1814
|
+
focusSearch: rr,
|
|
1588
1815
|
openDrawer: () => {
|
|
1589
|
-
|
|
1816
|
+
P.value = !0;
|
|
1590
1817
|
}
|
|
1591
|
-
}), (n, u) => (
|
|
1818
|
+
}), (n, u) => (b(), a("nav", {
|
|
1592
1819
|
ref_key: "rootRef",
|
|
1593
|
-
ref:
|
|
1820
|
+
ref: x,
|
|
1594
1821
|
class: "top-nav-bar top-solutions-component",
|
|
1595
|
-
style:
|
|
1822
|
+
style: _(Ve.value),
|
|
1596
1823
|
"aria-label": "Navegação principal"
|
|
1597
1824
|
}, [
|
|
1598
1825
|
o("header", {
|
|
1599
1826
|
ref_key: "headerRef",
|
|
1600
|
-
ref:
|
|
1601
|
-
class:
|
|
1827
|
+
ref: T,
|
|
1828
|
+
class: h(["top-nav-bar__header", { "top-nav-bar__header--context-compact": J.value.hideContextDetails }])
|
|
1602
1829
|
}, [
|
|
1603
|
-
Re.value ? (
|
|
1830
|
+
Re.value ? (b(), a("button", {
|
|
1604
1831
|
key: 0,
|
|
1605
1832
|
class: "top-nav-bar__mobile-trigger top-nav-bar__square-button",
|
|
1606
1833
|
type: "button",
|
|
1607
1834
|
"aria-label": "Abrir navegação",
|
|
1608
|
-
"aria-expanded":
|
|
1609
|
-
onClick: u[0] ||= (e) =>
|
|
1835
|
+
"aria-expanded": P.value,
|
|
1836
|
+
onClick: u[0] ||= (e) => P.value = !P.value
|
|
1610
1837
|
}, [...u[19] ||= [o("i", {
|
|
1611
1838
|
class: "pi pi-bars",
|
|
1612
1839
|
"aria-hidden": "true"
|
|
1613
|
-
}, null, -1)]], 8,
|
|
1614
|
-
o("div",
|
|
1615
|
-
Fe.value ? (
|
|
1616
|
-
Fe.value ? (
|
|
1840
|
+
}, null, -1)]], 8, et)) : i("", !0),
|
|
1841
|
+
o("div", tt, [w(n.$slots, "brand", { compact: J.value.hideContextDetails })]),
|
|
1842
|
+
Fe.value ? (b(), a("div", nt)) : i("", !0),
|
|
1843
|
+
Fe.value ? (b(), a("div", rt, [J.value.hideContextDetails && n.$slots["context-compact"] ? w(n.$slots, "context-compact", {
|
|
1617
1844
|
client: s.client,
|
|
1618
1845
|
compact: !0
|
|
1619
|
-
}, void 0, void 0, 0) : n.$slots.context ?
|
|
1846
|
+
}, void 0, void 0, 0) : n.$slots.context ? w(n.$slots, "context", {
|
|
1620
1847
|
client: s.client,
|
|
1621
1848
|
compact: J.value.hideContextDetails
|
|
1622
|
-
}, void 0, void 0, 1) : n.$slots.scope ?
|
|
1849
|
+
}, void 0, void 0, 1) : n.$slots.scope ? w(n.$slots, "scope", {
|
|
1623
1850
|
client: s.client,
|
|
1624
1851
|
compact: J.value.hideContextDetails
|
|
1625
|
-
}, void 0, void 0, 2) :
|
|
1852
|
+
}, void 0, void 0, 2) : w(n.$slots, "client", {
|
|
1626
1853
|
client: s.client,
|
|
1627
1854
|
compact: J.value.hideContextDetails
|
|
1628
|
-
}, () => [s.client ? (
|
|
1855
|
+
}, () => [s.client ? (b(), a("div", it, [s.client.logoUrl ? (b(), a("img", {
|
|
1629
1856
|
key: 0,
|
|
1630
1857
|
src: s.client.logoUrl,
|
|
1631
1858
|
alt: "",
|
|
1632
1859
|
class: "top-nav-bar__client-logo"
|
|
1633
|
-
}, null, 8,
|
|
1860
|
+
}, null, 8, at)) : (b(), a("span", ot, D(He.value), 1)), J.value.hideContextDetails ? i("", !0) : (b(), a("span", st, [o("span", ct, D(s.client.name), 1), s.client.subtitle ? (b(), a("span", lt, D(s.client.subtitle), 1)) : i("", !0)]))])) : i("", !0)], void 0, 3)])) : i("", !0),
|
|
1634
1861
|
u[24] ||= o("div", {
|
|
1635
1862
|
class: "top-nav-bar__spacer",
|
|
1636
1863
|
"aria-hidden": "true"
|
|
1637
1864
|
}, null, -1),
|
|
1638
|
-
o("div",
|
|
1639
|
-
s.searchable ? (
|
|
1865
|
+
o("div", ut, [
|
|
1866
|
+
s.searchable ? (b(), a("div", dt, [J.value.searchIconOnly && !se.value ? (b(), a("button", {
|
|
1640
1867
|
key: 0,
|
|
1641
1868
|
class: "top-nav-bar__square-button",
|
|
1642
1869
|
type: "button",
|
|
1643
1870
|
"aria-label": "Pesquisar no menu",
|
|
1644
1871
|
title: "Pesquisar no menu (Ctrl+K)",
|
|
1645
|
-
onClick:
|
|
1872
|
+
onClick: rr
|
|
1646
1873
|
}, [...u[20] ||= [o("i", {
|
|
1647
1874
|
class: "pi pi-search",
|
|
1648
1875
|
"aria-hidden": "true"
|
|
1649
|
-
}, null, -1)]])) : (
|
|
1876
|
+
}, null, -1)]])) : (b(), a("div", {
|
|
1650
1877
|
key: 1,
|
|
1651
|
-
class:
|
|
1878
|
+
class: h(["top-nav-bar__search", { "top-nav-bar__search--expanded": se.value }])
|
|
1652
1879
|
}, [
|
|
1653
1880
|
u[22] ||= o("i", {
|
|
1654
1881
|
class: "pi pi-search",
|
|
@@ -1656,363 +1883,363 @@ var be = /* @__PURE__ */ _e(ge, [["render", ye], ["__file", "/Users/mahmudulhasa
|
|
|
1656
1883
|
}, null, -1),
|
|
1657
1884
|
o("input", {
|
|
1658
1885
|
ref_key: "searchInputRef",
|
|
1659
|
-
ref:
|
|
1660
|
-
value:
|
|
1886
|
+
ref: ee,
|
|
1887
|
+
value: K.value,
|
|
1661
1888
|
type: "text",
|
|
1662
1889
|
role: "searchbox",
|
|
1663
1890
|
placeholder: s.searchPlaceholder,
|
|
1664
1891
|
"aria-label": "Pesquisar no menu",
|
|
1665
|
-
onFocus: u[1] ||= (e) =>
|
|
1666
|
-
onBlur:
|
|
1667
|
-
onInput: u[2] ||= (e) =>
|
|
1668
|
-
}, null, 40,
|
|
1669
|
-
|
|
1892
|
+
onFocus: u[1] ||= (e) => q.value = !0,
|
|
1893
|
+
onBlur: ir,
|
|
1894
|
+
onInput: u[2] ||= (e) => Ye(e.target.value)
|
|
1895
|
+
}, null, 40, ft),
|
|
1896
|
+
K.value || J.value.searchIconOnly && se.value ? (b(), a("button", {
|
|
1670
1897
|
key: 0,
|
|
1671
1898
|
class: "top-nav-bar__search-clear",
|
|
1672
1899
|
type: "button",
|
|
1673
|
-
"aria-label":
|
|
1674
|
-
onMousedown: u[3] ||=
|
|
1675
|
-
onClick: u[4] ||= (e) =>
|
|
1900
|
+
"aria-label": K.value ? "Limpar pesquisa" : "Fechar pesquisa",
|
|
1901
|
+
onMousedown: u[3] ||= N(() => {}, ["prevent"]),
|
|
1902
|
+
onClick: u[4] ||= (e) => K.value ? Xe() : se.value = !1
|
|
1676
1903
|
}, [...u[21] ||= [o("i", {
|
|
1677
1904
|
class: "pi pi-times",
|
|
1678
1905
|
"aria-hidden": "true"
|
|
1679
|
-
}, null, -1)]], 40,
|
|
1680
|
-
|
|
1681
|
-
items:
|
|
1906
|
+
}, null, -1)]], 40, pt)) : i("", !0),
|
|
1907
|
+
q.value ? (b(), a("div", mt, [o("div", ht, [w(n.$slots, "search-results", {
|
|
1908
|
+
items: ve.value,
|
|
1682
1909
|
select: $
|
|
1683
|
-
}, () => [(
|
|
1910
|
+
}, () => [(b(!0), a(e, null, C(ve.value, (e) => (b(), a("button", {
|
|
1684
1911
|
key: e.id,
|
|
1685
1912
|
class: "top-nav-bar__menu-item",
|
|
1686
1913
|
type: "button",
|
|
1687
1914
|
role: "menuitem",
|
|
1688
1915
|
disabled: e.disabled,
|
|
1689
|
-
onMousedown: u[5] ||=
|
|
1916
|
+
onMousedown: u[5] ||= N(() => {}, ["prevent"]),
|
|
1690
1917
|
onClick: (t) => $(e)
|
|
1691
|
-
}, [e.icon ? (
|
|
1918
|
+
}, [e.icon ? (b(), a("i", {
|
|
1692
1919
|
key: 0,
|
|
1693
|
-
class:
|
|
1920
|
+
class: h(e.icon),
|
|
1694
1921
|
"aria-hidden": "true"
|
|
1695
|
-
}, null, 2)) : i("", !0), o("span", null,
|
|
1922
|
+
}, null, 2)) : i("", !0), o("span", null, D(e.label), 1)], 40, gt))), 128)), ve.value.length ? i("", !0) : (b(), a("span", _t, "Nenhum item encontrado."))])])])) : i("", !0)
|
|
1696
1923
|
], 2))])) : i("", !0),
|
|
1697
|
-
Me.value.length ? (
|
|
1924
|
+
Me.value.length ? (b(), a("div", vt, [J.value.collapseActions ? (b(), a(e, { key: 1 }, [o("button", {
|
|
1698
1925
|
class: "top-nav-bar__square-button",
|
|
1699
1926
|
type: "button",
|
|
1700
1927
|
"aria-label": "Mais ações",
|
|
1701
|
-
"aria-expanded":
|
|
1702
|
-
onClick: u[6] ||= (e) =>
|
|
1928
|
+
"aria-expanded": B.value,
|
|
1929
|
+
onClick: u[6] ||= (e) => B.value = !B.value
|
|
1703
1930
|
}, [...u[23] ||= [o("i", {
|
|
1704
1931
|
class: "pi pi-ellipsis-h",
|
|
1705
1932
|
"aria-hidden": "true"
|
|
1706
|
-
}, null, -1)]], 8,
|
|
1933
|
+
}, null, -1)]], 8, bt), B.value ? (b(), a("div", xt, [o("div", St, [(b(!0), a(e, null, C(Me.value, (e) => (b(), a("button", {
|
|
1707
1934
|
key: e.id,
|
|
1708
1935
|
class: "top-nav-bar__menu-item",
|
|
1709
1936
|
type: "button",
|
|
1710
1937
|
role: "menuitem",
|
|
1711
1938
|
disabled: e.disabled,
|
|
1712
|
-
onClick: (t) =>
|
|
1939
|
+
onClick: (t) => Ke(e)
|
|
1713
1940
|
}, [o("i", {
|
|
1714
|
-
class:
|
|
1941
|
+
class: h(e.icon),
|
|
1715
1942
|
"aria-hidden": "true"
|
|
1716
|
-
}, null, 2), o("span", null,
|
|
1943
|
+
}, null, 2), o("span", null, D(e.label), 1)], 8, Ct))), 128))])])) : i("", !0)], 64)) : (b(!0), a(e, { key: 0 }, C(Me.value, (e) => (b(), a("button", {
|
|
1717
1944
|
key: e.id,
|
|
1718
|
-
class:
|
|
1945
|
+
class: h(["top-nav-bar__square-button", { "top-nav-bar__square-button--active": e.kind === "aia" && s.aiaActive }]),
|
|
1719
1946
|
type: "button",
|
|
1720
1947
|
disabled: e.disabled,
|
|
1721
1948
|
"aria-label": e.label,
|
|
1722
1949
|
"aria-pressed": e.kind === "aia" ? s.aiaActive : void 0,
|
|
1723
1950
|
title: e.label,
|
|
1724
|
-
onClick: (t) =>
|
|
1725
|
-
}, [e.kind === "aia" ?
|
|
1726
|
-
class:
|
|
1951
|
+
onClick: (t) => Ke(e)
|
|
1952
|
+
}, [e.kind === "aia" ? w(n.$slots, "aia-icon", {}, () => [o("i", {
|
|
1953
|
+
class: h(e.icon),
|
|
1727
1954
|
"aria-hidden": "true"
|
|
1728
|
-
}, null, 2)], void 0, 0) : e.kind === "support" ?
|
|
1729
|
-
class:
|
|
1955
|
+
}, null, 2)], void 0, 0) : e.kind === "support" ? w(n.$slots, "support-icon", {}, () => [o("i", {
|
|
1956
|
+
class: h(e.icon),
|
|
1730
1957
|
"aria-hidden": "true"
|
|
1731
|
-
}, null, 2)], void 0, 1) : (
|
|
1958
|
+
}, null, 2)], void 0, 1) : (b(), a("i", {
|
|
1732
1959
|
key: 2,
|
|
1733
|
-
class:
|
|
1960
|
+
class: h(e.icon),
|
|
1734
1961
|
"aria-hidden": "true"
|
|
1735
|
-
}, null, 2))], 10,
|
|
1736
|
-
n.$slots.actions ? (
|
|
1962
|
+
}, null, 2))], 10, yt))), 128))])) : i("", !0),
|
|
1963
|
+
n.$slots.actions ? (b(), a("div", wt, [w(n.$slots, "actions", {
|
|
1737
1964
|
compact: J.value.collapseActions,
|
|
1738
|
-
close:
|
|
1965
|
+
close: nr
|
|
1739
1966
|
})])) : i("", !0),
|
|
1740
|
-
Pe.value ? (
|
|
1967
|
+
Pe.value ? (b(), a("div", {
|
|
1741
1968
|
key: 3,
|
|
1742
1969
|
class: "top-nav-bar__user-menu",
|
|
1743
1970
|
"data-top-nav-user": "",
|
|
1744
|
-
onMouseenter: u[7] ||= (e) => X.value && Q() && (
|
|
1745
|
-
onMouseleave: u[8] ||= (e) => Q() && (
|
|
1971
|
+
onMouseenter: u[7] ||= (e) => X.value && Q() && (V.value = !0),
|
|
1972
|
+
onMouseleave: u[8] ||= (e) => Q() && (V.value = !1)
|
|
1746
1973
|
}, [o("button", {
|
|
1747
1974
|
class: "top-nav-bar__user-trigger",
|
|
1748
1975
|
type: "button",
|
|
1749
1976
|
"aria-haspopup": X.value ? "menu" : void 0,
|
|
1750
|
-
"aria-expanded": X.value ?
|
|
1751
|
-
onClick:
|
|
1752
|
-
}, [
|
|
1977
|
+
"aria-expanded": X.value ? V.value : void 0,
|
|
1978
|
+
onClick: ur
|
|
1979
|
+
}, [w(n.$slots, "user", {
|
|
1753
1980
|
user: s.user,
|
|
1754
1981
|
compact: J.value.hideUserName
|
|
1755
|
-
}, () => [s.user?.avatarUrl ? (
|
|
1982
|
+
}, () => [s.user?.avatarUrl ? (b(), a("img", {
|
|
1756
1983
|
key: 0,
|
|
1757
1984
|
src: s.user.avatarUrl,
|
|
1758
1985
|
alt: "",
|
|
1759
1986
|
class: "top-nav-bar__user-avatar"
|
|
1760
|
-
}, null, 8,
|
|
1987
|
+
}, null, 8, Et)) : (b(), a("span", Dt, D(ze.value), 1)), s.user && !J.value.hideUserName ? (b(), a("span", Ot, [o("span", kt, D(s.user.name), 1), s.user.subtitle ? (b(), a("span", At, D(s.user.subtitle), 1)) : i("", !0)])) : i("", !0)]), X.value ? (b(), a("i", jt)) : i("", !0)], 8, Tt), X.value && V.value ? (b(), a("div", Mt, [o("div", Nt, [w(n.$slots, "user-menu", {
|
|
1761
1988
|
items: Ne.value,
|
|
1762
|
-
select:
|
|
1763
|
-
}, () => [(
|
|
1989
|
+
select: qe
|
|
1990
|
+
}, () => [(b(!0), a(e, null, C(Ne.value, (t) => (b(), a(e, { key: t.id }, [t.separator ? (b(), a("div", Pt)) : (b(), a("button", {
|
|
1764
1991
|
key: 1,
|
|
1765
1992
|
class: "top-nav-bar__menu-item",
|
|
1766
1993
|
type: "button",
|
|
1767
1994
|
role: "menuitem",
|
|
1768
1995
|
disabled: t.disabled,
|
|
1769
|
-
onClick: (e) =>
|
|
1770
|
-
}, [t.icon ? (
|
|
1996
|
+
onClick: (e) => qe(t)
|
|
1997
|
+
}, [t.icon ? (b(), a("i", {
|
|
1771
1998
|
key: 0,
|
|
1772
|
-
class:
|
|
1999
|
+
class: h(t.icon),
|
|
1773
2000
|
"aria-hidden": "true"
|
|
1774
|
-
}, null, 2)) : i("", !0), o("span", null,
|
|
2001
|
+
}, null, 2)) : i("", !0), o("span", null, D(t.label), 1)], 8, Ft))], 64))), 128))])])])) : i("", !0)], 32)) : i("", !0)
|
|
1775
2002
|
])
|
|
1776
2003
|
], 2),
|
|
1777
|
-
o("div",
|
|
2004
|
+
o("div", It, [
|
|
1778
2005
|
o("button", {
|
|
1779
2006
|
class: "top-nav-bar__crumb",
|
|
1780
2007
|
type: "button",
|
|
1781
2008
|
onClick: u[9] ||= (e) => $(s.homeItem)
|
|
1782
|
-
}, [l(
|
|
1783
|
-
Y.value.length ? (
|
|
1784
|
-
Y.value.length ? (
|
|
2009
|
+
}, [l(O(De), { icon: O(Se) }, null, 8, ["icon"]), o("span", null, D(s.homeItem.label), 1)]),
|
|
2010
|
+
Y.value.length ? (b(), a("span", Lt, "/")) : i("", !0),
|
|
2011
|
+
Y.value.length ? (b(), a("div", {
|
|
1785
2012
|
key: 1,
|
|
1786
2013
|
class: "top-nav-bar__dropdown top-nav-bar__desktop-navigation",
|
|
1787
2014
|
"data-top-nav-navigation": "",
|
|
1788
|
-
onMouseenter:
|
|
1789
|
-
onMouseleave:
|
|
2015
|
+
onMouseenter: Ze,
|
|
2016
|
+
onMouseleave: Qe
|
|
1790
2017
|
}, [o("button", {
|
|
1791
2018
|
class: "top-nav-bar__crumb",
|
|
1792
2019
|
type: "button",
|
|
1793
2020
|
"aria-haspopup": "menu",
|
|
1794
|
-
"aria-expanded":
|
|
1795
|
-
onClick:
|
|
2021
|
+
"aria-expanded": F.value,
|
|
2022
|
+
onClick: qn
|
|
1796
2023
|
}, [
|
|
1797
2024
|
u[25] ||= o("i", {
|
|
1798
2025
|
class: "pi pi-bars",
|
|
1799
2026
|
"aria-hidden": "true"
|
|
1800
2027
|
}, null, -1),
|
|
1801
|
-
o("span", null,
|
|
2028
|
+
o("span", null, D(s.navigationLabel), 1),
|
|
1802
2029
|
u[26] ||= o("i", {
|
|
1803
2030
|
class: "pi pi-chevron-down top-nav-bar__chevron",
|
|
1804
2031
|
"aria-hidden": "true"
|
|
1805
2032
|
}, null, -1)
|
|
1806
|
-
], 8,
|
|
2033
|
+
], 8, Rt), F.value ? (b(), a("div", zt, [o("div", Bt, [o("div", Vt, [(b(!0), a(e, null, C(Y.value, (e) => (b(), a("button", {
|
|
1807
2034
|
key: e.id,
|
|
1808
|
-
class:
|
|
2035
|
+
class: h(["top-nav-bar__menu-item", { "top-nav-bar__menu-item--explored": I.value === e.id }]),
|
|
1809
2036
|
type: "button",
|
|
1810
2037
|
role: "menuitem",
|
|
1811
2038
|
"aria-haspopup": "menu",
|
|
1812
|
-
"aria-expanded":
|
|
1813
|
-
onMouseenter: (t) =>
|
|
1814
|
-
onClick: (t) =>
|
|
2039
|
+
"aria-expanded": I.value === e.id,
|
|
2040
|
+
onMouseenter: (t) => Jn(e.id),
|
|
2041
|
+
onClick: (t) => Yn(e.id)
|
|
1815
2042
|
}, [
|
|
1816
|
-
e.icon ? (
|
|
2043
|
+
e.icon ? (b(), a("i", {
|
|
1817
2044
|
key: 0,
|
|
1818
|
-
class:
|
|
2045
|
+
class: h(e.icon),
|
|
1819
2046
|
"aria-hidden": "true"
|
|
1820
2047
|
}, null, 2)) : i("", !0),
|
|
1821
|
-
o("span",
|
|
1822
|
-
o("span",
|
|
2048
|
+
o("span", Ut, D(e.label), 1),
|
|
2049
|
+
o("span", Wt, D(e.children.length), 1),
|
|
1823
2050
|
u[27] ||= o("i", {
|
|
1824
2051
|
class: "pi pi-chevron-right top-nav-bar__menu-arrow",
|
|
1825
2052
|
"aria-hidden": "true"
|
|
1826
2053
|
}, null, -1)
|
|
1827
|
-
], 42,
|
|
2054
|
+
], 42, Ht))), 128))]), Oe.value ? (b(), a("div", Gt, [(b(!0), a(e, null, C(Ae.value, (t, n) => (b(), a("div", {
|
|
1828
2055
|
key: `navigation-level-${n}`,
|
|
1829
|
-
class:
|
|
2056
|
+
class: h(["top-nav-bar__cascade-level", { "top-nav-bar__section-items": n === 0 }]),
|
|
1830
2057
|
role: "menu"
|
|
1831
|
-
}, [(
|
|
2058
|
+
}, [(b(!0), a(e, null, C(je(t), (t, r) => (b(), a("div", {
|
|
1832
2059
|
key: `navigation-${n}-${r}`,
|
|
1833
2060
|
class: "top-nav-bar__menu-column"
|
|
1834
|
-
}, [(
|
|
2061
|
+
}, [(b(!0), a(e, null, C(t, (e) => (b(), a("button", {
|
|
1835
2062
|
key: e.id,
|
|
1836
|
-
class:
|
|
2063
|
+
class: h(["top-nav-bar__menu-item", { "top-nav-bar__menu-item--explored": L.value[n] === e.id }]),
|
|
1837
2064
|
type: "button",
|
|
1838
2065
|
role: "menuitem",
|
|
1839
2066
|
disabled: e.disabled,
|
|
1840
2067
|
"aria-haspopup": e.children?.length ? "menu" : void 0,
|
|
1841
|
-
"aria-expanded": e.children?.length ?
|
|
1842
|
-
onMouseenter: (t) =>
|
|
1843
|
-
onClick: (t) =>
|
|
2068
|
+
"aria-expanded": e.children?.length ? L.value[n] === e.id : void 0,
|
|
2069
|
+
onMouseenter: (t) => Zn(e, n, !0),
|
|
2070
|
+
onClick: (t) => Zn(e, n, !1)
|
|
1844
2071
|
}, [
|
|
1845
|
-
e.icon ? (
|
|
2072
|
+
e.icon ? (b(), a("i", {
|
|
1846
2073
|
key: 0,
|
|
1847
|
-
class:
|
|
2074
|
+
class: h(e.icon),
|
|
1848
2075
|
"aria-hidden": "true"
|
|
1849
2076
|
}, null, 2)) : i("", !0),
|
|
1850
|
-
o("span",
|
|
1851
|
-
e.children?.length ? (
|
|
1852
|
-
], 42,
|
|
1853
|
-
(
|
|
1854
|
-
class:
|
|
2077
|
+
o("span", qt, D(e.label), 1),
|
|
2078
|
+
e.children?.length ? (b(), a("i", Jt)) : i("", !0)
|
|
2079
|
+
], 42, Kt))), 128))]))), 128))], 2))), 128))])) : i("", !0)])])) : i("", !0)], 32)) : i("", !0),
|
|
2080
|
+
(b(!0), a(e, null, C(Te.value, (t, n) => (b(), a(e, { key: t.id }, [o("span", {
|
|
2081
|
+
class: h(["top-nav-bar__separator", { "top-nav-bar__separator--current": !t.to && n === Te.value.length - 1 }]),
|
|
1855
2082
|
"aria-hidden": "true"
|
|
1856
|
-
}, "/", 2),
|
|
2083
|
+
}, "/", 2), Ee(t)?.children?.length ? (b(), a("div", {
|
|
1857
2084
|
key: 0,
|
|
1858
2085
|
class: "top-nav-bar__dropdown top-nav-bar__breadcrumb-dropdown",
|
|
1859
2086
|
"data-top-nav-breadcrumb": "",
|
|
1860
|
-
onMouseenter: (e) => !ce.value &&
|
|
1861
|
-
onMouseleave: u[10] ||= (e) => !ce.value &&
|
|
1862
|
-
}, [ce.value ? (
|
|
2087
|
+
onMouseenter: (e) => !ce.value && $n(t.id),
|
|
2088
|
+
onMouseleave: u[10] ||= (e) => !ce.value && er()
|
|
2089
|
+
}, [ce.value ? (b(), a("span", Xt, D(t.label), 1)) : (b(), a("button", {
|
|
1863
2090
|
key: 1,
|
|
1864
2091
|
class: "top-nav-bar__crumb",
|
|
1865
2092
|
type: "button",
|
|
1866
2093
|
"aria-haspopup": "menu",
|
|
1867
|
-
"aria-expanded":
|
|
1868
|
-
onClick: (e) =>
|
|
1869
|
-
}, [o("span", null,
|
|
2094
|
+
"aria-expanded": R.value === t.id,
|
|
2095
|
+
onClick: (e) => tr(t.id)
|
|
2096
|
+
}, [o("span", null, D(t.label), 1), u[28] ||= o("i", {
|
|
1870
2097
|
class: "pi pi-chevron-down top-nav-bar__chevron",
|
|
1871
2098
|
"aria-hidden": "true"
|
|
1872
|
-
}, null, -1)], 8,
|
|
2099
|
+
}, null, -1)], 8, Zt)), !ce.value && R.value === t.id ? (b(), a("div", Qt, [o("div", $t, [(b(!0), a(e, null, C(ke(Ee(t)?.children ?? [], z.value), (n, r) => (b(), a("div", {
|
|
1873
2100
|
key: `breadcrumb-${t.id}-${r}`,
|
|
1874
|
-
class:
|
|
1875
|
-
}, [(
|
|
2101
|
+
class: h(["top-nav-bar__cascade-level", { "top-nav-bar__breadcrumb-main-items": r === 0 }])
|
|
2102
|
+
}, [(b(!0), a(e, null, C(je(n), (n, s) => (b(), a("div", {
|
|
1876
2103
|
key: `breadcrumb-${t.id}-${r}-${s}`,
|
|
1877
2104
|
class: "top-nav-bar__menu-column"
|
|
1878
|
-
}, [(
|
|
2105
|
+
}, [(b(!0), a(e, null, C(n, (e) => (b(), a("button", {
|
|
1879
2106
|
key: e.id,
|
|
1880
|
-
class:
|
|
2107
|
+
class: h(["top-nav-bar__menu-item", { "top-nav-bar__menu-item--explored": z.value[r] === e.id }]),
|
|
1881
2108
|
type: "button",
|
|
1882
2109
|
role: "menuitem",
|
|
1883
2110
|
disabled: e.disabled,
|
|
1884
|
-
onMouseenter: (t) =>
|
|
1885
|
-
onClick: (t) =>
|
|
2111
|
+
onMouseenter: (t) => Qn(e, r, !0),
|
|
2112
|
+
onClick: (t) => Qn(e, r, !1)
|
|
1886
2113
|
}, [
|
|
1887
|
-
e.icon ? (
|
|
2114
|
+
e.icon ? (b(), a("i", {
|
|
1888
2115
|
key: 0,
|
|
1889
|
-
class:
|
|
2116
|
+
class: h(e.icon),
|
|
1890
2117
|
"aria-hidden": "true"
|
|
1891
2118
|
}, null, 2)) : i("", !0),
|
|
1892
|
-
o("span",
|
|
1893
|
-
e.children?.length ? (
|
|
1894
|
-
], 42,
|
|
2119
|
+
o("span", tn, D(e.label), 1),
|
|
2120
|
+
e.children?.length ? (b(), a("i", nn)) : i("", !0)
|
|
2121
|
+
], 42, en))), 128))]))), 128))], 2))), 128))])])) : i("", !0)], 40, Yt)) : t.to ? (b(), a("button", {
|
|
1895
2122
|
key: 1,
|
|
1896
2123
|
class: "top-nav-bar__crumb",
|
|
1897
2124
|
type: "button",
|
|
1898
2125
|
onClick: (e) => $(t)
|
|
1899
|
-
},
|
|
2126
|
+
}, D(t.label), 9, rn)) : (b(), a("span", {
|
|
1900
2127
|
key: 2,
|
|
1901
2128
|
class: "top-nav-bar__current",
|
|
1902
2129
|
title: t.label
|
|
1903
|
-
}, [o("span",
|
|
2130
|
+
}, [o("span", on, D(t.label), 1), s.showFavoriteToggle ? (b(), a("button", {
|
|
1904
2131
|
key: 0,
|
|
1905
2132
|
class: "top-nav-bar__favorite-toggle",
|
|
1906
2133
|
type: "button",
|
|
1907
2134
|
"aria-label": s.favoriteActive ? "Remover dos favoritos" : "Adicionar aos favoritos",
|
|
1908
2135
|
"aria-pressed": s.favoriteActive,
|
|
1909
|
-
onClick: u[11] ||=
|
|
2136
|
+
onClick: u[11] ||= N((e) => p("toggle-favorite"), ["stop"])
|
|
1910
2137
|
}, [o("i", {
|
|
1911
|
-
class:
|
|
2138
|
+
class: h(s.favoriteActive ? "pi pi-star-fill" : "pi pi-star"),
|
|
1912
2139
|
"aria-hidden": "true"
|
|
1913
|
-
}, null, 2)], 8,
|
|
1914
|
-
o("div",
|
|
2140
|
+
}, null, 2)], 8, sn)) : i("", !0)], 8, an))], 64))), 128)),
|
|
2141
|
+
o("div", cn, [l(t, {
|
|
1915
2142
|
name: "top-nav-bar-favorites-trigger",
|
|
1916
|
-
css:
|
|
2143
|
+
css: oe.value
|
|
1917
2144
|
}, {
|
|
1918
|
-
default:
|
|
2145
|
+
default: j(() => [Ie.value && Z.value.length ? (b(), a("div", {
|
|
1919
2146
|
key: 0,
|
|
1920
2147
|
class: "top-nav-bar__favorites-menu top-nav-bar__desktop-only",
|
|
1921
2148
|
"data-top-nav-favorites": "",
|
|
1922
|
-
onMouseenter: u[12] ||= (e) => Q() && (
|
|
1923
|
-
onMouseleave: u[13] ||= (e) => Q() && (
|
|
2149
|
+
onMouseenter: u[12] ||= (e) => Q() && (W.value = !0),
|
|
2150
|
+
onMouseleave: u[13] ||= (e) => Q() && (W.value = !1)
|
|
1924
2151
|
}, [o("button", {
|
|
1925
2152
|
class: "top-nav-bar__crumb",
|
|
1926
2153
|
type: "button",
|
|
1927
2154
|
"aria-haspopup": "menu",
|
|
1928
|
-
"aria-expanded":
|
|
1929
|
-
onClick:
|
|
2155
|
+
"aria-expanded": W.value,
|
|
2156
|
+
onClick: dr
|
|
1930
2157
|
}, [
|
|
1931
2158
|
u[29] ||= o("i", {
|
|
1932
2159
|
class: "pi pi-star-fill top-nav-bar__accent",
|
|
1933
2160
|
"aria-hidden": "true"
|
|
1934
2161
|
}, null, -1),
|
|
1935
|
-
o("span", null,
|
|
2162
|
+
o("span", null, D(s.favoriteLabel), 1),
|
|
1936
2163
|
u[30] ||= o("i", {
|
|
1937
2164
|
class: "pi pi-chevron-down top-nav-bar__chevron",
|
|
1938
2165
|
"aria-hidden": "true"
|
|
1939
2166
|
}, null, -1)
|
|
1940
|
-
], 8,
|
|
2167
|
+
], 8, ln), W.value ? (b(), a("div", un, [o("div", dn, [(b(!0), a(e, null, C(Z.value, (e) => (b(), a("button", {
|
|
1941
2168
|
key: e.id,
|
|
1942
2169
|
class: "top-nav-bar__menu-item",
|
|
1943
2170
|
type: "button",
|
|
1944
2171
|
role: "menuitem",
|
|
1945
2172
|
disabled: e.disabled,
|
|
1946
2173
|
onClick: (t) => $(e)
|
|
1947
|
-
}, [e.icon ? (
|
|
2174
|
+
}, [e.icon ? (b(), a("i", {
|
|
1948
2175
|
key: 0,
|
|
1949
|
-
class:
|
|
2176
|
+
class: h(e.icon),
|
|
1950
2177
|
"aria-hidden": "true"
|
|
1951
|
-
}, null, 2)) : i("", !0), o("span", null,
|
|
2178
|
+
}, null, 2)) : i("", !0), o("span", null, D(e.label), 1)], 8, fn))), 128))])])) : i("", !0)], 32)) : i("", !0)]),
|
|
1952
2179
|
_: 1
|
|
1953
|
-
}, 8, ["css"]),
|
|
2180
|
+
}, 8, ["css"]), w(n.$slots, "breadcrumb-actions")])
|
|
1954
2181
|
]),
|
|
1955
2182
|
o("div", {
|
|
1956
2183
|
ref_key: "favoritesMeasureContainerRef",
|
|
1957
|
-
ref:
|
|
2184
|
+
ref: E,
|
|
1958
2185
|
class: "top-nav-bar__favorites-measure",
|
|
1959
2186
|
"aria-hidden": "true"
|
|
1960
2187
|
}, [o("div", {
|
|
1961
2188
|
ref_key: "favoritesMeasureContentRef",
|
|
1962
2189
|
ref: k,
|
|
1963
2190
|
class: "top-nav-bar__favorites-measure-content"
|
|
1964
|
-
}, [o("span",
|
|
2191
|
+
}, [o("span", pn, [u[31] ||= o("i", {
|
|
1965
2192
|
class: "pi pi-star-fill top-nav-bar__favorites-icon",
|
|
1966
2193
|
"aria-hidden": "true"
|
|
1967
|
-
}, null, -1), o("span", null,
|
|
2194
|
+
}, null, -1), o("span", null, D(s.favoriteLabel), 1)]), (b(!0), a(e, null, C(Z.value, (e, t) => (b(), a("span", {
|
|
1968
2195
|
key: `measure-${e.id}`,
|
|
1969
2196
|
class: "top-nav-bar__favorites-measure-item"
|
|
1970
|
-
}, [t > 0 ? (
|
|
2197
|
+
}, [t > 0 ? (b(), a("span", mn, "|")) : i("", !0), o("span", null, [e.icon ? (b(), a("i", {
|
|
1971
2198
|
key: 0,
|
|
1972
|
-
class:
|
|
2199
|
+
class: h(e.icon),
|
|
1973
2200
|
"aria-hidden": "true"
|
|
1974
|
-
}, null, 2)) : i("", !0), c(" " +
|
|
2201
|
+
}, null, 2)) : i("", !0), c(" " + D(e.label), 1)])]))), 128))], 512)], 512),
|
|
1975
2202
|
l(t, {
|
|
1976
2203
|
name: "top-nav-bar-favorites-row",
|
|
1977
|
-
css:
|
|
2204
|
+
css: oe.value
|
|
1978
2205
|
}, {
|
|
1979
|
-
default:
|
|
2206
|
+
default: j(() => [Le.value ? (b(), a("div", hn, [o("span", gn, [u[32] ||= o("i", {
|
|
1980
2207
|
class: "pi pi-star-fill top-nav-bar__favorites-icon",
|
|
1981
2208
|
"aria-hidden": "true"
|
|
1982
|
-
}, null, -1), o("span", null,
|
|
2209
|
+
}, null, -1), o("span", null, D(s.favoriteLabel), 1)]), o("div", _n, [(b(!0), a(e, null, C(Z.value, (t, n) => (b(), a(e, { key: `row-${t.id}` }, [n > 0 ? (b(), a("span", vn, "|")) : i("", !0), o("button", {
|
|
1983
2210
|
class: "top-nav-bar__favorites-row-item",
|
|
1984
2211
|
type: "button",
|
|
1985
2212
|
disabled: t.disabled,
|
|
1986
2213
|
onClick: (e) => $(t)
|
|
1987
|
-
}, [t.icon ? (
|
|
2214
|
+
}, [t.icon ? (b(), a("i", {
|
|
1988
2215
|
key: 0,
|
|
1989
|
-
class:
|
|
2216
|
+
class: h(t.icon),
|
|
1990
2217
|
"aria-hidden": "true"
|
|
1991
|
-
}, null, 2)) : i("", !0), o("span", null,
|
|
2218
|
+
}, null, 2)) : i("", !0), o("span", null, D(t.label), 1)], 8, yn)], 64))), 128))])])) : i("", !0)]),
|
|
1992
2219
|
_: 1
|
|
1993
2220
|
}, 8, ["css"]),
|
|
1994
|
-
l(
|
|
1995
|
-
visible:
|
|
1996
|
-
"onUpdate:visible": u[16] ||= (e) =>
|
|
2221
|
+
l(O(H), {
|
|
2222
|
+
visible: P.value,
|
|
2223
|
+
"onUpdate:visible": u[16] ||= (e) => P.value = e,
|
|
1997
2224
|
position: "left",
|
|
1998
2225
|
class: "top-nav-bar__mobile-drawer",
|
|
1999
|
-
style:
|
|
2226
|
+
style: _([Ve.value, { width: "var(--top-nav-drawer-width, min(22rem, calc(100vw - 1.5rem)))" }])
|
|
2000
2227
|
}, {
|
|
2001
|
-
container:
|
|
2002
|
-
o("header",
|
|
2228
|
+
container: j(({ closeCallback: d }) => [o("div", bn, [
|
|
2229
|
+
o("header", xn, [w(n.$slots, "drawer-header", { close: d }, () => [o("div", Sn, [w(n.$slots, "drawer-brand", {}, () => [w(n.$slots, "brand", { compact: !1 })])]), o("button", {
|
|
2003
2230
|
class: "top-nav-bar__drawer-close top-nav-bar__square-button",
|
|
2004
2231
|
type: "button",
|
|
2005
2232
|
"aria-label": "Fechar navegação",
|
|
2006
|
-
onClick:
|
|
2233
|
+
onClick: d
|
|
2007
2234
|
}, [...u[33] ||= [o("i", {
|
|
2008
2235
|
class: "pi pi-times",
|
|
2009
2236
|
"aria-hidden": "true"
|
|
2010
|
-
}, null, -1)]], 8,
|
|
2011
|
-
s.searchable || Me.value.length || n.$slots["drawer-actions"] ? (
|
|
2012
|
-
query:
|
|
2013
|
-
update:
|
|
2014
|
-
clear:
|
|
2015
|
-
}, () => [o("div",
|
|
2237
|
+
}, null, -1)]], 8, Cn)])]),
|
|
2238
|
+
s.searchable || Me.value.length || n.$slots["drawer-actions"] ? (b(), a("div", wn, [s.searchable ? w(n.$slots, "drawer-search", {
|
|
2239
|
+
query: K.value,
|
|
2240
|
+
update: Ye,
|
|
2241
|
+
clear: Xe
|
|
2242
|
+
}, () => [o("div", Tn, [
|
|
2016
2243
|
u[35] ||= o("i", {
|
|
2017
2244
|
class: "pi pi-search",
|
|
2018
2245
|
"aria-hidden": "true"
|
|
@@ -2020,57 +2247,57 @@ var be = /* @__PURE__ */ _e(ge, [["render", ye], ["__file", "/Users/mahmudulhasa
|
|
|
2020
2247
|
o("input", {
|
|
2021
2248
|
ref_key: "mobileSearchInputRef",
|
|
2022
2249
|
ref: M,
|
|
2023
|
-
value:
|
|
2250
|
+
value: K.value,
|
|
2024
2251
|
type: "text",
|
|
2025
2252
|
role: "searchbox",
|
|
2026
2253
|
placeholder: s.searchPlaceholder,
|
|
2027
2254
|
"aria-label": "Pesquisar no menu",
|
|
2028
|
-
onInput: u[14] ||= (e) =>
|
|
2029
|
-
}, null, 40,
|
|
2030
|
-
|
|
2255
|
+
onInput: u[14] ||= (e) => Ye(e.target.value)
|
|
2256
|
+
}, null, 40, En),
|
|
2257
|
+
K.value ? (b(), a("button", {
|
|
2031
2258
|
key: 0,
|
|
2032
2259
|
class: "top-nav-bar__search-clear",
|
|
2033
2260
|
type: "button",
|
|
2034
2261
|
"aria-label": "Limpar pesquisa",
|
|
2035
|
-
onClick:
|
|
2262
|
+
onClick: Xe
|
|
2036
2263
|
}, [...u[34] ||= [o("i", {
|
|
2037
2264
|
class: "pi pi-times",
|
|
2038
2265
|
"aria-hidden": "true"
|
|
2039
2266
|
}, null, -1)]])) : i("", !0)
|
|
2040
|
-
])], void 0, 0) : i("", !0),
|
|
2267
|
+
])], void 0, 0) : i("", !0), w(n.$slots, "drawer-actions", {
|
|
2041
2268
|
actions: Me.value,
|
|
2042
|
-
select: (e) =>
|
|
2043
|
-
close:
|
|
2044
|
-
}, () => [(
|
|
2269
|
+
select: (e) => Ke(e, !0),
|
|
2270
|
+
close: d
|
|
2271
|
+
}, () => [(b(!0), a(e, null, C(Me.value, (e) => (b(), a("button", {
|
|
2045
2272
|
key: `drawer-${e.id}`,
|
|
2046
|
-
class:
|
|
2273
|
+
class: h(["top-nav-bar__drawer-action", { "top-nav-bar__drawer-action--active": e.kind === "aia" && s.aiaActive }]),
|
|
2047
2274
|
type: "button",
|
|
2048
2275
|
disabled: e.disabled,
|
|
2049
|
-
onClick: (t) =>
|
|
2276
|
+
onClick: (t) => Ke(e, !0)
|
|
2050
2277
|
}, [o("i", {
|
|
2051
|
-
class:
|
|
2278
|
+
class: h(e.icon),
|
|
2052
2279
|
"aria-hidden": "true"
|
|
2053
|
-
}, null, 2), o("span", null,
|
|
2054
|
-
o("div",
|
|
2055
|
-
|
|
2056
|
-
o("div",
|
|
2280
|
+
}, null, 2), o("span", null, D(e.label), 1)], 10, Dn))), 128))])])) : i("", !0),
|
|
2281
|
+
o("div", On, [
|
|
2282
|
+
w(n.$slots, "drawer-before-menu", { close: d }),
|
|
2283
|
+
o("div", kn, [Z.value.length ? (b(), a("section", An, [o("button", {
|
|
2057
2284
|
class: "top-nav-bar__mobile-item",
|
|
2058
2285
|
type: "button",
|
|
2059
|
-
"aria-expanded":
|
|
2060
|
-
onClick: u[15] ||= (e) =>
|
|
2286
|
+
"aria-expanded": ie.value,
|
|
2287
|
+
onClick: u[15] ||= (e) => ie.value = !ie.value
|
|
2061
2288
|
}, [
|
|
2062
2289
|
u[36] ||= o("i", {
|
|
2063
2290
|
class: "pi pi-star-fill top-nav-bar__accent",
|
|
2064
2291
|
"aria-hidden": "true"
|
|
2065
2292
|
}, null, -1),
|
|
2066
|
-
o("span",
|
|
2067
|
-
o("span",
|
|
2293
|
+
o("span", Mn, D(s.favoriteLabel), 1),
|
|
2294
|
+
o("span", Nn, D(Z.value.length), 1),
|
|
2068
2295
|
o("i", {
|
|
2069
|
-
class:
|
|
2296
|
+
class: h(["pi pi-chevron-down top-nav-bar__mobile-chevron", { "top-nav-bar__mobile-chevron--open": ie.value }]),
|
|
2070
2297
|
"aria-hidden": "true"
|
|
2071
2298
|
}, null, 2)
|
|
2072
|
-
], 8,
|
|
2073
|
-
default:
|
|
2299
|
+
], 8, jn), l(t, { name: "top-nav-bar-menu-expand" }, {
|
|
2300
|
+
default: j(() => [ie.value ? (b(), r($e, {
|
|
2074
2301
|
key: 0,
|
|
2075
2302
|
items: Z.value,
|
|
2076
2303
|
"active-item-id": s.activeItemId,
|
|
@@ -2078,95 +2305,99 @@ var be = /* @__PURE__ */ _e(ge, [["render", ye], ["__file", "/Users/mahmudulhasa
|
|
|
2078
2305
|
onSelect: $
|
|
2079
2306
|
}, null, 8, ["items", "active-item-id"])) : i("", !0)]),
|
|
2080
2307
|
_: 1
|
|
2081
|
-
})])) : i("", !0),
|
|
2082
|
-
sections:
|
|
2308
|
+
})])) : i("", !0), w(n.$slots, "drawer-menu", {
|
|
2309
|
+
sections: be.value,
|
|
2083
2310
|
select: $,
|
|
2084
|
-
close:
|
|
2085
|
-
}, () => [
|
|
2311
|
+
close: d
|
|
2312
|
+
}, () => [be.value.length ? (b(), r($e, {
|
|
2086
2313
|
key: 0,
|
|
2087
|
-
items:
|
|
2314
|
+
items: be.value,
|
|
2088
2315
|
"active-item-id": s.activeItemId,
|
|
2089
|
-
"force-open": !!
|
|
2316
|
+
"force-open": !!K.value.trim(),
|
|
2090
2317
|
"show-section-dividers": "",
|
|
2091
2318
|
onSelect: $
|
|
2092
2319
|
}, null, 8, [
|
|
2093
2320
|
"items",
|
|
2094
2321
|
"active-item-id",
|
|
2095
2322
|
"force-open"
|
|
2096
|
-
])) : (
|
|
2097
|
-
|
|
2323
|
+
])) : (b(), a("div", Pn, "Nenhum menu encontrado."))])]),
|
|
2324
|
+
w(n.$slots, "drawer-after-menu", { close: d })
|
|
2098
2325
|
]),
|
|
2099
|
-
Pe.value || n.$slots["drawer-footer"] ? (
|
|
2326
|
+
Pe.value || n.$slots["drawer-footer"] ? (b(), a("footer", Fn, [Pe.value ? w(n.$slots, "drawer-user", {
|
|
2100
2327
|
user: s.user,
|
|
2101
|
-
|
|
2102
|
-
|
|
2328
|
+
client: s.client,
|
|
2329
|
+
open: U.value,
|
|
2330
|
+
toggle: () => U.value = !U.value
|
|
2103
2331
|
}, () => [o("button", {
|
|
2104
2332
|
class: "top-nav-bar__drawer-user",
|
|
2105
2333
|
type: "button",
|
|
2106
2334
|
"aria-haspopup": X.value ? "menu" : void 0,
|
|
2107
|
-
"aria-expanded": X.value ?
|
|
2108
|
-
onClick:
|
|
2335
|
+
"aria-expanded": X.value ? U.value : void 0,
|
|
2336
|
+
onClick: Je
|
|
2109
2337
|
}, [
|
|
2110
|
-
s.user?.avatarUrl ? (
|
|
2338
|
+
s.user?.avatarUrl ? (b(), a("img", {
|
|
2111
2339
|
key: 0,
|
|
2112
2340
|
src: s.user.avatarUrl,
|
|
2113
2341
|
alt: "",
|
|
2114
2342
|
class: "top-nav-bar__user-avatar"
|
|
2115
|
-
}, null, 8,
|
|
2116
|
-
s.user ? (
|
|
2117
|
-
|
|
2118
|
-
|
|
2343
|
+
}, null, 8, Ln)) : (b(), a("span", Rn, D(ze.value), 1)),
|
|
2344
|
+
s.user ? (b(), a("span", zn, [o("span", Bn, D(s.user.name), 1), s.client ? (b(), a("span", Vn, [o("span", Hn, [u[37] ||= o("i", {
|
|
2345
|
+
class: "pi pi-building",
|
|
2346
|
+
"aria-hidden": "true"
|
|
2347
|
+
}, null, -1), c(D(s.client.name), 1)]), s.client.subtitle ? (b(), a("span", Un, D(s.client.subtitle), 1)) : i("", !0)])) : i("", !0)])) : i("", !0),
|
|
2348
|
+
X.value ? (b(), a("i", Wn)) : i("", !0)
|
|
2349
|
+
], 8, In)], void 0, 0) : i("", !0), w(n.$slots, "drawer-footer", { close: d })])) : i("", !0)
|
|
2119
2350
|
])]),
|
|
2120
2351
|
_: 3
|
|
2121
2352
|
}, 8, ["visible", "style"]),
|
|
2122
|
-
l(
|
|
2353
|
+
l(O(ne), {
|
|
2123
2354
|
ref_key: "drawerUserMenuRef",
|
|
2124
|
-
ref:
|
|
2355
|
+
ref: re,
|
|
2125
2356
|
class: "top-nav-bar__drawer-user-popup",
|
|
2126
2357
|
model: Be.value,
|
|
2127
2358
|
popup: !0,
|
|
2128
2359
|
"append-to": "body",
|
|
2129
2360
|
"base-z-index": 10001,
|
|
2130
|
-
onShow: u[17] ||= (e) =>
|
|
2131
|
-
onHide: u[18] ||= (e) =>
|
|
2361
|
+
onShow: u[17] ||= (e) => U.value = !0,
|
|
2362
|
+
onHide: u[18] ||= (e) => U.value = !1
|
|
2132
2363
|
}, null, 8, ["model"])
|
|
2133
2364
|
], 4));
|
|
2134
2365
|
}
|
|
2135
|
-
}),
|
|
2366
|
+
}), Jn = { class: "top-field-icon pointer-events-none absolute left-3 top-1/2 z-10 -translate-y-1/2" }, Yn = {
|
|
2136
2367
|
key: 0,
|
|
2137
2368
|
class: "pi pi-spin pi-spinner"
|
|
2138
|
-
},
|
|
2369
|
+
}, Xn = {
|
|
2139
2370
|
key: 1,
|
|
2140
2371
|
class: "pi pi-search"
|
|
2141
|
-
},
|
|
2372
|
+
}, Zn = {
|
|
2142
2373
|
key: 1,
|
|
2143
2374
|
class: "flex items-center gap-1 !text-sm"
|
|
2144
|
-
},
|
|
2375
|
+
}, Qn = { class: "flex items-center gap-2 rounded-[9px] bg-primary-500 px-2 py-1 text-white" }, $n = ["onClick"], er = { class: "line-clamp-1 max-w-[300px] overflow-hidden text-ellipsis" }, tr = {
|
|
2145
2376
|
key: 1,
|
|
2146
2377
|
class: "flex min-h-[100px] flex-col items-center justify-center gap-2 py-2"
|
|
2147
|
-
},
|
|
2378
|
+
}, nr = {
|
|
2148
2379
|
key: 0,
|
|
2149
2380
|
class: "text-xs font-medium text-primary-600"
|
|
2150
|
-
},
|
|
2381
|
+
}, rr = {
|
|
2151
2382
|
key: 2,
|
|
2152
2383
|
class: "text-xs text-secondary-500"
|
|
2153
|
-
},
|
|
2384
|
+
}, ir = { key: 1 }, ar = {
|
|
2154
2385
|
key: 1,
|
|
2155
2386
|
class: "flex items-center gap-2 font-semibold"
|
|
2156
|
-
},
|
|
2387
|
+
}, or = {
|
|
2157
2388
|
key: 1,
|
|
2158
2389
|
class: "flex w-full min-w-0 items-start gap-2 overflow-hidden px-2 py-3 text-sm",
|
|
2159
2390
|
style: { "white-space": "normal" }
|
|
2160
|
-
},
|
|
2391
|
+
}, sr = ["title"], cr = {
|
|
2161
2392
|
key: 0,
|
|
2162
2393
|
class: "top-select-option-prefix whitespace-nowrap font-bold text-primary-800 dark:text-primary-100"
|
|
2163
|
-
},
|
|
2394
|
+
}, lr = {
|
|
2164
2395
|
key: 0,
|
|
2165
2396
|
class: "rounded-sm bg-primary-200 p-0 font-bold text-black dark:bg-cyan-700 dark:text-white"
|
|
2166
|
-
},
|
|
2397
|
+
}, ur = {
|
|
2167
2398
|
key: 0,
|
|
2168
2399
|
class: "rounded-sm bg-primary-200 p-0 font-bold text-black dark:bg-cyan-700 dark:text-white"
|
|
2169
|
-
},
|
|
2400
|
+
}, dr = /* @__PURE__ */ u({
|
|
2170
2401
|
__name: "TopSelect",
|
|
2171
2402
|
props: {
|
|
2172
2403
|
modelValue: { default: null },
|
|
@@ -2235,25 +2466,25 @@ var be = /* @__PURE__ */ _e(ge, [["render", ye], ["__file", "/Users/mahmudulhasa
|
|
|
2235
2466
|
"change"
|
|
2236
2467
|
],
|
|
2237
2468
|
setup(t, { expose: r, emit: u }) {
|
|
2238
|
-
let
|
|
2239
|
-
get: () =>
|
|
2240
|
-
set: (e) =>
|
|
2469
|
+
let f = t, _ = u, x = te(), T = U, E = S(""), k = S(!1), ee = S(null), N = `top-select-${Math.random().toString(36).slice(2)}`, P = null, I = n({
|
|
2470
|
+
get: () => f.modelValue,
|
|
2471
|
+
set: (e) => _("update:modelValue", e)
|
|
2241
2472
|
});
|
|
2242
|
-
function
|
|
2473
|
+
function L(e, t) {
|
|
2243
2474
|
return e == null ? "" : String(typeof e == "object" ? e[t] ?? "" : e);
|
|
2244
2475
|
}
|
|
2245
|
-
function
|
|
2246
|
-
return e == null ? "" : typeof
|
|
2476
|
+
function R(e) {
|
|
2477
|
+
return e == null ? "" : typeof f.optionLabel == "function" ? f.optionLabel(e) : L(e, f.optionLabel);
|
|
2247
2478
|
}
|
|
2248
|
-
function
|
|
2249
|
-
return
|
|
2479
|
+
function z(e) {
|
|
2480
|
+
return f.optionPrefix ? L(e, f.optionPrefix) : "";
|
|
2250
2481
|
}
|
|
2251
|
-
function
|
|
2252
|
-
let n =
|
|
2482
|
+
function B(e, t = f.showSelectedPrefix) {
|
|
2483
|
+
let n = R(e), r = z(e);
|
|
2253
2484
|
return t && r ? `${r} - ${n}` : n;
|
|
2254
2485
|
}
|
|
2255
|
-
function
|
|
2256
|
-
let t =
|
|
2486
|
+
function V(e) {
|
|
2487
|
+
let t = E.value;
|
|
2257
2488
|
if (!t) return [{
|
|
2258
2489
|
text: e,
|
|
2259
2490
|
highlighted: !1
|
|
@@ -2264,46 +2495,46 @@ var be = /* @__PURE__ */ _e(ge, [["render", ye], ["__file", "/Users/mahmudulhasa
|
|
|
2264
2495
|
highlighted: e.toLowerCase() === t.toLowerCase()
|
|
2265
2496
|
}));
|
|
2266
2497
|
}
|
|
2267
|
-
function
|
|
2268
|
-
|
|
2498
|
+
function H() {
|
|
2499
|
+
ee.value?.hide?.();
|
|
2269
2500
|
}
|
|
2270
|
-
function
|
|
2501
|
+
function ne() {
|
|
2271
2502
|
typeof window > "u" || window.dispatchEvent(new CustomEvent("top-select:close-others", { detail: { instanceId: N } }));
|
|
2272
2503
|
}
|
|
2273
|
-
function
|
|
2274
|
-
e.detail?.instanceId !== N &&
|
|
2504
|
+
function re(e) {
|
|
2505
|
+
e.detail?.instanceId !== N && H();
|
|
2275
2506
|
}
|
|
2276
|
-
function
|
|
2277
|
-
if (
|
|
2278
|
-
|
|
2507
|
+
function W() {
|
|
2508
|
+
if (f.disabled || P) {
|
|
2509
|
+
H();
|
|
2279
2510
|
return;
|
|
2280
2511
|
}
|
|
2281
|
-
|
|
2512
|
+
k.value = !0, ne();
|
|
2282
2513
|
}
|
|
2283
|
-
function
|
|
2284
|
-
|
|
2285
|
-
|
|
2514
|
+
function ie() {
|
|
2515
|
+
f.closeOnSelect && (k.value = !1, H(), m(H), P && clearTimeout(P), P = setTimeout(() => {
|
|
2516
|
+
H(), P = null;
|
|
2286
2517
|
}, 200));
|
|
2287
2518
|
}
|
|
2288
|
-
return r({ hideDropdown:
|
|
2289
|
-
window.removeEventListener("top-select:close-others",
|
|
2290
|
-
}),
|
|
2291
|
-
e && (
|
|
2292
|
-
}),
|
|
2293
|
-
|
|
2294
|
-
}), (n, r) => (
|
|
2295
|
-
class:
|
|
2296
|
-
onFocusin:
|
|
2297
|
-
}, [o("span",
|
|
2519
|
+
return r({ hideDropdown: H }), y(() => window.addEventListener("top-select:close-others", re)), v(() => {
|
|
2520
|
+
window.removeEventListener("top-select:close-others", re), P && clearTimeout(P);
|
|
2521
|
+
}), A(() => f.disabled, (e) => {
|
|
2522
|
+
e && (k.value = !1, H());
|
|
2523
|
+
}), A(() => f.options, () => {
|
|
2524
|
+
k.value || H();
|
|
2525
|
+
}), (n, r) => (b(), a("div", {
|
|
2526
|
+
class: h(["top-select top-solutions-component relative w-full", { "pointer-events-none": t.disabled }]),
|
|
2527
|
+
onFocusin: W
|
|
2528
|
+
}, [o("span", Jn, [w(n.$slots, "icon", { loading: t.loading }, () => [t.loading ? (b(), a("i", Yn)) : (b(), a("i", Xn))])]), l(O(T), {
|
|
2298
2529
|
ref_key: "autocompleteRef",
|
|
2299
|
-
ref:
|
|
2300
|
-
modelValue:
|
|
2301
|
-
"onUpdate:modelValue": r[0] ||= (e) =>
|
|
2530
|
+
ref: ee,
|
|
2531
|
+
modelValue: I.value,
|
|
2532
|
+
"onUpdate:modelValue": r[0] ||= (e) => I.value = e,
|
|
2302
2533
|
"option-group-label": t.optionGroupLabel ?? void 0,
|
|
2303
2534
|
"option-group-children": t.optionGroupChildren ?? void 0,
|
|
2304
2535
|
suggestions: t.options,
|
|
2305
2536
|
"data-key": t.optionKey,
|
|
2306
|
-
"option-label": (e) =>
|
|
2537
|
+
"option-label": (e) => B(e),
|
|
2307
2538
|
placeholder: t.placeholder,
|
|
2308
2539
|
multiple: t.multiple,
|
|
2309
2540
|
"min-length": t.minQueryLength,
|
|
@@ -2319,7 +2550,7 @@ var be = /* @__PURE__ */ _e(ge, [["render", ye], ["__file", "/Users/mahmudulhasa
|
|
|
2319
2550
|
"input-class": "text-xs",
|
|
2320
2551
|
"virtual-scroller-options": {
|
|
2321
2552
|
lazy: !0,
|
|
2322
|
-
onLazyLoad: (e) =>
|
|
2553
|
+
onLazyLoad: (e) => _("loadMore", e),
|
|
2323
2554
|
itemSize: 84,
|
|
2324
2555
|
showLoader: !0,
|
|
2325
2556
|
scrollHeight: t.scrollHeight
|
|
@@ -2347,55 +2578,55 @@ var be = /* @__PURE__ */ _e(ge, [["render", ye], ["__file", "/Users/mahmudulhasa
|
|
|
2347
2578
|
},
|
|
2348
2579
|
"search-message": " ",
|
|
2349
2580
|
onClear: r[1] ||= (e) => {
|
|
2350
|
-
|
|
2581
|
+
E.value = "", _("clear");
|
|
2351
2582
|
},
|
|
2352
2583
|
onItemSelect: r[2] ||= (e) => {
|
|
2353
|
-
|
|
2584
|
+
E.value = "", _("select", e), ie();
|
|
2354
2585
|
},
|
|
2355
2586
|
onComplete: r[3] ||= (e) => {
|
|
2356
2587
|
if (t.disabled) {
|
|
2357
|
-
|
|
2588
|
+
H();
|
|
2358
2589
|
return;
|
|
2359
2590
|
}
|
|
2360
|
-
|
|
2591
|
+
E.value = e.query ?? "", ne(), _("search", {
|
|
2361
2592
|
...e,
|
|
2362
|
-
query:
|
|
2593
|
+
query: E.value
|
|
2363
2594
|
});
|
|
2364
2595
|
},
|
|
2365
|
-
onChange: r[4] ||= (e) =>
|
|
2596
|
+
onChange: r[4] ||= (e) => _("change", e)
|
|
2366
2597
|
}, s({
|
|
2367
|
-
chip:
|
|
2598
|
+
chip: j((e) => [O(x).chip ? w(n.$slots, "chip", g(d(e)), void 0, void 0, 0) : (b(), a("div", Zn, [o("div", Qn, [o("i", {
|
|
2368
2599
|
class: "pi pi-times-circle shrink-0 cursor-pointer rounded-full hover:bg-primary-800",
|
|
2369
2600
|
onClick: (t) => e.removeCallback(t)
|
|
2370
|
-
}, null, 8,
|
|
2371
|
-
|
|
2372
|
-
|
|
2601
|
+
}, null, 8, $n), M((b(), a("span", er, [c(D(B(e.value)), 1)])), [[
|
|
2602
|
+
O(F),
|
|
2603
|
+
B(e.value),
|
|
2373
2604
|
void 0,
|
|
2374
2605
|
{ top: !0 }
|
|
2375
2606
|
]])])]))]),
|
|
2376
|
-
empty:
|
|
2377
|
-
"selected-item":
|
|
2378
|
-
optiongroup:
|
|
2607
|
+
empty: j(() => [O(x).empty ? w(n.$slots, "empty", {}, void 0, void 0, 0) : t.loading ? (b(), a("div", tr, [r[5] ||= o("span", { class: "pi pi-spin pi-spinner text-2xl text-primary-600" }, null, -1), t.showLoadingMessage ? (b(), a("span", nr, D(t.loadingMessage), 1)) : i("", !0)])) : (b(), a("span", rr, D(t.emptyMessage), 1))]),
|
|
2608
|
+
"selected-item": j((e) => [O(x)["selected-item"] ? w(n.$slots, "selected-item", g(d(e)), void 0, void 0, 0) : e.item ? (b(), a("span", ir, D(B(e.item)), 1)) : i("", !0)]),
|
|
2609
|
+
optiongroup: j((e) => [O(x)["option-group"] ? w(n.$slots, "option-group", g(d(e)), void 0, void 0, 0) : (b(), a("div", ar, [e.option.icon ? (b(), a("i", {
|
|
2379
2610
|
key: 0,
|
|
2380
|
-
class:
|
|
2381
|
-
}, null, 2)) : i("", !0), o("span", null,
|
|
2382
|
-
option:
|
|
2383
|
-
label:
|
|
2384
|
-
prefix:
|
|
2385
|
-
query:
|
|
2386
|
-
}), void 0, void 0, 0) :
|
|
2611
|
+
class: h(e.option.icon)
|
|
2612
|
+
}, null, 2)) : i("", !0), o("span", null, D(e.option[t.optionGroupLabel ?? "label"]), 1)]))]),
|
|
2613
|
+
option: j((s) => [O(x).option ? w(n.$slots, "option", p(s, {
|
|
2614
|
+
label: R(s.option),
|
|
2615
|
+
prefix: z(s.option),
|
|
2616
|
+
query: E.value
|
|
2617
|
+
}), void 0, void 0, 0) : M((b(), a("div", or, [o("span", {
|
|
2387
2618
|
class: "top-select-option-label line-clamp-2 min-w-0 flex-1 text-secondary-700 dark:text-zinc-200",
|
|
2388
|
-
title:
|
|
2389
|
-
}, [t.showOptionPrefix &&
|
|
2390
|
-
|
|
2391
|
-
t.showTooltip ?
|
|
2619
|
+
title: R(s.option)
|
|
2620
|
+
}, [t.showOptionPrefix && z(s.option) ? (b(), a("span", cr, [(b(!0), a(e, null, C(V(z(s.option)), (t, n) => (b(), a(e, { key: n }, [t.highlighted ? (b(), a("mark", lr, D(t.text), 1)) : (b(), a(e, { key: 1 }, [c(D(t.text), 1)], 64))], 64))), 128)), r[6] ||= o("span", { class: "font-bold text-secondary-500 dark:text-zinc-400" }, "\xA0-\xA0", -1)])) : i("", !0), (b(!0), a(e, null, C(V(R(s.option)), (t, n) => (b(), a(e, { key: n }, [t.highlighted ? (b(), a("mark", ur, D(t.text), 1)) : (b(), a(e, { key: 1 }, [c(D(t.text), 1)], 64))], 64))), 128))], 8, sr)])), [[
|
|
2621
|
+
O(F),
|
|
2622
|
+
t.showTooltip ? R(s.option) : null,
|
|
2392
2623
|
void 0,
|
|
2393
2624
|
{ top: !0 }
|
|
2394
2625
|
]])]),
|
|
2395
2626
|
_: 2
|
|
2396
|
-
}, [
|
|
2627
|
+
}, [O(x).footer ? {
|
|
2397
2628
|
name: "footer",
|
|
2398
|
-
fn:
|
|
2629
|
+
fn: j((e) => [w(n.$slots, "footer", g(d(e)))]),
|
|
2399
2630
|
key: "0"
|
|
2400
2631
|
} : void 0]), 1032, [
|
|
2401
2632
|
"modelValue",
|
|
@@ -2415,7 +2646,7 @@ var be = /* @__PURE__ */ _e(ge, [["render", ye], ["__file", "/Users/mahmudulhasa
|
|
|
2415
2646
|
"pt"
|
|
2416
2647
|
])], 34));
|
|
2417
2648
|
}
|
|
2418
|
-
}),
|
|
2649
|
+
}), fr = /* @__PURE__ */ u({
|
|
2419
2650
|
inheritAttrs: !1,
|
|
2420
2651
|
__name: "TopTabs",
|
|
2421
2652
|
props: {
|
|
@@ -2436,29 +2667,29 @@ var be = /* @__PURE__ */ _e(ge, [["render", ye], ["__file", "/Users/mahmudulhasa
|
|
|
2436
2667
|
function o(e) {
|
|
2437
2668
|
return String(e.value);
|
|
2438
2669
|
}
|
|
2439
|
-
return (n, s) => (
|
|
2670
|
+
return (n, s) => (b(), r(O(ae), p(n.$attrs, {
|
|
2440
2671
|
class: "top-tabs top-solutions-component w-full min-w-0",
|
|
2441
2672
|
value: t.modelValue,
|
|
2442
2673
|
lazy: t.lazy,
|
|
2443
2674
|
scrollable: t.scrollable,
|
|
2444
2675
|
"onUpdate:value": s[0] ||= (e) => i("update:modelValue", e)
|
|
2445
2676
|
}), {
|
|
2446
|
-
default:
|
|
2447
|
-
default:
|
|
2677
|
+
default: j(() => [l(O(W), null, {
|
|
2678
|
+
default: j(() => [(b(!0), a(e, null, C(t.tabs, (e) => (b(), r(O(re), {
|
|
2448
2679
|
key: e.value,
|
|
2449
2680
|
value: e.value,
|
|
2450
2681
|
disabled: e.disabled
|
|
2451
2682
|
}, {
|
|
2452
|
-
default:
|
|
2683
|
+
default: j(() => [c(D(e.label), 1)]),
|
|
2453
2684
|
_: 2
|
|
2454
2685
|
}, 1032, ["value", "disabled"]))), 128))]),
|
|
2455
2686
|
_: 1
|
|
2456
|
-
}), l(
|
|
2457
|
-
default:
|
|
2687
|
+
}), l(O(G), null, {
|
|
2688
|
+
default: j(() => [(b(!0), a(e, null, C(t.tabs, (e) => (b(), r(O(ie), {
|
|
2458
2689
|
key: e.value,
|
|
2459
2690
|
value: e.value
|
|
2460
2691
|
}, {
|
|
2461
|
-
default:
|
|
2692
|
+
default: j(() => [w(n.$slots, o(e), {
|
|
2462
2693
|
tab: e,
|
|
2463
2694
|
active: t.modelValue === e.value
|
|
2464
2695
|
})]),
|
|
@@ -2473,10 +2704,269 @@ var be = /* @__PURE__ */ _e(ge, [["render", ye], ["__file", "/Users/mahmudulhasa
|
|
|
2473
2704
|
"scrollable"
|
|
2474
2705
|
]));
|
|
2475
2706
|
}
|
|
2476
|
-
})
|
|
2707
|
+
});
|
|
2708
|
+
//#endregion
|
|
2709
|
+
//#region src/components/internal/topAccordion.ts
|
|
2710
|
+
function pr(e, t) {
|
|
2711
|
+
return `${e}--section-${encodeURIComponent(String(t))}`;
|
|
2712
|
+
}
|
|
2713
|
+
//#endregion
|
|
2714
|
+
//#region src/components/TopAccordion.vue?vue&type=script&setup=true&lang.ts
|
|
2715
|
+
var mr = Symbol("top-accordion-context"), hr = /* @__PURE__ */ u({
|
|
2716
|
+
inheritAttrs: !1,
|
|
2717
|
+
__name: "TopAccordion",
|
|
2718
|
+
props: {
|
|
2719
|
+
id: {},
|
|
2720
|
+
modelValue: {},
|
|
2721
|
+
sections: { default: () => [] },
|
|
2722
|
+
multiple: {
|
|
2723
|
+
type: Boolean,
|
|
2724
|
+
default: !0
|
|
2725
|
+
}
|
|
2726
|
+
},
|
|
2727
|
+
emits: ["update:modelValue"],
|
|
2728
|
+
setup(e, { expose: t, emit: r }) {
|
|
2729
|
+
let i = e, o = r, s = n({
|
|
2730
|
+
get: () => i.modelValue ?? [],
|
|
2731
|
+
set: (e) => o("update:modelValue", e)
|
|
2732
|
+
}), c = n(() => i.sections), u = S(null), d = n(() => s.value);
|
|
2733
|
+
function f(e) {
|
|
2734
|
+
return c.value.find((t) => t.value === e);
|
|
2735
|
+
}
|
|
2736
|
+
function h(e) {
|
|
2737
|
+
return s.value.includes(e);
|
|
2738
|
+
}
|
|
2739
|
+
function g(e) {
|
|
2740
|
+
return pr(i.id, e);
|
|
2741
|
+
}
|
|
2742
|
+
function _(e) {
|
|
2743
|
+
s.value = Array.isArray(e) ? e : e == null ? [] : [e];
|
|
2744
|
+
}
|
|
2745
|
+
async function v(e, t = {}) {
|
|
2746
|
+
if (f(e)?.disabled) return !1;
|
|
2747
|
+
h(e) || (s.value = [...s.value, e]), await m(), await new Promise((e) => requestAnimationFrame(() => e()));
|
|
2748
|
+
let n = document.getElementById(g(e));
|
|
2749
|
+
if (!n) return !1;
|
|
2750
|
+
let r = t.offset ?? 0;
|
|
2751
|
+
return window.scrollTo({
|
|
2752
|
+
top: n.getBoundingClientRect().top + window.scrollY - r,
|
|
2753
|
+
behavior: t.behavior ?? "smooth"
|
|
2754
|
+
}), !0;
|
|
2755
|
+
}
|
|
2756
|
+
return x(mr, {
|
|
2757
|
+
accordionId: i.id,
|
|
2758
|
+
sections: c,
|
|
2759
|
+
openSections: s,
|
|
2760
|
+
isOpen: h,
|
|
2761
|
+
getSection: f,
|
|
2762
|
+
getAnchorId: g
|
|
2763
|
+
}), t({
|
|
2764
|
+
reveal: v,
|
|
2765
|
+
getAnchorId: g,
|
|
2766
|
+
root: u
|
|
2767
|
+
}), (t, n) => (b(), a("div", {
|
|
2768
|
+
ref_key: "rootRef",
|
|
2769
|
+
ref: u,
|
|
2770
|
+
class: "top-accordion top-solutions-component"
|
|
2771
|
+
}, [l(O(oe), p(t.$attrs, {
|
|
2772
|
+
value: d.value,
|
|
2773
|
+
multiple: e.multiple,
|
|
2774
|
+
"expand-icon": "pi pi-chevron-down",
|
|
2775
|
+
"collapse-icon": "pi pi-chevron-up",
|
|
2776
|
+
class: "top-accordion__root",
|
|
2777
|
+
"onUpdate:value": _
|
|
2778
|
+
}), {
|
|
2779
|
+
default: j(() => [w(t.$slots, "default")]),
|
|
2780
|
+
_: 3
|
|
2781
|
+
}, 16, ["value", "multiple"])], 512));
|
|
2782
|
+
}
|
|
2783
|
+
}), gr = {
|
|
2784
|
+
key: 0,
|
|
2785
|
+
class: "top-accordion-summary__separator",
|
|
2786
|
+
"aria-hidden": "true"
|
|
2787
|
+
}, _r = { class: "top-accordion-summary__item" }, vr = /* @__PURE__ */ u({
|
|
2788
|
+
__name: "TopAccordionSummary",
|
|
2789
|
+
props: {
|
|
2790
|
+
items: { default: () => [] },
|
|
2791
|
+
visible: {
|
|
2792
|
+
type: Boolean,
|
|
2793
|
+
default: !0
|
|
2794
|
+
},
|
|
2795
|
+
nowrap: {
|
|
2796
|
+
type: Boolean,
|
|
2797
|
+
default: !1
|
|
2798
|
+
}
|
|
2799
|
+
},
|
|
2800
|
+
setup(t) {
|
|
2801
|
+
function n(e) {
|
|
2802
|
+
let t = e.value ?? e.valor;
|
|
2803
|
+
return t == null || t === "" ? "--" : t;
|
|
2804
|
+
}
|
|
2805
|
+
return (r, s) => t.visible && (t.items.length || r.$slots.default) ? (b(), a("div", {
|
|
2806
|
+
key: 0,
|
|
2807
|
+
class: h(["top-accordion-summary", { "top-accordion-summary--nowrap": t.nowrap }])
|
|
2808
|
+
}, [(b(!0), a(e, null, C(t.items, (t, r) => (b(), a(e, { key: `${t.label}-${r}` }, [r > 0 ? (b(), a("span", gr)) : i("", !0), o("span", _r, [o("strong", null, D(t.label) + ":", 1), c(" " + D(n(t)), 1)])], 64))), 128)), w(r.$slots, "default")], 2)) : i("", !0);
|
|
2809
|
+
}
|
|
2810
|
+
}), yr = ["id"], br = { class: "top-accordion-panel__heading" }, xr = { class: "top-accordion-panel__title-row" }, Sr = {
|
|
2811
|
+
class: "top-accordion-panel__badge",
|
|
2812
|
+
"aria-hidden": "true"
|
|
2813
|
+
}, Cr = { key: 1 }, wr = { class: "top-accordion-panel__title" }, Tr = ["aria-label"], Er = { class: "top-accordion-panel__content" }, Dr = /* @__PURE__ */ u({
|
|
2814
|
+
inheritAttrs: !1,
|
|
2815
|
+
__name: "TopAccordionPanel",
|
|
2816
|
+
props: {
|
|
2817
|
+
value: {},
|
|
2818
|
+
title: { default: "" },
|
|
2819
|
+
icon: { default: "" },
|
|
2820
|
+
summary: { default: () => [] },
|
|
2821
|
+
status: { default: void 0 },
|
|
2822
|
+
statusLabel: { default: "" }
|
|
2823
|
+
},
|
|
2824
|
+
setup(e) {
|
|
2825
|
+
let t = e, r = f(mr);
|
|
2826
|
+
if (!r) throw Error("TopAccordionPanel deve ser usado dentro de TopAccordion.");
|
|
2827
|
+
let s = n(() => r.getSection(t.value)), u = n(() => t.title || s.value?.label || String(t.value)), d = n(() => t.icon || s.value?.icon || ""), m = n(() => !!s.value?.disabled), g = n(() => r.sections.value.findIndex((e) => e.value === t.value) + 1), _ = n(() => r.isOpen(t.value)), v = n(() => r.getAnchorId(t.value)), y = n(() => t.status === "valid" ? "pi pi-check-circle" : "pi pi-times-circle"), x = n(() => t.status === "valid" ? "top-accordion-panel__status--valid" : "top-accordion-panel__status--error");
|
|
2828
|
+
return (t, n) => (b(), a("div", {
|
|
2829
|
+
id: v.value,
|
|
2830
|
+
class: "top-accordion-panel-anchor"
|
|
2831
|
+
}, [l(O(se), p(t.$attrs, {
|
|
2832
|
+
value: e.value,
|
|
2833
|
+
disabled: m.value,
|
|
2834
|
+
class: "top-accordion-panel"
|
|
2835
|
+
}), {
|
|
2836
|
+
default: j(() => [l(O(q), { class: "top-accordion-panel__header" }, {
|
|
2837
|
+
default: j(() => [o("div", br, [o("div", xr, [
|
|
2838
|
+
o("span", Sr, [w(t.$slots, "icon", {}, () => [d.value ? (b(), a("i", {
|
|
2839
|
+
key: 0,
|
|
2840
|
+
class: h(d.value)
|
|
2841
|
+
}, null, 2)) : (b(), a("span", Cr, D(g.value), 1))])]),
|
|
2842
|
+
o("span", wr, [w(t.$slots, "title", {}, () => [c(D(u.value), 1)])]),
|
|
2843
|
+
w(t.$slots, "status", {}, () => [e.status ? (b(), a("i", {
|
|
2844
|
+
key: 0,
|
|
2845
|
+
class: h([
|
|
2846
|
+
"top-accordion-panel__status",
|
|
2847
|
+
x.value,
|
|
2848
|
+
y.value
|
|
2849
|
+
]),
|
|
2850
|
+
"aria-label": e.statusLabel || (e.status === "valid" ? "Seção válida" : "Existem erros na seção"),
|
|
2851
|
+
role: "img"
|
|
2852
|
+
}, null, 10, Tr)) : i("", !0)])
|
|
2853
|
+
]), t.$slots.preview ? w(t.$slots, "preview", { open: _.value }, void 0, void 0, 0) : w(t.$slots, "summary", { open: _.value }, () => [l(vr, {
|
|
2854
|
+
items: e.summary,
|
|
2855
|
+
visible: !_.value
|
|
2856
|
+
}, null, 8, ["items", "visible"])], void 0, 1)])]),
|
|
2857
|
+
_: 3
|
|
2858
|
+
}), l(O(K), null, {
|
|
2859
|
+
default: j(() => [o("div", Er, [w(t.$slots, "default")])]),
|
|
2860
|
+
_: 3
|
|
2861
|
+
})]),
|
|
2862
|
+
_: 3
|
|
2863
|
+
}, 16, ["value", "disabled"])], 8, yr));
|
|
2864
|
+
}
|
|
2865
|
+
}), Or = { class: "top-accordion-navigator__items" }, kr = [
|
|
2866
|
+
"disabled",
|
|
2867
|
+
"aria-current",
|
|
2868
|
+
"onClick"
|
|
2869
|
+
], Ar = { class: "top-accordion-navigator__badge" }, jr = {
|
|
2870
|
+
key: 0,
|
|
2871
|
+
class: "pi pi-lock"
|
|
2872
|
+
}, Mr = { key: 2 }, Nr = { class: "top-accordion-navigator__label" }, Pr = /* @__PURE__ */ u({
|
|
2873
|
+
__name: "TopAccordionNavigator",
|
|
2874
|
+
props: {
|
|
2875
|
+
accordionId: {},
|
|
2876
|
+
modelValue: {},
|
|
2877
|
+
sections: { default: () => [] },
|
|
2878
|
+
scrollOffset: { default: 0 },
|
|
2879
|
+
sticky: {
|
|
2880
|
+
type: Boolean,
|
|
2881
|
+
default: !1
|
|
2882
|
+
},
|
|
2883
|
+
stickyTop: { default: "0px" },
|
|
2884
|
+
colorMode: { default: "inherit" }
|
|
2885
|
+
},
|
|
2886
|
+
emits: ["update:modelValue", "navigate"],
|
|
2887
|
+
setup(t, { emit: r }) {
|
|
2888
|
+
let s = t, c = r, l = S(null), u = S(!1), d = S(!1), f = S(!1), p, g = n({
|
|
2889
|
+
get: () => s.modelValue ?? [],
|
|
2890
|
+
set: (e) => c("update:modelValue", e)
|
|
2891
|
+
});
|
|
2892
|
+
function x(e) {
|
|
2893
|
+
return g.value.includes(e);
|
|
2894
|
+
}
|
|
2895
|
+
function w() {
|
|
2896
|
+
let e = l.value;
|
|
2897
|
+
e && (u.value = e.scrollWidth > e.clientWidth + 1, d.value = u.value && e.scrollLeft > 1, f.value = u.value && e.scrollLeft + e.clientWidth < e.scrollWidth - 1);
|
|
2898
|
+
}
|
|
2899
|
+
function T(e) {
|
|
2900
|
+
l.value?.scrollBy({
|
|
2901
|
+
left: e,
|
|
2902
|
+
behavior: "smooth"
|
|
2903
|
+
});
|
|
2904
|
+
}
|
|
2905
|
+
async function E(e) {
|
|
2906
|
+
if (e.disabled) return;
|
|
2907
|
+
x(e.value) || (g.value = [...g.value, e.value]), c("navigate", e), await m(), await new Promise((e) => requestAnimationFrame(() => e()));
|
|
2908
|
+
let t = document.getElementById(pr(s.accordionId, e.value));
|
|
2909
|
+
t && window.scrollTo({
|
|
2910
|
+
top: t.getBoundingClientRect().top + window.scrollY - s.scrollOffset,
|
|
2911
|
+
behavior: "smooth"
|
|
2912
|
+
});
|
|
2913
|
+
}
|
|
2914
|
+
return y(() => {
|
|
2915
|
+
w();
|
|
2916
|
+
let e = l.value;
|
|
2917
|
+
e?.addEventListener("scroll", w, { passive: !0 }), typeof ResizeObserver < "u" && (p = new ResizeObserver(w), e && p.observe(e));
|
|
2918
|
+
}), v(() => {
|
|
2919
|
+
l.value?.removeEventListener("scroll", w), p?.disconnect();
|
|
2920
|
+
}), A(() => s.sections, () => m(w), { deep: !0 }), (n, r) => (b(), a("nav", {
|
|
2921
|
+
class: h(["top-accordion-navigator top-solutions-component", {
|
|
2922
|
+
"top-accordion-navigator--sticky": t.sticky,
|
|
2923
|
+
"top-accordion-navigator--dark": t.colorMode === "dark",
|
|
2924
|
+
"top-accordion-navigator--light": t.colorMode === "light"
|
|
2925
|
+
}]),
|
|
2926
|
+
style: _({ "--top-accordion-navigator-top": t.stickyTop }),
|
|
2927
|
+
"aria-label": "Sumário das seções do formulário"
|
|
2928
|
+
}, [
|
|
2929
|
+
u.value && d.value ? (b(), a("button", {
|
|
2930
|
+
key: 0,
|
|
2931
|
+
class: "top-accordion-navigator__scroll top-accordion-navigator__scroll--left",
|
|
2932
|
+
type: "button",
|
|
2933
|
+
"aria-label": "Rolar seções para a esquerda",
|
|
2934
|
+
onClick: r[0] ||= (e) => T(-240)
|
|
2935
|
+
}, [...r[2] ||= [o("i", { class: "pi pi-chevron-left" }, null, -1)]])) : i("", !0),
|
|
2936
|
+
u.value && f.value ? (b(), a("button", {
|
|
2937
|
+
key: 1,
|
|
2938
|
+
class: "top-accordion-navigator__scroll top-accordion-navigator__scroll--right",
|
|
2939
|
+
type: "button",
|
|
2940
|
+
"aria-label": "Rolar seções para a direita",
|
|
2941
|
+
onClick: r[1] ||= (e) => T(240)
|
|
2942
|
+
}, [...r[3] ||= [o("i", { class: "pi pi-chevron-right" }, null, -1)]])) : i("", !0),
|
|
2943
|
+
o("div", {
|
|
2944
|
+
ref_key: "containerRef",
|
|
2945
|
+
ref: l,
|
|
2946
|
+
class: "top-accordion-navigator__scroll-area"
|
|
2947
|
+
}, [o("div", Or, [(b(!0), a(e, null, C(t.sections, (n, r) => (b(), a(e, { key: n.value }, [o("button", {
|
|
2948
|
+
class: h(["top-accordion-navigator__item", {
|
|
2949
|
+
"top-accordion-navigator__item--open": x(n.value),
|
|
2950
|
+
"top-accordion-navigator__item--disabled": n.disabled
|
|
2951
|
+
}]),
|
|
2952
|
+
disabled: n.disabled,
|
|
2953
|
+
type: "button",
|
|
2954
|
+
"aria-current": x(n.value) ? "step" : void 0,
|
|
2955
|
+
onClick: (e) => E(n)
|
|
2956
|
+
}, [o("span", Ar, [n.disabled ? (b(), a("i", jr)) : n.icon ? (b(), a("i", {
|
|
2957
|
+
key: 1,
|
|
2958
|
+
class: h(n.icon)
|
|
2959
|
+
}, null, 2)) : (b(), a("span", Mr, D(r + 1), 1))]), o("span", Nr, D(n.label), 1)], 10, kr), r < t.sections.length - 1 ? (b(), a("span", {
|
|
2960
|
+
key: 0,
|
|
2961
|
+
class: h(["top-accordion-navigator__connector", { "top-accordion-navigator__connector--open": x(n.value) && x(t.sections[r + 1].value) }]),
|
|
2962
|
+
"aria-hidden": "true"
|
|
2963
|
+
}, null, 2)) : i("", !0)], 64))), 128))])], 512)
|
|
2964
|
+
], 6));
|
|
2965
|
+
}
|
|
2966
|
+
}), Fr = { class: "top-toast__content" }, Ir = { class: "top-toast__detail" }, Lr = ["onClick"], Rr = {
|
|
2477
2967
|
key: 0,
|
|
2478
2968
|
class: "top-toast__footer"
|
|
2479
|
-
},
|
|
2969
|
+
}, zr = /* @__PURE__ */ u({
|
|
2480
2970
|
__name: "TopToast",
|
|
2481
2971
|
props: { baseZIndex: { default: 3e4 } },
|
|
2482
2972
|
setup(e) {
|
|
@@ -2498,37 +2988,37 @@ var be = /* @__PURE__ */ _e(ge, [["render", ye], ["__file", "/Users/mahmudulhasa
|
|
|
2498
2988
|
function d(e, t) {
|
|
2499
2989
|
return `top-toast__${t}--${e.severity ?? "info"}`;
|
|
2500
2990
|
}
|
|
2501
|
-
return (f, p) => (
|
|
2991
|
+
return (f, p) => (b(), r(O(ce), {
|
|
2502
2992
|
position: "top-right",
|
|
2503
2993
|
"base-z-index": e.baseZIndex
|
|
2504
2994
|
}, {
|
|
2505
|
-
message:
|
|
2506
|
-
o("div", { class:
|
|
2507
|
-
o("div",
|
|
2508
|
-
u(e.message) ?
|
|
2995
|
+
message: j((e) => [o("div", Fr, [
|
|
2996
|
+
o("div", { class: h(["top-toast__summary", d(e.message, "summary")]) }, D(e.message.summary), 3),
|
|
2997
|
+
o("div", Ir, D(e.message.detail), 1),
|
|
2998
|
+
u(e.message) ? w(f.$slots, "action", {
|
|
2509
2999
|
action: n(e.message),
|
|
2510
3000
|
message: e.message,
|
|
2511
3001
|
run: () => s(e.message)
|
|
2512
|
-
}, () => [n(e.message) ? (
|
|
3002
|
+
}, () => [n(e.message) ? (b(), a("button", {
|
|
2513
3003
|
key: 0,
|
|
2514
|
-
class:
|
|
3004
|
+
class: h(["top-toast__action", d(e.message, "action")]),
|
|
2515
3005
|
type: "button",
|
|
2516
3006
|
onClick: (t) => s(e.message)
|
|
2517
|
-
}, [n(e.message)?.icon ? (
|
|
3007
|
+
}, [n(e.message)?.icon ? (b(), a("i", {
|
|
2518
3008
|
key: 0,
|
|
2519
|
-
class:
|
|
3009
|
+
class: h(n(e.message)?.icon),
|
|
2520
3010
|
"aria-hidden": "true"
|
|
2521
|
-
}, null, 2)) : i("", !0), c(" " +
|
|
2522
|
-
l(e.message) ?
|
|
3011
|
+
}, null, 2)) : i("", !0), c(" " + D(n(e.message)?.label), 1)], 10, Lr)) : i("", !0)], void 0, 0) : i("", !0),
|
|
3012
|
+
l(e.message) ? w(f.$slots, "footer", {
|
|
2523
3013
|
message: e.message,
|
|
2524
3014
|
footer: t(e.message)
|
|
2525
|
-
}, () => [t(e.message) === void 0 ? i("", !0) : (
|
|
3015
|
+
}, () => [t(e.message) === void 0 ? i("", !0) : (b(), a("div", Rr, D(t(e.message)), 1))], void 0, 1) : i("", !0)
|
|
2526
3016
|
])]),
|
|
2527
3017
|
_: 3
|
|
2528
3018
|
}, 8, ["base-z-index"]));
|
|
2529
3019
|
}
|
|
2530
3020
|
});
|
|
2531
3021
|
//#endregion
|
|
2532
|
-
export {
|
|
3022
|
+
export { hr as a, qn as c, Ve as d, be as f, le as h, vr as i, Ye as l, ue as m, Pr as n, fr as o, he as p, Dr as r, dr as s, zr as t, Q as u };
|
|
2533
3023
|
|
|
2534
|
-
//# sourceMappingURL=TopToast-
|
|
3024
|
+
//# sourceMappingURL=TopToast-BI4cWWtd.js.map
|