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

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.
@@ -1,12 +1,12 @@
1
- import { Fragment as e, computed as t, createBlock as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, createSlots as o, createTextVNode as s, createVNode as c, defineComponent as l, guardReactiveProps as u, mergeProps as d, nextTick as f, normalizeClass as p, normalizeProps as m, normalizeStyle as h, onBeforeUnmount as g, onMounted as _, openBlock as v, ref as y, renderList as b, renderSlot as x, toDisplayString as S, unref as C, useAttrs as w, useId as T, useSlots as E, watch as D, withCtx as O, withDirectives as k } from "vue";
2
- import A from "primevue/button";
3
- import j from "primevue/tooltip";
4
- import { twMerge as M } from "tailwind-merge";
5
- import N from "primevue/dialog";
6
- import P from "primevue/datepicker";
7
- import F from "primevue/fileupload";
8
- import I from "primevue/inputtext";
9
- import L from "primevue/autocomplete";
1
+ import { Fragment as e, computed as t, createBlock as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, createSlots as o, createTextVNode as s, createVNode as c, defineComponent as l, guardReactiveProps as u, mergeProps as d, nextTick as f, normalizeClass as p, normalizeProps as m, normalizeStyle as h, onBeforeUnmount as g, onMounted as _, openBlock as v, ref as y, renderList as b, renderSlot as x, resolveDynamicComponent as S, toDisplayString as C, unref as w, useAttrs as T, useId as E, useSlots as D, watch as O, withCtx as k, withDirectives as A } from "vue";
2
+ import j from "primevue/button";
3
+ import M from "primevue/tooltip";
4
+ import { twMerge as N } from "tailwind-merge";
5
+ import P from "primevue/dialog";
6
+ import F from "primevue/datepicker";
7
+ import I from "primevue/fileupload";
8
+ import L from "primevue/inputtext";
9
+ import ee from "primevue/autocomplete";
10
10
  import R from "primevue/toast";
11
11
  //#region src/components/TopButton.vue?vue&type=script&setup=true&lang.ts
12
12
  var z = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px] bg-transparent" }, B = /* @__PURE__ */ l({
@@ -42,11 +42,11 @@ var z = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px]
42
42
  },
43
43
  emits: ["click"],
44
44
  setup(e, { emit: r }) {
45
- let a = E(), s = t(() => !!a.icon), c = e, l = r, u = t(() => c.secondary ? "secondary" : c.severity), d = t(() => {
45
+ let a = D(), s = t(() => !!a.icon), c = e, l = r, u = t(() => c.secondary ? "secondary" : c.severity), d = t(() => {
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
- return M(e, c.class);
47
+ return N(e, c.class);
48
48
  });
49
- return (t, r) => (v(), i("span", z, [k((v(), n(C(A), {
49
+ return (t, r) => (v(), i("span", z, [A((v(), n(w(j), {
50
50
  type: e.type,
51
51
  label: e.label,
52
52
  disabled: e.disabled || e.loading,
@@ -59,7 +59,7 @@ var z = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px]
59
59
  onClick: r[0] ||= (e) => l("click")
60
60
  }, o({ _: 2 }, [s.value ? {
61
61
  name: "icon",
62
- fn: O(() => [x(t.$slots, "icon")]),
62
+ fn: k(() => [x(t.$slots, "icon")]),
63
63
  key: "0"
64
64
  } : void 0]), 1032, [
65
65
  "type",
@@ -72,7 +72,7 @@ var z = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px]
72
72
  "class",
73
73
  "pt"
74
74
  ])), [[
75
- C(j),
75
+ w(M),
76
76
  {
77
77
  value: e.tooltip,
78
78
  class: e.tooltipClass
@@ -191,7 +191,7 @@ var z = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px]
191
191
  function g() {
192
192
  i.loading || (l.value = !1);
193
193
  }
194
- return (t, r) => (v(), n(C(N), {
194
+ return (t, r) => (v(), n(w(P), {
195
195
  visible: l.value,
196
196
  "onUpdate:visible": r[0] ||= (e) => l.value = e,
197
197
  modal: "",
@@ -212,7 +212,7 @@ var z = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px]
212
212
  },
213
213
  onHide: r[1] ||= (e) => o("close")
214
214
  }, {
215
- default: O(() => [a("div", {
215
+ default: k(() => [a("div", {
216
216
  class: "relative flex flex-col items-center gap-4 text-center",
217
217
  style: h(u.value)
218
218
  }, [
@@ -229,8 +229,8 @@ var z = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px]
229
229
  a("div", U, [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, S(e.title), 1)]),
233
- a("div", G, [x(t.$slots, "message", {}, () => [x(t.$slots, "default", {}, () => [s(S(e.message), 1)])])]),
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
234
  a("div", K, [c(B, {
235
235
  label: e.cancelText,
236
236
  secondary: "",
@@ -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"], ee = {
258
+ }), J = { class: "top-date-picker top-solutions-component flex w-full flex-col gap-1" }, Y = ["for"], X = {
259
259
  key: 0,
260
260
  "aria-hidden": "true",
261
261
  class: "text-red-600 dark:text-red-400"
262
- }, X = ["id"], Z = /* @__PURE__ */ l({
262
+ }, Z = ["id"], te = /* @__PURE__ */ l({
263
263
  inheritAttrs: !1,
264
264
  __name: "TopDatePicker",
265
265
  props: {
@@ -318,7 +318,7 @@ var z = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px]
318
318
  "keydown"
319
319
  ],
320
320
  setup(e, { emit: n }) {
321
- let a = e, l = n, f = w(), p = E(), h = T(), g = t(() => f.id === void 0 || f.id === null || f.id === "" ? h : String(f.id)), _ = t(() => `${g.value}-error`), y = t(() => a.invalid || !!a.error), D = t(() => a.manualInput && !a.readonly && !a.disabled && a.selectionMode === "single" && a.dateFormat === "dd/mm/yy"), k = t(() => {
321
+ let a = e, l = n, f = T(), p = D(), h = E(), g = t(() => f.id === void 0 || f.id === null || f.id === "" ? h : String(f.id)), _ = t(() => `${g.value}-error`), y = t(() => a.invalid || !!a.error), S = t(() => a.manualInput && !a.readonly && !a.disabled && a.selectionMode === "single" && a.dateFormat === "dd/mm/yy"), O = t(() => {
322
322
  if (y.value) return !0;
323
323
  let e = f["aria-invalid"];
324
324
  return typeof e == "boolean" || e === "true" || e === "false" || e === "grammar" || e === "spelling" ? e : void 0;
@@ -330,17 +330,17 @@ var z = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px]
330
330
  return r;
331
331
  }), M = t(() => ({ pcInputText: { root: {
332
332
  "aria-describedby": A.value,
333
- "aria-invalid": k.value,
333
+ "aria-invalid": O.value,
334
334
  onChange: (e) => l("change", e),
335
- inputmode: D.value ? "numeric" : void 0,
336
- maxlength: D.value ? 10 : void 0
335
+ inputmode: S.value ? "numeric" : void 0,
336
+ maxlength: S.value ? 10 : void 0
337
337
  } } }));
338
338
  function N(e) {
339
339
  l("update:modelValue", e ?? null);
340
340
  }
341
- function F(e) {
341
+ function P(e) {
342
342
  let t = e.target;
343
- if (D.value && t instanceof HTMLInputElement && !e.isComposing) {
343
+ if (S.value && t instanceof HTMLInputElement && !e.isComposing) {
344
344
  let e = t.value.replace(/\D/g, "").slice(0, 8);
345
345
  t.value = [
346
346
  e.slice(0, 2),
@@ -355,8 +355,8 @@ var z = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px]
355
355
  key: 0,
356
356
  for: g.value,
357
357
  class: "top-field-label text-xs font-bold"
358
- }, [s(S(e.label) + " ", 1), e.required ? (v(), i("span", ee, "*")) : r("", !0)], 8, Y)) : r("", !0),
359
- c(C(P), d(j.value, {
358
+ }, [s(C(e.label) + " ", 1), e.required ? (v(), i("span", X, "*")) : r("", !0)], 8, Y)) : r("", !0),
359
+ c(w(F), d(j.value, {
360
360
  "model-value": e.modelValue,
361
361
  "input-id": g.value,
362
362
  placeholder: e.placeholder,
@@ -379,7 +379,7 @@ var z = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px]
379
379
  "panel-class": "top-date-picker-panel top-solutions-component",
380
380
  fluid: "",
381
381
  "onUpdate:modelValue": N,
382
- onInput: F,
382
+ onInput: P,
383
383
  onDateSelect: n[0] ||= (e) => l("date-select", e),
384
384
  onShow: n[1] ||= (e) => l("show"),
385
385
  onHide: n[2] ||= (e) => l("hide"),
@@ -390,9 +390,9 @@ var z = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px]
390
390
  onFocus: n[7] ||= (e) => l("focus", e),
391
391
  onBlur: n[8] ||= (e) => l("blur", e),
392
392
  onKeydown: n[9] ||= (e) => l("keydown", e)
393
- }), o({ _: 2 }, [b(C(p), (e, n) => ({
393
+ }), o({ _: 2 }, [b(w(p), (e, n) => ({
394
394
  name: n,
395
- fn: O((e) => [x(t.$slots, n, m(u(e ?? {})))])
395
+ fn: k((e) => [x(t.$slots, n, m(u(e ?? {})))])
396
396
  }))]), 1040, [
397
397
  "model-value",
398
398
  "input-id",
@@ -417,27 +417,125 @@ 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
- }, S(e.error), 9, X)) : r("", !0)
420
+ }, C(e.error), 9, Z)) : r("", !0)
421
421
  ]));
422
422
  }
423
- }), te = { class: "top-file-upload top-solutions-component flex w-full flex-col gap-1" }, ne = ["for"], re = {
423
+ }), ne = [["path", {
424
+ 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",
425
+ stroke: "currentColor",
426
+ strokeLinecap: "round",
427
+ strokeLinejoin: "round",
428
+ strokeWidth: "1.5",
429
+ key: "0"
430
+ }], ["path", {
431
+ d: "M12 13L12 21M12 13C11.2998 13 9.99153 14.9943 9.5 15.5M12 13C12.7002 13 14.0085 14.9943 14.5 15.5",
432
+ stroke: "currentColor",
433
+ strokeLinecap: "round",
434
+ strokeLinejoin: "round",
435
+ strokeWidth: "1.5",
436
+ key: "1"
437
+ }]], Q = l({
438
+ name: "HugeiconsIcon",
439
+ inheritAttrs: !1,
440
+ props: {
441
+ icon: {
442
+ type: Array,
443
+ required: !0
444
+ },
445
+ size: {
446
+ type: [Number, String],
447
+ default: 24,
448
+ validator(e) {
449
+ let t = typeof e == "string" ? parseInt(e, 10) : e;
450
+ return !isNaN(t) && t > 0;
451
+ }
452
+ },
453
+ strokeWidth: {
454
+ type: Number,
455
+ default: void 0
456
+ },
457
+ absoluteStrokeWidth: {
458
+ type: Boolean,
459
+ default: !1
460
+ },
461
+ altIcon: {
462
+ type: Array,
463
+ default: void 0
464
+ },
465
+ showAlt: {
466
+ type: Boolean,
467
+ default: !1
468
+ },
469
+ color: {
470
+ type: String,
471
+ default: "currentColor"
472
+ }
473
+ },
474
+ setup(e) {
475
+ let n = t(() => {
476
+ let t = typeof e.size == "string" ? parseInt(e.size, 10) : e.size;
477
+ return !isNaN(t) && t > 0 ? t : 24;
478
+ });
479
+ return {
480
+ computedSize: n,
481
+ calculatedStrokeWidth: t(() => {
482
+ if (e.strokeWidth !== void 0) return e.absoluteStrokeWidth ? e.strokeWidth * 24 / n.value : e.strokeWidth;
483
+ }),
484
+ transformAttrs: (e, t) => {
485
+ let n = {};
486
+ for (let [t, r] of Object.entries(e)) {
487
+ let e = t.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
488
+ n[e] = r;
489
+ }
490
+ return t !== void 0 && (n["stroke-width"] = t, n.stroke = "currentColor"), n;
491
+ },
492
+ currentIcon: t(() => e.altIcon && e.showAlt ? e.altIcon : e.icon)
493
+ };
494
+ }
495
+ }), $ = (e, t) => {
496
+ let n = e.__vccOpts || e;
497
+ for (let [e, r] of t) n[e] = r;
498
+ return n;
499
+ }, re = [
500
+ "width",
501
+ "height",
502
+ "color"
503
+ ];
504
+ function ie(t, r, a, o, s, c) {
505
+ return v(), i("svg", d({
506
+ width: t.computedSize,
507
+ height: t.computedSize,
508
+ viewBox: "0 0 24 24",
509
+ xmlns: "http://www.w3.org/2000/svg",
510
+ fill: "none",
511
+ color: t.color
512
+ }, t.$attrs), [(v(!0), i(e, null, b(t.currentIcon, (e, r) => (v(), n(S(e[0]), d({
513
+ key: r,
514
+ ref_for: !0
515
+ }, t.transformAttrs(e[1], t.calculatedStrokeWidth)), null, 16))), 128))], 16, re);
516
+ }
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 = {
424
518
  key: 0,
425
519
  "aria-hidden": "true",
426
520
  class: "text-red-600 dark:text-red-400"
427
- }, ie = { class: "flex min-h-[130px] w-full flex-col items-center justify-center gap-3" }, ae = {
521
+ }, le = { class: "flex min-h-[130px] w-full flex-col items-center justify-center gap-3" }, ue = {
428
522
  class: "top-file-upload__empty-icon",
429
523
  "aria-hidden": "true"
430
- }, oe = { class: "m-0 text-center text-xs text-secondary-600 dark:text-zinc-300" }, se = {
524
+ }, de = {
525
+ key: 0,
526
+ "aria-label": "Carregando...",
527
+ 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 = {
431
529
  key: 1,
432
530
  class: "flex w-full flex-col gap-2"
433
- }, ce = ["src", "alt"], le = {
531
+ }, me = ["src", "alt"], he = {
434
532
  key: 1,
435
533
  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"
436
- }, ue = { class: "min-w-0 flex-1" }, de = { class: "m-0 truncate text-xs font-bold text-secondary-900 dark:text-zinc-100" }, fe = { class: "text-[11px] text-secondary-500 dark:text-zinc-400" }, pe = [
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 = [
437
535
  "aria-label",
438
536
  "disabled",
439
537
  "onClick"
440
- ], me = ["id"], he = /* @__PURE__ */ l({
538
+ ], be = ["id"], xe = /* @__PURE__ */ l({
441
539
  inheritAttrs: !1,
442
540
  __name: "TopFileUpload",
443
541
  props: {
@@ -476,40 +574,40 @@ var z = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px]
476
574
  "error"
477
575
  ],
478
576
  setup(o, { expose: l, emit: u }) {
479
- let d = o, m = u, h = w(), E = T(), k = y(null), A = y(V(d.modelValue)), j = y([]), M = /* @__PURE__ */ new Map(), N = t(() => h.id === void 0 || h.id === null || h.id === "" ? E : String(h.id)), P = t(() => `${N.value}-error`), I = t(() => d.error || j.value[0]?.message || ""), L = t(() => d.disabled || d.loading), R = t(() => {
480
- let e = h["aria-describedby"], t = [typeof e == "string" ? e : "", I.value ? P.value : ""].filter(Boolean);
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(() => {
578
+ let e = m["aria-describedby"], t = [typeof e == "string" ? e : "", P.value ? N.value : ""].filter(Boolean);
481
579
  return t.length ? t.join(" ") : void 0;
482
- }), z = t(() => ({
483
- ...h,
484
- id: N.value,
580
+ }), ee = t(() => ({
581
+ ...m,
582
+ id: M.value,
485
583
  required: d.required,
486
- "aria-invalid": I.value ? !0 : h["aria-invalid"],
487
- "aria-describedby": R.value,
488
- "aria-label": h["aria-label"] || (d.label ? void 0 : d.selectLabel)
584
+ "aria-invalid": P.value ? !0 : m["aria-invalid"],
585
+ "aria-describedby": L.value,
586
+ "aria-label": m["aria-label"] || (d.label ? void 0 : d.selectLabel)
489
587
  }));
490
- function V(e) {
588
+ function R(e) {
491
589
  return e ? Array.isArray(e) ? d.multiple ? [...e] : e.slice(0, 1) : [e] : [];
492
590
  }
493
- function H(e, t) {
591
+ function z(e, t) {
494
592
  return e.name === t.name && e.type === t.type && e.size === t.size;
495
593
  }
496
- function U(e) {
594
+ function V(e) {
497
595
  return !d.accept.trim() || d.accept.split(",").some((t) => {
498
596
  let n = t.trim().toLowerCase(), r = e.type.toLowerCase();
499
597
  return n ? n.startsWith(".") ? e.name.toLowerCase().endsWith(n) : n.endsWith("/*") ? r.startsWith(n.slice(0, -1)) : r === n : !1;
500
598
  });
501
599
  }
502
- function W(e) {
600
+ function H(e) {
503
601
  return e < 1024 ? `${e} B` : e < 1048576 ? `${(e / 1024).toFixed(1)} KB` : `${(e / 1048576).toFixed(2)} MB`;
504
602
  }
505
- function G(e) {
603
+ function U(e) {
506
604
  let t = [];
507
605
  return {
508
606
  errors: t,
509
- validFiles: e.filter((e) => U(e) ? d.maxFileSize && e.size > d.maxFileSize ? (t.push({
607
+ validFiles: e.filter((e) => V(e) ? d.maxFileSize && e.size > d.maxFileSize ? (t.push({
510
608
  code: "file-size",
511
609
  file: e,
512
- message: `O arquivo "${e.name}" excede o tamanho máximo de ${W(d.maxFileSize)}.`
610
+ message: `O arquivo "${e.name}" excede o tamanho máximo de ${H(d.maxFileSize)}.`
513
611
  }), !1) : !0 : (t.push({
514
612
  code: "file-type",
515
613
  file: e,
@@ -517,23 +615,23 @@ var z = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px]
517
615
  }), !1))
518
616
  };
519
617
  }
520
- function K(e) {
618
+ function W(e) {
521
619
  let t = e.originalEvent;
522
620
  return Array.from(t.dataTransfer?.files ?? t.target?.files ?? []);
523
621
  }
524
- function q(e) {
622
+ function G(e) {
525
623
  return d.multiple ? [...e] : e[0] ?? null;
526
624
  }
527
- function J() {
528
- k.value && (k.value.files = [...A.value]);
625
+ function K() {
626
+ S.value && (S.value.files = [...D.value]);
529
627
  }
530
- function Y(e, t) {
531
- A.value = e, j.value = [], $(), f(J);
532
- let n = q(e);
533
- m("update:modelValue", n), m("change", n), t === "select" && m("select", [...e]), t === "clear" && m("clear");
628
+ function q(e, t) {
629
+ D.value = e, A.value = [], $(), f(K);
630
+ let n = G(e);
631
+ p("update:modelValue", n), p("change", n), t === "select" && p("select", [...e]), t === "clear" && p("clear");
534
632
  }
535
- function ee(e) {
536
- let { errors: t, validFiles: n } = G(K(e)), r = d.multiple ? [...A.value, ...n.filter((e) => !A.value.some((t) => H(t, e)))] : n.slice(-1);
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);
537
635
  if (d.maxFiles && r.length > d.maxFiles) {
538
636
  let e = r.slice(d.maxFiles);
539
637
  t.push(...e.map((e) => ({
@@ -542,80 +640,80 @@ var z = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px]
542
640
  message: `O limite máximo é de ${d.maxFiles} arquivo(s).`
543
641
  }))), r = r.slice(0, d.maxFiles);
544
642
  }
545
- if (t.length ? (j.value = t, m("error", t)) : j.value = [], J(), n.length && !X(r, A.value)) {
546
- A.value = r, $(), f(J);
547
- let e = q(r);
548
- m("update:modelValue", e), m("change", e), m("select", [...r]);
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);
646
+ p("update:modelValue", e), p("change", e), p("select", [...r]);
549
647
  }
550
648
  }
551
- function X(e, t) {
552
- return e.length === t.length && e.every((e, n) => H(e, t[n]));
649
+ function Y(e, t) {
650
+ return e.length === t.length && e.every((e, n) => z(e, t[n]));
553
651
  }
554
- function Z() {
555
- L.value || k.value?.choose();
652
+ function X() {
653
+ F.value || S.value?.choose();
556
654
  }
557
- function he(e, t) {
558
- if (L.value) return;
559
- let n = A.value[t];
655
+ function Z(e, t) {
656
+ if (F.value) return;
657
+ let n = D.value[t];
560
658
  if (!n) return;
561
659
  e(t);
562
- let r = A.value.filter((e, n) => n !== t);
563
- Y(r, "remove"), m("remove", n, t), r.length || m("clear");
660
+ let r = D.value.filter((e, n) => n !== t);
661
+ q(r, "remove"), p("remove", n, t), r.length || p("clear");
564
662
  }
565
- function ge() {
566
- L.value || !A.value.length || Y([], "clear");
663
+ function te() {
664
+ F.value || !D.value.length || q([], "clear");
567
665
  }
568
666
  function Q(e) {
569
667
  if (!e.type.startsWith("image/") || typeof URL.createObjectURL != "function") return "";
570
- let t = M.get(e);
668
+ let t = j.get(e);
571
669
  if (t) return t;
572
670
  let n = URL.createObjectURL(e);
573
- return M.set(e, n), n;
671
+ return j.set(e, n), n;
574
672
  }
575
673
  function $() {
576
- for (let [e, t] of M) A.value.includes(e) || (URL.revokeObjectURL(t), M.delete(e));
674
+ for (let [e, t] of j) D.value.includes(e) || (URL.revokeObjectURL(t), j.delete(e));
577
675
  }
578
- return D(() => d.modelValue, (e) => {
579
- let t = V(e);
580
- X(t, A.value) || (A.value = t, j.value = [], $(), f(J));
581
- }), D(() => d.multiple, () => {
582
- let e = V(d.modelValue);
583
- A.value = e, $(), f(J);
584
- }), _(J), g(() => {
585
- for (let e of M.values()) URL.revokeObjectURL(e);
586
- M.clear();
676
+ return O(() => d.modelValue, (e) => {
677
+ let t = R(e);
678
+ Y(t, D.value) || (D.value = t, A.value = [], $(), f(K));
679
+ }), O(() => d.multiple, () => {
680
+ let e = R(d.modelValue);
681
+ D.value = e, $(), f(K);
682
+ }), _(K), g(() => {
683
+ for (let e of j.values()) URL.revokeObjectURL(e);
684
+ j.clear();
587
685
  }), l({
588
- choose: Z,
589
- clear: ge
590
- }), (t, l) => (v(), i("div", te, [
686
+ choose: X,
687
+ clear: te
688
+ }), (t, l) => (v(), i("div", oe, [
591
689
  o.label ? (v(), i("label", {
592
690
  key: 0,
593
- for: N.value,
691
+ for: M.value,
594
692
  class: "text-xs font-bold text-secondary-800 dark:text-zinc-200"
595
- }, [s(S(o.label) + " ", 1), o.required ? (v(), i("span", re, "*")) : r("", !0)], 8, ne)) : r("", !0),
596
- c(C(F), {
693
+ }, [s(C(o.label) + " ", 1), o.required ? (v(), i("span", ce, "*")) : r("", !0)], 8, se)) : r("", !0),
694
+ c(w(I), {
597
695
  ref_key: "fileUploadRef",
598
- ref: k,
696
+ ref: S,
599
697
  mode: "advanced",
600
698
  accept: o.accept || void 0,
601
699
  multiple: o.multiple,
602
- disabled: L.value,
700
+ disabled: F.value,
603
701
  "custom-upload": !0,
604
702
  "show-upload-button": !1,
605
703
  "show-cancel-button": !1,
606
704
  pt: {
607
705
  root: { class: "top-file-upload__root w-full" },
608
706
  header: { class: "hidden" },
609
- input: z.value,
707
+ input: ee.value,
610
708
  content: { class: [
611
709
  "top-file-upload__dropzone min-h-[224px] rounded-[10px] border p-4 transition-colors",
612
- I.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",
613
- L.value ? "cursor-not-allowed opacity-60" : ""
710
+ 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
+ F.value ? "cursor-not-allowed opacity-60" : ""
614
712
  ].join(" ") }
615
713
  },
616
- onSelect: ee
714
+ onSelect: J
617
715
  }, {
618
- content: O(({ removeFileCallback: s }) => [a("div", ie, [A.value.length ? (v(), i("div", se, [(v(!0), i(e, null, b(A.value, (e, n) => (v(), i("div", {
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", {
619
717
  key: `${e.name}-${e.size}-${e.lastModified}`,
620
718
  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"
621
719
  }, [
@@ -628,22 +726,22 @@ var z = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px]
628
726
  src: Q(e),
629
727
  alt: `Pré-visualização de ${e.name}`,
630
728
  class: "size-12 shrink-0 rounded-lg object-cover"
631
- }, null, 8, ce)) : (v(), i("span", le, [...l[0] ||= [a("i", {
729
+ }, null, 8, me)) : (v(), i("span", he, [...l[0] ||= [a("i", {
632
730
  class: "pi pi-file text-2xl",
633
731
  "aria-hidden": "true"
634
732
  }, null, -1)]]))]),
635
- a("div", ue, [a("p", de, S(e.name), 1), a("span", fe, S(W(e.size)), 1)]),
733
+ a("div", ge, [a("p", _e, C(e.name), 1), a("span", ve, C(H(e.size)), 1)]),
636
734
  a("button", {
637
735
  type: "button",
638
736
  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",
639
737
  "aria-label": `${o.removeLabel}: ${e.name}`,
640
- disabled: L.value,
641
- onClick: (e) => he(s, n)
738
+ disabled: F.value,
739
+ onClick: (e) => Z(s, n)
642
740
  }, [...l[1] ||= [a("i", {
643
741
  class: "pi pi-times",
644
742
  "aria-hidden": "true"
645
- }, null, -1)]], 8, pe)
646
- ]))), 128)), o.multiple && (!o.maxFiles || A.value.length < o.maxFiles) ? (v(), n(B, {
743
+ }, null, -1)]], 8, ye)
744
+ ]))), 128)), o.multiple && (!o.maxFiles || D.value.length < o.maxFiles) ? (v(), n(B, {
647
745
  key: 0,
648
746
  label: o.selectLabel,
649
747
  icon: "pi pi-plus-circle",
@@ -651,24 +749,30 @@ var z = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px]
651
749
  disabled: o.disabled,
652
750
  loading: o.loading,
653
751
  class: "mt-1 px-3 py-2 text-xs",
654
- onClick: Z
752
+ onClick: X
655
753
  }, null, 8, [
656
754
  "label",
657
755
  "disabled",
658
756
  "loading"
659
757
  ])) : r("", !0)])) : x(t.$slots, "empty", {
660
- choose: Z,
661
- disabled: L.value
758
+ choose: X,
759
+ disabled: F.value
662
760
  }, () => [
663
- a("span", ae, [a("i", { class: p([o.loading ? "pi pi-spin pi-spinner" : "pi pi-cloud-upload", "text-5xl"]) }, null, 2)]),
664
- a("p", oe, S(o.placeholder), 1),
761
+ a("span", ue, [o.loading ? (v(), i("i", de)) : (v(), n(w(ae), {
762
+ key: 1,
763
+ icon: w(ne),
764
+ size: 72,
765
+ "stroke-width": 1.5,
766
+ class: "text-primary-800 dark:text-primary-300"
767
+ }, null, 8, ["icon"]))]),
768
+ a("p", fe, C(o.placeholder), 1),
665
769
  c(B, {
666
770
  label: o.selectLabel,
667
771
  icon: "pi pi-plus-circle",
668
772
  disabled: o.disabled,
669
773
  loading: o.loading,
670
774
  class: "px-3 py-2 text-xs",
671
- onClick: Z
775
+ onClick: X
672
776
  }, null, 8, [
673
777
  "label",
674
778
  "disabled",
@@ -682,19 +786,19 @@ var z = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px]
682
786
  "disabled",
683
787
  "pt"
684
788
  ]),
685
- I.value ? (v(), i("span", {
789
+ P.value ? (v(), i("span", {
686
790
  key: 1,
687
- id: P.value,
791
+ id: N.value,
688
792
  class: "text-[11px] text-red-600 dark:text-red-400",
689
793
  role: "alert"
690
- }, S(I.value), 9, me)) : r("", !0)
794
+ }, C(P.value), 9, be)) : r("", !0)
691
795
  ]));
692
796
  }
693
- }), ge = { class: "top-input-text top-solutions-component flex w-full flex-col gap-1" }, Q = ["for"], $ = {
797
+ }), Se = { class: "top-input-text top-solutions-component flex w-full flex-col gap-1" }, Ce = ["for"], we = {
694
798
  key: 0,
695
799
  "aria-hidden": "true",
696
800
  class: "text-red-600 dark:text-red-400"
697
- }, _e = ["id"], ve = /* @__PURE__ */ l({
801
+ }, Te = ["id"], Ee = /* @__PURE__ */ l({
698
802
  inheritAttrs: !1,
699
803
  __name: "TopInputText",
700
804
  props: {
@@ -717,7 +821,7 @@ var z = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px]
717
821
  },
718
822
  emits: ["update:modelValue"],
719
823
  setup(e, { emit: n }) {
720
- let a = e, o = n, l = w(), u = T(), f = t(() => l.id === void 0 || l.id === null || l.id === "" ? u : String(l.id)), p = t(() => `${f.value}-error`), m = t(() => {
824
+ let a = e, o = n, l = T(), u = E(), f = t(() => l.id === void 0 || l.id === null || l.id === "" ? u : String(l.id)), p = t(() => `${f.value}-error`), m = t(() => {
721
825
  if (a.error) return !0;
722
826
  let e = l["aria-invalid"];
723
827
  return typeof e == "boolean" || e === "true" || e === "false" || e === "grammar" || e === "spelling" ? e : void 0;
@@ -728,13 +832,13 @@ var z = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px]
728
832
  function g(e) {
729
833
  o("update:modelValue", e ?? "");
730
834
  }
731
- return (t, n) => (v(), i("div", ge, [
835
+ return (t, n) => (v(), i("div", Se, [
732
836
  e.label ? (v(), i("label", {
733
837
  key: 0,
734
838
  for: f.value,
735
839
  class: "top-field-label text-xs font-bold"
736
- }, [s(S(e.label) + " ", 1), e.required ? (v(), i("span", $, "*")) : r("", !0)], 8, Q)) : r("", !0),
737
- c(C(I), d(t.$attrs, {
840
+ }, [s(C(e.label) + " ", 1), e.required ? (v(), i("span", we, "*")) : r("", !0)], 8, Ce)) : r("", !0),
841
+ c(w(L), d(t.$attrs, {
738
842
  id: f.value,
739
843
  "model-value": e.modelValue,
740
844
  type: "text",
@@ -764,44 +868,44 @@ var z = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px]
764
868
  id: p.value,
765
869
  class: "text-[11px] text-red-600 dark:text-red-400",
766
870
  role: "alert"
767
- }, S(e.error), 9, _e)) : r("", !0)
871
+ }, C(e.error), 9, Te)) : r("", !0)
768
872
  ]));
769
873
  }
770
- }), ye = { class: "top-field-icon pointer-events-none absolute left-3 top-1/2 z-10 -translate-y-1/2" }, be = {
874
+ }), De = { class: "top-field-icon pointer-events-none absolute left-3 top-1/2 z-10 -translate-y-1/2" }, Oe = {
771
875
  key: 0,
772
876
  class: "pi pi-spin pi-spinner"
773
- }, xe = {
877
+ }, ke = {
774
878
  key: 1,
775
879
  class: "pi pi-search"
776
- }, Se = {
880
+ }, Ae = {
777
881
  key: 1,
778
882
  class: "flex items-center gap-1 !text-sm"
779
- }, Ce = { class: "flex items-center gap-2 rounded-[9px] bg-primary-500 px-2 py-1 text-white" }, we = ["onClick"], Te = { class: "line-clamp-1 max-w-[300px] overflow-hidden text-ellipsis" }, Ee = {
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 = {
780
884
  key: 1,
781
885
  class: "flex min-h-[100px] flex-col items-center justify-center gap-2 py-2"
782
- }, De = {
886
+ }, Fe = {
783
887
  key: 0,
784
888
  class: "text-xs font-medium text-primary-600"
785
- }, Oe = {
889
+ }, Ie = {
786
890
  key: 2,
787
891
  class: "text-xs text-secondary-500"
788
- }, ke = { key: 1 }, Ae = {
892
+ }, Le = { key: 1 }, Re = {
789
893
  key: 1,
790
894
  class: "flex items-center gap-2 font-semibold"
791
- }, je = {
895
+ }, ze = {
792
896
  key: 1,
793
897
  class: "flex w-full min-w-0 items-start gap-2 overflow-hidden px-2 py-3 text-sm",
794
898
  style: { "white-space": "normal" }
795
- }, Me = ["title"], Ne = {
899
+ }, Be = ["title"], Ve = {
796
900
  key: 0,
797
901
  class: "top-select-option-prefix whitespace-nowrap font-bold text-primary-800 dark:text-primary-100"
798
- }, Pe = {
902
+ }, He = {
799
903
  key: 0,
800
904
  class: "rounded-sm bg-primary-200 p-0 font-bold text-black dark:bg-cyan-700 dark:text-white"
801
- }, Fe = {
905
+ }, Ue = {
802
906
  key: 0,
803
907
  class: "rounded-sm bg-primary-200 p-0 font-bold text-black dark:bg-cyan-700 dark:text-white"
804
- }, Ie = /* @__PURE__ */ l({
908
+ }, We = /* @__PURE__ */ l({
805
909
  __name: "TopSelect",
806
910
  props: {
807
911
  modelValue: { default: null },
@@ -870,24 +974,24 @@ var z = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px]
870
974
  "change"
871
975
  ],
872
976
  setup(n, { expose: l, emit: h }) {
873
- let w = n, T = h, A = E(), M = L, N = y(""), P = y(!1), F = y(null), I = `top-select-${Math.random().toString(36).slice(2)}`, R = null, z = t({
874
- get: () => w.modelValue,
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({
978
+ get: () => S.modelValue,
875
979
  set: (e) => T("update:modelValue", e)
876
980
  });
877
- function B(e, t) {
981
+ function z(e, t) {
878
982
  return e == null ? "" : String(typeof e == "object" ? e[t] ?? "" : e);
879
983
  }
880
- function V(e) {
881
- return e == null ? "" : typeof w.optionLabel == "function" ? w.optionLabel(e) : B(e, w.optionLabel);
984
+ function B(e) {
985
+ return e == null ? "" : typeof S.optionLabel == "function" ? S.optionLabel(e) : z(e, S.optionLabel);
882
986
  }
883
- function H(e) {
884
- return w.optionPrefix ? B(e, w.optionPrefix) : "";
987
+ function V(e) {
988
+ return S.optionPrefix ? z(e, S.optionPrefix) : "";
885
989
  }
886
- function U(e, t = w.showSelectedPrefix) {
887
- let n = V(e), r = H(e);
990
+ function H(e, t = S.showSelectedPrefix) {
991
+ let n = B(e), r = V(e);
888
992
  return t && r ? `${r} - ${n}` : n;
889
993
  }
890
- function W(e) {
994
+ function U(e) {
891
995
  let t = N.value;
892
996
  if (!t) return [{
893
997
  text: e,
@@ -899,46 +1003,46 @@ var z = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px]
899
1003
  highlighted: e.toLowerCase() === t.toLowerCase()
900
1004
  }));
901
1005
  }
902
- function G() {
1006
+ function W() {
903
1007
  F.value?.hide?.();
904
1008
  }
905
- function K() {
1009
+ function G() {
906
1010
  typeof window > "u" || window.dispatchEvent(new CustomEvent("top-select:close-others", { detail: { instanceId: I } }));
907
1011
  }
908
- function q(e) {
909
- e.detail?.instanceId !== I && G();
1012
+ function K(e) {
1013
+ e.detail?.instanceId !== I && W();
910
1014
  }
911
- function J() {
912
- if (w.disabled || R) {
913
- G();
1015
+ function q() {
1016
+ if (S.disabled || L) {
1017
+ W();
914
1018
  return;
915
1019
  }
916
- P.value = !0, K();
1020
+ P.value = !0, G();
917
1021
  }
918
- function Y() {
919
- w.closeOnSelect && (P.value = !1, G(), f(G), R && clearTimeout(R), R = setTimeout(() => {
920
- G(), R = null;
1022
+ function J() {
1023
+ S.closeOnSelect && (P.value = !1, W(), f(W), L && clearTimeout(L), L = setTimeout(() => {
1024
+ W(), L = null;
921
1025
  }, 200));
922
1026
  }
923
- return l({ hideDropdown: G }), _(() => window.addEventListener("top-select:close-others", q)), g(() => {
924
- window.removeEventListener("top-select:close-others", q), R && clearTimeout(R);
925
- }), D(() => w.disabled, (e) => {
926
- e && (P.value = !1, G());
927
- }), D(() => w.options, () => {
928
- P.value || G();
1027
+ return l({ hideDropdown: W }), _(() => window.addEventListener("top-select:close-others", K)), g(() => {
1028
+ window.removeEventListener("top-select:close-others", K), L && clearTimeout(L);
1029
+ }), O(() => S.disabled, (e) => {
1030
+ e && (P.value = !1, W());
1031
+ }), O(() => S.options, () => {
1032
+ P.value || W();
929
1033
  }), (t, l) => (v(), i("div", {
930
1034
  class: p(["top-select top-solutions-component relative w-full", { "pointer-events-none": n.disabled }]),
931
- onFocusin: J
932
- }, [a("span", ye, [x(t.$slots, "icon", { loading: n.loading }, () => [n.loading ? (v(), i("i", be)) : (v(), i("i", xe))])]), c(C(M), {
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), {
933
1037
  ref_key: "autocompleteRef",
934
1038
  ref: F,
935
- modelValue: z.value,
936
- "onUpdate:modelValue": l[0] ||= (e) => z.value = e,
1039
+ modelValue: R.value,
1040
+ "onUpdate:modelValue": l[0] ||= (e) => R.value = e,
937
1041
  "option-group-label": n.optionGroupLabel ?? void 0,
938
1042
  "option-group-children": n.optionGroupChildren ?? void 0,
939
1043
  suggestions: n.options,
940
1044
  "data-key": n.optionKey,
941
- "option-label": (e) => U(e),
1045
+ "option-label": (e) => H(e),
942
1046
  placeholder: n.placeholder,
943
1047
  multiple: n.multiple,
944
1048
  "min-length": n.minQueryLength,
@@ -985,52 +1089,52 @@ var z = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px]
985
1089
  N.value = "", T("clear");
986
1090
  },
987
1091
  onItemSelect: l[2] ||= (e) => {
988
- N.value = "", T("select", e), Y();
1092
+ N.value = "", T("select", e), J();
989
1093
  },
990
1094
  onComplete: l[3] ||= (e) => {
991
1095
  if (n.disabled) {
992
- G();
1096
+ W();
993
1097
  return;
994
1098
  }
995
- N.value = e.query ?? "", K(), T("search", {
1099
+ N.value = e.query ?? "", G(), T("search", {
996
1100
  ...e,
997
1101
  query: N.value
998
1102
  });
999
1103
  },
1000
1104
  onChange: l[4] ||= (e) => T("change", e)
1001
1105
  }, o({
1002
- chip: O((e) => [C(A).chip ? x(t.$slots, "chip", m(u(e)), void 0, void 0, 0) : (v(), i("div", Se, [a("div", Ce, [a("i", {
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", {
1003
1107
  class: "pi pi-times-circle shrink-0 cursor-pointer rounded-full hover:bg-primary-800",
1004
1108
  onClick: (t) => e.removeCallback(t)
1005
- }, null, 8, we), k((v(), i("span", Te, [s(S(U(e.value)), 1)])), [[
1006
- C(j),
1007
- U(e.value),
1109
+ }, null, 8, Me), A((v(), i("span", Ne, [s(C(H(e.value)), 1)])), [[
1110
+ w(M),
1111
+ H(e.value),
1008
1112
  void 0,
1009
1113
  { top: !0 }
1010
1114
  ]])])]))]),
1011
- empty: O(() => [C(A).empty ? x(t.$slots, "empty", {}, void 0, void 0, 0) : n.loading ? (v(), i("div", Ee, [l[5] ||= a("span", { class: "pi pi-spin pi-spinner text-2xl text-primary-600" }, null, -1), n.showLoadingMessage ? (v(), i("span", De, S(n.loadingMessage), 1)) : r("", !0)])) : (v(), i("span", Oe, S(n.emptyMessage), 1))]),
1012
- "selected-item": O((e) => [C(A)["selected-item"] ? x(t.$slots, "selected-item", m(u(e)), void 0, void 0, 0) : e.item ? (v(), i("span", ke, S(U(e.item)), 1)) : r("", !0)]),
1013
- optiongroup: O((e) => [C(A)["option-group"] ? x(t.$slots, "option-group", m(u(e)), void 0, void 0, 0) : (v(), i("div", Ae, [e.option.icon ? (v(), i("i", {
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", {
1014
1118
  key: 0,
1015
1119
  class: p(e.option.icon)
1016
- }, null, 2)) : r("", !0), a("span", null, S(e.option[n.optionGroupLabel ?? "label"]), 1)]))]),
1017
- option: O((o) => [C(A).option ? x(t.$slots, "option", d(o, {
1018
- label: V(o.option),
1019
- prefix: H(o.option),
1120
+ }, null, 2)) : r("", !0), a("span", null, C(e.option[n.optionGroupLabel ?? "label"]), 1)]))]),
1121
+ option: k((o) => [w(E).option ? x(t.$slots, "option", d(o, {
1122
+ label: B(o.option),
1123
+ prefix: V(o.option),
1020
1124
  query: N.value
1021
- }), void 0, void 0, 0) : k((v(), i("div", je, [a("span", {
1125
+ }), void 0, void 0, 0) : A((v(), i("div", ze, [a("span", {
1022
1126
  class: "top-select-option-label line-clamp-2 min-w-0 flex-1 text-secondary-700 dark:text-zinc-200",
1023
- title: V(o.option)
1024
- }, [n.showOptionPrefix && H(o.option) ? (v(), i("span", Ne, [(v(!0), i(e, null, b(W(H(o.option)), (t, n) => (v(), i(e, { key: n }, [t.highlighted ? (v(), i("mark", Pe, S(t.text), 1)) : (v(), i(e, { key: 1 }, [s(S(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", Fe, S(t.text), 1)) : (v(), i(e, { key: 1 }, [s(S(t.text), 1)], 64))], 64))), 128))], 8, Me)])), [[
1025
- C(j),
1026
- n.showTooltip ? V(o.option) : null,
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)])), [[
1129
+ w(M),
1130
+ n.showTooltip ? B(o.option) : null,
1027
1131
  void 0,
1028
1132
  { top: !0 }
1029
1133
  ]])]),
1030
1134
  _: 2
1031
- }, [C(A).footer ? {
1135
+ }, [w(E).footer ? {
1032
1136
  name: "footer",
1033
- fn: O((e) => [x(t.$slots, "footer", m(u(e)))]),
1137
+ fn: k((e) => [x(t.$slots, "footer", m(u(e)))]),
1034
1138
  key: "0"
1035
1139
  } : void 0]), 1032, [
1036
1140
  "modelValue",
@@ -1050,10 +1154,10 @@ var z = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px]
1050
1154
  "pt"
1051
1155
  ])], 34));
1052
1156
  }
1053
- }), Le = { class: "top-toast__content" }, Re = { class: "top-toast__detail" }, ze = ["onClick"], Be = {
1157
+ }), Ge = { class: "top-toast__content" }, Ke = { class: "top-toast__detail" }, qe = ["onClick"], Je = {
1054
1158
  key: 0,
1055
1159
  class: "top-toast__footer"
1056
- }, Ve = /* @__PURE__ */ l({
1160
+ }, Ye = /* @__PURE__ */ l({
1057
1161
  __name: "TopToast",
1058
1162
  props: { baseZIndex: { default: 3e4 } },
1059
1163
  setup(e) {
@@ -1075,13 +1179,13 @@ var z = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px]
1075
1179
  function d(e, t) {
1076
1180
  return `top-toast__${t}--${e.severity ?? "info"}`;
1077
1181
  }
1078
- return (f, m) => (v(), n(C(R), {
1182
+ return (f, m) => (v(), n(w(R), {
1079
1183
  position: "top-right",
1080
1184
  "base-z-index": e.baseZIndex
1081
1185
  }, {
1082
- message: O((e) => [a("div", Le, [
1083
- a("div", { class: p(["top-toast__summary", d(e.message, "summary")]) }, S(e.message.summary), 3),
1084
- a("div", Re, S(e.message.detail), 1),
1186
+ message: k((e) => [a("div", Ge, [
1187
+ 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),
1085
1189
  u(e.message) ? x(f.$slots, "action", {
1086
1190
  action: o(e.message),
1087
1191
  message: e.message,
@@ -1095,17 +1199,17 @@ var z = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px]
1095
1199
  key: 0,
1096
1200
  class: p(o(e.message)?.icon),
1097
1201
  "aria-hidden": "true"
1098
- }, null, 2)) : r("", !0), s(" " + S(o(e.message)?.label), 1)], 10, ze)) : r("", !0)], void 0, 0) : r("", !0),
1202
+ }, null, 2)) : r("", !0), s(" " + C(o(e.message)?.label), 1)], 10, qe)) : r("", !0)], void 0, 0) : r("", !0),
1099
1203
  l(e.message) ? x(f.$slots, "footer", {
1100
1204
  message: e.message,
1101
1205
  footer: t(e.message)
1102
- }, () => [t(e.message) === void 0 ? r("", !0) : (v(), i("div", Be, S(t(e.message)), 1))], void 0, 1) : r("", !0)
1206
+ }, () => [t(e.message) === void 0 ? r("", !0) : (v(), i("div", Je, C(t(e.message)), 1))], void 0, 1) : r("", !0)
1103
1207
  ])]),
1104
1208
  _: 3
1105
1209
  }, 8, ["base-z-index"]));
1106
1210
  }
1107
1211
  });
1108
1212
  //#endregion
1109
- export { Z as a, B as c, he as i, Ie as n, q as o, ve as r, V as s, Ve as t };
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 };
1110
1214
 
1111
- //# sourceMappingURL=TopToast-B8ruKpjL.js.map
1215
+ //# sourceMappingURL=TopToast-C7cOTxTp.js.map