@wgalleti/primevue-components 0.22.3 → 0.23.0

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,6 +1,6 @@
1
1
  import { a as e, n as t, o as n, r, s as i, t as a } from "./useFormKeyboardNav-Brgrjxu-.js";
2
2
  import { a as o, n as s, t as c } from "./routeTabs-D6m8PuP6.js";
3
- import { Fragment as l, computed as u, createBlock as d, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createSlots as h, createStaticVNode as g, createTextVNode as _, createVNode as v, defineComponent as y, guardReactiveProps as b, h as x, inject as S, isRef as C, mergeModels as w, mergeProps as T, nextTick as E, normalizeClass as D, normalizeProps as O, normalizeStyle as k, onBeforeUnmount as A, onMounted as ee, onScopeDispose as te, openBlock as j, provide as M, reactive as ne, readonly as N, ref as P, renderList as F, renderSlot as I, resolveDirective as re, shallowRef as ie, toDisplayString as L, toRef as ae, unref as R, useModel as z, useSlots as B, vModelText as oe, vShow as se, watch as V, withCtx as H, withDirectives as U, withKeys as W, withModifiers as G } from "vue";
3
+ import { Fragment as l, computed as u, createBlock as d, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createSlots as h, createStaticVNode as g, createTextVNode as _, createVNode as v, defineComponent as y, guardReactiveProps as b, h as x, inject as S, isRef as C, mergeModels as w, mergeProps as T, nextTick as E, normalizeClass as D, normalizeProps as O, normalizeStyle as k, onBeforeUnmount as A, onMounted as ee, onScopeDispose as te, openBlock as j, provide as M, reactive as ne, readonly as re, ref as N, renderList as P, renderSlot as F, resolveDirective as ie, shallowRef as I, toDisplayString as L, toRef as ae, unref as R, useModel as z, useSlots as B, vModelText as oe, vShow as se, watch as V, withCtx as H, withDirectives as U, withKeys as W, withModifiers as G } from "vue";
4
4
  import ce from "primevue/datatable";
5
5
  import K from "primevue/column";
6
6
  import q from "primevue/button";
@@ -11,22 +11,22 @@ import de from "primevue/popover";
11
11
  import fe from "primevue/checkbox";
12
12
  import pe from "primevue/iconfield";
13
13
  import me from "primevue/inputicon";
14
- import Y from "primevue/paginator";
15
- import he from "primevue/contextmenu";
14
+ import he from "primevue/paginator";
15
+ import Y from "primevue/contextmenu";
16
16
  import ge from "primevue/dialog";
17
17
  import _e from "primevue/tag";
18
18
  import ve from "primevue/textarea";
19
19
  import ye from "primevue/autocomplete";
20
20
  import be from "primevue/toggleswitch";
21
- import xe from "primevue/colorpicker";
22
- import Se from "primevue/password";
23
- import Ce from "primevue/chip";
24
- import we from "primevue/datepicker";
25
- import Te from "primevue/inputgroup";
26
- import Ee from "primevue/inputgroupaddon";
27
- import De from "primevue/slider";
28
- import Oe from "primevue/tree";
29
- import { routeLocationKey as ke, useRouter as X } from "vue-router";
21
+ import X from "primevue/colorpicker";
22
+ import xe from "primevue/password";
23
+ import Se from "primevue/chip";
24
+ import Ce from "primevue/datepicker";
25
+ import we from "primevue/inputgroup";
26
+ import Te from "primevue/inputgroupaddon";
27
+ import Ee from "primevue/slider";
28
+ import De from "primevue/tree";
29
+ import { routeLocationKey as Oe, useRouter as ke } from "vue-router";
30
30
  import Z from "primevue/skeleton";
31
31
  import Q from "markdown-it";
32
32
  import $ from "dompurify";
@@ -385,11 +385,11 @@ var _t = { class: "w-fk-option" }, vt = { class: "w-fk-option__label" }, yt = {
385
385
  setup(t, { emit: i }) {
386
386
  let a = s(), c = t, g = i, y = S(o);
387
387
  if (!y) throw Error("[wPrimeVueComponents] dataProvider não encontrado. Registre o WPrimeVuePlugin.");
388
- let b = y, x = n(), { confirmDelete: C } = e(), w = P(null), D = P([]), O = P([]), A = P(!1), te = u(() => c.multiple ? D.value : w.value);
388
+ let b = y, x = n(), { confirmDelete: C } = e(), w = N(null), D = N([]), O = N([]), A = N(!1), te = u(() => c.multiple ? D.value : w.value);
389
389
  function M(e) {
390
390
  return e && typeof e == "object" ? e[c.optionValue] : e;
391
391
  }
392
- function N(e) {
392
+ function re(e) {
393
393
  let t = /* @__PURE__ */ new Set(), n = [];
394
394
  for (let r of e) {
395
395
  let e = M(r);
@@ -397,10 +397,10 @@ var _t = { class: "w-fk-option" }, vt = { class: "w-fk-option__label" }, yt = {
397
397
  }
398
398
  return n;
399
399
  }
400
- function I() {
400
+ function F() {
401
401
  g("update:modelValue", c.multiple ? [...D.value] : w.value);
402
402
  }
403
- function ie(e) {
403
+ function I(e) {
404
404
  let t = e?.[c.optionLabel];
405
405
  return t == null ? "" : String(t);
406
406
  }
@@ -409,7 +409,7 @@ var _t = { class: "w-fk-option" }, vt = { class: "w-fk-option__label" }, yt = {
409
409
  let t = e?.[c.optionDescription];
410
410
  return t == null ? "" : String(t);
411
411
  }
412
- let z = u(() => c.maxChips > 0 ? Math.max(0, D.value.length - c.maxChips) : 0), B = u(() => D.value.slice(c.maxChips).map(ie).join(", "));
412
+ let z = u(() => c.maxChips > 0 ? Math.max(0, D.value.length - c.maxChips) : 0), B = u(() => D.value.slice(c.maxChips).map(I).join(", "));
413
413
  function oe(e, t) {
414
414
  e?.stopPropagation?.(), t(e);
415
415
  }
@@ -422,10 +422,10 @@ var _t = { class: "w-fk-option" }, vt = { class: "w-fk-option__label" }, yt = {
422
422
  if (!w.value) return;
423
423
  w.value = null;
424
424
  }
425
- I();
425
+ F();
426
426
  }
427
427
  }
428
- let W = u(() => c.multiple && c.maxChips > 0 ? { "--w-fk-chip-max": `max(6rem, calc((100% - 6rem) / ${c.maxChips}))` } : void 0), G = u(() => !c.showClear || c.disabled ? !1 : c.multiple ? D.value.length > 0 : w.value !== null), le = null, ue = P(null);
428
+ let W = u(() => c.multiple && c.maxChips > 0 ? { "--w-fk-chip-max": `max(6rem, calc((100% - 6rem) / ${c.maxChips}))` } : void 0), G = u(() => !c.showClear || c.disabled ? !1 : c.multiple ? D.value.length > 0 : w.value !== null), le = null, ue = N(null);
429
429
  ee(() => {
430
430
  c.autofocus && E(() => {
431
431
  let e = ue.value?.$el?.querySelector?.("input");
@@ -442,42 +442,42 @@ var _t = { class: "w-fk-option" }, vt = { class: "w-fk-option__label" }, yt = {
442
442
  }
443
443
  return e;
444
444
  }
445
- let Y = u(() => {
445
+ let he = u(() => {
446
446
  let e = c.drilldown;
447
447
  return e ? Array.isArray(e) ? e : [e] : [];
448
- }), he = u(() => Y.value.some((e) => (e.required ?? !0) && de(fe(e.value))));
448
+ }), Y = u(() => he.value.some((e) => (e.required ?? !0) && de(fe(e.value))));
449
449
  function _e() {
450
450
  let e = {};
451
- for (let t of Y.value) {
451
+ for (let t of he.value) {
452
452
  let n = fe(t.value);
453
453
  de(n) || (e[t.field] = n);
454
454
  }
455
455
  return e;
456
456
  }
457
- let ve = u(() => he.value && c.blockedPlaceholder ? c.blockedPlaceholder : c.placeholder), be = u(() => c.multiple && D.value.length ? void 0 : ve.value);
458
- async function xe(e) {
457
+ let ve = u(() => Y.value && c.blockedPlaceholder ? c.blockedPlaceholder : c.placeholder), be = u(() => c.multiple && D.value.length ? void 0 : ve.value);
458
+ async function X(e) {
459
459
  try {
460
460
  return (await b.get(c.endpoint, e)).data;
461
461
  } catch {
462
462
  return null;
463
463
  }
464
464
  }
465
- async function Se(e) {
466
- w.value = await xe(e);
465
+ async function xe(e) {
466
+ w.value = await X(e);
467
467
  }
468
- async function we(e) {
468
+ async function Ce(e) {
469
469
  return (await Promise.all(e.map(async (e) => {
470
470
  if (e && typeof e == "object") {
471
471
  let t = e;
472
472
  if (c.optionLabel in t) return t;
473
473
  let n = t[c.optionValue];
474
- return n == null ? null : await xe(n);
474
+ return n == null ? null : await X(n);
475
475
  }
476
- return D.value.find((t) => t[c.optionValue] === e) ?? await xe(e);
476
+ return D.value.find((t) => t[c.optionValue] === e) ?? await X(e);
477
477
  }))).filter((e) => e !== null);
478
478
  }
479
- async function Te(e) {
480
- if (he.value) {
479
+ async function we(e) {
480
+ if (Y.value) {
481
481
  O.value = [];
482
482
  return;
483
483
  }
@@ -497,28 +497,28 @@ var _t = { class: "w-fk-option" }, vt = { class: "w-fk-option__label" }, yt = {
497
497
  A.value = !1;
498
498
  }
499
499
  }
500
- function Ee(e) {
500
+ function Te(e) {
501
501
  let t = e.query || "";
502
502
  if (t.length < c.minLength) {
503
503
  O.value = [];
504
504
  return;
505
505
  }
506
- le && clearTimeout(le), le = setTimeout(() => Te(t), 300);
506
+ le && clearTimeout(le), le = setTimeout(() => we(t), 300);
507
507
  }
508
- function De(e) {
508
+ function Ee(e) {
509
509
  c.multiple || (w.value = e.value, g("update:modelValue", e.value));
510
510
  }
511
- function Oe(e) {
512
- c.multiple && (D.value = N(Array.isArray(e) ? e : []), I());
511
+ function De(e) {
512
+ c.multiple && (D.value = re(Array.isArray(e) ? e : []), F());
513
513
  }
514
- function ke() {
515
- c.multiple || (w.value = null, I());
514
+ function Oe() {
515
+ c.multiple || (w.value = null, F());
516
516
  }
517
517
  V(() => c.modelValue, async (e) => {
518
518
  if (c.multiple) {
519
519
  let t = e == null ? [] : Array.isArray(e) ? e : [e], n = t.map(M), r = D.value.map((e) => e[c.optionValue]);
520
520
  if (n.length === r.length && n.every((e, t) => e === r[t])) return;
521
- D.value = await we(t);
521
+ D.value = await Ce(t);
522
522
  return;
523
523
  }
524
524
  if (e != null) {
@@ -526,13 +526,13 @@ var _t = { class: "w-fk-option" }, vt = { class: "w-fk-option__label" }, yt = {
526
526
  w.value = e;
527
527
  return;
528
528
  }
529
- (!w.value || w.value[c.optionValue] !== e) && await Se(e);
529
+ (!w.value || w.value[c.optionValue] !== e) && await xe(e);
530
530
  } else w.value = null;
531
531
  }, { immediate: !0 });
532
- let X = P(!1), Z = P([]), Q = P(!1), $ = P(""), Ae = P(1), je = P(15), Me = P(0), Ne = P(null), Pe = u(() => {
532
+ let ke = N(!1), Z = N([]), Q = N(!1), $ = N(""), Ae = N(1), je = N(15), Me = N(0), Ne = N(null), Pe = u(() => {
533
533
  let e = Ne.value;
534
534
  return e ? Array.isArray(e) ? e : [e] : [];
535
- }), Fe = P(null), Ie = P(0), Le = null, Re = P({}), ze = P([]), Be = P({});
535
+ }), Fe = N(null), Ie = N(0), Le = null, Re = N({}), ze = N([]), Be = N({});
536
536
  async function Ve() {
537
537
  if (c.subRows) try {
538
538
  let { map: e, columns: t } = await c.subRows(Z.value);
@@ -550,7 +550,7 @@ var _t = { class: "w-fk-option" }, vt = { class: "w-fk-option__label" }, yt = {
550
550
  function He(e) {
551
551
  return Re.value[String(e[c.optionValue])] || [];
552
552
  }
553
- let Ue = P([]), We = u(() => c.crudFields?.length ? !0 : Ue.value.length > 0), Ge = u(() => c.canCreate ?? We.value), qe = u(() => c.canEdit ?? We.value), Je = u(() => c.canDelete ?? We.value), Ye = u(() => qe.value || Je.value), Xe = u(() => c.crudFields?.length ? c.crudFields : pt(Ue.value)), Ze = u(() => c.crudColumns?.length ? c.crudColumns : c.columns?.length ? c.columns.map((e) => ({
553
+ let Ue = N([]), We = u(() => c.crudFields?.length ? !0 : Ue.value.length > 0), Ge = u(() => c.canCreate ?? We.value), qe = u(() => c.canEdit ?? We.value), Je = u(() => c.canDelete ?? We.value), Ye = u(() => qe.value || Je.value), Xe = u(() => c.crudFields?.length ? c.crudFields : pt(Ue.value)), Ze = u(() => c.crudColumns?.length ? c.crudColumns : c.columns?.length ? c.columns.map((e) => ({
554
554
  field: e.field,
555
555
  header: e.header,
556
556
  sortable: !0
@@ -560,7 +560,7 @@ var _t = { class: "w-fk-option" }, vt = { class: "w-fk-option__label" }, yt = {
560
560
  sortable: !0
561
561
  }]);
562
562
  async function Qe() {
563
- if (he.value) {
563
+ if (Y.value) {
564
564
  Z.value = [], Me.value = 0;
565
565
  return;
566
566
  }
@@ -585,7 +585,7 @@ var _t = { class: "w-fk-option" }, vt = { class: "w-fk-option__label" }, yt = {
585
585
  e.key === "F2" && !c.disabled && (e.preventDefault(), et());
586
586
  }
587
587
  function et() {
588
- c.disabled || ($.value = "", Ae.value = 1, Fe.value = null, Ie.value = 0, Ne.value = c.multiple ? [...D.value] : null, X.value = !0, Qe());
588
+ c.disabled || ($.value = "", Ae.value = 1, Fe.value = null, Ie.value = 0, Ne.value = c.multiple ? [...D.value] : null, ke.value = !0, Qe());
589
589
  }
590
590
  function tt(e) {
591
591
  Ae.value = e.page + 1, je.value = e.rows, Qe();
@@ -595,20 +595,20 @@ var _t = { class: "w-fk-option" }, vt = { class: "w-fk-option__label" }, yt = {
595
595
  }
596
596
  function rt() {
597
597
  if (c.multiple) {
598
- D.value = N(Pe.value), I(), X.value = !1;
598
+ D.value = re(Pe.value), F(), ke.value = !1;
599
599
  return;
600
600
  }
601
601
  let e = Pe.value[0];
602
- e && (w.value = e, g("update:modelValue", e), X.value = !1);
602
+ e && (w.value = e, g("update:modelValue", e), ke.value = !1);
603
603
  }
604
604
  function it(e) {
605
605
  if (c.multiple) {
606
- Ne.value = N([...Pe.value, e.data]);
606
+ Ne.value = re([...Pe.value, e.data]);
607
607
  return;
608
608
  }
609
- w.value = e.data, g("update:modelValue", e.data), X.value = !1;
609
+ w.value = e.data, g("update:modelValue", e.data), ke.value = !1;
610
610
  }
611
- let at = P(null), ot = P(null), st = "";
611
+ let at = N(null), ot = N(null), st = "";
612
612
  function ct() {
613
613
  st = "", E(() => {
614
614
  let e = at.value?.$el;
@@ -637,19 +637,19 @@ var _t = { class: "w-fk-option" }, vt = { class: "w-fk-option__label" }, yt = {
637
637
  Le && clearTimeout(Le), Le = setTimeout(() => {
638
638
  Ae.value = 1, st = $.value.trim(), Qe();
639
639
  }, 300);
640
- }), V(() => Y.value.map((e) => fe(e.value)), (e, t) => {
641
- if (X.value && (Ae.value = 1, Qe()), !t) return;
640
+ }), V(() => he.value.map((e) => fe(e.value)), (e, t) => {
641
+ if (ke.value && (Ae.value = 1, Qe()), !t) return;
642
642
  let n = e.some((e, n) => e !== t[n]), r = t.some((e) => !de(e));
643
643
  if (!(!n || !r)) {
644
644
  if (c.multiple) {
645
645
  if (!D.value.length) return;
646
- D.value = [], I();
646
+ D.value = [], F();
647
647
  return;
648
648
  }
649
649
  w.value && (w.value = null, g("update:modelValue", null));
650
650
  }
651
651
  });
652
- let ft = P(!1), mt = P(!1), ht = P(null), Dt = ne({}), Ot = u(() => ht.value !== null), kt = u(() => Ot.value ? "Editar Registro" : "Novo Registro");
652
+ let ft = N(!1), mt = N(!1), ht = N(null), Dt = ne({}), Ot = u(() => ht.value !== null), kt = u(() => Ot.value ? "Editar Registro" : "Novo Registro");
653
653
  function At() {
654
654
  let e = {};
655
655
  for (let t of Xe.value) e[t.field] = t.defaultValue === void 0 ? null : typeof t.defaultValue == "function" ? t.defaultValue() : t.defaultValue;
@@ -696,7 +696,7 @@ var _t = { class: "w-fk-option" }, vt = { class: "w-fk-option__label" }, yt = {
696
696
  }
697
697
  t = await b.create(c.endpoint, e), Z.value.unshift(t.data), Me.value++, x.success("Registro criado com sucesso");
698
698
  }
699
- ft.value = !1, ht.value = null, Ne.value = c.multiple ? N([...Pe.value, t.data]) : t.data;
699
+ ft.value = !1, ht.value = null, Ne.value = c.multiple ? re([...Pe.value, t.data]) : t.data;
700
700
  } catch (e) {
701
701
  x.error(r(e, "Erro ao salvar registro"));
702
702
  } finally {
@@ -709,14 +709,14 @@ var _t = { class: "w-fk-option" }, vt = { class: "w-fk-option__label" }, yt = {
709
709
  let t = e[c.optionValue];
710
710
  await b.delete(c.endpoint, t);
711
711
  let n = Z.value.findIndex((e) => e[c.optionValue] === t);
712
- n !== -1 && (Z.value.splice(n, 1), Me.value--), c.multiple ? (D.value.some((e) => e[c.optionValue] === t) && (D.value = D.value.filter((e) => e[c.optionValue] !== t), I()), Ne.value = Pe.value.filter((e) => e[c.optionValue] !== t)) : (w.value && w.value[c.optionValue] === t && (w.value = null, g("update:modelValue", null)), Pe.value[0]?.[c.optionValue] === t && (Ne.value = null)), x.success("Registro excluído com sucesso");
712
+ n !== -1 && (Z.value.splice(n, 1), Me.value--), c.multiple ? (D.value.some((e) => e[c.optionValue] === t) && (D.value = D.value.filter((e) => e[c.optionValue] !== t), F()), Ne.value = Pe.value.filter((e) => e[c.optionValue] !== t)) : (w.value && w.value[c.optionValue] === t && (w.value = null, g("update:modelValue", null)), Pe.value[0]?.[c.optionValue] === t && (Ne.value = null)), x.success("Registro excluído com sucesso");
713
713
  } catch (e) {
714
714
  x.error(r(e, "Erro ao excluir registro"));
715
715
  }
716
716
  });
717
717
  }
718
718
  return (e, n) => {
719
- let r = re("tooltip");
719
+ let r = ie("tooltip");
720
720
  return j(), p(l, null, [
721
721
  m("div", T({
722
722
  class: ["w-autocompletefk", { "w-autocompletefk-has-clear": G.value }],
@@ -735,30 +735,30 @@ var _t = { class: "w-fk-option" }, vt = { class: "w-fk-option__label" }, yt = {
735
735
  loading: A.value,
736
736
  "show-clear": !1,
737
737
  fluid: "",
738
- onComplete: Ee,
739
- onItemSelect: De,
740
- "onUpdate:modelValue": Oe,
741
- onClear: ke,
738
+ onComplete: Te,
739
+ onItemSelect: Ee,
740
+ "onUpdate:modelValue": De,
741
+ onClear: Oe,
742
742
  onKeydown: $e
743
743
  }, h({ _: 2 }, [t.optionDescription ? {
744
744
  name: "option",
745
- fn: H(({ option: e }) => [m("span", _t, [m("span", vt, L(ie(e)), 1), ae(e) ? (j(), p("span", yt, L(ae(e)), 1)) : f("", !0)])]),
745
+ fn: H(({ option: e }) => [m("span", _t, [m("span", vt, L(I(e)), 1), ae(e) ? (j(), p("span", yt, L(ae(e)), 1)) : f("", !0)])]),
746
746
  key: "0"
747
747
  } : void 0, t.multiple ? {
748
748
  name: "chip",
749
- fn: H(({ value: e, index: n, removeCallback: i }) => [!t.maxChips || n < t.maxChips ? U((j(), d(R(Ce), {
749
+ fn: H(({ value: e, index: n, removeCallback: i }) => [!t.maxChips || n < t.maxChips ? U((j(), d(R(Se), {
750
750
  key: 0,
751
751
  class: "p-autocomplete-chip w-autocompletefk-chip",
752
- label: ie(e),
752
+ label: I(e),
753
753
  removable: "",
754
754
  onClick: et,
755
755
  onRemove: (e) => oe(e, i)
756
756
  }, null, 8, ["label", "onRemove"])), [[
757
757
  r,
758
- ie(e),
758
+ I(e),
759
759
  void 0,
760
760
  { top: !0 }
761
- ]]) : n === t.maxChips ? U((j(), d(R(Ce), {
761
+ ]]) : n === t.maxChips ? U((j(), d(R(Se), {
762
762
  key: 1,
763
763
  class: "p-autocomplete-chip w-autocompletefk-chip w-autocompletefk-chip-more",
764
764
  label: `+${z.value}`,
@@ -808,8 +808,8 @@ var _t = { class: "w-fk-option" }, vt = { class: "w-fk-option__label" }, yt = {
808
808
  ]])
809
809
  ], 16),
810
810
  v(R(ge), {
811
- visible: X.value,
812
- "onUpdate:visible": n[5] ||= (e) => X.value = e,
811
+ visible: ke.value,
812
+ "onUpdate:visible": n[5] ||= (e) => ke.value = e,
813
813
  "append-to": R(a)?.hostEl.value ?? "body",
814
814
  header: t.dialogHeader || "Pesquisar",
815
815
  style: { width: "80vw" },
@@ -822,7 +822,7 @@ var _t = { class: "w-fk-option" }, vt = { class: "w-fk-option__label" }, yt = {
822
822
  label: "Cancelar",
823
823
  severity: "secondary",
824
824
  text: "",
825
- onClick: n[4] ||= (e) => X.value = !1
825
+ onClick: n[4] ||= (e) => ke.value = !1
826
826
  }), v(R(q), {
827
827
  label: t.multiple && Pe.value.length ? `Selecionar (${Pe.value.length})` : "Selecionar",
828
828
  icon: "pi pi-check",
@@ -883,7 +883,7 @@ var _t = { class: "w-fk-option" }, vt = { class: "w-fk-option__label" }, yt = {
883
883
  "selection-mode": t.multiple ? "multiple" : "single",
884
884
  "header-style": "width: 3rem"
885
885
  }, null, 8, ["selection-mode"]),
886
- (j(!0), p(l, null, F(Ze.value, (e) => (j(), d(R(K), {
886
+ (j(!0), p(l, null, P(Ze.value, (e) => (j(), d(R(K), {
887
887
  key: e.field,
888
888
  field: e.field,
889
889
  header: e.header,
@@ -944,7 +944,7 @@ var _t = { class: "w-fk-option" }, vt = { class: "w-fk-option__label" }, yt = {
944
944
  _: 2
945
945
  }, [t.subRows ? {
946
946
  name: "expansion",
947
- fn: H(({ data: e }) => [m("table", Tt, [m("thead", null, [m("tr", null, [(j(!0), p(l, null, F(ze.value, (e) => (j(), p("th", { key: e.field }, L(e.header), 1))), 128))])]), m("tbody", null, [(j(!0), p(l, null, F(He(e), (e, t) => (j(), p("tr", { key: t }, [(j(!0), p(l, null, F(ze.value, (t) => (j(), p("td", { key: t.field }, L(e[t.field] ?? "—"), 1))), 128))]))), 128))])])]),
947
+ fn: H(({ data: e }) => [m("table", Tt, [m("thead", null, [m("tr", null, [(j(!0), p(l, null, P(ze.value, (e) => (j(), p("th", { key: e.field }, L(e.header), 1))), 128))])]), m("tbody", null, [(j(!0), p(l, null, P(He(e), (e, t) => (j(), p("tr", { key: t }, [(j(!0), p(l, null, P(ze.value, (t) => (j(), p("td", { key: t.field }, L(e[t.field] ?? "—"), 1))), 128))]))), 128))])])]),
948
948
  key: "0"
949
949
  } : void 0]), 1032, [
950
950
  "selection",
@@ -1025,7 +1025,7 @@ var _t = { class: "w-fk-option" }, vt = { class: "w-fk-option__label" }, yt = {
1025
1025
  let r = e, i = n, a = t({
1026
1026
  showTime: () => r.showTime,
1027
1027
  valueFormat: () => r.valueFormat
1028
- }), o = P(""), s = P(null), c = P(null), l = u(() => ({ mask: a.mask() })), h = u(() => a.toDate(r.minDate) ?? void 0), g = u(() => a.toDate(r.maxDate) ?? void 0);
1028
+ }), o = N(""), s = N(null), c = N(null), l = u(() => ({ mask: a.mask() })), h = u(() => a.toDate(r.minDate) ?? void 0), g = u(() => a.toDate(r.maxDate) ?? void 0);
1029
1029
  V(() => r.modelValue, (e) => {
1030
1030
  let t = a.toDate(e);
1031
1031
  s.value = t, o.value = a.toDisplay(t);
@@ -1093,7 +1093,7 @@ var _t = { class: "w-fk-option" }, vt = { class: "w-fk-option__label" }, yt = {
1093
1093
  ref_key: "op",
1094
1094
  ref: c
1095
1095
  }, {
1096
- default: H(() => [m("div", kt, [v(R(we), {
1096
+ default: H(() => [m("div", kt, [v(R(Ce), {
1097
1097
  "model-value": s.value ?? void 0,
1098
1098
  inline: "",
1099
1099
  "show-time": e.showTime,
@@ -1159,12 +1159,12 @@ var _t = { class: "w-fk-option" }, vt = { class: "w-fk-option__label" }, yt = {
1159
1159
  let i = Number(t) / 10 ** n.decimals;
1160
1160
  r("update:modelValue", i);
1161
1161
  }
1162
- return (t, n) => a.value ? (j(), d(R(Te), {
1162
+ return (t, n) => a.value ? (j(), d(R(we), {
1163
1163
  key: 0,
1164
1164
  class: "w-money-input"
1165
1165
  }, {
1166
1166
  default: H(() => [
1167
- i.value ? (j(), d(R(Ee), { key: 0 }, {
1167
+ i.value ? (j(), d(R(Te), { key: 0 }, {
1168
1168
  default: H(() => [_(L(i.value), 1)]),
1169
1169
  _: 1
1170
1170
  })) : f("", !0),
@@ -1182,7 +1182,7 @@ var _t = { class: "w-fk-option" }, vt = { class: "w-fk-option__label" }, yt = {
1182
1182
  "disabled",
1183
1183
  "invalid"
1184
1184
  ]),
1185
- e.suffix ? (j(), d(R(Ee), { key: 1 }, {
1185
+ e.suffix ? (j(), d(R(Te), { key: 1 }, {
1186
1186
  default: H(() => [_(L(e.suffix), 1)]),
1187
1187
  _: 1
1188
1188
  })) : f("", !0)
@@ -1221,13 +1221,13 @@ var _t = { class: "w-fk-option" }, vt = { class: "w-fk-option__label" }, yt = {
1221
1221
  },
1222
1222
  emits: ["update:modelValue", "error"],
1223
1223
  setup(e, { emit: t }) {
1224
- let n = s(), r = e, i = t, a = P(null);
1224
+ let n = s(), r = e, i = t, a = N(null);
1225
1225
  V(() => r.modelValue, (e) => {
1226
1226
  a.value &&= (URL.revokeObjectURL(a.value), null), e instanceof File && (a.value = URL.createObjectURL(e));
1227
1227
  }, { immediate: !0 }), A(() => {
1228
1228
  a.value && URL.revokeObjectURL(a.value);
1229
1229
  });
1230
- let o = u(() => r.modelValue instanceof File ? a.value : typeof r.modelValue == "string" && r.modelValue ? r.modelValue : null), c = P(null);
1230
+ let o = u(() => r.modelValue instanceof File ? a.value : typeof r.modelValue == "string" && r.modelValue ? r.modelValue : null), c = N(null);
1231
1231
  function d() {
1232
1232
  c.value?.click();
1233
1233
  }
@@ -1252,26 +1252,26 @@ var _t = { class: "w-fk-option" }, vt = { class: "w-fk-option__label" }, yt = {
1252
1252
  a.onload = () => {
1253
1253
  let e = new Image();
1254
1254
  e.onload = () => {
1255
- y = e, w.value = e.naturalWidth, T.value = e.naturalHeight, E.value = 1, C.value = e.src, O.x = (te.value - re.value) / 2, O.y = (M.value - ie.value) / 2, S.value = !0;
1255
+ y = e, w.value = e.naturalWidth, T.value = e.naturalHeight, E.value = 1, C.value = e.src, O.x = (te.value - ie.value) / 2, O.y = (M.value - I.value) / 2, S.value = !0;
1256
1256
  }, e.onerror = () => i("error", "Não foi possível carregar a imagem."), e.src = String(a.result);
1257
1257
  }, a.onerror = () => i("error", "Falha ao ler o arquivo."), a.readAsDataURL(n);
1258
1258
  }
1259
1259
  function x() {
1260
1260
  i("update:modelValue", null);
1261
1261
  }
1262
- let S = P(!1), C = P(""), w = P(0), T = P(0), E = P(1), O = ne({
1262
+ let S = N(!1), C = N(""), w = N(0), T = N(0), E = N(1), O = ne({
1263
1263
  x: 0,
1264
1264
  y: 0
1265
- }), ee = u(() => r.circular ? 1 : r.aspectRatio || 1), te = u(() => ee.value >= 1 ? Bt : Math.round(Bt * ee.value)), M = u(() => ee.value >= 1 ? Math.round(Bt / ee.value) : Bt), N = u(() => w.value && T.value ? Math.max(te.value / w.value, M.value / T.value) : 1), F = u(() => N.value * E.value), re = u(() => w.value * F.value), ie = u(() => T.value * F.value);
1265
+ }), ee = u(() => r.circular ? 1 : r.aspectRatio || 1), te = u(() => ee.value >= 1 ? Bt : Math.round(Bt * ee.value)), M = u(() => ee.value >= 1 ? Math.round(Bt / ee.value) : Bt), re = u(() => w.value && T.value ? Math.max(te.value / w.value, M.value / T.value) : 1), P = u(() => re.value * E.value), ie = u(() => w.value * P.value), I = u(() => T.value * P.value);
1266
1266
  function L() {
1267
- O.x = Math.min(0, Math.max(te.value - re.value, O.x)), O.y = Math.min(0, Math.max(M.value - ie.value, O.y));
1267
+ O.x = Math.min(0, Math.max(te.value - ie.value, O.x)), O.y = Math.min(0, Math.max(M.value - I.value, O.y));
1268
1268
  }
1269
1269
  V(E, L);
1270
1270
  let ae = u(() => ({
1271
- width: `${re.value}px`,
1272
- height: `${ie.value}px`,
1271
+ width: `${ie.value}px`,
1272
+ height: `${I.value}px`,
1273
1273
  transform: `translate(${O.x}px, ${O.y}px)`
1274
- })), z = P(!1), B = {
1274
+ })), z = N(!1), B = {
1275
1275
  x: 0,
1276
1276
  y: 0,
1277
1277
  ox: 0,
@@ -1300,7 +1300,7 @@ var _t = { class: "w-fk-option" }, vt = { class: "w-fk-option__label" }, yt = {
1300
1300
  }
1301
1301
  function ce() {
1302
1302
  if (!y) return;
1303
- let e = F.value, t = -O.x / e, n = -O.y / e, a = te.value / e, o = M.value / e, s = document.createElement("canvas");
1303
+ let e = P.value, t = -O.x / e, n = -O.y / e, a = te.value / e, o = M.value / e, s = document.createElement("canvas");
1304
1304
  s.width = Math.max(1, Math.round(a)), s.height = Math.max(1, Math.round(o));
1305
1305
  let c = s.getContext("2d");
1306
1306
  if (!c) {
@@ -1346,7 +1346,7 @@ var _t = { class: "w-fk-option" }, vt = { class: "w-fk-option__label" }, yt = {
1346
1346
  severity: "danger",
1347
1347
  "aria-label": "Remover imagem",
1348
1348
  onClick: x
1349
- })])], 64)) : I(t.$slots, "placeholder", { open: d }, () => [m("button", {
1349
+ })])], 64)) : F(t.$slots, "placeholder", { open: d }, () => [m("button", {
1350
1350
  type: "button",
1351
1351
  class: "w-imgcropper-empty",
1352
1352
  onClick: d
@@ -1397,7 +1397,7 @@ var _t = { class: "w-fk-option" }, vt = { class: "w-fk-option__label" }, yt = {
1397
1397
  draggable: "false"
1398
1398
  }, null, 12, Rt)) : f("", !0), m("div", { class: D(["w-imgcropper-stencil", { "is-circular": e.circular }]) }, null, 2)], 38), m("div", zt, [
1399
1399
  r[4] ||= m("i", { class: "pi pi-search-minus" }, null, -1),
1400
- v(R(De), {
1400
+ v(R(Ee), {
1401
1401
  modelValue: E.value,
1402
1402
  "onUpdate:modelValue": r[0] ||= (e) => E.value = e,
1403
1403
  min: 1,
@@ -1433,7 +1433,7 @@ var _t = { class: "w-fk-option" }, vt = { class: "w-fk-option__label" }, yt = {
1433
1433
  },
1434
1434
  emits: ["update:selected"],
1435
1435
  setup(e, { emit: t }) {
1436
- let n = e, r = t, i = P(""), a = P(""), o = u(() => new Set(n.selected)), s = u(() => n.searchFields ?? [n.optionLabel]);
1436
+ let n = e, r = t, i = N(""), a = N(""), o = u(() => new Set(n.selected)), s = u(() => n.searchFields ?? [n.optionLabel]);
1437
1437
  function c(e) {
1438
1438
  return e[n.trackBy];
1439
1439
  }
@@ -1472,7 +1472,7 @@ var _t = { class: "w-fk-option" }, vt = { class: "w-fk-option__label" }, yt = {
1472
1472
  }, null, 8, ["modelValue"])]),
1473
1473
  _: 1
1474
1474
  }),
1475
- m("ul", qt, [(j(!0), p(l, null, F(g.value, (e) => (j(), p("li", {
1475
+ m("ul", qt, [(j(!0), p(l, null, P(g.value, (e) => (j(), p("li", {
1476
1476
  key: `a-${c(e)}`,
1477
1477
  class: "w-transfer__item",
1478
1478
  onClick: (t) => y(e)
@@ -1504,7 +1504,7 @@ var _t = { class: "w-fk-option" }, vt = { class: "w-fk-option__label" }, yt = {
1504
1504
  }, null, 8, ["modelValue"])]),
1505
1505
  _: 1
1506
1506
  }),
1507
- m("ul", en, [(j(!0), p(l, null, F(_.value, (e) => (j(), p("li", {
1507
+ m("ul", en, [(j(!0), p(l, null, P(_.value, (e) => (j(), p("li", {
1508
1508
  key: `s-${c(e)}`,
1509
1509
  class: "w-transfer__item",
1510
1510
  onClick: (t) => b(e)
@@ -1672,18 +1672,18 @@ var on = { class: "w-crud-form" }, sn = {
1672
1672
  let n = e.optionValue || "value";
1673
1673
  return (w(e.options) || []).find((e) => e[n] === t) ?? null;
1674
1674
  }
1675
- function N(e) {
1675
+ function re(e) {
1676
1676
  return te[e.field] || [];
1677
1677
  }
1678
- function P(e, t) {
1678
+ function N(e, t) {
1679
1679
  let n = (t.query || "").toLowerCase(), r = w(e.options) || [], i = e.optionLabel || "label";
1680
1680
  te[e.field] = r.filter((e) => String(e[i] || "").toLowerCase().includes(n));
1681
1681
  }
1682
- function re(e, t) {
1682
+ function ie(e, t) {
1683
1683
  let n = e.optionValue || "value";
1684
1684
  i("update:field", e.field, t.value[n]);
1685
1685
  }
1686
- function ie(e) {
1686
+ function I(e) {
1687
1687
  return w(e.options) || [];
1688
1688
  }
1689
1689
  function ae(e, t) {
@@ -1701,7 +1701,7 @@ var on = { class: "w-crud-form" }, sn = {
1701
1701
  function se(e) {
1702
1702
  let t = r.formData[e.field];
1703
1703
  if (!Array.isArray(t)) return [];
1704
- let n = e.optionLabel || "nome", i = e.optionValue || "id", a = ie(e);
1704
+ let n = e.optionLabel || "nome", i = e.optionValue || "id", a = I(e);
1705
1705
  return t.map((e, t) => {
1706
1706
  if (typeof e == "object" && e) {
1707
1707
  let r = e;
@@ -1764,10 +1764,10 @@ var on = { class: "w-crud-form" }, sn = {
1764
1764
  function me(e, t) {
1765
1765
  return { "--w-col-span": pe(e, fe(t)) };
1766
1766
  }
1767
- function Y(e, t) {
1767
+ function he(e, t) {
1768
1768
  return pe(e, fe(t)) === fe(t) ? "w-crud-form-col-full" : "w-crud-form-col-half";
1769
1769
  }
1770
- let he = u(() => {
1770
+ let Y = u(() => {
1771
1771
  let e = /* @__PURE__ */ new Map(), t = [], n = /* @__PURE__ */ new Map();
1772
1772
  for (let r of g.value) {
1773
1773
  let i = r.fieldGroup?.id ?? "__default__";
@@ -1787,13 +1787,13 @@ var on = { class: "w-crud-form" }, sn = {
1787
1787
  return t({
1788
1788
  validateAll: q,
1789
1789
  clearErrors: de
1790
- }), (t, n) => (j(), p("div", on, [(j(!0), p(l, null, F(he.value, (r) => (j(), p("div", {
1790
+ }), (t, n) => (j(), p("div", on, [(j(!0), p(l, null, P(Y.value, (r) => (j(), p("div", {
1791
1791
  key: r.id,
1792
1792
  class: "w-crud-form-group"
1793
1793
  }, [r.title ? (j(), p("div", sn, [m("h3", cn, L(r.title), 1), r.description ? (j(), p("p", ln, L(r.description), 1)) : f("", !0)])) : f("", !0), m("div", {
1794
1794
  class: "w-crud-form-fields",
1795
1795
  style: k({ "--w-form-cols": fe(r) })
1796
- }, [(j(!0), p(l, null, F(r.fields, (c) => I(t.$slots, `field-${c.field}`, {
1796
+ }, [(j(!0), p(l, null, P(r.fields, (c) => F(t.$slots, `field-${c.field}`, {
1797
1797
  field: c,
1798
1798
  formData: e.formData,
1799
1799
  isEditing: e.isEditing,
@@ -1812,9 +1812,9 @@ var on = { class: "w-crud-form" }, sn = {
1812
1812
  "onUpdate:modelValue"
1813
1813
  ]), m("label", un, L(c.switchLabel || c.label), 1)], 4)) : c.type === "color" ? (j(), p("div", {
1814
1814
  key: 1,
1815
- class: D(Y(c, r)),
1815
+ class: D(he(c, r)),
1816
1816
  style: k(me(c, r))
1817
- }, [m("label", dn, [_(L(c.label) + " ", 1), c.required ? (j(), p("span", fn, "*")) : f("", !0)]), m("div", pn, [v(R(xe), {
1817
+ }, [m("label", dn, [_(L(c.label) + " ", 1), c.required ? (j(), p("span", fn, "*")) : f("", !0)]), m("div", pn, [v(R(X), {
1818
1818
  "model-value": W(c),
1819
1819
  disabled: y(c),
1820
1820
  "onUpdate:modelValue": (e) => G(c, e)
@@ -1835,11 +1835,11 @@ var on = { class: "w-crud-form" }, sn = {
1835
1835
  "onUpdate:modelValue"
1836
1836
  ])])], 6)) : c.type === "image" ? (j(), p("div", {
1837
1837
  key: 2,
1838
- class: D(Y(c, r)),
1838
+ class: D(he(c, r)),
1839
1839
  style: k(me(c, r))
1840
1840
  }, [
1841
1841
  m("label", mn, L(c.label), 1),
1842
- I(t.$slots, `image-${c.field}`, {
1842
+ F(t.$slots, `image-${c.field}`, {
1843
1843
  field: c,
1844
1844
  formData: e.formData
1845
1845
  }, () => [v(Ut, {
@@ -1858,7 +1858,7 @@ var on = { class: "w-crud-form" }, sn = {
1858
1858
  a[c.field] ? (j(), p("small", hn, L(a[c.field]), 1)) : f("", !0)
1859
1859
  ], 6)) : c.type === "transfer" ? (j(), p("div", {
1860
1860
  key: 3,
1861
- class: D(Y(c, r)),
1861
+ class: D(he(c, r)),
1862
1862
  style: k(me(c, r))
1863
1863
  }, [m("label", gn, [_(L(c.label) + " ", 1), c.required ? (j(), p("span", _n, "*")) : f("", !0)]), v(rn, {
1864
1864
  source: w(c.options) || [],
@@ -1878,7 +1878,7 @@ var on = { class: "w-crud-form" }, sn = {
1878
1878
  "onUpdate:selected"
1879
1879
  ])], 6)) : (j(), p("div", {
1880
1880
  key: 4,
1881
- class: D(Y(c, r)),
1881
+ class: D(he(c, r)),
1882
1882
  style: k(me(c, r))
1883
1883
  }, [
1884
1884
  m("label", vn, [
@@ -1929,7 +1929,7 @@ var on = { class: "w-crud-form" }, sn = {
1929
1929
  "placeholder",
1930
1930
  "disabled",
1931
1931
  "onUpdate:modelValue"
1932
- ])) : c.type === "password" ? (j(), d(R(Se), {
1932
+ ])) : c.type === "password" ? (j(), d(R(xe), {
1933
1933
  key: 3,
1934
1934
  "model-value": e.formData[c.field],
1935
1935
  fluid: "",
@@ -2030,12 +2030,12 @@ var on = { class: "w-crud-form" }, sn = {
2030
2030
  key: 8,
2031
2031
  "model-value": M(c),
2032
2032
  fluid: "",
2033
- suggestions: N(c),
2033
+ suggestions: re(c),
2034
2034
  "option-label": c.optionLabel || "label",
2035
2035
  placeholder: c.placeholder,
2036
2036
  disabled: y(c),
2037
- onComplete: (e) => P(c, e),
2038
- onItemSelect: (e) => re(c, e),
2037
+ onComplete: (e) => N(c, e),
2038
+ onItemSelect: (e) => ie(c, e),
2039
2039
  onClear: (e) => i("update:field", c.field, null)
2040
2040
  }, null, 8, [
2041
2041
  "model-value",
@@ -2189,14 +2189,14 @@ var on = { class: "w-crud-form" }, sn = {
2189
2189
  "placeholder",
2190
2190
  "disabled",
2191
2191
  "onUpdate:modelValue"
2192
- ])) : c.type === "segmented" ? (j(), p("div", xn, [(j(!0), p(l, null, F(ie(c), (e) => (j(), p("button", {
2192
+ ])) : c.type === "segmented" ? (j(), p("div", xn, [(j(!0), p(l, null, P(I(c), (e) => (j(), p("button", {
2193
2193
  key: String(z(c, e)),
2194
2194
  type: "button",
2195
2195
  class: D(["w-segmented__option", { "w-segmented__option--on": B(c, e) }]),
2196
2196
  "aria-pressed": B(c, e),
2197
2197
  disabled: y(c),
2198
2198
  onClick: (t) => oe(c, e)
2199
- }, L(ae(c, e)), 11, Sn))), 128))])) : c.type === "choice" ? (j(), p("div", Cn, [(j(!0), p(l, null, F(ie(c), (e) => (j(), p("button", {
2199
+ }, L(ae(c, e)), 11, Sn))), 128))])) : c.type === "choice" ? (j(), p("div", Cn, [(j(!0), p(l, null, P(I(c), (e) => (j(), p("button", {
2200
2200
  key: String(z(c, e)),
2201
2201
  type: "button",
2202
2202
  class: D(["w-choice__option", { "w-choice__option--on": B(c, e) }]),
@@ -2207,7 +2207,7 @@ var on = { class: "w-crud-form" }, sn = {
2207
2207
  key: 0,
2208
2208
  class: D(c.choiceIcon || "pi pi-check-circle")
2209
2209
  }, null, 2)) : f("", !0), _(" " + L(ae(c, e)), 1)], 10, wn))), 128))])) : c.type === "chips" ? (j(), p("div", Tn, [
2210
- (j(!0), p(l, null, F(se(c), (e, t) => (j(), p("span", {
2210
+ (j(!0), p(l, null, P(se(c), (e, t) => (j(), p("span", {
2211
2211
  key: e.key,
2212
2212
  class: "w-chips__chip"
2213
2213
  }, [_(L(e.label) + " ", 1), m("button", {
@@ -2219,13 +2219,13 @@ var on = { class: "w-crud-form" }, sn = {
2219
2219
  onClick: (e) => H(c, t)
2220
2220
  }, [...n[0] ||= [m("i", { class: "pi pi-times" }, null, -1)]], 8, En)]))), 128)),
2221
2221
  !se(c).length && c.chipsEmptyLabel ? (j(), p("span", Dn, L(c.chipsEmptyLabel), 1)) : f("", !0),
2222
- I(t.$slots, `chips-trigger-${c.field}`, {
2222
+ F(t.$slots, `chips-trigger-${c.field}`, {
2223
2223
  field: c,
2224
2224
  formData: e.formData,
2225
2225
  disabled: y(c),
2226
2226
  setFormField: (e, t) => i("update:field", e, t)
2227
2227
  }),
2228
- m("span", On, [I(t.$slots, `chips-summary-${c.field}`, {
2228
+ m("span", On, [F(t.$slots, `chips-summary-${c.field}`, {
2229
2229
  field: c,
2230
2230
  formData: e.formData,
2231
2231
  items: se(c)
@@ -2257,7 +2257,7 @@ var on = { class: "w-crud-form" }, sn = {
2257
2257
  "save"
2258
2258
  ],
2259
2259
  setup(e, { emit: t }) {
2260
- let n = s(), r = e, i = t, o = P(null), c = P(null);
2260
+ let n = s(), r = e, i = t, o = N(null), c = N(null);
2261
2261
  function l() {
2262
2262
  o.value ? o.value.validateAll().length === 0 && i("save") : i("save");
2263
2263
  }
@@ -2294,12 +2294,12 @@ var on = { class: "w-crud-form" }, sn = {
2294
2294
  disabled: e.disabled,
2295
2295
  columns: e.formColumns,
2296
2296
  "onUpdate:field": r[0] ||= (e, t) => i("update:field", e, t)
2297
- }, h({ _: 2 }, [F(e.fields, (e) => ({
2297
+ }, h({ _: 2 }, [P(e.fields, (e) => ({
2298
2298
  name: `field-${e.field}`,
2299
- fn: H((n) => [I(t.$slots, `field-${e.field}`, O(b(n)))])
2300
- })), F(e.fields.filter((e) => e.type === "image"), (e) => ({
2299
+ fn: H((n) => [F(t.$slots, `field-${e.field}`, O(b(n)))])
2300
+ })), P(e.fields.filter((e) => e.type === "image"), (e) => ({
2301
2301
  name: `image-${e.field}`,
2302
- fn: H((n) => [I(t.$slots, `image-${e.field}`, O(b(n)))])
2302
+ fn: H((n) => [F(t.$slots, `image-${e.field}`, O(b(n)))])
2303
2303
  }))]), 1032, [
2304
2304
  "fields",
2305
2305
  "form-data",
@@ -2307,11 +2307,11 @@ var on = { class: "w-crud-form" }, sn = {
2307
2307
  "disabled",
2308
2308
  "columns"
2309
2309
  ]),
2310
- I(t.$slots, "after-fields", {
2310
+ F(t.$slots, "after-fields", {
2311
2311
  formData: e.formData,
2312
2312
  isEditing: e.isEditing
2313
2313
  }),
2314
- m("div", Mn, [I(t.$slots, "footer", {
2314
+ m("div", Mn, [F(t.$slots, "footer", {
2315
2315
  saving: e.saving,
2316
2316
  disabled: e.disabled
2317
2317
  }, () => [v(R(q), {
@@ -2502,7 +2502,7 @@ var Rn = { class: "w-crud" }, zn = {
2502
2502
  "print"
2503
2503
  ], ["update:selectedRow"]),
2504
2504
  setup(e, { expose: t, emit: n }) {
2505
- let r = s(), a = e, o = n, c = B(), { formatNumber: _ } = i(), y = P({});
2505
+ let r = s(), a = e, o = n, c = B(), { formatNumber: _ } = i(), y = N({});
2506
2506
  function x() {
2507
2507
  return a.persistState ? `wcrud:view:${a.persistState}` : null;
2508
2508
  }
@@ -2514,7 +2514,7 @@ var Rn = { class: "w-crud" }, zn = {
2514
2514
  }
2515
2515
  return a.defaultView;
2516
2516
  }
2517
- let C = P(S());
2517
+ let C = N(S());
2518
2518
  function w(e) {
2519
2519
  return C.value === e;
2520
2520
  }
@@ -2523,18 +2523,18 @@ var Rn = { class: "w-crud" }, zn = {
2523
2523
  let t = x();
2524
2524
  t && localStorage.setItem(t, e);
2525
2525
  }
2526
- let E = u(() => (a.crud.pagination.page - 1) * a.crud.pagination.pageSize), A = ne({ hidden: [] }), te = P(null);
2526
+ let E = u(() => (a.crud.pagination.page - 1) * a.crud.pagination.pageSize), A = ne({ hidden: [] }), te = N(null);
2527
2527
  function M() {
2528
2528
  return a.persistState ? `wcrud:cols:${a.persistState}` : null;
2529
2529
  }
2530
- function N() {
2530
+ function re() {
2531
2531
  let e = M();
2532
2532
  if (e) try {
2533
2533
  let t = JSON.parse(localStorage.getItem(e) || "{}");
2534
2534
  Array.isArray(t.hidden) && (A.hidden = t.hidden);
2535
2535
  } catch {}
2536
2536
  }
2537
- function ie() {
2537
+ function I() {
2538
2538
  let e = M();
2539
2539
  e && localStorage.setItem(e, JSON.stringify({ hidden: A.hidden }));
2540
2540
  }
@@ -2559,7 +2559,7 @@ var Rn = { class: "w-crud" }, zn = {
2559
2559
  V(a.crud.columnFilters, se, { deep: !0 }), V(a.crud.search, se);
2560
2560
  let W = u(() => a.crud.config.columns.filter((e) => e.visible !== !1));
2561
2561
  function G(e, t) {
2562
- A.hidden = t ? A.hidden.filter((t) => t !== e) : [.../* @__PURE__ */ new Set([...A.hidden, e])], ie();
2562
+ A.hidden = t ? A.hidden.filter((t) => t !== e) : [.../* @__PURE__ */ new Set([...A.hidden, e])], I();
2563
2563
  }
2564
2564
  let _e = u(() => a.crud.config.columns.filter((e) => e.visible !== !1 && !A.hidden.includes(e.field)).map((e) => e.type === "number" && !e.align || e.type === "currency" && !e.align ? {
2565
2565
  ...e,
@@ -2586,39 +2586,39 @@ var Rn = { class: "w-crud" }, zn = {
2586
2586
  tooltip: "Excluir",
2587
2587
  severity: "danger"
2588
2588
  }), e;
2589
- }), xe = u(() => a.crud.config.rowActions ?? be.value), Se = u(() => xe.value.length > 0 || !!c["row-actions"]);
2590
- function Ce(e, t) {
2589
+ }), X = u(() => a.crud.config.rowActions ?? be.value), xe = u(() => X.value.length > 0 || !!c["row-actions"]);
2590
+ function Se(e, t) {
2591
2591
  if (e.handler) {
2592
2592
  e.handler(t);
2593
2593
  return;
2594
2594
  }
2595
- e.action === "edit" ? a.crud.openEditDialog(t) : e.action === "view" ? a.crud.openViewDialog(t) : e.action === "duplicate" ? a.crud.openDuplicateDialog(t) : e.action === "delete" && (c["delete-message"] ? (we.value = t, Te.value = !0) : a.crud.confirmDelete(t));
2595
+ e.action === "edit" ? a.crud.openEditDialog(t) : e.action === "view" ? a.crud.openViewDialog(t) : e.action === "duplicate" ? a.crud.openDuplicateDialog(t) : e.action === "delete" && (c["delete-message"] ? (Ce.value = t, we.value = !0) : a.crud.confirmDelete(t));
2596
2596
  }
2597
- let we = P(null), Te = P(!1), Ee = P(!1);
2598
- async function De() {
2599
- if (we.value) {
2600
- Ee.value = !0;
2597
+ let Ce = N(null), we = N(!1), Te = N(!1);
2598
+ async function Ee() {
2599
+ if (Ce.value) {
2600
+ Te.value = !0;
2601
2601
  try {
2602
- await a.crud.performDelete(we.value), Te.value = !1, we.value = null;
2602
+ await a.crud.performDelete(Ce.value), we.value = !1, Ce.value = null;
2603
2603
  } finally {
2604
- Ee.value = !1;
2604
+ Te.value = !1;
2605
2605
  }
2606
2606
  }
2607
2607
  }
2608
- function Oe(e, t) {
2608
+ function De(e, t) {
2609
2609
  return !e.visible || e.visible(t);
2610
2610
  }
2611
- function ke(e, t) {
2611
+ function Oe(e, t) {
2612
2612
  return e.disabled ? e.disabled(t) : !1;
2613
2613
  }
2614
- let X = u(() => {
2614
+ let ke = u(() => {
2615
2615
  let e = [];
2616
2616
  return a.showKpi && e.push({
2617
2617
  icon: a.kpiIcon,
2618
2618
  label: a.kpiLabel,
2619
2619
  value: _(a.crud.pagination.rows, 0)
2620
2620
  }), e.push(...a.extraKpis), e;
2621
- }), Z = u(() => a.crud.config.canCreate !== !1), Q = z(e, "selectedRow"), $ = u(() => a.crud.config.selectionMode === "multiple"), Ae = P(null);
2621
+ }), Z = u(() => a.crud.config.canCreate !== !1), Q = z(e, "selectedRow"), $ = u(() => a.crud.config.selectionMode === "multiple"), Ae = N(null);
2622
2622
  function je(e) {
2623
2623
  let t = a.crud.config.pk || "id", n = a.crud.items.value.findIndex((n) => n[t] === e);
2624
2624
  if (n < 0) return;
@@ -2657,7 +2657,7 @@ var Rn = { class: "w-crud" }, zn = {
2657
2657
  let n = ze(e);
2658
2658
  Be[n] && clearTimeout(Be[n]), Be[n] = setTimeout(() => a.crud.setColumnFilter(n, t || null), 300);
2659
2659
  }
2660
- let He = P(null);
2660
+ let He = N(null);
2661
2661
  function Ue(e) {
2662
2662
  Q.value = e;
2663
2663
  }
@@ -2675,12 +2675,12 @@ var Rn = { class: "w-crud" }, zn = {
2675
2675
  icon: "pi pi-eye",
2676
2676
  command: () => a.crud.openViewDialog(e)
2677
2677
  }];
2678
- for (let n of xe.value) Oe(n, e) && t.push({
2678
+ for (let n of X.value) De(n, e) && t.push({
2679
2679
  label: n.tooltip ?? n.action,
2680
2680
  icon: n.icon,
2681
2681
  class: n.severity === "danger" ? "w-crud-ctx-danger" : void 0,
2682
- disabled: ke(n, e),
2683
- command: () => Ce(n, e)
2682
+ disabled: Oe(n, e),
2683
+ command: () => Se(n, e)
2684
2684
  });
2685
2685
  return a.showPrint && t.push({
2686
2686
  label: "Imprimir",
@@ -2695,7 +2695,7 @@ var Rn = { class: "w-crud" }, zn = {
2695
2695
  function Je() {
2696
2696
  Q.value && o("print", Q.value);
2697
2697
  }
2698
- let Ye = P(!1);
2698
+ let Ye = N(!1);
2699
2699
  async function Xe() {
2700
2700
  if (!Ye.value) {
2701
2701
  Ye.value = !0;
@@ -2707,24 +2707,24 @@ var Rn = { class: "w-crud" }, zn = {
2707
2707
  }
2708
2708
  }
2709
2709
  return ee(() => {
2710
- N(), oe(), a.autoInit && a.crud.init();
2710
+ re(), oe(), a.autoInit && a.crud.init();
2711
2711
  }), (t, n) => {
2712
- let i = re("tooltip");
2712
+ let i = ie("tooltip");
2713
2713
  return j(), p("div", Rn, [
2714
- e.showHeader ? (j(), p("div", zn, [m("div", Bn, [m("h1", Vn, L(e.title), 1), e.subtitle ? (j(), p("p", Hn, L(e.subtitle), 1)) : f("", !0)]), m("div", Un, [I(t.$slots, "header-actions"), Z.value && !e.actionRail ? (j(), d(R(q), {
2714
+ e.showHeader ? (j(), p("div", zn, [m("div", Bn, [m("h1", Vn, L(e.title), 1), e.subtitle ? (j(), p("p", Hn, L(e.subtitle), 1)) : f("", !0)]), m("div", Un, [F(t.$slots, "header-actions"), Z.value && !e.actionRail ? (j(), d(R(q), {
2715
2715
  key: 0,
2716
2716
  label: "Novo",
2717
2717
  icon: "pi pi-plus",
2718
2718
  onClick: n[0] ||= (t) => e.crud.openCreateDialog()
2719
2719
  })) : f("", !0)])])) : f("", !0),
2720
- I(t.$slots, "before-table", {}, () => [X.value.length ? (j(), p("div", Wn, [(j(!0), p(l, null, F(X.value, (e, t) => (j(), p("div", {
2720
+ F(t.$slots, "before-table", {}, () => [ke.value.length ? (j(), p("div", Wn, [(j(!0), p(l, null, P(ke.value, (e, t) => (j(), p("div", {
2721
2721
  key: t,
2722
2722
  class: "w-crud-kpi"
2723
2723
  }, [m("div", { class: D(["w-crud-kpi-icon", e.severity ? `w-crud-kpi-icon--${e.severity}` : ""]) }, [m("i", {
2724
2724
  class: D([e.icon]),
2725
2725
  style: k(e.color ? `color: ${e.color}` : "")
2726
2726
  }, null, 6)], 2), m("div", Gn, [m("div", Kn, L(e.label), 1), m("div", qn, L(e.value), 1)])]))), 128))])) : f("", !0)]),
2727
- m("div", { class: D(["w-crud-content", { "w-crud-content--rail": e.actionRail }]) }, [m("div", Jn, [Le.value.length ? (j(), p("div", Yn, [(j(!0), p(l, null, F(Le.value, (t) => (j(), p(l, { key: t.field }, [(t.filter?.type || "text") === "text" ? (j(), d(R(J), {
2727
+ m("div", { class: D(["w-crud-content", { "w-crud-content--rail": e.actionRail }]) }, [m("div", Jn, [Le.value.length ? (j(), p("div", Yn, [(j(!0), p(l, null, P(Le.value, (t) => (j(), p(l, { key: t.field }, [(t.filter?.type || "text") === "text" ? (j(), d(R(J), {
2728
2728
  key: 0,
2729
2729
  "model-value": e.crud.columnFilters[ze(t)] ?? "",
2730
2730
  placeholder: t.filter?.placeholder || t.header,
@@ -2782,10 +2782,10 @@ var Rn = { class: "w-crud" }, zn = {
2782
2782
  onClick: n[1] ||= (t) => e.crud.clearColumnFilters()
2783
2783
  })) : f("", !0)])) : f("", !0), C.value === "table" ? (j(), p("div", Xn, [$.value && e.crud.selectedItems.value.length ? (j(), p("div", Zn, [
2784
2784
  m("span", Qn, L(e.crud.selectedItems.value.length) + " selecionado(s) ", 1),
2785
- I(t.$slots, "bulk-actions", {
2785
+ F(t.$slots, "bulk-actions", {
2786
2786
  selected: e.crud.selectedItems.value,
2787
2787
  crud: e.crud
2788
- }, () => [(j(!0), p(l, null, F(e.crud.config.bulkActions || [], (t) => (j(), d(R(q), {
2788
+ }, () => [(j(!0), p(l, null, P(e.crud.config.bulkActions || [], (t) => (j(), d(R(q), {
2789
2789
  key: t.action,
2790
2790
  label: t.label,
2791
2791
  icon: t.icon,
@@ -2864,10 +2864,10 @@ var Rn = { class: "w-crud" }, zn = {
2864
2864
  }, null, 8, ["model-value", "onInput"])]),
2865
2865
  _: 1
2866
2866
  })) : f("", !0),
2867
- I(t.$slots, "toolbar-start"),
2868
- I(t.$slots, "toolbar-filters")
2867
+ F(t.$slots, "toolbar-start"),
2868
+ F(t.$slots, "toolbar-filters")
2869
2869
  ]), m("div", tr, [
2870
- I(t.$slots, "toolbar-actions"),
2870
+ F(t.$slots, "toolbar-actions"),
2871
2871
  e.persistState ? (j(), p(l, { key: 0 }, [U(v(R(q), {
2872
2872
  icon: "pi pi-sliders-h",
2873
2873
  text: "",
@@ -2882,7 +2882,7 @@ var Rn = { class: "w-crud" }, zn = {
2882
2882
  ref_key: "chooser",
2883
2883
  ref: te
2884
2884
  }, {
2885
- default: H(() => [m("div", nr, [(j(!0), p(l, null, F(W.value, (e) => (j(), p("div", {
2885
+ default: H(() => [m("div", nr, [(j(!0), p(l, null, P(W.value, (e) => (j(), p("div", {
2886
2886
  key: e.field,
2887
2887
  style: {
2888
2888
  display: "flex",
@@ -2940,7 +2940,7 @@ var Rn = { class: "w-crud" }, zn = {
2940
2940
  onClick: n[6] ||= (t) => e.crud.openCreateDialog()
2941
2941
  })) : f("", !0)
2942
2942
  ])])]),
2943
- empty: H(() => [I(t.$slots, "empty", {}, () => [n[22] ||= m("div", { class: "w-crud-empty" }, [
2943
+ empty: H(() => [F(t.$slots, "empty", {}, () => [n[22] ||= m("div", { class: "w-crud-empty" }, [
2944
2944
  m("div", { class: "w-crud-empty-icon" }, [m("i", { class: "pi pi-inbox" })]),
2945
2945
  m("p", { class: "w-crud-empty-title" }, "Nenhum registro encontrado"),
2946
2946
  m("p", { class: "w-crud-empty-text" }, "Tente ajustar sua busca ou crie um novo registro")
@@ -2956,7 +2956,7 @@ var Rn = { class: "w-crud" }, zn = {
2956
2956
  expander: "",
2957
2957
  style: { width: "3rem" }
2958
2958
  })) : f("", !0),
2959
- (j(!0), p(l, null, F(_e.value, (e) => (j(), d(R(K), {
2959
+ (j(!0), p(l, null, P(_e.value, (e) => (j(), d(R(K), {
2960
2960
  key: e.field,
2961
2961
  field: e.field,
2962
2962
  header: e.header,
@@ -2965,7 +2965,7 @@ var Rn = { class: "w-crud" }, zn = {
2965
2965
  "header-class": ve(e),
2966
2966
  "body-class": ve(e)
2967
2967
  }, h({
2968
- body: H(({ data: n }) => [I(t.$slots, `column-${e.field}`, {
2968
+ body: H(({ data: n }) => [F(t.$slots, `column-${e.field}`, {
2969
2969
  data: n,
2970
2970
  value: n[e.field]
2971
2971
  }, () => [v(Ke, {
@@ -3004,20 +3004,20 @@ var Rn = { class: "w-crud" }, zn = {
3004
3004
  "header-class",
3005
3005
  "body-class"
3006
3006
  ]))), 128)),
3007
- Se.value && !e.actionRail ? (j(), d(R(K), {
3007
+ xe.value && !e.actionRail ? (j(), d(R(K), {
3008
3008
  key: 2,
3009
3009
  "header-class": "w-crud-actions-header",
3010
- style: k({ width: `${(xe.value.length + +!!R(c)["row-actions"]) * 2.5 + 1}rem` })
3010
+ style: k({ width: `${(X.value.length + +!!R(c)["row-actions"]) * 2.5 + 1}rem` })
3011
3011
  }, {
3012
- body: H(({ data: n }) => [m("div", ar, [(j(!0), p(l, null, F(xe.value, (e) => (j(), p(l, { key: e.action }, [Oe(e, n) ? U((j(), d(R(q), {
3012
+ body: H(({ data: n }) => [m("div", ar, [(j(!0), p(l, null, P(X.value, (e) => (j(), p(l, { key: e.action }, [De(e, n) ? U((j(), d(R(q), {
3013
3013
  key: 0,
3014
3014
  icon: e.icon,
3015
3015
  text: "",
3016
3016
  rounded: "",
3017
3017
  size: "small",
3018
3018
  severity: e.severity,
3019
- disabled: ke(e, n),
3020
- onClick: (t) => Ce(e, n)
3019
+ disabled: Oe(e, n),
3020
+ onClick: (t) => Se(e, n)
3021
3021
  }, null, 8, [
3022
3022
  "icon",
3023
3023
  "severity",
@@ -3028,7 +3028,7 @@ var Rn = { class: "w-crud" }, zn = {
3028
3028
  e.tooltip,
3029
3029
  void 0,
3030
3030
  { top: !0 }
3031
- ]]) : f("", !0)], 64))), 128)), I(t.$slots, "row-actions", {
3031
+ ]]) : f("", !0)], 64))), 128)), F(t.$slots, "row-actions", {
3032
3032
  data: n,
3033
3033
  crud: e.crud
3034
3034
  })])]),
@@ -3038,7 +3038,7 @@ var Rn = { class: "w-crud" }, zn = {
3038
3038
  _: 2
3039
3039
  }, [e.expandable ? {
3040
3040
  name: "expansion",
3041
- fn: H((e) => [I(t.$slots, "expansion", { data: e.data })]),
3041
+ fn: H((e) => [F(t.$slots, "expansion", { data: e.data })]),
3042
3042
  key: "0"
3043
3043
  } : void 0]), 1032, [
3044
3044
  "expanded-rows",
@@ -3066,10 +3066,10 @@ var Rn = { class: "w-crud" }, zn = {
3066
3066
  }, null, 8, ["model-value", "onInput"])]),
3067
3067
  _: 1
3068
3068
  })) : f("", !0),
3069
- I(t.$slots, "toolbar-start"),
3070
- I(t.$slots, "toolbar-filters")
3069
+ F(t.$slots, "toolbar-start"),
3070
+ F(t.$slots, "toolbar-filters")
3071
3071
  ]), m("div", lr, [
3072
- I(t.$slots, "toolbar-actions"),
3072
+ F(t.$slots, "toolbar-actions"),
3073
3073
  e.exportCsv ? U((j(), d(R(q), {
3074
3074
  key: 0,
3075
3075
  icon: "pi pi-download",
@@ -3106,21 +3106,21 @@ var Rn = { class: "w-crud" }, zn = {
3106
3106
  e.crud.loading.value ? (j(), p("div", dr, [...n[23] ||= [m("i", { class: "pi pi-spin pi-spinner" }, null, -1)]])) : e.crud.items.value.length ? (j(), p("div", {
3107
3107
  key: 2,
3108
3108
  class: D(["w-crud-cards", { "w-crud-cards--bare": e.cardBare }])
3109
- }, [(j(!0), p(l, null, F(e.crud.items.value, (n, r) => (j(), p("div", {
3109
+ }, [(j(!0), p(l, null, P(e.crud.items.value, (n, r) => (j(), p("div", {
3110
3110
  key: n[e.crud.config.pk || "id"] ?? r,
3111
3111
  class: D(e.cardBare ? "w-crud-card-bare" : ["w-crud-card", { "w-crud-card--selected": Q.value === n }]),
3112
3112
  onClick: (t) => !e.cardBare && Ue(n),
3113
3113
  onDblclick: (t) => !e.cardBare && e.crud.config.canEdit !== !1 && e.crud.openEditDialog(n),
3114
3114
  onContextmenu: (t) => !e.cardBare && Ge(t, n)
3115
- }, [I(t.$slots, "card", {
3115
+ }, [F(t.$slots, "card", {
3116
3116
  data: n,
3117
3117
  crud: e.crud,
3118
3118
  columns: ye.value,
3119
3119
  index: r
3120
- }, () => [m("div", pr, [(j(!0), p(l, null, F(ye.value, (e, r) => (j(), p("div", {
3120
+ }, () => [m("div", pr, [(j(!0), p(l, null, P(ye.value, (e, r) => (j(), p("div", {
3121
3121
  key: e.field,
3122
3122
  class: D(["w-crud-card-row", { "w-crud-card-row--title": r === 0 }])
3123
- }, [r === 0 ? f("", !0) : (j(), p("span", mr, L(e.header), 1)), m("span", hr, [I(t.$slots, `column-${e.field}`, {
3123
+ }, [r === 0 ? f("", !0) : (j(), p("span", mr, L(e.header), 1)), m("span", hr, [F(t.$slots, `column-${e.field}`, {
3124
3124
  data: n,
3125
3125
  value: n[e.field]
3126
3126
  }, () => [v(Ke, {
@@ -3131,15 +3131,15 @@ var Rn = { class: "w-crud" }, zn = {
3131
3131
  "column",
3132
3132
  "value",
3133
3133
  "row-data"
3134
- ])])])], 2))), 128))]), Se.value && !e.actionRail ? (j(), p("div", gr, [(j(!0), p(l, null, F(xe.value, (e) => (j(), p(l, { key: e.action }, [Oe(e, n) ? U((j(), d(R(q), {
3134
+ ])])])], 2))), 128))]), xe.value && !e.actionRail ? (j(), p("div", gr, [(j(!0), p(l, null, P(X.value, (e) => (j(), p(l, { key: e.action }, [De(e, n) ? U((j(), d(R(q), {
3135
3135
  key: 0,
3136
3136
  icon: e.icon,
3137
3137
  text: "",
3138
3138
  rounded: "",
3139
3139
  size: "small",
3140
3140
  severity: e.severity,
3141
- disabled: ke(e, n),
3142
- onClick: (t) => Ce(e, n)
3141
+ disabled: Oe(e, n),
3142
+ onClick: (t) => Se(e, n)
3143
3143
  }, null, 8, [
3144
3144
  "icon",
3145
3145
  "severity",
@@ -3150,11 +3150,11 @@ var Rn = { class: "w-crud" }, zn = {
3150
3150
  e.tooltip,
3151
3151
  void 0,
3152
3152
  { top: !0 }
3153
- ]]) : f("", !0)], 64))), 128)), I(t.$slots, "row-actions", {
3153
+ ]]) : f("", !0)], 64))), 128)), F(t.$slots, "row-actions", {
3154
3154
  data: n,
3155
3155
  crud: e.crud
3156
- })])) : f("", !0)])], 42, fr))), 128))], 2)) : I(t.$slots, "empty", {}, () => [n[24] ||= g("<div class=\"w-crud-empty\"><div class=\"w-crud-empty-icon\"><i class=\"pi pi-inbox\"></i></div><p class=\"w-crud-empty-title\">Nenhum registro encontrado</p><p class=\"w-crud-empty-text\">Tente ajustar sua busca ou crie um novo registro</p></div>", 1)], void 0, 1),
3157
- e.crud.items.value.length ? (j(), d(R(Y), {
3156
+ })])) : f("", !0)])], 42, fr))), 128))], 2)) : F(t.$slots, "empty", {}, () => [n[24] ||= g("<div class=\"w-crud-empty\"><div class=\"w-crud-empty-icon\"><i class=\"pi pi-inbox\"></i></div><p class=\"w-crud-empty-title\">Nenhum registro encontrado</p><p class=\"w-crud-empty-text\">Tente ajustar sua busca ou crie um novo registro</p></div>", 1)], void 0, 1),
3157
+ e.crud.items.value.length ? (j(), d(R(he), {
3158
3158
  key: 3,
3159
3159
  rows: e.crud.pagination.pageSize,
3160
3160
  "total-records": e.crud.pagination.rows,
@@ -3186,15 +3186,15 @@ var Rn = { class: "w-crud" }, zn = {
3186
3186
  void 0,
3187
3187
  { left: !0 }
3188
3188
  ]]) : f("", !0),
3189
- Z.value && xe.value.length ? (j(), p("div", vr)) : f("", !0),
3190
- (j(!0), p(l, null, F(xe.value, (e) => (j(), p(l, { key: e.action }, [!Q.value || Oe(e, Q.value) ? U((j(), d(R(q), {
3189
+ Z.value && X.value.length ? (j(), p("div", vr)) : f("", !0),
3190
+ (j(!0), p(l, null, P(X.value, (e) => (j(), p(l, { key: e.action }, [!Q.value || De(e, Q.value) ? U((j(), d(R(q), {
3191
3191
  key: 0,
3192
3192
  icon: e.icon,
3193
3193
  text: "",
3194
3194
  rounded: "",
3195
3195
  severity: e.severity,
3196
- disabled: !Q.value || ke(e, Q.value),
3197
- onClick: (t) => Q.value && Ce(e, Q.value)
3196
+ disabled: !Q.value || Oe(e, Q.value),
3197
+ onClick: (t) => Q.value && Se(e, Q.value)
3198
3198
  }, null, 8, [
3199
3199
  "icon",
3200
3200
  "severity",
@@ -3206,7 +3206,7 @@ var Rn = { class: "w-crud" }, zn = {
3206
3206
  void 0,
3207
3207
  { left: !0 }
3208
3208
  ]]) : f("", !0)], 64))), 128)),
3209
- I(t.$slots, "rail-actions", {
3209
+ F(t.$slots, "rail-actions", {
3210
3210
  selected: Q.value,
3211
3211
  crud: e.crud
3212
3212
  }),
@@ -3238,13 +3238,13 @@ var Rn = { class: "w-crud" }, zn = {
3238
3238
  { left: !0 }
3239
3239
  ]]) : f("", !0)
3240
3240
  ])) : f("", !0)], 2),
3241
- e.contextMenu ? (j(), d(R(he), {
3241
+ e.contextMenu ? (j(), d(R(Y), {
3242
3242
  key: 1,
3243
3243
  ref_key: "cm",
3244
3244
  ref: He,
3245
3245
  model: qe.value
3246
3246
  }, null, 8, ["model"])) : f("", !0),
3247
- I(t.$slots, "form-dialog", {
3247
+ F(t.$slots, "form-dialog", {
3248
3248
  crud: e.crud,
3249
3249
  dialogWidth: e.dialogWidth
3250
3250
  }, () => [v(Nn, {
@@ -3263,9 +3263,9 @@ var Rn = { class: "w-crud" }, zn = {
3263
3263
  },
3264
3264
  "onUpdate:field": n[18] ||= (t, n) => e.crud.setFormField(t, n),
3265
3265
  onSave: n[19] ||= (t) => e.crud.save()
3266
- }, h({ _: 2 }, [F(e.crud.config.form, (e) => ({
3266
+ }, h({ _: 2 }, [P(e.crud.config.form, (e) => ({
3267
3267
  name: `field-${e.field}`,
3268
- fn: H((n) => [I(t.$slots, `field-${e.field}`, O(b(n)))])
3268
+ fn: H((n) => [F(t.$slots, `field-${e.field}`, O(b(n)))])
3269
3269
  }))]), 1032, [
3270
3270
  "visible",
3271
3271
  "title",
@@ -3280,8 +3280,8 @@ var Rn = { class: "w-crud" }, zn = {
3280
3280
  ])]),
3281
3281
  t.$slots["delete-message"] ? (j(), d(R(ge), {
3282
3282
  key: 2,
3283
- visible: Te.value,
3284
- "onUpdate:visible": n[21] ||= (e) => Te.value = e,
3283
+ visible: we.value,
3284
+ "onUpdate:visible": n[21] ||= (e) => we.value = e,
3285
3285
  "append-to": R(r)?.hostEl.value ?? "body",
3286
3286
  header: "Confirmar Exclusão",
3287
3287
  modal: "",
@@ -3294,17 +3294,17 @@ var Rn = { class: "w-crud" }, zn = {
3294
3294
  label: "Cancelar",
3295
3295
  severity: "secondary",
3296
3296
  text: "",
3297
- disabled: Ee.value,
3298
- onClick: n[20] ||= (e) => Te.value = !1
3297
+ disabled: Te.value,
3298
+ onClick: n[20] ||= (e) => we.value = !1
3299
3299
  }, null, 8, ["disabled"]), v(R(q), {
3300
3300
  type: "button",
3301
3301
  label: "Excluir",
3302
3302
  icon: "pi pi-trash",
3303
3303
  severity: "danger",
3304
- loading: Ee.value,
3305
- onClick: De
3304
+ loading: Te.value,
3305
+ onClick: Ee
3306
3306
  }, null, 8, ["loading"])]),
3307
- default: H(() => [I(t.$slots, "delete-message", { item: we.value })]),
3307
+ default: H(() => [F(t.$slots, "delete-message", { item: Ce.value })]),
3308
3308
  _: 3
3309
3309
  }, 8, ["visible", "append-to"])) : f("", !0)
3310
3310
  ]);
@@ -3377,7 +3377,7 @@ var Rn = { class: "w-crud" }, zn = {
3377
3377
  "remove"
3378
3378
  ],
3379
3379
  setup(e, { emit: t }) {
3380
- let n = e, r = t, { formatNumber: a } = i(), o = P(/* @__PURE__ */ new Set());
3380
+ let n = e, r = t, { formatNumber: a } = i(), o = N(/* @__PURE__ */ new Set());
3381
3381
  function s(e) {
3382
3382
  return o.value.has(e);
3383
3383
  }
@@ -3440,7 +3440,7 @@ var Rn = { class: "w-crud" }, zn = {
3440
3440
  let t = n.modelValue.reduce((t, n) => t + S(n[e.field]), 0);
3441
3441
  return `${a(t, e.decimals ?? 2)}${e.suffix ?? ""}`;
3442
3442
  }
3443
- let te = u(() => n.columns.find((e) => !e.footer || e.footer === "none")?.field ?? null), M = u(() => n.columns.length + +!!n.expandable + +!!n.removable), ne = u(() => n.columns.some((e) => e.group)), N = u(() => {
3443
+ let te = u(() => n.columns.find((e) => !e.footer || e.footer === "none")?.field ?? null), M = u(() => n.columns.length + +!!n.expandable + +!!n.removable), ne = u(() => n.columns.some((e) => e.group)), re = u(() => {
3444
3444
  let e = [];
3445
3445
  for (let t of n.columns) {
3446
3446
  let n = t.group ?? "", r = e[e.length - 1];
@@ -3452,7 +3452,7 @@ var Rn = { class: "w-crud" }, zn = {
3452
3452
  }
3453
3453
  return e;
3454
3454
  });
3455
- return (t, n) => (j(), p("div", xr, [t.$slots.toolbar || e.addLabel ? (j(), p("div", Sr, [I(t.$slots, "toolbar", {}, () => [m("button", {
3455
+ return (t, n) => (j(), p("div", xr, [t.$slots.toolbar || e.addLabel ? (j(), p("div", Sr, [F(t.$slots, "toolbar", {}, () => [m("button", {
3456
3456
  type: "button",
3457
3457
  class: "w-editable-table__add",
3458
3458
  disabled: e.disabled,
@@ -3460,7 +3460,7 @@ var Rn = { class: "w-crud" }, zn = {
3460
3460
  }, [n[1] ||= m("i", { class: "pi pi-plus" }, null, -1), _(L(e.addLabel), 1)], 8, Cr)])])) : f("", !0), m("table", wr, [
3461
3461
  m("thead", null, [ne.value ? (j(), p("tr", Tr, [
3462
3462
  e.expandable ? (j(), p("th", Er)) : f("", !0),
3463
- (j(!0), p(l, null, F(N.value, (e) => (j(), p("th", {
3463
+ (j(!0), p(l, null, P(re.value, (e) => (j(), p("th", {
3464
3464
  key: e.key,
3465
3465
  colspan: e.span,
3466
3466
  class: D(["w-editable-table__group", { "w-editable-table__group--label": e.label }])
@@ -3468,7 +3468,7 @@ var Rn = { class: "w-crud" }, zn = {
3468
3468
  e.removable ? (j(), p("th", Or)) : f("", !0)
3469
3469
  ])) : f("", !0), m("tr", null, [
3470
3470
  e.expandable ? (j(), p("th", kr)) : f("", !0),
3471
- (j(!0), p(l, null, F(e.columns, (e) => (j(), p("th", {
3471
+ (j(!0), p(l, null, P(e.columns, (e) => (j(), p("th", {
3472
3472
  key: e.field,
3473
3473
  class: D(y(e)),
3474
3474
  style: k(b(e))
@@ -3478,8 +3478,8 @@ var Rn = { class: "w-crud" }, zn = {
3478
3478
  e.modelValue.length ? f("", !0) : (j(), p("tbody", jr, [m("tr", null, [m("td", {
3479
3479
  colspan: M.value,
3480
3480
  class: "w-editable-table__empty"
3481
- }, [I(t.$slots, "empty", {}, () => [_(L(e.emptyMessage), 1)])], 8, Mr)])])),
3482
- (j(!0), p(l, null, F(e.modelValue, (r, i) => (j(), p("tbody", { key: O(r, i) }, [m("tr", { class: D(["w-editable-table__row", { "w-editable-table__row--alt": i % 2 == 1 }]) }, [
3481
+ }, [F(t.$slots, "empty", {}, () => [_(L(e.emptyMessage), 1)])], 8, Mr)])])),
3482
+ (j(!0), p(l, null, P(e.modelValue, (r, i) => (j(), p("tbody", { key: O(r, i) }, [m("tr", { class: D(["w-editable-table__row", { "w-editable-table__row--alt": i % 2 == 1 }]) }, [
3483
3483
  e.expandable ? (j(), p("td", Nr, [m("button", {
3484
3484
  type: "button",
3485
3485
  class: "w-editable-table__toggle",
@@ -3487,11 +3487,11 @@ var Rn = { class: "w-crud" }, zn = {
3487
3487
  "aria-label": "Detalhes da linha",
3488
3488
  onClick: (e) => c(i)
3489
3489
  }, [m("i", { class: D(s(i) ? "pi pi-chevron-down" : "pi pi-chevron-right") }, null, 2)], 8, Pr)])) : f("", !0),
3490
- (j(!0), p(l, null, F(e.columns, (e) => (j(), p("td", {
3490
+ (j(!0), p(l, null, P(e.columns, (e) => (j(), p("td", {
3491
3491
  key: e.field,
3492
3492
  class: D(y(e)),
3493
3493
  style: k(b(e))
3494
- }, [I(t.$slots, `cell-${e.field}`, {
3494
+ }, [F(t.$slots, `cell-${e.field}`, {
3495
3495
  row: r,
3496
3496
  index: i,
3497
3497
  value: r[e.field],
@@ -3557,17 +3557,17 @@ var Rn = { class: "w-crud" }, zn = {
3557
3557
  "aria-label": "Remover linha",
3558
3558
  onClick: (e) => E(r, i)
3559
3559
  }, [...n[2] ||= [m("i", { class: "pi pi-trash" }, null, -1)]], 8, Lr)])) : f("", !0)
3560
- ], 2), e.expandable && s(i) ? (j(), p("tr", Rr, [m("td", { colspan: M.value }, [I(t.$slots, "expansion", {
3560
+ ], 2), e.expandable && s(i) ? (j(), p("tr", Rr, [m("td", { colspan: M.value }, [F(t.$slots, "expansion", {
3561
3561
  row: r,
3562
3562
  index: i
3563
3563
  })], 8, zr)])) : f("", !0)]))), 128)),
3564
3564
  A.value ? (j(), p("tfoot", Br, [m("tr", Vr, [
3565
3565
  e.expandable ? (j(), p("td", Hr)) : f("", !0),
3566
- (j(!0), p(l, null, F(e.columns, (n) => (j(), p("td", {
3566
+ (j(!0), p(l, null, P(e.columns, (n) => (j(), p("td", {
3567
3567
  key: n.field,
3568
3568
  class: D(y(n)),
3569
3569
  style: k(b(n))
3570
- }, [I(t.$slots, `footer-${n.field}`, {
3570
+ }, [F(t.$slots, `footer-${n.field}`, {
3571
3571
  rows: e.modelValue,
3572
3572
  column: n
3573
3573
  }, () => [n.field === te.value ? (j(), p("span", Ur, L(e.footerLabel), 1)) : (j(), p("span", Wr, L(ee(n)), 1))])], 6))), 128)),
@@ -3623,7 +3623,7 @@ var Rn = { class: "w-crud" }, zn = {
3623
3623
  t.crud.config.onChange(e);
3624
3624
  }
3625
3625
  return (t, n) => (j(), p("div", qr, [
3626
- e.title || t.$slots["toolbar-actions"] ? (j(), p("div", Jr, [m("div", Yr, [e.title ? (j(), p("h3", Xr, [_(L(e.title) + " ", 1), r.value.length ? (j(), p("span", Zr, L(r.value.length), 1)) : f("", !0)])) : f("", !0), e.subtitle ? (j(), p("p", Qr, L(e.subtitle), 1)) : f("", !0)]), t.$slots["toolbar-actions"] ? (j(), p("div", $r, [I(t.$slots, "toolbar-actions")])) : f("", !0)])) : f("", !0),
3626
+ e.title || t.$slots["toolbar-actions"] ? (j(), p("div", Jr, [m("div", Yr, [e.title ? (j(), p("h3", Xr, [_(L(e.title) + " ", 1), r.value.length ? (j(), p("span", Zr, L(r.value.length), 1)) : f("", !0)])) : f("", !0), e.subtitle ? (j(), p("p", Qr, L(e.subtitle), 1)) : f("", !0)]), t.$slots["toolbar-actions"] ? (j(), p("div", $r, [F(t.$slots, "toolbar-actions")])) : f("", !0)])) : f("", !0),
3627
3627
  v(Kr, {
3628
3628
  "model-value": r.value,
3629
3629
  columns: c.value,
@@ -3651,18 +3651,18 @@ var Rn = { class: "w-crud" }, zn = {
3651
3651
  }, [...n[4] ||= [m("i", { class: "pi pi-trash" }, null, -1)]], 8, ni)) : f("", !0)])]),
3652
3652
  _: 2
3653
3653
  }, [
3654
- F(l.value, (e) => ({
3654
+ P(l.value, (e) => ({
3655
3655
  name: e,
3656
- fn: H((n) => [I(t.$slots, e, O(b(n)))])
3656
+ fn: H((n) => [F(t.$slots, e, O(b(n)))])
3657
3657
  })),
3658
3658
  t.$slots.expansion ? {
3659
3659
  name: "expansion",
3660
- fn: H((e) => [I(t.$slots, "expansion", O(b(e)))]),
3660
+ fn: H((e) => [F(t.$slots, "expansion", O(b(e)))]),
3661
3661
  key: "0"
3662
3662
  } : void 0,
3663
3663
  t.$slots.empty ? {
3664
3664
  name: "empty",
3665
- fn: H(() => [I(t.$slots, "empty")]),
3665
+ fn: H(() => [F(t.$slots, "empty")]),
3666
3666
  key: "1"
3667
3667
  } : void 0
3668
3668
  ]), 1032, [
@@ -3689,18 +3689,18 @@ var Rn = { class: "w-crud" }, zn = {
3689
3689
  "onUpdate:field": e.crud.setFormField,
3690
3690
  onSave: n[2] ||= (t) => e.crud.save()
3691
3691
  }, h({ _: 2 }, [
3692
- F(d.value, (e) => ({
3692
+ P(d.value, (e) => ({
3693
3693
  name: e,
3694
- fn: H((n) => [I(t.$slots, e, O(b(n)))])
3694
+ fn: H((n) => [F(t.$slots, e, O(b(n)))])
3695
3695
  })),
3696
3696
  t.$slots["after-fields"] ? {
3697
3697
  name: "after-fields",
3698
- fn: H((e) => [I(t.$slots, "after-fields", O(b(e)))]),
3698
+ fn: H((e) => [F(t.$slots, "after-fields", O(b(e)))]),
3699
3699
  key: "0"
3700
3700
  } : void 0,
3701
3701
  t.$slots["form-footer"] ? {
3702
3702
  name: "footer",
3703
- fn: H((e) => [I(t.$slots, "form-footer", O(b(e)))]),
3703
+ fn: H((e) => [F(t.$slots, "form-footer", O(b(e)))]),
3704
3704
  key: "1"
3705
3705
  } : void 0
3706
3706
  ]), 1032, [
@@ -3739,7 +3739,7 @@ var Rn = { class: "w-crud" }, zn = {
3739
3739
  function r(e) {
3740
3740
  n("update:modelValue", e ?? null);
3741
3741
  }
3742
- return (t, n) => (j(), d(R(we), {
3742
+ return (t, n) => (j(), d(R(Ce), {
3743
3743
  "model-value": e.modelValue ?? void 0,
3744
3744
  "selection-mode": "range",
3745
3745
  placeholder: e.placeholder,
@@ -3799,7 +3799,7 @@ var Rn = { class: "w-crud" }, zn = {
3799
3799
  },
3800
3800
  emits: ["update:modelValue", "error"],
3801
3801
  setup(e, { emit: t }) {
3802
- let n = e, r = t, i = P(null), a = u(() => {
3802
+ let n = e, r = t, i = N(null), a = u(() => {
3803
3803
  let e = n.modelValue;
3804
3804
  return e ? Array.isArray(e) ? e : [e] : [];
3805
3805
  });
@@ -3849,7 +3849,7 @@ var Rn = { class: "w-crud" }, zn = {
3849
3849
  style: { display: "none" },
3850
3850
  onChange: s
3851
3851
  }, null, 40, si),
3852
- a.value.length ? (j(), p("ul", ci, [(j(!0), p(l, null, F(a.value, (t, r) => (j(), p("li", {
3852
+ a.value.length ? (j(), p("ul", ci, [(j(!0), p(l, null, P(a.value, (t, r) => (j(), p("li", {
3853
3853
  key: `${t.name}-${r}`,
3854
3854
  style: {
3855
3855
  display: "flex",
@@ -3874,7 +3874,7 @@ var Rn = { class: "w-crud" }, zn = {
3874
3874
  disabled: e.disabled,
3875
3875
  onClick: (e) => c(r)
3876
3876
  }, null, 8, ["disabled", "onClick"])
3877
- ]))), 128))])) : I(t.$slots, "empty", {}, () => [n[1] ||= m("span", { style: {
3877
+ ]))), 128))])) : F(t.$slots, "empty", {}, () => [n[1] ||= m("span", { style: {
3878
3878
  "font-size": "0.8rem",
3879
3879
  opacity: "0.6"
3880
3880
  } }, "Nenhum arquivo selecionado", -1)], void 0, 1)
@@ -4035,7 +4035,7 @@ var bi = {
4035
4035
  },
4036
4036
  emits: ["update:modelValue"],
4037
4037
  setup(e, { emit: t }) {
4038
- let n = e, r = t, i = P(""), a = P({}), o = u(() => pi(n.options, {
4038
+ let n = e, r = t, i = N(""), a = N({}), o = u(() => pi(n.options, {
4039
4039
  optionValue: n.optionValue,
4040
4040
  optionLabel: n.optionLabel,
4041
4041
  groupBy: n.groupBy,
@@ -4069,7 +4069,7 @@ var bi = {
4069
4069
  n.disabled || r("update:modelValue", []);
4070
4070
  }
4071
4071
  return (t, n) => (j(), p("div", { class: D(["w-tree-select", { "w-tree-select--disabled": e.disabled }]) }, [
4072
- I(t.$slots, "header", {
4072
+ F(t.$slots, "header", {
4073
4073
  selectedCount: g.value,
4074
4074
  total: h.value
4075
4075
  }, () => [y.value ? (j(), p("div", bi, [e.showCount ? (j(), p("span", xi, L(g.value) + " de " + L(h.value) + " selecionados ", 1)) : (j(), p("span", Si)), e.showToggleAll ? (j(), p("div", Ci, [v(R(q), {
@@ -4109,7 +4109,7 @@ var bi = {
4109
4109
  ])]),
4110
4110
  _: 1
4111
4111
  })) : f("", !0),
4112
- b.value ? (j(), p("div", wi, [I(t.$slots, "empty", { filtering: c.value }, () => [_(L(x.value), 1)])])) : (j(), d(R(Oe), {
4112
+ b.value ? (j(), p("div", wi, [F(t.$slots, "empty", { filtering: c.value }, () => [_(L(x.value), 1)])])) : (j(), d(R(De), {
4113
4113
  key: 1,
4114
4114
  value: l.value,
4115
4115
  "selection-mode": "checkbox",
@@ -4122,7 +4122,7 @@ var bi = {
4122
4122
  onNodeSelect: n[2] ||= (e) => w(e, !0),
4123
4123
  onNodeUnselect: n[3] ||= (e) => w(e, !1)
4124
4124
  }, {
4125
- default: H((e) => [I(t.$slots, "node", { node: e.node }, () => [_(L(e.node.label), 1)])]),
4125
+ default: H((e) => [F(t.$slots, "node", { node: e.node }, () => [_(L(e.node.label), 1)])]),
4126
4126
  _: 3
4127
4127
  }, 8, [
4128
4128
  "value",
@@ -4343,7 +4343,7 @@ var Ni = {
4343
4343
  height: { default: "" }
4344
4344
  },
4345
4345
  setup(e) {
4346
- let t = e, n = P(null), r = ie(null), i = P(!1), a = null, o = null, s = () => {
4346
+ let t = e, n = N(null), r = I(null), i = N(!1), a = null, o = null, s = () => {
4347
4347
  r.value && r.value.setOption(t.option, !0);
4348
4348
  }, c = () => {
4349
4349
  r.value && (t.loading ? r.value.showLoading("default", ji()) : r.value.hideLoading());
@@ -4364,7 +4364,7 @@ var Ni = {
4364
4364
  }), (t, r) => (j(), p("div", {
4365
4365
  class: "w-chart",
4366
4366
  style: k(e.height ? { "--w-chart-h": e.height } : void 0)
4367
- }, [e.empty && !e.loading ? (j(), p("div", Ni, [I(t.$slots, "empty", {}, () => [_(L(e.emptyMessage), 1)], !0)])) : i.value ? (j(), p("div", Pi, [I(t.$slots, "unavailable", {}, () => [r[0] ||= _("Gráfico indisponível.", -1)], !0)])) : f("", !0), U(m("div", {
4367
+ }, [e.empty && !e.loading ? (j(), p("div", Ni, [F(t.$slots, "empty", {}, () => [_(L(e.emptyMessage), 1)], !0)])) : i.value ? (j(), p("div", Pi, [F(t.$slots, "unavailable", {}, () => [r[0] ||= _("Gráfico indisponível.", -1)], !0)])) : f("", !0), U(m("div", {
4368
4368
  ref_key: "container",
4369
4369
  ref: n,
4370
4370
  class: "w-chart__canvas"
@@ -4505,7 +4505,7 @@ var Ni = {
4505
4505
  emits: ["action"],
4506
4506
  setup(e, { emit: t }) {
4507
4507
  let n = t;
4508
- return (t, r) => (j(), p("div", Li, [m("div", Ri, [m("h2", zi, L(e.title), 1), e.subtitle ? (j(), p("p", Bi, L(e.subtitle), 1)) : f("", !0)]), m("div", Vi, [I(t.$slots, "actions"), e.actionLabel ? (j(), d(R(q), {
4508
+ return (t, r) => (j(), p("div", Li, [m("div", Ri, [m("h2", zi, L(e.title), 1), e.subtitle ? (j(), p("p", Bi, L(e.subtitle), 1)) : f("", !0)]), m("div", Vi, [F(t.$slots, "actions"), e.actionLabel ? (j(), d(R(q), {
4509
4509
  key: 0,
4510
4510
  label: e.actionLabel,
4511
4511
  icon: e.actionIcon,
@@ -4556,7 +4556,7 @@ var Ni = {
4556
4556
  statusMap: {}
4557
4557
  },
4558
4558
  setup(e) {
4559
- let t = e, n = X();
4559
+ let t = e, n = ke();
4560
4560
  function r() {
4561
4561
  t.backTo ? n.push(typeof t.backTo == "string" ? { name: t.backTo } : t.backTo) : t.backRoute ? n.push({ name: t.backRoute }) : n.back();
4562
4562
  }
@@ -4577,7 +4577,7 @@ var Ni = {
4577
4577
  value: e.status,
4578
4578
  map: e.statusMap
4579
4579
  }, null, 8, ["value", "map"])) : f("", !0)
4580
- ]), m("div", $i, [I(t.$slots, "actions")])]));
4580
+ ]), m("div", $i, [F(t.$slots, "actions")])]));
4581
4581
  }
4582
4582
  }), ta = {
4583
4583
  key: 0,
@@ -4604,14 +4604,14 @@ var Ni = {
4604
4604
  let i = e.value;
4605
4605
  return i == null || i === "" ? "-" : e.format === "currency" ? t(Number(i)) : e.format === "date" ? n(String(i)) : e.format === "datetime" ? n(String(i), "DD/MM/YYYY HH:mm") : e.format === "number" ? r(Number(i), e.decimals ?? 2) : String(i);
4606
4606
  }
4607
- return (t, n) => (j(), p("div", { class: D(["w-info-card", `w-info-card--${e.variant}`]) }, [e.title ? (j(), p("h3", ta, L(e.title), 1)) : f("", !0), e.variant === "metric" ? (j(), p("div", na, [(j(!0), p(l, null, F(e.fields, (e) => (j(), p("div", {
4607
+ return (t, n) => (j(), p("div", { class: D(["w-info-card", `w-info-card--${e.variant}`]) }, [e.title ? (j(), p("h3", ta, L(e.title), 1)) : f("", !0), e.variant === "metric" ? (j(), p("div", na, [(j(!0), p(l, null, P(e.fields, (e) => (j(), p("div", {
4608
4608
  key: e.label,
4609
4609
  class: "w-info-card-metric"
4610
4610
  }, [
4611
4611
  m("span", ra, L(e.label), 1),
4612
4612
  m("span", ia, L(a(e)), 1),
4613
4613
  e.suffix ? (j(), p("span", aa, L(e.suffix), 1)) : f("", !0)
4614
- ]))), 128))])) : (j(), p("div", oa, [(j(!0), p(l, null, F(e.fields, (e) => (j(), p("div", {
4614
+ ]))), 128))])) : (j(), p("div", oa, [(j(!0), p(l, null, P(e.fields, (e) => (j(), p("div", {
4615
4615
  key: e.label,
4616
4616
  class: "w-info-card-field"
4617
4617
  }, [m("span", sa, L(e.label), 1), m("span", ca, L(a(e)), 1)]))), 128))]))], 2));
@@ -4660,19 +4660,19 @@ var Ni = {
4660
4660
  height: "0.75rem"
4661
4661
  })
4662
4662
  ])])) : (j(), p(l, { key: 1 }, [
4663
- m("div", fa, [e.icon || t.$slots.icon ? (j(), p("div", pa, [I(t.$slots, "icon", {}, () => [e.icon ? (j(), p("i", {
4663
+ m("div", fa, [e.icon || t.$slots.icon ? (j(), p("div", pa, [F(t.$slots, "icon", {}, () => [e.icon ? (j(), p("i", {
4664
4664
  key: 0,
4665
4665
  class: D(e.icon)
4666
- }, null, 2)) : f("", !0)])])) : f("", !0), e.trend || t.$slots.trend ? (j(), p("div", ma, [I(t.$slots, "trend", {}, () => [e.trend ? (j(), p("span", {
4666
+ }, null, 2)) : f("", !0)])])) : f("", !0), e.trend || t.$slots.trend ? (j(), p("div", ma, [F(t.$slots, "trend", {}, () => [e.trend ? (j(), p("span", {
4667
4667
  key: 0,
4668
4668
  class: D(["w-kpi-card__trend-badge", e.trend.direction ? `w-kpi-card__trend-badge--${e.trend.direction}` : ""])
4669
4669
  }, L(e.trend.value), 3)) : f("", !0)])])) : f("", !0)]),
4670
4670
  m("div", ha, [
4671
4671
  m("p", ga, L(e.label), 1),
4672
- m("div", _a, [I(t.$slots, "value", {}, () => [_(L(e.value), 1)])]),
4673
- e.hint || t.$slots.hint ? (j(), p("p", va, [I(t.$slots, "hint", {}, () => [_(L(e.hint), 1)])])) : f("", !0)
4672
+ m("div", _a, [F(t.$slots, "value", {}, () => [_(L(e.value), 1)])]),
4673
+ e.hint || t.$slots.hint ? (j(), p("p", va, [F(t.$slots, "hint", {}, () => [_(L(e.hint), 1)])])) : f("", !0)
4674
4674
  ]),
4675
- t.$slots.footer ? (j(), p("footer", ya, [I(t.$slots, "footer")])) : f("", !0)
4675
+ t.$slots.footer ? (j(), p("footer", ya, [F(t.$slots, "footer")])) : f("", !0)
4676
4676
  ], 64))], 2));
4677
4677
  }
4678
4678
  }), xa = /* @__PURE__ */ y({
@@ -4687,11 +4687,11 @@ var Ni = {
4687
4687
  },
4688
4688
  setup(e) {
4689
4689
  let t = e, n = u(() => [t.columns === "auto" ? "w-kpi-grid--auto" : `w-kpi-grid--cols-${t.columns}`, { "w-kpi-grid--dense": t.dense }]);
4690
- return (t, r) => (j(), p("div", { class: D(["w-kpi-grid", n.value]) }, [t.$slots.item ? (j(!0), p(l, { key: 0 }, F(e.items, (e, n) => I(t.$slots, "item", {
4690
+ return (t, r) => (j(), p("div", { class: D(["w-kpi-grid", n.value]) }, [t.$slots.item ? (j(!0), p(l, { key: 0 }, P(e.items, (e, n) => F(t.$slots, "item", {
4691
4691
  key: n,
4692
4692
  item: e,
4693
4693
  index: n
4694
- })), 128)) : (j(!0), p(l, { key: 1 }, F(e.items, (e, t) => (j(), d(ba, {
4694
+ })), 128)) : (j(!0), p(l, { key: 1 }, P(e.items, (e, t) => (j(), d(ba, {
4695
4695
  key: t,
4696
4696
  label: e.label,
4697
4697
  value: e.value,
@@ -4728,10 +4728,10 @@ var Ni = {
4728
4728
  compact: { type: Boolean }
4729
4729
  },
4730
4730
  setup(e) {
4731
- return (t, n) => (j(), p("div", { class: D(["w-section-header", { "w-section-header--compact": e.compact }]) }, [m("div", Sa, [e.icon || t.$slots.icon ? (j(), p("div", Ca, [I(t.$slots, "icon", {}, () => [e.icon ? (j(), p("i", {
4731
+ return (t, n) => (j(), p("div", { class: D(["w-section-header", { "w-section-header--compact": e.compact }]) }, [m("div", Sa, [e.icon || t.$slots.icon ? (j(), p("div", Ca, [F(t.$slots, "icon", {}, () => [e.icon ? (j(), p("i", {
4732
4732
  key: 0,
4733
4733
  class: D(e.icon)
4734
- }, null, 2)) : f("", !0)])])) : f("", !0), m("div", wa, [m("div", Ta, [m("h3", Ea, L(e.title), 1), I(t.$slots, "meta")]), e.subtitle ? (j(), p("p", Da, L(e.subtitle), 1)) : f("", !0)])]), t.$slots.actions ? (j(), p("div", Oa, [I(t.$slots, "actions")])) : f("", !0)], 2));
4734
+ }, null, 2)) : f("", !0)])])) : f("", !0), m("div", wa, [m("div", Ta, [m("h3", Ea, L(e.title), 1), F(t.$slots, "meta")]), e.subtitle ? (j(), p("p", Da, L(e.subtitle), 1)) : f("", !0)])]), t.$slots.actions ? (j(), p("div", Oa, [F(t.$slots, "actions")])) : f("", !0)], 2));
4735
4735
  }
4736
4736
  }), Aa = {
4737
4737
  key: 0,
@@ -4750,7 +4750,7 @@ var Ni = {
4750
4750
  variant: {}
4751
4751
  },
4752
4752
  setup(e) {
4753
- return (t, n) => (j(), p("section", { class: D(["w-form-section", e.variant ? `w-form-section--${e.variant}` : ""]) }, [e.title || e.description || t.$slots.actions ? (j(), p("div", Aa, [m("div", ja, [m("h3", Ma, L(e.title), 1), e.description ? (j(), p("p", Na, L(e.description), 1)) : f("", !0)]), t.$slots.actions ? (j(), p("div", Pa, [I(t.$slots, "actions")])) : f("", !0)])) : f("", !0), m("div", Fa, [I(t.$slots, "default")])], 2));
4753
+ return (t, n) => (j(), p("section", { class: D(["w-form-section", e.variant ? `w-form-section--${e.variant}` : ""]) }, [e.title || e.description || t.$slots.actions ? (j(), p("div", Aa, [m("div", ja, [m("h3", Ma, L(e.title), 1), e.description ? (j(), p("p", Na, L(e.description), 1)) : f("", !0)]), t.$slots.actions ? (j(), p("div", Pa, [F(t.$slots, "actions")])) : f("", !0)])) : f("", !0), m("div", Fa, [F(t.$slots, "default")])], 2));
4754
4754
  }
4755
4755
  }), La = {
4756
4756
  key: 0,
@@ -4772,9 +4772,9 @@ var Ni = {
4772
4772
  },
4773
4773
  setup(e) {
4774
4774
  return (t, n) => (j(), p("div", { class: D(["w-action-bar", [`w-action-bar--${e.align}`, { "w-action-bar--stack": e.stackOnMobile }]]) }, [
4775
- t.$slots.primary || t.$slots.default ? (j(), p("div", La, [I(t.$slots, "primary", {}, () => [I(t.$slots, "default")])])) : f("", !0),
4776
- t.$slots.filters ? (j(), p("div", Ra, [I(t.$slots, "filters")])) : f("", !0),
4777
- t.$slots.secondary ? (j(), p("div", za, [I(t.$slots, "secondary")])) : f("", !0)
4775
+ t.$slots.primary || t.$slots.default ? (j(), p("div", La, [F(t.$slots, "primary", {}, () => [F(t.$slots, "default")])])) : f("", !0),
4776
+ t.$slots.filters ? (j(), p("div", Ra, [F(t.$slots, "filters")])) : f("", !0),
4777
+ t.$slots.secondary ? (j(), p("div", za, [F(t.$slots, "secondary")])) : f("", !0)
4778
4778
  ], 2));
4779
4779
  }
4780
4780
  }), Va = { class: "w-progress-flow__marker" }, Ha = { class: "w-progress-flow__content" }, Ua = { class: "w-progress-flow__label" }, Wa = {
@@ -4792,10 +4792,10 @@ var Ni = {
4792
4792
  function r(e) {
4793
4793
  return e < n.value ? "done" : e === n.value ? "current" : "pending";
4794
4794
  }
4795
- return (t, n) => (j(), p("div", { class: D(["w-progress-flow", `w-progress-flow--${e.orientation}`]) }, [(j(!0), p(l, null, F(e.steps, (e, n) => (j(), p("div", {
4795
+ return (t, n) => (j(), p("div", { class: D(["w-progress-flow", `w-progress-flow--${e.orientation}`]) }, [(j(!0), p(l, null, P(e.steps, (e, n) => (j(), p("div", {
4796
4796
  key: e.key,
4797
4797
  class: D(["w-progress-flow__step", `w-progress-flow__step--${r(n)}`])
4798
- }, [I(t.$slots, "step", {
4798
+ }, [F(t.$slots, "step", {
4799
4799
  step: e,
4800
4800
  index: n,
4801
4801
  state: r(n)
@@ -4823,7 +4823,7 @@ var Ni = {
4823
4823
  disabled: a,
4824
4824
  orientation: o
4825
4825
  });
4826
- let c = P(null);
4826
+ let c = N(null);
4827
4827
  function l(e) {
4828
4828
  if (n.orientation !== "horizontal") return;
4829
4829
  let t = {
@@ -4843,7 +4843,7 @@ var Ni = {
4843
4843
  ref: c,
4844
4844
  class: D(["w-step-flow", `w-step-flow--${o.value}`]),
4845
4845
  onKeydown: l
4846
- }, [I(e.$slots, "default")], 34));
4846
+ }, [F(e.$slots, "default")], 34));
4847
4847
  }
4848
4848
  }), Ja = { class: "w-step-section__rail" }, Ya = {
4849
4849
  key: 0,
@@ -4899,7 +4899,7 @@ var Ni = {
4899
4899
  }
4900
4900
  },
4901
4901
  setup(e) {
4902
- let t = e, n = S(Ka, null), r = P(!0), i = u(() => n ? n.active.value === t.step : r.value), a = u(() => t.disabled || (n?.disabled.value ?? !1)), o = u(() => n?.orientation.value === "horizontal"), s = u(() => n !== null), c = u(() => o.value && n != null && t.step < n.active.value);
4902
+ let t = e, n = S(Ka, null), r = N(!0), i = u(() => n ? n.active.value === t.step : r.value), a = u(() => t.disabled || (n?.disabled.value ?? !1)), o = u(() => n?.orientation.value === "horizontal"), s = u(() => n !== null), c = u(() => o.value && n != null && t.step < n.active.value);
4903
4903
  function d() {
4904
4904
  a.value || (n ? n.toggle(t.step) : r.value = !r.value);
4905
4905
  }
@@ -4933,8 +4933,8 @@ var Ni = {
4933
4933
  e.count == null ? f("", !0) : (j(), p("span", uo, L(e.count), 1)),
4934
4934
  e.summary ? (j(), p("span", fo, L(e.summary), 1)) : f("", !0)
4935
4935
  ], 8, so),
4936
- t.$slots.actions ? (j(), p("div", po, [I(t.$slots, "actions", { open: i.value })])) : f("", !0)
4937
- ]), i.value ? (j(), p("div", mo, [m("div", ho, [I(t.$slots, "default")]), t.$slots.footer ? (j(), p("div", go, [I(t.$slots, "footer")])) : f("", !0)])) : f("", !0)], 2)) : (j(), p("div", {
4936
+ t.$slots.actions ? (j(), p("div", po, [F(t.$slots, "actions", { open: i.value })])) : f("", !0)
4937
+ ]), i.value ? (j(), p("div", mo, [m("div", ho, [F(t.$slots, "default")]), t.$slots.footer ? (j(), p("div", go, [F(t.$slots, "footer")])) : f("", !0)])) : f("", !0)], 2)) : (j(), p("div", {
4938
4938
  key: 0,
4939
4939
  class: D(["w-step-section", { "w-step-section--open": i.value }])
4940
4940
  }, [m("div", Ja, [m("span", {
@@ -4952,7 +4952,7 @@ var Ni = {
4952
4952
  m("h2", eo, L(e.title), 1),
4953
4953
  e.count == null ? f("", !0) : (j(), p("span", to, L(e.count), 1)),
4954
4954
  e.summary ? (j(), p("span", no, L(e.summary), 1)) : f("", !0)
4955
- ], 8, $a), t.$slots.actions ? (j(), p("div", ro, [I(t.$slots, "actions", { open: i.value })])) : f("", !0)]), i.value ? (j(), p(l, { key: 0 }, [m("div", io, [I(t.$slots, "default")]), t.$slots.footer ? (j(), p("div", ao, [I(t.$slots, "footer")])) : f("", !0)], 64)) : f("", !0)])])], 2));
4955
+ ], 8, $a), t.$slots.actions ? (j(), p("div", ro, [F(t.$slots, "actions", { open: i.value })])) : f("", !0)]), i.value ? (j(), p(l, { key: 0 }, [m("div", io, [F(t.$slots, "default")]), t.$slots.footer ? (j(), p("div", ao, [F(t.$slots, "footer")])) : f("", !0)], 64)) : f("", !0)])])], 2));
4956
4956
  }
4957
4957
  }), vo = { class: "w-check-list" }, yo = {
4958
4958
  key: 0,
@@ -4986,51 +4986,62 @@ var Ni = {
4986
4986
  function a(e) {
4987
4987
  return i[e] ?? i.warn;
4988
4988
  }
4989
- return (t, n) => (j(), p("div", vo, [e.title || e.showCount ? (j(), p("div", yo, [m("span", bo, L(e.title), 1), e.showCount ? (j(), p("span", xo, L(r.value), 1)) : f("", !0)])) : f("", !0), e.items.length ? (j(), p("ul", So, [(j(!0), p(l, null, F(e.items, (e, t) => (j(), p("li", {
4989
+ return (t, n) => (j(), p("div", vo, [e.title || e.showCount ? (j(), p("div", yo, [m("span", bo, L(e.title), 1), e.showCount ? (j(), p("span", xo, L(r.value), 1)) : f("", !0)])) : f("", !0), e.items.length ? (j(), p("ul", So, [(j(!0), p(l, null, P(e.items, (e, t) => (j(), p("li", {
4990
4990
  key: `${e.label}-${t}`,
4991
4991
  class: "w-check-list__item"
4992
- }, [m("i", { class: D([a(e.nivel), `w-check-list__icon--${e.nivel}`]) }, null, 2), m("span", Co, L(e.label), 1)]))), 128))])) : (j(), p("div", wo, [I(t.$slots, "empty", {}, () => [_(L(e.emptyMessage), 1)])]))]));
4992
+ }, [m("i", { class: D([a(e.nivel), `w-check-list__icon--${e.nivel}`]) }, null, 2), m("span", Co, L(e.label), 1)]))), 128))])) : (j(), p("div", wo, [F(t.$slots, "empty", {}, () => [_(L(e.emptyMessage), 1)])]))]));
4993
4993
  }
4994
- }), Eo = { class: "w-map-select__body" }, Do = {
4994
+ }), Eo = .85;
4995
+ function Do(e, t, n) {
4996
+ return !e || e.largura <= 0 || e.altura <= 0 ? !1 : e.largura <= t && e.altura <= n;
4997
+ }
4998
+ function Oo(e, t, n, r = Eo) {
4999
+ if (!t || t.largura <= 0 || t.altura <= 0 || e.largura <= 0 || e.altura <= 0) return "completo";
5000
+ let i = e.largura * r, a = e.altura * r;
5001
+ return Do(t, i, a) ? "completo" : Do(n, i, a) ? "curto" : "oculto";
5002
+ }
5003
+ //#endregion
5004
+ //#region src/components/ui/WMapSelect.vue?vue&type=script&setup=true&lang.ts
5005
+ var ko = { class: "w-map-select__body" }, Ao = {
4995
5006
  key: 0,
4996
5007
  class: "w-map-select__fallback"
4997
- }, Oo = {
5008
+ }, jo = {
4998
5009
  key: 1,
4999
5010
  class: "w-map-select__badge"
5000
- }, ko = { class: "w-map-select__detail-nome" }, Ao = {
5011
+ }, Mo = { class: "w-map-select__detail-nome" }, No = {
5001
5012
  key: 0,
5002
5013
  class: "w-map-select__detail-sub"
5003
- }, jo = {
5014
+ }, Po = {
5004
5015
  key: 0,
5005
5016
  class: "w-map-select__panel"
5006
- }, Mo = [
5017
+ }, Fo = [
5007
5018
  "aria-expanded",
5008
5019
  "aria-label",
5009
5020
  "title"
5010
- ], No = {
5021
+ ], Io = {
5011
5022
  key: 0,
5012
5023
  class: "w-map-select__collapse-count"
5013
- }, Po = { class: "w-map-select__panel-head" }, Fo = { class: "w-map-select__meta" }, Io = { class: "w-map-select__count" }, Lo = ["disabled"], Ro = { class: "w-map-select__list" }, zo = [
5024
+ }, Lo = { class: "w-map-select__panel-head" }, Ro = { class: "w-map-select__meta" }, zo = { class: "w-map-select__count" }, Bo = ["disabled"], Vo = { class: "w-map-select__list" }, Ho = [
5014
5025
  "aria-pressed",
5015
5026
  "disabled",
5016
5027
  "onClick"
5017
- ], Bo = { class: "w-map-select__box" }, Vo = {
5028
+ ], Uo = { class: "w-map-select__box" }, Wo = {
5018
5029
  key: 0,
5019
5030
  class: "pi pi-check"
5020
- }, Ho = { class: "w-map-select__item-text" }, Uo = { class: "w-map-select__item-name" }, Wo = {
5031
+ }, Go = { class: "w-map-select__item-text" }, Ko = { class: "w-map-select__item-name" }, qo = {
5021
5032
  key: 0,
5022
5033
  class: "w-map-select__item-sub"
5023
- }, Go = {
5034
+ }, Jo = {
5024
5035
  key: 0,
5025
5036
  class: "pi pi-exclamation-circle w-map-select__item-nogeo",
5026
5037
  title: "Talhão sem contorno cadastrado"
5027
- }, Ko = {
5038
+ }, Yo = {
5028
5039
  key: 1,
5029
5040
  class: "w-map-select__item-area"
5030
- }, qo = {
5041
+ }, Xo = {
5031
5042
  key: 0,
5032
5043
  class: "w-map-select__empty"
5033
- }, Jo = { class: "w-map-select__area" }, Yo = { class: "w-map-select__area-unit" }, Xo = "O mapa não pôde ser carregado. Selecione os talhões pela lista ao lado.", Zo = "O mapa não pôde ser carregado.", Qo = /* @__PURE__ */ y({
5044
+ }, Zo = { class: "w-map-select__area" }, Qo = { class: "w-map-select__area-unit" }, $o = "O mapa não pôde ser carregado. Selecione os talhões pela lista ao lado.", es = "O mapa não pôde ser carregado.", ts = /* @__PURE__ */ y({
5034
5045
  __name: "WMapSelect",
5035
5046
  props: {
5036
5047
  modelValue: { default: () => [] },
@@ -5054,7 +5065,7 @@ var Ni = {
5054
5065
  expandLabel: { default: "Mostrar painel de seleção" },
5055
5066
  badgeLabel: { default: "Satélite" },
5056
5067
  emptyMessage: { default: "Nenhum talhão encontrado" },
5057
- mapErrorMessage: { default: Xo },
5068
+ mapErrorMessage: { default: $o },
5058
5069
  disabled: {
5059
5070
  type: Boolean,
5060
5071
  default: !1
@@ -5088,6 +5099,12 @@ var Ni = {
5088
5099
  type: Function,
5089
5100
  default: void 0
5090
5101
  },
5102
+ featureLabelShort: {
5103
+ type: Function,
5104
+ default: void 0
5105
+ },
5106
+ labelFitScale: { default: Eo },
5107
+ labelFullFromZoom: { default: 13 },
5091
5108
  featureDetail: { default: "none" },
5092
5109
  detailPlacement: { default: "cursor" }
5093
5110
  },
@@ -5098,7 +5115,7 @@ var Ni = {
5098
5115
  "feature-leave"
5099
5116
  ],
5100
5117
  setup(e, { expose: t, emit: n }) {
5101
- let r = e, a = n, { formatNumber: o } = i(), s = u(() => r.layout === "sobreposto"), c = u(() => r.readonly && r.mapErrorMessage === Xo ? Zo : r.mapErrorMessage), d = P(!1);
5118
+ let r = e, a = n, { formatNumber: o } = i(), s = u(() => r.layout === "sobreposto"), c = u(() => r.readonly && r.mapErrorMessage === $o ? es : r.mapErrorMessage), d = N(!1);
5102
5119
  function h(e) {
5103
5120
  d.value !== e && (d.value = e);
5104
5121
  }
@@ -5119,26 +5136,26 @@ var Ni = {
5119
5136
  function w() {
5120
5137
  r.disabled || x.value === "none" || !r.modelValue.length || a("update:modelValue", []);
5121
5138
  }
5122
- let T = u(() => r.features.filter((e) => S(e.id))), O = u(() => T.value.reduce((e, t) => e + (t.area ?? 0), 0)), te = u(() => r.selectionLabel(T.value.length)), M = P("");
5139
+ let T = u(() => r.features.filter((e) => S(e.id))), O = u(() => T.value.reduce((e, t) => e + (t.area ?? 0), 0)), te = u(() => r.selectionLabel(T.value.length)), M = N("");
5123
5140
  function ne(e) {
5124
5141
  return e.normalize("NFD").replace(/[\u0300-\u036f]/g, "").toLowerCase();
5125
5142
  }
5126
- let re = u(() => {
5143
+ let ie = u(() => {
5127
5144
  let e = ne(M.value.trim());
5128
5145
  return e ? r.features.filter((t) => ne(`${t.nome} ${t.subtitulo ?? ""}`).includes(e)) : r.features;
5129
5146
  });
5130
- function ie(e) {
5147
+ function I(e) {
5131
5148
  return e.area == null ? "" : `${o(e.area, r.areaDecimals)} ${r.areaSuffix}`.trim();
5132
5149
  }
5133
- let ae = u(() => o(O.value, r.areaDecimals)), z = P(null), B = P(null), oe = P(null), se = P(!1), U = null, W = null, G = null, ce = null, K = /* @__PURE__ */ new Map(), q = /* @__PURE__ */ new Map(), le = !1, ue = !1, de = u(() => {
5150
+ let ae = u(() => o(O.value, r.areaDecimals)), z = N(null), B = N(null), oe = N(null), se = N(!1), U = null, W = null, G = null, ce = null, K = /* @__PURE__ */ new Map(), q = /* @__PURE__ */ new Map(), le = /* @__PURE__ */ new Map(), ue = !1, de = !1, fe = u(() => {
5134
5151
  let e = /* @__PURE__ */ new Map();
5135
5152
  for (let t of r.features) e.set(t.id, t);
5136
5153
  return e;
5137
5154
  });
5138
- function fe(e) {
5155
+ function he(e) {
5139
5156
  let t = S(e), n = t ? r.polygonSelectedStyle : r.polygonStyle;
5140
5157
  if (r.featureStyle) {
5141
- let i = de.value.get(e), a = i ? r.featureStyle(i, t) : null;
5158
+ let i = fe.value.get(e), a = i ? r.featureStyle(i, t) : null;
5142
5159
  a && (n = {
5143
5160
  ...n,
5144
5161
  ...a
@@ -5149,51 +5166,55 @@ var Ni = {
5149
5166
  ...r.polygonSelectedStyle
5150
5167
  }), n;
5151
5168
  }
5152
- let Y = P(null), he = P({
5169
+ let Y = N(null), ge = N({
5153
5170
  x: 0,
5154
5171
  y: 0
5155
5172
  });
5156
- function ge(e) {
5173
+ function _e(e) {
5157
5174
  return e ?? void 0;
5158
5175
  }
5159
- function _e(e) {
5176
+ function ve(e) {
5160
5177
  let t = e?.containerPoint;
5161
5178
  if (!t) return;
5162
5179
  let n = z.value?.clientWidth ?? 0, r = z.value?.clientHeight ?? 0;
5163
- he.value = {
5180
+ ge.value = {
5164
5181
  x: n ? Math.min(Math.max(t.x, 12), n - 12) : t.x,
5165
5182
  y: r ? Math.min(Math.max(t.y, 12), r - 12) : t.y
5166
5183
  };
5167
5184
  }
5168
- function ve(e, t) {
5169
- _e(t), Y.value?.id !== e.id && (Y.value = e, a("feature-enter", e));
5185
+ function ye(e, t) {
5186
+ ve(t), Y.value?.id !== e.id && (Y.value = e, a("feature-enter", e));
5170
5187
  }
5171
- function ye(e) {
5172
- Y.value && _e(e);
5188
+ function be(e) {
5189
+ Y.value && ve(e);
5173
5190
  }
5174
- function be() {
5191
+ function X() {
5175
5192
  Y.value && (Y.value = null, a("feature-leave"));
5176
5193
  }
5177
5194
  function xe(e, t) {
5178
5195
  if (Y.value?.id === e.id) {
5179
- be();
5196
+ X();
5180
5197
  return;
5181
5198
  }
5182
- Y.value = null, ve(e, t);
5199
+ Y.value = null, ye(e, t);
5183
5200
  }
5184
- let Se = u(() => he.value.y < 150), Ce = u(() => r.detailPlacement === "canto" ? void 0 : {
5185
- left: `${he.value.x}px`,
5186
- top: `${he.value.y}px`
5201
+ let Se = u(() => ge.value.y < 150), Ce = u(() => r.detailPlacement === "canto" ? void 0 : {
5202
+ left: `${ge.value.x}px`,
5203
+ top: `${ge.value.y}px`
5187
5204
  });
5188
5205
  function we(e) {
5189
- e.key === "Escape" && be();
5206
+ e.key === "Escape" && X();
5190
5207
  }
5191
5208
  function Te(e) {
5192
5209
  if (r.featureLabel) return r.featureLabel(e);
5193
- let t = ie(e);
5210
+ let t = I(e);
5194
5211
  return t ? `${e.nome} · ${t}` : e.nome;
5195
5212
  }
5196
- function Ee(e, t) {
5213
+ function Ee(e) {
5214
+ return r.featureLabelShort ? r.featureLabelShort(e) : e.nome;
5215
+ }
5216
+ let De = u(() => r.tooltips === "auto");
5217
+ function Oe(e, t) {
5197
5218
  let n = Te(t);
5198
5219
  n && e.bindTooltip(n, r.tooltips === "hover" ? {
5199
5220
  permanent: !1,
@@ -5208,40 +5229,85 @@ var Ni = {
5208
5229
  opacity: 1
5209
5230
  });
5210
5231
  }
5211
- let De = u(() => x.value !== "none" || r.tooltips === "hover" || r.featureDetail !== "none");
5212
- function Oe(e) {
5232
+ let ke = u(() => x.value !== "none" || r.tooltips === "hover" || r.featureDetail !== "none");
5233
+ function Z(e) {
5213
5234
  if (!U || !W || !e.geometria) return;
5214
5235
  let t = U.geoJSON(e.geometria, {
5215
- style: () => fe(e.id),
5216
- interactive: De.value
5236
+ style: () => he(e.id),
5237
+ interactive: ke.value
5217
5238
  });
5218
5239
  t.on("click", (t) => {
5219
- C(e.id), a("feature-click", e), r.featureDetail === "click" && xe(e, ge(t));
5220
- }), r.featureDetail === "hover" && (t.on("mouseover", (t) => ve(e, ge(t))), t.on("mousemove", (e) => ye(ge(e))), t.on("mouseout", () => be())), Ee(t, e), t.addTo(W), K.set(e.id, t), q.set(e.id, e.geometria);
5240
+ C(e.id), a("feature-click", e), r.featureDetail === "click" && xe(e, _e(t));
5241
+ }), r.featureDetail === "hover" && (t.on("mouseover", (t) => ye(e, _e(t))), t.on("mousemove", (e) => be(_e(e))), t.on("mouseout", () => X())), Oe(t, e), t.addTo(W), K.set(e.id, t), q.set(e.id, e.geometria), le.set(e.id, t.getBounds());
5221
5242
  }
5222
- function ke() {
5243
+ function Q() {
5223
5244
  if (!U || !W) return;
5224
5245
  let e = /* @__PURE__ */ new Map();
5225
5246
  for (let t of r.features) t.geometria && e.set(t.id, t);
5226
5247
  K.forEach((t, n) => {
5227
- e.has(n) || (t.remove(), K.delete(n), q.delete(n));
5248
+ e.has(n) || (t.remove(), K.delete(n), q.delete(n), le.delete(n));
5228
5249
  }), e.forEach((e, t) => {
5229
5250
  let n = K.get(t);
5230
5251
  if (n && q.get(t) === e.geometria) {
5231
5252
  let t = Te(e), r = n.getTooltip();
5232
- t ? r ? r.setContent(t) : Ee(n, e) : n.unbindTooltip();
5253
+ t ? r ? r.setContent(t) : Oe(n, e) : n.unbindTooltip();
5233
5254
  return;
5234
5255
  }
5235
- n && (n.remove(), K.delete(t), q.delete(t)), Oe(e);
5236
- }), X(), !le && (K.size || r.scopeGeometry) && (Z(), le = !0, ue = !!r.scopeGeometry);
5256
+ n && (n.remove(), K.delete(t), q.delete(t), le.delete(t)), Z(e);
5257
+ }), Fe(), !ue && (K.size || r.scopeGeometry) && (Ie(), ue = !0, de = !!r.scopeGeometry), Pe();
5237
5258
  }
5238
- function X() {
5259
+ let $ = null, Ae = /* @__PURE__ */ new Map();
5260
+ function je(e) {
5261
+ if (!e) return null;
5262
+ let t = Ae.get(e);
5263
+ if (t) return t;
5264
+ if (typeof document > "u" || !B.value) return null;
5265
+ $ || ($ = document.createElement("div"), $.className = "leaflet-tooltip w-map-select__tip w-map-select__tip--medida", $.setAttribute("aria-hidden", "true"), B.value.appendChild($)), $.textContent = e;
5266
+ let n = {
5267
+ largura: $.offsetWidth,
5268
+ altura: $.offsetHeight
5269
+ };
5270
+ return n.largura > 0 && n.altura > 0 && Ae.set(e, n), n;
5271
+ }
5272
+ function Me(e) {
5273
+ let t = le.get(e);
5274
+ if (!W || !t?.isValid()) return {
5275
+ largura: 0,
5276
+ altura: 0
5277
+ };
5278
+ let n = W.latLngToContainerPoint(t.getSouthWest()), r = W.latLngToContainerPoint(t.getNorthEast());
5279
+ return {
5280
+ largura: Math.abs(r.x - n.x),
5281
+ altura: Math.abs(n.y - r.y)
5282
+ };
5283
+ }
5284
+ function Ne() {
5285
+ if (!W) return !1;
5286
+ try {
5287
+ return W.getCenter(), !0;
5288
+ } catch {
5289
+ return !1;
5290
+ }
5291
+ }
5292
+ function Pe() {
5293
+ if (!De.value || !Ne()) return;
5294
+ let e = r.labelFullFromZoom, t = e != null && (W?.getZoom() ?? 0) >= e;
5295
+ K.forEach((e, n) => {
5296
+ let i = e.getTooltip(), a = fe.value.get(n);
5297
+ if (!i || !a) return;
5298
+ let o = Te(a);
5299
+ if (!o) return;
5300
+ let s = Ee(a), c = t ? "completo" : Oo(Me(n), je(o), s && s !== o ? je(s) : null, r.labelFitScale);
5301
+ c !== "oculto" && i.setContent(c === "curto" ? s : o), i.getElement()?.classList.toggle("w-map-select__tip--fora", c === "oculto");
5302
+ });
5303
+ }
5304
+ function Fe() {
5239
5305
  K.forEach((e, t) => {
5240
5306
  let n = S(t);
5241
- e.setStyle(fe(t)), (e.getTooltip()?.getElement())?.classList.toggle("w-map-select__tip--on", n);
5307
+ e.setStyle(he(t)), (e.getTooltip()?.getElement())?.classList.toggle("w-map-select__tip--on", n);
5242
5308
  });
5243
5309
  }
5244
- function Z() {
5310
+ function Ie() {
5245
5311
  if (!U || !W) return;
5246
5312
  let e = [];
5247
5313
  if (r.scopeGeometry) {
@@ -5253,7 +5319,7 @@ var Ni = {
5253
5319
  n.isValid() && e.push(n.getSouthWest(), n.getNorthEast());
5254
5320
  }), e.length ? W.fitBounds(U.latLngBounds(e), { padding: [20, 20] }) : W.setView([0, 0], 2);
5255
5321
  }
5256
- function Q(e, t) {
5322
+ function Le(e, t) {
5257
5323
  if (!W) return;
5258
5324
  let n = K.get(e);
5259
5325
  if (!n) return;
@@ -5263,7 +5329,7 @@ var Ni = {
5263
5329
  ...t
5264
5330
  });
5265
5331
  }
5266
- function $(e, t, n) {
5332
+ function Re(e, t, n) {
5267
5333
  let r = !1;
5268
5334
  for (let i = 0, a = n.length - 1; i < n.length; a = i++) {
5269
5335
  let [o, s] = n[i], [c, l] = n[a];
@@ -5271,26 +5337,26 @@ var Ni = {
5271
5337
  }
5272
5338
  return r;
5273
5339
  }
5274
- function Ae(e, t, n) {
5340
+ function ze(e, t, n) {
5275
5341
  let r = n.type === "Polygon" ? [n.coordinates] : n.coordinates;
5276
- for (let n of r) if (!(!n.length || !$(e, t, n[0])) && !n.slice(1).some((n) => $(e, t, n))) return !0;
5342
+ for (let n of r) if (!(!n.length || !Re(e, t, n[0])) && !n.slice(1).some((n) => Re(e, t, n))) return !0;
5277
5343
  return !1;
5278
5344
  }
5279
- function je(e, t) {
5345
+ function Be(e, t) {
5280
5346
  if (!W || !z.value) return null;
5281
5347
  let n = z.value.getBoundingClientRect(), i = e - n.left, a = t - n.top;
5282
5348
  if (n.width > 0 && n.height > 0 && (i < 0 || a < 0 || i > n.width || a > n.height)) return null;
5283
5349
  let o = W.containerPointToLatLng([i, a]);
5284
- for (let e of r.features) if (e.geometria && Ae(o.lng, o.lat, e.geometria)) return e.id;
5350
+ for (let e of r.features) if (e.geometria && ze(o.lng, o.lat, e.geometria)) return e.id;
5285
5351
  return null;
5286
5352
  }
5287
- function Me() {
5288
- !U || !W || (K.forEach((e) => e.remove()), K.clear(), q.clear(), ke());
5353
+ function Ve() {
5354
+ !U || !W || (K.forEach((e) => e.remove()), K.clear(), q.clear(), le.clear(), Q());
5289
5355
  }
5290
- function Ne() {
5356
+ function He() {
5291
5357
  !W || !z.value || z.value.clientWidth > 0 && z.value.clientHeight > 0 && W.invalidateSize();
5292
5358
  }
5293
- function Pe() {
5359
+ function Ue() {
5294
5360
  if (!B.value || !oe.value) return;
5295
5361
  if (!s.value) {
5296
5362
  B.value.style.removeProperty("--w-map-foot-h");
@@ -5299,7 +5365,7 @@ var Ni = {
5299
5365
  let e = oe.value.offsetHeight;
5300
5366
  e > 0 && B.value.style.setProperty("--w-map-foot-h", `${e}px`);
5301
5367
  }
5302
- async function Fe() {
5368
+ async function We() {
5303
5369
  if (z.value) {
5304
5370
  try {
5305
5371
  let e = await import("leaflet");
@@ -5311,38 +5377,42 @@ var Ni = {
5311
5377
  if (z.value) try {
5312
5378
  W = U.map(z.value, {
5313
5379
  zoomControl: !0,
5314
- attributionControl: !0,
5380
+ attributionControl: !!r.tileAttribution,
5315
5381
  preferCanvas: !0
5316
- }), U.tileLayer(r.tileUrl, {
5382
+ }), W.attributionControl?.setPrefix(!1), U.tileLayer(r.tileUrl, {
5317
5383
  maxZoom: r.maxZoom,
5318
5384
  attribution: r.tileAttribution
5319
- }).addTo(W), ke(), le || W.setView([0, 0], 2), Ne(), typeof ResizeObserver < "u" && (G = new ResizeObserver(() => Ne()), G.observe(z.value));
5385
+ }).addTo(W), W.on("zoomend", Pe), Q(), ue || W.setView([0, 0], 2), He(), typeof ResizeObserver < "u" && (G = new ResizeObserver(() => He()), G.observe(z.value));
5320
5386
  } catch {
5321
5387
  se.value = !0;
5322
5388
  }
5323
5389
  }
5324
5390
  }
5325
5391
  return ee(() => {
5326
- typeof window < "u" && window.addEventListener("keydown", we), Fe(), Pe(), typeof ResizeObserver < "u" && oe.value && (ce = new ResizeObserver(() => Pe()), ce.observe(oe.value));
5392
+ typeof window < "u" && window.addEventListener("keydown", we), We(), Ue(), typeof ResizeObserver < "u" && oe.value && (ce = new ResizeObserver(() => Ue()), ce.observe(oe.value));
5327
5393
  }), A(() => {
5328
- typeof window < "u" && window.removeEventListener("keydown", we), G?.disconnect(), G = null, ce?.disconnect(), ce = null, K.clear(), q.clear(), W?.remove(), W = null;
5329
- }), V(() => r.features, ke), V([() => r.featureDetail, () => r.detailPlacement], () => {
5330
- be(), Me();
5331
- }), V(() => r.modelValue, X, { deep: !0 }), V(() => r.featureStyle, X), V(() => r.highlightFeature, X), V(() => r.scopeGeometry, (e) => {
5332
- !W || !e || ue || (Z(), le = !0, ue = !0);
5333
- }), V([() => r.tooltips, De], () => Me()), V([d, s], () => {
5394
+ typeof window < "u" && window.removeEventListener("keydown", we), G?.disconnect(), G = null, ce?.disconnect(), ce = null, K.clear(), q.clear(), le.clear(), Ae.clear(), $?.remove(), $ = null, W?.remove(), W = null;
5395
+ }), V(() => r.features, Q), V([() => r.featureDetail, () => r.detailPlacement], () => {
5396
+ X(), Ve();
5397
+ }), V(() => r.modelValue, Fe, { deep: !0 }), V(() => r.featureStyle, Fe), V(() => r.highlightFeature, Fe), V(() => r.scopeGeometry, (e) => {
5398
+ !W || !e || de || (Ie(), ue = !0, de = !0);
5399
+ }), V([() => r.tooltips, ke], () => Ve()), V([
5400
+ () => r.featureLabel,
5401
+ () => r.featureLabelShort,
5402
+ () => r.labelFitScale
5403
+ ], () => Pe()), V([d, s], () => {
5334
5404
  E(() => {
5335
- Pe(), Ne();
5405
+ Ue(), He();
5336
5406
  });
5337
5407
  }), t({
5338
- refreshSize: Ne,
5339
- collapsed: N(d),
5408
+ refreshSize: He,
5409
+ collapsed: re(d),
5340
5410
  setCollapsed: h,
5341
- fitToScope: Z,
5342
- fitToFeature: Q,
5343
- hitTest: je,
5344
- detalhe: N(Y),
5345
- fecharDetalhe: be
5411
+ fitToScope: Ie,
5412
+ fitToFeature: Le,
5413
+ hitTest: Be,
5414
+ detalhe: re(Y),
5415
+ fecharDetalhe: X
5346
5416
  }), (t, n) => (j(), p("div", {
5347
5417
  ref_key: "root",
5348
5418
  ref: B,
@@ -5353,7 +5423,7 @@ var Ni = {
5353
5423
  "w-map-select--overlay": s.value,
5354
5424
  "w-map-select--collapsed": s.value && d.value && !e.readonly
5355
5425
  }])
5356
- }, [m("div", Eo, [m("div", {
5426
+ }, [m("div", ko, [m("div", {
5357
5427
  class: "w-map-select__map",
5358
5428
  style: k({ "--w-map-h": e.height })
5359
5429
  }, [
@@ -5362,7 +5432,7 @@ var Ni = {
5362
5432
  ref: z,
5363
5433
  class: "w-map-select__canvas"
5364
5434
  }, null, 512),
5365
- se.value ? (j(), p("div", Do, [n[1] ||= m("i", { class: "pi pi-map" }, null, -1), m("span", null, L(c.value), 1)])) : e.badgeLabel ? (j(), p("span", Oo, [n[2] ||= m("i", { class: "pi pi-globe" }, null, -1), _(L(e.badgeLabel), 1)])) : f("", !0),
5435
+ se.value ? (j(), p("div", Ao, [n[1] ||= m("i", { class: "pi pi-map" }, null, -1), m("span", null, L(c.value), 1)])) : e.badgeLabel ? (j(), p("span", jo, [n[2] ||= m("i", { class: "pi pi-globe" }, null, -1), _(L(e.badgeLabel), 1)])) : f("", !0),
5366
5436
  Y.value && e.featureDetail !== "none" ? (j(), p("div", {
5367
5437
  key: 2,
5368
5438
  class: D(["w-map-select__detail", {
@@ -5372,12 +5442,12 @@ var Ni = {
5372
5442
  }]),
5373
5443
  style: k(Ce.value),
5374
5444
  role: "tooltip"
5375
- }, [I(t.$slots, "feature-detail", {
5445
+ }, [F(t.$slots, "feature-detail", {
5376
5446
  feature: Y.value,
5377
5447
  selected: S(Y.value.id),
5378
- close: be
5379
- }, () => [m("span", ko, L(Y.value.nome), 1), Y.value.subtitulo ? (j(), p("span", Ao, L(Y.value.subtitulo), 1)) : f("", !0)])], 6)) : f("", !0)
5380
- ], 4), e.readonly ? f("", !0) : (j(), p("div", jo, [
5448
+ close: X
5449
+ }, () => [m("span", Mo, L(Y.value.nome), 1), Y.value.subtitulo ? (j(), p("span", No, L(Y.value.subtitulo), 1)) : f("", !0)])], 6)) : f("", !0)
5450
+ ], 4), e.readonly ? f("", !0) : (j(), p("div", Po, [
5381
5451
  s.value ? (j(), p("button", {
5382
5452
  key: 0,
5383
5453
  type: "button",
@@ -5386,8 +5456,8 @@ var Ni = {
5386
5456
  "aria-label": y.value,
5387
5457
  title: y.value,
5388
5458
  onClick: g
5389
- }, [m("i", { class: D(["pi", d.value ? "pi-list" : "pi-chevron-right"]) }, null, 2), e.modelValue.length ? (j(), p("span", No, L(e.modelValue.length), 1)) : f("", !0)], 8, Mo)) : f("", !0),
5390
- m("div", Po, [v(R(pe), null, {
5459
+ }, [m("i", { class: D(["pi", d.value ? "pi-list" : "pi-chevron-right"]) }, null, 2), e.modelValue.length ? (j(), p("span", Io, L(e.modelValue.length), 1)) : f("", !0)], 8, Fo)) : f("", !0),
5460
+ m("div", Lo, [v(R(pe), null, {
5391
5461
  default: H(() => [v(R(me), { class: "pi pi-search" }), v(R(J), {
5392
5462
  modelValue: M.value,
5393
5463
  "onUpdate:modelValue": n[0] ||= (e) => M.value = e,
@@ -5401,13 +5471,13 @@ var Ni = {
5401
5471
  "aria-label"
5402
5472
  ])]),
5403
5473
  _: 1
5404
- }), m("div", Fo, [m("span", Io, L(te.value), 1), m("button", {
5474
+ }), m("div", Ro, [m("span", zo, L(te.value), 1), m("button", {
5405
5475
  type: "button",
5406
5476
  class: "w-map-select__clear",
5407
5477
  disabled: e.disabled || !e.modelValue.length,
5408
5478
  onClick: w
5409
- }, L(e.clearLabel), 9, Lo)])]),
5410
- m("ul", Ro, [(j(!0), p(l, null, F(re.value, (n) => (j(), p("li", { key: n.id }, [I(t.$slots, "item", {
5479
+ }, L(e.clearLabel), 9, Bo)])]),
5480
+ m("ul", Vo, [(j(!0), p(l, null, P(ie.value, (n) => (j(), p("li", { key: n.id }, [F(t.$slots, "item", {
5411
5481
  feature: n,
5412
5482
  selected: S(n.id)
5413
5483
  }, () => [m("button", {
@@ -5417,26 +5487,26 @@ var Ni = {
5417
5487
  disabled: e.disabled,
5418
5488
  onClick: (e) => C(n.id)
5419
5489
  }, [
5420
- m("span", Bo, [S(n.id) ? (j(), p("i", Vo)) : f("", !0)]),
5421
- m("span", Ho, [m("span", Uo, L(n.nome), 1), n.subtitulo ? (j(), p("span", Wo, L(n.subtitulo), 1)) : f("", !0)]),
5422
- n.geometria ? f("", !0) : (j(), p("i", Go)),
5423
- n.area == null ? f("", !0) : (j(), p("span", Ko, L(ie(n)), 1))
5424
- ], 10, zo)])]))), 128)), re.value.length ? f("", !0) : (j(), p("li", qo, [I(t.$slots, "empty", {}, () => [_(L(e.emptyMessage), 1)])]))])
5490
+ m("span", Uo, [S(n.id) ? (j(), p("i", Wo)) : f("", !0)]),
5491
+ m("span", Go, [m("span", Ko, L(n.nome), 1), n.subtitulo ? (j(), p("span", qo, L(n.subtitulo), 1)) : f("", !0)]),
5492
+ n.geometria ? f("", !0) : (j(), p("i", Jo)),
5493
+ n.area == null ? f("", !0) : (j(), p("span", Yo, L(I(n)), 1))
5494
+ ], 10, Ho)])]))), 128)), ie.value.length ? f("", !0) : (j(), p("li", Xo, [F(t.$slots, "empty", {}, () => [_(L(e.emptyMessage), 1)])]))])
5425
5495
  ]))]), e.readonly ? f("", !0) : (j(), p("div", {
5426
5496
  key: 0,
5427
5497
  ref_key: "footer",
5428
5498
  ref: oe,
5429
5499
  class: "w-map-select__footer"
5430
- }, [I(t.$slots, "footer", {
5500
+ }, [F(t.$slots, "footer", {
5431
5501
  area: O.value,
5432
5502
  features: T.value
5433
- }, () => [m("span", Jo, [
5503
+ }, () => [m("span", Zo, [
5434
5504
  _(L(e.areaLabel) + " ", 1),
5435
5505
  m("strong", null, L(ae.value), 1),
5436
- m("span", Yo, L(e.areaSuffix), 1)
5506
+ m("span", Qo, L(e.areaSuffix), 1)
5437
5507
  ])])], 512))], 2));
5438
5508
  }
5439
- }), $o = {
5509
+ }), ns = {
5440
5510
  nota: {
5441
5511
  tone: "nota",
5442
5512
  label: "Nota",
@@ -5482,7 +5552,7 @@ var Ni = {
5482
5552
  label: "Em aberto",
5483
5553
  icon: "pi pi-question-circle"
5484
5554
  }
5485
- }, es = {
5555
+ }, rs = {
5486
5556
  note: "nota",
5487
5557
  info: "nota",
5488
5558
  observacao: "nota",
@@ -5509,19 +5579,19 @@ var Ni = {
5509
5579
  help: "pergunta",
5510
5580
  duvida: "pergunta"
5511
5581
  };
5512
- function ts(e) {
5582
+ function is(e) {
5513
5583
  return e.trim().toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g, "");
5514
5584
  }
5515
- function ns(e) {
5516
- let t = ts(e);
5517
- return $o[t] ?? $o[es[t]] ?? null;
5585
+ function as(e) {
5586
+ let t = is(e);
5587
+ return ns[t] ?? ns[rs[t]] ?? null;
5518
5588
  }
5519
- var rs = new Q().utils.escapeHtml;
5520
- function is(e, t) {
5589
+ var os = new Q().utils.escapeHtml;
5590
+ function ss(e, t) {
5521
5591
  let n = t?.trim() || e.label;
5522
- return `<div class="md-alert md-alert--${e.tone}"><p class="md-alert__head"><i class="${e.icon}" aria-hidden="true"></i>${rs(n)}</p><div class="md-alert__body">`;
5592
+ return `<div class="md-alert md-alert--${e.tone}"><p class="md-alert__head"><i class="${e.icon}" aria-hidden="true"></i>${os(n)}</p><div class="md-alert__body">`;
5523
5593
  }
5524
- var as = "</div></div>", os = {
5594
+ var cs = "</div></div>", ls = {
5525
5595
  bash: () => import("highlight.js/lib/languages/bash"),
5526
5596
  python: () => import("highlight.js/lib/languages/python"),
5527
5597
  javascript: () => import("highlight.js/lib/languages/javascript"),
@@ -5535,7 +5605,7 @@ var as = "</div></div>", os = {
5535
5605
  ini: () => import("highlight.js/lib/languages/ini"),
5536
5606
  markdown: () => import("highlight.js/lib/languages/markdown"),
5537
5607
  dockerfile: () => import("highlight.js/lib/languages/dockerfile")
5538
- }, ss = {
5608
+ }, us = {
5539
5609
  sh: "bash",
5540
5610
  shell: "bash",
5541
5611
  zsh: "bash",
@@ -5563,28 +5633,28 @@ var as = "</div></div>", os = {
5563
5633
  postgres: "sql",
5564
5634
  postgresql: "sql",
5565
5635
  docker: "dockerfile"
5566
- }, cs = null, ls = null;
5567
- function us() {
5568
- return cs !== null;
5636
+ }, ds = null, fs = null;
5637
+ function ps() {
5638
+ return ds !== null;
5569
5639
  }
5570
- async function ds() {
5571
- if (cs || ls) return ls ?? void 0;
5572
- ls = (async () => {
5640
+ async function ms() {
5641
+ if (ds || fs) return fs ?? void 0;
5642
+ fs = (async () => {
5573
5643
  let e = (await import("highlight.js/lib/core")).default;
5574
- await Promise.all(Object.entries(os).map(async ([t, n]) => {
5644
+ await Promise.all(Object.entries(ls).map(async ([t, n]) => {
5575
5645
  let r = await n();
5576
5646
  e.registerLanguage(t, r.default);
5577
- })), cs = (t, n) => e.highlight(t, { language: n }).value;
5578
- })(), await ls;
5647
+ })), ds = (t, n) => e.highlight(t, { language: n }).value;
5648
+ })(), await fs;
5579
5649
  }
5580
- function fs(e) {
5581
- let t = ts(e);
5582
- return ss[t] ?? t;
5650
+ function hs(e) {
5651
+ let t = is(e);
5652
+ return us[t] ?? t;
5583
5653
  }
5584
- function ps(e) {
5585
- return ts(e).replace(/[^\w\s-]/g, "").trim().replace(/\s+/g, "-") || "secao";
5654
+ function gs(e) {
5655
+ return is(e).replace(/[^\w\s-]/g, "").trim().replace(/\s+/g, "-") || "secao";
5586
5656
  }
5587
- var ms = /* @__PURE__ */ new Set([
5657
+ var _s = /* @__PURE__ */ new Set([
5588
5658
  "detalhes",
5589
5659
  "details",
5590
5660
  "passos",
@@ -5595,8 +5665,8 @@ var ms = /* @__PURE__ */ new Set([
5595
5665
  "tabs",
5596
5666
  "aba",
5597
5667
  "tab"
5598
- ]), hs = /^\s*([^\s]+)\s*(.*)$/;
5599
- function gs() {
5668
+ ]), vs = /^\s*([^\s]+)\s*(.*)$/;
5669
+ function ys() {
5600
5670
  let e = new Q({
5601
5671
  html: !1,
5602
5672
  linkify: !0,
@@ -5608,16 +5678,16 @@ function gs() {
5608
5678
  3,
5609
5679
  4
5610
5680
  ],
5611
- slugify: ps,
5681
+ slugify: gs,
5612
5682
  permalink: Ae.permalink.linkInsideHeader({
5613
5683
  symbol: "",
5614
5684
  class: "md-anchor",
5615
5685
  placement: "after",
5616
5686
  ariaHidden: !0
5617
5687
  })
5618
- }), _s(e), ys(e), bs(e), xs(e), Ss(e), Cs(e), ws(e), e;
5688
+ }), bs(e), Ss(e), Cs(e), ws(e), Ts(e), Es(e), Ds(e), e;
5619
5689
  }
5620
- function _s(e) {
5690
+ function bs(e) {
5621
5691
  e.core.ruler.after("block", "lz_alerta", (e) => {
5622
5692
  let t = e.tokens;
5623
5693
  for (let e = 0; e < t.length; e += 1) {
@@ -5627,9 +5697,9 @@ function _s(e) {
5627
5697
  if (r?.type !== "paragraph_open" || i?.type !== "inline") continue;
5628
5698
  let a = /^\[!([^\]\n]+)\][ \t]*([^\n]*)\n?/.exec(i.content);
5629
5699
  if (!a) continue;
5630
- let o = ns(a[1]);
5700
+ let o = as(a[1]);
5631
5701
  if (!o) continue;
5632
- let s = vs(t, e);
5702
+ let s = xs(t, e);
5633
5703
  s && (i.content = i.content.slice(a[0].length), n.type = "lz_alerta_open", n.tag = "div", n.meta = {
5634
5704
  spec: o,
5635
5705
  titulo: a[2]
@@ -5638,10 +5708,10 @@ function _s(e) {
5638
5708
  return !0;
5639
5709
  }), e.renderer.rules.lz_alerta_open = (e, t) => {
5640
5710
  let n = e[t].meta;
5641
- return is(n.spec, n.titulo);
5642
- }, e.renderer.rules.lz_alerta_close = () => as;
5711
+ return ss(n.spec, n.titulo);
5712
+ }, e.renderer.rules.lz_alerta_close = () => cs;
5643
5713
  }
5644
- function vs(e, t) {
5714
+ function xs(e, t) {
5645
5715
  let n = 0;
5646
5716
  for (let r = t; r < e.length; r += 1) {
5647
5717
  let t = e[r];
@@ -5650,37 +5720,37 @@ function vs(e, t) {
5650
5720
  }
5651
5721
  return null;
5652
5722
  }
5653
- function ys(e) {
5723
+ function Ss(e) {
5654
5724
  let t = [];
5655
5725
  e.use(je, "lz", {
5656
5726
  validate: (e) => {
5657
- let t = hs.exec(e);
5727
+ let t = vs.exec(e);
5658
5728
  if (!t) return !1;
5659
- let n = ts(t[1]);
5660
- return ms.has(n) || ns(n) !== null;
5729
+ let n = is(t[1]);
5730
+ return _s.has(n) || as(n) !== null;
5661
5731
  },
5662
5732
  render: (e, n) => {
5663
5733
  let r = e[n];
5664
5734
  if (r.nesting !== 1) {
5665
5735
  let e = t.pop();
5666
- return e === "detalhes" ? "</div></details>\n" : e === "aba" ? "</section>\n" : e === "alerta" ? `${as}\n` : "</div>\n";
5736
+ return e === "detalhes" ? "</div></details>\n" : e === "aba" ? "</section>\n" : e === "alerta" ? `${cs}\n` : "</div>\n";
5667
5737
  }
5668
- let i = hs.exec(r.info) ?? [
5738
+ let i = vs.exec(r.info) ?? [
5669
5739
  "",
5670
5740
  "",
5671
5741
  ""
5672
- ], a = ts(i[1]), o = i[2]?.trim();
5673
- if (a === "detalhes" || a === "details") return t.push("detalhes"), `<details class="md-details"><summary>${rs(o || "Detalhes")}</summary><div class="md-details__body">`;
5742
+ ], a = is(i[1]), o = i[2]?.trim();
5743
+ if (a === "detalhes" || a === "details") return t.push("detalhes"), `<details class="md-details"><summary>${os(o || "Detalhes")}</summary><div class="md-details__body">`;
5674
5744
  if (a === "passos" || a === "steps") return t.push("bloco"), "<div class=\"md-steps\">";
5675
5745
  if (a === "cards" || a === "grade") return t.push("bloco"), "<div class=\"md-cards\">";
5676
5746
  if (a === "abas" || a === "tabs") return t.push("bloco"), "<div class=\"md-tabs\" data-md-tabs>";
5677
- if (a === "aba" || a === "tab") return t.push("aba"), `<section class="md-tabs__panel" data-md-tab="${rs(o || "Aba")}">`;
5678
- let s = ns(a);
5679
- return s ? (t.push("alerta"), is(s, o)) : (t.push("bloco"), "<div>");
5747
+ if (a === "aba" || a === "tab") return t.push("aba"), `<section class="md-tabs__panel" data-md-tab="${os(o || "Aba")}">`;
5748
+ let s = as(a);
5749
+ return s ? (t.push("alerta"), ss(s, o)) : (t.push("bloco"), "<div>");
5680
5750
  }
5681
5751
  });
5682
5752
  }
5683
- function bs(e) {
5753
+ function Cs(e) {
5684
5754
  e.core.ruler.after("inline", "lz_tarefas", (e) => {
5685
5755
  let t = e.tokens;
5686
5756
  for (let n = 2; n < t.length; n += 1) {
@@ -5697,26 +5767,26 @@ function bs(e) {
5697
5767
  return !0;
5698
5768
  });
5699
5769
  }
5700
- function xs(e) {
5770
+ function ws(e) {
5701
5771
  e.renderer.rules.fence = (e, t) => {
5702
- let n = e[t], r = n.info.trim(), i = r.split(/\s+/)[0] ?? "", a = fs(i), o = /title="([^"]*)"/.exec(r)?.[1];
5703
- if (a === "mermaid") return `<figure class="md-mermaid" data-md-mermaid><pre class="md-mermaid__fonte">${rs(n.content)}</pre>` + (o ? `<figcaption>${rs(o)}</figcaption>` : "") + "</figure>\n";
5704
- let s = cs && os[a] ? cs(n.content, a) : rs(n.content);
5705
- return `<div class="md-code" data-md-code>${o || i ? `<div class="md-code__bar"><span class="md-code__title">${rs(o ?? "")}</span><span class="md-code__lang">${rs(i)}</span></div>` : ""}<pre class="md-code__pre"><code class="hljs language-${rs(a)}">${s}</code></pre></div>\n`;
5772
+ let n = e[t], r = n.info.trim(), i = r.split(/\s+/)[0] ?? "", a = hs(i), o = /title="([^"]*)"/.exec(r)?.[1];
5773
+ if (a === "mermaid") return `<figure class="md-mermaid" data-md-mermaid><pre class="md-mermaid__fonte">${os(n.content)}</pre>` + (o ? `<figcaption>${os(o)}</figcaption>` : "") + "</figure>\n";
5774
+ let s = ds && ls[a] ? ds(n.content, a) : os(n.content);
5775
+ return `<div class="md-code" data-md-code>${o || i ? `<div class="md-code__bar"><span class="md-code__title">${os(o ?? "")}</span><span class="md-code__lang">${os(i)}</span></div>` : ""}<pre class="md-code__pre"><code class="hljs language-${os(a)}">${s}</code></pre></div>\n`;
5706
5776
  };
5707
5777
  }
5708
- function Ss(e) {
5778
+ function Ts(e) {
5709
5779
  let t = e.renderer.rules.table_open;
5710
5780
  e.renderer.rules.table_open = (e, n, r, i, a) => `<div class="md-table">${t ? t(e, n, r, i, a) : a.renderToken(e, n, r)}`, e.renderer.rules.table_close = (e, t, n, r, i) => `${i.renderToken(e, t, n)}</div>`;
5711
5781
  }
5712
- function Cs(e) {
5782
+ function Es(e) {
5713
5783
  let t = e.renderer.rules.link_open;
5714
5784
  e.renderer.rules.link_open = (e, n, r, i, a) => {
5715
5785
  let o = String(e[n].attrGet("href") ?? "");
5716
5786
  return /^https?:\/\//i.test(o) && (e[n].attrSet("target", "_blank"), e[n].attrSet("rel", "noopener noreferrer"), e[n].attrJoin("class", "md-link-externo")), t ? t(e, n, r, i, a) : a.renderToken(e, n, r);
5717
5787
  };
5718
5788
  }
5719
- function ws(e) {
5789
+ function Ds(e) {
5720
5790
  e.core.ruler.after("inline", "lz_figuras", (e) => {
5721
5791
  let t = e.tokens;
5722
5792
  for (let e = 1; e < t.length - 1; e += 1) {
@@ -5732,17 +5802,17 @@ function ws(e) {
5732
5802
  let o = t ? t(e, n, r, i, a) : a.renderToken(e, n, r);
5733
5803
  if (!e[n].meta?.figura) return o;
5734
5804
  let s = e[n].content?.trim();
5735
- return s ? `${o}<figcaption>${rs(s)}</figcaption>` : o;
5805
+ return s ? `${o}<figcaption>${os(s)}</figcaption>` : o;
5736
5806
  };
5737
5807
  }
5738
- var Ts = null;
5739
- function Es() {
5740
- return Ts ||= gs(), Ts;
5808
+ var Os = null;
5809
+ function ks() {
5810
+ return Os ||= ys(), Os;
5741
5811
  }
5742
- function Ds(e) {
5812
+ function As(e) {
5743
5813
  return (e.children ?? []).filter((e) => e.type === "text" || e.type === "code_inline").map((e) => e.content).join("").trim();
5744
5814
  }
5745
- function Os(e) {
5815
+ function js(e) {
5746
5816
  let t = [];
5747
5817
  for (let n = 0; n < e.length; n += 1) {
5748
5818
  let r = e[n];
@@ -5752,13 +5822,13 @@ function Os(e) {
5752
5822
  let a = String(r.attrGet("id") ?? ""), o = e[n + 1];
5753
5823
  !a || o?.type !== "inline" || t.push({
5754
5824
  id: a,
5755
- text: Ds(o),
5825
+ text: As(o),
5756
5826
  level: i
5757
5827
  });
5758
5828
  }
5759
5829
  return t;
5760
5830
  }
5761
- function ks(e) {
5831
+ function Ms(e) {
5762
5832
  return $.sanitize(e, { ADD_ATTR: [
5763
5833
  "target",
5764
5834
  "open",
@@ -5766,16 +5836,16 @@ function ks(e) {
5766
5836
  "disabled"
5767
5837
  ] });
5768
5838
  }
5769
- function As(e) {
5770
- let t = Es(), n = {}, r = t.parse(e ?? "", n);
5839
+ function Ns(e) {
5840
+ let t = ks(), n = {}, r = t.parse(e ?? "", n);
5771
5841
  return {
5772
- html: ks(t.renderer.render(r, t.options, n)),
5773
- headings: Os(r)
5842
+ html: Ms(t.renderer.render(r, t.options, n)),
5843
+ headings: js(r)
5774
5844
  };
5775
5845
  }
5776
5846
  //#endregion
5777
5847
  //#region src/utils/markdownEnhance.ts
5778
- function js(e) {
5848
+ function Ps(e) {
5779
5849
  e.querySelectorAll("[data-md-code]").forEach((e) => {
5780
5850
  if (e.dataset.mdPronto) return;
5781
5851
  e.dataset.mdPronto = "1";
@@ -5790,7 +5860,7 @@ function js(e) {
5790
5860
  }), e.appendChild(t);
5791
5861
  });
5792
5862
  }
5793
- function Ms(e) {
5863
+ function Fs(e) {
5794
5864
  let t = Array.from(e.querySelectorAll(".md-tabs__panel")).filter((e) => !e.parentElement?.hasAttribute("data-md-tabs")), n = /* @__PURE__ */ new Set();
5795
5865
  t.forEach((e) => {
5796
5866
  if (n.has(e)) return;
@@ -5801,8 +5871,8 @@ function Ms(e) {
5801
5871
  i.className = "md-tabs", i.setAttribute("data-md-tabs", ""), e.before(i), t.forEach((e) => i.appendChild(e));
5802
5872
  });
5803
5873
  }
5804
- function Ns(e) {
5805
- Ms(e), e.querySelectorAll("[data-md-tabs]").forEach((e, t) => {
5874
+ function Is(e) {
5875
+ Fs(e), e.querySelectorAll("[data-md-tabs]").forEach((e, t) => {
5806
5876
  if (e.dataset.mdPronto) return;
5807
5877
  let n = Array.from(e.querySelectorAll(":scope > .md-tabs__panel"));
5808
5878
  if (!n.length) return;
@@ -5824,11 +5894,11 @@ function Ns(e) {
5824
5894
  e.prepend(r), a(0);
5825
5895
  });
5826
5896
  }
5827
- var Ps = null, Fs = 0;
5828
- async function Is() {
5829
- return Ps ||= import("mermaid").then((e) => e.default), Ps;
5897
+ var Ls = null, Rs = 0;
5898
+ async function zs() {
5899
+ return Ls ||= import("mermaid").then((e) => e.default), Ls;
5830
5900
  }
5831
- var Ls = /* @__PURE__ */ new Set([
5901
+ var Bs = /* @__PURE__ */ new Set([
5832
5902
  "script",
5833
5903
  "iframe",
5834
5904
  "object",
@@ -5844,59 +5914,59 @@ var Ls = /* @__PURE__ */ new Set([
5844
5914
  "animate",
5845
5915
  "set"
5846
5916
  ]);
5847
- function Rs(e) {
5917
+ function Vs(e) {
5848
5918
  for (let t of Array.from(e.attributes)) {
5849
5919
  let n = t.name.toLowerCase(), r = t.value.trim().toLowerCase(), i = n === "href" || n === "xlink:href" || n === "src";
5850
5920
  (n.startsWith("on") || i && /^(javascript|data|vbscript):/.test(r)) && e.removeAttribute(t.name);
5851
5921
  }
5852
- for (let t of Array.from(e.children)) Ls.has(t.localName.toLowerCase()) ? t.remove() : Rs(t);
5922
+ for (let t of Array.from(e.children)) Bs.has(t.localName.toLowerCase()) ? t.remove() : Vs(t);
5853
5923
  }
5854
- function zs(e) {
5924
+ function Hs(e) {
5855
5925
  let t = new DOMParser().parseFromString(e, "image/svg+xml");
5856
5926
  if (t.querySelector("parsererror")) return null;
5857
5927
  let n = t.documentElement;
5858
- return n.localName.toLowerCase() === "svg" ? (Rs(n), n) : null;
5928
+ return n.localName.toLowerCase() === "svg" ? (Vs(n), n) : null;
5859
5929
  }
5860
- function Bs(e, t, n) {
5930
+ function Us(e, t, n) {
5861
5931
  return e.getPropertyValue(t).trim() || n;
5862
5932
  }
5863
- function Vs(e) {
5864
- let t = getComputedStyle(document.documentElement), n = Bs(t, "--surface", "#ffffff"), r = Bs(t, "--fg", "#141a22"), i = Bs(t, "--primary", "#1f5092"), a = Bs(t, "--primary-soft", "#eef4fb"), o = Bs(t, "--border-strong", "#cdd6e2");
5933
+ function Ws(e) {
5934
+ let t = getComputedStyle(document.documentElement), n = Us(t, "--surface", "#ffffff"), r = Us(t, "--fg", "#141a22"), i = Us(t, "--primary", "#1f5092"), a = Us(t, "--primary-soft", "#eef4fb"), o = Us(t, "--border-strong", "#cdd6e2");
5865
5935
  e.initialize({
5866
5936
  startOnLoad: !1,
5867
5937
  securityLevel: "strict",
5868
5938
  theme: "base",
5869
- fontFamily: Bs(t, "--font-sans", "inherit"),
5939
+ fontFamily: Us(t, "--font-sans", "inherit"),
5870
5940
  flowchart: { useMaxWidth: !0 },
5871
5941
  themeVariables: {
5872
5942
  background: n,
5873
5943
  primaryColor: a,
5874
5944
  primaryTextColor: r,
5875
5945
  primaryBorderColor: i,
5876
- secondaryColor: Bs(t, "--surface-3", "#eef2f7"),
5877
- tertiaryColor: Bs(t, "--surface-2", "#f8fafc"),
5946
+ secondaryColor: Us(t, "--surface-3", "#eef2f7"),
5947
+ tertiaryColor: Us(t, "--surface-2", "#f8fafc"),
5878
5948
  lineColor: o,
5879
5949
  textColor: r,
5880
5950
  mainBkg: a,
5881
5951
  nodeBorder: i,
5882
- clusterBkg: Bs(t, "--surface-2", "#f8fafc"),
5952
+ clusterBkg: Us(t, "--surface-2", "#f8fafc"),
5883
5953
  clusterBorder: o,
5884
5954
  fontSize: "13px"
5885
5955
  }
5886
5956
  });
5887
5957
  }
5888
- async function Hs(e, t = !1) {
5958
+ async function Gs(e, t = !1) {
5889
5959
  let n = Array.from(e.querySelectorAll("[data-md-mermaid]")).filter((e) => t || !e.dataset.mdEstado);
5890
5960
  if (!n.length) return;
5891
- let r = await Is();
5892
- Vs(r);
5961
+ let r = await zs();
5962
+ Ws(r);
5893
5963
  for (let e of n) {
5894
5964
  let t = e.querySelector(".md-mermaid__fonte")?.textContent ?? "";
5895
5965
  if (t.trim()) {
5896
5966
  e.querySelector(".md-mermaid__svg")?.remove();
5897
5967
  try {
5898
- Fs += 1;
5899
- let { svg: n } = await r.render(`md-diagrama-${Fs}`, t), i = zs(n);
5968
+ Rs += 1;
5969
+ let { svg: n } = await r.render(`md-diagrama-${Rs}`, t), i = Hs(n);
5900
5970
  if (!i) {
5901
5971
  e.dataset.mdEstado = "erro";
5902
5972
  continue;
@@ -5909,15 +5979,15 @@ async function Hs(e, t = !1) {
5909
5979
  }
5910
5980
  }
5911
5981
  }
5912
- async function Us(e) {
5913
- e && (js(e), Ns(e), await Hs(e));
5982
+ async function Ks(e) {
5983
+ e && (Ps(e), Is(e), await Gs(e));
5914
5984
  }
5915
5985
  //#endregion
5916
5986
  //#region src/components/ui/WMarkdownView.vue?vue&type=script&setup=true&lang.ts
5917
- var Ws = {
5987
+ var qs = {
5918
5988
  key: 0,
5919
5989
  class: "w-markdown-view w-markdown-view--empty"
5920
- }, Gs = ["innerHTML"], Ks = /* @__PURE__ */ y({
5990
+ }, Js = ["innerHTML"], Ys = /* @__PURE__ */ y({
5921
5991
  __name: "WMarkdownView",
5922
5992
  props: {
5923
5993
  source: {},
@@ -5925,42 +5995,42 @@ var Ws = {
5925
5995
  },
5926
5996
  emits: ["headings"],
5927
5997
  setup(e, { emit: t }) {
5928
- let n = e, r = t, i = P(null), a = P(us()), o = u(() => (a.value, As(n.source ?? ""))), s = u(() => o.value.html), c = u(() => !n.source || !n.source.trim());
5929
- V(o, (e) => r("headings", e.headings), { immediate: !0 }), V(s, () => void E(() => Us(i.value)));
5998
+ let n = e, r = t, i = N(null), a = N(ps()), o = u(() => (a.value, Ns(n.source ?? ""))), s = u(() => o.value.html), c = u(() => !n.source || !n.source.trim());
5999
+ V(o, (e) => r("headings", e.headings), { immediate: !0 }), V(s, () => void E(() => Ks(i.value)));
5930
6000
  let l = null;
5931
6001
  function d() {
5932
- typeof MutationObserver > "u" || (l = new MutationObserver(() => void Hs(i.value, !0)), l.observe(document.documentElement, {
6002
+ typeof MutationObserver > "u" || (l = new MutationObserver(() => void Gs(i.value, !0)), l.observe(document.documentElement, {
5933
6003
  attributes: !0,
5934
6004
  attributeFilter: ["class"]
5935
6005
  }));
5936
6006
  }
5937
6007
  return ee(async () => {
5938
- await E(), await Us(i.value), d(), a.value ||= (await ds(), !0);
5939
- }), A(() => l?.disconnect()), (t, n) => c.value ? (j(), p("div", Ws, L(e.emptyText), 1)) : (j(), p("div", {
6008
+ await E(), await Ks(i.value), d(), a.value ||= (await ms(), !0);
6009
+ }), A(() => l?.disconnect()), (t, n) => c.value ? (j(), p("div", qs, L(e.emptyText), 1)) : (j(), p("div", {
5940
6010
  key: 1,
5941
6011
  ref_key: "raiz",
5942
6012
  ref: i,
5943
6013
  class: "w-markdown-view",
5944
6014
  innerHTML: s.value
5945
- }, null, 8, Gs));
6015
+ }, null, 8, Js));
5946
6016
  }
5947
- }), qs = {
6017
+ }), Xs = {
5948
6018
  class: "w-markdown-editor__toolbar",
5949
6019
  role: "toolbar",
5950
6020
  "aria-label": "Formatação markdown"
5951
- }, Js = [
6021
+ }, Zs = [
5952
6022
  "aria-label",
5953
6023
  "title",
5954
6024
  "disabled",
5955
6025
  "onClick"
5956
- ], Ys = ["aria-pressed"], Xs = ["aria-pressed"], Zs = {
6026
+ ], Qs = ["aria-pressed"], $s = ["aria-pressed"], ec = {
5957
6027
  key: 0,
5958
6028
  class: "w-markdown-editor__ajuda"
5959
- }, Qs = [
6029
+ }, tc = [
5960
6030
  "value",
5961
6031
  "disabled",
5962
6032
  "placeholder"
5963
- ], $s = /* @__PURE__ */ y({
6033
+ ], nc = /* @__PURE__ */ y({
5964
6034
  __name: "WMarkdownEditor",
5965
6035
  props: {
5966
6036
  modelValue: {},
@@ -5975,7 +6045,7 @@ var Ws = {
5975
6045
  },
5976
6046
  emits: ["update:modelValue"],
5977
6047
  setup(e, { emit: t }) {
5978
- let n = e, r = t, i = P(null), a = P(!1), o = u(() => n.previewMode === "split"), s = u(() => o.value || !a.value), c = u(() => o.value || a.value);
6048
+ let n = e, r = t, i = N(null), a = N(!1), o = u(() => n.previewMode === "split"), s = u(() => o.value || !a.value), c = u(() => o.value || a.value);
5979
6049
  function h(e) {
5980
6050
  r("update:modelValue", e.target.value);
5981
6051
  }
@@ -6043,7 +6113,7 @@ var Ws = {
6043
6113
  function ne() {
6044
6114
  a.value = !a.value;
6045
6115
  }
6046
- let N = P(!1), I = [
6116
+ let re = N(!1), F = [
6047
6117
  {
6048
6118
  sintaxe: "## Título",
6049
6119
  efeito: "Seção (entra no índice lateral)"
@@ -6084,7 +6154,7 @@ var Ws = {
6084
6154
  sintaxe: "```mermaid",
6085
6155
  efeito: "Diagrama de fluxo"
6086
6156
  }
6087
- ], re = [
6157
+ ], ie = [
6088
6158
  {
6089
6159
  glyph: "B",
6090
6160
  label: "Negrito",
@@ -6142,8 +6212,8 @@ var Ws = {
6142
6212
  }
6143
6213
  ];
6144
6214
  return (t, n) => (j(), p("div", { class: D(["w-markdown-editor", { "w-markdown-editor--split": o.value }]) }, [
6145
- m("div", qs, [
6146
- (j(), p(l, null, F(re, (t) => m("button", {
6215
+ m("div", Xs, [
6216
+ (j(), p(l, null, P(ie, (t) => m("button", {
6147
6217
  key: t.label,
6148
6218
  type: "button",
6149
6219
  class: "w-markdown-editor__tool",
@@ -6162,18 +6232,18 @@ var Ws = {
6162
6232
  "w-markdown-editor__glyph--italic": t.glyph === "I"
6163
6233
  }]),
6164
6234
  "aria-hidden": "true"
6165
- }, L(t.glyph), 3))], 8, Js)), 64)),
6235
+ }, L(t.glyph), 3))], 8, Zs)), 64)),
6166
6236
  m("button", {
6167
6237
  type: "button",
6168
- class: D(["w-markdown-editor__tool w-markdown-editor__tool--ajuda", { "w-markdown-editor__tool--active": N.value }]),
6238
+ class: D(["w-markdown-editor__tool w-markdown-editor__tool--ajuda", { "w-markdown-editor__tool--active": re.value }]),
6169
6239
  "aria-label": "Sintaxe disponível",
6170
6240
  title: "Sintaxe disponível",
6171
- "aria-pressed": N.value,
6172
- onClick: n[0] ||= (e) => N.value = !N.value
6241
+ "aria-pressed": re.value,
6242
+ onClick: n[0] ||= (e) => re.value = !re.value
6173
6243
  }, [...n[1] ||= [m("i", {
6174
6244
  class: "pi pi-question-circle",
6175
6245
  "aria-hidden": "true"
6176
- }, null, -1)]], 10, Ys),
6246
+ }, null, -1)]], 10, Qs),
6177
6247
  o.value ? f("", !0) : (j(), p("button", {
6178
6248
  key: 0,
6179
6249
  type: "button",
@@ -6185,9 +6255,9 @@ var Ws = {
6185
6255
  }, [m("i", {
6186
6256
  class: D(a.value ? "pi pi-pencil" : "pi pi-eye"),
6187
6257
  "aria-hidden": "true"
6188
- }, null, 2)], 10, Xs))
6258
+ }, null, 2)], 10, $s))
6189
6259
  ]),
6190
- N.value ? (j(), p("dl", Zs, [(j(), p(l, null, F(I, (e) => (j(), p(l, { key: e.sintaxe }, [m("dt", null, L(e.sintaxe), 1), m("dd", null, L(e.efeito), 1)], 64))), 64))])) : f("", !0),
6260
+ re.value ? (j(), p("dl", ec, [(j(), p(l, null, P(F, (e) => (j(), p(l, { key: e.sintaxe }, [m("dt", null, L(e.sintaxe), 1), m("dd", null, L(e.efeito), 1)], 64))), 64))])) : f("", !0),
6191
6261
  m("div", {
6192
6262
  class: "w-markdown-editor__body",
6193
6263
  style: k({
@@ -6204,7 +6274,7 @@ var Ws = {
6204
6274
  placeholder: e.placeholder,
6205
6275
  spellcheck: "false",
6206
6276
  onInput: h
6207
- }, null, 40, Qs)) : f("", !0), c.value ? (j(), d(Ks, {
6277
+ }, null, 40, tc)) : f("", !0), c.value ? (j(), d(Ys, {
6208
6278
  key: 1,
6209
6279
  class: "w-markdown-editor__preview",
6210
6280
  source: e.modelValue,
@@ -6212,28 +6282,28 @@ var Ws = {
6212
6282
  }, null, 8, ["source"])) : f("", !0)], 4)
6213
6283
  ], 2));
6214
6284
  }
6215
- }), ec = {
6285
+ }), rc = {
6216
6286
  key: 0,
6217
6287
  class: "w-md-toc",
6218
6288
  "aria-label": "Índice do documento"
6219
- }, tc = { class: "w-md-toc__titulo" }, nc = {
6289
+ }, ic = { class: "w-md-toc__titulo" }, ac = {
6220
6290
  key: 0,
6221
6291
  class: "w-md-toc__busca"
6222
- }, rc = { class: "w-md-toc__lista" }, ic = [
6292
+ }, oc = { class: "w-md-toc__lista" }, sc = [
6223
6293
  "aria-expanded",
6224
6294
  "aria-label",
6225
6295
  "onClick"
6226
- ], ac = {
6296
+ ], cc = {
6227
6297
  key: 1,
6228
6298
  class: "w-md-toc__chevron w-md-toc__chevron--vazio",
6229
6299
  "aria-hidden": "true"
6230
- }, oc = ["href", "onClick"], sc = {
6300
+ }, lc = ["href", "onClick"], uc = {
6231
6301
  key: 0,
6232
6302
  class: "w-md-toc__lista"
6233
- }, cc = ["href", "onClick"], lc = {
6303
+ }, dc = ["href", "onClick"], fc = {
6234
6304
  key: 0,
6235
6305
  class: "w-md-toc__vazio"
6236
- }, uc = /* @__PURE__ */ y({
6306
+ }, pc = /* @__PURE__ */ y({
6237
6307
  __name: "WMarkdownToc",
6238
6308
  props: {
6239
6309
  headings: {},
@@ -6246,7 +6316,7 @@ var Ws = {
6246
6316
  maxHeight: { default: "calc(100vh - 14rem)" }
6247
6317
  },
6248
6318
  setup(e) {
6249
- let t = e, n = P(""), r = P(""), i = P(null), a = null, o = u(() => {
6319
+ let t = e, n = N(""), r = N(""), i = N(null), a = null, o = u(() => {
6250
6320
  let e = [];
6251
6321
  for (let n of t.headings) n.level <= 2 || !e.length ? e.push({
6252
6322
  titulo: n,
@@ -6289,9 +6359,9 @@ var Ws = {
6289
6359
  block: "start"
6290
6360
  }));
6291
6361
  }
6292
- return V(() => t.headings, () => void E(_), { immediate: !0 }), A(() => a?.disconnect()), (t, i) => e.headings.length >= e.minHeadings ? (j(), p("nav", ec, [
6293
- m("p", tc, L(e.title), 1),
6294
- e.searchable ? (j(), p("div", nc, [i[1] ||= m("i", {
6362
+ return V(() => t.headings, () => void E(_), { immediate: !0 }), A(() => a?.disconnect()), (t, i) => e.headings.length >= e.minHeadings ? (j(), p("nav", rc, [
6363
+ m("p", ic, L(e.title), 1),
6364
+ e.searchable ? (j(), p("div", ac, [i[1] ||= m("i", {
6295
6365
  class: "pi pi-search",
6296
6366
  "aria-hidden": "true"
6297
6367
  }, null, -1), U(m("input", {
@@ -6303,7 +6373,7 @@ var Ws = {
6303
6373
  m("div", {
6304
6374
  class: "w-md-toc__corpo",
6305
6375
  style: k({ maxHeight: e.maxHeight })
6306
- }, [m("ul", rc, [(j(!0), p(l, null, F(c.value, (e) => (j(), p("li", {
6376
+ }, [m("ul", oc, [(j(!0), p(l, null, P(c.value, (e) => (j(), p("li", {
6307
6377
  key: e.titulo.id,
6308
6378
  class: "w-md-toc__grupo"
6309
6379
  }, [m("div", { class: D(["w-md-toc__item w-md-toc__item--n2", { "w-md-toc__item--ativo": n.value === e.titulo.id }]) }, [e.filhos.length ? (j(), p("button", {
@@ -6316,39 +6386,39 @@ var Ws = {
6316
6386
  }, [m("i", {
6317
6387
  class: D(h(e) ? "pi pi-chevron-down" : "pi pi-chevron-right"),
6318
6388
  "aria-hidden": "true"
6319
- }, null, 2)], 8, ic)) : (j(), p("span", ac)), m("a", {
6389
+ }, null, 2)], 8, sc)) : (j(), p("span", cc)), m("a", {
6320
6390
  href: `#${e.titulo.id}`,
6321
6391
  onClick: G((t) => v(e.titulo.id), ["prevent"])
6322
- }, L(e.titulo.text), 9, oc)], 2), h(e) ? (j(), p("ul", sc, [(j(!0), p(l, null, F(e.filhos, (e) => (j(), p("li", {
6392
+ }, L(e.titulo.text), 9, lc)], 2), h(e) ? (j(), p("ul", uc, [(j(!0), p(l, null, P(e.filhos, (e) => (j(), p("li", {
6323
6393
  key: e.id,
6324
6394
  class: D(["w-md-toc__item w-md-toc__item--n3", { "w-md-toc__item--ativo": n.value === e.id }])
6325
6395
  }, [m("a", {
6326
6396
  href: `#${e.id}`,
6327
6397
  onClick: G((t) => v(e.id), ["prevent"])
6328
- }, L(e.text), 9, cc)], 2))), 128))])) : f("", !0)]))), 128))]), d.value && !c.value.length ? (j(), p("p", lc, "Nenhuma seção encontrada")) : f("", !0)], 4)
6398
+ }, L(e.text), 9, dc)], 2))), 128))])) : f("", !0)]))), 128))]), d.value && !c.value.length ? (j(), p("p", fc, "Nenhuma seção encontrada")) : f("", !0)], 4)
6329
6399
  ])) : f("", !0);
6330
6400
  }
6331
- }), dc = /* @__PURE__ */ y({
6401
+ }), mc = /* @__PURE__ */ y({
6332
6402
  name: "WDialog",
6333
6403
  inheritAttrs: !1,
6334
6404
  __name: "WDialog",
6335
6405
  setup(e) {
6336
6406
  let t = s();
6337
- return (e, n) => (j(), d(R(ge), T({ "append-to": R(t)?.hostEl.value ?? "body" }, e.$attrs), h({ _: 2 }, [F(e.$slots, (t, n) => ({
6407
+ return (e, n) => (j(), d(R(ge), T({ "append-to": R(t)?.hostEl.value ?? "body" }, e.$attrs), h({ _: 2 }, [P(e.$slots, (t, n) => ({
6338
6408
  name: n,
6339
- fn: H((t) => [I(e.$slots, n, O(b(t ?? {})))])
6409
+ fn: H((t) => [F(e.$slots, n, O(b(t ?? {})))])
6340
6410
  }))]), 1040, ["append-to"]));
6341
6411
  }
6342
- }), fc = ["aria-label"], pc = [
6412
+ }), hc = ["aria-label"], gc = [
6343
6413
  "aria-selected",
6344
6414
  "tabindex",
6345
6415
  "disabled",
6346
6416
  "onClick",
6347
6417
  "onKeydown"
6348
- ], mc = {
6418
+ ], _c = {
6349
6419
  key: 1,
6350
6420
  class: "w-tab-bar__badge"
6351
- }, hc = /* @__PURE__ */ y({
6421
+ }, vc = /* @__PURE__ */ y({
6352
6422
  __name: "WTabBar",
6353
6423
  props: {
6354
6424
  modelValue: {},
@@ -6357,7 +6427,7 @@ var Ws = {
6357
6427
  },
6358
6428
  emits: ["update:modelValue"],
6359
6429
  setup(e, { emit: t }) {
6360
- let n = t, r = P([]);
6430
+ let n = t, r = N([]);
6361
6431
  function i(e, t) {
6362
6432
  e instanceof HTMLButtonElement && (r.value[t] = e);
6363
6433
  }
@@ -6378,7 +6448,7 @@ var Ws = {
6378
6448
  class: "w-tab-bar",
6379
6449
  role: "tablist",
6380
6450
  "aria-label": e.ariaLabel
6381
- }, [(j(!0), p(l, null, F(e.items, (t, n) => (j(), p("button", {
6451
+ }, [(j(!0), p(l, null, P(e.items, (t, n) => (j(), p("button", {
6382
6452
  key: t.value,
6383
6453
  ref_for: !0,
6384
6454
  ref: (e) => i(e, n),
@@ -6397,24 +6467,24 @@ var Ws = {
6397
6467
  "aria-hidden": "true"
6398
6468
  }, null, 2)) : f("", !0),
6399
6469
  m("span", null, L(t.label), 1),
6400
- t.badge !== void 0 && t.badge !== null ? (j(), p("span", mc, L(t.badge), 1)) : f("", !0)
6401
- ], 42, pc))), 128))], 8, fc));
6470
+ t.badge !== void 0 && t.badge !== null ? (j(), p("span", _c, L(t.badge), 1)) : f("", !0)
6471
+ ], 42, gc))), 128))], 8, hc));
6402
6472
  }
6403
- }), gc = { class: "w-tab-nav" }, _c = ["aria-label"], vc = {
6473
+ }), yc = { class: "w-tab-nav" }, bc = ["aria-label"], xc = {
6404
6474
  key: 0,
6405
6475
  class: "w-tab-nav__group",
6406
6476
  "aria-hidden": "true"
6407
- }, yc = [
6477
+ }, Sc = [
6408
6478
  "tabindex",
6409
6479
  "aria-selected",
6410
6480
  "onClick",
6411
6481
  "onAuxclick",
6412
6482
  "onContextmenu",
6413
6483
  "onKeydown"
6414
- ], bc = ["title"], xc = ["aria-label", "onClick"], Sc = {
6484
+ ], Cc = ["title"], wc = ["aria-label", "onClick"], Tc = {
6415
6485
  key: 0,
6416
6486
  class: "w-tab-nav__actions"
6417
- }, Cc = /* @__PURE__ */ y({
6487
+ }, Ec = /* @__PURE__ */ y({
6418
6488
  __name: "WTabNav",
6419
6489
  props: {
6420
6490
  tabs: {},
@@ -6426,7 +6496,7 @@ var Ws = {
6426
6496
  "reload"
6427
6497
  ],
6428
6498
  setup(e, { emit: t }) {
6429
- let n = e, r = t, i = u(() => n.tabs.tabs.value), a = u(() => n.tabs.activeKey.value), o = P([]), s = P(null);
6499
+ let n = e, r = t, i = u(() => n.tabs.tabs.value), a = u(() => n.tabs.activeKey.value), o = N([]), s = N(null);
6430
6500
  function c(e, t) {
6431
6501
  e instanceof HTMLElement && (o.value[t] = e);
6432
6502
  }
@@ -6450,7 +6520,7 @@ var Ws = {
6450
6520
  let r = (e + t + n) % n;
6451
6521
  d(i.value[r]), o.value[r]?.focus();
6452
6522
  }
6453
- let _ = P(null), y = P(null), b = u(() => {
6523
+ let _ = N(null), y = N(null), b = u(() => {
6454
6524
  let e = y.value;
6455
6525
  return e ? [
6456
6526
  {
@@ -6488,14 +6558,14 @@ var Ws = {
6488
6558
  let t = i.value[e]?.group;
6489
6559
  return !!t && t !== i.value[e - 1]?.group;
6490
6560
  }
6491
- return (t, n) => (j(), p("div", gc, [
6561
+ return (t, n) => (j(), p("div", yc, [
6492
6562
  m("div", {
6493
6563
  ref_key: "trilho",
6494
6564
  ref: s,
6495
6565
  class: "w-tab-nav__list",
6496
6566
  role: "tablist",
6497
6567
  "aria-label": e.ariaLabel ?? "Abas abertas"
6498
- }, [(j(!0), p(l, null, F(i.value, (e, r) => (j(), p(l, { key: e.key }, [S(r) ? (j(), p("span", vc, L(e.group), 1)) : f("", !0), m("div", {
6568
+ }, [(j(!0), p(l, null, P(i.value, (e, r) => (j(), p(l, { key: e.key }, [S(r) ? (j(), p("span", xc, L(e.group), 1)) : f("", !0), m("div", {
6499
6569
  ref_for: !0,
6500
6570
  ref: (e) => c(e, r),
6501
6571
  role: "tab",
@@ -6510,7 +6580,7 @@ var Ws = {
6510
6580
  W(G((e) => g(r, -1), ["prevent"]), ["left"]),
6511
6581
  W(G((t) => d(e), ["prevent"]), ["enter"])
6512
6582
  ]
6513
- }, [I(t.$slots, "tab", {
6583
+ }, [F(t.$slots, "tab", {
6514
6584
  tab: e,
6515
6585
  active: e.key === a.value
6516
6586
  }, () => [e.icon ? (j(), p("i", {
@@ -6520,7 +6590,7 @@ var Ws = {
6520
6590
  }, null, 2)) : f("", !0), m("span", {
6521
6591
  class: "w-tab-nav__title",
6522
6592
  title: e.title
6523
- }, L(e.title), 9, bc)]), e.closable ? (j(), p("button", {
6593
+ }, L(e.title), 9, Cc)]), e.closable ? (j(), p("button", {
6524
6594
  key: 0,
6525
6595
  type: "button",
6526
6596
  class: "w-tab-nav__close",
@@ -6530,16 +6600,16 @@ var Ws = {
6530
6600
  }, [...n[0] ||= [m("i", {
6531
6601
  class: "pi pi-times",
6532
6602
  "aria-hidden": "true"
6533
- }, null, -1)]], 8, xc)) : f("", !0)], 42, yc)], 64))), 128))], 8, _c),
6534
- t.$slots.actions ? (j(), p("div", Sc, [I(t.$slots, "actions")])) : f("", !0),
6535
- v(R(he), {
6603
+ }, null, -1)]], 8, wc)) : f("", !0)], 42, Sc)], 64))), 128))], 8, bc),
6604
+ t.$slots.actions ? (j(), p("div", Tc, [F(t.$slots, "actions")])) : f("", !0),
6605
+ v(R(Y), {
6536
6606
  ref_key: "menu",
6537
6607
  ref: _,
6538
6608
  model: b.value
6539
6609
  }, null, 8, ["model"])
6540
6610
  ]));
6541
6611
  }
6542
- }), wc = y({
6612
+ }), Dc = y({
6543
6613
  name: "WTabPane",
6544
6614
  props: {
6545
6615
  tab: {
@@ -6562,7 +6632,7 @@ var Ws = {
6562
6632
  setup(e) {
6563
6633
  let t = e.api.runtime(e.tab.key);
6564
6634
  if (!t) return () => null;
6565
- M(ke, t.route);
6635
+ M(Oe, t.route);
6566
6636
  function n(e, t) {
6567
6637
  e.push(t), te(() => {
6568
6638
  let n = e.indexOf(t);
@@ -6585,14 +6655,14 @@ var Ws = {
6585
6655
  key: e.tab.remount
6586
6656
  }) : null;
6587
6657
  }
6588
- }), Tc = { class: "w-tab-viewport" }, Ec = { class: "w-tab-viewport__scroll" }, Dc = /* @__PURE__ */ y({
6658
+ }), Oc = { class: "w-tab-viewport" }, kc = { class: "w-tab-viewport__scroll" }, Ac = /* @__PURE__ */ y({
6589
6659
  __name: "WTabViewport",
6590
6660
  props: { tabs: {} },
6591
6661
  setup(e) {
6592
6662
  let t = e, n = u(() => t.tabs.activeKey.value), r = u(() => t.tabs.tabs.value.filter((e) => e.hydrated)), i = /* @__PURE__ */ new Map();
6593
6663
  function a(e) {
6594
6664
  let t = i.get(e);
6595
- return t || (t = ie(null), i.set(e, t)), t;
6665
+ return t || (t = I(null), i.set(e, t)), t;
6596
6666
  }
6597
6667
  function o(e, t) {
6598
6668
  let n = a(e);
@@ -6605,12 +6675,12 @@ var Ws = {
6605
6675
  return V(r, (e) => {
6606
6676
  let t = new Set(e.map((e) => e.key));
6607
6677
  for (let e of i.keys()) t.has(e) || i.delete(e);
6608
- }), (t, i) => (j(), p("div", Tc, [(j(!0), p(l, null, F(r.value, (t) => U((j(), p("div", {
6678
+ }), (t, i) => (j(), p("div", Oc, [(j(!0), p(l, null, P(r.value, (t) => U((j(), p("div", {
6609
6679
  key: `${t.key}#${t.remount}`,
6610
6680
  ref_for: !0,
6611
6681
  ref: (e) => o(t.key, e),
6612
6682
  class: "w-tab-viewport__pane"
6613
- }, [m("div", Ec, [v(R(wc), {
6683
+ }, [m("div", kc, [v(R(Dc), {
6614
6684
  tab: t,
6615
6685
  api: e.tabs,
6616
6686
  active: t.key === n.value,
@@ -6622,26 +6692,26 @@ var Ws = {
6622
6692
  "host-el"
6623
6693
  ])])])), [[se, t.key === n.value]])), 128))]));
6624
6694
  }
6625
- }), Oc = ["aria-busy"], kc = { class: "w-kanban-board__header" }, Ac = { class: "w-kanban-board__title" }, jc = { class: "w-kanban-board__count" }, Mc = [
6695
+ }), jc = ["aria-busy"], Mc = { class: "w-kanban-board__header" }, Nc = { class: "w-kanban-board__title" }, Pc = { class: "w-kanban-board__count" }, Fc = [
6626
6696
  "aria-label",
6627
6697
  "onDragover",
6628
6698
  "onDragleave",
6629
6699
  "onDrop"
6630
- ], Nc = {
6700
+ ], Ic = {
6631
6701
  key: 0,
6632
6702
  class: "w-kanban-board__indicator"
6633
- }, Pc = [
6703
+ }, Lc = [
6634
6704
  "draggable",
6635
6705
  "onDragstart",
6636
6706
  "onClick",
6637
6707
  "onKeydown"
6638
- ], Fc = { class: "w-kanban-board__card-fallback" }, Ic = {
6708
+ ], Rc = { class: "w-kanban-board__card-fallback" }, zc = {
6639
6709
  key: 0,
6640
6710
  class: "w-kanban-board__indicator"
6641
- }, Lc = {
6711
+ }, Bc = {
6642
6712
  key: 1,
6643
6713
  class: "w-kanban-board__empty"
6644
- }, Rc = /* @__PURE__ */ y({
6714
+ }, Vc = /* @__PURE__ */ y({
6645
6715
  __name: "WKanbanBoard",
6646
6716
  props: {
6647
6717
  columns: {},
@@ -6656,7 +6726,7 @@ var Ws = {
6656
6726
  },
6657
6727
  emits: ["move", "item-click"],
6658
6728
  setup(e, { emit: t }) {
6659
- let n = e, r = t, i = P(null), a = P(null), o = /* @__PURE__ */ new Map();
6729
+ let n = e, r = t, i = N(null), a = N(null), o = /* @__PURE__ */ new Map();
6660
6730
  function s(e, t) {
6661
6731
  t instanceof HTMLElement ? o.set(e, t) : o.delete(e);
6662
6732
  }
@@ -6740,11 +6810,11 @@ var Ws = {
6740
6810
  "w-kanban-board--dragging": !!i.value
6741
6811
  }]),
6742
6812
  "aria-busy": e.loading || void 0
6743
- }, [(j(!0), p(l, null, F(e.columns, (r) => (j(), p("section", {
6813
+ }, [(j(!0), p(l, null, P(e.columns, (r) => (j(), p("section", {
6744
6814
  key: r.value,
6745
6815
  class: D(["w-kanban-board__column", { "w-kanban-board__column--over": !!i.value && a.value?.column === r.value }]),
6746
6816
  style: k(r.accent ? { "--w-kanban-accent": r.accent } : void 0)
6747
- }, [m("header", kc, [I(t.$slots, "column-header", { column: r }, () => [m("span", Ac, L(r.label), 1), m("span", jc, L(r.items.length), 1)]), I(t.$slots, "column-action", { column: r })]), m("div", {
6817
+ }, [m("header", Mc, [F(t.$slots, "column-header", { column: r }, () => [m("span", Nc, L(r.label), 1), m("span", Pc, L(r.items.length), 1)]), F(t.$slots, "column-action", { column: r })]), m("div", {
6748
6818
  ref_for: !0,
6749
6819
  ref: (e) => s(r.value, e),
6750
6820
  class: "w-kanban-board__list",
@@ -6758,7 +6828,7 @@ var Ws = {
6758
6828
  onDragleave: (e) => b(r, e),
6759
6829
  onDrop: (e) => x(r, e)
6760
6830
  }, [
6761
- (j(!0), p(l, null, F(r.items, (e, n) => (j(), p(l, { key: String(c(e)) }, [T(r, n) ? (j(), p("div", Nc)) : f("", !0), m("div", {
6831
+ (j(!0), p(l, null, P(r.items, (e, n) => (j(), p(l, { key: String(c(e)) }, [T(r, n) ? (j(), p("div", Ic)) : f("", !0), m("div", {
6762
6832
  class: D(["w-kanban-board__card", {
6763
6833
  "w-kanban-board__card--dragging": h(e),
6764
6834
  "w-kanban-board__card--static": !d(e)
@@ -6770,16 +6840,16 @@ var Ws = {
6770
6840
  onDragend: S,
6771
6841
  onClick: (t) => w(e),
6772
6842
  onKeydown: [W(G((t) => w(e), ["prevent"]), ["enter"]), W(G((t) => w(e), ["prevent"]), ["space"])]
6773
- }, [I(t.$slots, "card", {
6843
+ }, [F(t.$slots, "card", {
6774
6844
  item: e,
6775
6845
  column: r
6776
- }, () => [m("span", Fc, L(u(e)), 1)])], 42, Pc)], 64))), 128)),
6777
- T(r, r.items.length) ? (j(), p("div", Ic)) : f("", !0),
6778
- r.items.length ? f("", !0) : (j(), p("div", Lc, [I(t.$slots, "empty-column", { column: r }, () => [n[0] ||= _("Nenhum item", -1)])]))
6779
- ], 44, Mc)], 6))), 128))], 10, Oc));
6846
+ }, () => [m("span", Rc, L(u(e)), 1)])], 42, Lc)], 64))), 128)),
6847
+ T(r, r.items.length) ? (j(), p("div", zc)) : f("", !0),
6848
+ r.items.length ? f("", !0) : (j(), p("div", Bc, [F(t.$slots, "empty-column", { column: r }, () => [n[0] ||= _("Nenhum item", -1)])]))
6849
+ ], 44, Fc)], 6))), 128))], 10, jc));
6780
6850
  }
6781
6851
  });
6782
6852
  //#endregion
6783
- export { di as A, Ut as B, Hi as C, Ai as D, ki as E, Ln as F, ft as G, jt as H, In as I, Ke as J, gt as K, Nn as L, ii as M, Kr as N, Mi as O, br as P, jn as R, qi as S, Fi as T, Dt as U, Mt as V, ht as W, ka as _, dc as a, la as b, Ks as c, _o as d, qa as f, Ia as g, Ba as h, hc as i, ai as j, Ti as k, Qo as l, Ga as m, Dc as n, uc as o, Ka as p, pt as q, Cc as r, $s as s, Rc as t, To as u, xa as v, Ii as w, ea as x, ba as y, rn as z };
6853
+ export { di as A, Ut as B, Hi as C, Ai as D, ki as E, Ln as F, ft as G, jt as H, In as I, Ke as J, gt as K, Nn as L, ii as M, Kr as N, Mi as O, br as P, jn as R, qi as S, Fi as T, Dt as U, Mt as V, ht as W, ka as _, mc as a, la as b, Ys as c, _o as d, qa as f, Ia as g, Ba as h, vc as i, ai as j, Ti as k, ts as l, Ga as m, Ac as n, pc as o, Ka as p, pt as q, Ec as r, nc as s, Vc as t, To as u, xa as v, Ii as w, ea as x, ba as y, rn as z };
6784
6854
 
6785
- //# sourceMappingURL=components-CYjLRDxm.js.map
6855
+ //# sourceMappingURL=components-CTrZPRAb.js.map