@comercti/web-components-hmg 0.0.38 → 0.0.41

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.
@@ -612,8 +612,8 @@ const xe = /* @__PURE__ */ R({
612
612
  return V.charAt(0).toUpperCase() + V.slice(1);
613
613
  }), l = S(() => {
614
614
  const L = c.value.getFullYear(), V = c.value.getMonth(), F = new Date(L, V, 1).getDay(), I = new Date(L, V, 1 - (F + 6) % 7), O = [];
615
- for (let z = 0; z < 42; z++) {
616
- const G = new Date(I.getFullYear(), I.getMonth(), I.getDate() + z);
615
+ for (let E = 0; E < 42; E++) {
616
+ const G = new Date(I.getFullYear(), I.getMonth(), I.getDate() + E);
617
617
  O.push({
618
618
  date: G,
619
619
  currentMonth: G.getMonth() === V
@@ -976,7 +976,7 @@ const xe = /* @__PURE__ */ R({
976
976
  const q = Be(f.value, N);
977
977
  f.value = q, p.value = Be(q, -1);
978
978
  }
979
- }, O = () => I("left", -1), z = () => I("left", 1), G = () => I("right", -1), J = () => I("right", 1), x = (b) => {
979
+ }, O = () => I("left", -1), E = () => I("left", 1), G = () => I("right", -1), J = () => I("right", 1), x = (b) => {
980
980
  p.value = new Date(b.getFullYear(), b.getMonth(), 1), f.value = new Date(
981
981
  p.value.getFullYear(),
982
982
  p.value.getMonth() + 1,
@@ -992,7 +992,7 @@ const xe = /* @__PURE__ */ R({
992
992
  u.value = new Date(b.getFullYear(), b.getMonth(), 1);
993
993
  }, D = (b) => {
994
994
  l.value = b.start, m.value = b.end, n("update:start", b.start), n("update:end", b.end), L();
995
- }, E = (b) => {
995
+ }, z = (b) => {
996
996
  l.value && !m.value && (w.value = b);
997
997
  };
998
998
  return g.value ? (l.value = o.start ? typeof o.start == "string" ? le(o.start) : new Date(o.start) : null, m.value = o.end ? typeof o.end == "string" ? le(o.end) : new Date(o.end) : null) : u.value = o.modelValue ? typeof o.modelValue == "string" ? le(o.modelValue) : new Date(o.modelValue) : null, se(() => {
@@ -1072,9 +1072,9 @@ const xe = /* @__PURE__ */ R({
1072
1072
  hoveredDate: w.value,
1073
1073
  onSelectDate: F,
1074
1074
  onPrevMonth: O,
1075
- onNextMonth: z,
1075
+ onNextMonth: E,
1076
1076
  onUpdateMonth: x,
1077
- onHoverDate: E
1077
+ onHoverDate: z
1078
1078
  }, null, 8, ["displayDate", "rangeStart", "rangeEnd", "hoveredDate"]),
1079
1079
  N[2] || (N[2] = a("div", { class: "h-full w-0.5 border-l border-gray-200" }, null, -1)),
1080
1080
  H(fe, {
@@ -1087,7 +1087,7 @@ const xe = /* @__PURE__ */ R({
1087
1087
  onPrevMonth: G,
1088
1088
  onNextMonth: J,
1089
1089
  onUpdateMonth: A,
1090
- onHoverDate: E
1090
+ onHoverDate: z
1091
1091
  }, null, 8, ["displayDate", "rangeStart", "rangeEnd", "hoveredDate"])
1092
1092
  ], 64)) : (i(), _(fe, {
1093
1093
  key: 1,
@@ -1117,9 +1117,9 @@ const xe = /* @__PURE__ */ R({
1117
1117
  hoveredDate: w.value,
1118
1118
  onSelectDate: F,
1119
1119
  onPrevMonth: O,
1120
- onNextMonth: z,
1120
+ onNextMonth: E,
1121
1121
  onUpdateMonth: x,
1122
- onHoverDate: E
1122
+ onHoverDate: z
1123
1123
  }, null, 8, ["displayDate", "rangeStart", "rangeEnd", "hoveredDate"]),
1124
1124
  N[3] || (N[3] = a("div", { class: "h-full w-0.5 border-l border-gray-200" }, null, -1)),
1125
1125
  H(fe, {
@@ -1132,7 +1132,7 @@ const xe = /* @__PURE__ */ R({
1132
1132
  onPrevMonth: G,
1133
1133
  onNextMonth: J,
1134
1134
  onUpdateMonth: A,
1135
- onHoverDate: E
1135
+ onHoverDate: z
1136
1136
  }, null, 8, ["displayDate", "rangeStart", "rangeEnd", "hoveredDate"])
1137
1137
  ], 64)) : (i(), _(fe, {
1138
1138
  key: 1,
@@ -1346,30 +1346,30 @@ const xe = /* @__PURE__ */ R({
1346
1346
  }
1347
1347
  function L(D) {
1348
1348
  return D.flatMap(
1349
- (E) => E.subMenu ? [E.text, ...E.subMenu.map((b) => b.text)] : [E.text]
1349
+ (z) => z.subMenu ? [z.text, ...z.subMenu.map((b) => b.text)] : [z.text]
1350
1350
  );
1351
1351
  }
1352
- function V(D, E) {
1352
+ function V(D, z) {
1353
1353
  let b = [];
1354
- b = D.filter((N) => N.text.toLowerCase() === E.toLowerCase());
1354
+ b = D.filter((N) => N.text.toLowerCase() === z.toLowerCase());
1355
1355
  for (const N of D) {
1356
1356
  let q = [];
1357
- N.subMenu && N.subMenu.length > 0 && (q = N.subMenu.filter((ee) => ee.text.toLowerCase() === E.toLowerCase())), q.length > 0 && (b = [N]);
1357
+ N.subMenu && N.subMenu.length > 0 && (q = N.subMenu.filter((ee) => ee.text.toLowerCase() === z.toLowerCase())), q.length > 0 && (b = [N]);
1358
1358
  }
1359
1359
  b.length > 0 && P(b);
1360
1360
  }
1361
1361
  function P(D) {
1362
1362
  if (s.value.length == 1) {
1363
- const E = D.findIndex((b) => b.text === s.value[0].text);
1364
- t.value = E;
1363
+ const z = D.findIndex((b) => b.text === s.value[0].text);
1364
+ t.value = z;
1365
1365
  }
1366
- s.value = D.sort((E, b) => {
1367
- const N = Array.isArray(E.subMenu) && E.subMenu.length > 0 ? 1 : 0, q = Array.isArray(b.subMenu) && b.subMenu.length > 0 ? 1 : 0;
1366
+ s.value = D.sort((z, b) => {
1367
+ const N = Array.isArray(z.subMenu) && z.subMenu.length > 0 ? 1 : 0, q = Array.isArray(b.subMenu) && b.subMenu.length > 0 ? 1 : 0;
1368
1368
  return N - q;
1369
1369
  });
1370
1370
  }
1371
1371
  function F(D) {
1372
- l.value.includes(D) ? l.value = l.value.filter((E) => E !== D) : l.value.push(D), t.value = D;
1372
+ l.value.includes(D) ? l.value = l.value.filter((z) => z !== D) : l.value.push(D), t.value = D;
1373
1373
  }
1374
1374
  function I(D) {
1375
1375
  c.value = D;
@@ -1377,16 +1377,16 @@ const xe = /* @__PURE__ */ R({
1377
1377
  function O() {
1378
1378
  t.value = 0;
1379
1379
  }
1380
- function z(D) {
1380
+ function E(D) {
1381
1381
  t.value = D;
1382
1382
  }
1383
1383
  function G() {
1384
1384
  l.value = [];
1385
1385
  }
1386
- function J(D, E, b) {
1387
- Object.keys(o.value).length > 0 && (o.value = {}), b && (o.value[D] = E);
1386
+ function J(D, z, b) {
1387
+ Object.keys(o.value).length > 0 && (o.value = {}), b && (o.value[D] = z);
1388
1388
  }
1389
- const x = (D, E) => {
1389
+ const x = (D, z) => {
1390
1390
  const b = [
1391
1391
  {
1392
1392
  text: "Meus serviços",
@@ -1403,15 +1403,15 @@ const xe = /* @__PURE__ */ R({
1403
1403
  // Garantindo string
1404
1404
  )
1405
1405
  }
1406
- ], ee = [...E, ...b, ...N].sort((ne, me) => {
1406
+ ], ee = [...z, ...b, ...N].sort((ne, me) => {
1407
1407
  var De, ot;
1408
1408
  return +!!((De = ne.subMenu) != null && De.length) - +!!((ot = me.subMenu) != null && ot.length);
1409
1409
  });
1410
1410
  s.value = ee, c.value = [...ee];
1411
1411
  };
1412
1412
  function A(D) {
1413
- let E = { text: D.text, path: D.path };
1414
- return "options" in D && (E = { ...E, options: D.options }), E;
1413
+ let z = { text: D.text, path: D.path };
1414
+ return "options" in D && (z = { ...z, options: D.options }), z;
1415
1415
  }
1416
1416
  function M(D) {
1417
1417
  return /^(https?|ftp):\/\/([\w-]+(\.[\w-]+)+)(:\d+)?(\/[^\s]*)?$/i.test(D);
@@ -1430,7 +1430,7 @@ const xe = /* @__PURE__ */ R({
1430
1430
  atualizaOpcoesMenu: x,
1431
1431
  alterarMenu: f,
1432
1432
  limparArrayIndicesDropdown: G,
1433
- setarIndiceMenu: z,
1433
+ setarIndiceMenu: E,
1434
1434
  setarIndiceDropdowns: J,
1435
1435
  setarBackupMenu: I,
1436
1436
  obterTextosMenu: L,
@@ -1523,29 +1523,29 @@ const xe = /* @__PURE__ */ R({
1523
1523
  ]));
1524
1524
  }
1525
1525
  }), fr = (e) => {
1526
- const t = B([]), o = B(null), n = B(!1), s = B(!1), c = B(!1), u = B([]), l = (z) => {
1526
+ const t = B([]), o = B(null), n = B(!1), s = B(!1), c = B(!1), u = B([]), l = (E) => {
1527
1527
  if (t.value = t.value.filter((G) => !u.value.includes(G)), u.value = [], X("ce-file-upload")) {
1528
- z("updateFiles", t.value);
1528
+ E("updateFiles", t.value);
1529
1529
  return;
1530
1530
  }
1531
- z("update:modelValue", t.value);
1531
+ E("update:modelValue", t.value);
1532
1532
  };
1533
- function m(z) {
1533
+ function m(E) {
1534
1534
  if (t.value = [], X("ce-file-upload")) {
1535
- z("updateFiles", t.value);
1535
+ E("updateFiles", t.value);
1536
1536
  return;
1537
1537
  }
1538
- z("update:modelValue", t.value);
1538
+ E("update:modelValue", t.value);
1539
1539
  }
1540
- const w = (z, G) => {
1541
- if (t.value.splice(z, 1), P(), X("ce-file-upload")) {
1540
+ const w = (E, G) => {
1541
+ if (t.value.splice(E, 1), P(), X("ce-file-upload")) {
1542
1542
  G("updateFiles", t.value);
1543
1543
  return;
1544
1544
  }
1545
1545
  G("update:modelValue", t.value);
1546
- }, p = (z) => e.accept.includes(z.type), f = (z) => {
1546
+ }, p = (E) => e.accept.includes(E.type), f = (E) => {
1547
1547
  var x;
1548
- const G = (x = z.split(".").pop()) == null ? void 0 : x.toLowerCase();
1548
+ const G = (x = E.split(".").pop()) == null ? void 0 : x.toLowerCase();
1549
1549
  return {
1550
1550
  pdf: "bg-red-500",
1551
1551
  doc: "bg-blue-500",
@@ -1568,31 +1568,31 @@ const xe = /* @__PURE__ */ R({
1568
1568
  function v() {
1569
1569
  return e.maxFile > 0 && t.value.length >= e.maxFile ? (n.value = !0, o.value = `Limite máximo de ${e.maxFile} arquivos atingido.`, !0) : (n.value = !1, o.value = null, !1);
1570
1570
  }
1571
- function g(z) {
1572
- const G = z.size / 1024;
1573
- return e.maxFileSize > 0 && G > e.maxFileSize ? (n.value = !0, o.value = `O arquivo ${z.name} excede o tamanho máximo de ${e.maxFileSize} KB.`, !0) : (n.value = !1, o.value = null, !1);
1571
+ function g(E) {
1572
+ const G = E.size / 1024;
1573
+ return e.maxFileSize > 0 && G > e.maxFileSize ? (n.value = !0, o.value = `O arquivo ${E.name} excede o tamanho máximo de ${e.maxFileSize} KB.`, !0) : (n.value = !1, o.value = null, !1);
1574
1574
  }
1575
- function k(z) {
1575
+ function k(E) {
1576
1576
  o.value = null, c.value = !0;
1577
- const G = { file: z, progress: 0, status: "uploading" };
1577
+ const G = { file: E, progress: 0, status: "uploading" };
1578
1578
  t.value.push(G);
1579
1579
  }
1580
- const C = async (z, G) => {
1581
- if (!g(z) && !v()) {
1582
- k(z);
1580
+ const C = async (E, G) => {
1581
+ if (!g(E) && !v()) {
1582
+ k(E);
1583
1583
  try {
1584
1584
  for (let x = 1; x <= 10; x++) {
1585
1585
  await new Promise((M) => setTimeout(M, 300));
1586
- const A = t.value.findIndex((M) => M.file === z);
1586
+ const A = t.value.findIndex((M) => M.file === E);
1587
1587
  A !== -1 && (t.value[A] = { ...t.value[A], progress: x * 10 });
1588
1588
  }
1589
- const J = t.value.findIndex((x) => x.file === z);
1589
+ const J = t.value.findIndex((x) => x.file === E);
1590
1590
  J !== -1 && (t.value[J] = {
1591
1591
  ...t.value[J],
1592
1592
  status: Math.random() > 0.2 ? "success" : "error"
1593
1593
  });
1594
1594
  } catch {
1595
- const J = t.value.findIndex((x) => x.file === z);
1595
+ const J = t.value.findIndex((x) => x.file === E);
1596
1596
  J !== -1 && (t.value[J] = { ...t.value[J], status: "error" });
1597
1597
  } finally {
1598
1598
  if (c.value = !1, X("ce-file-upload")) {
@@ -1603,11 +1603,11 @@ const xe = /* @__PURE__ */ R({
1603
1603
  }
1604
1604
  }
1605
1605
  }, L = S(
1606
- () => e.accept.map((z) => z.split("/")[1].toUpperCase()).join(", ")
1607
- ), V = (z, G) => {
1606
+ () => e.accept.map((E) => E.split("/")[1].toUpperCase()).join(", ")
1607
+ ), V = (E, G) => {
1608
1608
  var J;
1609
- if (z.preventDefault(), P(), (J = z.dataTransfer) != null && J.files) {
1610
- const x = Array.from(z.dataTransfer.files);
1609
+ if (E.preventDefault(), P(), (J = E.dataTransfer) != null && J.files) {
1610
+ const x = Array.from(E.dataTransfer.files);
1611
1611
  if (x.some((M) => !p(M))) {
1612
1612
  o.value = "Arquivo inválido! Formatos permitidos: " + L.value;
1613
1613
  return;
@@ -1619,8 +1619,8 @@ const xe = /* @__PURE__ */ R({
1619
1619
  }, P = () => {
1620
1620
  n.value = !1, s.value = !1;
1621
1621
  };
1622
- function F(z) {
1623
- return !e.multiple && z.length > 1 ? (o.value = "Apenas um arquivo pode ser enviado por vez", n.value = !0, !0) : !1;
1622
+ function F(E) {
1623
+ return !e.multiple && E.length > 1 ? (o.value = "Apenas um arquivo pode ser enviado por vez", n.value = !0, !0) : !1;
1624
1624
  }
1625
1625
  return {
1626
1626
  arquivos: t,
@@ -1638,9 +1638,9 @@ const xe = /* @__PURE__ */ R({
1638
1638
  limparArquivos: m,
1639
1639
  removerSelecionados: l,
1640
1640
  removeArquivos: w,
1641
- manipulaArquivos: (z, G) => {
1641
+ manipulaArquivos: (E, G) => {
1642
1642
  P();
1643
- const J = z.target;
1643
+ const J = E.target;
1644
1644
  J != null && J.files && Array.from(J.files).forEach((x) => {
1645
1645
  C(x, G);
1646
1646
  });
@@ -1648,11 +1648,11 @@ const xe = /* @__PURE__ */ R({
1648
1648
  validaArquivo: p,
1649
1649
  recebeArquivo: C,
1650
1650
  manipulaArquivoViaArrastaSolta: V,
1651
- manipulaArrastar: (z) => {
1651
+ manipulaArrastar: (E) => {
1652
1652
  var J;
1653
- z.preventDefault(), P();
1654
- const G = Array.from(z.dataTransfer.items).filter((x) => x.kind === "file");
1655
- F(G) || (J = z.dataTransfer) != null && J.items && (Array.from(z.dataTransfer.items).some(
1653
+ E.preventDefault(), P();
1654
+ const G = Array.from(E.dataTransfer.items).filter((x) => x.kind === "file");
1655
+ F(G) || (J = E.dataTransfer) != null && J.items && (Array.from(E.dataTransfer.items).some(
1656
1656
  (A) => A.kind === "file" && !e.accept.includes(A.type)
1657
1657
  ) ? (n.value = !0, o.value = "Arquivo inválido") : s.value = !0);
1658
1658
  },
@@ -1762,7 +1762,7 @@ const xe = /* @__PURE__ */ R({
1762
1762
  }, null, 40, vr)
1763
1763
  ], 34),
1764
1764
  (i(!0), d(U, null, W(r(s), (I, O) => {
1765
- var z;
1765
+ var E;
1766
1766
  return i(), d("div", {
1767
1767
  key: O,
1768
1768
  class: "border rounded-lg p-4 flex items-center space-x-3 shadow-md flex-col relative"
@@ -1799,7 +1799,7 @@ const xe = /* @__PURE__ */ R({
1799
1799
  a("div", {
1800
1800
  class: h(["text-white font-bold text-[0.7rem] px-2 content-center rounded absolute top-5 h-5 -left-2", r(V)(I.file.name)])
1801
1801
  }, [
1802
- a("p", null, j(((z = I.file.name.split(".").pop()) == null ? void 0 : z.toUpperCase()) || "ARQ"), 1)
1802
+ a("p", null, j(((E = I.file.name.split(".").pop()) == null ? void 0 : E.toUpperCase()) || "ARQ"), 1)
1803
1803
  ], 2)
1804
1804
  ]),
1805
1805
  a("div", Mr, [
@@ -2052,7 +2052,7 @@ const Tr = ["for", "innerHTML"], Zr = { class: "relative" }, Qr = ["id", "value"
2052
2052
  }
2053
2053
  s("update:modelValue", A);
2054
2054
  }
2055
- }, z = (x) => {
2055
+ }, E = (x) => {
2056
2056
  if (P(x)) {
2057
2057
  const A = Array.isArray(g.value) ? [...g.value] : [], M = A.indexOf(x.value);
2058
2058
  if (M !== -1) {
@@ -2065,14 +2065,14 @@ const Tr = ["for", "innerHTML"], Zr = { class: "relative" }, Qr = ["id", "value"
2065
2065
  }
2066
2066
  }, G = (x, A, M) => {
2067
2067
  if (n.multiple && A.shiftKey && c.value !== null) {
2068
- const D = Math.min(c.value, M), E = Math.max(c.value, M), b = v.value[c.value], N = b ? P(b) : !0;
2069
- for (let q = D; q <= E; q++) {
2068
+ const D = Math.min(c.value, M), z = Math.max(c.value, M), b = v.value[c.value], N = b ? P(b) : !0;
2069
+ for (let q = D; q <= z; q++) {
2070
2070
  const ee = v.value[q];
2071
- ee && !ee.disabled && !ee.header && (N ? O(ee) : z(ee));
2071
+ ee && !ee.disabled && !ee.header && (N ? O(ee) : E(ee));
2072
2072
  }
2073
2073
  c.value = M;
2074
2074
  } else
2075
- n.multiple ? (P(x) ? z(x) : O(x), c.value = M) : J(x);
2075
+ n.multiple ? (P(x) ? E(x) : O(x), c.value = M) : J(x);
2076
2076
  }, J = (x) => {
2077
2077
  if (!x.disabled) {
2078
2078
  if (n.multiple && (x.value === "" || x.value === null)) {
@@ -2152,7 +2152,7 @@ const Tr = ["for", "innerHTML"], Zr = { class: "relative" }, Qr = ["id", "value"
2152
2152
  a("span", null, j(F(M)), 1),
2153
2153
  x.closeChip ? (i(), d("button", {
2154
2154
  key: 0,
2155
- onClick: Ce((E) => I(M), ["stop"]),
2155
+ onClick: Ce((z) => I(M), ["stop"]),
2156
2156
  class: "ml-2 text-gray-600 hover:text-gray-800"
2157
2157
  }, " × ", 8, Xr)) : y("", !0)
2158
2158
  ]))), 128))
@@ -2209,7 +2209,7 @@ const Tr = ["for", "innerHTML"], Zr = { class: "relative" }, Qr = ["id", "value"
2209
2209
  P(M) ? "bg-gray-100" : "",
2210
2210
  M.disabled ? "opacity-50 cursor-not-allowed" : ""
2211
2211
  ]),
2212
- onClick: (E) => G(M, E, D)
2212
+ onClick: (z) => G(M, z, D)
2213
2213
  }, [
2214
2214
  a("span", {
2215
2215
  innerHTML: M.label || M.value
@@ -3882,13 +3882,13 @@ const sn = ["onClick"], ln = {
3882
3882
  obterTextosMenu: F,
3883
3883
  alternarDropdown: I,
3884
3884
  buscarNoMenu: O,
3885
- definirOpcoesMenu: z,
3885
+ definirOpcoesMenu: E,
3886
3886
  travarMenuPorCliqueNoInput: G,
3887
3887
  defineRetorno: J
3888
3888
  } = _e(), x = e, A = t;
3889
- function M(D, E, b, N) {
3890
- w(D, E.text, b), p(N);
3891
- const q = J(E);
3889
+ function M(D, z, b, N) {
3890
+ w(D, z.text, b), p(N);
3891
+ const q = J(z);
3892
3892
  if (b) {
3893
3893
  A("redirect", q);
3894
3894
  return;
@@ -3898,12 +3898,12 @@ const sn = ["onClick"], ln = {
3898
3898
  return K(x, () => {
3899
3899
  x.isHome && n();
3900
3900
  }), se(() => {
3901
- z(x.items), P(x.items);
3902
- }), (D, E) => (i(), d("div", {
3901
+ E(x.items), P(x.items);
3902
+ }), (D, z) => (i(), d("div", {
3903
3903
  class: h(["sm:hidden pt-[25px] relative h-full overflow-auto scrollbar-hide transition-all duration-300 ease-in-out bg-white border border-gray-200 rounded-lg", { "w-[310px] mr-2.5": r(o), "z-0": r(V), "z-10": !r(V) && r(o) }]),
3904
- onMouseenter: E[5] || (E[5] = //@ts-ignore
3904
+ onMouseenter: z[5] || (z[5] = //@ts-ignore
3905
3905
  (...b) => r(l) && r(l)(...b)),
3906
- onMouseleave: E[6] || (E[6] = //@ts-ignore
3906
+ onMouseleave: z[6] || (z[6] = //@ts-ignore
3907
3907
  (...b) => r(m) && r(m)(...b))
3908
3908
  }, [
3909
3909
  a("div", {
@@ -3916,7 +3916,7 @@ const sn = ["onClick"], ln = {
3916
3916
  }])
3917
3917
  }, " Menu ", 2),
3918
3918
  a("button", {
3919
- onClick: E[0] || (E[0] = (b) => r(u)(A))
3919
+ onClick: z[0] || (z[0] = (b) => r(u)(A))
3920
3920
  }, [
3921
3921
  H(Q, {
3922
3922
  name: r(o) ? r(Ut) : r(Tt),
@@ -3933,10 +3933,10 @@ const sn = ["onClick"], ln = {
3933
3933
  key: 1,
3934
3934
  placeholder: "Pesquisar",
3935
3935
  items: r(F)(r(C)),
3936
- "onUpdate:modelValue": E[1] || (E[1] = (b) => r(O)(r(C), String(b))),
3937
- onFilterList: E[2] || (E[2] = (b) => r(O)(r(C), String(b))),
3938
- onClearFilter: E[3] || (E[3] = (b) => r(z)(r(C))),
3939
- "onInput:focus": E[4] || (E[4] = (b) => r(G)(A))
3936
+ "onUpdate:modelValue": z[1] || (z[1] = (b) => r(O)(r(C), String(b))),
3937
+ onFilterList: z[2] || (z[2] = (b) => r(O)(r(C), String(b))),
3938
+ onClearFilter: z[3] || (z[3] = (b) => r(E)(r(C))),
3939
+ "onInput:focus": z[4] || (z[4] = (b) => r(G)(A))
3940
3940
  }, null, 8, ["items"])) : (i(), _(Q, {
3941
3941
  key: 0,
3942
3942
  name: r(Le),
@@ -4126,9 +4126,9 @@ const sn = ["onClick"], ln = {
4126
4126
  atualizaOpcoesMenu: F,
4127
4127
  defineRetorno: I,
4128
4128
  validaUrl: O
4129
- } = _e(), z = e, G = t;
4130
- function J(A, M, D, E) {
4131
- O(M.path) && window.open(M.path, "_blank"), f(A, M.text, D), v(E);
4129
+ } = _e(), E = e, G = t;
4130
+ function J(A, M, D, z) {
4131
+ O(M.path) && window.open(M.path, "_blank"), f(A, M.text, D), v(z);
4132
4132
  const b = I(M);
4133
4133
  if (D) {
4134
4134
  G("redirect", b);
@@ -4140,9 +4140,13 @@ const sn = ["onClick"], ln = {
4140
4140
  function x() {
4141
4141
  G("backToHome", !0);
4142
4142
  }
4143
- return se(() => {
4144
- P(z.itemsMenu), k(z.itemsMenu), F(z.itemsMenuMyService, z.itemsMenu);
4145
- }), (A, M) => (i(), d(U, null, [
4143
+ return K(
4144
+ () => E.itemsMenu,
4145
+ (A) => {
4146
+ P(A), k(A), F(E.itemsMenuMyService, E.itemsMenu);
4147
+ },
4148
+ { deep: !0, immediate: !0 }
4149
+ ), (A, M) => (i(), d(U, null, [
4146
4150
  a("div", kn, [
4147
4151
  a("div", Cn, [
4148
4152
  a("img", {
@@ -4212,20 +4216,20 @@ const sn = ["onClick"], ln = {
4212
4216
  color: "#737373"
4213
4217
  }, null, 8, ["name"]))
4214
4218
  ], 2),
4215
- (i(!0), d(U, null, W(r(c), (D, E) => {
4219
+ (i(!0), d(U, null, W(r(c), (D, z) => {
4216
4220
  var b;
4217
4221
  return i(), d("div", {
4218
4222
  class: "px-2.5 mb-2 flex items-center",
4219
- key: E
4223
+ key: z
4220
4224
  }, [
4221
4225
  ((b = D.subMenu) == null ? void 0 : b.length) == 0 ? (i(), d("div", {
4222
4226
  key: 0,
4223
4227
  class: h(["flex items-center cursor-pointer h-12 rounded-lg w-full text-[#292929] font-[600]", {
4224
- "bg-gray-100": E === r(n),
4228
+ "bg-gray-100": z === r(n),
4225
4229
  "justify-center": !r(o),
4226
4230
  "pl-[1rem] space-x-2": r(o)
4227
4231
  }]),
4228
- onClick: (N) => J(null, D, !1, E)
4232
+ onClick: (N) => J(null, D, !1, z)
4229
4233
  }, [
4230
4234
  H(Q, {
4231
4235
  name: D.icon || "",
@@ -4241,9 +4245,9 @@ const sn = ["onClick"], ln = {
4241
4245
  ], 10, Fn)) : (i(), d("div", Yn, [
4242
4246
  a("div", {
4243
4247
  "data-testid": "menu-dropdown",
4244
- onClick: (N) => r(L)(E),
4248
+ onClick: (N) => r(L)(z),
4245
4249
  class: h(["flex items-center cursor-pointer h-12 rounded-lg w-full", {
4246
- "bg-gray-100": r(l).includes(E) || E === r(n),
4250
+ "bg-gray-100": r(l).includes(z) || z === r(n),
4247
4251
  "!justify-center": !r(o),
4248
4252
  "px-[1rem]": r(o)
4249
4253
  }])
@@ -4266,7 +4270,7 @@ const sn = ["onClick"], ln = {
4266
4270
  ], 2)
4267
4271
  ], 2),
4268
4272
  H(Q, {
4269
- name: r(l).includes(E) ? r(He) : r(Ge),
4273
+ name: r(l).includes(z) ? r(He) : r(Ge),
4270
4274
  size: "24",
4271
4275
  color: "#737373",
4272
4276
  class: h({
@@ -4275,15 +4279,15 @@ const sn = ["onClick"], ln = {
4275
4279
  })
4276
4280
  }, null, 8, ["name", "class"])
4277
4281
  ], 10, Gn),
4278
- r(o) && r(l).includes(E) ? (i(), d("div", {
4282
+ r(o) && r(l).includes(z) ? (i(), d("div", {
4279
4283
  key: 0,
4280
- class: h(["rounded-lg pt-4 overflow-hidden transition-all duration-300 ease-in-out max-h-max w-full", { "max-h-full": r(l).includes(E) }])
4284
+ class: h(["rounded-lg pt-4 overflow-hidden transition-all duration-300 ease-in-out max-h-max w-full", { "max-h-full": r(l).includes(z) }])
4281
4285
  }, [
4282
4286
  (i(!0), d(U, null, W(D.subMenu, (N, q) => (i(), d("div", {
4283
4287
  class: h(["h-12 flex flex-col justify-center w-full rounded-lg pl-12 hover:bg-gray-100 text-[#424242] font-[400]", {
4284
- "w-[310px] bg-gray-100": r(s)[q] === N.text && E === r(n)
4288
+ "w-[310px] bg-gray-100": r(s)[q] === N.text && z === r(n)
4285
4289
  }]),
4286
- onClick: (ee) => J(q, N, !0, E),
4290
+ onClick: (ee) => J(q, N, !0, z),
4287
4291
  key: q
4288
4292
  }, [
4289
4293
  H(Ae, {
@@ -5685,8 +5689,8 @@ const ki = {
5685
5689
  ], 2)
5686
5690
  ], 2),
5687
5691
  a("div", Ci, [
5688
- (i(!0), d(U, null, W(v.value, (O, z) => (i(), d("div", {
5689
- key: z,
5692
+ (i(!0), d(U, null, W(v.value, (O, E) => (i(), d("div", {
5693
+ key: E,
5690
5694
  class: "border-[1px] rounded-xl w-full shadow bg-white m-2"
5691
5695
  }, [
5692
5696
  a("div", Ai, [
@@ -5729,7 +5733,7 @@ const ki = {
5729
5733
  }, [
5730
5734
  a("div", {
5731
5735
  class: "flex items-center space-x-1 cursor-pointer",
5732
- onClick: (z) => O.sortable ? r(m)(O.value) : null
5736
+ onClick: (E) => O.sortable ? r(m)(O.value) : null
5733
5737
  }, [
5734
5738
  a("span", Gi, j(O.text), 1),
5735
5739
  O.sortable ? (i(), d("span", Hi, j(r(s) === O.value ? r(c) ? "↓" : "↑" : "⇅"), 1)) : y("", !0)
@@ -5738,9 +5742,9 @@ const ki = {
5738
5742
  ])
5739
5743
  ], 2),
5740
5744
  a("tbody", null, [
5741
- (i(!0), d(U, null, W(v.value, (O, z) => (i(), d("tr", {
5745
+ (i(!0), d(U, null, W(v.value, (O, E) => (i(), d("tr", {
5742
5746
  key: O.id,
5743
- class: h(["border-b", { "bg-ce_white": F.striped && z % 2 === 0, "hover:bg-ce_white": !F.striped }])
5747
+ class: h(["border-b", { "bg-ce_white": F.striped && E % 2 === 0, "hover:bg-ce_white": !F.striped }])
5744
5748
  }, [
5745
5749
  F.selectable ? (i(), d("td", Li, [
5746
5750
  H(ze, {