@topjoao/top-design-system 0.1.0-beta.13 → 0.1.0-beta.15

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.
@@ -6,10 +6,10 @@ import P from "primevue/dialog";
6
6
  import F from "primevue/datepicker";
7
7
  import I from "primevue/fileupload";
8
8
  import L from "primevue/inputtext";
9
- import ee from "primevue/autocomplete";
10
- import R from "primevue/toast";
9
+ import R from "primevue/autocomplete";
10
+ import z from "primevue/toast";
11
11
  //#region src/components/TopButton.vue?vue&type=script&setup=true&lang.ts
12
- var z = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px] bg-transparent" }, B = /* @__PURE__ */ l({
12
+ var B = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px] bg-transparent" }, V = /* @__PURE__ */ l({
13
13
  __name: "TopButton",
14
14
  props: {
15
15
  tooltip: { default: "" },
@@ -46,7 +46,7 @@ var z = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px]
46
46
  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";
47
47
  return N(e, c.class);
48
48
  });
49
- return (t, r) => (v(), i("span", z, [A((v(), n(w(j), {
49
+ return (t, r) => (v(), i("span", B, [A((v(), n(w(j), {
50
50
  type: e.type,
51
51
  label: e.label,
52
52
  disabled: e.disabled || e.loading,
@@ -81,7 +81,7 @@ var z = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px]
81
81
  { top: !0 }
82
82
  ]])]));
83
83
  }
84
- }), V = {
84
+ }), H = {
85
85
  primary: {
86
86
  50: "#EEF9FF",
87
87
  100: "#DFF4FF",
@@ -147,7 +147,7 @@ var z = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px]
147
147
  900: "#5D0803",
148
148
  950: "#450501"
149
149
  }
150
- }, H = ["aria-label", "disabled"], U = { class: "flex flex-col items-center gap-2 pt-2" }, W = { class: "text-base font-bold text-secondary-900 dark:text-zinc-100" }, G = { class: "text-sm leading-5 text-secondary-700 dark:text-zinc-300" }, K = { class: "mt-2 flex w-full items-center justify-center gap-3" }, q = /* @__PURE__ */ l({
150
+ }, U = ["aria-label", "disabled"], W = { class: "flex flex-col items-center gap-2 pt-2" }, G = { class: "text-base font-bold text-secondary-900 dark:text-zinc-100" }, K = { class: "text-sm leading-5 text-secondary-700 dark:text-zinc-300" }, q = { class: "mt-2 flex w-full items-center justify-center gap-3" }, J = /* @__PURE__ */ l({
151
151
  __name: "TopConfirmDialog",
152
152
  props: {
153
153
  modelValue: {
@@ -179,8 +179,8 @@ var z = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px]
179
179
  !e && i.loading || o("update:modelValue", e);
180
180
  }
181
181
  }), u = t(() => ({
182
- "--top-confirm-dialog-accent": i.severity === "danger" ? V.danger[600] : V.primary[800],
183
- "--top-confirm-dialog-accent-hover": i.severity === "danger" ? V.danger[700] : V.primary[700]
182
+ "--top-confirm-dialog-accent": i.severity === "danger" ? H.danger[600] : H.primary[800],
183
+ "--top-confirm-dialog-accent-hover": i.severity === "danger" ? H.danger[700] : H.primary[700]
184
184
  })), d = t(() => ["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(" "));
185
185
  function f() {
186
186
  i.loading || o("confirm");
@@ -225,19 +225,19 @@ var z = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px]
225
225
  }, [...r[2] ||= [a("i", {
226
226
  class: "pi pi-times text-lg",
227
227
  "aria-hidden": "true"
228
- }, null, -1)]], 8, H),
229
- a("div", U, [a("i", {
228
+ }, null, -1)]], 8, U),
229
+ a("div", W, [a("i", {
230
230
  class: p([e.icon, "top-confirm-dialog__icon text-[40px]"]),
231
231
  "aria-hidden": "true"
232
- }, null, 2), a("p", W, C(e.title), 1)]),
233
- a("div", G, [x(t.$slots, "message", {}, () => [x(t.$slots, "default", {}, () => [s(C(e.message), 1)])])]),
234
- a("div", K, [c(B, {
232
+ }, null, 2), a("p", G, C(e.title), 1)]),
233
+ a("div", K, [x(t.$slots, "message", {}, () => [x(t.$slots, "default", {}, () => [s(C(e.message), 1)])])]),
234
+ a("div", q, [c(V, {
235
235
  label: e.cancelText,
236
236
  secondary: "",
237
237
  disabled: e.loading,
238
238
  class: "px-3 py-2 text-sm",
239
239
  onClick: m
240
- }, null, 8, ["label", "disabled"]), c(B, {
240
+ }, null, 8, ["label", "disabled"]), c(V, {
241
241
  label: e.loading ? e.loadingText : e.confirmText,
242
242
  loading: e.loading,
243
243
  class: p(d.value),
@@ -255,11 +255,11 @@ var z = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px]
255
255
  "aria-label"
256
256
  ]));
257
257
  }
258
- }), J = { class: "top-date-picker top-solutions-component flex w-full flex-col gap-1" }, Y = ["for"], X = {
258
+ }), Y = { class: "top-date-picker top-solutions-component flex w-full flex-col gap-1" }, X = ["for"], Z = {
259
259
  key: 0,
260
260
  "aria-hidden": "true",
261
261
  class: "text-red-600 dark:text-red-400"
262
- }, Z = ["id"], te = /* @__PURE__ */ l({
262
+ }, ee = ["id"], te = /* @__PURE__ */ l({
263
263
  inheritAttrs: !1,
264
264
  __name: "TopDatePicker",
265
265
  props: {
@@ -350,12 +350,12 @@ var z = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px]
350
350
  }
351
351
  l("input", e);
352
352
  }
353
- return (t, n) => (v(), i("div", J, [
353
+ return (t, n) => (v(), i("div", Y, [
354
354
  e.label ? (v(), i("label", {
355
355
  key: 0,
356
356
  for: g.value,
357
357
  class: "top-field-label text-xs font-bold"
358
- }, [s(C(e.label) + " ", 1), e.required ? (v(), i("span", X, "*")) : r("", !0)], 8, Y)) : r("", !0),
358
+ }, [s(C(e.label) + " ", 1), e.required ? (v(), i("span", Z, "*")) : r("", !0)], 8, X)) : r("", !0),
359
359
  c(w(F), d(j.value, {
360
360
  "model-value": e.modelValue,
361
361
  "input-id": g.value,
@@ -417,7 +417,7 @@ var z = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px]
417
417
  id: _.value,
418
418
  class: "text-[11px] text-red-600 dark:text-red-400",
419
419
  role: "alert"
420
- }, C(e.error), 9, Z)) : r("", !0)
420
+ }, C(e.error), 9, ee)) : r("", !0)
421
421
  ]));
422
422
  }
423
423
  }), ne = [["path", {
@@ -434,7 +434,21 @@ var z = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px]
434
434
  strokeLinejoin: "round",
435
435
  strokeWidth: "1.5",
436
436
  key: "1"
437
- }]], Q = l({
437
+ }]], Q = [["path", {
438
+ 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",
439
+ stroke: "currentColor",
440
+ strokeLinecap: "round",
441
+ strokeLinejoin: "round",
442
+ strokeWidth: "1.5",
443
+ key: "0"
444
+ }], ["path", {
445
+ d: "M14.5 21.5V17C14.5 16.0654 14.5 15.5981 14.299 15.25C14.1674 15.022 13.978 14.8326 13.75 14.701C13.4019 14.5 12.9346 14.5 12 14.5C11.0654 14.5 10.5981 14.5 10.25 14.701C10.022 14.8326 9.83261 15.022 9.70096 15.25C9.5 15.5981 9.5 16.0654 9.5 17V21.5",
446
+ stroke: "currentColor",
447
+ strokeLinecap: "round",
448
+ strokeLinejoin: "round",
449
+ strokeWidth: "1.5",
450
+ key: "1"
451
+ }]], $ = l({
438
452
  name: "HugeiconsIcon",
439
453
  inheritAttrs: !1,
440
454
  props: {
@@ -492,16 +506,16 @@ var z = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px]
492
506
  currentIcon: t(() => e.altIcon && e.showAlt ? e.altIcon : e.icon)
493
507
  };
494
508
  }
495
- }), $ = (e, t) => {
509
+ }), re = (e, t) => {
496
510
  let n = e.__vccOpts || e;
497
511
  for (let [e, r] of t) n[e] = r;
498
512
  return n;
499
- }, re = [
513
+ }, ie = [
500
514
  "width",
501
515
  "height",
502
516
  "color"
503
517
  ];
504
- function ie(t, r, a, o, s, c) {
518
+ function ae(t, r, a, o, s, c) {
505
519
  return v(), i("svg", d({
506
520
  width: t.computedSize,
507
521
  height: t.computedSize,
@@ -512,30 +526,30 @@ function ie(t, r, a, o, s, c) {
512
526
  }, t.$attrs), [(v(!0), i(e, null, b(t.currentIcon, (e, r) => (v(), n(S(e[0]), d({
513
527
  key: r,
514
528
  ref_for: !0
515
- }, t.transformAttrs(e[1], t.calculatedStrokeWidth)), null, 16))), 128))], 16, re);
529
+ }, t.transformAttrs(e[1], t.calculatedStrokeWidth)), null, 16))), 128))], 16, ie);
516
530
  }
517
- var ae = /* @__PURE__ */ $(Q, [["render", ie], ["__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" }, se = ["for"], ce = {
531
+ var oe = /* @__PURE__ */ re($, [["render", ae], ["__file", "/Users/mahmudulhasan/Desktop/Projects/Hugeicons/hugeicons-monorepo/packages/vue/src/components/HugeiconsIcon.vue"]]), se = { class: "top-file-upload top-solutions-component flex w-full flex-col gap-1" }, ce = ["for"], le = {
518
532
  key: 0,
519
533
  "aria-hidden": "true",
520
534
  class: "text-red-600 dark:text-red-400"
521
- }, le = { class: "flex min-h-[130px] w-full flex-col items-center justify-center gap-3" }, ue = {
535
+ }, ue = { class: "flex min-h-[130px] w-full flex-col items-center justify-center gap-3" }, de = {
522
536
  class: "top-file-upload__empty-icon",
523
537
  "aria-hidden": "true"
524
- }, de = {
538
+ }, fe = {
525
539
  key: 0,
526
540
  "aria-label": "Carregando...",
527
541
  class: "pi pi-spin pi-spinner text-5xl"
528
- }, fe = { class: "m-0 text-center text-xs text-secondary-600 dark:text-zinc-300" }, pe = {
542
+ }, pe = { class: "m-0 text-center text-xs text-secondary-600 dark:text-zinc-300" }, me = {
529
543
  key: 1,
530
544
  class: "flex w-full flex-col gap-2"
531
- }, me = ["src", "alt"], he = {
545
+ }, he = ["src", "alt"], ge = {
532
546
  key: 1,
533
547
  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"
534
- }, ge = { class: "min-w-0 flex-1" }, _e = { class: "m-0 truncate text-xs font-bold text-secondary-900 dark:text-zinc-100" }, ve = { class: "text-[11px] text-secondary-500 dark:text-zinc-400" }, ye = [
548
+ }, _e = { class: "min-w-0 flex-1" }, ve = { class: "m-0 truncate text-xs font-bold text-secondary-900 dark:text-zinc-100" }, ye = { class: "text-[11px] text-secondary-500 dark:text-zinc-400" }, be = [
535
549
  "aria-label",
536
550
  "disabled",
537
551
  "onClick"
538
- ], be = ["id"], xe = /* @__PURE__ */ l({
552
+ ], xe = ["id"], Se = /* @__PURE__ */ l({
539
553
  inheritAttrs: !1,
540
554
  __name: "TopFileUpload",
541
555
  props: {
@@ -574,10 +588,10 @@ var ae = /* @__PURE__ */ $(Q, [["render", ie], ["__file", "/Users/mahmudulhasan/
574
588
  "error"
575
589
  ],
576
590
  setup(o, { expose: l, emit: u }) {
577
- let d = o, p = u, m = T(), h = E(), S = y(null), D = y(R(d.modelValue)), A = y([]), j = /* @__PURE__ */ new Map(), M = t(() => m.id === void 0 || m.id === null || m.id === "" ? h : String(m.id)), N = t(() => `${M.value}-error`), P = t(() => d.error || A.value[0]?.message || ""), F = t(() => d.disabled || d.loading), L = t(() => {
591
+ let d = o, p = u, m = T(), h = E(), S = y(null), D = y(z(d.modelValue)), A = y([]), j = /* @__PURE__ */ new Map(), M = t(() => m.id === void 0 || m.id === null || m.id === "" ? h : String(m.id)), N = t(() => `${M.value}-error`), P = t(() => d.error || A.value[0]?.message || ""), F = t(() => d.disabled || d.loading), L = t(() => {
578
592
  let e = m["aria-describedby"], t = [typeof e == "string" ? e : "", P.value ? N.value : ""].filter(Boolean);
579
593
  return t.length ? t.join(" ") : void 0;
580
- }), ee = t(() => ({
594
+ }), R = t(() => ({
581
595
  ...m,
582
596
  id: M.value,
583
597
  required: d.required,
@@ -585,29 +599,29 @@ var ae = /* @__PURE__ */ $(Q, [["render", ie], ["__file", "/Users/mahmudulhasan/
585
599
  "aria-describedby": L.value,
586
600
  "aria-label": m["aria-label"] || (d.label ? void 0 : d.selectLabel)
587
601
  }));
588
- function R(e) {
602
+ function z(e) {
589
603
  return e ? Array.isArray(e) ? d.multiple ? [...e] : e.slice(0, 1) : [e] : [];
590
604
  }
591
- function z(e, t) {
605
+ function B(e, t) {
592
606
  return e.name === t.name && e.type === t.type && e.size === t.size;
593
607
  }
594
- function V(e) {
608
+ function H(e) {
595
609
  return !d.accept.trim() || d.accept.split(",").some((t) => {
596
610
  let n = t.trim().toLowerCase(), r = e.type.toLowerCase();
597
611
  return n ? n.startsWith(".") ? e.name.toLowerCase().endsWith(n) : n.endsWith("/*") ? r.startsWith(n.slice(0, -1)) : r === n : !1;
598
612
  });
599
613
  }
600
- function H(e) {
614
+ function U(e) {
601
615
  return e < 1024 ? `${e} B` : e < 1048576 ? `${(e / 1024).toFixed(1)} KB` : `${(e / 1048576).toFixed(2)} MB`;
602
616
  }
603
- function U(e) {
617
+ function W(e) {
604
618
  let t = [];
605
619
  return {
606
620
  errors: t,
607
- validFiles: e.filter((e) => V(e) ? d.maxFileSize && e.size > d.maxFileSize ? (t.push({
621
+ validFiles: e.filter((e) => H(e) ? d.maxFileSize && e.size > d.maxFileSize ? (t.push({
608
622
  code: "file-size",
609
623
  file: e,
610
- message: `O arquivo "${e.name}" excede o tamanho máximo de ${H(d.maxFileSize)}.`
624
+ message: `O arquivo "${e.name}" excede o tamanho máximo de ${U(d.maxFileSize)}.`
611
625
  }), !1) : !0 : (t.push({
612
626
  code: "file-type",
613
627
  file: e,
@@ -615,23 +629,23 @@ var ae = /* @__PURE__ */ $(Q, [["render", ie], ["__file", "/Users/mahmudulhasan/
615
629
  }), !1))
616
630
  };
617
631
  }
618
- function W(e) {
632
+ function G(e) {
619
633
  let t = e.originalEvent;
620
634
  return Array.from(t.dataTransfer?.files ?? t.target?.files ?? []);
621
635
  }
622
- function G(e) {
636
+ function K(e) {
623
637
  return d.multiple ? [...e] : e[0] ?? null;
624
638
  }
625
- function K() {
639
+ function q() {
626
640
  S.value && (S.value.files = [...D.value]);
627
641
  }
628
- function q(e, t) {
629
- D.value = e, A.value = [], $(), f(K);
630
- let n = G(e);
642
+ function J(e, t) {
643
+ D.value = e, A.value = [], $(), f(q);
644
+ let n = K(e);
631
645
  p("update:modelValue", n), p("change", n), t === "select" && p("select", [...e]), t === "clear" && p("clear");
632
646
  }
633
- function J(e) {
634
- let { errors: t, validFiles: n } = U(W(e)), r = d.multiple ? [...D.value, ...n.filter((e) => !D.value.some((t) => z(t, e)))] : n.slice(-1);
647
+ function Y(e) {
648
+ let { errors: t, validFiles: n } = W(G(e)), r = d.multiple ? [...D.value, ...n.filter((e) => !D.value.some((t) => B(t, e)))] : n.slice(-1);
635
649
  if (d.maxFiles && r.length > d.maxFiles) {
636
650
  let e = r.slice(d.maxFiles);
637
651
  t.push(...e.map((e) => ({
@@ -640,28 +654,28 @@ var ae = /* @__PURE__ */ $(Q, [["render", ie], ["__file", "/Users/mahmudulhasan/
640
654
  message: `O limite máximo é de ${d.maxFiles} arquivo(s).`
641
655
  }))), r = r.slice(0, d.maxFiles);
642
656
  }
643
- if (t.length ? (A.value = t, p("error", t)) : A.value = [], K(), n.length && !Y(r, D.value)) {
644
- D.value = r, $(), f(K);
645
- let e = G(r);
657
+ if (t.length ? (A.value = t, p("error", t)) : A.value = [], q(), n.length && !X(r, D.value)) {
658
+ D.value = r, $(), f(q);
659
+ let e = K(r);
646
660
  p("update:modelValue", e), p("change", e), p("select", [...r]);
647
661
  }
648
662
  }
649
- function Y(e, t) {
650
- return e.length === t.length && e.every((e, n) => z(e, t[n]));
663
+ function X(e, t) {
664
+ return e.length === t.length && e.every((e, n) => B(e, t[n]));
651
665
  }
652
- function X() {
666
+ function Z() {
653
667
  F.value || S.value?.choose();
654
668
  }
655
- function Z(e, t) {
669
+ function ee(e, t) {
656
670
  if (F.value) return;
657
671
  let n = D.value[t];
658
672
  if (!n) return;
659
673
  e(t);
660
674
  let r = D.value.filter((e, n) => n !== t);
661
- q(r, "remove"), p("remove", n, t), r.length || p("clear");
675
+ J(r, "remove"), p("remove", n, t), r.length || p("clear");
662
676
  }
663
677
  function te() {
664
- F.value || !D.value.length || q([], "clear");
678
+ F.value || !D.value.length || J([], "clear");
665
679
  }
666
680
  function Q(e) {
667
681
  if (!e.type.startsWith("image/") || typeof URL.createObjectURL != "function") return "";
@@ -674,23 +688,23 @@ var ae = /* @__PURE__ */ $(Q, [["render", ie], ["__file", "/Users/mahmudulhasan/
674
688
  for (let [e, t] of j) D.value.includes(e) || (URL.revokeObjectURL(t), j.delete(e));
675
689
  }
676
690
  return O(() => d.modelValue, (e) => {
677
- let t = R(e);
678
- Y(t, D.value) || (D.value = t, A.value = [], $(), f(K));
691
+ let t = z(e);
692
+ X(t, D.value) || (D.value = t, A.value = [], $(), f(q));
679
693
  }), O(() => d.multiple, () => {
680
- let e = R(d.modelValue);
681
- D.value = e, $(), f(K);
682
- }), _(K), g(() => {
694
+ let e = z(d.modelValue);
695
+ D.value = e, $(), f(q);
696
+ }), _(q), g(() => {
683
697
  for (let e of j.values()) URL.revokeObjectURL(e);
684
698
  j.clear();
685
699
  }), l({
686
- choose: X,
700
+ choose: Z,
687
701
  clear: te
688
- }), (t, l) => (v(), i("div", oe, [
702
+ }), (t, l) => (v(), i("div", se, [
689
703
  o.label ? (v(), i("label", {
690
704
  key: 0,
691
705
  for: M.value,
692
706
  class: "text-xs font-bold text-secondary-800 dark:text-zinc-200"
693
- }, [s(C(o.label) + " ", 1), o.required ? (v(), i("span", ce, "*")) : r("", !0)], 8, se)) : r("", !0),
707
+ }, [s(C(o.label) + " ", 1), o.required ? (v(), i("span", le, "*")) : r("", !0)], 8, ce)) : r("", !0),
694
708
  c(w(I), {
695
709
  ref_key: "fileUploadRef",
696
710
  ref: S,
@@ -704,16 +718,16 @@ var ae = /* @__PURE__ */ $(Q, [["render", ie], ["__file", "/Users/mahmudulhasan/
704
718
  pt: {
705
719
  root: { class: "top-file-upload__root w-full" },
706
720
  header: { class: "hidden" },
707
- input: ee.value,
721
+ input: R.value,
708
722
  content: { class: [
709
723
  "top-file-upload__dropzone min-h-[224px] rounded-[10px] border p-4 transition-colors",
710
724
  P.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",
711
725
  F.value ? "cursor-not-allowed opacity-60" : ""
712
726
  ].join(" ") }
713
727
  },
714
- onSelect: J
728
+ onSelect: Y
715
729
  }, {
716
- content: k(({ removeFileCallback: s }) => [a("div", le, [D.value.length ? (v(), i("div", pe, [(v(!0), i(e, null, b(D.value, (e, n) => (v(), i("div", {
730
+ content: k(({ removeFileCallback: s }) => [a("div", ue, [D.value.length ? (v(), i("div", me, [(v(!0), i(e, null, b(D.value, (e, n) => (v(), i("div", {
717
731
  key: `${e.name}-${e.size}-${e.lastModified}`,
718
732
  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"
719
733
  }, [
@@ -726,22 +740,22 @@ var ae = /* @__PURE__ */ $(Q, [["render", ie], ["__file", "/Users/mahmudulhasan/
726
740
  src: Q(e),
727
741
  alt: `Pré-visualização de ${e.name}`,
728
742
  class: "size-12 shrink-0 rounded-lg object-cover"
729
- }, null, 8, me)) : (v(), i("span", he, [...l[0] ||= [a("i", {
743
+ }, null, 8, he)) : (v(), i("span", ge, [...l[0] ||= [a("i", {
730
744
  class: "pi pi-file text-2xl",
731
745
  "aria-hidden": "true"
732
746
  }, null, -1)]]))]),
733
- a("div", ge, [a("p", _e, C(e.name), 1), a("span", ve, C(H(e.size)), 1)]),
747
+ a("div", _e, [a("p", ve, C(e.name), 1), a("span", ye, C(U(e.size)), 1)]),
734
748
  a("button", {
735
749
  type: "button",
736
750
  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",
737
751
  "aria-label": `${o.removeLabel}: ${e.name}`,
738
752
  disabled: F.value,
739
- onClick: (e) => Z(s, n)
753
+ onClick: (e) => ee(s, n)
740
754
  }, [...l[1] ||= [a("i", {
741
755
  class: "pi pi-times",
742
756
  "aria-hidden": "true"
743
- }, null, -1)]], 8, ye)
744
- ]))), 128)), o.multiple && (!o.maxFiles || D.value.length < o.maxFiles) ? (v(), n(B, {
757
+ }, null, -1)]], 8, be)
758
+ ]))), 128)), o.multiple && (!o.maxFiles || D.value.length < o.maxFiles) ? (v(), n(V, {
745
759
  key: 0,
746
760
  label: o.selectLabel,
747
761
  icon: "pi pi-plus-circle",
@@ -749,30 +763,30 @@ var ae = /* @__PURE__ */ $(Q, [["render", ie], ["__file", "/Users/mahmudulhasan/
749
763
  disabled: o.disabled,
750
764
  loading: o.loading,
751
765
  class: "mt-1 px-3 py-2 text-xs",
752
- onClick: X
766
+ onClick: Z
753
767
  }, null, 8, [
754
768
  "label",
755
769
  "disabled",
756
770
  "loading"
757
771
  ])) : r("", !0)])) : x(t.$slots, "empty", {
758
- choose: X,
772
+ choose: Z,
759
773
  disabled: F.value
760
774
  }, () => [
761
- a("span", ue, [o.loading ? (v(), i("i", de)) : (v(), n(w(ae), {
775
+ a("span", de, [o.loading ? (v(), i("i", fe)) : (v(), n(w(oe), {
762
776
  key: 1,
763
777
  icon: w(ne),
764
778
  size: 72,
765
779
  "stroke-width": 1.5,
766
780
  class: "text-primary-800 dark:text-primary-300"
767
781
  }, null, 8, ["icon"]))]),
768
- a("p", fe, C(o.placeholder), 1),
769
- c(B, {
782
+ a("p", pe, C(o.placeholder), 1),
783
+ c(V, {
770
784
  label: o.selectLabel,
771
785
  icon: "pi pi-plus-circle",
772
786
  disabled: o.disabled,
773
787
  loading: o.loading,
774
788
  class: "px-3 py-2 text-xs",
775
- onClick: X
789
+ onClick: Z
776
790
  }, null, 8, [
777
791
  "label",
778
792
  "disabled",
@@ -791,14 +805,14 @@ var ae = /* @__PURE__ */ $(Q, [["render", ie], ["__file", "/Users/mahmudulhasan/
791
805
  id: N.value,
792
806
  class: "text-[11px] text-red-600 dark:text-red-400",
793
807
  role: "alert"
794
- }, C(P.value), 9, be)) : r("", !0)
808
+ }, C(P.value), 9, xe)) : r("", !0)
795
809
  ]));
796
810
  }
797
- }), Se = { class: "top-input-text top-solutions-component flex w-full flex-col gap-1" }, Ce = ["for"], we = {
811
+ }), Ce = { class: "top-input-text top-solutions-component flex w-full flex-col gap-1" }, we = ["for"], Te = {
798
812
  key: 0,
799
813
  "aria-hidden": "true",
800
814
  class: "text-red-600 dark:text-red-400"
801
- }, Te = ["id"], Ee = /* @__PURE__ */ l({
815
+ }, Ee = ["id"], De = /* @__PURE__ */ l({
802
816
  inheritAttrs: !1,
803
817
  __name: "TopInputText",
804
818
  props: {
@@ -832,12 +846,12 @@ var ae = /* @__PURE__ */ $(Q, [["render", ie], ["__file", "/Users/mahmudulhasan/
832
846
  function g(e) {
833
847
  o("update:modelValue", e ?? "");
834
848
  }
835
- return (t, n) => (v(), i("div", Se, [
849
+ return (t, n) => (v(), i("div", Ce, [
836
850
  e.label ? (v(), i("label", {
837
851
  key: 0,
838
852
  for: f.value,
839
853
  class: "top-field-label text-xs font-bold"
840
- }, [s(C(e.label) + " ", 1), e.required ? (v(), i("span", we, "*")) : r("", !0)], 8, Ce)) : r("", !0),
854
+ }, [s(C(e.label) + " ", 1), e.required ? (v(), i("span", Te, "*")) : r("", !0)], 8, we)) : r("", !0),
841
855
  c(w(L), d(t.$attrs, {
842
856
  id: f.value,
843
857
  "model-value": e.modelValue,
@@ -868,44 +882,420 @@ var ae = /* @__PURE__ */ $(Q, [["render", ie], ["__file", "/Users/mahmudulhasan/
868
882
  id: p.value,
869
883
  class: "text-[11px] text-red-600 dark:text-red-400",
870
884
  role: "alert"
871
- }, C(e.error), 9, Te)) : r("", !0)
885
+ }, C(e.error), 9, Ee)) : r("", !0)
872
886
  ]));
873
887
  }
874
- }), De = { class: "top-field-icon pointer-events-none absolute left-3 top-1/2 z-10 -translate-y-1/2" }, Oe = {
888
+ }), Oe = { class: "top-nav-bar__header" }, ke = ["aria-expanded"], Ae = { class: "top-nav-bar__brand" }, je = { class: "top-nav-bar__context" }, Me = {
889
+ key: 1,
890
+ class: "top-nav-bar__search"
891
+ }, Ne = ["value", "placeholder"], Pe = {
892
+ key: 0,
893
+ class: "top-nav-bar__search-results",
894
+ role: "menu"
895
+ }, Fe = ["onClick"], Ie = {
896
+ key: 0,
897
+ class: "top-nav-bar__empty"
898
+ }, Le = { class: "top-nav-bar__actions" }, Re = {
899
+ key: 2,
900
+ class: "top-nav-bar__user-menu"
901
+ }, ze = ["aria-expanded"], Be = ["src"], Ve = {
902
+ key: 1,
903
+ class: "top-nav-bar__user-avatar"
904
+ }, He = { class: "top-nav-bar__user-details" }, Ue = { class: "top-nav-bar__user-name" }, We = {
905
+ key: 0,
906
+ class: "top-nav-bar__user-subtitle"
907
+ }, Ge = {
908
+ key: 0,
909
+ class: "top-nav-bar__user-dropdown",
910
+ role: "menu"
911
+ }, Ke = {
912
+ key: 0,
913
+ class: "top-nav-bar__user-separator",
914
+ role: "separator"
915
+ }, qe = ["disabled", "onClick"], Je = { class: "top-nav-bar__breadcrumbs" }, Ye = {
916
+ key: 0,
917
+ class: "top-nav-bar__separator",
918
+ "aria-hidden": "true"
919
+ }, Xe = ["aria-expanded"], Ze = {
920
+ key: 0,
921
+ class: "top-nav-bar__menu-layer",
922
+ role: "menu"
923
+ }, Qe = [
924
+ "aria-expanded",
925
+ "onMouseenter",
926
+ "onClick"
927
+ ], $e = {
928
+ key: 0,
929
+ class: "top-nav-bar__section-items",
930
+ role: "menu"
931
+ }, et = ["onClick"], tt = ["onMouseenter"], nt = ["aria-expanded", "onClick"], rt = {
932
+ key: 0,
933
+ class: "top-nav-bar__menu-layer",
934
+ role: "menu"
935
+ }, it = { class: "top-nav-bar__menu-panel top-nav-bar__breadcrumb-panel" }, at = ["onClick"], ot = ["onClick"], st = {
936
+ key: 2,
937
+ class: "top-nav-bar__current"
938
+ }, ct = { class: "top-nav-bar__breadcrumb-actions" }, lt = {
939
+ key: 0,
940
+ class: "top-nav-bar__mobile-menu"
941
+ }, ut = ["onClick"], dt = {
942
+ key: 0,
943
+ class: "top-nav-bar__mobile-items"
944
+ }, ft = ["onClick"], pt = /* @__PURE__ */ l({
945
+ __name: "TopNavBar",
946
+ props: {
947
+ sections: { default: () => [] },
948
+ breadcrumbs: { default: () => [] },
949
+ homeItem: { default: () => ({
950
+ id: "home",
951
+ label: "Início",
952
+ to: "/"
953
+ }) },
954
+ activeItemId: { default: "" },
955
+ searchable: {
956
+ type: Boolean,
957
+ default: !1
958
+ },
959
+ searchPlaceholder: { default: "Pesquisar no menu..." },
960
+ searchResults: { default: void 0 },
961
+ showAia: {
962
+ type: Boolean,
963
+ default: !1
964
+ },
965
+ aiaLabel: { default: "Aia" },
966
+ showSupport: {
967
+ type: Boolean,
968
+ default: !1
969
+ },
970
+ supportLabel: { default: "Suporte" },
971
+ user: { default: void 0 },
972
+ userMenuItems: { default: () => [] },
973
+ appearance: { default: () => ({}) }
974
+ },
975
+ emits: [
976
+ "navigate",
977
+ "search",
978
+ "toggle-aia",
979
+ "open-support",
980
+ "toggle-favorite",
981
+ "user-action"
982
+ ],
983
+ setup(n, { emit: o }) {
984
+ let l = n, u = o, d = y(!1), f = y(null), m = y(!1), S = y(null), T = y(null), E = y(!1), D = y(""), O = t(() => l.sections.flatMap((e) => e.children)), k = t(() => {
985
+ if (l.searchResults) return l.searchResults;
986
+ let e = D.value.trim().toLocaleLowerCase("pt-BR");
987
+ return e ? O.value.filter((t) => t.label.toLocaleLowerCase("pt-BR").includes(e)) : [];
988
+ }), A = t(() => ({
989
+ "--top-nav-bg": l.appearance.headerBackground ?? "#013a59",
990
+ "--top-nav-breadcrumb-bg": l.appearance.breadcrumbBackground ?? l.appearance.headerBackground ?? "#013a59",
991
+ "--top-nav-fg": l.appearance.foreground ?? "#ffffff",
992
+ "--top-nav-muted-fg": l.appearance.mutedForeground ?? "#bfdbfe",
993
+ "--top-nav-accent": l.appearance.accentColor ?? "#fbbf24",
994
+ "--top-nav-menu-bg": l.appearance.menuBackground ?? "#ffffff",
995
+ "--top-nav-menu-fg": l.appearance.menuForeground ?? "#172033",
996
+ "--top-nav-border": l.appearance.borderColor ?? "rgb(255 255 255 / 15%)",
997
+ "--top-nav-radius": l.appearance.radius ?? "8px",
998
+ "--top-nav-height": l.appearance.height ?? "auto"
999
+ }));
1000
+ function j(e) {
1001
+ return e.icon || "pi pi-circle";
1002
+ }
1003
+ function M(e) {
1004
+ e.disabled || (u("navigate", e), G());
1005
+ }
1006
+ function N(e) {
1007
+ f.value = f.value === e ? null : e;
1008
+ }
1009
+ function P(e) {
1010
+ return l.sections.find((t) => t.id === e.sectionId);
1011
+ }
1012
+ function F() {
1013
+ return typeof window < "u" && window.matchMedia("(hover: hover) and (pointer: fine)").matches;
1014
+ }
1015
+ function I() {
1016
+ F() && (m.value = !0);
1017
+ }
1018
+ function L() {
1019
+ !F() || window.innerWidth < 768 || (m.value = !1, S.value = null);
1020
+ }
1021
+ function R() {
1022
+ m.value = !m.value, m.value || (S.value = null);
1023
+ }
1024
+ function z(e) {
1025
+ S.value = S.value === e ? null : e;
1026
+ }
1027
+ function B(e) {
1028
+ F() && (T.value = e);
1029
+ }
1030
+ function V() {
1031
+ !F() || window.innerWidth < 768 || (T.value = null);
1032
+ }
1033
+ function H(e) {
1034
+ T.value = T.value === e ? null : e;
1035
+ }
1036
+ function U(e) {
1037
+ e.disabled || e.separator || (u("user-action", e), E.value = !1);
1038
+ }
1039
+ function W(e) {
1040
+ D.value = e, u("search", e);
1041
+ }
1042
+ function G() {
1043
+ d.value = !1, f.value = null, m.value = !1, S.value = null, T.value = null, E.value = !1;
1044
+ }
1045
+ function K(e) {
1046
+ e.key === "Escape" && G();
1047
+ }
1048
+ return _(() => document.addEventListener("keydown", K)), g(() => document.removeEventListener("keydown", K)), (t, o) => (v(), i("nav", {
1049
+ class: "top-nav-bar top-solutions-component",
1050
+ style: h(A.value),
1051
+ "aria-label": "Navegação principal"
1052
+ }, [
1053
+ a("div", Oe, [
1054
+ n.sections.length ? (v(), i("button", {
1055
+ key: 0,
1056
+ class: "top-nav-bar__mobile-trigger",
1057
+ type: "button",
1058
+ "aria-label": "Abrir navegação",
1059
+ "aria-expanded": d.value,
1060
+ onClick: o[0] ||= (e) => d.value = !d.value
1061
+ }, [...o[6] ||= [a("i", {
1062
+ class: "pi pi-bars",
1063
+ "aria-hidden": "true"
1064
+ }, null, -1)]], 8, ke)) : r("", !0),
1065
+ a("div", Ae, [x(t.$slots, "brand")]),
1066
+ a("div", je, [x(t.$slots, "context")]),
1067
+ o[11] ||= a("div", { class: "top-nav-bar__spacer" }, null, -1),
1068
+ n.searchable ? (v(), i("div", Me, [
1069
+ o[7] ||= a("i", {
1070
+ class: "pi pi-search",
1071
+ "aria-hidden": "true"
1072
+ }, null, -1),
1073
+ a("input", {
1074
+ value: D.value,
1075
+ type: "search",
1076
+ placeholder: n.searchPlaceholder,
1077
+ "aria-label": "Pesquisar no menu",
1078
+ onInput: o[1] ||= (e) => W(e.target.value)
1079
+ }, null, 40, Ne),
1080
+ D.value ? (v(), i("div", Pe, [x(t.$slots, "search-results", {
1081
+ items: k.value,
1082
+ select: M
1083
+ }, () => [(v(!0), i(e, null, b(k.value, (e) => (v(), i("button", {
1084
+ key: e.id,
1085
+ class: "top-nav-bar__menu-item",
1086
+ type: "button",
1087
+ role: "menuitem",
1088
+ onClick: (t) => M(e)
1089
+ }, [a("i", {
1090
+ class: p(j(e)),
1091
+ "aria-hidden": "true"
1092
+ }, null, 2), s(" " + C(e.label), 1)], 8, Fe))), 128)), k.value.length ? r("", !0) : (v(), i("span", Ie, "Nenhum item encontrado."))])])) : r("", !0)
1093
+ ])) : r("", !0),
1094
+ a("div", Le, [
1095
+ n.showAia ? (v(), i("button", {
1096
+ key: 0,
1097
+ class: "top-nav-bar__action",
1098
+ type: "button",
1099
+ onClick: o[2] ||= (e) => u("toggle-aia")
1100
+ }, [o[8] ||= a("i", {
1101
+ class: "pi pi-comments",
1102
+ "aria-hidden": "true"
1103
+ }, null, -1), s(" " + C(n.aiaLabel), 1)])) : r("", !0),
1104
+ n.showSupport ? (v(), i("button", {
1105
+ key: 1,
1106
+ class: "top-nav-bar__action",
1107
+ type: "button",
1108
+ onClick: o[3] ||= (e) => u("open-support")
1109
+ }, [o[9] ||= a("i", {
1110
+ class: "pi pi-headphones",
1111
+ "aria-hidden": "true"
1112
+ }, null, -1), s(" " + C(n.supportLabel), 1)])) : r("", !0),
1113
+ x(t.$slots, "actions"),
1114
+ n.user ? (v(), i("div", Re, [a("button", {
1115
+ class: "top-nav-bar__user-trigger",
1116
+ type: "button",
1117
+ "aria-expanded": E.value,
1118
+ "aria-haspopup": "menu",
1119
+ onClick: o[4] ||= (e) => E.value = !E.value
1120
+ }, [
1121
+ n.user.avatarUrl ? (v(), i("img", {
1122
+ key: 0,
1123
+ src: n.user.avatarUrl,
1124
+ alt: "",
1125
+ class: "top-nav-bar__user-avatar"
1126
+ }, null, 8, Be)) : (v(), i("span", Ve, C(n.user.initials || n.user.name.slice(0, 2).toUpperCase()), 1)),
1127
+ a("span", He, [a("span", Ue, C(n.user.name), 1), n.user.subtitle ? (v(), i("span", We, C(n.user.subtitle), 1)) : r("", !0)]),
1128
+ o[10] ||= a("i", {
1129
+ class: "pi pi-chevron-down top-nav-bar__chevron",
1130
+ "aria-hidden": "true"
1131
+ }, null, -1)
1132
+ ], 8, ze), E.value ? (v(), i("div", Ge, [(v(!0), i(e, null, b(n.userMenuItems, (t) => (v(), i(e, { key: t.id }, [t.separator ? (v(), i("div", Ke)) : (v(), i("button", {
1133
+ key: 1,
1134
+ class: "top-nav-bar__menu-item",
1135
+ type: "button",
1136
+ disabled: t.disabled,
1137
+ onClick: (e) => U(t)
1138
+ }, [t.icon ? (v(), i("i", {
1139
+ key: 0,
1140
+ class: p(t.icon),
1141
+ "aria-hidden": "true"
1142
+ }, null, 2)) : r("", !0), s(" " + C(t.label), 1)], 8, qe))], 64))), 128))])) : r("", !0)])) : r("", !0),
1143
+ x(t.$slots, "user-menu")
1144
+ ])
1145
+ ]),
1146
+ a("div", Je, [
1147
+ a("button", {
1148
+ class: "top-nav-bar__crumb",
1149
+ type: "button",
1150
+ onClick: o[5] ||= (e) => M(n.homeItem)
1151
+ }, [c(w(oe), { icon: w(Q) }, null, 8, ["icon"]), s(" " + C(n.homeItem.label), 1)]),
1152
+ n.sections.length ? (v(), i("span", Ye, "/")) : r("", !0),
1153
+ n.sections.length ? (v(), i("div", {
1154
+ key: 1,
1155
+ class: "top-nav-bar__dropdown",
1156
+ onMouseenter: I,
1157
+ onMouseleave: L
1158
+ }, [a("button", {
1159
+ class: "top-nav-bar__crumb",
1160
+ type: "button",
1161
+ "aria-haspopup": "menu",
1162
+ "aria-expanded": m.value,
1163
+ onClick: R
1164
+ }, [...o[12] ||= [
1165
+ a("i", {
1166
+ class: "pi pi-bars",
1167
+ "aria-hidden": "true"
1168
+ }, null, -1),
1169
+ s(" Navegação ", -1),
1170
+ a("i", {
1171
+ class: "pi pi-chevron-down top-nav-bar__chevron",
1172
+ "aria-hidden": "true"
1173
+ }, null, -1)
1174
+ ]], 8, Xe), m.value ? (v(), i("div", Ze, [a("div", { class: p(["top-nav-bar__menu-panel", { "top-nav-bar__menu-panel--expanded": S.value }]) }, [a("div", { class: p(["top-nav-bar__section-list", { "top-nav-bar__section-list--with-submenu": S.value }]) }, [(v(!0), i(e, null, b(n.sections, (e) => (v(), i("button", {
1175
+ key: e.id,
1176
+ class: p(["top-nav-bar__menu-item", { "top-nav-bar__menu-item--selected": S.value === e.id }]),
1177
+ type: "button",
1178
+ role: "menuitem",
1179
+ "aria-expanded": S.value === e.id,
1180
+ onMouseenter: (t) => F() && (S.value = e.id),
1181
+ onClick: (t) => z(e.id)
1182
+ }, [
1183
+ a("i", {
1184
+ class: p(j(e)),
1185
+ "aria-hidden": "true"
1186
+ }, null, 2),
1187
+ a("span", null, C(e.label), 1),
1188
+ o[13] ||= a("i", {
1189
+ class: "pi pi-chevron-right top-nav-bar__menu-arrow",
1190
+ "aria-hidden": "true"
1191
+ }, null, -1)
1192
+ ], 42, Qe))), 128))], 2), S.value ? (v(), i("div", $e, [(v(!0), i(e, null, b(n.sections, (t) => (v(), i(e, { key: t.id }, [t.id === S.value ? (v(!0), i(e, { key: 0 }, b(t.children, (e) => (v(), i("button", {
1193
+ key: e.id,
1194
+ class: p(["top-nav-bar__menu-item", { "top-nav-bar__menu-item--active": n.activeItemId === e.id }]),
1195
+ type: "button",
1196
+ role: "menuitem",
1197
+ onClick: (t) => M(e)
1198
+ }, [a("i", {
1199
+ class: p(j(e)),
1200
+ "aria-hidden": "true"
1201
+ }, null, 2), a("span", null, C(e.label), 1)], 10, et))), 128)) : r("", !0)], 64))), 128))])) : r("", !0)], 2)])) : r("", !0)], 32)) : r("", !0),
1202
+ (v(!0), i(e, null, b(n.breadcrumbs, (t) => (v(), i(e, { key: t.id }, [o[15] ||= a("span", {
1203
+ class: "top-nav-bar__separator",
1204
+ "aria-hidden": "true"
1205
+ }, "/", -1), t.sectionId && P(t) ? (v(), i("div", {
1206
+ key: 0,
1207
+ class: "top-nav-bar__dropdown",
1208
+ onMouseenter: (e) => B(t.sectionId),
1209
+ onMouseleave: V
1210
+ }, [a("button", {
1211
+ class: "top-nav-bar__crumb",
1212
+ type: "button",
1213
+ "aria-haspopup": "menu",
1214
+ "aria-expanded": T.value === t.sectionId,
1215
+ onClick: (e) => H(t.sectionId)
1216
+ }, [s(C(t.label) + " ", 1), o[14] ||= a("i", {
1217
+ class: "pi pi-chevron-down top-nav-bar__chevron",
1218
+ "aria-hidden": "true"
1219
+ }, null, -1)], 8, nt), T.value === t.sectionId ? (v(), i("div", rt, [a("div", it, [(v(!0), i(e, null, b(P(t)?.children, (e) => (v(), i("button", {
1220
+ key: e.id,
1221
+ class: p(["top-nav-bar__menu-item", { "top-nav-bar__menu-item--active": n.activeItemId === e.id }]),
1222
+ type: "button",
1223
+ role: "menuitem",
1224
+ onClick: (t) => M(e)
1225
+ }, [a("i", {
1226
+ class: p(j(e)),
1227
+ "aria-hidden": "true"
1228
+ }, null, 2), a("span", null, C(e.label), 1)], 10, at))), 128))])])) : r("", !0)], 40, tt)) : t.to ? (v(), i("button", {
1229
+ key: 1,
1230
+ class: "top-nav-bar__crumb",
1231
+ type: "button",
1232
+ onClick: (e) => M(t)
1233
+ }, C(t.label), 9, ot)) : (v(), i("span", st, C(t.label), 1))], 64))), 128)),
1234
+ a("span", ct, [x(t.$slots, "breadcrumb-actions")])
1235
+ ]),
1236
+ d.value ? (v(), i("div", lt, [(v(!0), i(e, null, b(n.sections, (t) => (v(), i("section", {
1237
+ key: t.id,
1238
+ class: "top-nav-bar__mobile-section"
1239
+ }, [a("button", {
1240
+ class: "top-nav-bar__mobile-section-title",
1241
+ type: "button",
1242
+ onClick: (e) => N(t.id)
1243
+ }, [
1244
+ a("i", {
1245
+ class: p(j(t)),
1246
+ "aria-hidden": "true"
1247
+ }, null, 2),
1248
+ s(" " + C(t.label) + " ", 1),
1249
+ a("i", {
1250
+ class: p(["pi pi-chevron-down top-nav-bar__menu-arrow", { "top-nav-bar__menu-arrow--open": f.value === t.id }]),
1251
+ "aria-hidden": "true"
1252
+ }, null, 2)
1253
+ ], 8, ut), f.value === t.id ? (v(), i("div", dt, [(v(!0), i(e, null, b(t.children, (e) => (v(), i("button", {
1254
+ key: e.id,
1255
+ class: p(["top-nav-bar__menu-item", { "top-nav-bar__menu-item--active": n.activeItemId === e.id }]),
1256
+ type: "button",
1257
+ onClick: (t) => M(e)
1258
+ }, [a("i", {
1259
+ class: p(j(e)),
1260
+ "aria-hidden": "true"
1261
+ }, null, 2), s(" " + C(e.label), 1)], 10, ft))), 128))])) : r("", !0)]))), 128)), x(t.$slots, "mobile-footer")])) : r("", !0)
1262
+ ], 4));
1263
+ }
1264
+ }), mt = { class: "top-field-icon pointer-events-none absolute left-3 top-1/2 z-10 -translate-y-1/2" }, ht = {
875
1265
  key: 0,
876
1266
  class: "pi pi-spin pi-spinner"
877
- }, ke = {
1267
+ }, gt = {
878
1268
  key: 1,
879
1269
  class: "pi pi-search"
880
- }, Ae = {
1270
+ }, _t = {
881
1271
  key: 1,
882
1272
  class: "flex items-center gap-1 !text-sm"
883
- }, je = { class: "flex items-center gap-2 rounded-[9px] bg-primary-500 px-2 py-1 text-white" }, Me = ["onClick"], Ne = { class: "line-clamp-1 max-w-[300px] overflow-hidden text-ellipsis" }, Pe = {
1273
+ }, vt = { class: "flex items-center gap-2 rounded-[9px] bg-primary-500 px-2 py-1 text-white" }, yt = ["onClick"], bt = { class: "line-clamp-1 max-w-[300px] overflow-hidden text-ellipsis" }, xt = {
884
1274
  key: 1,
885
1275
  class: "flex min-h-[100px] flex-col items-center justify-center gap-2 py-2"
886
- }, Fe = {
1276
+ }, St = {
887
1277
  key: 0,
888
1278
  class: "text-xs font-medium text-primary-600"
889
- }, Ie = {
1279
+ }, Ct = {
890
1280
  key: 2,
891
1281
  class: "text-xs text-secondary-500"
892
- }, Le = { key: 1 }, Re = {
1282
+ }, wt = { key: 1 }, Tt = {
893
1283
  key: 1,
894
1284
  class: "flex items-center gap-2 font-semibold"
895
- }, ze = {
1285
+ }, Et = {
896
1286
  key: 1,
897
1287
  class: "flex w-full min-w-0 items-start gap-2 overflow-hidden px-2 py-3 text-sm",
898
1288
  style: { "white-space": "normal" }
899
- }, Be = ["title"], Ve = {
1289
+ }, Dt = ["title"], Ot = {
900
1290
  key: 0,
901
1291
  class: "top-select-option-prefix whitespace-nowrap font-bold text-primary-800 dark:text-primary-100"
902
- }, He = {
1292
+ }, kt = {
903
1293
  key: 0,
904
1294
  class: "rounded-sm bg-primary-200 p-0 font-bold text-black dark:bg-cyan-700 dark:text-white"
905
- }, Ue = {
1295
+ }, At = {
906
1296
  key: 0,
907
1297
  class: "rounded-sm bg-primary-200 p-0 font-bold text-black dark:bg-cyan-700 dark:text-white"
908
- }, We = /* @__PURE__ */ l({
1298
+ }, jt = /* @__PURE__ */ l({
909
1299
  __name: "TopSelect",
910
1300
  props: {
911
1301
  modelValue: { default: null },
@@ -974,24 +1364,24 @@ var ae = /* @__PURE__ */ $(Q, [["render", ie], ["__file", "/Users/mahmudulhasan/
974
1364
  "change"
975
1365
  ],
976
1366
  setup(n, { expose: l, emit: h }) {
977
- let S = n, T = h, E = D(), j = ee, N = y(""), P = y(!1), F = y(null), I = `top-select-${Math.random().toString(36).slice(2)}`, L = null, R = t({
1367
+ let S = n, T = h, E = D(), j = R, N = y(""), P = y(!1), F = y(null), I = `top-select-${Math.random().toString(36).slice(2)}`, L = null, z = t({
978
1368
  get: () => S.modelValue,
979
1369
  set: (e) => T("update:modelValue", e)
980
1370
  });
981
- function z(e, t) {
1371
+ function B(e, t) {
982
1372
  return e == null ? "" : String(typeof e == "object" ? e[t] ?? "" : e);
983
1373
  }
984
- function B(e) {
985
- return e == null ? "" : typeof S.optionLabel == "function" ? S.optionLabel(e) : z(e, S.optionLabel);
986
- }
987
1374
  function V(e) {
988
- return S.optionPrefix ? z(e, S.optionPrefix) : "";
1375
+ return e == null ? "" : typeof S.optionLabel == "function" ? S.optionLabel(e) : B(e, S.optionLabel);
1376
+ }
1377
+ function H(e) {
1378
+ return S.optionPrefix ? B(e, S.optionPrefix) : "";
989
1379
  }
990
- function H(e, t = S.showSelectedPrefix) {
991
- let n = B(e), r = V(e);
1380
+ function U(e, t = S.showSelectedPrefix) {
1381
+ let n = V(e), r = H(e);
992
1382
  return t && r ? `${r} - ${n}` : n;
993
1383
  }
994
- function U(e) {
1384
+ function W(e) {
995
1385
  let t = N.value;
996
1386
  if (!t) return [{
997
1387
  text: e,
@@ -1003,46 +1393,46 @@ var ae = /* @__PURE__ */ $(Q, [["render", ie], ["__file", "/Users/mahmudulhasan/
1003
1393
  highlighted: e.toLowerCase() === t.toLowerCase()
1004
1394
  }));
1005
1395
  }
1006
- function W() {
1396
+ function G() {
1007
1397
  F.value?.hide?.();
1008
1398
  }
1009
- function G() {
1399
+ function K() {
1010
1400
  typeof window > "u" || window.dispatchEvent(new CustomEvent("top-select:close-others", { detail: { instanceId: I } }));
1011
1401
  }
1012
- function K(e) {
1013
- e.detail?.instanceId !== I && W();
1402
+ function q(e) {
1403
+ e.detail?.instanceId !== I && G();
1014
1404
  }
1015
- function q() {
1405
+ function J() {
1016
1406
  if (S.disabled || L) {
1017
- W();
1407
+ G();
1018
1408
  return;
1019
1409
  }
1020
- P.value = !0, G();
1410
+ P.value = !0, K();
1021
1411
  }
1022
- function J() {
1023
- S.closeOnSelect && (P.value = !1, W(), f(W), L && clearTimeout(L), L = setTimeout(() => {
1024
- W(), L = null;
1412
+ function Y() {
1413
+ S.closeOnSelect && (P.value = !1, G(), f(G), L && clearTimeout(L), L = setTimeout(() => {
1414
+ G(), L = null;
1025
1415
  }, 200));
1026
1416
  }
1027
- return l({ hideDropdown: W }), _(() => window.addEventListener("top-select:close-others", K)), g(() => {
1028
- window.removeEventListener("top-select:close-others", K), L && clearTimeout(L);
1417
+ return l({ hideDropdown: G }), _(() => window.addEventListener("top-select:close-others", q)), g(() => {
1418
+ window.removeEventListener("top-select:close-others", q), L && clearTimeout(L);
1029
1419
  }), O(() => S.disabled, (e) => {
1030
- e && (P.value = !1, W());
1420
+ e && (P.value = !1, G());
1031
1421
  }), O(() => S.options, () => {
1032
- P.value || W();
1422
+ P.value || G();
1033
1423
  }), (t, l) => (v(), i("div", {
1034
1424
  class: p(["top-select top-solutions-component relative w-full", { "pointer-events-none": n.disabled }]),
1035
- onFocusin: q
1036
- }, [a("span", De, [x(t.$slots, "icon", { loading: n.loading }, () => [n.loading ? (v(), i("i", Oe)) : (v(), i("i", ke))])]), c(w(j), {
1425
+ onFocusin: J
1426
+ }, [a("span", mt, [x(t.$slots, "icon", { loading: n.loading }, () => [n.loading ? (v(), i("i", ht)) : (v(), i("i", gt))])]), c(w(j), {
1037
1427
  ref_key: "autocompleteRef",
1038
1428
  ref: F,
1039
- modelValue: R.value,
1040
- "onUpdate:modelValue": l[0] ||= (e) => R.value = e,
1429
+ modelValue: z.value,
1430
+ "onUpdate:modelValue": l[0] ||= (e) => z.value = e,
1041
1431
  "option-group-label": n.optionGroupLabel ?? void 0,
1042
1432
  "option-group-children": n.optionGroupChildren ?? void 0,
1043
1433
  suggestions: n.options,
1044
1434
  "data-key": n.optionKey,
1045
- "option-label": (e) => H(e),
1435
+ "option-label": (e) => U(e),
1046
1436
  placeholder: n.placeholder,
1047
1437
  multiple: n.multiple,
1048
1438
  "min-length": n.minQueryLength,
@@ -1089,45 +1479,45 @@ var ae = /* @__PURE__ */ $(Q, [["render", ie], ["__file", "/Users/mahmudulhasan/
1089
1479
  N.value = "", T("clear");
1090
1480
  },
1091
1481
  onItemSelect: l[2] ||= (e) => {
1092
- N.value = "", T("select", e), J();
1482
+ N.value = "", T("select", e), Y();
1093
1483
  },
1094
1484
  onComplete: l[3] ||= (e) => {
1095
1485
  if (n.disabled) {
1096
- W();
1486
+ G();
1097
1487
  return;
1098
1488
  }
1099
- N.value = e.query ?? "", G(), T("search", {
1489
+ N.value = e.query ?? "", K(), T("search", {
1100
1490
  ...e,
1101
1491
  query: N.value
1102
1492
  });
1103
1493
  },
1104
1494
  onChange: l[4] ||= (e) => T("change", e)
1105
1495
  }, o({
1106
- chip: k((e) => [w(E).chip ? x(t.$slots, "chip", m(u(e)), void 0, void 0, 0) : (v(), i("div", Ae, [a("div", je, [a("i", {
1496
+ chip: k((e) => [w(E).chip ? x(t.$slots, "chip", m(u(e)), void 0, void 0, 0) : (v(), i("div", _t, [a("div", vt, [a("i", {
1107
1497
  class: "pi pi-times-circle shrink-0 cursor-pointer rounded-full hover:bg-primary-800",
1108
1498
  onClick: (t) => e.removeCallback(t)
1109
- }, null, 8, Me), A((v(), i("span", Ne, [s(C(H(e.value)), 1)])), [[
1499
+ }, null, 8, yt), A((v(), i("span", bt, [s(C(U(e.value)), 1)])), [[
1110
1500
  w(M),
1111
- H(e.value),
1501
+ U(e.value),
1112
1502
  void 0,
1113
1503
  { top: !0 }
1114
1504
  ]])])]))]),
1115
- empty: k(() => [w(E).empty ? x(t.$slots, "empty", {}, void 0, void 0, 0) : n.loading ? (v(), i("div", Pe, [l[5] ||= a("span", { class: "pi pi-spin pi-spinner text-2xl text-primary-600" }, null, -1), n.showLoadingMessage ? (v(), i("span", Fe, C(n.loadingMessage), 1)) : r("", !0)])) : (v(), i("span", Ie, C(n.emptyMessage), 1))]),
1116
- "selected-item": k((e) => [w(E)["selected-item"] ? x(t.$slots, "selected-item", m(u(e)), void 0, void 0, 0) : e.item ? (v(), i("span", Le, C(H(e.item)), 1)) : r("", !0)]),
1117
- optiongroup: k((e) => [w(E)["option-group"] ? x(t.$slots, "option-group", m(u(e)), void 0, void 0, 0) : (v(), i("div", Re, [e.option.icon ? (v(), i("i", {
1505
+ empty: k(() => [w(E).empty ? x(t.$slots, "empty", {}, void 0, void 0, 0) : n.loading ? (v(), i("div", xt, [l[5] ||= a("span", { class: "pi pi-spin pi-spinner text-2xl text-primary-600" }, null, -1), n.showLoadingMessage ? (v(), i("span", St, C(n.loadingMessage), 1)) : r("", !0)])) : (v(), i("span", Ct, C(n.emptyMessage), 1))]),
1506
+ "selected-item": k((e) => [w(E)["selected-item"] ? x(t.$slots, "selected-item", m(u(e)), void 0, void 0, 0) : e.item ? (v(), i("span", wt, C(U(e.item)), 1)) : r("", !0)]),
1507
+ optiongroup: k((e) => [w(E)["option-group"] ? x(t.$slots, "option-group", m(u(e)), void 0, void 0, 0) : (v(), i("div", Tt, [e.option.icon ? (v(), i("i", {
1118
1508
  key: 0,
1119
1509
  class: p(e.option.icon)
1120
1510
  }, null, 2)) : r("", !0), a("span", null, C(e.option[n.optionGroupLabel ?? "label"]), 1)]))]),
1121
1511
  option: k((o) => [w(E).option ? x(t.$slots, "option", d(o, {
1122
- label: B(o.option),
1123
- prefix: V(o.option),
1512
+ label: V(o.option),
1513
+ prefix: H(o.option),
1124
1514
  query: N.value
1125
- }), void 0, void 0, 0) : A((v(), i("div", ze, [a("span", {
1515
+ }), void 0, void 0, 0) : A((v(), i("div", Et, [a("span", {
1126
1516
  class: "top-select-option-label line-clamp-2 min-w-0 flex-1 text-secondary-700 dark:text-zinc-200",
1127
- title: B(o.option)
1128
- }, [n.showOptionPrefix && V(o.option) ? (v(), i("span", Ve, [(v(!0), i(e, null, b(U(V(o.option)), (t, n) => (v(), i(e, { key: n }, [t.highlighted ? (v(), i("mark", He, C(t.text), 1)) : (v(), i(e, { key: 1 }, [s(C(t.text), 1)], 64))], 64))), 128)), l[6] ||= a("span", { class: "font-bold text-secondary-500 dark:text-zinc-400" }, "\xA0-\xA0", -1)])) : r("", !0), (v(!0), i(e, null, b(U(B(o.option)), (t, n) => (v(), i(e, { key: n }, [t.highlighted ? (v(), i("mark", Ue, C(t.text), 1)) : (v(), i(e, { key: 1 }, [s(C(t.text), 1)], 64))], 64))), 128))], 8, Be)])), [[
1517
+ title: V(o.option)
1518
+ }, [n.showOptionPrefix && H(o.option) ? (v(), i("span", Ot, [(v(!0), i(e, null, b(W(H(o.option)), (t, n) => (v(), i(e, { key: n }, [t.highlighted ? (v(), i("mark", kt, C(t.text), 1)) : (v(), i(e, { key: 1 }, [s(C(t.text), 1)], 64))], 64))), 128)), l[6] ||= a("span", { class: "font-bold text-secondary-500 dark:text-zinc-400" }, "\xA0-\xA0", -1)])) : r("", !0), (v(!0), i(e, null, b(W(V(o.option)), (t, n) => (v(), i(e, { key: n }, [t.highlighted ? (v(), i("mark", At, C(t.text), 1)) : (v(), i(e, { key: 1 }, [s(C(t.text), 1)], 64))], 64))), 128))], 8, Dt)])), [[
1129
1519
  w(M),
1130
- n.showTooltip ? B(o.option) : null,
1520
+ n.showTooltip ? V(o.option) : null,
1131
1521
  void 0,
1132
1522
  { top: !0 }
1133
1523
  ]])]),
@@ -1154,10 +1544,10 @@ var ae = /* @__PURE__ */ $(Q, [["render", ie], ["__file", "/Users/mahmudulhasan/
1154
1544
  "pt"
1155
1545
  ])], 34));
1156
1546
  }
1157
- }), Ge = { class: "top-toast__content" }, Ke = { class: "top-toast__detail" }, qe = ["onClick"], Je = {
1547
+ }), Mt = { class: "top-toast__content" }, Nt = { class: "top-toast__detail" }, Pt = ["onClick"], Ft = {
1158
1548
  key: 0,
1159
1549
  class: "top-toast__footer"
1160
- }, Ye = /* @__PURE__ */ l({
1550
+ }, It = /* @__PURE__ */ l({
1161
1551
  __name: "TopToast",
1162
1552
  props: { baseZIndex: { default: 3e4 } },
1163
1553
  setup(e) {
@@ -1179,13 +1569,13 @@ var ae = /* @__PURE__ */ $(Q, [["render", ie], ["__file", "/Users/mahmudulhasan/
1179
1569
  function d(e, t) {
1180
1570
  return `top-toast__${t}--${e.severity ?? "info"}`;
1181
1571
  }
1182
- return (f, m) => (v(), n(w(R), {
1572
+ return (f, m) => (v(), n(w(z), {
1183
1573
  position: "top-right",
1184
1574
  "base-z-index": e.baseZIndex
1185
1575
  }, {
1186
- message: k((e) => [a("div", Ge, [
1576
+ message: k((e) => [a("div", Mt, [
1187
1577
  a("div", { class: p(["top-toast__summary", d(e.message, "summary")]) }, C(e.message.summary), 3),
1188
- a("div", Ke, C(e.message.detail), 1),
1578
+ a("div", Nt, C(e.message.detail), 1),
1189
1579
  u(e.message) ? x(f.$slots, "action", {
1190
1580
  action: o(e.message),
1191
1581
  message: e.message,
@@ -1199,17 +1589,17 @@ var ae = /* @__PURE__ */ $(Q, [["render", ie], ["__file", "/Users/mahmudulhasan/
1199
1589
  key: 0,
1200
1590
  class: p(o(e.message)?.icon),
1201
1591
  "aria-hidden": "true"
1202
- }, null, 2)) : r("", !0), s(" " + C(o(e.message)?.label), 1)], 10, qe)) : r("", !0)], void 0, 0) : r("", !0),
1592
+ }, null, 2)) : r("", !0), s(" " + C(o(e.message)?.label), 1)], 10, Pt)) : r("", !0)], void 0, 0) : r("", !0),
1203
1593
  l(e.message) ? x(f.$slots, "footer", {
1204
1594
  message: e.message,
1205
1595
  footer: t(e.message)
1206
- }, () => [t(e.message) === void 0 ? r("", !0) : (v(), i("div", Je, C(t(e.message)), 1))], void 0, 1) : r("", !0)
1596
+ }, () => [t(e.message) === void 0 ? r("", !0) : (v(), i("div", Ft, C(t(e.message)), 1))], void 0, 1) : r("", !0)
1207
1597
  ])]),
1208
1598
  _: 3
1209
1599
  }, 8, ["base-z-index"]));
1210
1600
  }
1211
1601
  });
1212
1602
  //#endregion
1213
- export { te as a, B as c, xe as i, We as n, q as o, Ee as r, V as s, Ye as t };
1603
+ export { Se as a, H as c, De as i, V as l, jt as n, te as o, pt as r, J as s, It as t };
1214
1604
 
1215
- //# sourceMappingURL=TopToast-C7cOTxTp.js.map
1605
+ //# sourceMappingURL=TopToast-CXC-8FkA.js.map