@celke/kole-react 0.1.0 → 0.2.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.
- package/LICENSE +22 -22
- package/README.md +370 -255
- package/dist/components/Preferencias/Preferencias.d.ts +20 -3
- package/dist/estilos.css +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +360 -337
- package/dist/index.js.map +1 -1
- package/dist/tailwind.css +82 -0
- package/dist/tokens.css +403 -321
- package/package.json +91 -83
package/dist/index.js
CHANGED
|
@@ -1329,70 +1329,93 @@ var Wr = {
|
|
|
1329
1329
|
compacta: "density-compact",
|
|
1330
1330
|
confortavel: "density-comfortable",
|
|
1331
1331
|
espacosa: "density-cozy"
|
|
1332
|
-
}, Gr =
|
|
1333
|
-
|
|
1332
|
+
}, Gr = {
|
|
1333
|
+
claro: "light",
|
|
1334
|
+
escuro: "dark",
|
|
1335
|
+
sistema: "system"
|
|
1336
|
+
}, Kr = "(prefers-color-scheme: dark)", qr = "sistema", Jr = Tt(null), Yr = "lp-preferencias";
|
|
1337
|
+
function Xr() {
|
|
1334
1338
|
try {
|
|
1335
|
-
return JSON.parse(localStorage.getItem(
|
|
1339
|
+
return JSON.parse(localStorage.getItem(Yr) ?? "{}");
|
|
1336
1340
|
} catch {
|
|
1337
1341
|
return {};
|
|
1338
1342
|
}
|
|
1339
1343
|
}
|
|
1340
|
-
function
|
|
1344
|
+
function Zr() {
|
|
1341
1345
|
try {
|
|
1342
|
-
return window.matchMedia(
|
|
1346
|
+
return window.matchMedia(Kr).matches;
|
|
1343
1347
|
} catch {
|
|
1344
|
-
return
|
|
1348
|
+
return !1;
|
|
1345
1349
|
}
|
|
1346
1350
|
}
|
|
1347
|
-
function
|
|
1348
|
-
let [
|
|
1351
|
+
function Qr(e) {
|
|
1352
|
+
let [t, n] = Y(Zr);
|
|
1353
|
+
return K(() => {
|
|
1354
|
+
if (!e) return;
|
|
1355
|
+
let t;
|
|
1356
|
+
try {
|
|
1357
|
+
t = window.matchMedia(Kr);
|
|
1358
|
+
} catch {
|
|
1359
|
+
return;
|
|
1360
|
+
}
|
|
1361
|
+
n(t.matches);
|
|
1362
|
+
let r = (e) => n(e.matches);
|
|
1363
|
+
return t.addEventListener("change", r), () => t.removeEventListener("change", r);
|
|
1364
|
+
}, [e]), t;
|
|
1365
|
+
}
|
|
1366
|
+
function $r({ temaInicial: e, densidadeInicial: t = "confortavel" } = {}) {
|
|
1367
|
+
return `(function(){var p={};try{p=JSON.parse(localStorage.getItem(${JSON.stringify(Yr)})||"{}")||{}}catch(e){}var t=p.tema||${JSON.stringify(e ?? qr)};var h=document.documentElement;h.setAttribute("data-theme",${JSON.stringify(Gr)}[t]||"light");var d=${JSON.stringify(Wr)}[p.densidade||${JSON.stringify(t)}];if(d)h.classList.add(d)})();`;
|
|
1368
|
+
}
|
|
1369
|
+
function ei({ children: e, temaInicial: t, densidadeInicial: n = "confortavel" }) {
|
|
1370
|
+
let [r, i] = Y(() => Xr().tema ?? t ?? qr), [a, o] = Y(() => Xr().densidade ?? n), s = Qr(r === "sistema"), c = r === "escuro" || r === "sistema" && s;
|
|
1349
1371
|
K(() => {
|
|
1350
|
-
document.documentElement.setAttribute("data-theme", r
|
|
1372
|
+
document.documentElement.setAttribute("data-theme", Gr[r] ?? "light");
|
|
1351
1373
|
}, [r]), K(() => {
|
|
1352
1374
|
let e = document.body;
|
|
1353
1375
|
Object.values(Wr).forEach((t) => e.classList.remove(t)), e.classList.add(Wr[a]);
|
|
1354
1376
|
}, [a]), K(() => {
|
|
1355
1377
|
try {
|
|
1356
|
-
localStorage.setItem(
|
|
1378
|
+
localStorage.setItem(Yr, JSON.stringify({
|
|
1357
1379
|
tema: r,
|
|
1358
1380
|
densidade: a
|
|
1359
1381
|
}));
|
|
1360
1382
|
} catch {}
|
|
1361
1383
|
}, [r, a]);
|
|
1362
|
-
let
|
|
1384
|
+
let l = W(() => i(c ? "claro" : "escuro"), [c]), u = At(() => ({
|
|
1363
1385
|
tema: r,
|
|
1364
|
-
escuro:
|
|
1386
|
+
escuro: c,
|
|
1365
1387
|
densidade: a,
|
|
1366
1388
|
definirTema: i,
|
|
1367
|
-
alternarTema:
|
|
1389
|
+
alternarTema: l,
|
|
1368
1390
|
definirDensidade: o
|
|
1369
1391
|
}), [
|
|
1370
1392
|
r,
|
|
1393
|
+
c,
|
|
1371
1394
|
a,
|
|
1372
|
-
|
|
1395
|
+
l
|
|
1373
1396
|
]);
|
|
1374
|
-
return /* @__PURE__ */ H(
|
|
1375
|
-
value:
|
|
1397
|
+
return /* @__PURE__ */ H(Jr.Provider, {
|
|
1398
|
+
value: u,
|
|
1376
1399
|
children: e
|
|
1377
1400
|
});
|
|
1378
1401
|
}
|
|
1379
|
-
function
|
|
1380
|
-
let e = G(
|
|
1402
|
+
function ti() {
|
|
1403
|
+
let e = G(Jr);
|
|
1381
1404
|
if (!e) throw Error("usePreferencias precisa de <ProvedorPreferencias> (ou <ProvedorUi>) acima na árvore.");
|
|
1382
1405
|
return e;
|
|
1383
1406
|
}
|
|
1384
|
-
function
|
|
1385
|
-
return /* @__PURE__ */ H(
|
|
1407
|
+
function ni({ children: e, ...t }) {
|
|
1408
|
+
return /* @__PURE__ */ H(ei, {
|
|
1386
1409
|
...t,
|
|
1387
1410
|
children: /* @__PURE__ */ H(Vr, { children: /* @__PURE__ */ H(Fr, { children: e }) })
|
|
1388
1411
|
});
|
|
1389
1412
|
}
|
|
1390
|
-
function
|
|
1391
|
-
return G(
|
|
1413
|
+
function ri() {
|
|
1414
|
+
return G(Jr);
|
|
1392
1415
|
}
|
|
1393
1416
|
//#endregion
|
|
1394
1417
|
//#region src/utils/useCliqueFora.ts
|
|
1395
|
-
function
|
|
1418
|
+
function ii(e, t, n) {
|
|
1396
1419
|
K(() => {
|
|
1397
1420
|
if (!t) return;
|
|
1398
1421
|
let r = (t) => {
|
|
@@ -1404,11 +1427,11 @@ function $r(e, t, n) {
|
|
|
1404
1427
|
}
|
|
1405
1428
|
//#endregion
|
|
1406
1429
|
//#region src/components/Avatar/Avatar.tsx
|
|
1407
|
-
function
|
|
1430
|
+
function ai(e = "") {
|
|
1408
1431
|
let t = e.trim().split(/\s+/).filter(Boolean);
|
|
1409
1432
|
return t.length ? (t[0][0] + (t.length > 1 ? t[t.length - 1][0] : "")).toUpperCase() : "";
|
|
1410
1433
|
}
|
|
1411
|
-
function
|
|
1434
|
+
function oi({ foto: e, nome: t, iniciais: n, tom: r = "claro", formato: i = "circulo", tamanho: a, className: o }) {
|
|
1412
1435
|
let [s, c] = Y(!1), l = a ? { "--av-size": a } : void 0;
|
|
1413
1436
|
return /* @__PURE__ */ H("span", {
|
|
1414
1437
|
className: X("lp-av", `lp-av--${i}`, `lp-av--${r}`, o),
|
|
@@ -1422,23 +1445,23 @@ function ti({ foto: e, nome: t, iniciais: n, tom: r = "claro", formato: i = "cir
|
|
|
1422
1445
|
}) : /* @__PURE__ */ H("span", {
|
|
1423
1446
|
className: "lp-av-ini",
|
|
1424
1447
|
"aria-hidden": "true",
|
|
1425
|
-
children: n ??
|
|
1448
|
+
children: n ?? ai(t)
|
|
1426
1449
|
})
|
|
1427
1450
|
});
|
|
1428
1451
|
}
|
|
1429
1452
|
//#endregion
|
|
1430
1453
|
//#region src/components/Busca/Busca.tsx
|
|
1431
|
-
var
|
|
1432
|
-
function
|
|
1454
|
+
var si = 8;
|
|
1455
|
+
function ci({ placeholder: e = "Buscar…", ocupado: t, itensMenu: n, aoNavegar: r, aoBuscar: i, aoMudarTermo: a, atalho: o = !0, children: s, className: c }) {
|
|
1433
1456
|
let l = J(null), u = J(null), [d, f] = Y(""), [p, m] = Y(!1), [h, g] = Y(-1);
|
|
1434
|
-
|
|
1457
|
+
ii([l], p, () => m(!1)), K(() => {
|
|
1435
1458
|
if (!o) return;
|
|
1436
1459
|
let e = (e) => {
|
|
1437
1460
|
(e.ctrlKey || e.metaKey) && e.key.toLowerCase() === "k" && (e.preventDefault(), u.current?.focus());
|
|
1438
1461
|
};
|
|
1439
1462
|
return window.addEventListener("keydown", e), () => window.removeEventListener("keydown", e);
|
|
1440
1463
|
}, [o]);
|
|
1441
|
-
let _ = kn(d.trim()), v = _ && n ? n.filter((e) => kn(`${e.rotulo} ${e.trilha ?? ""}`).includes(_)) : [], y = v.slice(0,
|
|
1464
|
+
let _ = kn(d.trim()), v = _ && n ? n.filter((e) => kn(`${e.rotulo} ${e.trilha ?? ""}`).includes(_)) : [], y = v.slice(0, si), b = v.length - y.length, x = () => l.current ? [...l.current.querySelectorAll(".lp-pb-item, [data-busca-opcao]")] : [];
|
|
1442
1465
|
K(() => {
|
|
1443
1466
|
x().forEach((e, t) => e.classList.toggle("is-ativa", t === h));
|
|
1444
1467
|
});
|
|
@@ -1550,11 +1573,11 @@ function ri({ placeholder: e = "Buscar…", ocupado: t, itensMenu: n, aoNavegar:
|
|
|
1550
1573
|
}
|
|
1551
1574
|
//#endregion
|
|
1552
1575
|
//#region src/components/Trilha/Trilha.tsx
|
|
1553
|
-
var
|
|
1554
|
-
function
|
|
1555
|
-
return G(
|
|
1576
|
+
var li = Tt(null), ui = li.Provider;
|
|
1577
|
+
function di() {
|
|
1578
|
+
return G(li)?.itens ?? [];
|
|
1556
1579
|
}
|
|
1557
|
-
function
|
|
1580
|
+
function fi(e, t) {
|
|
1558
1581
|
let n = [], r = -1, i = (e, a) => {
|
|
1559
1582
|
for (let o of e) o.rota && t(o.rota) && o.rota.length > r && (n = [...a, {
|
|
1560
1583
|
rotulo: o.rotulo,
|
|
@@ -1568,7 +1591,7 @@ function si(e, t) {
|
|
|
1568
1591
|
for (let t of e) i(t.itens, t.rotulo ? [{ rotulo: t.rotulo }] : []);
|
|
1569
1592
|
return n;
|
|
1570
1593
|
}
|
|
1571
|
-
var
|
|
1594
|
+
var pi = {
|
|
1572
1595
|
chevron: /* @__PURE__ */ H(Z, { icone: "chevron-right" }),
|
|
1573
1596
|
barra: "/",
|
|
1574
1597
|
duplo: "»",
|
|
@@ -1576,10 +1599,10 @@ var ci = {
|
|
|
1576
1599
|
til: "~",
|
|
1577
1600
|
ponto: "•"
|
|
1578
1601
|
};
|
|
1579
|
-
function
|
|
1580
|
-
let s = G(
|
|
1602
|
+
function mi({ itens: e, extras: t = [], mostrarUnico: n = !1, separador: r, icones: i, aparencia: a, className: o }) {
|
|
1603
|
+
let s = G(li), c = [...e ?? s?.itens ?? [], ...t];
|
|
1581
1604
|
if (!c.length || c.length < 2 && !n) return null;
|
|
1582
|
-
let l = s?.modelo ?? {}, u = r ?? l.separador ?? "chevron", d = i ?? l.icones ?? "inicio", f = a ?? l.aparencia ?? "simples", p = typeof u == "string" && u in
|
|
1605
|
+
let l = s?.modelo ?? {}, u = r ?? l.separador ?? "chevron", d = i ?? l.icones ?? "inicio", f = a ?? l.aparencia ?? "simples", p = typeof u == "string" && u in pi ? pi[u] : u, m = c.length - 1, h = (e, t, n) => s ? s.link(e.rota, t, n) : /* @__PURE__ */ H("a", {
|
|
1583
1606
|
href: e.rota,
|
|
1584
1607
|
className: n,
|
|
1585
1608
|
children: t
|
|
@@ -1627,7 +1650,7 @@ function li({ itens: e, extras: t = [], mostrarUnico: n = !1, separador: r, icon
|
|
|
1627
1650
|
}
|
|
1628
1651
|
//#endregion
|
|
1629
1652
|
//#region src/components/Estrutura/Estrutura.tsx
|
|
1630
|
-
var
|
|
1653
|
+
var hi = [
|
|
1631
1654
|
{
|
|
1632
1655
|
valor: "compacta",
|
|
1633
1656
|
rotulo: "Compacta",
|
|
@@ -1643,22 +1666,22 @@ var ui = [
|
|
|
1643
1666
|
rotulo: "Espaçosa",
|
|
1644
1667
|
icone: "menu"
|
|
1645
1668
|
}
|
|
1646
|
-
],
|
|
1647
|
-
function
|
|
1669
|
+
], gi = "lp-sidebar-expandida";
|
|
1670
|
+
function _i(e) {
|
|
1648
1671
|
let [t, n] = Y(() => typeof window < "u" && window.matchMedia(e).matches);
|
|
1649
1672
|
return K(() => {
|
|
1650
1673
|
let t = window.matchMedia(e), r = () => n(t.matches);
|
|
1651
1674
|
return r(), t.addEventListener("change", r), () => t.removeEventListener("change", r);
|
|
1652
1675
|
}, [e]), t;
|
|
1653
1676
|
}
|
|
1654
|
-
function
|
|
1677
|
+
function vi() {
|
|
1655
1678
|
try {
|
|
1656
|
-
return localStorage.getItem(
|
|
1679
|
+
return localStorage.getItem(gi) !== "0";
|
|
1657
1680
|
} catch {
|
|
1658
1681
|
return !0;
|
|
1659
1682
|
}
|
|
1660
1683
|
}
|
|
1661
|
-
function
|
|
1684
|
+
function yi(e) {
|
|
1662
1685
|
let t = [], n = (e, r, i) => {
|
|
1663
1686
|
for (let a of e) a.desabilitado || (a.filhos?.length ? n(a.filhos, [...r, a.rotulo], a.icone ?? i) : a.rota && t.push({
|
|
1664
1687
|
rotulo: a.rotulo,
|
|
@@ -1669,7 +1692,7 @@ function mi(e) {
|
|
|
1669
1692
|
};
|
|
1670
1693
|
return e.forEach((e) => n(e.itens, e.rotulo ? [e.rotulo] : [])), t;
|
|
1671
1694
|
}
|
|
1672
|
-
function
|
|
1695
|
+
function bi({ itens: e, aoEscolher: t }) {
|
|
1673
1696
|
return /* @__PURE__ */ H(V, { children: e.map((e) => /* @__PURE__ */ U(Ct, { children: [e.divisorAntes && /* @__PURE__ */ H("div", {
|
|
1674
1697
|
className: "lp-tb-menu-ln",
|
|
1675
1698
|
"aria-hidden": "true"
|
|
@@ -1680,10 +1703,10 @@ function hi({ itens: e, aoEscolher: t }) {
|
|
|
1680
1703
|
children: [e.icone && /* @__PURE__ */ H(Z, { icone: e.icone }), /* @__PURE__ */ H("span", { children: e.rotulo })]
|
|
1681
1704
|
})] }, e.id)) });
|
|
1682
1705
|
}
|
|
1683
|
-
function
|
|
1684
|
-
let C =
|
|
1706
|
+
function xi({ marca: e, nav: t, rotaAtual: n, aoNavegar: r, renderLink: i, usuario: a, menuUsuario: o = [], aoEscolherMenuUsuario: s, notificacoes: c, aoEscolherNotificacao: l, menuDesenvolvimento: u = [], aoEscolherMenuDesenvolvimento: d, ambiente: f, versao: p, rodapeSidebar: m, rodape: h, modeloTrilha: g, submenu: _ = "abaixo", busca: v, placeholderBusca: y = "Buscar no sistema…", aoBuscar: b, complementosTopbar: x, children: S }) {
|
|
1707
|
+
let C = ri(), w = `lp-conteudo-${q().replace(/:/g, "")}`, T = _i("(max-width: 64rem)"), E = _i("(max-width: 48rem)"), [D, O] = Y(() => !T && vi()), [k, A] = Y(null), [j, M] = Y(0), [N, P] = Y(/* @__PURE__ */ new Set()), [F, I] = Y(null), [L, R] = Y(!0), z = J(null), B = J(null), ee = J(null), te = J(null);
|
|
1685
1708
|
K(() => {
|
|
1686
|
-
O(!T &&
|
|
1709
|
+
O(!T && vi());
|
|
1687
1710
|
}, [T]), K(() => {
|
|
1688
1711
|
te.current?.scrollTo({ top: 0 });
|
|
1689
1712
|
}, [n]);
|
|
@@ -1691,12 +1714,12 @@ function gi({ marca: e, nav: t, rotaAtual: n, aoNavegar: r, renderLink: i, usuar
|
|
|
1691
1714
|
O((e) => {
|
|
1692
1715
|
let t = !e;
|
|
1693
1716
|
if (!T) try {
|
|
1694
|
-
localStorage.setItem(
|
|
1717
|
+
localStorage.setItem(gi, t ? "1" : "0");
|
|
1695
1718
|
} catch {}
|
|
1696
1719
|
return t;
|
|
1697
1720
|
});
|
|
1698
1721
|
}, re = W(() => I(null), []), ie = W(() => A(null), []);
|
|
1699
|
-
|
|
1722
|
+
ii([ee], F !== null, re), ii([z, B], k !== null, ie), K(() => {
|
|
1700
1723
|
if (!F && !k) return;
|
|
1701
1724
|
let e = (e) => {
|
|
1702
1725
|
e.key === "Escape" && (I(null), A(null));
|
|
@@ -1745,7 +1768,7 @@ function gi({ marca: e, nav: t, rotaAtual: n, aoNavegar: r, renderLink: i, usuar
|
|
|
1745
1768
|
rotulo: "Início",
|
|
1746
1769
|
rota: e.href ?? "/",
|
|
1747
1770
|
icone: "house"
|
|
1748
|
-
}, r =
|
|
1771
|
+
}, r = fi(t, oe), i = r[r.length - 1];
|
|
1749
1772
|
return {
|
|
1750
1773
|
itens: !i || i.rota === n.rota ? [n] : [n, ...r],
|
|
1751
1774
|
link: (e, t, n) => de({
|
|
@@ -1799,12 +1822,12 @@ function gi({ marca: e, nav: t, rotaAtual: n, aoNavegar: r, renderLink: i, usuar
|
|
|
1799
1822
|
children: pe(e.filhos, n)
|
|
1800
1823
|
})]
|
|
1801
1824
|
}, e.rotulo);
|
|
1802
|
-
}), me = At(() =>
|
|
1825
|
+
}), me = At(() => yi(t), [t]), he = At(() => {
|
|
1803
1826
|
for (let e of t) for (let t of e.itens) if (t.rotulo === k && t.filhos) return t;
|
|
1804
1827
|
return null;
|
|
1805
|
-
}, [t, k]), ge = c?.filter((e) => e.naoLida).length ?? 0, _e = u.length > 0, ve =
|
|
1828
|
+
}, [t, k]), ge = c?.filter((e) => e.naoLida).length ?? 0, _e = u.length > 0, ve = hi.find((e) => e.valor === C?.densidade) ?? hi[1], ye = (e) => I((t) => t === e ? null : e), be = (e) => (t) => {
|
|
1806
1829
|
I(null), e?.(t);
|
|
1807
|
-
}, xe = a && /* @__PURE__ */ H(
|
|
1830
|
+
}, xe = a && /* @__PURE__ */ H(oi, {
|
|
1808
1831
|
className: "lp-avatar-topo",
|
|
1809
1832
|
tom: "escuro",
|
|
1810
1833
|
tamanho: "1.875rem",
|
|
@@ -1823,7 +1846,7 @@ function gi({ marca: e, nav: t, rotaAtual: n, aoNavegar: r, renderLink: i, usuar
|
|
|
1823
1846
|
children: a.cargo
|
|
1824
1847
|
})]
|
|
1825
1848
|
})]
|
|
1826
|
-
}), Ce = C && /* @__PURE__ */ H(V, { children:
|
|
1849
|
+
}), Ce = C && /* @__PURE__ */ H(V, { children: hi.map((e) => /* @__PURE__ */ U("button", {
|
|
1827
1850
|
type: "button",
|
|
1828
1851
|
className: X("lp-tb-menu-item", C.densidade === e.valor && "lp-active"),
|
|
1829
1852
|
"aria-pressed": C.densidade === e.valor,
|
|
@@ -1836,7 +1859,7 @@ function gi({ marca: e, nav: t, rotaAtual: n, aoNavegar: r, renderLink: i, usuar
|
|
|
1836
1859
|
className: "lp-tb-menu-check"
|
|
1837
1860
|
})
|
|
1838
1861
|
]
|
|
1839
|
-
}, e.valor)) }), we = v === void 0 ? /* @__PURE__ */ H(
|
|
1862
|
+
}, e.valor)) }), we = v === void 0 ? /* @__PURE__ */ H(ci, {
|
|
1840
1863
|
placeholder: y,
|
|
1841
1864
|
itensMenu: me,
|
|
1842
1865
|
aoNavegar: r,
|
|
@@ -2155,7 +2178,7 @@ function gi({ marca: e, nav: t, rotaAtual: n, aoNavegar: r, renderLink: i, usuar
|
|
|
2155
2178
|
className: "lp-tb-menu",
|
|
2156
2179
|
role: "group",
|
|
2157
2180
|
"aria-label": "Desenvolvimento",
|
|
2158
|
-
children: /* @__PURE__ */ H(
|
|
2181
|
+
children: /* @__PURE__ */ H(bi, {
|
|
2159
2182
|
itens: u,
|
|
2160
2183
|
aoEscolher: be(d)
|
|
2161
2184
|
})
|
|
@@ -2274,7 +2297,7 @@ function gi({ marca: e, nav: t, rotaAtual: n, aoNavegar: r, renderLink: i, usuar
|
|
|
2274
2297
|
_e && /* @__PURE__ */ U(V, { children: [/* @__PURE__ */ H("div", {
|
|
2275
2298
|
className: "lp-tb-menu-ttl",
|
|
2276
2299
|
children: "Desenvolvimento"
|
|
2277
|
-
}), /* @__PURE__ */ H(
|
|
2300
|
+
}), /* @__PURE__ */ H(bi, {
|
|
2278
2301
|
itens: u,
|
|
2279
2302
|
aoEscolher: be(d)
|
|
2280
2303
|
})] }),
|
|
@@ -2285,7 +2308,7 @@ function gi({ marca: e, nav: t, rotaAtual: n, aoNavegar: r, renderLink: i, usuar
|
|
|
2285
2308
|
o.length > 0 && /* @__PURE__ */ U(V, { children: [/* @__PURE__ */ H("div", {
|
|
2286
2309
|
className: "lp-tb-menu-ln",
|
|
2287
2310
|
"aria-hidden": "true"
|
|
2288
|
-
}), /* @__PURE__ */ H(
|
|
2311
|
+
}), /* @__PURE__ */ H(bi, {
|
|
2289
2312
|
itens: o,
|
|
2290
2313
|
aoEscolher: be(s)
|
|
2291
2314
|
})] })
|
|
@@ -2320,7 +2343,7 @@ function gi({ marca: e, nav: t, rotaAtual: n, aoNavegar: r, renderLink: i, usuar
|
|
|
2320
2343
|
className: "lp-tb-menu lp-tb-menu-user",
|
|
2321
2344
|
role: "group",
|
|
2322
2345
|
"aria-label": "Menu do usuário",
|
|
2323
|
-
children: [Se, /* @__PURE__ */ H(
|
|
2346
|
+
children: [Se, /* @__PURE__ */ H(bi, {
|
|
2324
2347
|
itens: o,
|
|
2325
2348
|
aoEscolher: be(s)
|
|
2326
2349
|
})]
|
|
@@ -2337,7 +2360,7 @@ function gi({ marca: e, nav: t, rotaAtual: n, aoNavegar: r, renderLink: i, usuar
|
|
|
2337
2360
|
tabIndex: -1,
|
|
2338
2361
|
children: /* @__PURE__ */ H("div", {
|
|
2339
2362
|
className: "lp-content-inner",
|
|
2340
|
-
children: /* @__PURE__ */ H(
|
|
2363
|
+
children: /* @__PURE__ */ H(ui, {
|
|
2341
2364
|
value: fe,
|
|
2342
2365
|
children: S
|
|
2343
2366
|
})
|
|
@@ -2355,7 +2378,7 @@ function gi({ marca: e, nav: t, rotaAtual: n, aoNavegar: r, renderLink: i, usuar
|
|
|
2355
2378
|
}
|
|
2356
2379
|
//#endregion
|
|
2357
2380
|
//#region src/components/CabecalhoPagina/CabecalhoPagina.tsx
|
|
2358
|
-
function
|
|
2381
|
+
function Si({ titulo: e, icone: t, categoria: n, trilha: r, acoes: i, children: a, className: o }) {
|
|
2359
2382
|
return /* @__PURE__ */ U("header", {
|
|
2360
2383
|
className: X("lp-cab", o),
|
|
2361
2384
|
children: [/* @__PURE__ */ U("div", {
|
|
@@ -2376,7 +2399,7 @@ function _i({ titulo: e, icone: t, categoria: n, trilha: r, acoes: i, children:
|
|
|
2376
2399
|
className: "lp-cab-titulo",
|
|
2377
2400
|
children: e
|
|
2378
2401
|
}),
|
|
2379
|
-
r && /* @__PURE__ */ H(
|
|
2402
|
+
r && /* @__PURE__ */ H(mi, {
|
|
2380
2403
|
extras: Array.isArray(r) ? r : void 0,
|
|
2381
2404
|
className: "lp-cab-trilha"
|
|
2382
2405
|
})
|
|
@@ -2395,13 +2418,13 @@ function _i({ titulo: e, icone: t, categoria: n, trilha: r, acoes: i, children:
|
|
|
2395
2418
|
}
|
|
2396
2419
|
//#endregion
|
|
2397
2420
|
//#region src/components/BoasVindas/BoasVindas.tsx
|
|
2398
|
-
var
|
|
2399
|
-
function
|
|
2400
|
-
let [s] = Y(() => /* @__PURE__ */ new Date()), c = [t, n].filter(Boolean).join(" · "), l =
|
|
2421
|
+
var Ci = new Intl.DateTimeFormat("pt-BR", { dateStyle: "full" }), wi = new Intl.DateTimeFormat("pt-BR", { dateStyle: "short" }), Ti = new Intl.DateTimeFormat("pt-BR", { timeStyle: "short" });
|
|
2422
|
+
function Ei({ nome: e, cargo: t, sigla: n, foto: r, ultimoAcesso: i, children: a, className: o }) {
|
|
2423
|
+
let [s] = Y(() => /* @__PURE__ */ new Date()), c = [t, n].filter(Boolean).join(" · "), l = Ci.format(s);
|
|
2401
2424
|
return /* @__PURE__ */ U("header", {
|
|
2402
2425
|
className: X("lp-bv", o),
|
|
2403
2426
|
children: [
|
|
2404
|
-
/* @__PURE__ */ H(
|
|
2427
|
+
/* @__PURE__ */ H(oi, {
|
|
2405
2428
|
nome: e,
|
|
2406
2429
|
foto: r,
|
|
2407
2430
|
tom: "escuro",
|
|
@@ -2431,9 +2454,9 @@ function xi({ nome: e, cargo: t, sigla: n, foto: r, ultimoAcesso: i, children: a
|
|
|
2431
2454
|
children: [
|
|
2432
2455
|
/* @__PURE__ */ H(Z, { icone: "clock" }),
|
|
2433
2456
|
"Último acesso em ",
|
|
2434
|
-
|
|
2457
|
+
wi.format(i),
|
|
2435
2458
|
" às ",
|
|
2436
|
-
|
|
2459
|
+
Ti.format(i)
|
|
2437
2460
|
]
|
|
2438
2461
|
})
|
|
2439
2462
|
]
|
|
@@ -2447,7 +2470,7 @@ function xi({ nome: e, cargo: t, sigla: n, foto: r, ultimoAcesso: i, children: a
|
|
|
2447
2470
|
}
|
|
2448
2471
|
//#endregion
|
|
2449
2472
|
//#region src/components/Alerta/Alerta.tsx
|
|
2450
|
-
var
|
|
2473
|
+
var Di = {
|
|
2451
2474
|
pri: "info",
|
|
2452
2475
|
destaque: "circle-alert",
|
|
2453
2476
|
ok: "circle-check",
|
|
@@ -2456,10 +2479,10 @@ var Si = {
|
|
|
2456
2479
|
err: "circle-x",
|
|
2457
2480
|
neutral: "info"
|
|
2458
2481
|
};
|
|
2459
|
-
function
|
|
2482
|
+
function Oi({ severidade: e = "info", aparencia: t = "suave", formato: n = "padrao", sombra: r, titulo: i, mensagem: a, children: o, icone: s, midia: c, acoes: l, posicaoAcoes: u, dispensavel: d = !1, aoFechar: f, botaoFechar: p = "simples", className: m }) {
|
|
2460
2483
|
let [h, g] = Y(!1);
|
|
2461
2484
|
if (h) return null;
|
|
2462
|
-
let _ = t === "cartao", v = t === "faixa", y = d || !!f, b = s === !1 ? null : s ??
|
|
2485
|
+
let _ = t === "cartao", v = t === "faixa", y = d || !!f, b = s === !1 ? null : s ?? Di[e], x = (u ?? (_ || i ? "abaixo" : "lado")) === "abaixo", S = y && /* @__PURE__ */ H("button", {
|
|
2463
2486
|
type: "button",
|
|
2464
2487
|
className: X("lp-alerta-fechar", p === "circulo" && "lp-alerta-fechar--circulo"),
|
|
2465
2488
|
"aria-label": "Fechar alerta",
|
|
@@ -2527,27 +2550,27 @@ function Ci({ severidade: e = "info", aparencia: t = "suave", formato: n = "padr
|
|
|
2527
2550
|
}
|
|
2528
2551
|
//#endregion
|
|
2529
2552
|
//#region src/components/Campo/Campo.tsx
|
|
2530
|
-
var
|
|
2531
|
-
function
|
|
2532
|
-
let a = G(
|
|
2533
|
-
return p || (u && n && f ? p =
|
|
2553
|
+
var ki = Tt(0), Ai = "Campo obrigatório";
|
|
2554
|
+
function ji({ valor: e, validar: t, obrigatorio: n, erro: r, aviso: i }) {
|
|
2555
|
+
let a = G(ki), [o, s] = Y(!1), [c, l] = Y(!1), u = !e?.trim(), d = !u && t ? t(e) : "", f = c || a > 0, p = r, m = i;
|
|
2556
|
+
return p || (u && n && f ? p = Ai : d && o && f ? p = d : d && !o && !m && (m = `${d}. O valor será mantido como está.`)), {
|
|
2534
2557
|
erro: p || void 0,
|
|
2535
2558
|
aviso: m || void 0,
|
|
2536
2559
|
aoInteragir: () => s(!0),
|
|
2537
2560
|
aoSair: () => o && l(!0)
|
|
2538
2561
|
};
|
|
2539
2562
|
}
|
|
2540
|
-
function
|
|
2563
|
+
function Mi(e) {
|
|
2541
2564
|
let t = q(), n = e ?? `lp-${t.replace(/:/g, "")}`;
|
|
2542
2565
|
return {
|
|
2543
2566
|
id: n,
|
|
2544
2567
|
msgId: `${n}-msg`
|
|
2545
2568
|
};
|
|
2546
2569
|
}
|
|
2547
|
-
function
|
|
2570
|
+
function Ni(e, t) {
|
|
2548
2571
|
return e.erro || e.aviso || e.dica ? t : void 0;
|
|
2549
2572
|
}
|
|
2550
|
-
function
|
|
2573
|
+
function Pi({ rotulo: e, dica: t, erro: n, aviso: r, obrigatorio: i, variante: a = "campo", className: o, htmlFor: s, msgId: c, children: l }) {
|
|
2551
2574
|
let u = a === "inline", d = J(null), [f, p] = Y(0);
|
|
2552
2575
|
kt(() => {
|
|
2553
2576
|
if (!u || !d.current) return;
|
|
@@ -2629,8 +2652,8 @@ function ki({ rotulo: e, dica: t, erro: n, aviso: r, obrigatorio: i, variante: a
|
|
|
2629
2652
|
}
|
|
2630
2653
|
//#endregion
|
|
2631
2654
|
//#region src/components/CampoMarcacao/CampoMarcacao.tsx
|
|
2632
|
-
function
|
|
2633
|
-
let { id: d, msgId: f } =
|
|
2655
|
+
function Fi({ rotulo: e, valor: t, aoMudar: n, aparencia: r = "caixa", dica: i, erro: a, obrigatorio: o, className: s, id: c, onChange: l, ...u }) {
|
|
2656
|
+
let { id: d, msgId: f } = Mi(c);
|
|
2634
2657
|
return /* @__PURE__ */ U("div", {
|
|
2635
2658
|
className: X("lp-marc-wrap", s),
|
|
2636
2659
|
children: [/* @__PURE__ */ U("label", {
|
|
@@ -2677,8 +2700,8 @@ function Ai({ rotulo: e, valor: t, aoMudar: n, aparencia: r = "caixa", dica: i,
|
|
|
2677
2700
|
}
|
|
2678
2701
|
//#endregion
|
|
2679
2702
|
//#region src/components/CampoTexto/CampoTexto.tsx
|
|
2680
|
-
var
|
|
2681
|
-
let { id: S, msgId: C } =
|
|
2703
|
+
var Ii = Et(function({ rotulo: e, dica: t, erro: n, aviso: r, obrigatorio: i, variante: a = "campo", className: o, id: s, valor: c, aoMudar: l, onChange: u, icone: d, mascara: f, maiuscula: p, prefixo: m, sufixo: h, disabled: g, type: _ = "text", validar: v, onBlur: y, ...b }, x) {
|
|
2704
|
+
let { id: S, msgId: C } = Mi(s), w = ji({
|
|
2682
2705
|
valor: c ?? "",
|
|
2683
2706
|
validar: v,
|
|
2684
2707
|
obrigatorio: i,
|
|
@@ -2703,14 +2726,14 @@ var ji = Et(function({ rotulo: e, dica: t, erro: n, aviso: r, obrigatorio: i, va
|
|
|
2703
2726
|
required: i,
|
|
2704
2727
|
"aria-required": i || void 0,
|
|
2705
2728
|
"aria-invalid": n ? !0 : void 0,
|
|
2706
|
-
"aria-describedby":
|
|
2729
|
+
"aria-describedby": Ni({
|
|
2707
2730
|
erro: n,
|
|
2708
2731
|
aviso: r,
|
|
2709
2732
|
dica: t
|
|
2710
2733
|
}, C),
|
|
2711
2734
|
...b
|
|
2712
2735
|
});
|
|
2713
|
-
return /* @__PURE__ */ H(
|
|
2736
|
+
return /* @__PURE__ */ H(Pi, {
|
|
2714
2737
|
rotulo: e,
|
|
2715
2738
|
dica: t,
|
|
2716
2739
|
erro: n,
|
|
@@ -2743,8 +2766,8 @@ var ji = Et(function({ rotulo: e, dica: t, erro: n, aviso: r, obrigatorio: i, va
|
|
|
2743
2766
|
})
|
|
2744
2767
|
});
|
|
2745
2768
|
});
|
|
2746
|
-
function
|
|
2747
|
-
let r = ln[e], i = Et((e, t) => /* @__PURE__ */ H(
|
|
2769
|
+
function Li(e, t, n = {}) {
|
|
2770
|
+
let r = ln[e], i = Et((e, t) => /* @__PURE__ */ H(Ii, {
|
|
2748
2771
|
ref: t,
|
|
2749
2772
|
mascara: r.mascara,
|
|
2750
2773
|
placeholder: r.placeholder,
|
|
@@ -2755,14 +2778,14 @@ function Mi(e, t, n = {}) {
|
|
|
2755
2778
|
}));
|
|
2756
2779
|
return i.displayName = t, i;
|
|
2757
2780
|
}
|
|
2758
|
-
var
|
|
2781
|
+
var Ri = Li("cpf", "CampoCpf", { inputMode: "numeric" }), zi = Li("cnpj", "CampoCnpj", { inputMode: "numeric" }), Bi = Li("cpfCnpj", "CampoCpfCnpj", { inputMode: "numeric" }), Vi = Li("cep", "CampoCep", { inputMode: "numeric" }), Hi = Li("placa", "CampoPlaca"), Ui = Li("email", "CampoEmail", {
|
|
2759
2782
|
type: "email",
|
|
2760
2783
|
inputMode: "email",
|
|
2761
2784
|
autoComplete: "email",
|
|
2762
2785
|
icone: "mail"
|
|
2763
|
-
}),
|
|
2786
|
+
}), Wi = Li("renavam", "CampoRenavam", { inputMode: "numeric" }), Gi = Li("chassi", "CampoChassi"), Ki = Li("cnh", "CampoCnh", { inputMode: "numeric" }), qi = Li("imei", "CampoImei", { inputMode: "numeric" }), Ji = Et(({ tipo: e, ...t }, n) => {
|
|
2764
2787
|
let [r, i] = Ht.telefone;
|
|
2765
|
-
return /* @__PURE__ */ H(
|
|
2788
|
+
return /* @__PURE__ */ H(Ii, {
|
|
2766
2789
|
ref: n,
|
|
2767
2790
|
mascara: e === "fixo" ? r : e === "celular" ? i : [r, i],
|
|
2768
2791
|
inputMode: "tel",
|
|
@@ -2772,43 +2795,43 @@ var Ni = Mi("cpf", "CampoCpf", { inputMode: "numeric" }), Pi = Mi("cnpj", "Campo
|
|
|
2772
2795
|
...t
|
|
2773
2796
|
});
|
|
2774
2797
|
});
|
|
2775
|
-
|
|
2776
|
-
var
|
|
2798
|
+
Ji.displayName = "CampoTelefone";
|
|
2799
|
+
var Yi = Et((e, t) => /* @__PURE__ */ H(Ii, {
|
|
2777
2800
|
ref: t,
|
|
2778
2801
|
type: "date",
|
|
2779
2802
|
...e
|
|
2780
2803
|
}));
|
|
2781
|
-
|
|
2782
|
-
var
|
|
2804
|
+
Yi.displayName = "CampoData";
|
|
2805
|
+
var Xi = Et((e, t) => /* @__PURE__ */ H(Ii, {
|
|
2783
2806
|
ref: t,
|
|
2784
2807
|
type: "time",
|
|
2785
2808
|
...e
|
|
2786
2809
|
}));
|
|
2787
|
-
|
|
2788
|
-
var
|
|
2810
|
+
Xi.displayName = "CampoHora";
|
|
2811
|
+
var Zi = Et((e, t) => /* @__PURE__ */ H(Ii, {
|
|
2789
2812
|
ref: t,
|
|
2790
2813
|
type: "datetime-local",
|
|
2791
2814
|
...e
|
|
2792
2815
|
}));
|
|
2793
|
-
|
|
2794
|
-
var
|
|
2816
|
+
Zi.displayName = "CampoDataHora";
|
|
2817
|
+
var Qi = new Intl.NumberFormat("pt-BR", {
|
|
2795
2818
|
minimumFractionDigits: 2,
|
|
2796
2819
|
maximumFractionDigits: 2
|
|
2797
|
-
}),
|
|
2798
|
-
return /* @__PURE__ */ H(
|
|
2820
|
+
}), $i = Et(function({ valor: e, aoMudar: t, ...n }, r) {
|
|
2821
|
+
return /* @__PURE__ */ H(Ii, {
|
|
2799
2822
|
ref: r,
|
|
2800
2823
|
inputMode: "numeric",
|
|
2801
2824
|
prefixo: "R$",
|
|
2802
2825
|
placeholder: "0,00",
|
|
2803
|
-
valor: e == null ? "" :
|
|
2826
|
+
valor: e == null ? "" : Qi.format(e),
|
|
2804
2827
|
aoMudar: (e) => {
|
|
2805
2828
|
let n = e.replace(/\D/g, "");
|
|
2806
2829
|
t?.(n ? Number(n) / 100 : null);
|
|
2807
2830
|
},
|
|
2808
2831
|
...n
|
|
2809
2832
|
});
|
|
2810
|
-
}),
|
|
2811
|
-
return /* @__PURE__ */ H(
|
|
2833
|
+
}), ea = Et(function({ valor: e, aoMudar: t, ...n }, r) {
|
|
2834
|
+
return /* @__PURE__ */ H(Ii, {
|
|
2812
2835
|
ref: r,
|
|
2813
2836
|
inputMode: "numeric",
|
|
2814
2837
|
valor: e == null ? "" : String(e),
|
|
@@ -2818,17 +2841,17 @@ var qi = new Intl.NumberFormat("pt-BR", {
|
|
|
2818
2841
|
},
|
|
2819
2842
|
...n
|
|
2820
2843
|
});
|
|
2821
|
-
}),
|
|
2844
|
+
}), ta = {
|
|
2822
2845
|
vazia: "",
|
|
2823
2846
|
fraca: "Fraca",
|
|
2824
2847
|
media: "Média",
|
|
2825
2848
|
forte: "Forte"
|
|
2826
2849
|
};
|
|
2827
|
-
function
|
|
2850
|
+
function na({ revelavel: e = !0, forca: t = !1, politica: n = ar, autoComplete: r = "current-password", className: i, valor: a = "", validar: o, aviso: s, onKeyDown: c, onKeyUp: l, disabled: u, ...d }) {
|
|
2828
2851
|
let [f, p] = Y(!1), [m, h] = Y(!1), g = cr(a, n), _ = (e) => h(e.getModifierState?.("CapsLock") ?? !1);
|
|
2829
2852
|
return /* @__PURE__ */ U("div", {
|
|
2830
2853
|
className: X("lp-senha", i),
|
|
2831
|
-
children: [/* @__PURE__ */ H(
|
|
2854
|
+
children: [/* @__PURE__ */ H(Ii, {
|
|
2832
2855
|
...d,
|
|
2833
2856
|
type: f ? "text" : "password",
|
|
2834
2857
|
autoComplete: r,
|
|
@@ -2865,14 +2888,14 @@ function Zi({ revelavel: e = !0, forca: t = !1, politica: n = ar, autoComplete:
|
|
|
2865
2888
|
].map((e) => /* @__PURE__ */ H("span", { className: X("lp-senha-barra", e <= g.score && "is-on") }, e))
|
|
2866
2889
|
}), g.nivel !== "vazia" && /* @__PURE__ */ U("span", {
|
|
2867
2890
|
className: "lp-senha-nivel",
|
|
2868
|
-
children: ["Força: ",
|
|
2891
|
+
children: ["Força: ", ta[g.nivel]]
|
|
2869
2892
|
})]
|
|
2870
2893
|
})]
|
|
2871
2894
|
});
|
|
2872
2895
|
}
|
|
2873
2896
|
//#endregion
|
|
2874
2897
|
//#region src/components/Dialogo/Dialogo.tsx
|
|
2875
|
-
function
|
|
2898
|
+
function ra({ aberto: e, aoFechar: t, titulo: n, subtitulo: r, icone: i, tamanho: a = "medio", telaCheiaAbaixo: o, aparencia: s = "central", posicao: c = "centro", rolagem: l = "corpo", animacao: u = "padrao", tom: d = "claro", dispensavel: f = !0, rodape: p, children: m, className: h }) {
|
|
2876
2899
|
let g = q();
|
|
2877
2900
|
if (!e) return null;
|
|
2878
2901
|
let _ = s === "lateral";
|
|
@@ -2924,7 +2947,7 @@ function Qi({ aberto: e, aoFechar: t, titulo: n, subtitulo: r, icone: i, tamanho
|
|
|
2924
2947
|
}
|
|
2925
2948
|
//#endregion
|
|
2926
2949
|
//#region src/components/Status/Status.tsx
|
|
2927
|
-
function
|
|
2950
|
+
function ia({ rotulo: e, severidade: t = "neutral", icone: n, className: r }) {
|
|
2928
2951
|
return /* @__PURE__ */ U("span", {
|
|
2929
2952
|
className: X("lp-status", r),
|
|
2930
2953
|
"data-sev": t,
|
|
@@ -2933,9 +2956,9 @@ function $i({ rotulo: e, severidade: t = "neutral", icone: n, className: r }) {
|
|
|
2933
2956
|
}
|
|
2934
2957
|
//#endregion
|
|
2935
2958
|
//#region src/components/TelaLogin/TelaLogin.tsx
|
|
2936
|
-
var
|
|
2937
|
-
function
|
|
2938
|
-
let [h, g] = Y(""), [_, v] = Y(""), [y, b] = Y(!1), [x, S] = Y(""), [C, w] = Y(!1), [T, E] = Y(!1), [D, O] = Y(""), [k, A] = Y(!1), [j, M] = Y(""), [N, P] = Y(!1), F =
|
|
2959
|
+
var aa = 6;
|
|
2960
|
+
function oa({ marca: e, modelo: t = "conteudo", apresentacao: n, ambiente: r, identificador: i = "cpf", titulo: a = "Acesse sua conta", descricao: o = "Entre com suas credenciais institucionais.", aoEntrar: s, aoConfirmarCodigo: c, confiarDispositivo: l = !0, instrucaoCodigo: u = "Digite o código de 6 dígitos gerado no aplicativo de autenticação.", linkSenha: d, acoes: f, rodape: p, className: m }) {
|
|
2961
|
+
let [h, g] = Y(""), [_, v] = Y(""), [y, b] = Y(!1), [x, S] = Y(""), [C, w] = Y(!1), [T, E] = Y(!1), [D, O] = Y(""), [k, A] = Y(!1), [j, M] = Y(""), [N, P] = Y(!1), F = ri(), I = q(), L = t === "conteudo" && !!n, R = async (e) => {
|
|
2939
2962
|
if (e.preventDefault(), w(!0), h.trim() && _) {
|
|
2940
2963
|
S(""), b(!0);
|
|
2941
2964
|
try {
|
|
@@ -2951,7 +2974,7 @@ function ta({ marca: e, modelo: t = "conteudo", apresentacao: n, ambiente: r, id
|
|
|
2951
2974
|
}
|
|
2952
2975
|
}
|
|
2953
2976
|
}, z = async (e) => {
|
|
2954
|
-
if (e?.preventDefault(), D.length !==
|
|
2977
|
+
if (e?.preventDefault(), D.length !== aa) M(`Informe os ${aa} dígitos`);
|
|
2955
2978
|
else {
|
|
2956
2979
|
P(!0);
|
|
2957
2980
|
try {
|
|
@@ -3003,7 +3026,7 @@ function ta({ marca: e, modelo: t = "conteudo", apresentacao: n, ambiente: r, id
|
|
|
3003
3026
|
className: "lp-login-sub",
|
|
3004
3027
|
children: e.subtitulo
|
|
3005
3028
|
})] }),
|
|
3006
|
-
r?.rotulo && r.rotulo !== "#" && /* @__PURE__ */ H(
|
|
3029
|
+
r?.rotulo && r.rotulo !== "#" && /* @__PURE__ */ H(ia, {
|
|
3007
3030
|
rotulo: r.rotulo,
|
|
3008
3031
|
severidade: r.severidade ?? "err"
|
|
3009
3032
|
})
|
|
@@ -3072,7 +3095,7 @@ function ta({ marca: e, modelo: t = "conteudo", apresentacao: n, ambiente: r, id
|
|
|
3072
3095
|
})
|
|
3073
3096
|
]
|
|
3074
3097
|
}),
|
|
3075
|
-
x && /* @__PURE__ */ H(
|
|
3098
|
+
x && /* @__PURE__ */ H(Oi, {
|
|
3076
3099
|
severidade: "err",
|
|
3077
3100
|
mensagem: x
|
|
3078
3101
|
}),
|
|
@@ -3081,16 +3104,16 @@ function ta({ marca: e, modelo: t = "conteudo", apresentacao: n, ambiente: r, id
|
|
|
3081
3104
|
onSubmit: R,
|
|
3082
3105
|
noValidate: !0,
|
|
3083
3106
|
children: [
|
|
3084
|
-
i === "cpf" ? /* @__PURE__ */ H(
|
|
3107
|
+
i === "cpf" ? /* @__PURE__ */ H(Ri, {
|
|
3085
3108
|
rotulo: "CPF",
|
|
3086
3109
|
autoComplete: "username",
|
|
3087
3110
|
...ee
|
|
3088
|
-
}) : i === "email" ? /* @__PURE__ */ H(
|
|
3111
|
+
}) : i === "email" ? /* @__PURE__ */ H(Ui, {
|
|
3089
3112
|
rotulo: "E-mail",
|
|
3090
3113
|
autoComplete: "username",
|
|
3091
3114
|
placeholder: "voce@empresa.com.br",
|
|
3092
3115
|
...ee
|
|
3093
|
-
}) : /* @__PURE__ */ H(
|
|
3116
|
+
}) : /* @__PURE__ */ H(Ii, {
|
|
3094
3117
|
rotulo: "Usuário",
|
|
3095
3118
|
autoComplete: "username",
|
|
3096
3119
|
icone: "user",
|
|
@@ -3098,7 +3121,7 @@ function ta({ marca: e, modelo: t = "conteudo", apresentacao: n, ambiente: r, id
|
|
|
3098
3121
|
}),
|
|
3099
3122
|
/* @__PURE__ */ U("div", {
|
|
3100
3123
|
className: "lp-login-senha",
|
|
3101
|
-
children: [/* @__PURE__ */ H(
|
|
3124
|
+
children: [/* @__PURE__ */ H(na, {
|
|
3102
3125
|
rotulo: "Senha",
|
|
3103
3126
|
placeholder: "••••••••",
|
|
3104
3127
|
valor: _,
|
|
@@ -3130,7 +3153,7 @@ function ta({ marca: e, modelo: t = "conteudo", apresentacao: n, ambiente: r, id
|
|
|
3130
3153
|
]
|
|
3131
3154
|
})]
|
|
3132
3155
|
}),
|
|
3133
|
-
/* @__PURE__ */ H(
|
|
3156
|
+
/* @__PURE__ */ H(ra, {
|
|
3134
3157
|
aberto: T,
|
|
3135
3158
|
aoFechar: () => E(!1),
|
|
3136
3159
|
titulo: "Verificação em duas etapas",
|
|
@@ -3158,7 +3181,7 @@ function ta({ marca: e, modelo: t = "conteudo", apresentacao: n, ambiente: r, id
|
|
|
3158
3181
|
className: "lp-login-desc",
|
|
3159
3182
|
children: u
|
|
3160
3183
|
}),
|
|
3161
|
-
/* @__PURE__ */ H(
|
|
3184
|
+
/* @__PURE__ */ H(Ii, {
|
|
3162
3185
|
rotulo: "Código",
|
|
3163
3186
|
className: "lp-login-otp-campo",
|
|
3164
3187
|
mascara: "000000",
|
|
@@ -3171,7 +3194,7 @@ function ta({ marca: e, modelo: t = "conteudo", apresentacao: n, ambiente: r, id
|
|
|
3171
3194
|
},
|
|
3172
3195
|
erro: j || void 0
|
|
3173
3196
|
}),
|
|
3174
|
-
l && /* @__PURE__ */ H(
|
|
3197
|
+
l && /* @__PURE__ */ H(Fi, {
|
|
3175
3198
|
rotulo: "Confiar neste dispositivo",
|
|
3176
3199
|
dica: "O código não será pedido de novo neste computador.",
|
|
3177
3200
|
valor: k,
|
|
@@ -3185,7 +3208,7 @@ function ta({ marca: e, modelo: t = "conteudo", apresentacao: n, ambiente: r, id
|
|
|
3185
3208
|
}
|
|
3186
3209
|
//#endregion
|
|
3187
3210
|
//#region src/components/TelaErro/TelaErro.tsx
|
|
3188
|
-
function
|
|
3211
|
+
function sa({ codigo: e, titulo: t, descricao: n, icone: r, cor: i = "pri", acoes: a, detalhe: o, marca: s, tela: c = "cheia", className: l }) {
|
|
3189
3212
|
return /* @__PURE__ */ U("div", {
|
|
3190
3213
|
className: X("lp-erro", `lp-erro--${c}`, i !== "pri" && `lp-erro--${i}`, l),
|
|
3191
3214
|
children: [
|
|
@@ -3256,7 +3279,7 @@ function na({ codigo: e, titulo: t, descricao: n, icone: r, cor: i = "pri", acoe
|
|
|
3256
3279
|
}
|
|
3257
3280
|
//#endregion
|
|
3258
3281
|
//#region src/components/GrupoBotoes/GrupoBotoes.tsx
|
|
3259
|
-
function
|
|
3282
|
+
function ca({ children: e, orientacao: t = "horizontal", rotulo: n, className: r, ...i }) {
|
|
3260
3283
|
return /* @__PURE__ */ H(Or.Provider, {
|
|
3261
3284
|
value: i,
|
|
3262
3285
|
children: /* @__PURE__ */ H("div", {
|
|
@@ -3267,11 +3290,11 @@ function ra({ children: e, orientacao: t = "horizontal", rotulo: n, className: r
|
|
|
3267
3290
|
})
|
|
3268
3291
|
});
|
|
3269
3292
|
}
|
|
3270
|
-
function
|
|
3293
|
+
function la(e) {
|
|
3271
3294
|
let { opcoes: t, aparencia: n = "contorno", ...r } = e, i = e.multiplo ? e.valor ?? [] : e.valor == null ? [] : [e.valor], a = (e) => i.some((t) => Object.is(t, e)), o = (t) => {
|
|
3272
3295
|
e.multiplo ? e.aoMudar?.(a(t) ? i.filter((e) => !Object.is(e, t)) : [...i, t]) : e.aoMudar?.(t);
|
|
3273
3296
|
}, { multiplo: s, valor: c, aoMudar: l, ...u } = r;
|
|
3274
|
-
return /* @__PURE__ */ H(
|
|
3297
|
+
return /* @__PURE__ */ H(ca, {
|
|
3275
3298
|
...u,
|
|
3276
3299
|
children: t.map((e, t) => /* @__PURE__ */ H($, {
|
|
3277
3300
|
rotulo: e.rotulo,
|
|
@@ -3285,7 +3308,7 @@ function ia(e) {
|
|
|
3285
3308
|
}, t))
|
|
3286
3309
|
});
|
|
3287
3310
|
}
|
|
3288
|
-
function
|
|
3311
|
+
function ua({ children: e, rotulo: t, distribuicao: n = "inicio", className: r }) {
|
|
3289
3312
|
return /* @__PURE__ */ H("div", {
|
|
3290
3313
|
role: "toolbar",
|
|
3291
3314
|
"aria-label": t,
|
|
@@ -3295,30 +3318,30 @@ function aa({ children: e, rotulo: t, distribuicao: n = "inicio", className: r }
|
|
|
3295
3318
|
}
|
|
3296
3319
|
//#endregion
|
|
3297
3320
|
//#region src/components/MenuSuspenso/MenuSuspenso.tsx
|
|
3298
|
-
var
|
|
3321
|
+
var da = {
|
|
3299
3322
|
baixo: "chevron-down",
|
|
3300
3323
|
cima: "chevron-up",
|
|
3301
3324
|
direita: "chevron-right",
|
|
3302
3325
|
esquerda: "chevron-left"
|
|
3303
|
-
},
|
|
3304
|
-
function
|
|
3326
|
+
}, fa = 8, pa = "[role=\"menuitem\"]:not([aria-disabled=\"true\"])", ma = "a[href], button:not(:disabled), input:not(:disabled), select:not(:disabled), textarea:not(:disabled), [tabindex]:not([tabindex=\"-1\"])";
|
|
3327
|
+
function ha(e, t, n, r, i, [a, o]) {
|
|
3305
3328
|
let s = window.innerWidth, c = window.innerHeight, l = 4 + o, u = r;
|
|
3306
3329
|
u === "baixo" && e.bottom + l + n > c && e.top - l - n >= 0 ? u = "cima" : u === "cima" && e.top - l - n < 0 && e.bottom + l + n <= c ? u = "baixo" : u === "direita" && e.right + l + t > s && e.left - l - t >= 0 ? u = "esquerda" : u === "esquerda" && e.left - l - t < 0 && e.right + l + t <= s && (u = "direita");
|
|
3307
3330
|
let d, f;
|
|
3308
|
-
return u === "baixo" || u === "cima" ? (d = u === "baixo" ? e.bottom + l : e.top - l - n, f = i === "inicio" ? e.left : i === "fim" ? e.right - t : e.left + e.width / 2 - t / 2, f += a) : (f = u === "direita" ? e.right + l : e.left - l - t, d = i === "fim" ? e.bottom - n : i === "centro" ? e.top + e.height / 2 - n / 2 : e.top, d += a), f = Math.max(
|
|
3331
|
+
return u === "baixo" || u === "cima" ? (d = u === "baixo" ? e.bottom + l : e.top - l - n, f = i === "inicio" ? e.left : i === "fim" ? e.right - t : e.left + e.width / 2 - t / 2, f += a) : (f = u === "direita" ? e.right + l : e.left - l - t, d = i === "fim" ? e.bottom - n : i === "centro" ? e.top + e.height / 2 - n / 2 : e.top, d += a), f = Math.max(fa, Math.min(f, s - t - fa)), d = Math.max(fa, Math.min(d, c - n - fa)), {
|
|
3309
3332
|
top: d,
|
|
3310
3333
|
left: f,
|
|
3311
3334
|
direcao: u
|
|
3312
3335
|
};
|
|
3313
3336
|
}
|
|
3314
|
-
function
|
|
3337
|
+
function ga({ rotulo: e, icone: t, dica: n, "aria-label": r, itens: i, aoEscolher: a, children: o, dividido: s = !1, aoClicarPrincipal: c, direcao: l = "baixo", alinhamento: u = "inicio", alinhamentoTelaGrande: d, fechamento: f = "sempre", deslocamento: p = [0, 0], referencia: m = "gatilho", escuro: h = !1, cor: g, sombra: _, semSeta: v = !1, larguraMenu: y, desabilitado: b, gatilho: x, className: S, severidade: C, aparencia: w, formato: T, tamanho: E }) {
|
|
3315
3338
|
let D = q(), O = J(null), k = J(null), A = J(null), [j, M] = Y(!1), [N, P] = Y(null), F = J("primeiro"), I = !!i?.length, [L, R] = p, z = W((e = !0) => {
|
|
3316
3339
|
M(!1), e && k.current?.focus();
|
|
3317
3340
|
}, []), B = W(() => {
|
|
3318
3341
|
let e = m === "pai" ? O.current : k.current, t = A.current;
|
|
3319
3342
|
if (!e || !t) return;
|
|
3320
3343
|
let n = d && window.matchMedia("(min-width: 64rem)").matches;
|
|
3321
|
-
P(
|
|
3344
|
+
P(ha(e.getBoundingClientRect(), t.offsetWidth, t.offsetHeight, l, n ? d : u, [L, R]));
|
|
3322
3345
|
}, [
|
|
3323
3346
|
m,
|
|
3324
3347
|
l,
|
|
@@ -3336,9 +3359,9 @@ function da({ rotulo: e, icone: t, dica: n, "aria-label": r, itens: i, aoEscolhe
|
|
|
3336
3359
|
let ee = !!N;
|
|
3337
3360
|
K(() => {
|
|
3338
3361
|
if (!ee || !A.current) return;
|
|
3339
|
-
let e = A.current.querySelectorAll(I ?
|
|
3362
|
+
let e = A.current.querySelectorAll(I ? pa : ma);
|
|
3340
3363
|
((F.current === "ultimo" ? e[e.length - 1] : e[0]) ?? A.current).focus({ preventScroll: !0 });
|
|
3341
|
-
}, [ee, I]),
|
|
3364
|
+
}, [ee, I]), ii([O, A], j && (f === "sempre" || f === "fora"), () => z(!1)), K(() => {
|
|
3342
3365
|
if (!j) return;
|
|
3343
3366
|
let e = (e) => e.key === "Escape" && z();
|
|
3344
3367
|
return document.addEventListener("keydown", e), () => document.removeEventListener("keydown", e);
|
|
@@ -3355,19 +3378,19 @@ function da({ rotulo: e, icone: t, dica: n, "aria-label": r, itens: i, aoEscolhe
|
|
|
3355
3378
|
let t = A.current;
|
|
3356
3379
|
if (!t) return;
|
|
3357
3380
|
if (e.key === "Tab") {
|
|
3358
|
-
let n = Array.from(t.querySelectorAll(I ?
|
|
3381
|
+
let n = Array.from(t.querySelectorAll(I ? pa : ma)), r = document.activeElement;
|
|
3359
3382
|
(I || !n.length || (e.shiftKey ? r === n[0] : r === n[n.length - 1])) && (e.shiftKey && e.preventDefault(), z());
|
|
3360
3383
|
return;
|
|
3361
3384
|
}
|
|
3362
3385
|
if (!I) return;
|
|
3363
|
-
let n = Array.from(t.querySelectorAll(
|
|
3386
|
+
let n = Array.from(t.querySelectorAll(pa));
|
|
3364
3387
|
if (!n.length) return;
|
|
3365
3388
|
let r = n.indexOf(document.activeElement), i = null;
|
|
3366
3389
|
e.key === "ArrowDown" ? i = (r + 1) % n.length : e.key === "ArrowUp" ? i = (r - 1 + n.length) % n.length : e.key === "Home" ? i = 0 : e.key === "End" && (i = n.length - 1), i !== null && (e.preventDefault(), n[i].focus());
|
|
3367
3390
|
}, ie = (e) => {
|
|
3368
3391
|
e.desabilitado || (a?.(e.id ?? e.rotulo ?? ""), (f === "sempre" || f === "dentro") && z());
|
|
3369
3392
|
}, ae = !v && /* @__PURE__ */ H(Z, {
|
|
3370
|
-
icone:
|
|
3393
|
+
icone: da[l],
|
|
3371
3394
|
className: "lp-menu-sus-seta"
|
|
3372
3395
|
}), oe = {
|
|
3373
3396
|
ref: k,
|
|
@@ -3389,10 +3412,10 @@ function da({ rotulo: e, icone: t, dica: n, "aria-label": r, itens: i, aoEscolhe
|
|
|
3389
3412
|
let n = /* @__PURE__ */ H($, {
|
|
3390
3413
|
...oe,
|
|
3391
3414
|
className: X("lp-menu-sus-divisor", j && "is-aberto"),
|
|
3392
|
-
icone:
|
|
3415
|
+
icone: da[l],
|
|
3393
3416
|
"aria-label": r ?? (e ? `Mais opções de ${e}` : "Mais opções")
|
|
3394
3417
|
});
|
|
3395
|
-
ce = /* @__PURE__ */ U(
|
|
3418
|
+
ce = /* @__PURE__ */ U(ca, {
|
|
3396
3419
|
severidade: C,
|
|
3397
3420
|
aparencia: w,
|
|
3398
3421
|
formato: T,
|
|
@@ -3489,11 +3512,11 @@ function da({ rotulo: e, icone: t, dica: n, "aria-label": r, itens: i, aoEscolhe
|
|
|
3489
3512
|
}
|
|
3490
3513
|
//#endregion
|
|
3491
3514
|
//#region src/components/Abas/Abas.tsx
|
|
3492
|
-
function
|
|
3515
|
+
function _a(e) {
|
|
3493
3516
|
return null;
|
|
3494
3517
|
}
|
|
3495
|
-
function
|
|
3496
|
-
let g = q().replace(/:/g, ""), _ = J(null), v = St.toArray(m).filter((e) => Dt(e) && e.type ===
|
|
3518
|
+
function va({ ativa: e, aoMudar: t, rotulo: n, variante: r = "sublinhado", alinhamento: i, orientacao: a = "horizontal", iconeAcima: o = !1, painel: s = "livre", posicaoBarra: c = "topo", cabecalho: l, titulo: u, identidade: d, aoVoltar: f, acoes: p, children: m, className: h }) {
|
|
3519
|
+
let g = q().replace(/:/g, ""), _ = J(null), v = St.toArray(m).filter((e) => Dt(e) && e.type === _a), [y, b] = Y(v[0]?.props.valor), x = e ?? y, S = !!u, C = a === "vertical", w = i ?? (r === "sublinhado" ? "preencher" : "inicio"), T = (e) => {
|
|
3497
3520
|
b(e), t?.(e);
|
|
3498
3521
|
}, E = (e) => {
|
|
3499
3522
|
let t = Array.from(_.current?.querySelectorAll(".lp-abas-tab") ?? []), n = t.length, r = t.indexOf(e.currentTarget), i = -1;
|
|
@@ -3539,7 +3562,7 @@ function pa({ ativa: e, aoMudar: t, rotulo: n, variante: r = "sublinhado", alinh
|
|
|
3539
3562
|
children: D.map((e) => {
|
|
3540
3563
|
if ("grupo" in e) {
|
|
3541
3564
|
let t = e.abas.some((e) => e.props.valor === x), n = e.abas.find((e) => e.props.valor === x);
|
|
3542
|
-
return /* @__PURE__ */ H(
|
|
3565
|
+
return /* @__PURE__ */ H(ga, {
|
|
3543
3566
|
rotulo: e.grupo,
|
|
3544
3567
|
itens: e.abas.map((e) => ({
|
|
3545
3568
|
id: e.props.valor,
|
|
@@ -3636,7 +3659,7 @@ function pa({ ativa: e, aoMudar: t, rotulo: n, variante: r = "sublinhado", alinh
|
|
|
3636
3659
|
}
|
|
3637
3660
|
//#endregion
|
|
3638
3661
|
//#region src/components/Card/Card.tsx
|
|
3639
|
-
function
|
|
3662
|
+
function ya({ midia: e, posicaoMidia: t = "topo", titulo: n, subtitulo: r, ferramentas: i, recolhivel: a = !1, recolhidoInicial: o = !1, dispensavel: s = !1, aoFechar: c, telaCheia: l = !1, acoes: u, rodape: d, cor: f, borda: p, alinhamento: m, corpoSemEspaco: h = !1, detalhes: g, aoClicar: _, children: v, className: y, ...b }) {
|
|
3640
3663
|
let [x, S] = Y(o), [C, w] = Y(!1), [T, E] = Y(!1), D = q();
|
|
3641
3664
|
if (K(() => {
|
|
3642
3665
|
if (!T) return;
|
|
@@ -3745,7 +3768,7 @@ function ma({ midia: e, posicaoMidia: t = "topo", titulo: n, subtitulo: r, ferra
|
|
|
3745
3768
|
]
|
|
3746
3769
|
});
|
|
3747
3770
|
}
|
|
3748
|
-
function
|
|
3771
|
+
function ba({ children: e, className: t }) {
|
|
3749
3772
|
return /* @__PURE__ */ H("div", {
|
|
3750
3773
|
className: X("lp-grupo-cards", t),
|
|
3751
3774
|
children: e
|
|
@@ -3753,7 +3776,7 @@ function ha({ children: e, className: t }) {
|
|
|
3753
3776
|
}
|
|
3754
3777
|
//#endregion
|
|
3755
3778
|
//#region src/components/Recolhivel/Recolhivel.tsx
|
|
3756
|
-
function
|
|
3779
|
+
function xa({ aberto: e, children: t, orientacao: n = "vertical", id: r, className: i }) {
|
|
3757
3780
|
return /* @__PURE__ */ H("div", {
|
|
3758
3781
|
id: r,
|
|
3759
3782
|
className: X("lp-recolhivel", n === "horizontal" && "lp-recolhivel--horizontal", e && "is-aberto", i),
|
|
@@ -3766,9 +3789,9 @@ function ga({ aberto: e, children: t, orientacao: n = "vertical", id: r, classNa
|
|
|
3766
3789
|
}
|
|
3767
3790
|
//#endregion
|
|
3768
3791
|
//#region src/components/Carrossel/Carrossel.tsx
|
|
3769
|
-
var
|
|
3770
|
-
function
|
|
3771
|
-
let d = e.length, [f, p] = Y(0), [m, h] = Y(() =>
|
|
3792
|
+
var Sa = () => typeof window < "u" && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
3793
|
+
function Ca({ slides: e, rotulo: t, automatico: n = !0, intervalo: r = 5e3, controles: i = !1, indicadores: a = !1, transicao: o = "deslizar", escuro: s = !1, arrastar: c = !0, proporcao: l = "16 / 10", className: u }) {
|
|
3794
|
+
let d = e.length, [f, p] = Y(0), [m, h] = Y(() => Sa()), [g, _] = Y(!1), v = J(null), y = W((e) => p((e % d + d) % d), [d]), b = W(() => p((e) => (e + 1) % d), [d]), x = () => p((e) => (e - 1 + d) % d), S = n && !m && !g && d > 1;
|
|
3772
3795
|
return K(() => {
|
|
3773
3796
|
if (!S) return;
|
|
3774
3797
|
let t = window.setTimeout(b, e[f]?.intervalo ?? r);
|
|
@@ -3863,7 +3886,7 @@ function va({ slides: e, rotulo: t, automatico: n = !0, intervalo: r = 5e3, cont
|
|
|
3863
3886
|
}
|
|
3864
3887
|
//#endregion
|
|
3865
3888
|
//#region src/components/QuadroArrastavel/QuadroArrastavel.tsx
|
|
3866
|
-
function
|
|
3889
|
+
function wa(e, t) {
|
|
3867
3890
|
for (let n = 0; n < e.length; n++) {
|
|
3868
3891
|
let r = e[n].itens.findIndex((e) => e.id === t);
|
|
3869
3892
|
if (r >= 0) return {
|
|
@@ -3873,14 +3896,14 @@ function ya(e, t) {
|
|
|
3873
3896
|
}
|
|
3874
3897
|
return null;
|
|
3875
3898
|
}
|
|
3876
|
-
function
|
|
3899
|
+
function Ta(e, t, n) {
|
|
3877
3900
|
let r = e.map((e) => ({
|
|
3878
3901
|
...e,
|
|
3879
3902
|
itens: [...e.itens]
|
|
3880
3903
|
})), [i] = r[t.coluna].itens.splice(t.indice, 1);
|
|
3881
3904
|
return r[n.coluna].itens.splice(Math.min(n.indice, r[n.coluna].itens.length), 0, i), r;
|
|
3882
3905
|
}
|
|
3883
|
-
function
|
|
3906
|
+
function Ea({ colunas: e, aoMudar: t, renderItem: n, nomeItem: r, className: i }) {
|
|
3884
3907
|
let [a, o] = Y(null), [s, c] = Y(null), [l, u] = Y(""), d = J([]), f = (t) => e[t]?.titulo ?? `coluna ${t + 1}`, p = (t) => e.flatMap((e) => e.itens).find((e) => e.id === t), m = (e, t) => {
|
|
3885
3908
|
if (e.button !== 0) return;
|
|
3886
3909
|
let n = e.currentTarget.closest("[data-quadro-item]");
|
|
@@ -3910,13 +3933,13 @@ function xa({ colunas: e, aoMudar: t, renderItem: n, nomeItem: r, className: i }
|
|
|
3910
3933
|
let n = e.getBoundingClientRect(), a = (e, t, n) => e < t ? t - e : e > n ? e - n : 0, o = a(r, n.left, n.right) + a(i, n.top, n.bottom);
|
|
3911
3934
|
o < c && (c = o, s = t);
|
|
3912
3935
|
});
|
|
3913
|
-
let l = d.current[s], u =
|
|
3936
|
+
let l = d.current[s], u = wa(e, a.id);
|
|
3914
3937
|
if (!l || !u) return;
|
|
3915
3938
|
let f = Array.from(l.querySelectorAll("[data-quadro-item]")).filter((e) => e.dataset.quadroItem !== a.id).filter((e) => {
|
|
3916
3939
|
let t = e.getBoundingClientRect();
|
|
3917
3940
|
return t.top + t.height / 2 < i;
|
|
3918
3941
|
}).length;
|
|
3919
|
-
(u.coluna !== s || u.indice !== f) && t(
|
|
3942
|
+
(u.coluna !== s || u.indice !== f) && t(Ta(e, u, {
|
|
3920
3943
|
coluna: s,
|
|
3921
3944
|
indice: f
|
|
3922
3945
|
}));
|
|
@@ -3937,7 +3960,7 @@ function xa({ colunas: e, aoMudar: t, renderItem: n, nomeItem: r, className: i }
|
|
|
3937
3960
|
let a = r(p(i));
|
|
3938
3961
|
if (n.key === " " || n.key === "Enter") {
|
|
3939
3962
|
if (n.preventDefault(), s) {
|
|
3940
|
-
let t =
|
|
3963
|
+
let t = wa(e, i);
|
|
3941
3964
|
c(null), u(`${a} solto em ${f(t.coluna)}, posição ${t.indice + 1}.`);
|
|
3942
3965
|
} else c({
|
|
3943
3966
|
id: i,
|
|
@@ -3950,7 +3973,7 @@ function xa({ colunas: e, aoMudar: t, renderItem: n, nomeItem: r, className: i }
|
|
|
3950
3973
|
n.preventDefault(), t(s.origem), c(null), u(`Movimento cancelado. ${a} voltou ao lugar.`);
|
|
3951
3974
|
return;
|
|
3952
3975
|
}
|
|
3953
|
-
let o =
|
|
3976
|
+
let o = wa(e, i);
|
|
3954
3977
|
if (!o) return;
|
|
3955
3978
|
let l = null;
|
|
3956
3979
|
if (n.key === "ArrowUp" && o.indice > 0 ? l = {
|
|
@@ -3966,9 +3989,9 @@ function xa({ colunas: e, aoMudar: t, renderItem: n, nomeItem: r, className: i }
|
|
|
3966
3989
|
coluna: o.coluna + 1,
|
|
3967
3990
|
indice: o.indice
|
|
3968
3991
|
}), !n.key.startsWith("Arrow") || (n.preventDefault(), !l)) return;
|
|
3969
|
-
let d =
|
|
3992
|
+
let d = Ta(e, o, l);
|
|
3970
3993
|
t(d);
|
|
3971
|
-
let m =
|
|
3994
|
+
let m = wa(d, i);
|
|
3972
3995
|
u(`${a} em ${f(m.coluna)}, posição ${m.indice + 1} de ${d[m.coluna].itens.length}.`);
|
|
3973
3996
|
}, v = (e) => /* @__PURE__ */ H("button", {
|
|
3974
3997
|
type: "button",
|
|
@@ -4024,10 +4047,10 @@ function xa({ colunas: e, aoMudar: t, renderItem: n, nomeItem: r, className: i }
|
|
|
4024
4047
|
}
|
|
4025
4048
|
//#endregion
|
|
4026
4049
|
//#region src/components/Acordeao/Acordeao.tsx
|
|
4027
|
-
var
|
|
4028
|
-
function
|
|
4050
|
+
var Da = Tt(null);
|
|
4051
|
+
function Oa({ children: e, multiplo: t = !1, abertos: n, padraoAbertos: r = [], aoMudar: i, variante: a = "padrao", cor: o, separado: s = !1, icone: c = "seta", posicaoIcone: l = "fim", className: u }) {
|
|
4029
4052
|
let [d, f] = Y(r), p = n ?? d;
|
|
4030
|
-
return /* @__PURE__ */ H(
|
|
4053
|
+
return /* @__PURE__ */ H(Da.Provider, {
|
|
4031
4054
|
value: {
|
|
4032
4055
|
abertos: p,
|
|
4033
4056
|
alternar: (e) => {
|
|
@@ -4042,8 +4065,8 @@ function Ca({ children: e, multiplo: t = !1, abertos: n, padraoAbertos: r = [],
|
|
|
4042
4065
|
})
|
|
4043
4066
|
});
|
|
4044
4067
|
}
|
|
4045
|
-
function
|
|
4046
|
-
let o = G(
|
|
4068
|
+
function ka({ valor: e, titulo: t, icone: n, cor: r, desabilitado: i = !1, children: a }) {
|
|
4069
|
+
let o = G(Da), s = q();
|
|
4047
4070
|
if (!o) throw Error("ItemAcordeao precisa estar dentro de <Acordeao>.");
|
|
4048
4071
|
let c = o.abertos.includes(e);
|
|
4049
4072
|
return /* @__PURE__ */ U("div", {
|
|
@@ -4074,7 +4097,7 @@ function wa({ valor: e, titulo: t, icone: n, cor: r, desabilitado: i = !1, child
|
|
|
4074
4097
|
})
|
|
4075
4098
|
]
|
|
4076
4099
|
})
|
|
4077
|
-
}), /* @__PURE__ */ H(
|
|
4100
|
+
}), /* @__PURE__ */ H(xa, {
|
|
4078
4101
|
aberto: c,
|
|
4079
4102
|
children: /* @__PURE__ */ H("div", {
|
|
4080
4103
|
id: `${s}-painel`,
|
|
@@ -4088,7 +4111,7 @@ function wa({ valor: e, titulo: t, icone: n, cor: r, desabilitado: i = !1, child
|
|
|
4088
4111
|
}
|
|
4089
4112
|
//#endregion
|
|
4090
4113
|
//#region src/components/AcaoLinha/AcaoLinha.tsx
|
|
4091
|
-
function
|
|
4114
|
+
function Aa({ icone: e, rotulo: t, severidade: n = "neutra", carregando: r = !1, disabled: i, className: a, type: o = "button", ...s }) {
|
|
4092
4115
|
return /* @__PURE__ */ H(Dr, {
|
|
4093
4116
|
texto: t,
|
|
4094
4117
|
children: /* @__PURE__ */ H("button", {
|
|
@@ -4107,35 +4130,35 @@ function Ta({ icone: e, rotulo: t, severidade: n = "neutra", carregando: r = !1,
|
|
|
4107
4130
|
}
|
|
4108
4131
|
//#endregion
|
|
4109
4132
|
//#region src/components/Balao/Balao.tsx
|
|
4110
|
-
var
|
|
4133
|
+
var ja = {
|
|
4111
4134
|
cima: "baixo",
|
|
4112
4135
|
baixo: "cima",
|
|
4113
4136
|
direita: "esquerda",
|
|
4114
4137
|
esquerda: "direita"
|
|
4115
|
-
},
|
|
4116
|
-
function
|
|
4117
|
-
return r === "cima" ? e.top -
|
|
4138
|
+
}, Ma = 10, Na = 8;
|
|
4139
|
+
function Pa(e, t, n, r) {
|
|
4140
|
+
return r === "cima" ? e.top - Ma - n >= Na : r === "baixo" ? e.bottom + Ma + n <= window.innerHeight - Na : r === "esquerda" ? e.left - Ma - t >= Na : e.right + Ma + t <= window.innerWidth - Na;
|
|
4118
4141
|
}
|
|
4119
|
-
function
|
|
4120
|
-
let i =
|
|
4121
|
-
return i === "cima" || i === "baixo" ? (l = i === "cima" ? e.top -
|
|
4142
|
+
function Fa(e, t, n, r) {
|
|
4143
|
+
let i = Pa(e, t, n, r) || !Pa(e, t, n, ja[r]) ? r : ja[r], a = window.innerWidth, o = window.innerHeight, s = e.left + e.width / 2, c = e.top + e.height / 2, l, u;
|
|
4144
|
+
return i === "cima" || i === "baixo" ? (l = i === "cima" ? e.top - Ma - n : e.bottom + Ma, u = Math.max(Na, Math.min(s - t / 2, a - t - Na)), {
|
|
4122
4145
|
top: l,
|
|
4123
4146
|
left: u,
|
|
4124
4147
|
lado: i,
|
|
4125
4148
|
seta: s - u
|
|
4126
|
-
}) : (u = i === "esquerda" ? e.left -
|
|
4149
|
+
}) : (u = i === "esquerda" ? e.left - Ma - t : e.right + Ma, l = Math.max(Na, Math.min(c - n / 2, o - n - Na)), {
|
|
4127
4150
|
top: l,
|
|
4128
4151
|
left: u,
|
|
4129
4152
|
lado: i,
|
|
4130
4153
|
seta: c - l
|
|
4131
4154
|
});
|
|
4132
4155
|
}
|
|
4133
|
-
function
|
|
4156
|
+
function Ia({ children: e, titulo: t, conteudo: n, posicao: r = "cima", cor: i = "pri", aparencia: a = "padrao", gatilho: o = "clique", largura: s, className: c }) {
|
|
4134
4157
|
let l = q(), u = J(null), d = J(null), f = J(void 0), [p, m] = Y(!1), [h, g] = Y(null), _ = W(() => {
|
|
4135
4158
|
let e = u.current, t = d.current;
|
|
4136
4159
|
if (!e || !t) return;
|
|
4137
4160
|
let n = e.firstElementChild ?? e;
|
|
4138
|
-
g(
|
|
4161
|
+
g(Fa(n.getBoundingClientRect(), t.offsetWidth, t.offsetHeight, r));
|
|
4139
4162
|
}, [r]);
|
|
4140
4163
|
kt(() => {
|
|
4141
4164
|
if (!p) g(null);
|
|
@@ -4153,7 +4176,7 @@ function ja({ children: e, titulo: t, conteudo: n, posicao: r = "cima", cor: i =
|
|
|
4153
4176
|
return () => {
|
|
4154
4177
|
window.clearTimeout(t), document.removeEventListener("keydown", e), document.removeEventListener("pointerdown", n);
|
|
4155
4178
|
};
|
|
4156
|
-
}, [p, o]),
|
|
4179
|
+
}, [p, o]), ii([u, d], p && o === "clique", () => m(!1)), K(() => () => window.clearTimeout(f.current), []);
|
|
4157
4180
|
let v = o === "passar", y = () => {
|
|
4158
4181
|
window.clearTimeout(f.current), m(!0);
|
|
4159
4182
|
}, b = () => {
|
|
@@ -4206,8 +4229,8 @@ function ja({ children: e, titulo: t, conteudo: n, posicao: r = "cima", cor: i =
|
|
|
4206
4229
|
}
|
|
4207
4230
|
//#endregion
|
|
4208
4231
|
//#region src/components/Form/Form.tsx
|
|
4209
|
-
var
|
|
4210
|
-
function
|
|
4232
|
+
var La = Tt({ arranjo: "pagina" });
|
|
4233
|
+
function Ra({ arranjo: e = "pagina", titulo: t, entidade: n, modo: r = "novo", trilha: i, identidade: a, icone: o, aberto: s = !0, tamanho: c = "grande", aoSalvar: l, aoCancelar: u, salvando: d = !1, pendencias: f, menu: p, menuTitulo: m = "Formulários", menuAtivo: h, aoEscolherMenu: g, acoes: _, acoesPadrao: v = !0, posicaoAcoes: y = "secao", rotuloSalvar: b = "Salvar", children: x, className: S }) {
|
|
4211
4234
|
let C = `lp-form-${q().replace(/:/g, "")}`, w = t ?? (n ? Un(n, r) : ""), T = r === "leitura", [E, D] = Y(0);
|
|
4212
4235
|
K(() => {
|
|
4213
4236
|
s && D(0);
|
|
@@ -4242,7 +4265,7 @@ function Na({ arranjo: e = "pagina", titulo: t, entidade: n, modo: r = "novo", t
|
|
|
4242
4265
|
className: "lp-form-secoes",
|
|
4243
4266
|
onSubmit: O,
|
|
4244
4267
|
noValidate: !0,
|
|
4245
|
-
children: /* @__PURE__ */ H(
|
|
4268
|
+
children: /* @__PURE__ */ H(ki.Provider, {
|
|
4246
4269
|
value: E,
|
|
4247
4270
|
children: T ? /* @__PURE__ */ H("fieldset", {
|
|
4248
4271
|
className: "lp-form-leitura",
|
|
@@ -4251,9 +4274,9 @@ function Na({ arranjo: e = "pagina", titulo: t, entidade: n, modo: r = "novo", t
|
|
|
4251
4274
|
}) : x
|
|
4252
4275
|
})
|
|
4253
4276
|
}), j = { arranjo: e };
|
|
4254
|
-
if (e === "modal") return /* @__PURE__ */ H(
|
|
4277
|
+
if (e === "modal") return /* @__PURE__ */ H(La.Provider, {
|
|
4255
4278
|
value: j,
|
|
4256
|
-
children: /* @__PURE__ */ H(
|
|
4279
|
+
children: /* @__PURE__ */ H(ra, {
|
|
4257
4280
|
aberto: s,
|
|
4258
4281
|
aoFechar: () => u?.(),
|
|
4259
4282
|
titulo: w,
|
|
@@ -4268,7 +4291,7 @@ function Na({ arranjo: e = "pagina", titulo: t, entidade: n, modo: r = "novo", t
|
|
|
4268
4291
|
});
|
|
4269
4292
|
if (!s) return null;
|
|
4270
4293
|
let M = !!p?.length, N = v || !!_;
|
|
4271
|
-
return /* @__PURE__ */ H(
|
|
4294
|
+
return /* @__PURE__ */ H(La.Provider, {
|
|
4272
4295
|
value: j,
|
|
4273
4296
|
children: /* @__PURE__ */ U("div", {
|
|
4274
4297
|
className: X("lp-form-pagina", S),
|
|
@@ -4299,7 +4322,7 @@ function Na({ arranjo: e = "pagina", titulo: t, entidade: n, modo: r = "novo", t
|
|
|
4299
4322
|
className: "lp-form-ident",
|
|
4300
4323
|
children: a
|
|
4301
4324
|
})]
|
|
4302
|
-
}), i && /* @__PURE__ */ H(
|
|
4325
|
+
}), i && /* @__PURE__ */ H(mi, {
|
|
4303
4326
|
extras: Array.isArray(i) ? i : void 0,
|
|
4304
4327
|
className: "lp-form-trilha"
|
|
4305
4328
|
})]
|
|
@@ -4366,8 +4389,8 @@ function Na({ arranjo: e = "pagina", titulo: t, entidade: n, modo: r = "novo", t
|
|
|
4366
4389
|
})
|
|
4367
4390
|
});
|
|
4368
4391
|
}
|
|
4369
|
-
function
|
|
4370
|
-
let { arranjo: o } = G(
|
|
4392
|
+
function za({ legenda: e, icone: t, acoes: n, colunas: r, children: i, className: a }) {
|
|
4393
|
+
let { arranjo: o } = G(La), s = `lp-sec-${q().replace(/:/g, "")}`, c = r ? { "--lp-colunas": r } : void 0, l = /* @__PURE__ */ H("div", {
|
|
4371
4394
|
className: X("lp-fsec-grade", !!r && "tem-colunas"),
|
|
4372
4395
|
style: c,
|
|
4373
4396
|
children: i
|
|
@@ -4409,9 +4432,9 @@ function Pa({ legenda: e, icone: t, acoes: n, colunas: r, children: i, className
|
|
|
4409
4432
|
}
|
|
4410
4433
|
//#endregion
|
|
4411
4434
|
//#region src/components/CampoTextarea/CampoTextarea.tsx
|
|
4412
|
-
var
|
|
4413
|
-
let { id: h, msgId: g } =
|
|
4414
|
-
return /* @__PURE__ */ H(
|
|
4435
|
+
var Ba = Et(function({ rotulo: e, dica: t, erro: n, aviso: r, obrigatorio: i, className: a, id: o, valor: s, aoMudar: c, onChange: l, maxLength: u, contador: d = !0, rows: f = 3, ...p }, m) {
|
|
4436
|
+
let { id: h, msgId: g } = Mi(o), _ = d && !!u, v = s?.length ?? 0, y = u ? v / u : 0;
|
|
4437
|
+
return /* @__PURE__ */ H(Pi, {
|
|
4415
4438
|
rotulo: e,
|
|
4416
4439
|
dica: t,
|
|
4417
4440
|
erro: n,
|
|
@@ -4435,7 +4458,7 @@ var Fa = Et(function({ rotulo: e, dica: t, erro: n, aviso: r, obrigatorio: i, cl
|
|
|
4435
4458
|
required: i,
|
|
4436
4459
|
"aria-required": i || void 0,
|
|
4437
4460
|
"aria-invalid": n ? !0 : void 0,
|
|
4438
|
-
"aria-describedby":
|
|
4461
|
+
"aria-describedby": Ni({
|
|
4439
4462
|
erro: n,
|
|
4440
4463
|
aviso: r,
|
|
4441
4464
|
dica: t
|
|
@@ -4455,7 +4478,7 @@ var Fa = Et(function({ rotulo: e, dica: t, erro: n, aviso: r, obrigatorio: i, cl
|
|
|
4455
4478
|
});
|
|
4456
4479
|
//#endregion
|
|
4457
4480
|
//#region src/utils/usePosicaoFlutuante.ts
|
|
4458
|
-
function
|
|
4481
|
+
function Va(e, t, n = 260, r = 4) {
|
|
4459
4482
|
let [i, a] = Y(null), o = W(() => {
|
|
4460
4483
|
let t = e.current;
|
|
4461
4484
|
if (!t) return;
|
|
@@ -4480,15 +4503,15 @@ function Ia(e, t, n = 260, r = 4) {
|
|
|
4480
4503
|
}
|
|
4481
4504
|
//#endregion
|
|
4482
4505
|
//#region src/components/CampoSelect/CampoSelect.tsx
|
|
4483
|
-
function
|
|
4484
|
-
let { id: _, msgId: v } =
|
|
4506
|
+
function Ha({ rotulo: e, dica: t, erro: n, aviso: r, obrigatorio: i, variante: a = "campo", className: o, id: s, opcoes: c, placeholder: l = "Selecione", comBusca: u = !1, botaoLimpar: d = !1, disabled: f = !1, multiplo: p, selecionados: m, alternar: h, limpar: g }) {
|
|
4507
|
+
let { id: _, msgId: v } = Mi(s), y = `${_}-lista`, b = a === "inline", x = J(null), S = J(null), C = J(null), [w, T] = Y(!1), [E, D] = Y(-1), [O, k] = Y(""), A = Va(x, w), j = (e) => m.some((t) => Object.is(t, e.valor)), M = u && O.trim() ? c.filter((e) => kn(e.rotulo).includes(kn(O.trim()))) : c, N = c.filter(j).map((e) => e.rotulo).join(", "), P = W(() => {
|
|
4485
4508
|
T(!1), k(""), D(-1);
|
|
4486
4509
|
}, []), F = () => {
|
|
4487
4510
|
if (f) return;
|
|
4488
4511
|
let e = c.findIndex(j);
|
|
4489
4512
|
D(e >= 0 ? e : 0), T(!0);
|
|
4490
4513
|
};
|
|
4491
|
-
|
|
4514
|
+
ii([x, S], w, P), K(() => {
|
|
4492
4515
|
w && E >= 0 && document.getElementById(`${_}-op-${E}`)?.scrollIntoView({ block: "nearest" });
|
|
4493
4516
|
}, [
|
|
4494
4517
|
w,
|
|
@@ -4511,7 +4534,7 @@ function La({ rotulo: e, dica: t, erro: n, aviso: r, obrigatorio: i, variante: a
|
|
|
4511
4534
|
"aria-activedescendant": w && E >= 0 ? `${_}-op-${E}` : void 0,
|
|
4512
4535
|
"aria-required": i || void 0,
|
|
4513
4536
|
"aria-invalid": n ? !0 : void 0,
|
|
4514
|
-
"aria-describedby":
|
|
4537
|
+
"aria-describedby": Ni({
|
|
4515
4538
|
erro: n,
|
|
4516
4539
|
aviso: r,
|
|
4517
4540
|
dica: t
|
|
@@ -4545,7 +4568,7 @@ function La({ rotulo: e, dica: t, erro: n, aviso: r, obrigatorio: i, variante: a
|
|
|
4545
4568
|
}
|
|
4546
4569
|
}
|
|
4547
4570
|
};
|
|
4548
|
-
return /* @__PURE__ */ U(
|
|
4571
|
+
return /* @__PURE__ */ U(Pi, {
|
|
4549
4572
|
rotulo: e,
|
|
4550
4573
|
dica: t,
|
|
4551
4574
|
erro: n,
|
|
@@ -4642,9 +4665,9 @@ function La({ rotulo: e, dica: t, erro: n, aviso: r, obrigatorio: i, variante: a
|
|
|
4642
4665
|
}))]
|
|
4643
4666
|
});
|
|
4644
4667
|
}
|
|
4645
|
-
function
|
|
4668
|
+
function Ua({ valor: e, aoMudar: t, ...n }) {
|
|
4646
4669
|
let r = e != null;
|
|
4647
|
-
return /* @__PURE__ */ H(
|
|
4670
|
+
return /* @__PURE__ */ H(Ha, {
|
|
4648
4671
|
...n,
|
|
4649
4672
|
multiplo: !1,
|
|
4650
4673
|
selecionados: r ? [e] : [],
|
|
@@ -4652,8 +4675,8 @@ function Ra({ valor: e, aoMudar: t, ...n }) {
|
|
|
4652
4675
|
limpar: () => t?.(null)
|
|
4653
4676
|
});
|
|
4654
4677
|
}
|
|
4655
|
-
function
|
|
4656
|
-
return /* @__PURE__ */ H(
|
|
4678
|
+
function Wa({ valor: e = [], aoMudar: t, ...n }) {
|
|
4679
|
+
return /* @__PURE__ */ H(Ha, {
|
|
4657
4680
|
...n,
|
|
4658
4681
|
multiplo: !0,
|
|
4659
4682
|
selecionados: e,
|
|
@@ -4663,28 +4686,28 @@ function za({ valor: e = [], aoMudar: t, ...n }) {
|
|
|
4663
4686
|
}
|
|
4664
4687
|
//#endregion
|
|
4665
4688
|
//#region src/components/CampoDominio/CampoDominio.tsx
|
|
4666
|
-
var
|
|
4689
|
+
var Ga = (e) => un.map((t) => ({
|
|
4667
4690
|
valor: t.uf,
|
|
4668
4691
|
rotulo: e === "sigla" ? t.uf : `${t.uf} — ${t.descricao}`
|
|
4669
4692
|
}));
|
|
4670
|
-
function
|
|
4671
|
-
return /* @__PURE__ */ H(
|
|
4672
|
-
opcoes:
|
|
4693
|
+
function Ka({ exibicao: e = "completo", comBusca: t = !0, placeholder: n = "UF", ...r }) {
|
|
4694
|
+
return /* @__PURE__ */ H(Ua, {
|
|
4695
|
+
opcoes: Ga(e),
|
|
4673
4696
|
comBusca: t,
|
|
4674
4697
|
placeholder: n,
|
|
4675
4698
|
...r
|
|
4676
4699
|
});
|
|
4677
4700
|
}
|
|
4678
|
-
function
|
|
4679
|
-
return /* @__PURE__ */ H(
|
|
4680
|
-
opcoes:
|
|
4701
|
+
function qa({ exibicao: e = "completo", comBusca: t = !0, placeholder: n = "UFs", ...r }) {
|
|
4702
|
+
return /* @__PURE__ */ H(Wa, {
|
|
4703
|
+
opcoes: Ga(e),
|
|
4681
4704
|
comBusca: t,
|
|
4682
4705
|
placeholder: n,
|
|
4683
4706
|
...r
|
|
4684
4707
|
});
|
|
4685
4708
|
}
|
|
4686
|
-
function
|
|
4687
|
-
return /* @__PURE__ */ H(
|
|
4709
|
+
function Ja({ placeholder: e = "Selecione", ...t }) {
|
|
4710
|
+
return /* @__PURE__ */ H(Ua, {
|
|
4688
4711
|
opcoes: [...pn],
|
|
4689
4712
|
placeholder: e,
|
|
4690
4713
|
...t
|
|
@@ -4692,8 +4715,8 @@ function Ua({ placeholder: e = "Selecione", ...t }) {
|
|
|
4692
4715
|
}
|
|
4693
4716
|
//#endregion
|
|
4694
4717
|
//#region src/components/Escolha/Escolha.tsx
|
|
4695
|
-
function
|
|
4696
|
-
let { id: f, msgId: p } =
|
|
4718
|
+
function Ya({ rotulo: e, dica: t, erro: n, obrigatorio: r, className: i, opcoes: a, valor: o, aoMudar: s, aparencia: c = "segmentado", disabled: l = !1, ariaLabel: u, id: d }) {
|
|
4719
|
+
let { id: f, msgId: p } = Mi(d), m = J(null), h = a.findIndex((e) => Object.is(e.valor, o)), g = h >= 0 ? h : 0, _ = (e, t) => {
|
|
4697
4720
|
let n = e.key === "ArrowRight" || e.key === "ArrowDown" ? 1 : e.key === "ArrowLeft" || e.key === "ArrowUp" ? -1 : 0;
|
|
4698
4721
|
if (!n) return;
|
|
4699
4722
|
e.preventDefault();
|
|
@@ -4701,7 +4724,7 @@ function Wa({ rotulo: e, dica: t, erro: n, obrigatorio: r, className: i, opcoes:
|
|
|
4701
4724
|
for (let e = 0; e < a.length && (r = (r + n + a.length) % a.length, a[r].desabilitada); e++);
|
|
4702
4725
|
s?.(a[r].valor), m.current?.querySelectorAll("[role=\"radio\"]")[r]?.focus();
|
|
4703
4726
|
};
|
|
4704
|
-
return /* @__PURE__ */ H(
|
|
4727
|
+
return /* @__PURE__ */ H(Pi, {
|
|
4705
4728
|
rotulo: e,
|
|
4706
4729
|
dica: t,
|
|
4707
4730
|
erro: n,
|
|
@@ -4716,7 +4739,7 @@ function Wa({ rotulo: e, dica: t, erro: n, obrigatorio: r, className: i, opcoes:
|
|
|
4716
4739
|
"aria-label": e ?? u,
|
|
4717
4740
|
"aria-required": r || void 0,
|
|
4718
4741
|
"aria-invalid": n ? !0 : void 0,
|
|
4719
|
-
"aria-describedby":
|
|
4742
|
+
"aria-describedby": Ni({
|
|
4720
4743
|
erro: n,
|
|
4721
4744
|
dica: t
|
|
4722
4745
|
}, p),
|
|
@@ -4742,8 +4765,8 @@ function Wa({ rotulo: e, dica: t, erro: n, obrigatorio: r, className: i, opcoes:
|
|
|
4742
4765
|
}
|
|
4743
4766
|
//#endregion
|
|
4744
4767
|
//#region src/components/Avaliacao/Avaliacao.tsx
|
|
4745
|
-
var
|
|
4746
|
-
function
|
|
4768
|
+
var Xa = (e) => e.toLocaleString("pt-BR", { maximumFractionDigits: 1 });
|
|
4769
|
+
function Za({ valor: e, aoMudar: t, max: n = 5, passo: r = 1, somenteLeitura: i = !1, rotulo: a, icone: o = "star", tamanho: s = "medio", mensagens: c, aoPassar: l, limpavel: u = !1, textoOcupado: d = "Salvando...", className: f }) {
|
|
4747
4770
|
let p = q(), [m, h] = Y(null), [g, _] = Y(!1), v = m ?? e, y = i || g, b = async (e) => {
|
|
4748
4771
|
if (y) return;
|
|
4749
4772
|
let n = t?.(e);
|
|
@@ -4781,7 +4804,7 @@ function Ka({ valor: e, aoMudar: t, max: n = 5, passo: r = 1, somenteLeitura: i
|
|
|
4781
4804
|
if (i) return /* @__PURE__ */ H("span", {
|
|
4782
4805
|
className: T,
|
|
4783
4806
|
role: "img",
|
|
4784
|
-
"aria-label": `${a}: ${
|
|
4807
|
+
"aria-label": `${a}: ${Xa(e)} de ${n}`,
|
|
4785
4808
|
children: /* @__PURE__ */ H("span", {
|
|
4786
4809
|
className: "lp-aval-estrelas",
|
|
4787
4810
|
children: C
|
|
@@ -4810,7 +4833,7 @@ function Ka({ valor: e, aoMudar: t, max: n = 5, passo: r = 1, somenteLeitura: i
|
|
|
4810
4833
|
onChange: () => b(t),
|
|
4811
4834
|
onFocus: () => h(null)
|
|
4812
4835
|
}),
|
|
4813
|
-
|
|
4836
|
+
Xa(t),
|
|
4814
4837
|
" de ",
|
|
4815
4838
|
n
|
|
4816
4839
|
] }, t))
|
|
@@ -4835,7 +4858,7 @@ function Ka({ valor: e, aoMudar: t, max: n = 5, passo: r = 1, somenteLeitura: i
|
|
|
4835
4858
|
}
|
|
4836
4859
|
//#endregion
|
|
4837
4860
|
//#region src/components/Chip/Chip.tsx
|
|
4838
|
-
function
|
|
4861
|
+
function Qa({ rotulo: e, campo: t, aoRemover: n, focavel: r = !0, className: i }) {
|
|
4839
4862
|
return /* @__PURE__ */ U("span", {
|
|
4840
4863
|
className: X("lp-chip", i),
|
|
4841
4864
|
children: [
|
|
@@ -4860,7 +4883,7 @@ function qa({ rotulo: e, campo: t, aoRemover: n, focavel: r = !0, className: i }
|
|
|
4860
4883
|
}
|
|
4861
4884
|
//#endregion
|
|
4862
4885
|
//#region src/components/Filtros/Filtros.tsx
|
|
4863
|
-
function
|
|
4886
|
+
function $a({ children: e, aoConsultar: t, aoLimpar: n, aplicados: r = [], alterado: i, consultando: a, aparencia: o = "barra", className: s }) {
|
|
4864
4887
|
return /* @__PURE__ */ U("div", {
|
|
4865
4888
|
className: X("lp-filtros", s),
|
|
4866
4889
|
children: [
|
|
@@ -4906,7 +4929,7 @@ function Ja({ children: e, aoConsultar: t, aoLimpar: n, aplicados: r = [], alter
|
|
|
4906
4929
|
}),
|
|
4907
4930
|
i && /* @__PURE__ */ H("div", {
|
|
4908
4931
|
className: "lp-fb-avisos",
|
|
4909
|
-
children: /* @__PURE__ */ H(
|
|
4932
|
+
children: /* @__PURE__ */ H(Oi, {
|
|
4910
4933
|
severidade: "warn",
|
|
4911
4934
|
mensagem: "Filtros alterados — clique em Consultar para atualizar a lista."
|
|
4912
4935
|
})
|
|
@@ -4917,7 +4940,7 @@ function Ja({ children: e, aoConsultar: t, aoLimpar: n, aplicados: r = [], alter
|
|
|
4917
4940
|
"aria-label": "Filtros aplicados",
|
|
4918
4941
|
children: r.map((e) => /* @__PURE__ */ H("span", {
|
|
4919
4942
|
role: "listitem",
|
|
4920
|
-
children: /* @__PURE__ */ H(
|
|
4943
|
+
children: /* @__PURE__ */ H(Qa, {
|
|
4921
4944
|
campo: e.campo,
|
|
4922
4945
|
rotulo: e.rotulo,
|
|
4923
4946
|
aoRemover: e.aoRemover
|
|
@@ -4929,8 +4952,8 @@ function Ja({ children: e, aoConsultar: t, aoLimpar: n, aplicados: r = [], alter
|
|
|
4929
4952
|
}
|
|
4930
4953
|
//#endregion
|
|
4931
4954
|
//#region src/components/Picklist/Picklist.tsx
|
|
4932
|
-
function
|
|
4933
|
-
let { id: v, msgId: y } =
|
|
4955
|
+
function eo({ rotulo: e, dica: t, erro: n, aviso: r, obrigatorio: i, className: a, id: o, valor: s, aoMudar: c, rotuloFonte: l = "Disponíveis", rotuloAlvo: u = "Selecionados", paraRotulo: d = (e) => typeof e == "string" ? e : String(e), renderItem: f, filtro: p = !1, dragdrop: m = !0, reordenar: h = !0, alturaLista: g = "15rem", disabled: _ = !1 }) {
|
|
4956
|
+
let { id: v, msgId: y } = Mi(o), b = dr(s), [x, S] = Y({
|
|
4934
4957
|
fonte: /* @__PURE__ */ new Set(),
|
|
4935
4958
|
alvo: /* @__PURE__ */ new Set()
|
|
4936
4959
|
}), [C, w] = Y({
|
|
@@ -4939,7 +4962,7 @@ function Ya({ rotulo: e, dica: t, erro: n, aviso: r, obrigatorio: i, className:
|
|
|
4939
4962
|
}), [T, E] = Y({
|
|
4940
4963
|
fonte: 0,
|
|
4941
4964
|
alvo: 0
|
|
4942
|
-
}), [D, O] = Y(""), [k, A] = Y(!1), j = G(
|
|
4965
|
+
}), [D, O] = Y(""), [k, A] = Y(!1), j = G(ki), M = J(null), N = {
|
|
4943
4966
|
fonte: vr(b.fonte, C.fonte, d),
|
|
4944
4967
|
alvo: vr(b.alvo, C.alvo, d)
|
|
4945
4968
|
}, P = (e, t) => {
|
|
@@ -5095,7 +5118,7 @@ function Ya({ rotulo: e, dica: t, erro: n, aviso: r, obrigatorio: i, className:
|
|
|
5095
5118
|
]
|
|
5096
5119
|
});
|
|
5097
5120
|
}, te = N.fonte.filter((e) => x.fonte.has(e)), ne = N.alvo.filter((e) => x.alvo.has(e));
|
|
5098
|
-
return /* @__PURE__ */ H(
|
|
5121
|
+
return /* @__PURE__ */ H(Pi, {
|
|
5099
5122
|
rotulo: e,
|
|
5100
5123
|
dica: t,
|
|
5101
5124
|
erro: B,
|
|
@@ -5161,8 +5184,8 @@ function Ya({ rotulo: e, dica: t, erro: n, aviso: r, obrigatorio: i, className:
|
|
|
5161
5184
|
}
|
|
5162
5185
|
//#endregion
|
|
5163
5186
|
//#region src/utils/useBuscaAssincrona.ts
|
|
5164
|
-
var
|
|
5165
|
-
function
|
|
5187
|
+
var to = 300;
|
|
5188
|
+
function no({ buscar: e, ativo: t = !0, minimo: n = 0, atraso: r = 300 }) {
|
|
5166
5189
|
let [i, a] = Y(""), [o, s] = Y([]), [c, l] = Y(!1), u = J(0), d = J(e);
|
|
5167
5190
|
d.current = e;
|
|
5168
5191
|
let f = J(!1);
|
|
@@ -5196,16 +5219,16 @@ function Za({ buscar: e, ativo: t = !0, minimo: n = 0, atraso: r = 300 }) {
|
|
|
5196
5219
|
}
|
|
5197
5220
|
//#endregion
|
|
5198
5221
|
//#region src/components/CampoBusca/CampoBusca.tsx
|
|
5199
|
-
function
|
|
5200
|
-
let { id: y, msgId: b } =
|
|
5222
|
+
function ro({ rotulo: e, dica: t, erro: n, aviso: r, obrigatorio: i, variante: a = "campo", className: o, id: s, buscar: c, paraRotulo: l, paraDetalhe: u, chave: d = (e) => e.id ?? l(e), valor: f = null, aoMudar: p, minimo: m = 1, atraso: h = 300, placeholder: g = "Buscar…", disabled: _ = !1, vazioTexto: v = "Nenhum resultado encontrado" }) {
|
|
5223
|
+
let { id: y, msgId: b } = Mi(s), x = `${y}-lista`, S = a === "inline", C = J(null), w = J(null), T = J(null), [E, D] = Y(!1), [O, k] = Y(0), [A, j] = Y(!1), M = G(ki), { termo: N, setTermo: P, resultados: F, carregando: I } = no({
|
|
5201
5224
|
buscar: c,
|
|
5202
5225
|
ativo: E,
|
|
5203
5226
|
minimo: m,
|
|
5204
5227
|
atraso: h
|
|
5205
|
-
}), L = E && N.trim().length >= m, R =
|
|
5228
|
+
}), L = E && N.trim().length >= m, R = Va(C, L), z = W(() => {
|
|
5206
5229
|
D(!1), P("");
|
|
5207
5230
|
}, [P]);
|
|
5208
|
-
|
|
5231
|
+
ii([C, w], E, z), K(() => k(0), [F]), K(() => {
|
|
5209
5232
|
L && document.getElementById(`${y}-op-${O}`)?.scrollIntoView({ block: "nearest" });
|
|
5210
5233
|
}, [
|
|
5211
5234
|
L,
|
|
@@ -5217,7 +5240,7 @@ function Qa({ rotulo: e, dica: t, erro: n, aviso: r, obrigatorio: i, variante: a
|
|
|
5217
5240
|
}, ee = (e) => {
|
|
5218
5241
|
e.key === "ArrowDown" && L ? (e.preventDefault(), k((e) => Math.min(e + 1, F.length - 1))) : e.key === "ArrowUp" && L ? (e.preventDefault(), k((e) => Math.max(e - 1, 0))) : e.key === "Enter" && L && F[O] ? (e.preventDefault(), B(F[O])) : e.key === "Escape" && E ? (e.preventDefault(), e.stopPropagation(), z()) : e.key === "Tab" && z();
|
|
5219
5242
|
}, te = n || (i && !f && (A || M > 0) ? "Campo obrigatório" : void 0);
|
|
5220
|
-
return /* @__PURE__ */ U(
|
|
5243
|
+
return /* @__PURE__ */ U(Pi, {
|
|
5221
5244
|
rotulo: e,
|
|
5222
5245
|
dica: t,
|
|
5223
5246
|
erro: te,
|
|
@@ -5245,7 +5268,7 @@ function Qa({ rotulo: e, dica: t, erro: n, aviso: r, obrigatorio: i, variante: a
|
|
|
5245
5268
|
"aria-activedescendant": L && F.length ? `${y}-op-${O}` : void 0,
|
|
5246
5269
|
"aria-required": i || void 0,
|
|
5247
5270
|
"aria-invalid": te ? !0 : void 0,
|
|
5248
|
-
"aria-describedby":
|
|
5271
|
+
"aria-describedby": Ni({
|
|
5249
5272
|
erro: te,
|
|
5250
5273
|
aviso: r,
|
|
5251
5274
|
dica: t
|
|
@@ -5318,7 +5341,7 @@ function Qa({ rotulo: e, dica: t, erro: n, aviso: r, obrigatorio: i, variante: a
|
|
|
5318
5341
|
}
|
|
5319
5342
|
//#endregion
|
|
5320
5343
|
//#region src/components/CampoBusca/CampoCidade.tsx
|
|
5321
|
-
function
|
|
5344
|
+
function io({ uf: e, buscarPorUf: t, valor: n = null, aoMudar: r, placeholder: i = "Município", disabled: a, ...o }) {
|
|
5322
5345
|
let [s, c] = Y([]), l = J(e);
|
|
5323
5346
|
return K(() => {
|
|
5324
5347
|
if (!t || !e) {
|
|
@@ -5331,7 +5354,7 @@ function $a({ uf: e, buscarPorUf: t, valor: n = null, aoMudar: r, placeholder: i
|
|
|
5331
5354
|
};
|
|
5332
5355
|
}, [e, !!t]), K(() => {
|
|
5333
5356
|
l.current !== e && (l.current = e, n && r?.(null));
|
|
5334
|
-
}, [e]), t ? /* @__PURE__ */ H(
|
|
5357
|
+
}, [e]), t ? /* @__PURE__ */ H(ro, {
|
|
5335
5358
|
...o,
|
|
5336
5359
|
disabled: a || !e,
|
|
5337
5360
|
placeholder: e ? i : "Escolha a UF primeiro",
|
|
@@ -5345,7 +5368,7 @@ function $a({ uf: e, buscarPorUf: t, valor: n = null, aoMudar: r, placeholder: i
|
|
|
5345
5368
|
chave: (e) => e.id,
|
|
5346
5369
|
valor: typeof n == "object" ? n : null,
|
|
5347
5370
|
aoMudar: r
|
|
5348
|
-
}) : /* @__PURE__ */ H(
|
|
5371
|
+
}) : /* @__PURE__ */ H(Ii, {
|
|
5349
5372
|
...o,
|
|
5350
5373
|
disabled: a,
|
|
5351
5374
|
placeholder: i,
|
|
@@ -5355,7 +5378,7 @@ function $a({ uf: e, buscarPorUf: t, valor: n = null, aoMudar: r, placeholder: i
|
|
|
5355
5378
|
}
|
|
5356
5379
|
//#endregion
|
|
5357
5380
|
//#region src/components/Paginacao/Paginacao.tsx
|
|
5358
|
-
function
|
|
5381
|
+
function ao(e, t) {
|
|
5359
5382
|
return t <= 7 ? Array.from({ length: t }, (e, t) => t + 1) : e <= 4 ? [
|
|
5360
5383
|
1,
|
|
5361
5384
|
2,
|
|
@@ -5382,7 +5405,7 @@ function eo(e, t) {
|
|
|
5382
5405
|
t
|
|
5383
5406
|
];
|
|
5384
5407
|
}
|
|
5385
|
-
function
|
|
5408
|
+
function oo({ total: e, pagina: t, tamanho: n, tamanhoOpcoes: r = [
|
|
5386
5409
|
10,
|
|
5387
5410
|
20,
|
|
5388
5411
|
50,
|
|
@@ -5424,7 +5447,7 @@ function to({ total: e, pagina: t, tamanho: n, tamanhoOpcoes: r = [
|
|
|
5424
5447
|
onClick: () => f(l - 1),
|
|
5425
5448
|
children: /* @__PURE__ */ H(Z, { icone: "chevron-left" })
|
|
5426
5449
|
}),
|
|
5427
|
-
|
|
5450
|
+
ao(l, c).map((e, t) => e === "…" ? /* @__PURE__ */ H("span", {
|
|
5428
5451
|
className: "lp-pag-bt lp-pag-gap",
|
|
5429
5452
|
"aria-hidden": "true",
|
|
5430
5453
|
children: "…"
|
|
@@ -5450,7 +5473,7 @@ function to({ total: e, pagina: t, tamanho: n, tamanhoOpcoes: r = [
|
|
|
5450
5473
|
}
|
|
5451
5474
|
//#endregion
|
|
5452
5475
|
//#region src/components/Skeleton/Skeleton.tsx
|
|
5453
|
-
function
|
|
5476
|
+
function so({ largura: e = "100%", altura: t = "1rem", formato: n = "retangulo", className: r }) {
|
|
5454
5477
|
let i = {
|
|
5455
5478
|
width: e,
|
|
5456
5479
|
height: t
|
|
@@ -5463,7 +5486,7 @@ function no({ largura: e = "100%", altura: t = "1rem", formato: n = "retangulo",
|
|
|
5463
5486
|
}
|
|
5464
5487
|
//#endregion
|
|
5465
5488
|
//#region src/components/Vazio/Vazio.tsx
|
|
5466
|
-
function
|
|
5489
|
+
function co({ titulo: e, descricao: t, icone: n = "inbox", children: r, className: i }) {
|
|
5467
5490
|
return /* @__PURE__ */ U("div", {
|
|
5468
5491
|
className: X("lp-vazio", i),
|
|
5469
5492
|
children: [
|
|
@@ -5488,8 +5511,8 @@ function ro({ titulo: e, descricao: t, icone: n = "inbox", children: r, classNam
|
|
|
5488
5511
|
}
|
|
5489
5512
|
//#endregion
|
|
5490
5513
|
//#region src/components/Tabela/Tabela.tsx
|
|
5491
|
-
var
|
|
5492
|
-
function
|
|
5514
|
+
var lo = Cn;
|
|
5515
|
+
function uo({ marcado: e, indeterminado: t, rotulo: n, aoMudar: r }) {
|
|
5493
5516
|
let i = J(null);
|
|
5494
5517
|
return K(() => {
|
|
5495
5518
|
i.current && (i.current.indeterminate = !!t);
|
|
@@ -5509,14 +5532,14 @@ function ao({ marcado: e, indeterminado: t, rotulo: n, aoMudar: r }) {
|
|
|
5509
5532
|
})]
|
|
5510
5533
|
});
|
|
5511
5534
|
}
|
|
5512
|
-
var
|
|
5535
|
+
var fo = [
|
|
5513
5536
|
"70%",
|
|
5514
5537
|
"55%",
|
|
5515
5538
|
"82%",
|
|
5516
5539
|
"64%",
|
|
5517
5540
|
"48%"
|
|
5518
5541
|
];
|
|
5519
|
-
function
|
|
5542
|
+
function po({ colunas: e, registros: t, chave: n = (e, t) => e.id ?? t, acoes: r, aparencia: i = "listrada", rotulo: a = "Tabela de dados", carregando: o, atualizando: s, erro: c, aoRecarregar: l, vazioTitulo: u = "Nenhum registro encontrado", vazioDescricao: d, vazioIcone: f = "inbox", vazioAcoes: p, ordenacao: m, aoOrdenar: h, selecao: g, selecionados: _ = [], aoMudarSelecao: v, aoClicarLinha: y, paginacao: b, className: x }) {
|
|
5520
5543
|
let S = t.map(n), C = new Set(_), w = S.length > 0 && S.every((e) => C.has(e)), T = !w && S.some((e) => C.has(e)), E = (e) => {
|
|
5521
5544
|
g === "unica" ? v?.(C.has(e) ? [] : [e]) : v?.(C.has(e) ? _.filter((t) => t !== e) : [..._, e]);
|
|
5522
5545
|
}, D = () => {
|
|
@@ -5534,14 +5557,14 @@ function so({ colunas: e, registros: t, chave: n = (e, t) => e.id ?? t, acoes: r
|
|
|
5534
5557
|
"aria-label": "Carregando registros",
|
|
5535
5558
|
children: [/* @__PURE__ */ H("div", { className: "lp-tbl-carregando-cab" }), Array.from({ length: Math.min(b?.tamanho ?? 5, 8) }, (e, t) => /* @__PURE__ */ H("div", {
|
|
5536
5559
|
className: "lp-tbl-carregando-lin",
|
|
5537
|
-
children: /* @__PURE__ */ H(
|
|
5538
|
-
largura:
|
|
5560
|
+
children: /* @__PURE__ */ H(so, {
|
|
5561
|
+
largura: fo[t % fo.length],
|
|
5539
5562
|
altura: "0.6875rem"
|
|
5540
5563
|
})
|
|
5541
5564
|
}, t))]
|
|
5542
5565
|
}) : c ? /* @__PURE__ */ H("div", {
|
|
5543
5566
|
className: "lp-tbl-vazio",
|
|
5544
|
-
children: /* @__PURE__ */ H(
|
|
5567
|
+
children: /* @__PURE__ */ H(co, {
|
|
5545
5568
|
icone: "triangle-alert",
|
|
5546
5569
|
titulo: "Não foi possível carregar",
|
|
5547
5570
|
descricao: typeof c == "string" ? c : "Verifique a conexão e tente de novo.",
|
|
@@ -5564,7 +5587,7 @@ function so({ colunas: e, registros: t, chave: n = (e, t) => e.id ?? t, acoes: r
|
|
|
5564
5587
|
g && /* @__PURE__ */ H("th", {
|
|
5565
5588
|
className: "lp-tbl-col-sel",
|
|
5566
5589
|
scope: "col",
|
|
5567
|
-
children: g === "multipla" ? /* @__PURE__ */ H(
|
|
5590
|
+
children: g === "multipla" ? /* @__PURE__ */ H(uo, {
|
|
5568
5591
|
marcado: w,
|
|
5569
5592
|
indeterminado: T,
|
|
5570
5593
|
rotulo: "Selecionar todos os visíveis",
|
|
@@ -5599,15 +5622,15 @@ function so({ colunas: e, registros: t, chave: n = (e, t) => e.id ?? t, acoes: r
|
|
|
5599
5622
|
children: [
|
|
5600
5623
|
g && /* @__PURE__ */ H("td", {
|
|
5601
5624
|
className: "lp-tbl-col-sel",
|
|
5602
|
-
children: /* @__PURE__ */ H(
|
|
5625
|
+
children: /* @__PURE__ */ H(uo, {
|
|
5603
5626
|
marcado: a,
|
|
5604
5627
|
rotulo: `Selecionar linha ${n + 1}`,
|
|
5605
5628
|
aoMudar: () => E(i)
|
|
5606
5629
|
})
|
|
5607
5630
|
}),
|
|
5608
5631
|
e.map((e) => {
|
|
5609
|
-
let n =
|
|
5610
|
-
return r = e.render ? e.render(t) : e.severidade ? /* @__PURE__ */ H(
|
|
5632
|
+
let n = lo(t, e.campo), r;
|
|
5633
|
+
return r = e.render ? e.render(t) : e.severidade ? /* @__PURE__ */ H(ia, {
|
|
5611
5634
|
rotulo: String(e.formato ? e.formato(n, t) : n ?? ""),
|
|
5612
5635
|
severidade: e.severidade(t)
|
|
5613
5636
|
}) : e.formato ? e.formato(n, t) : n == null || n === "" ? "—" : String(n), /* @__PURE__ */ H("td", {
|
|
@@ -5628,7 +5651,7 @@ function so({ colunas: e, registros: t, chave: n = (e, t) => e.id ?? t, acoes: r
|
|
|
5628
5651
|
})
|
|
5629
5652
|
}) : /* @__PURE__ */ H("div", {
|
|
5630
5653
|
className: "lp-tbl-vazio",
|
|
5631
|
-
children: /* @__PURE__ */ H(
|
|
5654
|
+
children: /* @__PURE__ */ H(co, {
|
|
5632
5655
|
icone: f,
|
|
5633
5656
|
titulo: u,
|
|
5634
5657
|
descricao: d,
|
|
@@ -5636,7 +5659,7 @@ function so({ colunas: e, registros: t, chave: n = (e, t) => e.id ?? t, acoes: r
|
|
|
5636
5659
|
})
|
|
5637
5660
|
}), /* @__PURE__ */ U("div", {
|
|
5638
5661
|
className: X("lp-tbl-card", x),
|
|
5639
|
-
children: [j, b && !o && !c && b.total > 0 && /* @__PURE__ */ H(
|
|
5662
|
+
children: [j, b && !o && !c && b.total > 0 && /* @__PURE__ */ H(oo, {
|
|
5640
5663
|
embutida: !0,
|
|
5641
5664
|
...b
|
|
5642
5665
|
})]
|
|
@@ -5644,14 +5667,14 @@ function so({ colunas: e, registros: t, chave: n = (e, t) => e.id ?? t, acoes: r
|
|
|
5644
5667
|
}
|
|
5645
5668
|
//#endregion
|
|
5646
5669
|
//#region src/components/Lista/Lista.tsx
|
|
5647
|
-
function
|
|
5670
|
+
function mo({ children: e, variante: t = "padrao", numerada: n = !1, horizontal: r = !1, rotulo: i, className: a }) {
|
|
5648
5671
|
return /* @__PURE__ */ H(n ? "ol" : "ul", {
|
|
5649
5672
|
"aria-label": i,
|
|
5650
5673
|
className: X("lp-lista", t === "sem-borda" && "lp-lista--sem-borda", n && "lp-lista--numerada", r === !0 && "lp-lista--horizontal", typeof r == "string" && `lp-lista--horizontal-${r}`, a),
|
|
5651
5674
|
children: e
|
|
5652
5675
|
});
|
|
5653
5676
|
}
|
|
5654
|
-
function
|
|
5677
|
+
function ho({ children: e, titulo: t, icone: n, inicio: r, fim: i, ativo: a = !1, desabilitado: o = !1, cor: s, solido: c = !1, href: l, onClick: u, marcacao: d, marcado: f, aoMarcar: p, nome: m, className: h }) {
|
|
5655
5678
|
let g = r ?? (n ? /* @__PURE__ */ H(Z, {
|
|
5656
5679
|
icone: n,
|
|
5657
5680
|
className: "lp-lista-icone"
|
|
@@ -5711,7 +5734,7 @@ function lo({ children: e, titulo: t, icone: n, inicio: r, fim: i, ativo: a = !1
|
|
|
5711
5734
|
}
|
|
5712
5735
|
//#endregion
|
|
5713
5736
|
//#region src/components/ListaCards/ListaCards.tsx
|
|
5714
|
-
function
|
|
5737
|
+
function go({ itens: e, card: t, chave: n = (e, t) => e.id ?? t, larguraMin: r = "16rem", alturaCard: i = "8.5rem", rotulo: a, carregando: o, atualizando: s, erro: c, aoRecarregar: l, vazioTitulo: u = "Nenhum registro encontrado", vazioDescricao: d, vazioIcone: f = "inbox", vazioAcoes: p, paginacao: m, className: h }) {
|
|
5715
5738
|
let g = { "--lp-cards-min": r }, _;
|
|
5716
5739
|
return _ = o ? /* @__PURE__ */ H("div", {
|
|
5717
5740
|
className: "lp-cards",
|
|
@@ -5719,8 +5742,8 @@ function uo({ itens: e, card: t, chave: n = (e, t) => e.id ?? t, larguraMin: r =
|
|
|
5719
5742
|
role: "status",
|
|
5720
5743
|
"aria-busy": "true",
|
|
5721
5744
|
"aria-label": "Carregando registros",
|
|
5722
|
-
children: Array.from({ length: Math.min(m?.tamanho ?? 6, 12) }, (e, t) => /* @__PURE__ */ H(
|
|
5723
|
-
}) : c ? /* @__PURE__ */ H(
|
|
5745
|
+
children: Array.from({ length: Math.min(m?.tamanho ?? 6, 12) }, (e, t) => /* @__PURE__ */ H(so, { altura: i }, t))
|
|
5746
|
+
}) : c ? /* @__PURE__ */ H(co, {
|
|
5724
5747
|
icone: "triangle-alert",
|
|
5725
5748
|
titulo: "Não foi possível carregar",
|
|
5726
5749
|
descricao: typeof c == "string" ? c : "Verifique a conexão e tente de novo.",
|
|
@@ -5740,24 +5763,24 @@ function uo({ itens: e, card: t, chave: n = (e, t) => e.id ?? t, larguraMin: r =
|
|
|
5740
5763
|
className: "lp-cards-cel",
|
|
5741
5764
|
children: t(e, r)
|
|
5742
5765
|
}, n(e, r)))
|
|
5743
|
-
}) : /* @__PURE__ */ H(
|
|
5766
|
+
}) : /* @__PURE__ */ H(co, {
|
|
5744
5767
|
icone: f,
|
|
5745
5768
|
titulo: u,
|
|
5746
5769
|
descricao: d,
|
|
5747
5770
|
children: p
|
|
5748
5771
|
}), /* @__PURE__ */ U("div", {
|
|
5749
5772
|
className: X("lp-cards-lista", h),
|
|
5750
|
-
children: [_, m && !o && !c && m.total > 0 && /* @__PURE__ */ H(
|
|
5773
|
+
children: [_, m && !o && !c && m.total > 0 && /* @__PURE__ */ H(oo, { ...m })]
|
|
5751
5774
|
});
|
|
5752
5775
|
}
|
|
5753
5776
|
//#endregion
|
|
5754
5777
|
//#region src/components/Indicador/Indicador.tsx
|
|
5755
|
-
var
|
|
5778
|
+
var _o = new Intl.NumberFormat("pt-BR"), vo = new Intl.NumberFormat("pt-BR", {
|
|
5756
5779
|
minimumFractionDigits: 2,
|
|
5757
5780
|
maximumFractionDigits: 2
|
|
5758
5781
|
});
|
|
5759
|
-
function
|
|
5760
|
-
let f = typeof t == "number" ?
|
|
5782
|
+
function yo({ rotulo: e, valor: t, icone: n, cor: r, href: i, aoClicar: a, carregando: o, variacao: s, variacaoBoa: c = "alta", descricao: l, children: u, className: d }) {
|
|
5783
|
+
let f = typeof t == "number" ? _o.format(t) : t, p = (s ?? 0) >= 0, m = p === (c === "alta"), h = r ? { "--ind-cor": r } : void 0;
|
|
5761
5784
|
return /* @__PURE__ */ U("div", {
|
|
5762
5785
|
className: X("lp-ind", r && "lp-ind--cor", (!!i || !!a) && "lp-ind--link", d),
|
|
5763
5786
|
style: h,
|
|
@@ -5783,7 +5806,7 @@ function mo({ rotulo: e, valor: t, icone: n, cor: r, href: i, aoClicar: a, carre
|
|
|
5783
5806
|
children: /* @__PURE__ */ H(Z, { icone: n })
|
|
5784
5807
|
})]
|
|
5785
5808
|
}),
|
|
5786
|
-
o ? /* @__PURE__ */ H(
|
|
5809
|
+
o ? /* @__PURE__ */ H(so, {
|
|
5787
5810
|
largura: "4.5rem",
|
|
5788
5811
|
altura: "1.8rem"
|
|
5789
5812
|
}) : s === void 0 ? /* @__PURE__ */ H("div", {
|
|
@@ -5798,7 +5821,7 @@ function mo({ rotulo: e, valor: t, icone: n, cor: r, href: i, aoClicar: a, carre
|
|
|
5798
5821
|
className: X("lp-ind-var", m ? "is-boa" : "is-ruim"),
|
|
5799
5822
|
children: [
|
|
5800
5823
|
/* @__PURE__ */ H(Z, { icone: p ? "arrow-up" : "arrow-down" }),
|
|
5801
|
-
|
|
5824
|
+
vo.format(Math.abs(s)),
|
|
5802
5825
|
"%",
|
|
5803
5826
|
/* @__PURE__ */ H("span", {
|
|
5804
5827
|
className: "lp-sr",
|
|
@@ -5818,7 +5841,7 @@ function mo({ rotulo: e, valor: t, icone: n, cor: r, href: i, aoClicar: a, carre
|
|
|
5818
5841
|
]
|
|
5819
5842
|
});
|
|
5820
5843
|
}
|
|
5821
|
-
function
|
|
5844
|
+
function bo({ children: e, className: t }) {
|
|
5822
5845
|
return /* @__PURE__ */ H("div", {
|
|
5823
5846
|
className: X("lp-inds", t),
|
|
5824
5847
|
children: e
|
|
@@ -5826,7 +5849,7 @@ function ho({ children: e, className: t }) {
|
|
|
5826
5849
|
}
|
|
5827
5850
|
//#endregion
|
|
5828
5851
|
//#region src/components/Detalhes/Detalhes.tsx
|
|
5829
|
-
function
|
|
5852
|
+
function xo({ rotulo: e, valor: t, disposicao: n = "coluna", children: r, className: i }) {
|
|
5830
5853
|
let a = r ?? (t == null || t === "" ? "—" : t);
|
|
5831
5854
|
return /* @__PURE__ */ U("div", {
|
|
5832
5855
|
className: X("lp-det", n === "linha" && "lp-det--linha", i),
|
|
@@ -5841,7 +5864,7 @@ function go({ rotulo: e, valor: t, disposicao: n = "coluna", children: r, classN
|
|
|
5841
5864
|
}
|
|
5842
5865
|
//#endregion
|
|
5843
5866
|
//#region src/components/Badge/Badge.tsx
|
|
5844
|
-
function
|
|
5867
|
+
function So({ cor: e = "pri", aparencia: t = "solido", formato: n = "padrao", tamanho: r = "pequeno", icone: i, rotulo: a, children: o, className: s }) {
|
|
5845
5868
|
return /* @__PURE__ */ U("span", {
|
|
5846
5869
|
className: X("lp-badge", `lp-badge--${t}`, n === "pilula" && "lp-badge--pilula", `lp-badge--${r}`, s),
|
|
5847
5870
|
"data-cor": e,
|
|
@@ -5852,7 +5875,7 @@ function _o({ cor: e = "pri", aparencia: t = "solido", formato: n = "padrao", ta
|
|
|
5852
5875
|
]
|
|
5853
5876
|
});
|
|
5854
5877
|
}
|
|
5855
|
-
function
|
|
5878
|
+
function Co({ children: e, conteudo: t, max: n = 99, ponto: r = !1, cor: i = "err", posicao: a = "superior-direita", descricao: o, className: s }) {
|
|
5856
5879
|
let c = t == null || t === !1 || t === "", l = typeof t == "number" && t > n ? `${n}+` : t;
|
|
5857
5880
|
return /* @__PURE__ */ U("span", {
|
|
5858
5881
|
className: X("lp-com-badge", s),
|
|
@@ -5868,7 +5891,7 @@ function vo({ children: e, conteudo: t, max: n = 99, ponto: r = !1, cor: i = "er
|
|
|
5868
5891
|
}
|
|
5869
5892
|
//#endregion
|
|
5870
5893
|
//#region src/components/Placa/Placa.tsx
|
|
5871
|
-
function
|
|
5894
|
+
function wo({ numero: e, uf: t = "PR", className: n }) {
|
|
5872
5895
|
let r = (e ?? "").toUpperCase(), i = (t ?? "").toUpperCase();
|
|
5873
5896
|
return /* @__PURE__ */ U("span", {
|
|
5874
5897
|
className: X("lp-placa", n),
|
|
@@ -5890,7 +5913,7 @@ function yo({ numero: e, uf: t = "PR", className: n }) {
|
|
|
5890
5913
|
}
|
|
5891
5914
|
//#endregion
|
|
5892
5915
|
//#region src/components/Citacao/Citacao.tsx
|
|
5893
|
-
function
|
|
5916
|
+
function To({ children: e, autor: t, fonte: n, cor: r = "pri", aparencia: i = "simples", alinhamento: a = "inicio", icone: o = "info", className: s }) {
|
|
5894
5917
|
return /* @__PURE__ */ U("figure", {
|
|
5895
5918
|
className: X("lp-citacao", r !== "pri" && `lp-citacao--${r}`, `lp-citacao--${i}`, a !== "inicio" && `lp-citacao--${a}`, s),
|
|
5896
5919
|
children: [
|
|
@@ -5919,7 +5942,7 @@ function bo({ children: e, autor: t, fonte: n, cor: r = "pri", aparencia: i = "s
|
|
|
5919
5942
|
}
|
|
5920
5943
|
//#endregion
|
|
5921
5944
|
//#region src/components/Imagem/Imagem.tsx
|
|
5922
|
-
function
|
|
5945
|
+
function Eo({ responsiva: e = !0, cantos: t = "reto", miniatura: n = !1, alinhamento: r, proporcao: i, largura: a, loading: o = "lazy", className: s, style: c, ...l }) {
|
|
5923
5946
|
return /* @__PURE__ */ H("img", {
|
|
5924
5947
|
loading: o,
|
|
5925
5948
|
className: X("lp-img", e && "lp-img--responsiva", t !== "reto" && `lp-img--${t}`, n && "lp-img--miniatura", r && `lp-img--${r}`, i && "lp-img--recorte", s),
|
|
@@ -5931,14 +5954,14 @@ function xo({ responsiva: e = !0, cantos: t = "reto", miniatura: n = !1, alinham
|
|
|
5931
5954
|
...l
|
|
5932
5955
|
});
|
|
5933
5956
|
}
|
|
5934
|
-
function
|
|
5957
|
+
function Do({ src: e, alt: t, legenda: n, alinhamentoLegenda: r = "inicio", cantos: i = "arredondado", miniatura: a, proporcao: o, alinhamento: s, largura: c, className: l, style: u }) {
|
|
5935
5958
|
return /* @__PURE__ */ U("figure", {
|
|
5936
5959
|
className: X("lp-figura", s && `lp-figura--${s}`, l),
|
|
5937
5960
|
style: {
|
|
5938
5961
|
width: c,
|
|
5939
5962
|
...u
|
|
5940
5963
|
},
|
|
5941
|
-
children: [/* @__PURE__ */ H(
|
|
5964
|
+
children: [/* @__PURE__ */ H(Eo, {
|
|
5942
5965
|
src: e,
|
|
5943
5966
|
alt: t,
|
|
5944
5967
|
cantos: i,
|
|
@@ -5953,7 +5976,7 @@ function So({ src: e, alt: t, legenda: n, alinhamentoLegenda: r = "inicio", cant
|
|
|
5953
5976
|
}
|
|
5954
5977
|
//#endregion
|
|
5955
5978
|
//#region src/components/BotaoFechar/BotaoFechar.tsx
|
|
5956
|
-
function
|
|
5979
|
+
function Oo({ variante: e = "padrao", tamanho: t = "medio", rotulo: n = "Fechar", className: r, type: i = "button", ...a }) {
|
|
5957
5980
|
return /* @__PURE__ */ H("button", {
|
|
5958
5981
|
type: i,
|
|
5959
5982
|
className: X("lp-fechar", e === "claro" && "lp-fechar--claro", t === "pequeno" && "lp-fechar--pequeno", r),
|
|
@@ -5965,7 +5988,7 @@ function Co({ variante: e = "padrao", tamanho: t = "medio", rotulo: n = "Fechar"
|
|
|
5965
5988
|
}
|
|
5966
5989
|
//#endregion
|
|
5967
5990
|
//#region src/components/Carregando/Carregando.tsx
|
|
5968
|
-
function
|
|
5991
|
+
function ko({ mensagem: e = "Carregando", logo: t, bloqueante: n = !1, className: r }) {
|
|
5969
5992
|
let i = J(null);
|
|
5970
5993
|
K(() => {
|
|
5971
5994
|
if (!n) return;
|
|
@@ -6017,16 +6040,16 @@ function wo({ mensagem: e = "Carregando", logo: t, bloqueante: n = !1, className
|
|
|
6017
6040
|
}
|
|
6018
6041
|
//#endregion
|
|
6019
6042
|
//#region src/components/Girador/Girador.tsx
|
|
6020
|
-
var
|
|
6043
|
+
var Ao = {
|
|
6021
6044
|
pequeno: "1rem",
|
|
6022
6045
|
medio: "1.75rem",
|
|
6023
6046
|
grande: "2.75rem"
|
|
6024
6047
|
};
|
|
6025
|
-
function
|
|
6048
|
+
function jo({ tipo: e = "anel", cor: t = "pri", tamanho: n = "medio", rotulo: r = "Carregando...", mostrarRotulo: i = !1, className: a }) {
|
|
6026
6049
|
return /* @__PURE__ */ U("span", {
|
|
6027
6050
|
role: "status",
|
|
6028
6051
|
className: X("lp-girador", `lp-girador--${e}`, t !== "pri" && `lp-girador--${t}`, a),
|
|
6029
|
-
style: { "--gir-tam":
|
|
6052
|
+
style: { "--gir-tam": Ao[n] ?? n },
|
|
6030
6053
|
children: [/* @__PURE__ */ H("span", {
|
|
6031
6054
|
className: "lp-girador-forma",
|
|
6032
6055
|
"aria-hidden": "true",
|
|
@@ -6043,9 +6066,9 @@ function Eo({ tipo: e = "anel", cor: t = "pri", tamanho: n = "medio", rotulo: r
|
|
|
6043
6066
|
}
|
|
6044
6067
|
//#endregion
|
|
6045
6068
|
//#region src/components/Progresso/Progresso.tsx
|
|
6046
|
-
var
|
|
6047
|
-
function
|
|
6048
|
-
let g =
|
|
6069
|
+
var Mo = (e, t) => Math.max(0, Math.min(100, e / t * 100)), No = (e, t) => `${Math.round(Mo(e, t))}%`;
|
|
6070
|
+
function Po({ valor: e = 0, max: t = 100, segmentos: n, cor: r = "pri", aparencia: i = "solido", animado: a = !1, entrada: o = !1, altura: s = "md", mostrarValor: c = "nenhum", marcador: l = !1, marcos: u, trilhaColorida: d = !1, etiqueta: f, rotulo: p, formatar: m = No, className: h }) {
|
|
6071
|
+
let g = Mo(e, t), _ = m(e, t), v = (e) => X("lp-prog-barra", `lp-prog--${e}`, i !== "solido" && `lp-prog-barra--${i}`, a && "lp-prog-barra--animado", o && "lp-prog-barra--entrada");
|
|
6049
6072
|
return /* @__PURE__ */ U("div", {
|
|
6050
6073
|
className: X("lp-prog", r !== "pri" && `lp-prog--${r}`, `lp-prog--${s}`, d && "lp-prog--trilha-colorida", c === "balao" && "lp-prog--com-balao", h),
|
|
6051
6074
|
children: [
|
|
@@ -6059,7 +6082,7 @@ function ko({ valor: e = 0, max: t = 100, segmentos: n, cor: r = "pri", aparenci
|
|
|
6059
6082
|
"aria-label": p,
|
|
6060
6083
|
children: n.map((e, n) => /* @__PURE__ */ H("div", {
|
|
6061
6084
|
className: v(e.cor ?? r),
|
|
6062
|
-
style: { width: `${
|
|
6085
|
+
style: { width: `${Mo(e.valor, t)}%` },
|
|
6063
6086
|
role: "progressbar",
|
|
6064
6087
|
"aria-label": e.rotulo,
|
|
6065
6088
|
"aria-valuenow": e.valor,
|
|
@@ -6090,7 +6113,7 @@ function ko({ valor: e = 0, max: t = 100, segmentos: n, cor: r = "pri", aparenci
|
|
|
6090
6113
|
}),
|
|
6091
6114
|
u?.map((n) => /* @__PURE__ */ H("span", {
|
|
6092
6115
|
className: X("lp-prog-marco", n <= e && "is-atingido"),
|
|
6093
|
-
style: { left: `${
|
|
6116
|
+
style: { left: `${Mo(n, t)}%` },
|
|
6094
6117
|
"aria-hidden": "true"
|
|
6095
6118
|
}, n)),
|
|
6096
6119
|
l && /* @__PURE__ */ H("span", {
|
|
@@ -6119,8 +6142,8 @@ function ko({ valor: e = 0, max: t = 100, segmentos: n, cor: r = "pri", aparenci
|
|
|
6119
6142
|
}
|
|
6120
6143
|
//#endregion
|
|
6121
6144
|
//#region src/components/Conversa/Conversa.tsx
|
|
6122
|
-
var
|
|
6123
|
-
function
|
|
6145
|
+
var Fo = 24;
|
|
6146
|
+
function Io({ children: e, vazio: t, campo: n, larguraMaxima: r, rotulo: i = "Conversa", rotuloIrParaFim: a = "Ir para o fim", className: o }) {
|
|
6124
6147
|
let s = J(null), c = J(null), l = J(!0), [u, d] = Y(!1), f = St.toArray(e), p = f.length === 0, m = J(f.length), h = f.length > m.current && f.slice(m.current).some((e) => Dt(e) && e.props.autor === "usuario"), g = W(() => {
|
|
6125
6148
|
let e = s.current;
|
|
6126
6149
|
e && (e.scrollTop = e.scrollHeight, l.current = !0, d(!1));
|
|
@@ -6139,7 +6162,7 @@ function jo({ children: e, vazio: t, campo: n, larguraMaxima: r, rotulo: i = "Co
|
|
|
6139
6162
|
let _ = () => {
|
|
6140
6163
|
let e = s.current;
|
|
6141
6164
|
if (!e) return;
|
|
6142
|
-
let t = e.scrollHeight - e.scrollTop - e.clientHeight <=
|
|
6165
|
+
let t = e.scrollHeight - e.scrollTop - e.clientHeight <= Fo;
|
|
6143
6166
|
l.current = t, d(!t);
|
|
6144
6167
|
}, v = r ? { "--conversa-largura": r } : void 0;
|
|
6145
6168
|
return /* @__PURE__ */ U("div", {
|
|
@@ -6160,7 +6183,7 @@ function jo({ children: e, vazio: t, campo: n, larguraMaxima: r, rotulo: i = "Co
|
|
|
6160
6183
|
"aria-live": "polite",
|
|
6161
6184
|
children: p ? /* @__PURE__ */ H("div", {
|
|
6162
6185
|
className: "lp-conversa-vazio",
|
|
6163
|
-
children: t ?? /* @__PURE__ */ H(
|
|
6186
|
+
children: t ?? /* @__PURE__ */ H(co, {
|
|
6164
6187
|
titulo: "Nenhuma mensagem ainda",
|
|
6165
6188
|
descricao: "Envie uma mensagem para começar a conversa.",
|
|
6166
6189
|
icone: "message-square"
|
|
@@ -6184,10 +6207,10 @@ function jo({ children: e, vazio: t, campo: n, larguraMaxima: r, rotulo: i = "Co
|
|
|
6184
6207
|
}
|
|
6185
6208
|
//#endregion
|
|
6186
6209
|
//#region src/components/Mensagem/Mensagem.tsx
|
|
6187
|
-
function
|
|
6210
|
+
function Lo(e) {
|
|
6188
6211
|
return e.toDateString() === (/* @__PURE__ */ new Date()).toDateString() ? Ln(e) : zn(e);
|
|
6189
6212
|
}
|
|
6190
|
-
function
|
|
6213
|
+
function Ro({ autor: e = "assistente", children: t, nome: n, avatar: r, hora: i, estado: a = "concluida", erro: o, aoTentarNovamente: s, copiavel: c = !1, textoCopia: l, acoes: u, rodape: d, rotuloTentarNovamente: f = "Tentar novamente", rotuloCopiar: p = "Copiar mensagem", rotuloGerando: m = "Gerando resposta", rotuloEnviando: h = "Enviando", className: g }) {
|
|
6191
6214
|
let _ = Ur(), v = J(null), y = J(void 0), [b, x] = Y(!1);
|
|
6192
6215
|
K(() => () => window.clearTimeout(y.current), []);
|
|
6193
6216
|
let S = t == null || t === !1 || t === "", C = typeof t == "string", w = a === "gerando", T = a === "erro", E = async () => {
|
|
@@ -6206,10 +6229,10 @@ function No({ autor: e = "assistente", children: t, nome: n, avatar: r, hora: i,
|
|
|
6206
6229
|
children: t
|
|
6207
6230
|
})
|
|
6208
6231
|
});
|
|
6209
|
-
let D = r === !0 ? /* @__PURE__ */ H(
|
|
6232
|
+
let D = r === !0 ? /* @__PURE__ */ H(oi, {
|
|
6210
6233
|
nome: n,
|
|
6211
6234
|
tom: e === "usuario" ? "escuro" : "claro"
|
|
6212
|
-
}) : typeof r == "string" ? /* @__PURE__ */ H(
|
|
6235
|
+
}) : typeof r == "string" ? /* @__PURE__ */ H(oi, {
|
|
6213
6236
|
foto: r,
|
|
6214
6237
|
nome: n
|
|
6215
6238
|
}) : r, O = c && !S && !w || !!u, k = i instanceof Date ? i.toISOString() : void 0;
|
|
@@ -6229,7 +6252,7 @@ function No({ autor: e = "assistente", children: t, nome: n, avatar: r, hora: i,
|
|
|
6229
6252
|
children: n
|
|
6230
6253
|
}), i && /* @__PURE__ */ H("time", {
|
|
6231
6254
|
dateTime: k,
|
|
6232
|
-
children: i instanceof Date ?
|
|
6255
|
+
children: i instanceof Date ? Lo(i) : i
|
|
6233
6256
|
})]
|
|
6234
6257
|
}),
|
|
6235
6258
|
(!S || w || d) && /* @__PURE__ */ U("div", {
|
|
@@ -6301,8 +6324,8 @@ function No({ autor: e = "assistente", children: t, nome: n, avatar: r, hora: i,
|
|
|
6301
6324
|
}
|
|
6302
6325
|
//#endregion
|
|
6303
6326
|
//#region src/components/CampoMensagem/CampoMensagem.tsx
|
|
6304
|
-
var
|
|
6305
|
-
let { id: _ } =
|
|
6327
|
+
var zo = .8, Bo = Et(function({ valor: e, aoMudar: t, aoEnviar: n, gerando: r = !1, aoParar: i, desabilitado: a = !1, placeholder: o = "Escreva uma mensagem", maxCaracteres: s, linhasMaximas: c = 6, autoFocus: l, acoesExtras: u, rotulo: d = "Mensagem", rotuloEnviar: f = "Enviar mensagem", rotuloParar: p = "Parar", id: m, className: h }, g) {
|
|
6328
|
+
let { id: _ } = Mi(m), v = J(null);
|
|
6306
6329
|
Ot(g, () => v.current);
|
|
6307
6330
|
let y = e.trim(), b = !a && !r && y !== "" && (!s || e.length <= s), x = s ? e.length / s : 0, S = W(() => {
|
|
6308
6331
|
let e = v.current;
|
|
@@ -6354,7 +6377,7 @@ var Po = .8, Fo = Et(function({ valor: e, aoMudar: t, aoEnviar: n, gerando: r =
|
|
|
6354
6377
|
className: "lp-campo-mensagem-extras",
|
|
6355
6378
|
children: u
|
|
6356
6379
|
}),
|
|
6357
|
-
s && x >=
|
|
6380
|
+
s && x >= zo && /* @__PURE__ */ U("span", {
|
|
6358
6381
|
className: X("lp-campo-mensagem-contador", x >= 1 ? "is-err" : x >= .9 && "is-warn"),
|
|
6359
6382
|
"aria-hidden": "true",
|
|
6360
6383
|
children: [
|
|
@@ -6381,8 +6404,8 @@ var Po = .8, Fo = Et(function({ valor: e, aoMudar: t, aoEnviar: n, gerando: r =
|
|
|
6381
6404
|
})
|
|
6382
6405
|
]
|
|
6383
6406
|
});
|
|
6384
|
-
}),
|
|
6385
|
-
function
|
|
6407
|
+
}), Vo = (e) => e === 1 ? "1 fonte" : `${e} fontes`;
|
|
6408
|
+
function Ho({ children: e, mais: t, menos: n }) {
|
|
6386
6409
|
let r = J(null), [i, a] = Y(!1), [o, s] = Y(!1);
|
|
6387
6410
|
return kt(() => {
|
|
6388
6411
|
let e = r.current;
|
|
@@ -6403,7 +6426,7 @@ function Lo({ children: e, mais: t, menos: n }) {
|
|
|
6403
6426
|
children: i ? n : t
|
|
6404
6427
|
})] });
|
|
6405
6428
|
}
|
|
6406
|
-
function
|
|
6429
|
+
function Uo({ itens: e, abertoInicial: t = !1, rotulo: n = Vo, rotuloMostrarMais: r = "Mostrar trecho completo", rotuloMostrarMenos: i = "Mostrar menos", className: a }) {
|
|
6407
6430
|
let o = q(), [s, c] = Y(t);
|
|
6408
6431
|
return e.length ? /* @__PURE__ */ U("div", {
|
|
6409
6432
|
className: X("lp-referencias", s && "is-aberto", a),
|
|
@@ -6421,7 +6444,7 @@ function Ro({ itens: e, abertoInicial: t = !1, rotulo: n = Io, rotuloMostrarMais
|
|
|
6421
6444
|
className: "lp-referencias-seta"
|
|
6422
6445
|
})
|
|
6423
6446
|
]
|
|
6424
|
-
}), /* @__PURE__ */ H(
|
|
6447
|
+
}), /* @__PURE__ */ H(xa, {
|
|
6425
6448
|
aberto: s,
|
|
6426
6449
|
id: o,
|
|
6427
6450
|
children: /* @__PURE__ */ H("ol", {
|
|
@@ -6449,7 +6472,7 @@ function Ro({ itens: e, abertoInicial: t = !1, rotulo: n = Io, rotuloMostrarMais
|
|
|
6449
6472
|
className: "lp-referencias-detalhe",
|
|
6450
6473
|
children: e.detalhe
|
|
6451
6474
|
})]
|
|
6452
|
-
}), e.trecho && /* @__PURE__ */ H(
|
|
6475
|
+
}), e.trecho && /* @__PURE__ */ H(Ho, {
|
|
6453
6476
|
mais: r,
|
|
6454
6477
|
menos: i,
|
|
6455
6478
|
children: e.trecho
|
|
@@ -6462,24 +6485,24 @@ function Ro({ itens: e, abertoInicial: t = !1, rotulo: n = Io, rotuloMostrarMais
|
|
|
6462
6485
|
}
|
|
6463
6486
|
//#endregion
|
|
6464
6487
|
//#region src/components/Arquivo/VisualizadorArquivo.tsx
|
|
6465
|
-
var
|
|
6488
|
+
var Wo = [
|
|
6466
6489
|
1,
|
|
6467
6490
|
1.5,
|
|
6468
6491
|
2,
|
|
6469
6492
|
3,
|
|
6470
6493
|
4
|
|
6471
6494
|
];
|
|
6472
|
-
function
|
|
6495
|
+
function Go({ arquivo: e, aoFalhar: t, className: n }) {
|
|
6473
6496
|
let r = e ? `${e.url ?? ""}|${e.nome}` : "vazio";
|
|
6474
6497
|
return /* @__PURE__ */ H("div", {
|
|
6475
6498
|
className: X("lp-visu", n),
|
|
6476
|
-
children: /* @__PURE__ */ H(
|
|
6499
|
+
children: /* @__PURE__ */ H(Ko, {
|
|
6477
6500
|
arquivo: e,
|
|
6478
6501
|
aoFalhar: t
|
|
6479
6502
|
}, r)
|
|
6480
6503
|
});
|
|
6481
6504
|
}
|
|
6482
|
-
function
|
|
6505
|
+
function Ko({ arquivo: e, aoFalhar: t }) {
|
|
6483
6506
|
let [n, r] = Y(!1), i = e?.url?.trim(), a = e ? Jn(e.tipo, e.nome) : "outro", o = () => {
|
|
6484
6507
|
r(!0), e && t?.(e);
|
|
6485
6508
|
};
|
|
@@ -6487,7 +6510,7 @@ function Vo({ arquivo: e, aoFalhar: t }) {
|
|
|
6487
6510
|
let t = [e?.nome, e?.tamanho ? Kn(e.tamanho) : ""].filter(Boolean).join(" · ");
|
|
6488
6511
|
return /* @__PURE__ */ H("div", {
|
|
6489
6512
|
className: "lp-visu-indisponivel",
|
|
6490
|
-
children: /* @__PURE__ */ H(
|
|
6513
|
+
children: /* @__PURE__ */ H(co, {
|
|
6491
6514
|
icone: e ? Yn(e.tipo, e.nome) : "file",
|
|
6492
6515
|
titulo: i ? "Pré-visualização indisponível" : "Arquivo indisponível",
|
|
6493
6516
|
descricao: t || void 0,
|
|
@@ -6502,7 +6525,7 @@ function Vo({ arquivo: e, aoFalhar: t }) {
|
|
|
6502
6525
|
})
|
|
6503
6526
|
});
|
|
6504
6527
|
}
|
|
6505
|
-
return a === "imagem" ? /* @__PURE__ */ H(
|
|
6528
|
+
return a === "imagem" ? /* @__PURE__ */ H(qo, {
|
|
6506
6529
|
url: i,
|
|
6507
6530
|
nome: e.nome,
|
|
6508
6531
|
aoFalhar: o
|
|
@@ -6534,11 +6557,11 @@ function Vo({ arquivo: e, aoFalhar: t }) {
|
|
|
6534
6557
|
]
|
|
6535
6558
|
});
|
|
6536
6559
|
}
|
|
6537
|
-
function
|
|
6560
|
+
function qo({ url: e, nome: t, aoFalhar: n }) {
|
|
6538
6561
|
let [r, i] = Y(0), [a, o] = Y(0), [s, c] = Y({
|
|
6539
6562
|
x: 0,
|
|
6540
6563
|
y: 0
|
|
6541
|
-
}), l = J(null), u = J(null), d =
|
|
6564
|
+
}), l = J(null), u = J(null), d = Wo[r], f = (e, t) => {
|
|
6542
6565
|
let n = l.current?.getBoundingClientRect();
|
|
6543
6566
|
if (!n) return {
|
|
6544
6567
|
x: e,
|
|
@@ -6550,7 +6573,7 @@ function Ho({ url: e, nome: t, aoFalhar: n }) {
|
|
|
6550
6573
|
y: Math.max(-i, Math.min(i, t))
|
|
6551
6574
|
};
|
|
6552
6575
|
}, p = (e) => {
|
|
6553
|
-
let t = Math.max(0, Math.min(
|
|
6576
|
+
let t = Math.max(0, Math.min(Wo.length - 1, e));
|
|
6554
6577
|
i(t), t === 0 && c({
|
|
6555
6578
|
x: 0,
|
|
6556
6579
|
y: 0
|
|
@@ -6582,7 +6605,7 @@ function Ho({ url: e, nome: t, aoFalhar: n }) {
|
|
|
6582
6605
|
else return;
|
|
6583
6606
|
e.preventDefault();
|
|
6584
6607
|
},
|
|
6585
|
-
onDoubleClick: () => r === 0 ? i(
|
|
6608
|
+
onDoubleClick: () => r === 0 ? i(Wo.indexOf(2)) : m(),
|
|
6586
6609
|
onPointerDown: (e) => {
|
|
6587
6610
|
d <= 1 || (e.currentTarget.setPointerCapture(e.pointerId), u.current = {
|
|
6588
6611
|
x: e.clientX,
|
|
@@ -6629,7 +6652,7 @@ function Ho({ url: e, nome: t, aoFalhar: n }) {
|
|
|
6629
6652
|
aparencia: "texto",
|
|
6630
6653
|
dica: "Ampliar",
|
|
6631
6654
|
"aria-label": "Ampliar",
|
|
6632
|
-
disabled: r ===
|
|
6655
|
+
disabled: r === Wo.length - 1,
|
|
6633
6656
|
onClick: () => p(r + 1)
|
|
6634
6657
|
}),
|
|
6635
6658
|
/* @__PURE__ */ H($, {
|
|
@@ -6654,13 +6677,13 @@ function Ho({ url: e, nome: t, aoFalhar: n }) {
|
|
|
6654
6677
|
}
|
|
6655
6678
|
//#endregion
|
|
6656
6679
|
//#region src/components/Arquivo/DialogoArquivo.tsx
|
|
6657
|
-
var
|
|
6658
|
-
function
|
|
6680
|
+
var Jo = "video, audio, input, textarea, select, [contenteditable=\"\"], [contenteditable=\"true\"]";
|
|
6681
|
+
function Yo({ aberto: e, aoFechar: t, arquivos: n, indice: r, aoMudarIndice: i }) {
|
|
6659
6682
|
let a = n.length, o = Math.max(0, Math.min(r, a - 1)), s = n[o] ?? null;
|
|
6660
6683
|
return K(() => {
|
|
6661
6684
|
if (!e || a < 2) return;
|
|
6662
6685
|
let t = (e) => {
|
|
6663
|
-
e.target?.closest?.(
|
|
6686
|
+
e.target?.closest?.(Jo) || (e.key === "ArrowLeft" && o > 0 ? i(o - 1) : e.key === "ArrowRight" && o < a - 1 && i(o + 1));
|
|
6664
6687
|
};
|
|
6665
6688
|
return document.addEventListener("keydown", t), () => document.removeEventListener("keydown", t);
|
|
6666
6689
|
}, [
|
|
@@ -6668,7 +6691,7 @@ function Wo({ aberto: e, aoFechar: t, arquivos: n, indice: r, aoMudarIndice: i }
|
|
|
6668
6691
|
a,
|
|
6669
6692
|
o,
|
|
6670
6693
|
i
|
|
6671
|
-
]), /* @__PURE__ */ H(
|
|
6694
|
+
]), /* @__PURE__ */ H(ra, {
|
|
6672
6695
|
aberto: e,
|
|
6673
6696
|
aoFechar: t,
|
|
6674
6697
|
tamanho: "full",
|
|
@@ -6702,14 +6725,14 @@ function Wo({ aberto: e, aoFechar: t, arquivos: n, indice: r, aoMudarIndice: i }
|
|
|
6702
6725
|
onClick: () => i(o + 1)
|
|
6703
6726
|
})
|
|
6704
6727
|
] }) : void 0,
|
|
6705
|
-
children: /* @__PURE__ */ H(
|
|
6728
|
+
children: /* @__PURE__ */ H(Go, { arquivo: s })
|
|
6706
6729
|
});
|
|
6707
6730
|
}
|
|
6708
6731
|
//#endregion
|
|
6709
6732
|
//#region src/components/Arquivo/CampoAnexo.tsx
|
|
6710
|
-
var
|
|
6711
|
-
let { id: m, msgId: h } =
|
|
6712
|
-
Ot(p, () => ({ arquivoDe: (e) => _.current.get(
|
|
6733
|
+
var Xo = (e) => `${e.nome}|${e.tamanho}`, Zo = Et(function({ rotulo: e, dica: t, erro: n, aviso: r, className: i, id: a, valor: o = [], aoMudar: s, accept: c, multiple: l = !0, maxTamanho: u = 0, minimo: d = 0, disabled: f = !1 }, p) {
|
|
6734
|
+
let { id: m, msgId: h } = Mi(a), g = J(null), _ = J(/* @__PURE__ */ new Map()), v = J(/* @__PURE__ */ new Map()), [y, b] = Y(!1), [x, S] = Y(""), [C, w] = Y(null), [T, E] = Y(!1), D = G(ki);
|
|
6735
|
+
Ot(p, () => ({ arquivoDe: (e) => _.current.get(Xo(e)) ?? null }), []), K(() => () => v.current.forEach((e) => URL.revokeObjectURL(e)), []);
|
|
6713
6736
|
let O = (e) => {
|
|
6714
6737
|
if (!e?.length || f) return;
|
|
6715
6738
|
E(!0);
|
|
@@ -6719,7 +6742,7 @@ var Go = (e) => `${e.nome}|${e.tamanho}`, Ko = Et(function({ rotulo: e, dica: t,
|
|
|
6719
6742
|
n.push(r.name);
|
|
6720
6743
|
continue;
|
|
6721
6744
|
}
|
|
6722
|
-
let e =
|
|
6745
|
+
let e = Xo({
|
|
6723
6746
|
nome: r.name,
|
|
6724
6747
|
tamanho: r.size
|
|
6725
6748
|
});
|
|
@@ -6735,16 +6758,16 @@ var Go = (e) => `${e.nome}|${e.tamanho}`, Ko = Et(function({ rotulo: e, dica: t,
|
|
|
6735
6758
|
if (S(n.length ? `${mn(n)} excede${n.length > 1 ? "m" : ""} ${Kn(u)}.` : ""), t.length) {
|
|
6736
6759
|
if (!l) s?.(t.slice(0, 1));
|
|
6737
6760
|
else {
|
|
6738
|
-
let e = new Set(o.map(
|
|
6739
|
-
s?.([...o, ...t.filter((t) => !e.has(
|
|
6761
|
+
let e = new Set(o.map(Xo));
|
|
6762
|
+
s?.([...o, ...t.filter((t) => !e.has(Xo(t)))]);
|
|
6740
6763
|
}
|
|
6741
6764
|
}
|
|
6742
6765
|
}, k = (e) => {
|
|
6743
|
-
E(!0), s?.(o.filter((t) =>
|
|
6766
|
+
E(!0), s?.(o.filter((t) => Xo(t) !== Xo(e)));
|
|
6744
6767
|
}, A = (e) => {
|
|
6745
6768
|
e.preventDefault(), b(!1), O(e.dataTransfer.files);
|
|
6746
6769
|
}, j = d > 0 && o.length < d && (T || D > 0), M = n || x || (j ? d === 1 ? "Anexe pelo menos um arquivo" : `Anexe pelo menos ${d} arquivos` : void 0);
|
|
6747
|
-
return /* @__PURE__ */ U(
|
|
6770
|
+
return /* @__PURE__ */ U(Pi, {
|
|
6748
6771
|
rotulo: e,
|
|
6749
6772
|
dica: t,
|
|
6750
6773
|
erro: M,
|
|
@@ -6817,15 +6840,15 @@ var Go = (e) => `${e.nome}|${e.tamanho}`, Ko = Et(function({ rotulo: e, dica: t,
|
|
|
6817
6840
|
children: Kn(e.tamanho)
|
|
6818
6841
|
})]
|
|
6819
6842
|
})]
|
|
6820
|
-
}), !f && /* @__PURE__ */ H(
|
|
6843
|
+
}), !f && /* @__PURE__ */ H(Aa, {
|
|
6821
6844
|
icone: "x",
|
|
6822
6845
|
rotulo: `Remover ${e.nome}`,
|
|
6823
6846
|
severidade: "err",
|
|
6824
6847
|
onClick: () => k(e)
|
|
6825
6848
|
})]
|
|
6826
|
-
},
|
|
6849
|
+
}, Xo(e)))
|
|
6827
6850
|
}),
|
|
6828
|
-
/* @__PURE__ */ H(
|
|
6851
|
+
/* @__PURE__ */ H(Yo, {
|
|
6829
6852
|
aberto: C !== null,
|
|
6830
6853
|
aoFechar: () => w(null),
|
|
6831
6854
|
arquivos: o,
|
|
@@ -6834,18 +6857,18 @@ var Go = (e) => `${e.nome}|${e.tamanho}`, Ko = Et(function({ rotulo: e, dica: t,
|
|
|
6834
6857
|
})
|
|
6835
6858
|
]
|
|
6836
6859
|
});
|
|
6837
|
-
}),
|
|
6860
|
+
}), Qo = {
|
|
6838
6861
|
sm: "3rem",
|
|
6839
6862
|
md: "4.5rem",
|
|
6840
6863
|
lg: "6rem"
|
|
6841
|
-
},
|
|
6864
|
+
}, $o = (e) => (e == null ? [] : Array.isArray(e) ? e : [e]).map((e) => typeof e == "string" ? {
|
|
6842
6865
|
nome: "",
|
|
6843
6866
|
tamanho: 0,
|
|
6844
6867
|
tipo: "image/*",
|
|
6845
6868
|
url: e
|
|
6846
6869
|
} : e).filter((e) => !!e?.url?.trim());
|
|
6847
|
-
function
|
|
6848
|
-
let f =
|
|
6870
|
+
function es({ fotos: e, nome: t, tamanho: n = "md", altura: r, largura: i, ampliavel: a = !1, indice: o, aoMudarIndice: s, aoAmpliar: c, semFoto: l, sobreposto: u, className: d }) {
|
|
6871
|
+
let f = $o(e), [p, m] = Y(0), [h, g] = Y(!1), _ = Math.max(0, Math.min(o ?? p, f.length - 1)), v = (e) => {
|
|
6849
6872
|
m(e), s?.(e);
|
|
6850
6873
|
}, y = f[_], b = {
|
|
6851
6874
|
height: r,
|
|
@@ -6854,11 +6877,11 @@ function Yo({ fotos: e, nome: t, tamanho: n = "md", altura: r, largura: i, ampli
|
|
|
6854
6877
|
if (!y) return /* @__PURE__ */ U("div", {
|
|
6855
6878
|
className: X("lp-foto", `lp-foto--${n}`, d),
|
|
6856
6879
|
style: b,
|
|
6857
|
-
children: [l ?? /* @__PURE__ */ H(
|
|
6880
|
+
children: [l ?? /* @__PURE__ */ H(oi, {
|
|
6858
6881
|
nome: t,
|
|
6859
6882
|
tom: "escuro",
|
|
6860
6883
|
formato: "quadrado",
|
|
6861
|
-
tamanho:
|
|
6884
|
+
tamanho: Qo[n]
|
|
6862
6885
|
}), u && /* @__PURE__ */ H("div", {
|
|
6863
6886
|
className: "lp-foto-sobreposto",
|
|
6864
6887
|
children: u
|
|
@@ -6896,7 +6919,7 @@ function Yo({ fotos: e, nome: t, tamanho: n = "md", altura: r, largura: i, ampli
|
|
|
6896
6919
|
className: "lp-foto-sobreposto",
|
|
6897
6920
|
children: u
|
|
6898
6921
|
}),
|
|
6899
|
-
a && /* @__PURE__ */ H(
|
|
6922
|
+
a && /* @__PURE__ */ H(Yo, {
|
|
6900
6923
|
aberto: h,
|
|
6901
6924
|
aoFechar: () => g(!1),
|
|
6902
6925
|
arquivos: f.map((e, t) => ({
|
|
@@ -6910,6 +6933,6 @@ function Yo({ fotos: e, nome: t, tamanho: n = "md", altura: r, largura: i, ampli
|
|
|
6910
6933
|
});
|
|
6911
6934
|
}
|
|
6912
6935
|
//#endregion
|
|
6913
|
-
export {
|
|
6936
|
+
export { _a as Aba, va as Abas, Aa as AcaoLinha, Oa as Acordeao, Oi as Alerta, Za as Avaliacao, oi as Avatar, to as BUSCA_ATRASO_MS, So as Badge, Ia as Balao, ua as BarraBotoes, Ei as BoasVindas, $ as Botao, Oo as BotaoFechar, ci as Busca, Si as CabecalhoPagina, Pi as Campo, Zo as CampoAnexo, ro as CampoBusca, Vi as CampoCep, Gi as CampoChassi, io as CampoCidade, Ki as CampoCnh, zi as CampoCnpj, Ri as CampoCpf, Bi as CampoCpfCnpj, Yi as CampoData, Zi as CampoDataHora, Ui as CampoEmail, Xi as CampoHora, qi as CampoImei, ea as CampoInteiro, Fi as CampoMarcacao, Bo as CampoMensagem, $i as CampoMoeda, Hi as CampoPlaca, Wi as CampoRenavam, Ua as CampoSelect, Wa as CampoSelectMultiplo, na as CampoSenha, Ji as CampoTelefone, Ba as CampoTextarea, Ii as CampoTexto, Ja as CampoTipoPessoa, Ka as CampoUf, qa as CampoUfMultiplo, ya as Card, ko as Carregando, Ca as Carrossel, Qa as Chip, To as Citacao, Co as ComBadge, Io as Conversa, xo as Detalhes, ra as Dialogo, Yo as DialogoArquivo, Dr as Dica, un as ESTADOS, Ya as Escolha, xi as Estrutura, Do as Figura, $a as Filtros, Ra as Form, za as FormSecao, es as Foto, jo as Girador, la as GrupoAlternancia, ca as GrupoBotoes, ba as GrupoCards, Z as Icone, Eo as Imagem, yo as Indicador, bo as Indicadores, ka as ItemAcordeao, ho as ItemLista, mo as Lista, go as ListaCards, Ht as MASCARAS, Ai as MSG_OBRIGATORIO, Ro as Mensagem, ga as MenuSuspenso, fn as OPCOES_ESTADOS, ur as PICKLIST_VAZIO, ar as POLITICA_PADRAO, oo as Paginacao, eo as Picklist, wo as Placa, Po as Progresso, Fr as ProvedorConfirmacao, ei as ProvedorPreferencias, Vr as ProvedorToast, ni as ProvedorUi, Ea as QuadroArrastavel, xa as Recolhivel, Uo as Referencias, ki as RevelarCamposCtx, tr as SEVERIDADES, so as Skeleton, ia as Status, ln as TIPOS_CAMPO, Ut as TIPOS_DE_CAMPO, pn as TIPOS_PESSOA, po as Tabela, sa as TelaErro, oa as TelaLogin, Rr as Toast, mi as Trilha, dn as UF_SIGLAS, co as Vazio, Go as VisualizadorArquivo, er as apiDefinida, Vt as aplicarMascara, fi as caminhoNoMenu, X as cx, Vn as dataBrParaIso, Xn as decodificarJwt, ir as ehSeveridade, Zn as expiracaoJwt, vr as filtrarItens, cr as forcaSenha, Kn as formatBytes, An as formatCpfCnpj, Fn as formatDataBr, zn as formatDataHoraBr, Ln as formatHoraBr, En as formatarNumero, Yn as iconeArquivo, On as iniciais, Zt as isCep, tn as isChassi, nn as isCnh, Jt as isCnpj, qt as isCpf, Yt as isCpfCnpj, on as isData, sn as isDataHora, Xt as isEmail, an as isHora, rn as isImei, $t as isPlaca, en as isRenavam, Qt as isTelefone, Bn as isoParaDataBr, Qn as jwtExpirado, Cn as lerCampo, mn as listaPorExtenso, $n as margemRefreshJwt, pr as moverParaAlvo, mr as moverParaFonte, hr as moverTudoParaAlvo, gr as moverTudoParaFonte, Mn as nomeCurto, Wn as nomeDeArquivo, jn as nomeProprio, kn as normalizar, dr as normalizarPicklistValor, xn as numeroPorExtenso, Pn as parseDataBr, Rn as parseDataHoraBr, In as parseHoraBr, Pt as registrarIcones, _r as reordenarLista, Dn as saudacaoPorHora, $r as scriptTemaInicial, Bt as semMascara, lr as senhasIguais, rr as severidadeCor, Jn as tipoDeArquivo, Un as tituloDeEntidade, no as useBuscaAssincrona, Mi as useCampoIds, Ir as useConfirmacao, ti as usePreferencias, ri as usePreferenciasOpcional, Hr as useToast, di as useTrilha, ji as useValidacaoCampo, Q as validar, sr as validarSenha, cn as validarTelefone, lo as valorDoCampo, Sn as valorMonetarioPorExtenso };
|
|
6914
6937
|
|
|
6915
6938
|
//# sourceMappingURL=index.js.map
|