@grapadigital/shared-app-modules 0.0.162 → 0.0.163
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/chuncks/{format.util.U2ON0RUZ.js → format.util.Dq6q7JWv.js} +1 -1
- package/dist/chuncks/{youtube-icon.component.B1lyKtkT.js → youtube-icon.component.CcHIZWSJ.js} +149 -141
- package/dist/components.js +6 -6
- package/dist/constants.d.ts +9 -0
- package/dist/constants.js +8 -7
- package/dist/events.js +1 -1
- package/dist/utils.js +4 -4
- package/package.json +1 -1
package/dist/chuncks/{youtube-icon.component.B1lyKtkT.js → youtube-icon.component.CcHIZWSJ.js}
RENAMED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { jsx as e, jsxs as o } from "react/jsx-runtime";
|
|
2
|
-
import { a as fA, c as
|
|
2
|
+
import { a as fA, c as S, L as hA, bf as pA, B as q, au as Q, aw as T, ax as F, ay as b, bg as G, az as z, aA as U, bh as Y, bi as gA, I as wA, q as bA, t as BA, s as CA, v as PA, x as yA, be as vA, T as SA, p as IA } from "./switch.BuckOH_X.js";
|
|
3
3
|
import * as NA from "react";
|
|
4
4
|
import { forwardRef as B, useState as P, useEffect as J } from "react";
|
|
5
|
-
import { P as
|
|
5
|
+
import { P as k, k as L, l as j, q as $, r as H, s as O, t as EA, F as E, C as xA, b as x, c as R, h as sA } from "./popover.DD2hYdsr.js";
|
|
6
6
|
import "date-fns";
|
|
7
|
-
import { a as W, u as
|
|
7
|
+
import { a as W, u as V } from "./use-shared-app-modules.hook.BneFRNyA.js";
|
|
8
8
|
import "./shared-app-modules.provider.DRJ7n4Cj.js";
|
|
9
|
-
import { useQuery as
|
|
9
|
+
import { useQuery as Z } from "@tanstack/react-query";
|
|
10
10
|
import "react-hook-form";
|
|
11
|
-
import
|
|
12
|
-
const
|
|
11
|
+
import RA from "axios";
|
|
12
|
+
const DA = [
|
|
13
13
|
["path", { d: "m7 15 5 5 5-5", key: "1hf1tw" }],
|
|
14
14
|
["path", { d: "m7 9 5-5 5 5", key: "sgt6xg" }]
|
|
15
|
-
], X = fA("chevrons-up-down",
|
|
15
|
+
], X = fA("chevrons-up-down", DA), MA = B(({ className: A, ...a }, t) => /* @__PURE__ */ e(
|
|
16
16
|
"div",
|
|
17
17
|
{
|
|
18
18
|
ref: t,
|
|
19
|
-
className:
|
|
19
|
+
className: S(
|
|
20
20
|
"flex gap-3 justify-between sm:items-center flex-col sm:flex-row",
|
|
21
21
|
A
|
|
22
22
|
),
|
|
@@ -28,38 +28,38 @@ const qA = B(({ className: A, ...a }, t) => /* @__PURE__ */ e(
|
|
|
28
28
|
"div",
|
|
29
29
|
{
|
|
30
30
|
ref: t,
|
|
31
|
-
className:
|
|
31
|
+
className: S("flex gap-2 items-center", A),
|
|
32
32
|
...a
|
|
33
33
|
}
|
|
34
34
|
));
|
|
35
35
|
qA.displayName = "PageHeaderActions";
|
|
36
|
-
const
|
|
37
|
-
|
|
38
|
-
const
|
|
36
|
+
const kA = B(({ className: A, ...a }, t) => /* @__PURE__ */ e("div", { ref: t, className: S("space-y-1", A), ...a }));
|
|
37
|
+
kA.displayName = "PageHeaderContent";
|
|
38
|
+
const LA = B(({ className: A, ...a }, t) => /* @__PURE__ */ e(
|
|
39
39
|
"div",
|
|
40
40
|
{
|
|
41
41
|
ref: t,
|
|
42
|
-
className:
|
|
42
|
+
className: S("text-muted-foreground", A),
|
|
43
43
|
...a
|
|
44
44
|
}
|
|
45
45
|
));
|
|
46
|
-
|
|
47
|
-
const
|
|
46
|
+
LA.displayName = "PageHeaderDescription";
|
|
47
|
+
const jA = B(({ className: A, ...a }, t) => /* @__PURE__ */ e(
|
|
48
48
|
"div",
|
|
49
49
|
{
|
|
50
50
|
ref: t,
|
|
51
|
-
className:
|
|
51
|
+
className: S("text-xl md:text-2xl font-bold", A),
|
|
52
52
|
...a
|
|
53
53
|
}
|
|
54
54
|
));
|
|
55
|
-
|
|
55
|
+
jA.displayName = "PageHeaderTitle";
|
|
56
56
|
const cA = NA.forwardRef(({ asterisk: A, children: a, ...t }, n) => /* @__PURE__ */ e(hA, { ref: n, ...t, children: /* @__PURE__ */ o("span", { className: "inline-flex gap-0.5", children: [
|
|
57
57
|
a,
|
|
58
58
|
" ",
|
|
59
59
|
A && /* @__PURE__ */ e("span", { className: "text-red-500", children: "*" })
|
|
60
60
|
] }) }));
|
|
61
61
|
cA.displayName = pA.displayName;
|
|
62
|
-
function
|
|
62
|
+
function D({
|
|
63
63
|
className: A,
|
|
64
64
|
...a
|
|
65
65
|
}) {
|
|
@@ -67,7 +67,7 @@ function R({
|
|
|
67
67
|
cA,
|
|
68
68
|
{
|
|
69
69
|
"data-slot": "field-label",
|
|
70
|
-
className:
|
|
70
|
+
className: S(
|
|
71
71
|
"group/field-label peer/field-label flex w-fit gap-2 leading-snug group-data-[disabled=true]/field:opacity-50",
|
|
72
72
|
"has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col has-[>[data-slot=field]]:rounded-md has-[>[data-slot=field]]:border [&>[data-slot=field]]:p-4",
|
|
73
73
|
"has-data-[state=checked]:bg-primary/5 has-data-[state=checked]:border-primary dark:has-data-[state=checked]:bg-primary/10",
|
|
@@ -520,7 +520,7 @@ const FA = "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEBLAEsAAD/4QCNRXhpZgAASUkqA
|
|
|
520
520
|
s.currentTarget.src = A ?? c;
|
|
521
521
|
},
|
|
522
522
|
onLoad: () => m(!0),
|
|
523
|
-
className:
|
|
523
|
+
className: S(
|
|
524
524
|
"duration-500 ease-in-out",
|
|
525
525
|
r ? "opacity-100" : "opacity-0",
|
|
526
526
|
t
|
|
@@ -532,7 +532,7 @@ const FA = "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEBLAEsAAD/4QCNRXhpZgAASUkqA
|
|
|
532
532
|
);
|
|
533
533
|
GA.displayName = "Image";
|
|
534
534
|
const K = (A) => {
|
|
535
|
-
const a =
|
|
535
|
+
const a = RA.create({
|
|
536
536
|
baseURL: A,
|
|
537
537
|
timeout: 5e3,
|
|
538
538
|
headers: { "Content-Type": "application/json" }
|
|
@@ -553,7 +553,7 @@ function UA({
|
|
|
553
553
|
enabled: t = !0
|
|
554
554
|
}) {
|
|
555
555
|
const { environments: n } = W();
|
|
556
|
-
return
|
|
556
|
+
return Z({
|
|
557
557
|
queryKey: ["campaigns", A, ...a || []],
|
|
558
558
|
queryFn: () => zA({
|
|
559
559
|
filter: A,
|
|
@@ -564,7 +564,7 @@ function UA({
|
|
|
564
564
|
}
|
|
565
565
|
const YA = B(
|
|
566
566
|
({ queryKey: A, value: a, defaultValue: t, onValueChange: n, id: i, disabled: r, ...m }, c) => {
|
|
567
|
-
const s = t ? { title: String(t) } : void 0, [d, f] = P(!1), [l, g] = P(s), [y, v] = P(""), N =
|
|
567
|
+
const s = t ? { title: String(t) } : void 0, [d, f] = P(!1), [l, g] = P(s), [y, v] = P(""), N = V(y, 200), p = UA({
|
|
568
568
|
filter: {
|
|
569
569
|
page: 1,
|
|
570
570
|
limit: 5,
|
|
@@ -576,12 +576,12 @@ const YA = B(
|
|
|
576
576
|
J(() => {
|
|
577
577
|
!a && l && (g(void 0), v(""));
|
|
578
578
|
}, [l, a]);
|
|
579
|
-
const
|
|
579
|
+
const I = (h) => {
|
|
580
580
|
const u = w?.find((C) => C._id === h);
|
|
581
581
|
f(!1), u && (g(u), n(u));
|
|
582
582
|
};
|
|
583
|
-
return /* @__PURE__ */ o(
|
|
584
|
-
/* @__PURE__ */ e(
|
|
583
|
+
return /* @__PURE__ */ o(k, { open: d, onOpenChange: f, children: [
|
|
584
|
+
/* @__PURE__ */ e(L, { asChild: !0, children: /* @__PURE__ */ o(
|
|
585
585
|
q,
|
|
586
586
|
{
|
|
587
587
|
id: i,
|
|
@@ -596,7 +596,7 @@ const YA = B(
|
|
|
596
596
|
]
|
|
597
597
|
}
|
|
598
598
|
) }),
|
|
599
|
-
/* @__PURE__ */ e(
|
|
599
|
+
/* @__PURE__ */ e(j, { className: "w-full min-w-[var(--radix-popper-anchor-width)] p-0", children: /* @__PURE__ */ o(Q, { shouldFilter: !1, children: [
|
|
600
600
|
/* @__PURE__ */ e(
|
|
601
601
|
T,
|
|
602
602
|
{
|
|
@@ -622,7 +622,7 @@ const YA = B(
|
|
|
622
622
|
{
|
|
623
623
|
value: h._id,
|
|
624
624
|
onSelect: (u) => {
|
|
625
|
-
|
|
625
|
+
I(
|
|
626
626
|
u === l?._id ? "" : u
|
|
627
627
|
), f(!1);
|
|
628
628
|
},
|
|
@@ -631,7 +631,7 @@ const YA = B(
|
|
|
631
631
|
/* @__PURE__ */ e(
|
|
632
632
|
Y,
|
|
633
633
|
{
|
|
634
|
-
className:
|
|
634
|
+
className: S(
|
|
635
635
|
"ml-auto",
|
|
636
636
|
l?._id === h._id ? "opacity-100" : "opacity-0"
|
|
637
637
|
)
|
|
@@ -657,7 +657,7 @@ function WA({
|
|
|
657
657
|
enabled: t = !0
|
|
658
658
|
}) {
|
|
659
659
|
const { environments: n } = W();
|
|
660
|
-
return
|
|
660
|
+
return Z({
|
|
661
661
|
queryKey: ["clients", A, ...a || []],
|
|
662
662
|
queryFn: () => JA({
|
|
663
663
|
filter: A,
|
|
@@ -677,7 +677,7 @@ const dA = B(
|
|
|
677
677
|
clientType: m,
|
|
678
678
|
...c
|
|
679
679
|
}, s) => {
|
|
680
|
-
const d = t ? { name: String(t) } : void 0, [f, l] = P(!1), [g, y] = P(d), [v, N] = P(""), p =
|
|
680
|
+
const d = t ? { name: String(t) } : void 0, [f, l] = P(!1), [g, y] = P(d), [v, N] = P(""), p = V(v, 200), w = WA({
|
|
681
681
|
filter: {
|
|
682
682
|
page: 1,
|
|
683
683
|
limit: 5,
|
|
@@ -686,16 +686,16 @@ const dA = B(
|
|
|
686
686
|
},
|
|
687
687
|
queryKey: A,
|
|
688
688
|
enabled: f
|
|
689
|
-
}),
|
|
689
|
+
}), I = w.data?.data;
|
|
690
690
|
J(() => {
|
|
691
691
|
!a && g && (y(void 0), N(""));
|
|
692
692
|
}, [g, a]);
|
|
693
693
|
const h = (u) => {
|
|
694
|
-
const C =
|
|
694
|
+
const C = I?.find((M) => M._id === u);
|
|
695
695
|
l(!1), C && (y(C), n(C));
|
|
696
696
|
};
|
|
697
|
-
return /* @__PURE__ */ o(
|
|
698
|
-
/* @__PURE__ */ e(
|
|
697
|
+
return /* @__PURE__ */ o(k, { open: f, onOpenChange: l, children: [
|
|
698
|
+
/* @__PURE__ */ e(L, { asChild: !0, children: /* @__PURE__ */ o(
|
|
699
699
|
q,
|
|
700
700
|
{
|
|
701
701
|
id: i,
|
|
@@ -710,7 +710,7 @@ const dA = B(
|
|
|
710
710
|
]
|
|
711
711
|
}
|
|
712
712
|
) }),
|
|
713
|
-
/* @__PURE__ */ e(
|
|
713
|
+
/* @__PURE__ */ e(j, { className: "w-full min-w-[var(--radix-popper-anchor-width)] p-0", children: /* @__PURE__ */ o(Q, { shouldFilter: !1, children: [
|
|
714
714
|
/* @__PURE__ */ e(
|
|
715
715
|
T,
|
|
716
716
|
{
|
|
@@ -724,14 +724,14 @@ const dA = B(
|
|
|
724
724
|
}
|
|
725
725
|
),
|
|
726
726
|
/* @__PURE__ */ o(F, { children: [
|
|
727
|
-
w.isSuccess &&
|
|
727
|
+
w.isSuccess && I?.length === 0 && /* @__PURE__ */ e(b, { children: "Nenhuma cliente encontrado." }),
|
|
728
728
|
w.isError && /* @__PURE__ */ e(b, { children: "Ocorreu um erro ao buscar os clientes." }),
|
|
729
729
|
!w.isEnabled && /* @__PURE__ */ e(b, { children: "Busque um cliente..." }),
|
|
730
730
|
w.fetchStatus !== "idle" && w.isPending && /* @__PURE__ */ o(b, { className: "flex items-center justify-center gap-2", children: [
|
|
731
731
|
/* @__PURE__ */ e(G, { className: "size-4 animate-spin" }),
|
|
732
732
|
"Buscando..."
|
|
733
733
|
] }),
|
|
734
|
-
/* @__PURE__ */ e(z, { children:
|
|
734
|
+
/* @__PURE__ */ e(z, { children: I?.map((u) => /* @__PURE__ */ o(
|
|
735
735
|
U,
|
|
736
736
|
{
|
|
737
737
|
value: u._id,
|
|
@@ -745,7 +745,7 @@ const dA = B(
|
|
|
745
745
|
/* @__PURE__ */ e(
|
|
746
746
|
Y,
|
|
747
747
|
{
|
|
748
|
-
className:
|
|
748
|
+
className: S(
|
|
749
749
|
"ml-auto",
|
|
750
750
|
g?._id === u._id ? "opacity-100" : "opacity-0"
|
|
751
751
|
)
|
|
@@ -761,21 +761,21 @@ const dA = B(
|
|
|
761
761
|
}
|
|
762
762
|
);
|
|
763
763
|
dA.displayName = "ClientSelectInput";
|
|
764
|
-
const
|
|
764
|
+
const VA = async ({
|
|
765
765
|
filter: A,
|
|
766
766
|
environment: a
|
|
767
767
|
}) => (await K(a).get("/influencers", {
|
|
768
768
|
params: A
|
|
769
769
|
})).data;
|
|
770
|
-
function
|
|
770
|
+
function ZA({
|
|
771
771
|
filter: A,
|
|
772
772
|
queryKey: a,
|
|
773
773
|
enabled: t = !0
|
|
774
774
|
}) {
|
|
775
775
|
const { environments: n } = W();
|
|
776
|
-
return
|
|
776
|
+
return Z({
|
|
777
777
|
queryKey: ["influencers", A, ...a || []],
|
|
778
|
-
queryFn: () =>
|
|
778
|
+
queryFn: () => VA({
|
|
779
779
|
filter: A,
|
|
780
780
|
environment: n.VITE_BACKEND_API_INFLUENCERS_URL ?? ""
|
|
781
781
|
}),
|
|
@@ -784,7 +784,7 @@ function VA({
|
|
|
784
784
|
}
|
|
785
785
|
const XA = B(
|
|
786
786
|
({ queryKey: A, value: a, defaultValue: t, onValueChange: n, id: i, disabled: r, ...m }, c) => {
|
|
787
|
-
const s = t ? { name: String(t) } : void 0, [d, f] = P(!1), [l, g] = P(s), [y, v] = P(""), N =
|
|
787
|
+
const s = t ? { name: String(t) } : void 0, [d, f] = P(!1), [l, g] = P(s), [y, v] = P(""), N = V(y, 200), p = ZA({
|
|
788
788
|
filter: {
|
|
789
789
|
page: 1,
|
|
790
790
|
limit: 10,
|
|
@@ -796,12 +796,12 @@ const XA = B(
|
|
|
796
796
|
J(() => {
|
|
797
797
|
!a && l && (g(void 0), v(""));
|
|
798
798
|
}, [l, a]);
|
|
799
|
-
const
|
|
799
|
+
const I = (h) => {
|
|
800
800
|
const u = w?.find((C) => C._id === h);
|
|
801
801
|
f(!1), u && (g(u), n(u));
|
|
802
802
|
};
|
|
803
|
-
return /* @__PURE__ */ o(
|
|
804
|
-
/* @__PURE__ */ e(
|
|
803
|
+
return /* @__PURE__ */ o(k, { open: d, onOpenChange: f, children: [
|
|
804
|
+
/* @__PURE__ */ e(L, { asChild: !0, children: /* @__PURE__ */ o(
|
|
805
805
|
q,
|
|
806
806
|
{
|
|
807
807
|
id: i,
|
|
@@ -816,7 +816,7 @@ const XA = B(
|
|
|
816
816
|
]
|
|
817
817
|
}
|
|
818
818
|
) }),
|
|
819
|
-
/* @__PURE__ */ e(
|
|
819
|
+
/* @__PURE__ */ e(j, { className: "w-full min-w-[var(--radix-popper-anchor-width)] p-0", children: /* @__PURE__ */ o(Q, { shouldFilter: !1, children: [
|
|
820
820
|
/* @__PURE__ */ e(
|
|
821
821
|
T,
|
|
822
822
|
{
|
|
@@ -842,7 +842,7 @@ const XA = B(
|
|
|
842
842
|
{
|
|
843
843
|
value: h._id,
|
|
844
844
|
onSelect: (u) => {
|
|
845
|
-
|
|
845
|
+
I(
|
|
846
846
|
u === l?._id ? "" : u
|
|
847
847
|
), f(!1);
|
|
848
848
|
},
|
|
@@ -851,7 +851,7 @@ const XA = B(
|
|
|
851
851
|
/* @__PURE__ */ e(
|
|
852
852
|
Y,
|
|
853
853
|
{
|
|
854
|
-
className:
|
|
854
|
+
className: S(
|
|
855
855
|
"ml-auto",
|
|
856
856
|
l?._id === h._id ? "opacity-100" : "opacity-0"
|
|
857
857
|
)
|
|
@@ -890,12 +890,19 @@ const lA = {
|
|
|
890
890
|
linkedin: "bg-[#0a66c2]",
|
|
891
891
|
pinterest: "bg-[#e60023]",
|
|
892
892
|
twitter: "bg-black"
|
|
893
|
+
}, da = {
|
|
894
|
+
new: "Aquisição",
|
|
895
|
+
organic_expansion: "Expansão Orgânica de Base",
|
|
896
|
+
strategic_expansion: "Expansão Estratégica de Base",
|
|
897
|
+
renewal: "Renovação",
|
|
898
|
+
comercial_winback: "Reativação Comercial",
|
|
899
|
+
organic_winback: "Reativação Orgânica"
|
|
893
900
|
}, $A = {
|
|
894
901
|
instagram: Je,
|
|
895
|
-
tiktok:
|
|
902
|
+
tiktok: Ze,
|
|
896
903
|
youtube: Ke,
|
|
897
904
|
linkedin: We,
|
|
898
|
-
pinterest:
|
|
905
|
+
pinterest: Ve,
|
|
899
906
|
twitter: Xe
|
|
900
907
|
};
|
|
901
908
|
function Ae(A) {
|
|
@@ -910,7 +917,7 @@ function ee(A) {
|
|
|
910
917
|
function ae(A) {
|
|
911
918
|
return typeof A != "string" || !A ? !1 : A in _A;
|
|
912
919
|
}
|
|
913
|
-
const
|
|
920
|
+
const la = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
914
921
|
__proto__: null,
|
|
915
922
|
isBusinessUnit: ae,
|
|
916
923
|
isClientType: ee,
|
|
@@ -928,7 +935,7 @@ function ne({
|
|
|
928
935
|
enabled: t = !0
|
|
929
936
|
}) {
|
|
930
937
|
const { environments: n } = W();
|
|
931
|
-
return
|
|
938
|
+
return Z({
|
|
932
939
|
queryKey: ["profile", A, ...a || []],
|
|
933
940
|
queryFn: () => te({
|
|
934
941
|
filter: A,
|
|
@@ -939,7 +946,7 @@ function ne({
|
|
|
939
946
|
}
|
|
940
947
|
const uA = B(
|
|
941
948
|
({ queryKey: A, value: a, defaultValue: t, onValueChange: n, id: i, disabled: r, ...m }, c) => {
|
|
942
|
-
const s = t ? { username: String(t) } : void 0, [d, f] = P(!1), [l, g] = P(s), [y, v] = P(""), N =
|
|
949
|
+
const s = t ? { username: String(t) } : void 0, [d, f] = P(!1), [l, g] = P(s), [y, v] = P(""), N = V(y, 200), p = ne({
|
|
943
950
|
filter: {
|
|
944
951
|
searchTerm: N,
|
|
945
952
|
fromRecruitment: !1
|
|
@@ -950,21 +957,21 @@ const uA = B(
|
|
|
950
957
|
J(() => {
|
|
951
958
|
!a && l && (g(void 0), v(""));
|
|
952
959
|
}, [l, a]);
|
|
953
|
-
const
|
|
960
|
+
const I = (u) => {
|
|
954
961
|
const C = w?.find((M) => M._id === u);
|
|
955
962
|
f(!1), C && (g(C), n(C));
|
|
956
963
|
}, h = tA(
|
|
957
964
|
l?.socialnetwork
|
|
958
965
|
) ? lA[l.socialnetwork] : "";
|
|
959
|
-
return /* @__PURE__ */ o(
|
|
960
|
-
/* @__PURE__ */ e(
|
|
966
|
+
return /* @__PURE__ */ o(k, { open: d, onOpenChange: f, children: [
|
|
967
|
+
/* @__PURE__ */ e(L, { asChild: !0, children: /* @__PURE__ */ o(
|
|
961
968
|
q,
|
|
962
969
|
{
|
|
963
970
|
id: i,
|
|
964
971
|
variant: "outline",
|
|
965
972
|
role: "combobox",
|
|
966
973
|
"aria-expanded": d,
|
|
967
|
-
className:
|
|
974
|
+
className: S(
|
|
968
975
|
"w-full justify-between",
|
|
969
976
|
r && "!pointer-events-auto !cursor-not-allowed hover:bg-transparent"
|
|
970
977
|
),
|
|
@@ -975,7 +982,7 @@ const uA = B(
|
|
|
975
982
|
]
|
|
976
983
|
}
|
|
977
984
|
) }),
|
|
978
|
-
/* @__PURE__ */ e(
|
|
985
|
+
/* @__PURE__ */ e(j, { className: "w-full min-w-[var(--radix-popper-anchor-width)] p-0", children: /* @__PURE__ */ o(Q, { shouldFilter: !1, children: [
|
|
979
986
|
/* @__PURE__ */ e(
|
|
980
987
|
T,
|
|
981
988
|
{
|
|
@@ -1004,7 +1011,7 @@ const uA = B(
|
|
|
1004
1011
|
{
|
|
1005
1012
|
value: u._id,
|
|
1006
1013
|
onSelect: (M) => {
|
|
1007
|
-
|
|
1014
|
+
I(
|
|
1008
1015
|
M === l?._id ? "" : M
|
|
1009
1016
|
), f(!1);
|
|
1010
1017
|
},
|
|
@@ -1015,7 +1022,7 @@ const uA = B(
|
|
|
1015
1022
|
/* @__PURE__ */ e(
|
|
1016
1023
|
Y,
|
|
1017
1024
|
{
|
|
1018
|
-
className:
|
|
1025
|
+
className: S(
|
|
1019
1026
|
"ml-auto",
|
|
1020
1027
|
l?._id === u._id ? "opacity-100" : "opacity-0"
|
|
1021
1028
|
)
|
|
@@ -1042,7 +1049,7 @@ function oe({
|
|
|
1042
1049
|
enabled: t = !0
|
|
1043
1050
|
}) {
|
|
1044
1051
|
const { environments: n } = W();
|
|
1045
|
-
return
|
|
1052
|
+
return Z({
|
|
1046
1053
|
queryKey: ["sales", A, ...a || []],
|
|
1047
1054
|
queryFn: () => re({
|
|
1048
1055
|
filter: A,
|
|
@@ -1053,7 +1060,7 @@ function oe({
|
|
|
1053
1060
|
}
|
|
1054
1061
|
const mA = B(
|
|
1055
1062
|
({ queryKey: A, value: a, defaultValue: t, onValueChange: n, id: i, disabled: r, ...m }, c) => {
|
|
1056
|
-
const s = t ? { title: String(t) } : void 0, [d, f] = P(!1), [l, g] = P(s), [y, v] = P(""), N =
|
|
1063
|
+
const s = t ? { title: String(t) } : void 0, [d, f] = P(!1), [l, g] = P(s), [y, v] = P(""), N = V(y, 200), p = oe({
|
|
1057
1064
|
filter: {
|
|
1058
1065
|
page: 1,
|
|
1059
1066
|
limit: 5,
|
|
@@ -1065,12 +1072,12 @@ const mA = B(
|
|
|
1065
1072
|
J(() => {
|
|
1066
1073
|
!a && l && (g(void 0), v(""));
|
|
1067
1074
|
}, [l, a]);
|
|
1068
|
-
const
|
|
1075
|
+
const I = (h) => {
|
|
1069
1076
|
const u = w?.find((C) => C._id === h);
|
|
1070
1077
|
f(!1), u && (g(u), n(u));
|
|
1071
1078
|
};
|
|
1072
|
-
return /* @__PURE__ */ o(
|
|
1073
|
-
/* @__PURE__ */ e(
|
|
1079
|
+
return /* @__PURE__ */ o(k, { open: d, onOpenChange: f, children: [
|
|
1080
|
+
/* @__PURE__ */ e(L, { asChild: !0, children: /* @__PURE__ */ o(
|
|
1074
1081
|
q,
|
|
1075
1082
|
{
|
|
1076
1083
|
id: i,
|
|
@@ -1085,7 +1092,7 @@ const mA = B(
|
|
|
1085
1092
|
]
|
|
1086
1093
|
}
|
|
1087
1094
|
) }),
|
|
1088
|
-
/* @__PURE__ */ e(
|
|
1095
|
+
/* @__PURE__ */ e(j, { className: "w-full min-w-[var(--radix-popper-anchor-width)] p-0", children: /* @__PURE__ */ o(Q, { shouldFilter: !1, children: [
|
|
1089
1096
|
/* @__PURE__ */ e(
|
|
1090
1097
|
T,
|
|
1091
1098
|
{
|
|
@@ -1111,7 +1118,7 @@ const mA = B(
|
|
|
1111
1118
|
{
|
|
1112
1119
|
value: h._id,
|
|
1113
1120
|
onSelect: (u) => {
|
|
1114
|
-
|
|
1121
|
+
I(
|
|
1115
1122
|
u === l?._id ? "" : u
|
|
1116
1123
|
), f(!1);
|
|
1117
1124
|
},
|
|
@@ -1120,7 +1127,7 @@ const mA = B(
|
|
|
1120
1127
|
/* @__PURE__ */ e(
|
|
1121
1128
|
Y,
|
|
1122
1129
|
{
|
|
1123
|
-
className:
|
|
1130
|
+
className: S(
|
|
1124
1131
|
"ml-auto",
|
|
1125
1132
|
l?._id === h._id ? "opacity-100" : "opacity-0"
|
|
1126
1133
|
)
|
|
@@ -1392,24 +1399,24 @@ const ie = {
|
|
|
1392
1399
|
formattingValues: Be,
|
|
1393
1400
|
defaultFormattingWidth: "wide"
|
|
1394
1401
|
})
|
|
1395
|
-
}, ye = /^(\d+)[ºªo]?/i, ve = /\d+/i,
|
|
1402
|
+
}, ye = /^(\d+)[ºªo]?/i, ve = /\d+/i, Se = {
|
|
1396
1403
|
narrow: /^(ac|dc|a|d)/i,
|
|
1397
1404
|
abbreviated: /^(a\.?\s?c\.?|d\.?\s?c\.?)/i,
|
|
1398
1405
|
wide: /^(antes de cristo|depois de cristo)/i
|
|
1399
|
-
},
|
|
1406
|
+
}, Ie = {
|
|
1400
1407
|
any: [/^ac/i, /^dc/i],
|
|
1401
1408
|
wide: [/^antes de cristo/i, /^depois de cristo/i]
|
|
1402
1409
|
}, Ne = {
|
|
1403
1410
|
narrow: /^[1234]/i,
|
|
1404
1411
|
abbreviated: /^T[1234]/i,
|
|
1405
1412
|
wide: /^[1234](º)? trimestre/i
|
|
1406
|
-
}, De = {
|
|
1407
|
-
any: [/1/i, /2/i, /3/i, /4/i]
|
|
1408
1413
|
}, Ee = {
|
|
1414
|
+
any: [/1/i, /2/i, /3/i, /4/i]
|
|
1415
|
+
}, xe = {
|
|
1409
1416
|
narrow: /^[jfmajsond]/i,
|
|
1410
1417
|
abbreviated: /^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i,
|
|
1411
1418
|
wide: /^(janeiro|fevereiro|março|abril|maio|junho|julho|agosto|setembro|outubro|novembro|dezembro)/i
|
|
1412
|
-
},
|
|
1419
|
+
}, Re = {
|
|
1413
1420
|
narrow: [
|
|
1414
1421
|
/^j/i,
|
|
1415
1422
|
/^f/i,
|
|
@@ -1438,7 +1445,7 @@ const ie = {
|
|
|
1438
1445
|
/^nov/i,
|
|
1439
1446
|
/^dez/i
|
|
1440
1447
|
]
|
|
1441
|
-
},
|
|
1448
|
+
}, De = {
|
|
1442
1449
|
narrow: /^(dom|[23456]ª?|s[aá]b)/i,
|
|
1443
1450
|
short: /^(dom|[23456]ª?|s[aá]b)/i,
|
|
1444
1451
|
abbreviated: /^(dom|seg|ter|qua|qui|sex|s[aá]b)/i,
|
|
@@ -1450,7 +1457,7 @@ const ie = {
|
|
|
1450
1457
|
}, qe = {
|
|
1451
1458
|
narrow: /^(a|p|mn|md|(da) (manhã|tarde|noite))/i,
|
|
1452
1459
|
any: /^([ap]\.?\s?m\.?|meia[-\s]noite|meio[-\s]dia|(da) (manhã|tarde|noite))/i
|
|
1453
|
-
},
|
|
1460
|
+
}, ke = {
|
|
1454
1461
|
any: {
|
|
1455
1462
|
am: /^a/i,
|
|
1456
1463
|
pm: /^p/i,
|
|
@@ -1461,33 +1468,33 @@ const ie = {
|
|
|
1461
1468
|
evening: /tarde/i,
|
|
1462
1469
|
night: /noite/i
|
|
1463
1470
|
}
|
|
1464
|
-
},
|
|
1465
|
-
ordinalNumber:
|
|
1471
|
+
}, Le = {
|
|
1472
|
+
ordinalNumber: EA({
|
|
1466
1473
|
matchPattern: ye,
|
|
1467
1474
|
parsePattern: ve,
|
|
1468
1475
|
valueCallback: (A) => parseInt(A, 10)
|
|
1469
1476
|
}),
|
|
1470
1477
|
era: O({
|
|
1471
|
-
matchPatterns:
|
|
1478
|
+
matchPatterns: Se,
|
|
1472
1479
|
defaultMatchWidth: "wide",
|
|
1473
|
-
parsePatterns:
|
|
1480
|
+
parsePatterns: Ie,
|
|
1474
1481
|
defaultParseWidth: "any"
|
|
1475
1482
|
}),
|
|
1476
1483
|
quarter: O({
|
|
1477
1484
|
matchPatterns: Ne,
|
|
1478
1485
|
defaultMatchWidth: "wide",
|
|
1479
|
-
parsePatterns:
|
|
1486
|
+
parsePatterns: Ee,
|
|
1480
1487
|
defaultParseWidth: "any",
|
|
1481
1488
|
valueCallback: (A) => A + 1
|
|
1482
1489
|
}),
|
|
1483
1490
|
month: O({
|
|
1484
|
-
matchPatterns:
|
|
1491
|
+
matchPatterns: xe,
|
|
1485
1492
|
defaultMatchWidth: "wide",
|
|
1486
|
-
parsePatterns:
|
|
1493
|
+
parsePatterns: Re,
|
|
1487
1494
|
defaultParseWidth: "any"
|
|
1488
1495
|
}),
|
|
1489
1496
|
day: O({
|
|
1490
|
-
matchPatterns:
|
|
1497
|
+
matchPatterns: De,
|
|
1491
1498
|
defaultMatchWidth: "wide",
|
|
1492
1499
|
parsePatterns: Me,
|
|
1493
1500
|
defaultParseWidth: "any"
|
|
@@ -1495,16 +1502,16 @@ const ie = {
|
|
|
1495
1502
|
dayPeriod: O({
|
|
1496
1503
|
matchPatterns: qe,
|
|
1497
1504
|
defaultMatchWidth: "any",
|
|
1498
|
-
parsePatterns:
|
|
1505
|
+
parsePatterns: ke,
|
|
1499
1506
|
defaultParseWidth: "any"
|
|
1500
1507
|
})
|
|
1501
|
-
},
|
|
1508
|
+
}, je = {
|
|
1502
1509
|
code: "pt-BR",
|
|
1503
1510
|
formatDistance: se,
|
|
1504
1511
|
formatLong: ue,
|
|
1505
1512
|
formatRelative: fe,
|
|
1506
1513
|
localize: Pe,
|
|
1507
|
-
match:
|
|
1514
|
+
match: Le,
|
|
1508
1515
|
options: {
|
|
1509
1516
|
weekStartsOn: 0,
|
|
1510
1517
|
firstWeekContainsDate: 1
|
|
@@ -1524,10 +1531,10 @@ const ie = {
|
|
|
1524
1531
|
const [f, l] = P(!1);
|
|
1525
1532
|
return i && !A && console.warn(
|
|
1526
1533
|
"A prop `asterisk` deve ser utilizada junto com a prop `label`."
|
|
1527
|
-
), /* @__PURE__ */ o(
|
|
1528
|
-
A && /* @__PURE__ */ e(
|
|
1529
|
-
/* @__PURE__ */ o(
|
|
1530
|
-
/* @__PURE__ */ e(
|
|
1534
|
+
), /* @__PURE__ */ o(E, { "data-invalid": m, children: [
|
|
1535
|
+
A && /* @__PURE__ */ e(D, { asterisk: i, htmlFor: a, children: A }),
|
|
1536
|
+
/* @__PURE__ */ o(k, { open: f, onOpenChange: l, children: [
|
|
1537
|
+
/* @__PURE__ */ e(L, { asChild: !0, children: /* @__PURE__ */ o(
|
|
1531
1538
|
q,
|
|
1532
1539
|
{
|
|
1533
1540
|
variant: "outline",
|
|
@@ -1541,14 +1548,14 @@ const ie = {
|
|
|
1541
1548
|
]
|
|
1542
1549
|
}
|
|
1543
1550
|
) }),
|
|
1544
|
-
/* @__PURE__ */ e(
|
|
1545
|
-
|
|
1551
|
+
/* @__PURE__ */ e(j, { className: "w-auto overflow-hidden p-0", align: "start", children: /* @__PURE__ */ e(
|
|
1552
|
+
xA,
|
|
1546
1553
|
{
|
|
1547
1554
|
mode: "single",
|
|
1548
1555
|
selected: t ? new Date(t) : void 0,
|
|
1549
1556
|
defaultMonth: t ? new Date(t) : void 0,
|
|
1550
1557
|
captionLayout: "dropdown",
|
|
1551
|
-
locale:
|
|
1558
|
+
locale: je,
|
|
1552
1559
|
startMonth: new Date(2e3, 0),
|
|
1553
1560
|
endMonth: new Date(2050, 11),
|
|
1554
1561
|
hidden: { after: new Date(2050, 11, 31) },
|
|
@@ -1558,8 +1565,8 @@ const ie = {
|
|
|
1558
1565
|
}
|
|
1559
1566
|
) })
|
|
1560
1567
|
] }),
|
|
1561
|
-
n && /* @__PURE__ */ e(
|
|
1562
|
-
m && /* @__PURE__ */ e(
|
|
1568
|
+
n && /* @__PURE__ */ e(x, { children: n }),
|
|
1569
|
+
m && /* @__PURE__ */ e(R, { errors: [c] })
|
|
1563
1570
|
] });
|
|
1564
1571
|
}
|
|
1565
1572
|
);
|
|
@@ -1568,8 +1575,8 @@ const Oe = B(({ label: A, description: a, asterisk: t, invalid: n, error: i, ...
|
|
|
1568
1575
|
const { name: c } = r;
|
|
1569
1576
|
return t && !A && console.warn(
|
|
1570
1577
|
"A prop `asterisk` deve ser utilizada junto com a prop `label`."
|
|
1571
|
-
), /* @__PURE__ */ o(
|
|
1572
|
-
A && /* @__PURE__ */ e(
|
|
1578
|
+
), /* @__PURE__ */ o(E, { "data-invalid": n, children: [
|
|
1579
|
+
A && /* @__PURE__ */ e(D, { htmlFor: c, asterisk: t, children: A }),
|
|
1573
1580
|
/* @__PURE__ */ e(
|
|
1574
1581
|
dA,
|
|
1575
1582
|
{
|
|
@@ -1579,8 +1586,8 @@ const Oe = B(({ label: A, description: a, asterisk: t, invalid: n, error: i, ...
|
|
|
1579
1586
|
ref: m
|
|
1580
1587
|
}
|
|
1581
1588
|
),
|
|
1582
|
-
a && /* @__PURE__ */ e(
|
|
1583
|
-
n && /* @__PURE__ */ e(
|
|
1589
|
+
a && /* @__PURE__ */ e(x, { children: a }),
|
|
1590
|
+
n && /* @__PURE__ */ e(R, { errors: [i] })
|
|
1584
1591
|
] });
|
|
1585
1592
|
});
|
|
1586
1593
|
Oe.displayName = "FieldClientSelectInput";
|
|
@@ -1589,11 +1596,11 @@ const Qe = B(
|
|
|
1589
1596
|
const { name: c } = r;
|
|
1590
1597
|
return t && !A && console.warn(
|
|
1591
1598
|
"A prop `asterisk` deve ser utilizada junto com a prop `label`."
|
|
1592
|
-
), /* @__PURE__ */ o(
|
|
1593
|
-
A && /* @__PURE__ */ e(
|
|
1599
|
+
), /* @__PURE__ */ o(E, { "data-invalid": n, children: [
|
|
1600
|
+
A && /* @__PURE__ */ e(D, { htmlFor: c, asterisk: t, children: A }),
|
|
1594
1601
|
/* @__PURE__ */ e(wA, { id: c, "aria-invalid": n, ...r, ref: m }),
|
|
1595
|
-
a && /* @__PURE__ */ e(
|
|
1596
|
-
n && /* @__PURE__ */ e(
|
|
1602
|
+
a && /* @__PURE__ */ e(x, { children: a }),
|
|
1603
|
+
n && /* @__PURE__ */ e(R, { errors: [i] })
|
|
1597
1604
|
] });
|
|
1598
1605
|
}
|
|
1599
1606
|
);
|
|
@@ -1602,8 +1609,8 @@ const Te = B(({ label: A, description: a, asterisk: t, invalid: n, error: i, ...
|
|
|
1602
1609
|
const { name: c } = r;
|
|
1603
1610
|
return t && !A && console.warn(
|
|
1604
1611
|
"A prop `asterisk` deve ser utilizada junto com a prop `label`."
|
|
1605
|
-
), /* @__PURE__ */ o(
|
|
1606
|
-
A && /* @__PURE__ */ e(
|
|
1612
|
+
), /* @__PURE__ */ o(E, { "data-invalid": n, children: [
|
|
1613
|
+
A && /* @__PURE__ */ e(D, { htmlFor: c, asterisk: t, children: A }),
|
|
1607
1614
|
/* @__PURE__ */ e(
|
|
1608
1615
|
uA,
|
|
1609
1616
|
{
|
|
@@ -1613,8 +1620,8 @@ const Te = B(({ label: A, description: a, asterisk: t, invalid: n, error: i, ...
|
|
|
1613
1620
|
ref: m
|
|
1614
1621
|
}
|
|
1615
1622
|
),
|
|
1616
|
-
a && /* @__PURE__ */ e(
|
|
1617
|
-
n && /* @__PURE__ */ e(
|
|
1623
|
+
a && /* @__PURE__ */ e(x, { children: a }),
|
|
1624
|
+
n && /* @__PURE__ */ e(R, { errors: [i] })
|
|
1618
1625
|
] });
|
|
1619
1626
|
});
|
|
1620
1627
|
Te.displayName = "FieldProfileSelectInput";
|
|
@@ -1622,8 +1629,8 @@ const Fe = B(({ label: A, description: a, asterisk: t, invalid: n, error: i, ...
|
|
|
1622
1629
|
const { name: c } = r;
|
|
1623
1630
|
return t && !A && console.warn(
|
|
1624
1631
|
"A prop `asterisk` deve ser utilizada junto com a prop `label`."
|
|
1625
|
-
), /* @__PURE__ */ o(
|
|
1626
|
-
A && /* @__PURE__ */ e(
|
|
1632
|
+
), /* @__PURE__ */ o(E, { "data-invalid": n, children: [
|
|
1633
|
+
A && /* @__PURE__ */ e(D, { htmlFor: c, asterisk: t, children: A }),
|
|
1627
1634
|
/* @__PURE__ */ e(
|
|
1628
1635
|
mA,
|
|
1629
1636
|
{
|
|
@@ -1633,8 +1640,8 @@ const Fe = B(({ label: A, description: a, asterisk: t, invalid: n, error: i, ...
|
|
|
1633
1640
|
...r
|
|
1634
1641
|
}
|
|
1635
1642
|
),
|
|
1636
|
-
a && /* @__PURE__ */ e(
|
|
1637
|
-
n && /* @__PURE__ */ e(
|
|
1643
|
+
a && /* @__PURE__ */ e(x, { children: a }),
|
|
1644
|
+
n && /* @__PURE__ */ e(R, { errors: [i] })
|
|
1638
1645
|
] });
|
|
1639
1646
|
});
|
|
1640
1647
|
Fe.displayName = "FieldSaleSelectInput";
|
|
@@ -1653,8 +1660,8 @@ const Ge = B(
|
|
|
1653
1660
|
...f
|
|
1654
1661
|
}, l) => (i && !A && console.warn(
|
|
1655
1662
|
"A prop `asterisk` deve ser utilizada junto com a prop `label`."
|
|
1656
|
-
), /* @__PURE__ */ o(
|
|
1657
|
-
A && /* @__PURE__ */ e(
|
|
1663
|
+
), /* @__PURE__ */ o(E, { orientation: "vertical", "data-invalid": s, children: [
|
|
1664
|
+
A && /* @__PURE__ */ e(D, { htmlFor: a, asterisk: i, children: A }),
|
|
1658
1665
|
/* @__PURE__ */ o(
|
|
1659
1666
|
bA,
|
|
1660
1667
|
{
|
|
@@ -1676,8 +1683,8 @@ const Ge = B(
|
|
|
1676
1683
|
]
|
|
1677
1684
|
}
|
|
1678
1685
|
),
|
|
1679
|
-
n && /* @__PURE__ */ e(
|
|
1680
|
-
s && /* @__PURE__ */ e(
|
|
1686
|
+
n && /* @__PURE__ */ e(x, { children: n }),
|
|
1687
|
+
s && /* @__PURE__ */ e(R, { errors: [d] })
|
|
1681
1688
|
] }))
|
|
1682
1689
|
);
|
|
1683
1690
|
Ge.displayName = "FieldSelect";
|
|
@@ -1686,7 +1693,7 @@ const ze = B(
|
|
|
1686
1693
|
const { name: d } = c;
|
|
1687
1694
|
return t && !A && console.warn(
|
|
1688
1695
|
"A prop `asterisk` deve ser utilizada junto com a prop `label`."
|
|
1689
|
-
), /* @__PURE__ */ o(
|
|
1696
|
+
), /* @__PURE__ */ o(E, { orientation: "horizontal", "data-invalid": n, children: [
|
|
1690
1697
|
/* @__PURE__ */ e(
|
|
1691
1698
|
vA,
|
|
1692
1699
|
{
|
|
@@ -1700,9 +1707,9 @@ const ze = B(
|
|
|
1700
1707
|
}
|
|
1701
1708
|
),
|
|
1702
1709
|
/* @__PURE__ */ o(sA, { children: [
|
|
1703
|
-
A && /* @__PURE__ */ e(
|
|
1704
|
-
a && /* @__PURE__ */ e(
|
|
1705
|
-
n && /* @__PURE__ */ e(
|
|
1710
|
+
A && /* @__PURE__ */ e(D, { htmlFor: d, asterisk: t, children: A }),
|
|
1711
|
+
a && /* @__PURE__ */ e(x, { children: a }),
|
|
1712
|
+
n && /* @__PURE__ */ e(R, { errors: [i] })
|
|
1706
1713
|
] })
|
|
1707
1714
|
] });
|
|
1708
1715
|
}
|
|
@@ -1712,11 +1719,11 @@ const Ue = B(({ label: A, description: a, asterisk: t, invalid: n, error: i, ...
|
|
|
1712
1719
|
const { name: c } = r;
|
|
1713
1720
|
return t && !A && console.warn(
|
|
1714
1721
|
"A prop `asterisk` deve ser utilizada junto com a prop `label`."
|
|
1715
|
-
), /* @__PURE__ */ o(
|
|
1716
|
-
A && /* @__PURE__ */ e(
|
|
1717
|
-
/* @__PURE__ */ e(
|
|
1718
|
-
a && /* @__PURE__ */ e(
|
|
1719
|
-
n && /* @__PURE__ */ e(
|
|
1722
|
+
), /* @__PURE__ */ o(E, { "data-invalid": n, children: [
|
|
1723
|
+
A && /* @__PURE__ */ e(D, { htmlFor: c, asterisk: t, children: A }),
|
|
1724
|
+
/* @__PURE__ */ e(SA, { id: c, "aria-invalid": n, ...r, ref: m }),
|
|
1725
|
+
a && /* @__PURE__ */ e(x, { children: a }),
|
|
1726
|
+
n && /* @__PURE__ */ e(R, { errors: [i] })
|
|
1720
1727
|
] });
|
|
1721
1728
|
});
|
|
1722
1729
|
Ue.displayName = "FieldTextarea";
|
|
@@ -1725,10 +1732,10 @@ const Ye = B(
|
|
|
1725
1732
|
const { name: d } = c;
|
|
1726
1733
|
return t && !A && console.warn(
|
|
1727
1734
|
"A prop `asterisk` deve ser utilizada junto com a prop `label`."
|
|
1728
|
-
), /* @__PURE__ */ e(
|
|
1729
|
-
/* @__PURE__ */ o(
|
|
1735
|
+
), /* @__PURE__ */ e(E, { orientation: "horizontal", "data-invalid": n, children: /* @__PURE__ */ o(sA, { children: [
|
|
1736
|
+
/* @__PURE__ */ o(E, { orientation: "horizontal", children: [
|
|
1730
1737
|
/* @__PURE__ */ e(
|
|
1731
|
-
|
|
1738
|
+
IA,
|
|
1732
1739
|
{
|
|
1733
1740
|
id: d,
|
|
1734
1741
|
name: d,
|
|
@@ -1739,10 +1746,10 @@ const Ye = B(
|
|
|
1739
1746
|
ref: s
|
|
1740
1747
|
}
|
|
1741
1748
|
),
|
|
1742
|
-
A && /* @__PURE__ */ e(
|
|
1749
|
+
A && /* @__PURE__ */ e(D, { htmlFor: d, asterisk: t, children: A })
|
|
1743
1750
|
] }),
|
|
1744
|
-
a && /* @__PURE__ */ e(
|
|
1745
|
-
n && /* @__PURE__ */ e(
|
|
1751
|
+
a && /* @__PURE__ */ e(x, { children: a }),
|
|
1752
|
+
n && /* @__PURE__ */ e(R, { errors: [i] })
|
|
1746
1753
|
] }) });
|
|
1747
1754
|
}
|
|
1748
1755
|
);
|
|
@@ -1804,7 +1811,7 @@ function We({
|
|
|
1804
1811
|
}
|
|
1805
1812
|
);
|
|
1806
1813
|
}
|
|
1807
|
-
function
|
|
1814
|
+
function Ve({
|
|
1808
1815
|
size: A = 24,
|
|
1809
1816
|
color: a = "currentColor",
|
|
1810
1817
|
...t
|
|
@@ -1832,7 +1839,7 @@ function Ze({
|
|
|
1832
1839
|
}
|
|
1833
1840
|
);
|
|
1834
1841
|
}
|
|
1835
|
-
function
|
|
1842
|
+
function Ze({
|
|
1836
1843
|
size: A = 24,
|
|
1837
1844
|
color: a = "transparent",
|
|
1838
1845
|
...t
|
|
@@ -1915,13 +1922,14 @@ export {
|
|
|
1915
1922
|
sa as A,
|
|
1916
1923
|
_A as B,
|
|
1917
1924
|
KA as C,
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1925
|
+
Ve as D,
|
|
1926
|
+
Ze as E,
|
|
1927
|
+
D as F,
|
|
1928
|
+
la as I,
|
|
1921
1929
|
We as L,
|
|
1922
1930
|
MA as P,
|
|
1923
1931
|
lA as S,
|
|
1924
|
-
|
|
1932
|
+
da as T,
|
|
1925
1933
|
Xe as X,
|
|
1926
1934
|
Ke as Y,
|
|
1927
1935
|
ca as a,
|
|
@@ -1930,10 +1938,10 @@ export {
|
|
|
1930
1938
|
ee as d,
|
|
1931
1939
|
ae as e,
|
|
1932
1940
|
qA as f,
|
|
1933
|
-
|
|
1934
|
-
|
|
1941
|
+
kA as g,
|
|
1942
|
+
LA as h,
|
|
1935
1943
|
Ae as i,
|
|
1936
|
-
|
|
1944
|
+
jA as j,
|
|
1937
1945
|
GA as k,
|
|
1938
1946
|
YA as l,
|
|
1939
1947
|
dA as m,
|
package/dist/components.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as b, V as N, c, $ as v, B as S, aI as C, aJ as I, aK as z, ac as T, ad as H, ah as y, ag as _, ae as j, ai as A } from "./chuncks/switch.BuckOH_X.js";
|
|
2
|
-
import { l as ge, m as xe, q as be, y as me, r as he, s as fe, F as ue, t as pe, u as ye, v as we, w as ke, x as Ne, k as ve, n as Ce, z as Ie, L as ze, P as Fe, f as Me, g as Se, h as Te, j as He, D as _e, o as je, p as Ae,
|
|
2
|
+
import { l as ge, m as xe, q as be, y as me, r as he, s as fe, F as ue, t as pe, u as ye, v as we, w as ke, x as Ne, k as ve, n as Ce, z as Ie, L as ze, P as Fe, f as Me, g as Se, h as Te, j as He, D as _e, o as je, p as Ae, E as Le, X as Pe, Y as $e } from "./chuncks/youtube-icon.component.CcHIZWSJ.js";
|
|
3
3
|
import { jsx as e, jsxs as o, Fragment as L } from "react/jsx-runtime";
|
|
4
4
|
import "react";
|
|
5
5
|
import { parseISO as w, differenceInCalendarDays as P, format as $ } from "date-fns";
|
|
@@ -25,13 +25,13 @@ const V = [
|
|
|
25
25
|
["path", { d: "M10 9H8", key: "b1mrlr" }],
|
|
26
26
|
["path", { d: "M16 13H8", key: "t4e002" }],
|
|
27
27
|
["path", { d: "M16 17H8", key: "z1uh3a" }]
|
|
28
|
-
],
|
|
29
|
-
const
|
|
28
|
+
], E = b("file-text", V);
|
|
29
|
+
const X = [
|
|
30
30
|
["path", { d: "M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8", key: "v9h5vc" }],
|
|
31
31
|
["path", { d: "M21 3v5h-5", key: "1q7to0" }],
|
|
32
32
|
["path", { d: "M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16", key: "3uifl3" }],
|
|
33
33
|
["path", { d: "M8 16H3v5", key: "1cv678" }]
|
|
34
|
-
],
|
|
34
|
+
], Y = b("refresh-cw", X);
|
|
35
35
|
const J = [
|
|
36
36
|
[
|
|
37
37
|
"path",
|
|
@@ -57,7 +57,7 @@ function te({
|
|
|
57
57
|
/* @__PURE__ */ e("h3", { className: "text-foreground mb-2 text-lg font-semibold", children: t }),
|
|
58
58
|
/* @__PURE__ */ e("p", { className: "text-muted-foreground max-w-md text-sm leading-relaxed", children: l }),
|
|
59
59
|
n && /* @__PURE__ */ o(S, { onClick: n, variant: "outline", className: "mt-6", children: [
|
|
60
|
-
/* @__PURE__ */ e(
|
|
60
|
+
/* @__PURE__ */ e(Y, {}),
|
|
61
61
|
"Tentar novamente"
|
|
62
62
|
] }),
|
|
63
63
|
i && /* @__PURE__ */ e("div", { className: "bg-destructive/5 border-destructive/20 mt-6 rounded-lg border border-dashed px-4 py-2", children: /* @__PURE__ */ e("p", { className: "text-muted-foreground text-xs", children: i }) })
|
|
@@ -210,7 +210,7 @@ function ne({
|
|
|
210
210
|
] }) });
|
|
211
211
|
}
|
|
212
212
|
function ie({
|
|
213
|
-
icon: a =
|
|
213
|
+
icon: a = E,
|
|
214
214
|
title: t,
|
|
215
215
|
description: l,
|
|
216
216
|
tip: n,
|
package/dist/constants.d.ts
CHANGED
|
@@ -80,6 +80,15 @@ export declare const SOCIAL_NETWORK_VALUES: {
|
|
|
80
80
|
|
|
81
81
|
declare function TikTokIcon({ size, color, ...props }: LucideProps): JSX.Element;
|
|
82
82
|
|
|
83
|
+
export declare const TYPE_SALE_VALUES: {
|
|
84
|
+
readonly new: "Aquisição";
|
|
85
|
+
readonly organic_expansion: "Expansão Orgânica de Base";
|
|
86
|
+
readonly strategic_expansion: "Expansão Estratégica de Base";
|
|
87
|
+
readonly renewal: "Renovação";
|
|
88
|
+
readonly comercial_winback: "Reativação Comercial";
|
|
89
|
+
readonly organic_winback: "Reativação Orgânica";
|
|
90
|
+
};
|
|
91
|
+
|
|
83
92
|
/**
|
|
84
93
|
* Mensagem para quando ocorrer um erro na validação dos dados enviados ao servidor.
|
|
85
94
|
* @returns {string} A mensagem.
|
package/dist/constants.js
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import { A
|
|
2
|
-
const o = "Não há dados para atualizar.", a = "O filtro selecionado já está ativo. Por favor, escolha outro filtro antes de tentar novamente.", e = "Nenhum dado novo foi informado para realizar a operação. Por favor, atualize os campos antes de tentar novamente.",
|
|
1
|
+
import { A, B as n, C as S, a as O, b as T, S as L, T as c } from "./chuncks/youtube-icon.component.CcHIZWSJ.js";
|
|
2
|
+
const o = "Não há dados para atualizar.", a = "O filtro selecionado já está ativo. Por favor, escolha outro filtro antes de tentar novamente.", e = "Nenhum dado novo foi informado para realizar a operação. Por favor, atualize os campos antes de tentar novamente.", E = "Não foi possível concluir a operação. Tente novamente mais tarde ou entre em contato com o suporte.", t = "Há um erro na validação dos campos. Por favor, entre em contato com o suporte.", r = "Campo obrigatório.";
|
|
3
3
|
export {
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
A as ACTION_TYPE_VALUES,
|
|
5
|
+
n as BUSINESS_UNIT_VALUES,
|
|
6
6
|
S as CLIENT_TYPE_VALUES,
|
|
7
|
-
|
|
7
|
+
E as ERROR_MESSAGE,
|
|
8
8
|
a as FILTER_ALREADY_APPLIED_MESSAGE,
|
|
9
9
|
o as NO_DATA_TO_UPDATE,
|
|
10
10
|
e as NO_DATA_TO_UPDATE_MESSAGE,
|
|
11
11
|
r as REQUIRED_FIELD_MESSAGE,
|
|
12
12
|
O as SOCIAL_NETWORK_COLOR_VALUES,
|
|
13
13
|
T as SOCIAL_NETWORK_ICON_COMPONENTS,
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
L as SOCIAL_NETWORK_VALUES,
|
|
15
|
+
c as TYPE_SALE_VALUES,
|
|
16
|
+
t as VALIDATION_ERROR_MESSAGE
|
|
16
17
|
};
|
package/dist/events.js
CHANGED
package/dist/utils.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { U as o } from "./chuncks/format.util.
|
|
2
|
-
import { g as C, h as E, f as L, a as _, d as b, m as v, c as l, e as D, p as I, b as U, u as k } from "./chuncks/format.util.
|
|
3
|
-
import { I as a } from "./chuncks/youtube-icon.component.
|
|
4
|
-
import { e as P, d as q, i as x, c as y } from "./chuncks/youtube-icon.component.
|
|
1
|
+
import { U as o } from "./chuncks/format.util.Dq6q7JWv.js";
|
|
2
|
+
import { g as C, h as E, f as L, a as _, d as b, m as v, c as l, e as D, p as I, b as U, u as k } from "./chuncks/format.util.Dq6q7JWv.js";
|
|
3
|
+
import { I as a } from "./chuncks/youtube-icon.component.CcHIZWSJ.js";
|
|
4
|
+
import { e as P, d as q, i as x, c as y } from "./chuncks/youtube-icon.component.CcHIZWSJ.js";
|
|
5
5
|
const s = (e) => e ? `${e} é obrigatório.` : "Campo obrigatório.", t = (e, r) => r ? `${r} deve ter no mínimo ${e} caracteres.` : `Deve ter no mínimo ${e} caracteres.`, n = (e, r) => r ? `${r} deve ter no máximo ${e} caracteres.` : `Deve ter no máximo ${e} caracteres.`, m = (e, r) => r ? `${r} não pode ser menor que ${e}.` : `Não pode ser menor que ${e}.`, i = (e, r) => r ? `${r} não pode ser maior que ${e}.` : `Não pode ser maior que ${e}.`, c = (e) => e ? `${e} inválido.` : "Valor inválido.", u = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6
6
|
__proto__: null,
|
|
7
7
|
invalidMessage: c,
|