@topjoao/top-design-system 0.2.15 → 0.2.16

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.
@@ -7,22 +7,22 @@ import R from "primevue/datepicker";
7
7
  import z from "primevue/fileupload";
8
8
  import B from "primevue/inputtext";
9
9
  import V from "primevue/textarea";
10
- import ne from "primevue/inputnumber";
11
- import re from "primevue/drawer";
12
- import H from "primevue/menu";
10
+ import H from "primevue/inputnumber";
11
+ import ne from "primevue/drawer";
12
+ import re from "primevue/menu";
13
13
  import ie from "primevue/autocomplete";
14
14
  import U from "primevue/tab";
15
15
  import W from "primevue/tablist";
16
16
  import G from "primevue/tabpanel";
17
- import K from "primevue/tabpanels";
18
- import ae from "primevue/tabs";
19
- import q from "primevue/accordion";
20
- import J from "primevue/accordioncontent";
21
- import Y from "primevue/accordionheader";
22
- import oe from "primevue/accordionpanel";
23
- import X from "primevue/toast";
17
+ import ae from "primevue/tabpanels";
18
+ import oe from "primevue/tabs";
19
+ import K from "primevue/accordion";
20
+ import q from "primevue/accordioncontent";
21
+ import se from "primevue/accordionheader";
22
+ import ce from "primevue/accordionpanel";
23
+ import J from "primevue/toast";
24
24
  //#region src/components/TopButton.vue?vue&type=script&setup=true&lang.ts
25
- var se = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px] bg-transparent" }, ce = /* @__PURE__ */ u({
25
+ var le = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px] bg-transparent" }, ue = /* @__PURE__ */ u({
26
26
  __name: "TopButton",
27
27
  props: {
28
28
  tooltip: { default: "" },
@@ -59,7 +59,7 @@ var se = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px]
59
59
  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";
60
60
  return I("top-button__control text-xs", e, c.class);
61
61
  });
62
- return (t, n) => (b(), a("span", se, [M((b(), r(O(P), {
62
+ return (t, n) => (b(), a("span", le, [M((b(), r(O(P), {
63
63
  type: e.type,
64
64
  label: e.label,
65
65
  disabled: e.disabled || e.loading,
@@ -94,7 +94,7 @@ var se = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px]
94
94
  { top: !0 }
95
95
  ]])]));
96
96
  }
97
- }), le = {
97
+ }), Y = {
98
98
  primary: {
99
99
  50: "#EEF9FF",
100
100
  100: "#DFF4FF",
@@ -160,7 +160,7 @@ var se = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px]
160
160
  900: "#5D0803",
161
161
  950: "#450501"
162
162
  }
163
- }, ue = ["aria-label", "disabled"], de = { class: "flex flex-col items-center gap-2 pt-2" }, fe = { class: "text-base font-bold text-secondary-900 dark:text-zinc-100" }, Z = { class: "text-sm leading-5 text-secondary-700 dark:text-zinc-300" }, pe = { class: "mt-2 flex w-full items-center justify-center gap-3" }, me = /* @__PURE__ */ u({
163
+ }, 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" }, X = { class: "text-sm leading-5 text-secondary-700 dark:text-zinc-300" }, me = { class: "mt-2 flex w-full items-center justify-center gap-3" }, he = /* @__PURE__ */ u({
164
164
  __name: "TopConfirmDialog",
165
165
  props: {
166
166
  modelValue: {
@@ -192,8 +192,8 @@ var se = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px]
192
192
  !e && i.loading || a("update:modelValue", e);
193
193
  }
194
194
  }), u = n(() => ({
195
- "--top-confirm-dialog-accent": i.severity === "danger" ? le.danger[600] : le.primary[800],
196
- "--top-confirm-dialog-accent-hover": i.severity === "danger" ? le.danger[700] : le.primary[700]
195
+ "--top-confirm-dialog-accent": i.severity === "danger" ? Y.danger[600] : Y.primary[800],
196
+ "--top-confirm-dialog-accent-hover": i.severity === "danger" ? Y.danger[700] : Y.primary[700]
197
197
  })), 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(" "));
198
198
  function f() {
199
199
  i.loading || a("confirm");
@@ -238,19 +238,19 @@ var se = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px]
238
238
  }, [...n[2] ||= [o("i", {
239
239
  class: "pi pi-times text-lg",
240
240
  "aria-hidden": "true"
241
- }, null, -1)]], 8, ue),
242
- o("div", de, [o("i", {
241
+ }, null, -1)]], 8, de),
242
+ o("div", fe, [o("i", {
243
243
  class: h([e.icon, "top-confirm-dialog__icon text-[40px]"]),
244
244
  "aria-hidden": "true"
245
- }, null, 2), o("p", fe, D(e.title), 1)]),
246
- o("div", Z, [w(t.$slots, "message", {}, () => [w(t.$slots, "default", {}, () => [c(D(e.message), 1)])])]),
247
- o("div", pe, [l(ce, {
245
+ }, null, 2), o("p", pe, D(e.title), 1)]),
246
+ o("div", X, [w(t.$slots, "message", {}, () => [w(t.$slots, "default", {}, () => [c(D(e.message), 1)])])]),
247
+ o("div", me, [l(ue, {
248
248
  label: e.cancelText,
249
249
  secondary: "",
250
250
  disabled: e.loading,
251
251
  class: "px-3 py-2 text-sm",
252
252
  onClick: p
253
- }, null, 8, ["label", "disabled"]), l(ce, {
253
+ }, null, 8, ["label", "disabled"]), l(ue, {
254
254
  label: e.loading ? e.loadingText : e.confirmText,
255
255
  loading: e.loading,
256
256
  class: h(d.value),
@@ -268,11 +268,11 @@ var se = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px]
268
268
  "aria-label"
269
269
  ]));
270
270
  }
271
- }), he = { class: "top-date-picker top-solutions-component flex w-full flex-col gap-1" }, ge = ["for"], _e = {
271
+ }), ge = { class: "top-date-picker top-solutions-component flex w-full flex-col gap-1" }, _e = ["for"], ve = {
272
272
  key: 0,
273
273
  "aria-hidden": "true",
274
274
  class: "text-red-600 dark:text-red-400"
275
- }, ve = ["id"], ye = /* @__PURE__ */ u({
275
+ }, ye = ["id"], be = /* @__PURE__ */ u({
276
276
  inheritAttrs: !1,
277
277
  __name: "TopDatePicker",
278
278
  props: {
@@ -367,12 +367,12 @@ var se = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px]
367
367
  }
368
368
  o("input", e);
369
369
  }
370
- return (t, n) => (b(), a("div", he, [
370
+ return (t, n) => (b(), a("div", ge, [
371
371
  e.label ? (b(), a("label", {
372
372
  key: 0,
373
373
  for: h.value,
374
374
  class: "top-field-label text-xs font-bold"
375
- }, [c(D(e.label) + " ", 1), e.required ? (b(), a("span", _e, "*")) : i("", !0)], 8, ge)) : i("", !0),
375
+ }, [c(D(e.label) + " ", 1), e.required ? (b(), a("span", ve, "*")) : i("", !0)], 8, _e)) : i("", !0),
376
376
  l(O(R), p(T.value, {
377
377
  "model-value": e.modelValue,
378
378
  "input-id": h.value,
@@ -436,10 +436,10 @@ var se = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px]
436
436
  id: _.value,
437
437
  class: "text-[11px] text-red-600 dark:text-red-400",
438
438
  role: "alert"
439
- }, D(e.error), 9, ve)) : i("", !0)
439
+ }, D(e.error), 9, ye)) : i("", !0)
440
440
  ]));
441
441
  }
442
- }), be = [["path", {
442
+ }), xe = [["path", {
443
443
  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",
444
444
  stroke: "currentColor",
445
445
  strokeLinecap: "round",
@@ -453,7 +453,7 @@ var se = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px]
453
453
  strokeLinejoin: "round",
454
454
  strokeWidth: "1.5",
455
455
  key: "1"
456
- }]], xe = [["path", {
456
+ }]], Se = [["path", {
457
457
  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",
458
458
  stroke: "currentColor",
459
459
  strokeLinecap: "round",
@@ -467,7 +467,7 @@ var se = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px]
467
467
  strokeLinejoin: "round",
468
468
  strokeWidth: "1.5",
469
469
  key: "1"
470
- }]], Se = u({
470
+ }]], Ce = u({
471
471
  name: "HugeiconsIcon",
472
472
  inheritAttrs: !1,
473
473
  props: {
@@ -525,16 +525,16 @@ var se = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px]
525
525
  currentIcon: n(() => e.altIcon && e.showAlt ? e.altIcon : e.icon)
526
526
  };
527
527
  }
528
- }), Ce = (e, t) => {
528
+ }), we = (e, t) => {
529
529
  let n = e.__vccOpts || e;
530
530
  for (let [e, r] of t) n[e] = r;
531
531
  return n;
532
- }, we = [
532
+ }, Te = [
533
533
  "width",
534
534
  "height",
535
535
  "color"
536
536
  ];
537
- function Te(t, n, i, o, s, c) {
537
+ function Ee(t, n, i, o, s, c) {
538
538
  return b(), a("svg", p({
539
539
  width: t.computedSize,
540
540
  height: t.computedSize,
@@ -545,16 +545,16 @@ function Te(t, n, i, o, s, c) {
545
545
  }, t.$attrs), [(b(!0), a(e, null, C(t.currentIcon, (e, n) => (b(), r(E(e[0]), p({
546
546
  key: n,
547
547
  ref_for: !0
548
- }, t.transformAttrs(e[1], t.calculatedStrokeWidth)), null, 16))), 128))], 16, we);
548
+ }, t.transformAttrs(e[1], t.calculatedStrokeWidth)), null, 16))), 128))], 16, Te);
549
549
  }
550
- var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasan/Desktop/Projects/Hugeicons/hugeicons-monorepo/packages/vue/src/components/HugeiconsIcon.vue"]]), De = { class: "top-file-upload top-solutions-component flex w-full flex-col gap-1" }, Oe = ["for"], ke = {
550
+ 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 = {
551
551
  key: 0,
552
552
  "aria-hidden": "true",
553
553
  class: "text-red-600 dark:text-red-400"
554
- }, Ae = { class: "flex min-h-[130px] w-full flex-col items-center justify-center gap-3" }, je = {
554
+ }, je = { class: "flex min-h-[130px] w-full flex-col items-center justify-center gap-3" }, Me = {
555
555
  class: "top-file-upload__empty-icon",
556
556
  "aria-hidden": "true"
557
- }, Me = {
557
+ }, Z = {
558
558
  key: 0,
559
559
  "aria-label": "Carregando...",
560
560
  class: "pi pi-spin pi-spinner text-5xl"
@@ -648,23 +648,23 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
648
648
  }), !1))
649
649
  };
650
650
  }
651
- function ne(e) {
651
+ function H(e) {
652
652
  let t = e.originalEvent;
653
653
  return Array.from(t.dataTransfer?.files ?? t.target?.files ?? []);
654
654
  }
655
- function re(e) {
655
+ function ne(e) {
656
656
  return d.multiple ? [...e] : e[0] ?? null;
657
657
  }
658
- function H() {
658
+ function re() {
659
659
  g.value && (g.value.files = [..._.value]);
660
660
  }
661
661
  function ie(e, t) {
662
- _.value = e, x.value = [], J(), m(H);
663
- let n = re(e);
662
+ _.value = e, x.value = [], q(), m(re);
663
+ let n = ne(e);
664
664
  f("update:modelValue", n), f("change", n), t === "select" && f("select", [...e]), t === "clear" && f("clear");
665
665
  }
666
666
  function U(e) {
667
- let { errors: t, validFiles: n } = V(ne(e)), r = d.multiple ? [..._.value, ...n.filter((e) => !_.value.some((t) => L(t, e)))] : n.slice(-1);
667
+ let { errors: t, validFiles: n } = V(H(e)), r = d.multiple ? [..._.value, ...n.filter((e) => !_.value.some((t) => L(t, e)))] : n.slice(-1);
668
668
  if (d.maxFiles && r.length > d.maxFiles) {
669
669
  let e = r.slice(d.maxFiles);
670
670
  t.push(...e.map((e) => ({
@@ -673,9 +673,9 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
673
673
  message: `O limite máximo é de ${d.maxFiles} arquivo(s).`
674
674
  }))), r = r.slice(0, d.maxFiles);
675
675
  }
676
- if (t.length ? (x.value = t, f("error", t)) : x.value = [], H(), n.length && !W(r, _.value)) {
677
- _.value = r, J(), m(H);
678
- let e = re(r);
676
+ if (t.length ? (x.value = t, f("error", t)) : x.value = [], re(), n.length && !W(r, _.value)) {
677
+ _.value = r, q(), m(re);
678
+ let e = ne(r);
679
679
  f("update:modelValue", e), f("change", e), f("select", [...r]);
680
680
  }
681
681
  }
@@ -685,7 +685,7 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
685
685
  function G() {
686
686
  N.value || g.value?.choose();
687
687
  }
688
- function K(e, t) {
688
+ function ae(e, t) {
689
689
  if (N.value) return;
690
690
  let n = _.value[t];
691
691
  if (!n) return;
@@ -693,37 +693,37 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
693
693
  let r = _.value.filter((e, n) => n !== t);
694
694
  ie(r, "remove"), f("remove", n, t), r.length || f("clear");
695
695
  }
696
- function ae() {
696
+ function oe() {
697
697
  N.value || !_.value.length || ie([], "clear");
698
698
  }
699
- function q(e) {
699
+ function K(e) {
700
700
  if (!e.type.startsWith("image/") || typeof URL.createObjectURL != "function") return "";
701
701
  let t = T.get(e);
702
702
  if (t) return t;
703
703
  let n = URL.createObjectURL(e);
704
704
  return T.set(e, n), n;
705
705
  }
706
- function J() {
706
+ function q() {
707
707
  for (let [e, t] of T) _.value.includes(e) || (URL.revokeObjectURL(t), T.delete(e));
708
708
  }
709
709
  return A(() => d.modelValue, (e) => {
710
710
  let t = I(e);
711
- W(t, _.value) || (_.value = t, x.value = [], J(), m(H));
711
+ W(t, _.value) || (_.value = t, x.value = [], q(), m(re));
712
712
  }), A(() => d.multiple, () => {
713
713
  let e = I(d.modelValue);
714
- _.value = e, J(), m(H);
715
- }), y(H), v(() => {
714
+ _.value = e, q(), m(re);
715
+ }), y(re), v(() => {
716
716
  for (let e of T.values()) URL.revokeObjectURL(e);
717
717
  T.clear();
718
718
  }), s({
719
719
  choose: G,
720
- clear: ae
721
- }), (n, s) => (b(), a("div", De, [
720
+ clear: oe
721
+ }), (n, s) => (b(), a("div", Oe, [
722
722
  t.label ? (b(), a("label", {
723
723
  key: 0,
724
724
  for: E.value,
725
725
  class: "text-xs font-bold text-secondary-800 dark:text-zinc-200"
726
- }, [c(D(t.label) + " ", 1), t.required ? (b(), a("span", ke, "*")) : i("", !0)], 8, Oe)) : i("", !0),
726
+ }, [c(D(t.label) + " ", 1), t.required ? (b(), a("span", Ae, "*")) : i("", !0)], 8, ke)) : i("", !0),
727
727
  l(O(z), {
728
728
  ref_key: "fileUploadRef",
729
729
  ref: g,
@@ -746,17 +746,17 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
746
746
  },
747
747
  onSelect: U
748
748
  }, {
749
- content: j(({ removeFileCallback: c }) => [o("div", Ae, [_.value.length ? (b(), a("div", Pe, [(b(!0), a(e, null, C(_.value, (e, r) => (b(), a("div", {
749
+ 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", {
750
750
  key: `${e.name}-${e.size}-${e.lastModified}`,
751
751
  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"
752
752
  }, [
753
753
  w(n.$slots, "preview", {
754
754
  file: e,
755
755
  index: r,
756
- url: q(e)
757
- }, () => [q(e) ? (b(), a("img", {
756
+ url: K(e)
757
+ }, () => [K(e) ? (b(), a("img", {
758
758
  key: 0,
759
- src: q(e),
759
+ src: K(e),
760
760
  alt: `Pré-visualização de ${e.name}`,
761
761
  class: "size-12 shrink-0 rounded-lg object-cover"
762
762
  }, null, 8, Fe)) : (b(), a("span", Ie, [...s[0] ||= [o("i", {
@@ -769,12 +769,12 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
769
769
  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",
770
770
  "aria-label": `${t.removeLabel}: ${e.name}`,
771
771
  disabled: N.value,
772
- onClick: (e) => K(c, r)
772
+ onClick: (e) => ae(c, r)
773
773
  }, [...s[1] ||= [o("i", {
774
774
  class: "pi pi-times",
775
775
  "aria-hidden": "true"
776
776
  }, null, -1)]], 8, Be)
777
- ]))), 128)), t.multiple && (!t.maxFiles || _.value.length < t.maxFiles) ? (b(), r(ce, {
777
+ ]))), 128)), t.multiple && (!t.maxFiles || _.value.length < t.maxFiles) ? (b(), r(ue, {
778
778
  key: 0,
779
779
  label: t.selectLabel,
780
780
  icon: "pi pi-plus-circle",
@@ -791,15 +791,15 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
791
791
  choose: G,
792
792
  disabled: N.value
793
793
  }, () => [
794
- o("span", je, [t.loading ? (b(), a("i", Me)) : (b(), r(O(Ee), {
794
+ o("span", Me, [t.loading ? (b(), a("i", Z)) : (b(), r(O(De), {
795
795
  key: 1,
796
- icon: O(be),
796
+ icon: O(xe),
797
797
  size: 72,
798
798
  "stroke-width": 1.5,
799
799
  class: "text-primary-800 dark:text-primary-300"
800
800
  }, null, 8, ["icon"]))]),
801
801
  o("p", Ne, D(t.placeholder), 1),
802
- l(ce, {
802
+ l(ue, {
803
803
  label: t.selectLabel,
804
804
  icon: "pi pi-plus-circle",
805
805
  disabled: t.disabled,
@@ -1186,7 +1186,7 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
1186
1186
  "aria-invalid",
1187
1187
  "aria-describedby",
1188
1188
  "class"
1189
- ])) : (b(), r(O(ne), p({ key: 2 }, M.value, {
1189
+ ])) : (b(), r(O(H), p({ key: 2 }, M.value, {
1190
1190
  "model-value": e.modelValue,
1191
1191
  "input-id": _.value,
1192
1192
  placeholder: e.placeholder,
@@ -1576,15 +1576,15 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
1576
1576
  "user-click"
1577
1577
  ],
1578
1578
  setup(s, { expose: u, emit: d }) {
1579
- let f = s, p = d, g = te(), x = S(null), T = S(null), E = S(null), ee = S(null), k = S(null), M = S(null), P = S(f.mobileOpen ?? !1), F = S(!1), I = S(null), L = S([]), R = S(null), z = S([]), B = S(!1), V = S(!1), ne = S(!1), ie = S(null), U = S(!1), W = S(!1), G = S(!1), K = S(!0), ae = S(!1), q = S(f.searchValue ?? ""), J = S(!1), Y = S(!1), oe = S(!1), X = S({
1579
+ let f = s, p = d, g = te(), x = S(null), T = S(null), E = S(null), ee = S(null), k = S(null), M = S(null), P = S(f.mobileOpen ?? !1), F = S(!1), I = S(null), L = S([]), R = S(null), z = S([]), B = S(!1), V = S(!1), H = S(!1), ie = S(null), U = S(!1), W = S(!1), G = S(!1), ae = S(!0), oe = S(!1), K = S(f.searchValue ?? ""), q = S(!1), se = S(!1), ce = S(!1), J = S({
1580
1580
  collapseActions: !1,
1581
1581
  searchIconOnly: !1,
1582
1582
  hideUserName: !1,
1583
1583
  hideContextDetails: !1
1584
- }), se, ce, le, ue, de = 0;
1585
- function fe(e) {
1584
+ }), le, ue, Y, de, fe = 0;
1585
+ function pe(e) {
1586
1586
  return (e.children ?? []).filter(Boolean).map((e) => {
1587
- let t = fe(e);
1587
+ let t = pe(e);
1588
1588
  if (!t.length) {
1589
1589
  let { children: t, ...n } = e;
1590
1590
  return n;
@@ -1595,63 +1595,63 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
1595
1595
  };
1596
1596
  });
1597
1597
  }
1598
- let Z = n(() => f.sections.map((e) => e.children === void 0 ? e : {
1598
+ let X = n(() => f.sections.map((e) => e.children === void 0 ? e : {
1599
1599
  ...e,
1600
- children: fe(e)
1600
+ children: pe(e)
1601
1601
  }).filter((e) => e.children === void 0 || e.children.length > 0));
1602
- function pe(e, t = []) {
1602
+ function me(e, t = []) {
1603
1603
  return e.forEach((e) => {
1604
1604
  let n = e.children ?? [];
1605
- n.length ? pe(n, t) : t.push(e);
1605
+ n.length ? me(n, t) : t.push(e);
1606
1606
  }), t;
1607
1607
  }
1608
- let me = n(() => pe(Z.value));
1609
- function he(e) {
1608
+ let he = n(() => me(X.value));
1609
+ function ge(e) {
1610
1610
  return e.normalize("NFD").replace(/[\u0300-\u036f]/g, "").toLocaleLowerCase("pt-BR");
1611
1611
  }
1612
- let ge = n(() => {
1612
+ let _e = n(() => {
1613
1613
  if (f.searchResults !== void 0) return f.searchResults;
1614
- let e = he(q.value.trim());
1615
- return e ? me.value.filter((t) => he(t.label).includes(e)) : me.value;
1614
+ let e = ge(K.value.trim());
1615
+ return e ? he.value.filter((t) => ge(t.label).includes(e)) : he.value;
1616
1616
  });
1617
- function _e(e, t) {
1617
+ function ve(e, t) {
1618
1618
  return t ? e.flatMap((e) => {
1619
- let n = he(e.label).includes(t), r = _e(e.children ?? [], t);
1619
+ let n = ge(e.label).includes(t), r = ve(e.children ?? [], t);
1620
1620
  return !n && !r.length ? [] : [{
1621
1621
  ...e,
1622
1622
  children: n ? e.children : r
1623
1623
  }];
1624
1624
  }) : e;
1625
1625
  }
1626
- let ve = n(() => _e(Z.value, he(q.value.trim())));
1627
- function ye(e, t, n = []) {
1626
+ let ye = n(() => ve(X.value, ge(K.value.trim())));
1627
+ function be(e, t, n = []) {
1628
1628
  for (let r of e) {
1629
1629
  let e = [...n, r];
1630
1630
  if (r.id === t) return e;
1631
- let i = ye(r.children ?? [], t, e);
1631
+ let i = be(r.children ?? [], t, e);
1632
1632
  if (i) return i;
1633
1633
  }
1634
1634
  return null;
1635
1635
  }
1636
- function be(e, t) {
1636
+ function xe(e, t) {
1637
1637
  for (let n of e) {
1638
1638
  if (n.id === t) return n;
1639
- let e = be(n.children ?? [], t);
1639
+ let e = xe(n.children ?? [], t);
1640
1640
  if (e) return e;
1641
1641
  }
1642
1642
  return null;
1643
1643
  }
1644
- let Se = n(() => {
1644
+ let Ce = n(() => {
1645
1645
  if (!f.activeItemId) return null;
1646
- for (let e of Z.value) {
1646
+ for (let e of X.value) {
1647
1647
  if (e.id === f.activeItemId) return [e];
1648
- let t = ye(e.children ?? [], f.activeItemId);
1648
+ let t = be(e.children ?? [], f.activeItemId);
1649
1649
  if (t) return [e, ...t];
1650
1650
  }
1651
1651
  return null;
1652
- }), Ce = n(() => {
1652
+ }), we = n(() => {
1653
1653
  if (f.breadcrumbs.length) return f.breadcrumbs;
1654
- let e = Se.value;
1654
+ let e = Ce.value;
1655
1655
  if (!e?.length) return [];
1656
1656
  let t = e.length - 1;
1657
1657
  return e.map((e, n) => ({
@@ -1662,11 +1662,11 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
1662
1662
  menuId: n > 0 && e.children?.length ? e.id : void 0
1663
1663
  }));
1664
1664
  });
1665
- function we(e) {
1666
- return e.menuId ? be(Z.value, e.menuId) : e.sectionId ? Z.value.find((t) => t.id === e.sectionId) ?? null : null;
1665
+ function Te(e) {
1666
+ return e.menuId ? xe(X.value, e.menuId) : e.sectionId ? X.value.find((t) => t.id === e.sectionId) ?? null : null;
1667
1667
  }
1668
- let Te = n(() => Z.value.find((e) => e.id === I.value) ?? null);
1669
- function De(e, t) {
1668
+ let Ee = n(() => X.value.find((e) => e.id === I.value) ?? null);
1669
+ function Oe(e, t) {
1670
1670
  let n = [], r = e, i = 0;
1671
1671
  for (; r.length;) {
1672
1672
  n.push(r);
@@ -1678,13 +1678,13 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
1678
1678
  }
1679
1679
  return n;
1680
1680
  }
1681
- let Oe = n(() => Te.value ? De(Te.value.children ?? [], L.value) : []);
1682
- function ke(e, t = 10) {
1681
+ let ke = n(() => Ee.value ? Oe(Ee.value.children ?? [], L.value) : []);
1682
+ function Ae(e, t = 10) {
1683
1683
  let n = [];
1684
1684
  for (let r = 0; r < e.length; r += t) n.push(e.slice(r, r + t));
1685
1685
  return n;
1686
1686
  }
1687
- let Ae = n(() => {
1687
+ let je = n(() => {
1688
1688
  let e = [];
1689
1689
  return f.showAia && e.push({
1690
1690
  id: "__aia",
@@ -1700,7 +1700,7 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
1700
1700
  ...t,
1701
1701
  kind: "action"
1702
1702
  })), e;
1703
- }), je = n(() => {
1703
+ }), Me = n(() => {
1704
1704
  let e = [];
1705
1705
  return f.userMenuItems.forEach((t) => {
1706
1706
  if (t.separator) {
@@ -1709,7 +1709,7 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
1709
1709
  }
1710
1710
  e.push(t);
1711
1711
  }), e.at(-1)?.separator && e.pop(), e;
1712
- }), Me = n(() => !!g["user-menu"] || je.value.some((e) => !e.separator)), Ne = n(() => !!f.user || !!g.user), Pe = n(() => !!(f.client || g.context || g.scope || g.client || g["context-compact"])), Fe = n(() => f.favoriteItems.filter(Boolean)), Ie = n(() => G.value || !K.value), Le = n(() => Fe.value.length > 0 && !Ie.value), Re = n(() => Z.value.length > 0 || f.searchable || Ae.value.length > 0 || Ne.value || !!(g["drawer-menu"] || g["drawer-actions"] || g["drawer-footer"])), ze = n(() => f.user ? f.user.initials ? f.user.initials : f.user.name.split(/\s+/).filter(Boolean).slice(0, 2).map((e) => e[0]?.toLocaleUpperCase("pt-BR")).join("") : ""), Be = n(() => je.value.map((e) => e.separator ? { separator: !0 } : {
1712
+ }), Z = n(() => !!g["user-menu"] || Me.value.some((e) => !e.separator)), Ne = n(() => !!f.user || !!g.user), Pe = n(() => !!(f.client || g.context || g.scope || g.client || g["context-compact"])), Fe = n(() => f.favoriteItems.filter(Boolean)), Ie = n(() => G.value || !ae.value), Le = n(() => Fe.value.length > 0 && !Ie.value), Re = n(() => X.value.length > 0 || f.searchable || je.value.length > 0 || Ne.value || !!(g["drawer-menu"] || g["drawer-actions"] || g["drawer-footer"])), ze = n(() => f.user ? f.user.initials ? f.user.initials : f.user.name.split(/\s+/).filter(Boolean).slice(0, 2).map((e) => e[0]?.toLocaleUpperCase("pt-BR")).join("") : ""), Be = n(() => Me.value.map((e) => e.separator ? { separator: !0 } : {
1713
1713
  label: e.label,
1714
1714
  icon: e.icon,
1715
1715
  disabled: e.disabled,
@@ -1730,12 +1730,12 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
1730
1730
  }
1731
1731
  function We() {
1732
1732
  let e = E.value, t = ee.value;
1733
- !e || !t || (K.value = t.scrollWidth <= e.clientWidth + 1);
1733
+ !e || !t || (ae.value = t.scrollWidth <= e.clientWidth + 1);
1734
1734
  }
1735
1735
  function Ge() {
1736
- ue = window.requestAnimationFrame(() => {
1737
- ue = window.requestAnimationFrame(() => {
1738
- ae.value = !0;
1736
+ de = window.requestAnimationFrame(() => {
1737
+ de = window.requestAnimationFrame(() => {
1738
+ oe.value = !0;
1739
1739
  });
1740
1740
  });
1741
1741
  }
@@ -1749,17 +1749,17 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
1749
1749
  e.disabled || (e.kind === "aia" ? p("toggle-aia") : e.kind === "support" ? p("open-support") : p("action", e), B.value = !1, t && (P.value = !1));
1750
1750
  }
1751
1751
  function qe(e, t = !1) {
1752
- e.disabled || e.separator || (p("user-action", e), V.value = !1, ne.value = !1, t && (P.value = !1));
1752
+ e.disabled || e.separator || (p("user-action", e), V.value = !1, H.value = !1, t && (P.value = !1));
1753
1753
  }
1754
1754
  function Je(e) {
1755
- if (!Me.value) {
1755
+ if (!Z.value) {
1756
1756
  p("user-click", f.user);
1757
1757
  return;
1758
1758
  }
1759
1759
  ie.value?.toggle(e);
1760
1760
  }
1761
1761
  function Ye(e) {
1762
- q.value = e, p("update:searchValue", e), p("search", e);
1762
+ K.value = e, p("update:searchValue", e), p("search", e);
1763
1763
  }
1764
1764
  function Xe() {
1765
1765
  Ye(""), m(() => P.value ? M.value?.focus() : k.value?.focus());
@@ -1821,18 +1821,18 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
1821
1821
  R.value = R.value === e ? null : e, z.value = [];
1822
1822
  }
1823
1823
  function rr() {
1824
- F.value = !1, I.value = null, L.value = [], R.value = null, z.value = [], B.value = !1, V.value = !1, U.value = !1, J.value = !1;
1824
+ F.value = !1, I.value = null, L.value = [], R.value = null, z.value = [], B.value = !1, V.value = !1, U.value = !1, q.value = !1;
1825
1825
  }
1826
1826
  async function ir() {
1827
1827
  if (typeof window < "u" && window.innerWidth < 1024) {
1828
1828
  P.value = !0, await m(), M.value?.focus();
1829
1829
  return;
1830
1830
  }
1831
- Y.value = !0, J.value = !0, await m(), k.value?.focus(), cr();
1831
+ se.value = !0, q.value = !0, await m(), k.value?.focus(), cr();
1832
1832
  }
1833
1833
  function ar() {
1834
1834
  window.setTimeout(() => {
1835
- J.value = !1, X.value.searchIconOnly && !q.value.trim() && (Y.value = !1, cr());
1835
+ q.value = !1, J.value.searchIconOnly && !K.value.trim() && (se.value = !1, cr());
1836
1836
  }, 150);
1837
1837
  }
1838
1838
  function or() {
@@ -1840,8 +1840,8 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
1840
1840
  }
1841
1841
  async function sr() {
1842
1842
  if (typeof window > "u" || !T.value) return;
1843
- let e = ++de, t = or();
1844
- oe.value = t < 1024;
1843
+ let e = ++fe, t = or();
1844
+ ce.value = t < 1024;
1845
1845
  let n = {
1846
1846
  collapseActions: !1,
1847
1847
  searchIconOnly: !1,
@@ -1849,15 +1849,15 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
1849
1849
  hideContextDetails: !1
1850
1850
  };
1851
1851
  if (t < 1024) {
1852
- X.value = n, Y.value = !1;
1852
+ J.value = n, se.value = !1;
1853
1853
  return;
1854
1854
  }
1855
- if (X.value = {
1855
+ if (J.value = {
1856
1856
  collapseActions: t < 1440,
1857
1857
  searchIconOnly: t < 1320,
1858
1858
  hideUserName: t < 1180,
1859
1859
  hideContextDetails: !1
1860
- }, await m(), e === de) for (let t of [
1860
+ }, await m(), e === fe) for (let t of [
1861
1861
  "collapseActions",
1862
1862
  "searchIconOnly",
1863
1863
  "hideUserName",
@@ -1865,15 +1865,15 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
1865
1865
  ]) {
1866
1866
  let n = T.value;
1867
1867
  if (!n || n.scrollWidth <= n.clientWidth + 1) break;
1868
- if (X.value = {
1869
- ...X.value,
1868
+ if (J.value = {
1869
+ ...J.value,
1870
1870
  [t]: !0
1871
- }, await m(), e !== de) return;
1871
+ }, await m(), e !== fe) return;
1872
1872
  }
1873
1873
  }
1874
1874
  function cr() {
1875
- typeof window > "u" || (le !== void 0 && window.cancelAnimationFrame(le), le = window.requestAnimationFrame(() => {
1876
- le = void 0, sr();
1875
+ typeof window > "u" || (Y !== void 0 && window.cancelAnimationFrame(Y), Y = window.requestAnimationFrame(() => {
1876
+ Y = void 0, sr();
1877
1877
  }));
1878
1878
  }
1879
1879
  function lr(e) {
@@ -1883,7 +1883,7 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
1883
1883
  rr();
1884
1884
  return;
1885
1885
  }
1886
- t.closest("[data-top-nav-navigation]") || (F.value = !1, I.value = null, L.value = []), t.closest("[data-top-nav-breadcrumb]") || (R.value = null, z.value = []), t.closest("[data-top-nav-actions]") || (B.value = !1), t.closest("[data-top-nav-user]") || (V.value = !1), t.closest("[data-top-nav-favorites]") || (U.value = !1), t.closest("[data-top-nav-search]") || (J.value = !1);
1886
+ t.closest("[data-top-nav-navigation]") || (F.value = !1, I.value = null, L.value = []), t.closest("[data-top-nav-breadcrumb]") || (R.value = null, z.value = []), t.closest("[data-top-nav-actions]") || (B.value = !1), t.closest("[data-top-nav-user]") || (V.value = !1), t.closest("[data-top-nav-favorites]") || (U.value = !1), t.closest("[data-top-nav-search]") || (q.value = !1);
1887
1887
  }
1888
1888
  }
1889
1889
  function ur(e) {
@@ -1892,15 +1892,15 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
1892
1892
  return;
1893
1893
  }
1894
1894
  if (e.key === "Escape") {
1895
- if (ne.value) {
1895
+ if (H.value) {
1896
1896
  ie.value?.hide();
1897
1897
  return;
1898
1898
  }
1899
- P.value &&= !1, rr(), X.value.searchIconOnly && !q.value.trim() && (Y.value = !1);
1899
+ P.value &&= !1, rr(), J.value.searchIconOnly && !K.value.trim() && (se.value = !1);
1900
1900
  }
1901
1901
  }
1902
1902
  function dr() {
1903
- if (!Me.value) {
1903
+ if (!Z.value) {
1904
1904
  p("user-click", f.user);
1905
1905
  return;
1906
1906
  }
@@ -1918,19 +1918,19 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
1918
1918
  U.value = !U.value;
1919
1919
  }
1920
1920
  return A(() => f.searchValue, (e) => {
1921
- e !== void 0 && e !== q.value && (q.value = e);
1921
+ e !== void 0 && e !== K.value && (K.value = e);
1922
1922
  }), A(() => f.mobileOpen, (e) => {
1923
1923
  e !== void 0 && e !== P.value && (P.value = e);
1924
1924
  }), A(P, (e) => p("update:mobileOpen", e)), A([
1925
- Z,
1925
+ X,
1926
1926
  () => f.user,
1927
- Ae
1927
+ je
1928
1928
  ], () => m(cr), { deep: !0 }), A(Fe, () => m(We), { deep: !0 }), y(() => {
1929
- document.addEventListener("keydown", ur), document.addEventListener("pointerdown", lr), window.addEventListener("resize", cr), window.visualViewport?.addEventListener("resize", cr), window.addEventListener("resize", We), window.addEventListener("scroll", Ue, { passive: !0 }), typeof ResizeObserver < "u" && (se = new ResizeObserver(cr), T.value && se.observe(T.value), ce = new ResizeObserver(We), E.value && ce.observe(E.value)), cr(), m(() => {
1929
+ document.addEventListener("keydown", ur), document.addEventListener("pointerdown", lr), window.addEventListener("resize", cr), window.visualViewport?.addEventListener("resize", cr), window.addEventListener("resize", We), window.addEventListener("scroll", Ue, { passive: !0 }), typeof ResizeObserver < "u" && (le = new ResizeObserver(cr), T.value && le.observe(T.value), ue = new ResizeObserver(We), E.value && ue.observe(E.value)), cr(), m(() => {
1930
1930
  We(), Ue(), Ge();
1931
1931
  });
1932
1932
  }), v(() => {
1933
- document.removeEventListener("keydown", ur), document.removeEventListener("pointerdown", lr), window.removeEventListener("resize", cr), window.visualViewport?.removeEventListener("resize", cr), window.removeEventListener("resize", We), window.removeEventListener("scroll", Ue), se?.disconnect(), ce?.disconnect(), le !== void 0 && window.cancelAnimationFrame(le), ue !== void 0 && window.cancelAnimationFrame(ue);
1933
+ document.removeEventListener("keydown", ur), document.removeEventListener("pointerdown", lr), window.removeEventListener("resize", cr), window.visualViewport?.removeEventListener("resize", cr), window.removeEventListener("resize", We), window.removeEventListener("scroll", Ue), le?.disconnect(), ue?.disconnect(), Y !== void 0 && window.cancelAnimationFrame(Y), de !== void 0 && window.cancelAnimationFrame(de);
1934
1934
  }), u({
1935
1935
  close: rr,
1936
1936
  closeDrawer: () => {
@@ -1950,7 +1950,7 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
1950
1950
  o("header", {
1951
1951
  ref_key: "headerRef",
1952
1952
  ref: T,
1953
- class: h(["top-nav-bar__header", { "top-nav-bar__header--context-compact": X.value.hideContextDetails }])
1953
+ class: h(["top-nav-bar__header", { "top-nav-bar__header--context-compact": J.value.hideContextDetails }])
1954
1954
  }, [
1955
1955
  Re.value ? (b(), a("button", {
1956
1956
  key: 0,
@@ -1963,32 +1963,32 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
1963
1963
  class: "pi pi-bars",
1964
1964
  "aria-hidden": "true"
1965
1965
  }, null, -1)]], 8, ct)) : i("", !0),
1966
- o("div", lt, [w(n.$slots, "brand", { compact: X.value.hideContextDetails })]),
1966
+ o("div", lt, [w(n.$slots, "brand", { compact: J.value.hideContextDetails })]),
1967
1967
  Pe.value ? (b(), a("div", ut)) : i("", !0),
1968
- Pe.value ? (b(), a("div", dt, [X.value.hideContextDetails && n.$slots["context-compact"] ? w(n.$slots, "context-compact", {
1968
+ Pe.value ? (b(), a("div", dt, [J.value.hideContextDetails && n.$slots["context-compact"] ? w(n.$slots, "context-compact", {
1969
1969
  client: s.client,
1970
1970
  compact: !0
1971
1971
  }, void 0, void 0, 0) : n.$slots.context ? w(n.$slots, "context", {
1972
1972
  client: s.client,
1973
- compact: X.value.hideContextDetails
1973
+ compact: J.value.hideContextDetails
1974
1974
  }, void 0, void 0, 1) : n.$slots.scope ? w(n.$slots, "scope", {
1975
1975
  client: s.client,
1976
- compact: X.value.hideContextDetails
1976
+ compact: J.value.hideContextDetails
1977
1977
  }, void 0, void 0, 2) : w(n.$slots, "client", {
1978
1978
  client: s.client,
1979
- compact: X.value.hideContextDetails
1979
+ compact: J.value.hideContextDetails
1980
1980
  }, () => [s.client ? (b(), a("div", ft, [s.client.logoUrl ? (b(), a("img", {
1981
1981
  key: 0,
1982
1982
  src: s.client.logoUrl,
1983
1983
  alt: "",
1984
1984
  class: "top-nav-bar__client-logo"
1985
- }, null, 8, pt)) : (b(), a("span", mt, D(He.value), 1)), X.value.hideContextDetails ? i("", !0) : (b(), a("span", ht, [o("span", gt, D(s.client.name), 1), s.client.subtitle ? (b(), a("span", _t, D(s.client.subtitle), 1)) : i("", !0)]))])) : i("", !0)], void 0, 3)])) : i("", !0),
1985
+ }, null, 8, pt)) : (b(), a("span", mt, D(He.value), 1)), J.value.hideContextDetails ? i("", !0) : (b(), a("span", ht, [o("span", gt, D(s.client.name), 1), s.client.subtitle ? (b(), a("span", _t, D(s.client.subtitle), 1)) : i("", !0)]))])) : i("", !0)], void 0, 3)])) : i("", !0),
1986
1986
  u[24] ||= o("div", {
1987
1987
  class: "top-nav-bar__spacer",
1988
1988
  "aria-hidden": "true"
1989
1989
  }, null, -1),
1990
1990
  o("div", vt, [
1991
- s.searchable ? (b(), a("div", yt, [X.value.searchIconOnly && !Y.value ? (b(), a("button", {
1991
+ s.searchable ? (b(), a("div", yt, [J.value.searchIconOnly && !se.value ? (b(), a("button", {
1992
1992
  key: 0,
1993
1993
  class: "top-nav-bar__square-button",
1994
1994
  type: "button",
@@ -2000,7 +2000,7 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
2000
2000
  "aria-hidden": "true"
2001
2001
  }, null, -1)]])) : (b(), a("div", {
2002
2002
  key: 1,
2003
- class: h(["top-nav-bar__search", { "top-nav-bar__search--expanded": Y.value }])
2003
+ class: h(["top-nav-bar__search", { "top-nav-bar__search--expanded": se.value }])
2004
2004
  }, [
2005
2005
  u[22] ||= o("i", {
2006
2006
  class: "pi pi-search",
@@ -2009,30 +2009,30 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
2009
2009
  o("input", {
2010
2010
  ref_key: "searchInputRef",
2011
2011
  ref: k,
2012
- value: q.value,
2012
+ value: K.value,
2013
2013
  type: "text",
2014
2014
  role: "searchbox",
2015
2015
  placeholder: s.searchPlaceholder,
2016
2016
  "aria-label": "Pesquisar no menu",
2017
- onFocus: u[1] ||= (e) => J.value = !0,
2017
+ onFocus: u[1] ||= (e) => q.value = !0,
2018
2018
  onBlur: ar,
2019
2019
  onInput: u[2] ||= (e) => Ye(e.target.value)
2020
2020
  }, null, 40, bt),
2021
- q.value || X.value.searchIconOnly && Y.value ? (b(), a("button", {
2021
+ K.value || J.value.searchIconOnly && se.value ? (b(), a("button", {
2022
2022
  key: 0,
2023
2023
  class: "top-nav-bar__search-clear",
2024
2024
  type: "button",
2025
- "aria-label": q.value ? "Limpar pesquisa" : "Fechar pesquisa",
2025
+ "aria-label": K.value ? "Limpar pesquisa" : "Fechar pesquisa",
2026
2026
  onMousedown: u[3] ||= N(() => {}, ["prevent"]),
2027
- onClick: u[4] ||= (e) => q.value ? Xe() : Y.value = !1
2027
+ onClick: u[4] ||= (e) => K.value ? Xe() : se.value = !1
2028
2028
  }, [...u[21] ||= [o("i", {
2029
2029
  class: "pi pi-times",
2030
2030
  "aria-hidden": "true"
2031
2031
  }, null, -1)]], 40, xt)) : i("", !0),
2032
- J.value ? (b(), a("div", St, [o("div", Ct, [w(n.$slots, "search-results", {
2033
- items: ge.value,
2032
+ q.value ? (b(), a("div", St, [o("div", Ct, [w(n.$slots, "search-results", {
2033
+ items: _e.value,
2034
2034
  select: $
2035
- }, () => [(b(!0), a(e, null, C(ge.value, (e) => (b(), a("button", {
2035
+ }, () => [(b(!0), a(e, null, C(_e.value, (e) => (b(), a("button", {
2036
2036
  key: e.id,
2037
2037
  class: "top-nav-bar__menu-item",
2038
2038
  type: "button",
@@ -2044,9 +2044,9 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
2044
2044
  key: 0,
2045
2045
  class: h(e.icon),
2046
2046
  "aria-hidden": "true"
2047
- }, null, 2)) : i("", !0), o("span", null, D(e.label), 1)], 40, wt))), 128)), ge.value.length ? i("", !0) : (b(), a("span", Tt, "Nenhum item encontrado."))])])])) : i("", !0)
2047
+ }, null, 2)) : i("", !0), o("span", null, D(e.label), 1)], 40, wt))), 128)), _e.value.length ? i("", !0) : (b(), a("span", Tt, "Nenhum item encontrado."))])])])) : i("", !0)
2048
2048
  ], 2))])) : i("", !0),
2049
- Ae.value.length ? (b(), a("div", Et, [X.value.collapseActions ? (b(), a(e, { key: 1 }, [o("button", {
2049
+ je.value.length ? (b(), a("div", Et, [J.value.collapseActions ? (b(), a(e, { key: 1 }, [o("button", {
2050
2050
  class: "top-nav-bar__square-button",
2051
2051
  type: "button",
2052
2052
  "aria-label": "Mais ações",
@@ -2055,7 +2055,7 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
2055
2055
  }, [...u[23] ||= [o("i", {
2056
2056
  class: "pi pi-ellipsis-h",
2057
2057
  "aria-hidden": "true"
2058
- }, null, -1)]], 8, Ot), B.value ? (b(), a("div", kt, [o("div", At, [(b(!0), a(e, null, C(Ae.value, (e) => (b(), a("button", {
2058
+ }, null, -1)]], 8, Ot), B.value ? (b(), a("div", kt, [o("div", At, [(b(!0), a(e, null, C(je.value, (e) => (b(), a("button", {
2059
2059
  key: e.id,
2060
2060
  class: "top-nav-bar__menu-item",
2061
2061
  type: "button",
@@ -2065,7 +2065,7 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
2065
2065
  }, [o("i", {
2066
2066
  class: h(e.icon),
2067
2067
  "aria-hidden": "true"
2068
- }, null, 2), o("span", null, D(e.label), 1)], 8, jt))), 128))])])) : i("", !0)], 64)) : (b(!0), a(e, { key: 0 }, C(Ae.value, (e) => (b(), a("button", {
2068
+ }, null, 2), o("span", null, D(e.label), 1)], 8, jt))), 128))])])) : i("", !0)], 64)) : (b(!0), a(e, { key: 0 }, C(je.value, (e) => (b(), a("button", {
2069
2069
  key: e.id,
2070
2070
  class: h(["top-nav-bar__square-button", { "top-nav-bar__square-button--active": e.kind === "aia" && s.aiaActive }]),
2071
2071
  type: "button",
@@ -2086,33 +2086,33 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
2086
2086
  "aria-hidden": "true"
2087
2087
  }, null, 2))], 10, Dt))), 128))])) : i("", !0),
2088
2088
  n.$slots.actions ? (b(), a("div", Mt, [w(n.$slots, "actions", {
2089
- compact: X.value.collapseActions,
2089
+ compact: J.value.collapseActions,
2090
2090
  close: rr
2091
2091
  })])) : i("", !0),
2092
2092
  Ne.value ? (b(), a("div", {
2093
2093
  key: 3,
2094
2094
  class: "top-nav-bar__user-menu",
2095
2095
  "data-top-nav-user": "",
2096
- onMouseenter: u[7] ||= (e) => Me.value && Q() && (V.value = !0),
2096
+ onMouseenter: u[7] ||= (e) => Z.value && Q() && (V.value = !0),
2097
2097
  onMouseleave: u[8] ||= (e) => Q() && (V.value = !1)
2098
2098
  }, [o("button", {
2099
2099
  class: "top-nav-bar__user-trigger",
2100
2100
  type: "button",
2101
- "aria-haspopup": Me.value ? "menu" : void 0,
2102
- "aria-expanded": Me.value ? V.value : void 0,
2101
+ "aria-haspopup": Z.value ? "menu" : void 0,
2102
+ "aria-expanded": Z.value ? V.value : void 0,
2103
2103
  onClick: dr
2104
2104
  }, [w(n.$slots, "user", {
2105
2105
  user: s.user,
2106
- compact: X.value.hideUserName
2106
+ compact: J.value.hideUserName
2107
2107
  }, () => [s.user?.avatarUrl ? (b(), a("img", {
2108
2108
  key: 0,
2109
2109
  src: s.user.avatarUrl,
2110
2110
  alt: "",
2111
2111
  class: "top-nav-bar__user-avatar"
2112
- }, null, 8, Pt)) : (b(), a("span", Ft, D(ze.value), 1)), s.user && !X.value.hideUserName ? (b(), a("span", It, [o("span", Lt, D(s.user.name), 1), s.user.subtitle ? (b(), a("span", Rt, D(s.user.subtitle), 1)) : i("", !0)])) : i("", !0)]), Me.value ? (b(), a("i", zt)) : i("", !0)], 8, Nt), Me.value && V.value ? (b(), a("div", Bt, [o("div", Vt, [w(n.$slots, "user-menu", {
2113
- items: je.value,
2112
+ }, null, 8, Pt)) : (b(), a("span", Ft, D(ze.value), 1)), s.user && !J.value.hideUserName ? (b(), a("span", It, [o("span", Lt, D(s.user.name), 1), s.user.subtitle ? (b(), a("span", Rt, D(s.user.subtitle), 1)) : i("", !0)])) : i("", !0)]), Z.value ? (b(), a("i", zt)) : i("", !0)], 8, Nt), Z.value && V.value ? (b(), a("div", Bt, [o("div", Vt, [w(n.$slots, "user-menu", {
2113
+ items: Me.value,
2114
2114
  select: qe
2115
- }, () => [(b(!0), a(e, null, C(je.value, (t) => (b(), a(e, { key: t.id }, [t.separator ? (b(), a("div", Ht)) : (b(), a("button", {
2115
+ }, () => [(b(!0), a(e, null, C(Me.value, (t) => (b(), a(e, { key: t.id }, [t.separator ? (b(), a("div", Ht)) : (b(), a("button", {
2116
2116
  key: 1,
2117
2117
  class: "top-nav-bar__menu-item",
2118
2118
  type: "button",
@@ -2131,9 +2131,9 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
2131
2131
  class: "top-nav-bar__crumb",
2132
2132
  type: "button",
2133
2133
  onClick: u[9] ||= (e) => $(s.homeItem)
2134
- }, [l(O(Ee), { icon: O(xe) }, null, 8, ["icon"]), o("span", null, D(s.homeItem.label), 1)]),
2135
- Z.value.length ? (b(), a("span", Gt, "/")) : i("", !0),
2136
- Z.value.length ? (b(), a("div", {
2134
+ }, [l(O(De), { icon: O(Se) }, null, 8, ["icon"]), o("span", null, D(s.homeItem.label), 1)]),
2135
+ X.value.length ? (b(), a("span", Gt, "/")) : i("", !0),
2136
+ X.value.length ? (b(), a("div", {
2137
2137
  key: 1,
2138
2138
  class: "top-nav-bar__dropdown top-nav-bar__desktop-navigation",
2139
2139
  "data-top-nav-navigation": "",
@@ -2155,7 +2155,7 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
2155
2155
  class: "pi pi-chevron-down top-nav-bar__chevron",
2156
2156
  "aria-hidden": "true"
2157
2157
  }, null, -1)
2158
- ], 8, Kt), F.value ? (b(), a("div", qt, [o("div", Jt, [o("div", Yt, [(b(!0), a(e, null, C(Z.value, (e) => (b(), a("button", {
2158
+ ], 8, Kt), F.value ? (b(), a("div", qt, [o("div", Jt, [o("div", Yt, [(b(!0), a(e, null, C(X.value, (e) => (b(), a("button", {
2159
2159
  key: e.id,
2160
2160
  class: h(["top-nav-bar__menu-item", { "top-nav-bar__menu-item--explored": e.children?.length && I.value === e.id }]),
2161
2161
  type: "button",
@@ -2173,11 +2173,11 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
2173
2173
  o("span", Zt, D(e.label), 1),
2174
2174
  e.children?.length ? (b(), a("span", Qt, D(e.children.length), 1)) : i("", !0),
2175
2175
  e.children?.length ? (b(), a("i", $t)) : i("", !0)
2176
- ], 42, Xt))), 128))]), Te.value ? (b(), a("div", en, [(b(!0), a(e, null, C(Oe.value, (t, n) => (b(), a("div", {
2176
+ ], 42, Xt))), 128))]), Ee.value ? (b(), a("div", en, [(b(!0), a(e, null, C(ke.value, (t, n) => (b(), a("div", {
2177
2177
  key: `navigation-level-${n}`,
2178
2178
  class: h(["top-nav-bar__cascade-level", { "top-nav-bar__section-items": n === 0 }]),
2179
2179
  role: "menu"
2180
- }, [(b(!0), a(e, null, C(ke(t), (t, r) => (b(), a("div", {
2180
+ }, [(b(!0), a(e, null, C(Ae(t), (t, r) => (b(), a("div", {
2181
2181
  key: `navigation-${n}-${r}`,
2182
2182
  class: "top-nav-bar__menu-column"
2183
2183
  }, [(b(!0), a(e, null, C(t, (e) => (b(), a("button", {
@@ -2199,16 +2199,16 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
2199
2199
  o("span", nn, D(e.label), 1),
2200
2200
  e.children?.length ? (b(), a("i", rn)) : i("", !0)
2201
2201
  ], 42, tn))), 128))]))), 128))], 2))), 128))])) : i("", !0)])])) : i("", !0)], 32)) : i("", !0),
2202
- (b(!0), a(e, null, C(Ce.value, (t, n) => (b(), a(e, { key: t.id }, [o("span", {
2203
- class: h(["top-nav-bar__separator", { "top-nav-bar__separator--current": !t.to && n === Ce.value.length - 1 }]),
2202
+ (b(!0), a(e, null, C(we.value, (t, n) => (b(), a(e, { key: t.id }, [o("span", {
2203
+ class: h(["top-nav-bar__separator", { "top-nav-bar__separator--current": !t.to && n === we.value.length - 1 }]),
2204
2204
  "aria-hidden": "true"
2205
- }, "/", 2), we(t)?.children?.length ? (b(), a("div", {
2205
+ }, "/", 2), Te(t)?.children?.length ? (b(), a("div", {
2206
2206
  key: 0,
2207
2207
  class: "top-nav-bar__dropdown top-nav-bar__breadcrumb-dropdown",
2208
2208
  "data-top-nav-breadcrumb": "",
2209
- onMouseenter: (e) => !oe.value && at(t.id),
2210
- onMouseleave: u[10] ||= (e) => !oe.value && ot()
2211
- }, [oe.value ? (b(), a("span", on, D(t.label), 1)) : (b(), a("button", {
2209
+ onMouseenter: (e) => !ce.value && at(t.id),
2210
+ onMouseleave: u[10] ||= (e) => !ce.value && ot()
2211
+ }, [ce.value ? (b(), a("span", on, D(t.label), 1)) : (b(), a("button", {
2212
2212
  key: 1,
2213
2213
  class: "top-nav-bar__crumb",
2214
2214
  type: "button",
@@ -2218,10 +2218,10 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
2218
2218
  }, [o("span", null, D(t.label), 1), u[27] ||= o("i", {
2219
2219
  class: "pi pi-chevron-down top-nav-bar__chevron",
2220
2220
  "aria-hidden": "true"
2221
- }, null, -1)], 8, sn)), !oe.value && R.value === t.id ? (b(), a("div", cn, [o("div", ln, [(b(!0), a(e, null, C(De(we(t)?.children ?? [], z.value), (n, r) => (b(), a("div", {
2221
+ }, null, -1)], 8, sn)), !ce.value && R.value === t.id ? (b(), a("div", cn, [o("div", ln, [(b(!0), a(e, null, C(Oe(Te(t)?.children ?? [], z.value), (n, r) => (b(), a("div", {
2222
2222
  key: `breadcrumb-${t.id}-${r}`,
2223
2223
  class: h(["top-nav-bar__cascade-level", { "top-nav-bar__breadcrumb-main-items": r === 0 }])
2224
- }, [(b(!0), a(e, null, C(ke(n), (n, s) => (b(), a("div", {
2224
+ }, [(b(!0), a(e, null, C(Ae(n), (n, s) => (b(), a("div", {
2225
2225
  key: `breadcrumb-${t.id}-${r}-${s}`,
2226
2226
  class: "top-nav-bar__menu-column"
2227
2227
  }, [(b(!0), a(e, null, C(n, (e) => (b(), a("button", {
@@ -2262,7 +2262,7 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
2262
2262
  }, null, 2)], 8, gn)) : i("", !0)], 8, mn))], 64))), 128)),
2263
2263
  o("div", _n, [l(t, {
2264
2264
  name: "top-nav-bar-favorites-trigger",
2265
- css: ae.value
2265
+ css: oe.value
2266
2266
  }, {
2267
2267
  default: j(() => [Ie.value && Fe.value.length ? (b(), a("div", {
2268
2268
  key: 0,
@@ -2323,7 +2323,7 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
2323
2323
  }, null, 2)) : i("", !0), c(" " + D(e.label), 1)])]))), 128))], 512)], 512),
2324
2324
  l(t, {
2325
2325
  name: "top-nav-bar-favorites-row",
2326
- css: ae.value
2326
+ css: oe.value
2327
2327
  }, {
2328
2328
  default: j(() => [Le.value ? (b(), a("div", wn, [o("span", Tn, [u[31] ||= o("i", {
2329
2329
  class: "pi pi-star-fill top-nav-bar__favorites-icon",
@@ -2340,7 +2340,7 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
2340
2340
  }, null, 2)) : i("", !0), o("span", null, D(t.label), 1)], 8, On)], 64))), 128))])])) : i("", !0)]),
2341
2341
  _: 1
2342
2342
  }, 8, ["css"]),
2343
- l(O(re), {
2343
+ l(O(ne), {
2344
2344
  visible: P.value,
2345
2345
  "onUpdate:visible": u[16] ||= (e) => P.value = e,
2346
2346
  position: "left",
@@ -2358,8 +2358,8 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
2358
2358
  class: "pi pi-times",
2359
2359
  "aria-hidden": "true"
2360
2360
  }, null, -1)]], 8, Mn)])]),
2361
- s.searchable || Ae.value.length || n.$slots["drawer-actions"] ? (b(), a("div", Nn, [s.searchable ? w(n.$slots, "drawer-search", {
2362
- query: q.value,
2361
+ s.searchable || je.value.length || n.$slots["drawer-actions"] ? (b(), a("div", Nn, [s.searchable ? w(n.$slots, "drawer-search", {
2362
+ query: K.value,
2363
2363
  update: Ye,
2364
2364
  clear: Xe
2365
2365
  }, () => [o("div", Pn, [
@@ -2370,14 +2370,14 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
2370
2370
  o("input", {
2371
2371
  ref_key: "mobileSearchInputRef",
2372
2372
  ref: M,
2373
- value: q.value,
2373
+ value: K.value,
2374
2374
  type: "text",
2375
2375
  role: "searchbox",
2376
2376
  placeholder: s.searchPlaceholder,
2377
2377
  "aria-label": "Pesquisar no menu",
2378
2378
  onInput: u[14] ||= (e) => Ye(e.target.value)
2379
2379
  }, null, 40, Fn),
2380
- q.value ? (b(), a("button", {
2380
+ K.value ? (b(), a("button", {
2381
2381
  key: 0,
2382
2382
  class: "top-nav-bar__search-clear",
2383
2383
  type: "button",
@@ -2388,10 +2388,10 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
2388
2388
  "aria-hidden": "true"
2389
2389
  }, null, -1)]])) : i("", !0)
2390
2390
  ])], void 0, 0) : i("", !0), w(n.$slots, "drawer-actions", {
2391
- actions: Ae.value,
2391
+ actions: je.value,
2392
2392
  select: (e) => Ke(e, !0),
2393
2393
  close: d
2394
- }, () => [(b(!0), a(e, null, C(Ae.value, (e) => (b(), a("button", {
2394
+ }, () => [(b(!0), a(e, null, C(je.value, (e) => (b(), a("button", {
2395
2395
  key: `drawer-${e.id}`,
2396
2396
  class: h(["top-nav-bar__drawer-action", { "top-nav-bar__drawer-action--active": e.kind === "aia" && s.aiaActive }]),
2397
2397
  type: "button",
@@ -2429,14 +2429,14 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
2429
2429
  }, null, 8, ["items", "active-item-id"])) : i("", !0)]),
2430
2430
  _: 1
2431
2431
  })])) : i("", !0), w(n.$slots, "drawer-menu", {
2432
- sections: ve.value,
2432
+ sections: ye.value,
2433
2433
  select: $,
2434
2434
  close: d
2435
- }, () => [ve.value.length ? (b(), r(st, {
2435
+ }, () => [ye.value.length ? (b(), r(st, {
2436
2436
  key: 0,
2437
- items: ve.value,
2437
+ items: ye.value,
2438
2438
  "active-item-id": s.activeItemId,
2439
- "force-open": !!q.value.trim(),
2439
+ "force-open": !!K.value.trim(),
2440
2440
  "show-section-dividers": "",
2441
2441
  onSelect: $
2442
2442
  }, null, 8, [
@@ -2449,13 +2449,13 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
2449
2449
  Ne.value || n.$slots["drawer-footer"] ? (b(), a("footer", Wn, [Ne.value ? w(n.$slots, "drawer-user", {
2450
2450
  user: s.user,
2451
2451
  client: s.client,
2452
- open: ne.value,
2453
- toggle: () => ne.value = !ne.value
2452
+ open: H.value,
2453
+ toggle: () => H.value = !H.value
2454
2454
  }, () => [o("button", {
2455
2455
  class: "top-nav-bar__drawer-user",
2456
2456
  type: "button",
2457
- "aria-haspopup": Me.value ? "menu" : void 0,
2458
- "aria-expanded": Me.value ? ne.value : void 0,
2457
+ "aria-haspopup": Z.value ? "menu" : void 0,
2458
+ "aria-expanded": Z.value ? H.value : void 0,
2459
2459
  onClick: Je
2460
2460
  }, [
2461
2461
  s.user?.avatarUrl ? (b(), a("img", {
@@ -2468,12 +2468,12 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
2468
2468
  class: "pi pi-building",
2469
2469
  "aria-hidden": "true"
2470
2470
  }, null, -1), c(D(s.client.name), 1)]), s.client.subtitle ? (b(), a("span", Qn, D(s.client.subtitle), 1)) : i("", !0)])) : i("", !0)])) : i("", !0),
2471
- Me.value ? (b(), a("i", $n)) : i("", !0)
2471
+ Z.value ? (b(), a("i", $n)) : i("", !0)
2472
2472
  ], 8, Gn)], void 0, 0) : i("", !0), w(n.$slots, "drawer-footer", { close: d })])) : i("", !0)
2473
2473
  ])]),
2474
2474
  _: 3
2475
2475
  }, 8, ["visible", "style"]),
2476
- l(O(H), {
2476
+ l(O(re), {
2477
2477
  ref_key: "drawerUserMenuRef",
2478
2478
  ref: ie,
2479
2479
  class: "top-nav-bar__drawer-user-popup",
@@ -2481,8 +2481,8 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
2481
2481
  popup: !0,
2482
2482
  "append-to": "body",
2483
2483
  "base-z-index": 10001,
2484
- onShow: u[17] ||= (e) => ne.value = !0,
2485
- onHide: u[18] ||= (e) => ne.value = !1
2484
+ onShow: u[17] ||= (e) => H.value = !0,
2485
+ onHide: u[18] ||= (e) => H.value = !1
2486
2486
  }, null, 8, ["model"])
2487
2487
  ], 4));
2488
2488
  }
@@ -2590,27 +2590,29 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
2590
2590
  "change"
2591
2591
  ],
2592
2592
  setup(t, { expose: r, emit: u }) {
2593
- let f = t, _ = u, x = te(), T = ee(), E = ie, k = S(""), N = S(!1), P = S(null), L = `top-select-${Math.random().toString(36).slice(2)}`, R = null, z = n({
2593
+ let f = t, _ = u, x = te(), T = ee(), E = ie, k = S(""), N = S(""), P = S(!1), L = S(!1), R = S(null), z = `top-select-${Math.random().toString(36).slice(2)}`, B = null, V = n({
2594
2594
  get: () => f.modelValue,
2595
- set: (e) => _("update:modelValue", e)
2596
- }), B = n(() => {
2595
+ set: (e) => {
2596
+ e === null && se(), _("update:modelValue", e);
2597
+ }
2598
+ }), H = n(() => {
2597
2599
  let { class: e, ...t } = T;
2598
2600
  return t;
2599
- }), V = n(() => f.multiple ? "w-full border-0 bg-transparent p-0 text-xs !shadow-none outline-none ring-0 rounded-none" : I("top-field-control w-full h-auto border rounded-[10px] !pl-9 min-h-[36px] text-xs", T.class)), ne = n(() => I("top-field-control w-full h-auto border !rounded-l-[10px] !rounded-r-none pl-9 min-h-[40px] text-xs", f.disabled ? "bg-[var(--top-field-background-disabled)]" : "bg-[var(--top-field-background)]", T.class));
2600
- function re(e, t) {
2601
+ }), ne = n(() => f.multiple ? "w-full border-0 bg-transparent p-0 text-xs !shadow-none outline-none ring-0 rounded-none" : I("top-field-control w-full h-auto border rounded-[10px] !pl-9 min-h-[36px] text-xs", T.class)), re = n(() => I("top-field-control w-full h-auto border !rounded-l-[10px] !rounded-r-none pl-9 min-h-[40px] text-xs", f.disabled ? "bg-[var(--top-field-background-disabled)]" : "bg-[var(--top-field-background)]", T.class));
2602
+ function U(e, t) {
2601
2603
  return e == null ? "" : String(typeof e == "object" ? e[t] ?? "" : e);
2602
2604
  }
2603
- function H(e) {
2604
- return e == null ? "" : typeof f.optionLabel == "function" ? f.optionLabel(e) : re(e, f.optionLabel);
2605
+ function W(e) {
2606
+ return e == null ? "" : typeof f.optionLabel == "function" ? f.optionLabel(e) : U(e, f.optionLabel);
2605
2607
  }
2606
- function U(e) {
2607
- return f.optionPrefix ? re(e, f.optionPrefix) : "";
2608
+ function G(e) {
2609
+ return f.optionPrefix ? U(e, f.optionPrefix) : "";
2608
2610
  }
2609
- function W(e, t = f.showSelectedPrefix) {
2610
- let n = H(e), r = U(e);
2611
+ function ae(e, t = f.showSelectedPrefix) {
2612
+ let n = W(e), r = G(e);
2611
2613
  return t && r ? `${r} - ${n}` : n;
2612
2614
  }
2613
- function G(e) {
2615
+ function oe(e) {
2614
2616
  let t = k.value;
2615
2617
  if (!t) return [{
2616
2618
  text: e,
@@ -2623,56 +2625,61 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
2623
2625
  }));
2624
2626
  }
2625
2627
  function K() {
2626
- P.value?.hide?.();
2628
+ R.value?.hide?.();
2627
2629
  }
2628
- function ae() {
2629
- typeof window > "u" || window.dispatchEvent(new CustomEvent("top-select:close-others", { detail: { instanceId: L } }));
2630
+ function q() {
2631
+ typeof window > "u" || window.dispatchEvent(new CustomEvent("top-select:close-others", { detail: { instanceId: z } }));
2630
2632
  }
2631
- function q(e) {
2632
- k.value = e.query ?? "", ae(), !(e.originalEvent.type === "click" && e.originalEvent.currentTarget?.classList.contains("p-autocomplete-dropdown") && f.options.length > 0) && _("search", {
2633
+ function se() {
2634
+ k.value = "", N.value !== "" && (P.value = !0);
2635
+ }
2636
+ function ce(e) {
2637
+ k.value = e.query ?? "", q();
2638
+ let t = e.originalEvent.type === "click" && e.originalEvent.currentTarget?.classList.contains("p-autocomplete-dropdown"), n = P.value && k.value === "";
2639
+ t && f.options.length > 0 && !n || (N.value = k.value, P.value = !1, _("search", {
2633
2640
  ...e,
2634
2641
  query: k.value
2635
- });
2642
+ }));
2636
2643
  }
2637
2644
  function J(e) {
2638
2645
  let t = e.target, n = t.scrollHeight - t.scrollTop - t.clientHeight;
2639
2646
  t.scrollTop > 0 && n <= 168 && !f.loading && _("loadMore", e);
2640
2647
  }
2641
- function Y(e) {
2642
- e.detail?.instanceId !== L && K();
2648
+ function le(e) {
2649
+ e.detail?.instanceId !== z && K();
2643
2650
  }
2644
- function oe() {
2645
- if (f.disabled || R) {
2651
+ function ue() {
2652
+ if (f.disabled || B) {
2646
2653
  K();
2647
2654
  return;
2648
2655
  }
2649
- N.value = !0, ae();
2656
+ L.value = !0, q();
2650
2657
  }
2651
- function X() {
2652
- f.closeOnSelect && (N.value = !1, K(), m(K), R && clearTimeout(R), R = setTimeout(() => {
2653
- K(), R = null;
2658
+ function Y() {
2659
+ f.closeOnSelect && (L.value = !1, K(), m(K), B && clearTimeout(B), B = setTimeout(() => {
2660
+ K(), B = null;
2654
2661
  }, 200));
2655
2662
  }
2656
- return r({ hideDropdown: K }), y(() => window.addEventListener("top-select:close-others", Y)), v(() => {
2657
- window.removeEventListener("top-select:close-others", Y), R && clearTimeout(R);
2663
+ return r({ hideDropdown: K }), y(() => window.addEventListener("top-select:close-others", le)), v(() => {
2664
+ window.removeEventListener("top-select:close-others", le), B && clearTimeout(B);
2658
2665
  }), A(() => f.disabled, (e) => {
2659
- e && (N.value = !1, K());
2666
+ e && (L.value = !1, K());
2660
2667
  }), A(() => f.options, () => {
2661
- N.value || K();
2668
+ L.value || K();
2662
2669
  }), (n, r) => (b(), a("div", {
2663
2670
  class: h(["top-select top-solutions-component relative w-full", { "pointer-events-none": t.disabled }]),
2664
- onFocusin: oe
2671
+ onFocusin: ue
2665
2672
  }, [o("span", rr, [w(n.$slots, "icon", { loading: t.loading }, () => [t.loading ? (b(), a("i", ir)) : (b(), a("i", ar))])]), l(O(E), p({
2666
2673
  ref_key: "autocompleteRef",
2667
- ref: P
2668
- }, B.value, {
2669
- modelValue: z.value,
2670
- "onUpdate:modelValue": r[0] ||= (e) => z.value = e,
2674
+ ref: R
2675
+ }, H.value, {
2676
+ modelValue: V.value,
2677
+ "onUpdate:modelValue": r[0] ||= (e) => V.value = e,
2671
2678
  "option-group-label": t.optionGroupLabel ?? void 0,
2672
2679
  "option-group-children": t.optionGroupChildren ?? void 0,
2673
2680
  suggestions: t.options,
2674
2681
  "data-key": t.optionKey,
2675
- "option-label": (e) => W(e),
2682
+ "option-label": (e) => ae(e),
2676
2683
  placeholder: t.placeholder,
2677
2684
  multiple: t.multiple,
2678
2685
  "min-length": t.minQueryLength,
@@ -2694,9 +2701,9 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
2694
2701
  },
2695
2702
  pt: {
2696
2703
  root: { class: ["w-full text-xs", t.multiple ? "h-auto" : "h-[40px]"].join(" ") },
2697
- pcInputText: { root: { class: V.value } },
2698
- input: { class: V.value },
2699
- inputMultiple: { class: ne.value },
2704
+ pcInputText: { root: { class: ne.value } },
2705
+ input: { class: ne.value },
2706
+ inputMultiple: { class: re.value },
2700
2707
  inputChip: { class: "py-0" },
2701
2708
  token: { class: "bg-primary-100 text-primary-900 rounded-md gap-2 px-2 my-1 dark:bg-primary-900 dark:text-primary-100" },
2702
2709
  removeTokenIcon: { class: "text-primary-900 w-3 h-3 cursor-pointer dark:text-primary-100" },
@@ -2715,45 +2722,45 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
2715
2722
  },
2716
2723
  "search-message": " ",
2717
2724
  onClear: r[1] ||= (e) => {
2718
- k.value = "", _("clear");
2725
+ se(), _("clear");
2719
2726
  },
2720
2727
  onItemSelect: r[2] ||= (e) => {
2721
- k.value = "", _("select", e), X();
2728
+ k.value = "", _("select", e), Y();
2722
2729
  },
2723
2730
  onComplete: r[3] ||= (e) => {
2724
2731
  if (t.disabled) {
2725
2732
  K();
2726
2733
  return;
2727
2734
  }
2728
- q(e);
2735
+ ce(e);
2729
2736
  },
2730
2737
  onChange: r[4] ||= (e) => _("change", e)
2731
2738
  }), s({
2732
2739
  chip: j((e) => [O(x).chip ? w(n.$slots, "chip", g(d(e)), void 0, void 0, 0) : (b(), a("div", or, [o("div", sr, [o("i", {
2733
2740
  class: "pi pi-times-circle shrink-0 cursor-pointer rounded-full hover:bg-primary-800",
2734
2741
  onClick: (t) => e.removeCallback(t)
2735
- }, null, 8, cr), M((b(), a("span", lr, [c(D(W(e.value)), 1)])), [[
2742
+ }, null, 8, cr), M((b(), a("span", lr, [c(D(ae(e.value)), 1)])), [[
2736
2743
  O(F),
2737
- W(e.value),
2744
+ ae(e.value),
2738
2745
  void 0,
2739
2746
  { top: !0 }
2740
2747
  ]])])]))]),
2741
2748
  empty: j(() => [O(x).empty ? w(n.$slots, "empty", {}, void 0, void 0, 0) : t.loading ? (b(), a("div", ur, [r[5] ||= o("span", { class: "pi pi-spin pi-spinner text-2xl text-primary-600" }, null, -1), t.showLoadingMessage ? (b(), a("span", dr, D(t.loadingMessage), 1)) : i("", !0)])) : (b(), a("span", fr, D(t.emptyMessage), 1))]),
2742
- "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", pr, D(W(e.item)), 1)) : i("", !0)]),
2749
+ "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", pr, D(ae(e.item)), 1)) : i("", !0)]),
2743
2750
  optiongroup: j((e) => [O(x)["option-group"] ? w(n.$slots, "option-group", g(d(e)), void 0, void 0, 0) : (b(), a("div", mr, [e.option.icon ? (b(), a("i", {
2744
2751
  key: 0,
2745
2752
  class: h(e.option.icon)
2746
2753
  }, null, 2)) : i("", !0), o("span", null, D(e.option[t.optionGroupLabel ?? "label"]), 1)]))]),
2747
2754
  option: j((s) => [O(x).option ? w(n.$slots, "option", p(s, {
2748
- label: H(s.option),
2749
- prefix: U(s.option),
2755
+ label: W(s.option),
2756
+ prefix: G(s.option),
2750
2757
  query: k.value
2751
2758
  }), void 0, void 0, 0) : M((b(), a("div", hr, [o("span", {
2752
2759
  class: "top-select-option-label line-clamp-2 min-w-0 flex-1 text-secondary-700 dark:text-zinc-200",
2753
- title: H(s.option)
2754
- }, [t.showOptionPrefix && U(s.option) ? (b(), a("span", _r, [(b(!0), a(e, null, C(G(U(s.option)), (t, n) => (b(), a(e, { key: n }, [t.highlighted ? (b(), a("mark", vr, D(t.text), 1)) : (b(), a(e, { key: 1 }, [c(D(t.text), 1)], 64))], 64))), 128)), r[6] ||= o("span", { class: "font-bold text-secondary-500 dark:text-zinc-400" }, "\xA0-\xA0", -1)])) : i("", !0), (b(!0), a(e, null, C(G(H(s.option)), (t, n) => (b(), a(e, { key: n }, [t.highlighted ? (b(), a("mark", yr, D(t.text), 1)) : (b(), a(e, { key: 1 }, [c(D(t.text), 1)], 64))], 64))), 128))], 8, gr)])), [[
2760
+ title: W(s.option)
2761
+ }, [t.showOptionPrefix && G(s.option) ? (b(), a("span", _r, [(b(!0), a(e, null, C(oe(G(s.option)), (t, n) => (b(), a(e, { key: n }, [t.highlighted ? (b(), a("mark", vr, 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(oe(W(s.option)), (t, n) => (b(), a(e, { key: n }, [t.highlighted ? (b(), a("mark", yr, D(t.text), 1)) : (b(), a(e, { key: 1 }, [c(D(t.text), 1)], 64))], 64))), 128))], 8, gr)])), [[
2755
2762
  O(F),
2756
- t.showTooltip ? H(s.option) : null,
2763
+ t.showTooltip ? W(s.option) : null,
2757
2764
  void 0,
2758
2765
  { top: !0 }
2759
2766
  ]])]),
@@ -2801,7 +2808,7 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
2801
2808
  function o(e) {
2802
2809
  return String(e.value);
2803
2810
  }
2804
- return (n, s) => (b(), r(O(ae), p(n.$attrs, {
2811
+ return (n, s) => (b(), r(O(oe), p(n.$attrs, {
2805
2812
  class: "top-tabs top-solutions-component w-full min-w-0",
2806
2813
  value: t.modelValue,
2807
2814
  lazy: t.lazy,
@@ -2818,7 +2825,7 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
2818
2825
  _: 2
2819
2826
  }, 1032, ["value", "disabled"]))), 128))]),
2820
2827
  _: 1
2821
- }), l(O(K), null, {
2828
+ }), l(O(ae), null, {
2822
2829
  default: j(() => [(b(!0), a(e, null, C(t.tabs, (e) => (b(), r(O(G), {
2823
2830
  key: e.value,
2824
2831
  value: e.value
@@ -2902,7 +2909,7 @@ var Cr = Symbol("top-accordion-context"), wr = /* @__PURE__ */ u({
2902
2909
  ref_key: "rootRef",
2903
2910
  ref: u,
2904
2911
  class: "top-accordion top-solutions-component"
2905
- }, [l(O(q), p(t.$attrs, {
2912
+ }, [l(O(K), p(t.$attrs, {
2906
2913
  value: d.value,
2907
2914
  multiple: e.multiple,
2908
2915
  "expand-icon": "pi pi-chevron-down",
@@ -3002,12 +3009,12 @@ var Cr = Symbol("top-accordion-context"), wr = /* @__PURE__ */ u({
3002
3009
  return (t, n) => (b(), a("div", {
3003
3010
  id: y.value,
3004
3011
  class: "top-accordion-panel-anchor"
3005
- }, [l(O(oe), p(t.$attrs, {
3012
+ }, [l(O(ce), p(t.$attrs, {
3006
3013
  value: e.value,
3007
3014
  disabled: m.value,
3008
3015
  class: "top-accordion-panel"
3009
3016
  }), {
3010
- default: j(() => [l(O(Y), {
3017
+ default: j(() => [l(O(se), {
3011
3018
  class: h(["top-accordion-panel__header", e.headerClass]),
3012
3019
  style: _(e.headerStyle)
3013
3020
  }, {
@@ -3032,7 +3039,7 @@ var Cr = Symbol("top-accordion-context"), wr = /* @__PURE__ */ u({
3032
3039
  visible: !v.value
3033
3040
  }, null, 8, ["items", "visible"])], void 0, 1)])]),
3034
3041
  _: 3
3035
- }, 8, ["class", "style"]), l(O(J), null, {
3042
+ }, 8, ["class", "style"]), l(O(q), null, {
3036
3043
  default: j(() => [o("div", {
3037
3044
  class: h(["top-accordion-panel__content", e.contentClass]),
3038
3045
  style: _(e.contentStyle)
@@ -3176,7 +3183,7 @@ var Cr = Symbol("top-accordion-context"), wr = /* @__PURE__ */ u({
3176
3183
  function d(e, t) {
3177
3184
  return `top-toast__${t}--${e.severity ?? "info"}`;
3178
3185
  }
3179
- return (f, p) => (b(), r(O(X), {
3186
+ return (f, p) => (b(), r(O(J), {
3180
3187
  position: "top-right",
3181
3188
  "base-z-index": e.baseZIndex
3182
3189
  }, {
@@ -3207,6 +3214,6 @@ var Cr = Symbol("top-accordion-context"), wr = /* @__PURE__ */ u({
3207
3214
  }
3208
3215
  });
3209
3216
  //#endregion
3210
- export { wr as a, nr as c, $ as d, He as f, ce as g, le as h, Dr as i, rt as l, me as m, Hr as n, xr as o, ye as p, Fr as r, br as s, qr as t, Qe as u };
3217
+ export { wr as a, nr as c, $ as d, He as f, ue as g, Y as h, Dr as i, rt as l, he as m, Hr as n, xr as o, be as p, Fr as r, br as s, qr as t, Qe as u };
3211
3218
 
3212
- //# sourceMappingURL=TopToast-YO8CEm_e.js.map
3219
+ //# sourceMappingURL=TopToast-ChRU_nrw.js.map