@ciromaciel/components-kit 1.1.1 → 1.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/dist/index.esm.js +180 -178
- package/dist/index.js +3 -3
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -208,18 +208,18 @@ const zr = be({
|
|
|
208
208
|
}
|
|
209
209
|
}
|
|
210
210
|
});
|
|
211
|
-
function ge({ badge: a, subtitle:
|
|
212
|
-
return !l && !
|
|
211
|
+
function ge({ badge: a, subtitle: d, title: l, titleOrder: n = 2, titleFz: t = "var(--fz-section-title)", ta: c = "left", maw: m }) {
|
|
212
|
+
return !l && !d && !a ? null : /* @__PURE__ */ r(
|
|
213
213
|
u,
|
|
214
214
|
{
|
|
215
215
|
gap: "xs",
|
|
216
|
-
align:
|
|
217
|
-
ta:
|
|
216
|
+
align: c === "center" ? "center" : "flex-start",
|
|
217
|
+
ta: c,
|
|
218
218
|
children: [
|
|
219
219
|
a && /* @__PURE__ */ e(
|
|
220
220
|
f,
|
|
221
221
|
{
|
|
222
|
-
justify:
|
|
222
|
+
justify: c === "center" ? "center" : "flex-start",
|
|
223
223
|
mb: "xs",
|
|
224
224
|
children: /* @__PURE__ */ e(
|
|
225
225
|
j,
|
|
@@ -233,7 +233,7 @@ function ge({ badge: a, subtitle: c, title: l, titleOrder: n = 2, titleFz: t = "
|
|
|
233
233
|
)
|
|
234
234
|
}
|
|
235
235
|
),
|
|
236
|
-
|
|
236
|
+
d && /* @__PURE__ */ e(
|
|
237
237
|
i,
|
|
238
238
|
{
|
|
239
239
|
c: "gray.4",
|
|
@@ -241,7 +241,7 @@ function ge({ badge: a, subtitle: c, title: l, titleOrder: n = 2, titleFz: t = "
|
|
|
241
241
|
fw: 800,
|
|
242
242
|
tt: "uppercase",
|
|
243
243
|
ls: "1.5px",
|
|
244
|
-
children:
|
|
244
|
+
children: d
|
|
245
245
|
}
|
|
246
246
|
),
|
|
247
247
|
l && /* @__PURE__ */ e(
|
|
@@ -257,7 +257,7 @@ function ge({ badge: a, subtitle: c, title: l, titleOrder: n = 2, titleFz: t = "
|
|
|
257
257
|
}
|
|
258
258
|
);
|
|
259
259
|
}
|
|
260
|
-
function ue({ video: a, image:
|
|
260
|
+
function ue({ video: a, image: d, width: l = "100%", maw: n, alt: t }) {
|
|
261
261
|
return a ? /* @__PURE__ */ e(k, { children: /* @__PURE__ */ e(
|
|
262
262
|
b,
|
|
263
263
|
{
|
|
@@ -272,11 +272,11 @@ function ue({ video: a, image: c, width: l = "100%", maw: n, alt: t }) {
|
|
|
272
272
|
h: "auto",
|
|
273
273
|
style: { filter: a.filter || "none" }
|
|
274
274
|
}
|
|
275
|
-
) }) :
|
|
275
|
+
) }) : d ? /* @__PURE__ */ e(k, { children: /* @__PURE__ */ e(
|
|
276
276
|
b,
|
|
277
277
|
{
|
|
278
278
|
component: "img",
|
|
279
|
-
src:
|
|
279
|
+
src: d,
|
|
280
280
|
alt: t || "",
|
|
281
281
|
w: l,
|
|
282
282
|
h: "auto",
|
|
@@ -286,11 +286,11 @@ function ue({ video: a, image: c, width: l = "100%", maw: n, alt: t }) {
|
|
|
286
286
|
}
|
|
287
287
|
function M({
|
|
288
288
|
label: a,
|
|
289
|
-
href:
|
|
289
|
+
href: d,
|
|
290
290
|
onClick: l,
|
|
291
291
|
icon: n,
|
|
292
292
|
size: t = "lg",
|
|
293
|
-
variant:
|
|
293
|
+
variant: c = "filled",
|
|
294
294
|
color: m,
|
|
295
295
|
target: h,
|
|
296
296
|
px: p,
|
|
@@ -303,13 +303,13 @@ function M({
|
|
|
303
303
|
W,
|
|
304
304
|
{
|
|
305
305
|
size: t,
|
|
306
|
-
component:
|
|
307
|
-
href:
|
|
306
|
+
component: d ? "a" : "button",
|
|
307
|
+
href: d,
|
|
308
308
|
onClick: l,
|
|
309
309
|
target: h,
|
|
310
310
|
rightSection: n,
|
|
311
311
|
leftSection: g,
|
|
312
|
-
variant:
|
|
312
|
+
variant: c,
|
|
313
313
|
color: m,
|
|
314
314
|
px: p,
|
|
315
315
|
fullWidth: s,
|
|
@@ -319,12 +319,12 @@ function M({
|
|
|
319
319
|
}
|
|
320
320
|
);
|
|
321
321
|
}
|
|
322
|
-
function Qe({ children: a, fz:
|
|
322
|
+
function Qe({ children: a, fz: d = 28, c: l = "gray.9", ...n }) {
|
|
323
323
|
return /* @__PURE__ */ e(
|
|
324
324
|
i,
|
|
325
325
|
{
|
|
326
326
|
component: "span",
|
|
327
|
-
fz:
|
|
327
|
+
fz: d,
|
|
328
328
|
fw: 900,
|
|
329
329
|
lh: 1,
|
|
330
330
|
c: l,
|
|
@@ -335,18 +335,18 @@ function Qe({ children: a, fz: c = 28, c: l = "gray.9", ...n }) {
|
|
|
335
335
|
}
|
|
336
336
|
);
|
|
337
337
|
}
|
|
338
|
-
function Z({ logo: a, objectPosition:
|
|
338
|
+
function Z({ logo: a, objectPosition: d = "left" }) {
|
|
339
339
|
return a ? Ae(a) ? a : typeof a == "object" && a.src ? /* @__PURE__ */ e(
|
|
340
340
|
"img",
|
|
341
341
|
{
|
|
342
342
|
src: a.src,
|
|
343
343
|
alt: a.alt || "",
|
|
344
344
|
height: a.height || 32,
|
|
345
|
-
style: { objectFit: "contain", objectPosition:
|
|
345
|
+
style: { objectFit: "contain", objectPosition: d }
|
|
346
346
|
}
|
|
347
347
|
) : a : null;
|
|
348
348
|
}
|
|
349
|
-
function Ye({ children: a, label:
|
|
349
|
+
function Ye({ children: a, label: d, chrome: l = !0, copy: n = !0, variant: t = "dark", style: c }) {
|
|
350
350
|
const m = typeof a == "string" ? a : String(a ?? ""), h = m.split(`
|
|
351
351
|
`).filter((o) => o.trimStart().startsWith("$ ")), p = h.length ? h.map((o) => o.trimStart().slice(2)).join(`
|
|
352
352
|
`) : m, s = t === "dark", g = s ? {
|
|
@@ -375,7 +375,7 @@ function Ye({ children: a, label: c, chrome: l = !0, copy: n = !0, variant: t =
|
|
|
375
375
|
// sem reticências. `hidden` só na vertical preserva o recorte
|
|
376
376
|
// do cabeçalho; a horizontal fica com o <pre>, que tem auto.
|
|
377
377
|
overflowY: "hidden",
|
|
378
|
-
...
|
|
378
|
+
...c
|
|
379
379
|
},
|
|
380
380
|
children: [
|
|
381
381
|
l && /* @__PURE__ */ r(
|
|
@@ -405,7 +405,7 @@ function Ye({ children: a, label: c, chrome: l = !0, copy: n = !0, variant: t =
|
|
|
405
405
|
},
|
|
406
406
|
o
|
|
407
407
|
)),
|
|
408
|
-
|
|
408
|
+
d && /* @__PURE__ */ e(
|
|
409
409
|
b,
|
|
410
410
|
{
|
|
411
411
|
component: "span",
|
|
@@ -416,7 +416,7 @@ function Ye({ children: a, label: c, chrome: l = !0, copy: n = !0, variant: t =
|
|
|
416
416
|
letterSpacing: "0.5px",
|
|
417
417
|
color: g.label
|
|
418
418
|
},
|
|
419
|
-
children:
|
|
419
|
+
children: d
|
|
420
420
|
}
|
|
421
421
|
)
|
|
422
422
|
]
|
|
@@ -481,8 +481,8 @@ const J = {
|
|
|
481
481
|
white: "white",
|
|
482
482
|
gray: "gray.1"
|
|
483
483
|
}, N = (a) => a === "gray.9" || a === "dark" ? J.gray : a === "white" ? J.white : J.gray;
|
|
484
|
-
function P({ children: a, badge:
|
|
485
|
-
const g = N(
|
|
484
|
+
function P({ children: a, badge: d, title: l, subtitle: n, id: t, background: c = "white", py: m = { base: 80, md: 120 }, maw: h = 800, ta: p = "left", stackGap: s = "xl" }) {
|
|
485
|
+
const g = N(c);
|
|
486
486
|
return /* @__PURE__ */ e(
|
|
487
487
|
b,
|
|
488
488
|
{
|
|
@@ -495,7 +495,7 @@ function P({ children: a, badge: c, title: l, subtitle: n, id: t, background: d
|
|
|
495
495
|
/* @__PURE__ */ e(
|
|
496
496
|
ge,
|
|
497
497
|
{
|
|
498
|
-
badge:
|
|
498
|
+
badge: d,
|
|
499
499
|
subtitle: n,
|
|
500
500
|
title: l,
|
|
501
501
|
ta: p,
|
|
@@ -507,7 +507,7 @@ function P({ children: a, badge: c, title: l, subtitle: n, id: t, background: d
|
|
|
507
507
|
}
|
|
508
508
|
);
|
|
509
509
|
}
|
|
510
|
-
function Sr({ brand: a, label:
|
|
510
|
+
function Sr({ brand: a, label: d = "Verificando sua sessão...", ...l }) {
|
|
511
511
|
return /* @__PURE__ */ e(
|
|
512
512
|
we,
|
|
513
513
|
{
|
|
@@ -542,7 +542,7 @@ function Sr({ brand: a, label: c = "Verificando sua sessão...", ...l }) {
|
|
|
542
542
|
fw: 500,
|
|
543
543
|
fz: "sm",
|
|
544
544
|
c: "gray.6",
|
|
545
|
-
children:
|
|
545
|
+
children: d
|
|
546
546
|
}
|
|
547
547
|
)
|
|
548
548
|
]
|
|
@@ -551,7 +551,7 @@ function Sr({ brand: a, label: c = "Verificando sua sessão...", ...l }) {
|
|
|
551
551
|
}
|
|
552
552
|
);
|
|
553
553
|
}
|
|
554
|
-
function Ir({ children: a, style:
|
|
554
|
+
function Ir({ children: a, style: d, ...l }) {
|
|
555
555
|
return /* @__PURE__ */ e(
|
|
556
556
|
b,
|
|
557
557
|
{
|
|
@@ -561,14 +561,14 @@ function Ir({ children: a, style: c, ...l }) {
|
|
|
561
561
|
flexDirection: "column",
|
|
562
562
|
minHeight: "100vh",
|
|
563
563
|
scrollBehavior: "smooth",
|
|
564
|
-
...
|
|
564
|
+
...d
|
|
565
565
|
},
|
|
566
566
|
children: a
|
|
567
567
|
}
|
|
568
568
|
);
|
|
569
569
|
}
|
|
570
|
-
function Xe({ logo: a, logoLink:
|
|
571
|
-
const m = N(
|
|
570
|
+
function Xe({ logo: a, logoLink: d, navLinks: l = [], loginCta: n, signupCta: t, background: c = "white" }) {
|
|
571
|
+
const m = N(c), [h] = _e(), p = h.y > 10, s = (o) => {
|
|
572
572
|
o === "top" ? window.scrollTo({ top: 0, behavior: "smooth" }) : document.getElementById(o)?.scrollIntoView({ behavior: "smooth" });
|
|
573
573
|
}, g = (o, y) => {
|
|
574
574
|
(o.key === "Enter" || o.key === " ") && (o.preventDefault(), s(y));
|
|
@@ -605,8 +605,8 @@ function Xe({ logo: a, logoLink: c, navLinks: l = [], loginCta: n, signupCta: t,
|
|
|
605
605
|
children: [
|
|
606
606
|
a && (() => {
|
|
607
607
|
const o = { display: "inline-flex", textDecoration: "none" };
|
|
608
|
-
if (
|
|
609
|
-
const { component: y = "a", ...w } =
|
|
608
|
+
if (d) {
|
|
609
|
+
const { component: y = "a", ...w } = d;
|
|
610
610
|
return /* @__PURE__ */ e(
|
|
611
611
|
y,
|
|
612
612
|
{
|
|
@@ -725,7 +725,7 @@ const Tr = Xe, te = {
|
|
|
725
725
|
label: { whiteSpace: "normal", lineHeight: 1.4 },
|
|
726
726
|
inner: { paddingTop: 12, paddingBottom: 12 }
|
|
727
727
|
};
|
|
728
|
-
function Ar({ subtitle: a, title:
|
|
728
|
+
function Ar({ subtitle: a, title: d, description: l, cta: n, secondaryCta: t, note: c, video: m, image: h, background: p = "white", mediaMaw: s, titleFz: g = "var(--fz-hero)", descriptionFz: o = "xl" }) {
|
|
729
729
|
const y = !!(m || h);
|
|
730
730
|
return /* @__PURE__ */ e(
|
|
731
731
|
b,
|
|
@@ -752,7 +752,7 @@ function Ar({ subtitle: a, title: c, description: l, cta: n, secondaryCta: t, no
|
|
|
752
752
|
ge,
|
|
753
753
|
{
|
|
754
754
|
subtitle: a,
|
|
755
|
-
title:
|
|
755
|
+
title: d,
|
|
756
756
|
titleOrder: 1,
|
|
757
757
|
titleFz: g,
|
|
758
758
|
ta: y ? "inherit" : "center",
|
|
@@ -813,7 +813,7 @@ function Ar({ subtitle: a, title: c, description: l, cta: n, secondaryCta: t, no
|
|
|
813
813
|
]
|
|
814
814
|
}
|
|
815
815
|
) }),
|
|
816
|
-
|
|
816
|
+
c && /* @__PURE__ */ e(k, { children: /* @__PURE__ */ e(
|
|
817
817
|
i,
|
|
818
818
|
{
|
|
819
819
|
size: "sm",
|
|
@@ -821,7 +821,7 @@ function Ar({ subtitle: a, title: c, description: l, cta: n, secondaryCta: t, no
|
|
|
821
821
|
maw: 620,
|
|
822
822
|
fw: 500,
|
|
823
823
|
lh: 1.7,
|
|
824
|
-
children:
|
|
824
|
+
children: c
|
|
825
825
|
}
|
|
826
826
|
) })
|
|
827
827
|
]
|
|
@@ -842,10 +842,10 @@ function Ar({ subtitle: a, title: c, description: l, cta: n, secondaryCta: t, no
|
|
|
842
842
|
}
|
|
843
843
|
);
|
|
844
844
|
}
|
|
845
|
-
function Je({ logo: a, index:
|
|
845
|
+
function Je({ logo: a, index: d }) {
|
|
846
846
|
const l = {
|
|
847
847
|
src: a.src,
|
|
848
|
-
alt: a.alt || `Logo ${
|
|
848
|
+
alt: a.alt || `Logo ${d}`,
|
|
849
849
|
h: a.height || 50,
|
|
850
850
|
w: "auto",
|
|
851
851
|
style: {
|
|
@@ -870,7 +870,7 @@ function Je({ logo: a, index: c }) {
|
|
|
870
870
|
}
|
|
871
871
|
) }) : /* @__PURE__ */ e(k, { children: /* @__PURE__ */ e(H, { ...l }) });
|
|
872
872
|
}
|
|
873
|
-
function Pr({ id: a, title:
|
|
873
|
+
function Pr({ id: a, title: d, logos: l, background: n = "gray" }) {
|
|
874
874
|
return !l || l.length === 0 ? null : /* @__PURE__ */ e(
|
|
875
875
|
b,
|
|
876
876
|
{
|
|
@@ -886,7 +886,7 @@ function Pr({ id: a, title: c, logos: l, background: n = "gray" }) {
|
|
|
886
886
|
ta: "center",
|
|
887
887
|
gap: "xl",
|
|
888
888
|
children: [
|
|
889
|
-
|
|
889
|
+
d && /* @__PURE__ */ e(
|
|
890
890
|
i,
|
|
891
891
|
{
|
|
892
892
|
fw: 500,
|
|
@@ -894,7 +894,7 @@ function Pr({ id: a, title: c, logos: l, background: n = "gray" }) {
|
|
|
894
894
|
size: "sm",
|
|
895
895
|
tt: "uppercase",
|
|
896
896
|
ls: "0.1em",
|
|
897
|
-
children:
|
|
897
|
+
children: d
|
|
898
898
|
}
|
|
899
899
|
),
|
|
900
900
|
/* @__PURE__ */ e(
|
|
@@ -904,13 +904,13 @@ function Pr({ id: a, title: c, logos: l, background: n = "gray" }) {
|
|
|
904
904
|
gap: { base: 40, md: 80 },
|
|
905
905
|
style: { rowGap: 40 },
|
|
906
906
|
w: "100%",
|
|
907
|
-
children: l.map((t,
|
|
907
|
+
children: l.map((t, c) => /* @__PURE__ */ e(
|
|
908
908
|
Je,
|
|
909
909
|
{
|
|
910
910
|
logo: t,
|
|
911
|
-
index:
|
|
911
|
+
index: c
|
|
912
912
|
},
|
|
913
|
-
|
|
913
|
+
c
|
|
914
914
|
))
|
|
915
915
|
}
|
|
916
916
|
)
|
|
@@ -920,8 +920,8 @@ function Pr({ id: a, title: c, logos: l, background: n = "gray" }) {
|
|
|
920
920
|
}
|
|
921
921
|
);
|
|
922
922
|
}
|
|
923
|
-
function qr({ id: a, subtitle:
|
|
924
|
-
const y =
|
|
923
|
+
function qr({ id: a, subtitle: d, title: l, description: n, descriptionFz: t, featuresList: c, cta: m, video: h, image: p, reverse: s = !1, background: g = "white", mediaMaw: o }) {
|
|
924
|
+
const y = c && c.length > 0 && /* @__PURE__ */ e(
|
|
925
925
|
V,
|
|
926
926
|
{
|
|
927
927
|
spacing: "md",
|
|
@@ -942,7 +942,7 @@ function qr({ id: a, subtitle: c, title: l, description: n, descriptionFz: t, fe
|
|
|
942
942
|
)
|
|
943
943
|
}
|
|
944
944
|
),
|
|
945
|
-
children:
|
|
945
|
+
children: c.map((D, S) => /* @__PURE__ */ e(V.Item, { children: D }, S))
|
|
946
946
|
}
|
|
947
947
|
), w = /* @__PURE__ */ r(
|
|
948
948
|
u,
|
|
@@ -1010,7 +1010,7 @@ function qr({ id: a, subtitle: c, title: l, description: n, descriptionFz: t, fe
|
|
|
1010
1010
|
P,
|
|
1011
1011
|
{
|
|
1012
1012
|
id: a,
|
|
1013
|
-
subtitle:
|
|
1013
|
+
subtitle: d,
|
|
1014
1014
|
title: l,
|
|
1015
1015
|
background: g,
|
|
1016
1016
|
children: /* @__PURE__ */ e(
|
|
@@ -1031,15 +1031,15 @@ function qr({ id: a, subtitle: c, title: l, description: n, descriptionFz: t, fe
|
|
|
1031
1031
|
}
|
|
1032
1032
|
);
|
|
1033
1033
|
}
|
|
1034
|
-
function Dr({ id: a, badge:
|
|
1034
|
+
function Dr({ id: a, badge: d, subtitle: l, title: n, description: t, background: c = "gray", items: m = [], ta: h = "left", note: p }) {
|
|
1035
1035
|
return /* @__PURE__ */ r(
|
|
1036
1036
|
P,
|
|
1037
1037
|
{
|
|
1038
1038
|
id: a,
|
|
1039
|
-
badge:
|
|
1039
|
+
badge: d,
|
|
1040
1040
|
subtitle: l,
|
|
1041
1041
|
title: n,
|
|
1042
|
-
background:
|
|
1042
|
+
background: c,
|
|
1043
1043
|
ta: h,
|
|
1044
1044
|
maw: h === "center" ? 900 : 800,
|
|
1045
1045
|
children: [
|
|
@@ -1082,11 +1082,11 @@ function Dr({ id: a, badge: c, subtitle: l, title: n, description: t, background
|
|
|
1082
1082
|
}
|
|
1083
1083
|
function Ze({
|
|
1084
1084
|
icon: a,
|
|
1085
|
-
iconVariant:
|
|
1085
|
+
iconVariant: d,
|
|
1086
1086
|
iconColor: l,
|
|
1087
1087
|
label: n,
|
|
1088
1088
|
title: t,
|
|
1089
|
-
titleSize:
|
|
1089
|
+
titleSize: c,
|
|
1090
1090
|
description: m,
|
|
1091
1091
|
descriptionSize: h,
|
|
1092
1092
|
descriptionMaw: p,
|
|
@@ -1115,7 +1115,7 @@ function Ze({
|
|
|
1115
1115
|
{
|
|
1116
1116
|
size: 48,
|
|
1117
1117
|
radius: "0",
|
|
1118
|
-
variant:
|
|
1118
|
+
variant: d || "light",
|
|
1119
1119
|
color: l || "gray",
|
|
1120
1120
|
mb: "lg",
|
|
1121
1121
|
children: /* @__PURE__ */ e(
|
|
@@ -1142,7 +1142,7 @@ function Ze({
|
|
|
1142
1142
|
t && /* @__PURE__ */ e(
|
|
1143
1143
|
i,
|
|
1144
1144
|
{
|
|
1145
|
-
fz:
|
|
1145
|
+
fz: c || (w === "compact" ? "h4" : "h3"),
|
|
1146
1146
|
fw: 900,
|
|
1147
1147
|
lh: 1.2,
|
|
1148
1148
|
mb: "sm",
|
|
@@ -1375,11 +1375,11 @@ function ne(a) {
|
|
|
1375
1375
|
gap: 8,
|
|
1376
1376
|
h: a.height || 100,
|
|
1377
1377
|
preventGrowOverflow: !1,
|
|
1378
|
-
children: (a.data || []).map((
|
|
1378
|
+
children: (a.data || []).map((d, l) => /* @__PURE__ */ e(
|
|
1379
1379
|
b,
|
|
1380
1380
|
{
|
|
1381
1381
|
w: 20,
|
|
1382
|
-
h: `${
|
|
1382
|
+
h: `${d}%`,
|
|
1383
1383
|
bg: l === a.highlight ? "gray.5" : "gray.2",
|
|
1384
1384
|
radius: "0"
|
|
1385
1385
|
},
|
|
@@ -1408,9 +1408,9 @@ function ne(a) {
|
|
|
1408
1408
|
}
|
|
1409
1409
|
);
|
|
1410
1410
|
case "icon-large": {
|
|
1411
|
-
const
|
|
1412
|
-
return
|
|
1413
|
-
|
|
1411
|
+
const d = a.icon;
|
|
1412
|
+
return d ? /* @__PURE__ */ e(
|
|
1413
|
+
d,
|
|
1414
1414
|
{
|
|
1415
1415
|
size: a.size || 64,
|
|
1416
1416
|
stroke: a.stroke || 1,
|
|
@@ -1422,15 +1422,15 @@ function ne(a) {
|
|
|
1422
1422
|
return null;
|
|
1423
1423
|
}
|
|
1424
1424
|
}
|
|
1425
|
-
function Fr({ id: a, subtitle:
|
|
1425
|
+
function Fr({ id: a, subtitle: d, title: l, items: n = [], cols: t, background: c = "white", ta: m = "center", note: h }) {
|
|
1426
1426
|
const p = t ?? Math.min(Math.max(n.length, 1), 4);
|
|
1427
1427
|
return /* @__PURE__ */ r(
|
|
1428
1428
|
P,
|
|
1429
1429
|
{
|
|
1430
1430
|
id: a,
|
|
1431
|
-
subtitle:
|
|
1431
|
+
subtitle: d,
|
|
1432
1432
|
title: l,
|
|
1433
|
-
background:
|
|
1433
|
+
background: c,
|
|
1434
1434
|
ta: m,
|
|
1435
1435
|
maw: 900,
|
|
1436
1436
|
children: [
|
|
@@ -1518,11 +1518,11 @@ const U = {
|
|
|
1518
1518
|
loading: { color: "gray.4", chart: "gray.5", title: "Verificando os sistemas", badge: "Verificando" }
|
|
1519
1519
|
}, er = (a) => {
|
|
1520
1520
|
if (!a) return null;
|
|
1521
|
-
const
|
|
1522
|
-
return Number.isNaN(
|
|
1521
|
+
const d = new Date(a);
|
|
1522
|
+
return Number.isNaN(d.getTime()) ? null : d.toLocaleString("pt-BR", { dateStyle: "short", timeStyle: "medium" });
|
|
1523
1523
|
};
|
|
1524
|
-
function Er({ service: a, status:
|
|
1525
|
-
const h = m ? U.down : U[
|
|
1524
|
+
function Er({ service: a, status: d = "loading", checkedAt: l, checks: n = [], latency: t = [], uptime: c = [], error: m }) {
|
|
1525
|
+
const h = m ? U.down : U[d] || U.loading, p = er(l);
|
|
1526
1526
|
return /* @__PURE__ */ e(
|
|
1527
1527
|
b,
|
|
1528
1528
|
{
|
|
@@ -1592,13 +1592,13 @@ function Er({ service: a, status: c = "loading", checkedAt: l, checks: n = [], l
|
|
|
1592
1592
|
}
|
|
1593
1593
|
)
|
|
1594
1594
|
] }),
|
|
1595
|
-
(
|
|
1595
|
+
(c.length > 0 || t.length > 0) && /* @__PURE__ */ r(
|
|
1596
1596
|
A,
|
|
1597
1597
|
{
|
|
1598
1598
|
cols: { base: 1, md: 2 },
|
|
1599
1599
|
spacing: 48,
|
|
1600
1600
|
children: [
|
|
1601
|
-
|
|
1601
|
+
c.length > 0 && /* @__PURE__ */ r(u, { gap: "lg", children: [
|
|
1602
1602
|
/* @__PURE__ */ r(u, { gap: 4, children: [
|
|
1603
1603
|
/* @__PURE__ */ e(
|
|
1604
1604
|
i,
|
|
@@ -1619,7 +1619,7 @@ function Er({ service: a, status: c = "loading", checkedAt: l, checks: n = [], l
|
|
|
1619
1619
|
lh: 1,
|
|
1620
1620
|
lts: "-0.04em",
|
|
1621
1621
|
children: [
|
|
1622
|
-
(
|
|
1622
|
+
(c.reduce((s, g) => s + g.pct, 0) / c.length).toFixed(2),
|
|
1623
1623
|
/* @__PURE__ */ e(
|
|
1624
1624
|
i,
|
|
1625
1625
|
{
|
|
@@ -1641,7 +1641,7 @@ function Er({ service: a, status: c = "loading", checkedAt: l, checks: n = [], l
|
|
|
1641
1641
|
h: 140,
|
|
1642
1642
|
align: "flex-end",
|
|
1643
1643
|
wrap: "nowrap",
|
|
1644
|
-
children:
|
|
1644
|
+
children: c.map((s, g) => /* @__PURE__ */ e(
|
|
1645
1645
|
se,
|
|
1646
1646
|
{
|
|
1647
1647
|
label: `${s.day} · ${s.pct.toFixed(2)}%`,
|
|
@@ -1890,13 +1890,13 @@ const rr = {
|
|
|
1890
1890
|
down: { color: "red.7", label: "Interrupção em andamento" },
|
|
1891
1891
|
loading: { color: "gray.4", label: "Verificando status" }
|
|
1892
1892
|
}, Y = 20;
|
|
1893
|
-
function kr({ status: a = "loading", history:
|
|
1894
|
-
const
|
|
1893
|
+
function kr({ status: a = "loading", history: d = [], label: l, link: n, ...t }) {
|
|
1894
|
+
const c = oe[a] || oe.loading, m = d.slice(-Y), h = Array(Math.max(0, Y - m.length)).fill(null), p = [...h, ...m];
|
|
1895
1895
|
return /* @__PURE__ */ e(
|
|
1896
1896
|
de,
|
|
1897
1897
|
{
|
|
1898
1898
|
underline: "never",
|
|
1899
|
-
"aria-label": `${l ||
|
|
1899
|
+
"aria-label": `${l || c.label}. Ver página de status`,
|
|
1900
1900
|
...n,
|
|
1901
1901
|
...t,
|
|
1902
1902
|
children: /* @__PURE__ */ r(
|
|
@@ -1924,7 +1924,7 @@ function kr({ status: a = "loading", history: c = [], label: l, link: n, ...t })
|
|
|
1924
1924
|
y: 16 - o,
|
|
1925
1925
|
width: 3,
|
|
1926
1926
|
height: o,
|
|
1927
|
-
fill: s === null ? "var(--mantine-color-gray-2)" : `var(--mantine-color-${
|
|
1927
|
+
fill: s === null ? "var(--mantine-color-gray-2)" : `var(--mantine-color-${c.color.replace(".", "-")})`,
|
|
1928
1928
|
opacity: s === null ? 0.6 : 0.55 + w / y * 0.45
|
|
1929
1929
|
},
|
|
1930
1930
|
g
|
|
@@ -1941,7 +1941,7 @@ function kr({ status: a = "loading", history: c = [], label: l, link: n, ...t })
|
|
|
1941
1941
|
ls: "1px",
|
|
1942
1942
|
c: "gray.5",
|
|
1943
1943
|
style: { whiteSpace: "nowrap" },
|
|
1944
|
-
children: l ||
|
|
1944
|
+
children: l || c.label
|
|
1945
1945
|
}
|
|
1946
1946
|
)
|
|
1947
1947
|
]
|
|
@@ -1950,12 +1950,12 @@ function kr({ status: a = "loading", history: c = [], label: l, link: n, ...t })
|
|
|
1950
1950
|
}
|
|
1951
1951
|
);
|
|
1952
1952
|
}
|
|
1953
|
-
function Br({ id: a, subtitle:
|
|
1953
|
+
function Br({ id: a, subtitle: d, title: l, description: n, items: t = [], ctaIcon: c, note: m, background: h = "white", ta: p = "center" }) {
|
|
1954
1954
|
return /* @__PURE__ */ r(
|
|
1955
1955
|
P,
|
|
1956
1956
|
{
|
|
1957
1957
|
id: a,
|
|
1958
|
-
subtitle:
|
|
1958
|
+
subtitle: d,
|
|
1959
1959
|
title: l,
|
|
1960
1960
|
background: h,
|
|
1961
1961
|
ta: p,
|
|
@@ -2066,7 +2066,7 @@ function Br({ id: a, subtitle: c, title: l, description: n, items: t = [], ctaIc
|
|
|
2066
2066
|
variant: "default",
|
|
2067
2067
|
size: "md",
|
|
2068
2068
|
radius: "0",
|
|
2069
|
-
rightSection:
|
|
2069
|
+
rightSection: c,
|
|
2070
2070
|
style: {
|
|
2071
2071
|
width: "100%",
|
|
2072
2072
|
justifyContent: "space-between",
|
|
@@ -2105,11 +2105,11 @@ function Br({ id: a, subtitle: c, title: l, description: n, items: t = [], ctaIc
|
|
|
2105
2105
|
}
|
|
2106
2106
|
function jr({
|
|
2107
2107
|
id: a,
|
|
2108
|
-
subtitle:
|
|
2108
|
+
subtitle: d,
|
|
2109
2109
|
title: l,
|
|
2110
2110
|
description: n,
|
|
2111
2111
|
items: t = [],
|
|
2112
|
-
categories:
|
|
2112
|
+
categories: c = [],
|
|
2113
2113
|
filtersLabel: m = "Filtrar por categoria",
|
|
2114
2114
|
note: h,
|
|
2115
2115
|
background: p = "white",
|
|
@@ -2134,7 +2134,7 @@ function jr({
|
|
|
2134
2134
|
P,
|
|
2135
2135
|
{
|
|
2136
2136
|
id: a,
|
|
2137
|
-
subtitle:
|
|
2137
|
+
subtitle: d,
|
|
2138
2138
|
title: l,
|
|
2139
2139
|
background: p,
|
|
2140
2140
|
ta: "center",
|
|
@@ -2151,7 +2151,7 @@ function jr({
|
|
|
2151
2151
|
children: n
|
|
2152
2152
|
}
|
|
2153
2153
|
),
|
|
2154
|
-
|
|
2154
|
+
c.length > 0 && /* @__PURE__ */ e(
|
|
2155
2155
|
f,
|
|
2156
2156
|
{
|
|
2157
2157
|
gap: "xs",
|
|
@@ -2161,7 +2161,7 @@ function jr({
|
|
|
2161
2161
|
role: "group",
|
|
2162
2162
|
"aria-label": m,
|
|
2163
2163
|
className: "rlg-shelf-filters",
|
|
2164
|
-
children:
|
|
2164
|
+
children: c.map((S) => /* @__PURE__ */ e(
|
|
2165
2165
|
Se,
|
|
2166
2166
|
{
|
|
2167
2167
|
onClick: () => o(S.id),
|
|
@@ -2214,7 +2214,7 @@ const fe = (a) => ({
|
|
|
2214
2214
|
target: a.target,
|
|
2215
2215
|
rel: a.target === "_blank" ? "noopener noreferrer" : void 0
|
|
2216
2216
|
});
|
|
2217
|
-
function ar({ item: a, ctaLabel:
|
|
2217
|
+
function ar({ item: a, ctaLabel: d }) {
|
|
2218
2218
|
const l = a.icon;
|
|
2219
2219
|
return /* @__PURE__ */ r(
|
|
2220
2220
|
I,
|
|
@@ -2286,7 +2286,7 @@ function ar({ item: a, ctaLabel: c }) {
|
|
|
2286
2286
|
children: a.description
|
|
2287
2287
|
}
|
|
2288
2288
|
),
|
|
2289
|
-
|
|
2289
|
+
d && /* @__PURE__ */ r(
|
|
2290
2290
|
f,
|
|
2291
2291
|
{
|
|
2292
2292
|
className: "rlg-shelf-feature-cta",
|
|
@@ -2300,7 +2300,7 @@ function ar({ item: a, ctaLabel: c }) {
|
|
|
2300
2300
|
size: "sm",
|
|
2301
2301
|
fw: 800,
|
|
2302
2302
|
c: "gray.9",
|
|
2303
|
-
children:
|
|
2303
|
+
children: d
|
|
2304
2304
|
}
|
|
2305
2305
|
),
|
|
2306
2306
|
/* @__PURE__ */ e(
|
|
@@ -2323,7 +2323,7 @@ function ar({ item: a, ctaLabel: c }) {
|
|
|
2323
2323
|
);
|
|
2324
2324
|
}
|
|
2325
2325
|
function ir({ item: a }) {
|
|
2326
|
-
const
|
|
2326
|
+
const d = a.icon;
|
|
2327
2327
|
return /* @__PURE__ */ r(
|
|
2328
2328
|
I,
|
|
2329
2329
|
{
|
|
@@ -2352,8 +2352,8 @@ function ir({ item: a }) {
|
|
|
2352
2352
|
className: "rlg-shelf-card-body",
|
|
2353
2353
|
gap: "sm",
|
|
2354
2354
|
children: [
|
|
2355
|
-
|
|
2356
|
-
|
|
2355
|
+
d && /* @__PURE__ */ e(
|
|
2356
|
+
d,
|
|
2357
2357
|
{
|
|
2358
2358
|
size: 22,
|
|
2359
2359
|
stroke: 1.5,
|
|
@@ -2390,12 +2390,12 @@ function ir({ item: a }) {
|
|
|
2390
2390
|
}
|
|
2391
2391
|
);
|
|
2392
2392
|
}
|
|
2393
|
-
function Cr({ id: a, subtitle:
|
|
2393
|
+
function Cr({ id: a, subtitle: d, title: l, description: n, items: t = [], note: c, background: m = "gray", ta: h = "center" }) {
|
|
2394
2394
|
return /* @__PURE__ */ r(
|
|
2395
2395
|
P,
|
|
2396
2396
|
{
|
|
2397
2397
|
id: a,
|
|
2398
|
-
subtitle:
|
|
2398
|
+
subtitle: d,
|
|
2399
2399
|
title: l,
|
|
2400
2400
|
background: m,
|
|
2401
2401
|
ta: h,
|
|
@@ -2466,7 +2466,7 @@ function Cr({ id: a, subtitle: c, title: l, description: n, items: t = [], note:
|
|
|
2466
2466
|
))
|
|
2467
2467
|
}
|
|
2468
2468
|
),
|
|
2469
|
-
|
|
2469
|
+
c && /* @__PURE__ */ e(
|
|
2470
2470
|
i,
|
|
2471
2471
|
{
|
|
2472
2472
|
size: "sm",
|
|
@@ -2476,19 +2476,19 @@ function Cr({ id: a, subtitle: c, title: l, description: n, items: t = [], note:
|
|
|
2476
2476
|
maw: 720,
|
|
2477
2477
|
mx: h === "center" ? "auto" : void 0,
|
|
2478
2478
|
lh: 1.7,
|
|
2479
|
-
children:
|
|
2479
|
+
children: c
|
|
2480
2480
|
}
|
|
2481
2481
|
)
|
|
2482
2482
|
]
|
|
2483
2483
|
}
|
|
2484
2484
|
);
|
|
2485
2485
|
}
|
|
2486
|
-
function Mr({ id: a, subtitle:
|
|
2486
|
+
function Mr({ id: a, subtitle: d, title: l, description: n, cardLabel: t, items: c = [], footnote: m, background: h = "gray", ta: p = "center" }) {
|
|
2487
2487
|
return /* @__PURE__ */ r(
|
|
2488
2488
|
P,
|
|
2489
2489
|
{
|
|
2490
2490
|
id: a,
|
|
2491
|
-
subtitle:
|
|
2491
|
+
subtitle: d,
|
|
2492
2492
|
title: l,
|
|
2493
2493
|
background: h,
|
|
2494
2494
|
ta: p,
|
|
@@ -2535,7 +2535,7 @@ function Mr({ id: a, subtitle: c, title: l, description: n, cardLabel: t, items:
|
|
|
2535
2535
|
m: 0,
|
|
2536
2536
|
pl: "lg",
|
|
2537
2537
|
style: { display: "flex", flexDirection: "column", gap: 16 },
|
|
2538
|
-
children:
|
|
2538
|
+
children: c.map((s, g) => /* @__PURE__ */ r(
|
|
2539
2539
|
i,
|
|
2540
2540
|
{
|
|
2541
2541
|
component: "li",
|
|
@@ -2592,12 +2592,12 @@ function Mr({ id: a, subtitle: c, title: l, description: n, cardLabel: t, items:
|
|
|
2592
2592
|
}
|
|
2593
2593
|
);
|
|
2594
2594
|
}
|
|
2595
|
-
function Rr({ id: a, subtitle:
|
|
2595
|
+
function Rr({ id: a, subtitle: d, title: l, description: n, avatar: t, name: c, role: m, quote: h, credentials: p = [], background: s = "white", ta: g = "center" }) {
|
|
2596
2596
|
return /* @__PURE__ */ r(
|
|
2597
2597
|
P,
|
|
2598
2598
|
{
|
|
2599
2599
|
id: a,
|
|
2600
|
-
subtitle:
|
|
2600
|
+
subtitle: d,
|
|
2601
2601
|
title: l,
|
|
2602
2602
|
background: s,
|
|
2603
2603
|
ta: g,
|
|
@@ -2644,7 +2644,7 @@ function Rr({ id: a, subtitle: c, title: l, description: n, avatar: t, name: d,
|
|
|
2644
2644
|
H,
|
|
2645
2645
|
{
|
|
2646
2646
|
src: t.src,
|
|
2647
|
-
alt: t.alt ||
|
|
2647
|
+
alt: t.alt || c || "",
|
|
2648
2648
|
w: "100%",
|
|
2649
2649
|
radius: "0",
|
|
2650
2650
|
style: {
|
|
@@ -2657,7 +2657,7 @@ function Rr({ id: a, subtitle: c, title: l, description: n, avatar: t, name: d,
|
|
|
2657
2657
|
}
|
|
2658
2658
|
) }),
|
|
2659
2659
|
/* @__PURE__ */ r(v.Col, { span: { base: 12, sm: "auto" }, children: [
|
|
2660
|
-
(
|
|
2660
|
+
(c || m) && /* @__PURE__ */ r(
|
|
2661
2661
|
f,
|
|
2662
2662
|
{
|
|
2663
2663
|
mb: "lg",
|
|
@@ -2665,14 +2665,14 @@ function Rr({ id: a, subtitle: c, title: l, description: n, avatar: t, name: d,
|
|
|
2665
2665
|
wrap: "wrap",
|
|
2666
2666
|
justify: { base: "center", sm: "flex-start" },
|
|
2667
2667
|
children: [
|
|
2668
|
-
|
|
2668
|
+
c && /* @__PURE__ */ e(
|
|
2669
2669
|
i,
|
|
2670
2670
|
{
|
|
2671
2671
|
fz: { base: "lg", md: "xl" },
|
|
2672
2672
|
fw: 800,
|
|
2673
2673
|
c: "gray.9",
|
|
2674
2674
|
style: { letterSpacing: "-0.02em" },
|
|
2675
|
-
children:
|
|
2675
|
+
children: c
|
|
2676
2676
|
}
|
|
2677
2677
|
),
|
|
2678
2678
|
m && /* @__PURE__ */ e(
|
|
@@ -2756,12 +2756,12 @@ function Rr({ id: a, subtitle: c, title: l, description: n, avatar: t, name: d,
|
|
|
2756
2756
|
}
|
|
2757
2757
|
);
|
|
2758
2758
|
}
|
|
2759
|
-
function Nr({ id: a, badge:
|
|
2759
|
+
function Nr({ id: a, badge: d, subtitle: l, title: n, description: t, items: c = [], background: m = "gray", ta: h = "center" }) {
|
|
2760
2760
|
return /* @__PURE__ */ r(
|
|
2761
2761
|
P,
|
|
2762
2762
|
{
|
|
2763
2763
|
id: a,
|
|
2764
|
-
badge:
|
|
2764
|
+
badge: d,
|
|
2765
2765
|
subtitle: l,
|
|
2766
2766
|
title: n,
|
|
2767
2767
|
background: m,
|
|
@@ -2784,10 +2784,10 @@ function Nr({ id: a, badge: c, subtitle: l, title: n, description: t, items: d =
|
|
|
2784
2784
|
/* @__PURE__ */ e(
|
|
2785
2785
|
A,
|
|
2786
2786
|
{
|
|
2787
|
-
cols: { base: 1, md:
|
|
2787
|
+
cols: { base: 1, md: c.length <= 4 ? c.length : 3 },
|
|
2788
2788
|
spacing: "xl",
|
|
2789
2789
|
verticalSpacing: { base: 56, md: "xl" },
|
|
2790
|
-
children:
|
|
2790
|
+
children: c.map((p, s) => {
|
|
2791
2791
|
const g = p.icon;
|
|
2792
2792
|
return /* @__PURE__ */ r(
|
|
2793
2793
|
b,
|
|
@@ -2866,7 +2866,7 @@ function Nr({ id: a, badge: c, subtitle: l, title: n, description: t, items: d =
|
|
|
2866
2866
|
}
|
|
2867
2867
|
);
|
|
2868
2868
|
}
|
|
2869
|
-
function Lr({ id: a, badge:
|
|
2869
|
+
function Lr({ id: a, badge: d, title: l, description: n, fields: t = [], whatsappNumber: c, messageIntro: m = "Olá! Vim pelo site.", submit: h = {}, reassurance: p, onSubmit: s }) {
|
|
2870
2870
|
const [g, o] = _(() => Object.fromEntries(t.map((x) => [x.name, ""]))), [y, w] = _(!1), T = (x) => (L) => {
|
|
2871
2871
|
const { value: q } = L.currentTarget;
|
|
2872
2872
|
o((O) => ({ ...O, [x]: q }));
|
|
@@ -2879,7 +2879,7 @@ function Lr({ id: a, badge: c, title: l, description: n, fields: t = [], whatsap
|
|
|
2879
2879
|
py: { base: 80, md: 120 },
|
|
2880
2880
|
bg: "gray.9",
|
|
2881
2881
|
children: /* @__PURE__ */ r(B, { size: "md", children: [
|
|
2882
|
-
|
|
2882
|
+
d && /* @__PURE__ */ e(
|
|
2883
2883
|
f,
|
|
2884
2884
|
{
|
|
2885
2885
|
justify: "center",
|
|
@@ -2891,7 +2891,7 @@ function Lr({ id: a, badge: c, title: l, description: n, fields: t = [], whatsap
|
|
|
2891
2891
|
color: "gray",
|
|
2892
2892
|
size: "lg",
|
|
2893
2893
|
radius: "0",
|
|
2894
|
-
children:
|
|
2894
|
+
children: d
|
|
2895
2895
|
}
|
|
2896
2896
|
)
|
|
2897
2897
|
}
|
|
@@ -2930,8 +2930,8 @@ function Lr({ id: a, badge: c, title: l, description: n, fields: t = [], whatsap
|
|
|
2930
2930
|
if (x.preventDefault(), w(!0), !S) return;
|
|
2931
2931
|
const L = [m, "", ...t.filter((q) => g[q.name]?.trim()).map((q) => `${q.label}: ${g[q.name]}`)].join(`
|
|
2932
2932
|
`);
|
|
2933
|
-
if (s?.(g),
|
|
2934
|
-
const q = `https://wa.me/${
|
|
2933
|
+
if (s?.(g), c) {
|
|
2934
|
+
const q = `https://wa.me/${c}?text=${encodeURIComponent(L)}`;
|
|
2935
2935
|
window.open(q, "_blank", "noopener,noreferrer");
|
|
2936
2936
|
}
|
|
2937
2937
|
}, children: /* @__PURE__ */ r(u, { gap: "md", children: [
|
|
@@ -3018,14 +3018,14 @@ function Lr({ id: a, badge: c, title: l, description: n, fields: t = [], whatsap
|
|
|
3018
3018
|
}
|
|
3019
3019
|
);
|
|
3020
3020
|
}
|
|
3021
|
-
function Or({ id: a, subtitle:
|
|
3021
|
+
function Or({ id: a, subtitle: d, title: l, traditionalCol: n, newCol: t, background: c = "white" }) {
|
|
3022
3022
|
return /* @__PURE__ */ e(
|
|
3023
3023
|
P,
|
|
3024
3024
|
{
|
|
3025
3025
|
id: a,
|
|
3026
|
-
subtitle:
|
|
3026
|
+
subtitle: d,
|
|
3027
3027
|
title: l,
|
|
3028
|
-
background:
|
|
3028
|
+
background: c,
|
|
3029
3029
|
children: /* @__PURE__ */ e(
|
|
3030
3030
|
I,
|
|
3031
3031
|
{
|
|
@@ -3041,7 +3041,7 @@ function Or({ id: a, subtitle: c, title: l, traditionalCol: n, newCol: t, backgr
|
|
|
3041
3041
|
/* @__PURE__ */ e(
|
|
3042
3042
|
b,
|
|
3043
3043
|
{
|
|
3044
|
-
bg:
|
|
3044
|
+
bg: c === "gray" ? "gray.1" : "white",
|
|
3045
3045
|
p: { base: 30, md: 60 },
|
|
3046
3046
|
children: /* @__PURE__ */ r(u, { gap: "xl", children: [
|
|
3047
3047
|
/* @__PURE__ */ r(b, { children: [
|
|
@@ -3098,7 +3098,7 @@ function Or({ id: a, subtitle: c, title: l, traditionalCol: n, newCol: t, backgr
|
|
|
3098
3098
|
/* @__PURE__ */ r(
|
|
3099
3099
|
b,
|
|
3100
3100
|
{
|
|
3101
|
-
bg:
|
|
3101
|
+
bg: c === "gray" ? "gray.1" : "white",
|
|
3102
3102
|
p: "lg",
|
|
3103
3103
|
radius: "0",
|
|
3104
3104
|
bd: "1px solid var(--mantine-color-gray-2)",
|
|
@@ -3141,7 +3141,7 @@ function Or({ id: a, subtitle: c, title: l, traditionalCol: n, newCol: t, backgr
|
|
|
3141
3141
|
/* @__PURE__ */ e(
|
|
3142
3142
|
b,
|
|
3143
3143
|
{
|
|
3144
|
-
bg:
|
|
3144
|
+
bg: c === "gray" ? "gray.1" : "white",
|
|
3145
3145
|
p: { base: 30, md: 60 },
|
|
3146
3146
|
pos: "relative",
|
|
3147
3147
|
children: /* @__PURE__ */ r(
|
|
@@ -3209,7 +3209,7 @@ function Or({ id: a, subtitle: c, title: l, traditionalCol: n, newCol: t, backgr
|
|
|
3209
3209
|
t.pricingBox && /* @__PURE__ */ e(
|
|
3210
3210
|
b,
|
|
3211
3211
|
{
|
|
3212
|
-
bg:
|
|
3212
|
+
bg: c === "gray" ? "gray.1" : "white",
|
|
3213
3213
|
p: "lg",
|
|
3214
3214
|
radius: "0",
|
|
3215
3215
|
bd: "1px solid var(--mantine-color-gray-2)",
|
|
@@ -3273,11 +3273,11 @@ function Or({ id: a, subtitle: c, title: l, traditionalCol: n, newCol: t, backgr
|
|
|
3273
3273
|
}
|
|
3274
3274
|
function Vr({
|
|
3275
3275
|
id: a,
|
|
3276
|
-
badge:
|
|
3276
|
+
badge: d,
|
|
3277
3277
|
subtitle: l,
|
|
3278
3278
|
title: n,
|
|
3279
3279
|
description: t,
|
|
3280
|
-
billingOptions:
|
|
3280
|
+
billingOptions: c = [
|
|
3281
3281
|
{ label: "Mensal", value: "monthly" },
|
|
3282
3282
|
{ label: "Anual", value: "annual" }
|
|
3283
3283
|
],
|
|
@@ -3291,7 +3291,7 @@ function Vr({
|
|
|
3291
3291
|
P,
|
|
3292
3292
|
{
|
|
3293
3293
|
id: a,
|
|
3294
|
-
badge:
|
|
3294
|
+
badge: d,
|
|
3295
3295
|
subtitle: l,
|
|
3296
3296
|
title: n,
|
|
3297
3297
|
ta: "center",
|
|
@@ -3311,7 +3311,7 @@ function Vr({
|
|
|
3311
3311
|
children: t
|
|
3312
3312
|
}
|
|
3313
3313
|
),
|
|
3314
|
-
|
|
3314
|
+
c && c.length > 0 && /* @__PURE__ */ e(
|
|
3315
3315
|
u,
|
|
3316
3316
|
{
|
|
3317
3317
|
align: "center",
|
|
@@ -3325,7 +3325,7 @@ function Vr({
|
|
|
3325
3325
|
onChange: h,
|
|
3326
3326
|
radius: "0",
|
|
3327
3327
|
size: "md",
|
|
3328
|
-
data:
|
|
3328
|
+
data: c,
|
|
3329
3329
|
color: "gray.9",
|
|
3330
3330
|
bg: "white",
|
|
3331
3331
|
style: { border: "1px solid var(--mantine-color-gray-2)" }
|
|
@@ -3623,8 +3623,8 @@ function Vr({
|
|
|
3623
3623
|
}
|
|
3624
3624
|
);
|
|
3625
3625
|
}
|
|
3626
|
-
function $r({ id: a, badge:
|
|
3627
|
-
const s = Math.ceil(
|
|
3626
|
+
function $r({ id: a, badge: d, subtitle: l, title: n, description: t, questions: c = [], contactCard: m, background: h = "white", ta: p = "left" }) {
|
|
3627
|
+
const s = Math.ceil(c.length / 2), g = {
|
|
3628
3628
|
item: {
|
|
3629
3629
|
backgroundColor: h === "gray" ? "gray.1" : "white",
|
|
3630
3630
|
border: "1px solid var(--mantine-color-gray-2)"
|
|
@@ -3647,7 +3647,7 @@ function $r({ id: a, badge: c, subtitle: l, title: n, description: t, questions:
|
|
|
3647
3647
|
P,
|
|
3648
3648
|
{
|
|
3649
3649
|
id: a,
|
|
3650
|
-
badge:
|
|
3650
|
+
badge: d,
|
|
3651
3651
|
subtitle: l,
|
|
3652
3652
|
title: n,
|
|
3653
3653
|
background: h,
|
|
@@ -3680,7 +3680,7 @@ function $r({ id: a, badge: c, subtitle: l, title: n, description: t, questions:
|
|
|
3680
3680
|
radius: "0",
|
|
3681
3681
|
chevronPosition: "right",
|
|
3682
3682
|
styles: g,
|
|
3683
|
-
children:
|
|
3683
|
+
children: c.slice(0, s).map((o, y) => /* @__PURE__ */ r(
|
|
3684
3684
|
R.Item,
|
|
3685
3685
|
{
|
|
3686
3686
|
value: o.value || String(y),
|
|
@@ -3715,7 +3715,7 @@ function $r({ id: a, badge: c, subtitle: l, title: n, description: t, questions:
|
|
|
3715
3715
|
radius: "0",
|
|
3716
3716
|
chevronPosition: "right",
|
|
3717
3717
|
styles: g,
|
|
3718
|
-
children:
|
|
3718
|
+
children: c.slice(s).map((o, y) => /* @__PURE__ */ r(
|
|
3719
3719
|
R.Item,
|
|
3720
3720
|
{
|
|
3721
3721
|
value: o.value || String(s + y),
|
|
@@ -3812,20 +3812,20 @@ function $r({ id: a, badge: c, subtitle: l, title: n, description: t, questions:
|
|
|
3812
3812
|
}
|
|
3813
3813
|
);
|
|
3814
3814
|
}
|
|
3815
|
-
function Ur({ id: a, title:
|
|
3815
|
+
function Ur({ id: a, title: d, subtitle: l, items: n = [], background: t = "gray" }) {
|
|
3816
3816
|
return /* @__PURE__ */ e(
|
|
3817
3817
|
P,
|
|
3818
3818
|
{
|
|
3819
3819
|
id: a,
|
|
3820
3820
|
background: t,
|
|
3821
|
-
title:
|
|
3821
|
+
title: d,
|
|
3822
3822
|
subtitle: l,
|
|
3823
3823
|
children: /* @__PURE__ */ e(
|
|
3824
3824
|
A,
|
|
3825
3825
|
{
|
|
3826
3826
|
cols: { base: 1, md: n.length > 3 ? 4 : n.length || 3 },
|
|
3827
3827
|
spacing: "xl",
|
|
3828
|
-
children: n.map((
|
|
3828
|
+
children: n.map((c, m) => /* @__PURE__ */ e(
|
|
3829
3829
|
I,
|
|
3830
3830
|
{
|
|
3831
3831
|
p: "xl",
|
|
@@ -3856,7 +3856,7 @@ function Ur({ id: a, title: c, subtitle: l, items: n = [], background: t = "gray
|
|
|
3856
3856
|
flex: 1,
|
|
3857
3857
|
children: [
|
|
3858
3858
|
'"',
|
|
3859
|
-
|
|
3859
|
+
c.content,
|
|
3860
3860
|
'"'
|
|
3861
3861
|
]
|
|
3862
3862
|
}
|
|
@@ -3873,8 +3873,8 @@ function Ur({ id: a, title: c, subtitle: l, items: n = [], background: t = "gray
|
|
|
3873
3873
|
size: "md",
|
|
3874
3874
|
radius: "0",
|
|
3875
3875
|
color: "gray",
|
|
3876
|
-
src:
|
|
3877
|
-
children:
|
|
3876
|
+
src: c.avatarSrc,
|
|
3877
|
+
children: c.initials
|
|
3878
3878
|
}
|
|
3879
3879
|
),
|
|
3880
3880
|
/* @__PURE__ */ r(u, { gap: 0, children: [
|
|
@@ -3883,7 +3883,7 @@ function Ur({ id: a, title: c, subtitle: l, items: n = [], background: t = "gray
|
|
|
3883
3883
|
{
|
|
3884
3884
|
size: "sm",
|
|
3885
3885
|
fw: 900,
|
|
3886
|
-
children:
|
|
3886
|
+
children: c.name
|
|
3887
3887
|
}
|
|
3888
3888
|
),
|
|
3889
3889
|
/* @__PURE__ */ e(
|
|
@@ -3894,7 +3894,7 @@ function Ur({ id: a, title: c, subtitle: l, items: n = [], background: t = "gray
|
|
|
3894
3894
|
tt: "uppercase",
|
|
3895
3895
|
ls: "1px",
|
|
3896
3896
|
c: "gray.5",
|
|
3897
|
-
children:
|
|
3897
|
+
children: c.role
|
|
3898
3898
|
}
|
|
3899
3899
|
)
|
|
3900
3900
|
] })
|
|
@@ -3917,7 +3917,7 @@ const le = {
|
|
|
3917
3917
|
label: { whiteSpace: "normal", lineHeight: 1.4 },
|
|
3918
3918
|
inner: { paddingTop: 12, paddingBottom: 12 }
|
|
3919
3919
|
};
|
|
3920
|
-
function ye({ id: a, subtitle:
|
|
3920
|
+
function ye({ id: a, subtitle: d, title: l, titleOrder: n = 2, description: t, featuresList: c, featuresLabel: m, cta: h, secondaryCta: p, background: s = "gray", ta: g = "center" }) {
|
|
3921
3921
|
return /* @__PURE__ */ e(
|
|
3922
3922
|
P,
|
|
3923
3923
|
{
|
|
@@ -3939,7 +3939,7 @@ function ye({ id: a, subtitle: c, title: l, titleOrder: n = 2, description: t, f
|
|
|
3939
3939
|
ta: g,
|
|
3940
3940
|
gap: "xl",
|
|
3941
3941
|
children: [
|
|
3942
|
-
|
|
3942
|
+
d && /* @__PURE__ */ e(
|
|
3943
3943
|
i,
|
|
3944
3944
|
{
|
|
3945
3945
|
size: "xs",
|
|
@@ -3947,7 +3947,7 @@ function ye({ id: a, subtitle: c, title: l, titleOrder: n = 2, description: t, f
|
|
|
3947
3947
|
tt: "uppercase",
|
|
3948
3948
|
ls: "1.5px",
|
|
3949
3949
|
c: "gray.4",
|
|
3950
|
-
children:
|
|
3950
|
+
children: d
|
|
3951
3951
|
}
|
|
3952
3952
|
),
|
|
3953
3953
|
l && // Title, e não Text: o banner costuma ser a única seção
|
|
@@ -3972,7 +3972,7 @@ function ye({ id: a, subtitle: c, title: l, titleOrder: n = 2, description: t, f
|
|
|
3972
3972
|
children: t
|
|
3973
3973
|
}
|
|
3974
3974
|
),
|
|
3975
|
-
|
|
3975
|
+
c && c.length > 0 && /* @__PURE__ */ r(b, { ta: "left", children: [
|
|
3976
3976
|
m && /* @__PURE__ */ e(
|
|
3977
3977
|
i,
|
|
3978
3978
|
{
|
|
@@ -4002,7 +4002,7 @@ function ye({ id: a, subtitle: c, title: l, titleOrder: n = 2, description: t, f
|
|
|
4002
4002
|
)
|
|
4003
4003
|
}
|
|
4004
4004
|
),
|
|
4005
|
-
children:
|
|
4005
|
+
children: c.map((y, w) => /* @__PURE__ */ e(V.Item, { children: /* @__PURE__ */ e(
|
|
4006
4006
|
i,
|
|
4007
4007
|
{
|
|
4008
4008
|
c: "gray.6",
|
|
@@ -4082,15 +4082,15 @@ function tr() {
|
|
|
4082
4082
|
return a.name = "robots", a.content = "noindex, follow", document.head.appendChild(a), () => a.remove();
|
|
4083
4083
|
}, []);
|
|
4084
4084
|
}
|
|
4085
|
-
function Hr({ subtitle: a = "Erro 404", title:
|
|
4085
|
+
function Hr({ subtitle: a = "Erro 404", title: d = "Esta página não existe", description: l = "O endereço está errado ou a página saiu do ar. O conteúdo do site está todo na home.", homeHref: n = "/", cta: t, background: c = "white" }) {
|
|
4086
4086
|
return tr(), /* @__PURE__ */ e(
|
|
4087
4087
|
ye,
|
|
4088
4088
|
{
|
|
4089
4089
|
subtitle: a,
|
|
4090
|
-
title:
|
|
4090
|
+
title: d,
|
|
4091
4091
|
titleOrder: 1,
|
|
4092
4092
|
description: l,
|
|
4093
|
-
background:
|
|
4093
|
+
background: c,
|
|
4094
4094
|
cta: t ?? {
|
|
4095
4095
|
label: "Voltar para a home",
|
|
4096
4096
|
href: n,
|
|
@@ -4105,7 +4105,7 @@ function Hr({ subtitle: a = "Erro 404", title: c = "Esta página não existe", d
|
|
|
4105
4105
|
}
|
|
4106
4106
|
);
|
|
4107
4107
|
}
|
|
4108
|
-
function nr({ text: a = "Selo Exclusivo", color:
|
|
4108
|
+
function nr({ text: a = "Selo Exclusivo", color: d = "green.6", background: l = "gray" }) {
|
|
4109
4109
|
const n = N(l);
|
|
4110
4110
|
return /* @__PURE__ */ e(
|
|
4111
4111
|
b,
|
|
@@ -4120,7 +4120,7 @@ function nr({ text: a = "Selo Exclusivo", color: c = "green.6", background: l =
|
|
|
4120
4120
|
/* @__PURE__ */ e(
|
|
4121
4121
|
z,
|
|
4122
4122
|
{
|
|
4123
|
-
color:
|
|
4123
|
+
color: d,
|
|
4124
4124
|
variant: "light",
|
|
4125
4125
|
size: "sm",
|
|
4126
4126
|
children: /* @__PURE__ */ e(
|
|
@@ -4148,7 +4148,7 @@ function nr({ text: a = "Selo Exclusivo", color: c = "green.6", background: l =
|
|
|
4148
4148
|
);
|
|
4149
4149
|
}
|
|
4150
4150
|
const _r = nr;
|
|
4151
|
-
function Gr({ logo: a, description:
|
|
4151
|
+
function Gr({ logo: a, description: d, sections: l = [], socialLinks: n = [], copyrightText: t, madeByText: c, background: m = "white", status: h }) {
|
|
4152
4152
|
const p = N(m);
|
|
4153
4153
|
return /* @__PURE__ */ e(
|
|
4154
4154
|
b,
|
|
@@ -4166,14 +4166,14 @@ function Gr({ logo: a, description: c, sections: l = [], socialLinks: n = [], co
|
|
|
4166
4166
|
children: [
|
|
4167
4167
|
/* @__PURE__ */ r(u, { gap: "lg", children: [
|
|
4168
4168
|
a && /* @__PURE__ */ e(Z, { logo: a }),
|
|
4169
|
-
|
|
4169
|
+
d && /* @__PURE__ */ e(
|
|
4170
4170
|
i,
|
|
4171
4171
|
{
|
|
4172
4172
|
size: "md",
|
|
4173
4173
|
c: "gray.6",
|
|
4174
4174
|
lh: 1.6,
|
|
4175
4175
|
maw: 400,
|
|
4176
|
-
children:
|
|
4176
|
+
children: d
|
|
4177
4177
|
}
|
|
4178
4178
|
),
|
|
4179
4179
|
h
|
|
@@ -4279,7 +4279,7 @@ function Gr({ logo: a, description: c, sections: l = [], socialLinks: n = [], co
|
|
|
4279
4279
|
children: t
|
|
4280
4280
|
}
|
|
4281
4281
|
),
|
|
4282
|
-
|
|
4282
|
+
c && /* @__PURE__ */ e(
|
|
4283
4283
|
i,
|
|
4284
4284
|
{
|
|
4285
4285
|
size: "xs",
|
|
@@ -4287,7 +4287,7 @@ function Gr({ logo: a, description: c, sections: l = [], socialLinks: n = [], co
|
|
|
4287
4287
|
tt: "uppercase",
|
|
4288
4288
|
ls: "1px",
|
|
4289
4289
|
c: "gray.5",
|
|
4290
|
-
children:
|
|
4290
|
+
children: c
|
|
4291
4291
|
}
|
|
4292
4292
|
)
|
|
4293
4293
|
]
|
|
@@ -4297,8 +4297,8 @@ function Gr({ logo: a, description: c, sections: l = [], socialLinks: n = [], co
|
|
|
4297
4297
|
}
|
|
4298
4298
|
);
|
|
4299
4299
|
}
|
|
4300
|
-
function Kr({ companyName: a = "Infrastructure", legalEntity:
|
|
4301
|
-
const n =
|
|
4300
|
+
function Kr({ companyName: a = "Infrastructure", legalEntity: d, productName: l = "nossos produtos" }) {
|
|
4301
|
+
const n = d || a, t = n.split(" (")[0];
|
|
4302
4302
|
return /* @__PURE__ */ e(
|
|
4303
4303
|
b,
|
|
4304
4304
|
{
|
|
@@ -4608,8 +4608,8 @@ function Kr({ companyName: a = "Infrastructure", legalEntity: c, productName: l
|
|
|
4608
4608
|
}
|
|
4609
4609
|
);
|
|
4610
4610
|
}
|
|
4611
|
-
function Qr({ companyName: a = "Infrastructure", legalEntity:
|
|
4612
|
-
const
|
|
4611
|
+
function Qr({ companyName: a = "Infrastructure", legalEntity: d, productName: l = "nossos produtos", lastUpdated: n = "20 de setembro de 2026" }) {
|
|
4612
|
+
const t = d || a, c = t.split(" (")[0];
|
|
4613
4613
|
return /* @__PURE__ */ e(
|
|
4614
4614
|
b,
|
|
4615
4615
|
{
|
|
@@ -4657,7 +4657,7 @@ function Qr({ companyName: a = "Infrastructure", legalEntity: c, productName: l
|
|
|
4657
4657
|
"Bem-vindo ao ",
|
|
4658
4658
|
/* @__PURE__ */ e("strong", { children: l }),
|
|
4659
4659
|
". Este documento constitui um contrato vinculativo entre você e ",
|
|
4660
|
-
|
|
4660
|
+
t,
|
|
4661
4661
|
". Ao acessar a plataforma, criar uma conta ou utilizar qualquer funcionalidade do software, você confirma que leu, entendeu e aceita integralmente estes termos."
|
|
4662
4662
|
]
|
|
4663
4663
|
}
|
|
@@ -4715,7 +4715,7 @@ function Qr({ companyName: a = "Infrastructure", legalEntity: c, productName: l
|
|
|
4715
4715
|
c: "gray.6",
|
|
4716
4716
|
lh: 1.7,
|
|
4717
4717
|
children: [
|
|
4718
|
-
|
|
4718
|
+
c,
|
|
4719
4719
|
" concede a você uma licença limitada, revogável, não exclusiva e intransferível para utilizar o ",
|
|
4720
4720
|
l,
|
|
4721
4721
|
" como um serviço (SaaS). Esta licença é estritamente para os fins descritos em sua modalidade de assinatura. É expressamente proibido: (a) realizar engenharia reversa; (b) sublicenciar o acesso sem autorização prévia por escrito; (c) utilizar o software para desenvolver produtos concorrentes ou (d) contornar quaisquer limitações técnicas impostas ao sistema."
|
|
@@ -4769,7 +4769,7 @@ function Qr({ companyName: a = "Infrastructure", legalEntity: c, productName: l
|
|
|
4769
4769
|
lh: 1.7,
|
|
4770
4770
|
children: [
|
|
4771
4771
|
"A segurança da sua conta é uma responsabilidade compartilhada. Você deve fornecer informações precisas e manter a confidencialidade de suas senhas. Qualquer uso indevido da conta por terceiros, resultante de negligência do usuário, será de sua inteira responsabilidade.",
|
|
4772
|
-
|
|
4772
|
+
c,
|
|
4773
4773
|
" reserva-se o direito de suspender contas que apresentem comportamento suspeito ou que violem as normas de segurança da infraestrutura."
|
|
4774
4774
|
]
|
|
4775
4775
|
}
|
|
@@ -4823,7 +4823,7 @@ function Qr({ companyName: a = "Infrastructure", legalEntity: c, productName: l
|
|
|
4823
4823
|
"Todo o código-fonte, design, interfaces, logotipos e textos do ",
|
|
4824
4824
|
l,
|
|
4825
4825
|
" são propriedade exclusiva de ",
|
|
4826
|
-
|
|
4826
|
+
c,
|
|
4827
4827
|
". No entanto, você retém todos os direitos sobre o conteúdo e dados que inseridos no sistema. Ao utilizar o produto, você nos concede apenas uma licença técnica, mundial e livre de royalties, para hospedar, copiar e exibir tais dados conforme necessário para prestar o serviço contratado."
|
|
4828
4828
|
]
|
|
4829
4829
|
}
|
|
@@ -4931,7 +4931,7 @@ function Qr({ companyName: a = "Infrastructure", legalEntity: c, productName: l
|
|
|
4931
4931
|
" é fornecido ",
|
|
4932
4932
|
/* @__PURE__ */ e("em", { children: '"as is"' }),
|
|
4933
4933
|
" (como está). Embora busquemos a excelência técnica, ",
|
|
4934
|
-
|
|
4934
|
+
c,
|
|
4935
4935
|
" não garante que o software seja livre de erros ou interrupções. Em nenhuma hipótese a companhia será responsável por danos indiretos, lucros cessantes ou qualquer perda de dados que ultrapasse o valor total pago pelo usuário nos últimos 12 meses."
|
|
4936
4936
|
]
|
|
4937
4937
|
}
|
|
@@ -4963,8 +4963,10 @@ function Qr({ companyName: a = "Infrastructure", legalEntity: c, productName: l
|
|
|
4963
4963
|
lh: 1.8,
|
|
4964
4964
|
children: [
|
|
4965
4965
|
"Reservamo-nos o direito de alterar estes Termos a qualquer momento. Alterações substanciais serão comunicadas com pelo menos 30 dias de antecedência. Este contrato é regido pelas leis da República Federativa do Brasil, sendo eleito o foro da comarca da sede de ",
|
|
4966
|
-
|
|
4967
|
-
" para dirimir quaisquer controvérsias. Última atualização:
|
|
4966
|
+
c,
|
|
4967
|
+
" para dirimir quaisquer controvérsias. Última atualização: ",
|
|
4968
|
+
n,
|
|
4969
|
+
"."
|
|
4968
4970
|
]
|
|
4969
4971
|
}
|
|
4970
4972
|
)
|
|
@@ -4973,8 +4975,8 @@ function Qr({ companyName: a = "Infrastructure", legalEntity: c, productName: l
|
|
|
4973
4975
|
}
|
|
4974
4976
|
);
|
|
4975
4977
|
}
|
|
4976
|
-
function Yr({ companyName: a = "Infrastructure", legalEntity:
|
|
4977
|
-
const n =
|
|
4978
|
+
function Yr({ companyName: a = "Infrastructure", legalEntity: d, productName: l = "nossos produtos" }) {
|
|
4979
|
+
const n = d || a;
|
|
4978
4980
|
return n.split(" (")[0], /* @__PURE__ */ e(
|
|
4979
4981
|
b,
|
|
4980
4982
|
{
|
|
@@ -5270,8 +5272,8 @@ function Yr({ companyName: a = "Infrastructure", legalEntity: c, productName: l
|
|
|
5270
5272
|
);
|
|
5271
5273
|
}
|
|
5272
5274
|
const or = 6, lr = 2e3;
|
|
5273
|
-
function Xr(a, { intervalMs:
|
|
5274
|
-
const [n, t] = _({ status: "loading", checks: [], checkedAt: null, error: null, loading: !0 }), [
|
|
5275
|
+
function Xr(a, { intervalMs: d = 3e4, maxSamples: l = 40 } = {}) {
|
|
5276
|
+
const [n, t] = _({ status: "loading", checks: [], checkedAt: null, error: null, loading: !0 }), [c, m] = _([]), h = De([]);
|
|
5275
5277
|
return pe(() => {
|
|
5276
5278
|
if (!a) return;
|
|
5277
5279
|
h.current = [], m([]);
|
|
@@ -5300,28 +5302,28 @@ function Xr(a, { intervalMs: c = 3e4, maxSamples: l = 40 } = {}) {
|
|
|
5300
5302
|
};
|
|
5301
5303
|
let y = !0, w = 0, T;
|
|
5302
5304
|
const D = async () => {
|
|
5303
|
-
await o(), !p && (w += 1, T = setTimeout(D, w < or ? lr :
|
|
5305
|
+
await o(), !p && (w += 1, T = setTimeout(D, w < or ? lr : d));
|
|
5304
5306
|
};
|
|
5305
5307
|
return D(), () => {
|
|
5306
5308
|
p = !0, clearTimeout(T);
|
|
5307
5309
|
};
|
|
5308
|
-
}, [a,
|
|
5310
|
+
}, [a, d, l]), {
|
|
5309
5311
|
...n,
|
|
5310
|
-
latency:
|
|
5312
|
+
latency: c.map((p) => ({ time: p.time, ms: p.ms })),
|
|
5311
5313
|
// A "disponibilidade" aqui é a das amostras desta sessão, agrupadas em
|
|
5312
5314
|
// blocos — não um SLA de 90 dias. O rótulo na página diz isso.
|
|
5313
|
-
uptime: sr(
|
|
5315
|
+
uptime: sr(c),
|
|
5314
5316
|
// 1 = respondeu, 0.25 = falhou. Zero puro sumiria da barra e a falha
|
|
5315
5317
|
// ficaria invisível justamente quando importa.
|
|
5316
|
-
history:
|
|
5318
|
+
history: c.map((p) => p.up ? 1 : 0.25)
|
|
5317
5319
|
};
|
|
5318
5320
|
}
|
|
5319
|
-
function sr(a,
|
|
5321
|
+
function sr(a, d = 12) {
|
|
5320
5322
|
if (a.length === 0) return [];
|
|
5321
|
-
const l = Math.max(1, Math.ceil(a.length /
|
|
5323
|
+
const l = Math.max(1, Math.ceil(a.length / d)), n = [];
|
|
5322
5324
|
for (let t = 0; t < a.length; t += l) {
|
|
5323
|
-
const
|
|
5324
|
-
n.push({ day:
|
|
5325
|
+
const c = a.slice(t, t + l), m = c.filter((h) => h.up).length;
|
|
5326
|
+
n.push({ day: c[c.length - 1].time, pct: m / c.length * 100 });
|
|
5325
5327
|
}
|
|
5326
5328
|
return n;
|
|
5327
5329
|
}
|