@grapadigital/shared-app-modules 0.0.101 → 0.0.103
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.lE31EORK.js → format.util.DAmYwXUA.js} +1 -1
- package/dist/chuncks/{profile-select-input.component.CyuV-rYK.js → profile-select-input.component.aGuF_LAp.js} +109 -105
- package/dist/components.js +2 -2
- package/dist/constants.d.ts +5 -0
- package/dist/constants.js +10 -9
- package/dist/events.js +1 -1
- package/dist/utils.js +2 -2
- package/package.json +1 -1
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { jsx as n, jsxs as l } from "react/jsx-runtime";
|
|
2
|
-
import { a as aA, c as R, L as nA, R as tA, P as Q, j as G, B as
|
|
2
|
+
import { a as aA, c as R, L as nA, R as tA, P as Q, j as G, B as v, k as q, C as H, l as x, m as U, n as m, o as O, p as L, q as J, r as T } from "./scroll-area.D85EojoN.js";
|
|
3
3
|
import * as rA from "react";
|
|
4
|
-
import { forwardRef as I, useState as B, useEffect as
|
|
4
|
+
import { forwardRef as I, useState as B, useEffect as Y } from "react";
|
|
5
5
|
import "date-fns";
|
|
6
6
|
import { a as M, u as j } from "./use-shared-app-modules.hook.BneFRNyA.js";
|
|
7
7
|
import "./shared-app-modules.provider.DRJ7n4Cj.js";
|
|
8
8
|
import { useQuery as Z } from "@tanstack/react-query";
|
|
9
|
-
import
|
|
10
|
-
const
|
|
9
|
+
import sA from "axios";
|
|
10
|
+
const cA = [
|
|
11
11
|
["path", { d: "m7 15 5 5 5-5", key: "1hf1tw" }],
|
|
12
12
|
["path", { d: "m7 9 5-5 5 5", key: "sgt6xg" }]
|
|
13
|
-
], z = aA("chevrons-up-down",
|
|
13
|
+
], z = aA("chevrons-up-down", cA), oA = I(({ className: A, ...e }, a) => /* @__PURE__ */ n(
|
|
14
14
|
"div",
|
|
15
15
|
{
|
|
16
16
|
ref: a,
|
|
@@ -57,7 +57,7 @@ const uA = rA.forwardRef(({ asterisk: A, children: e, ...a }, f) => /* @__PURE__
|
|
|
57
57
|
A && /* @__PURE__ */ n("span", { className: "text-red-500", children: "*" })
|
|
58
58
|
] }) }));
|
|
59
59
|
uA.displayName = tA.displayName;
|
|
60
|
-
var
|
|
60
|
+
var k = {}, F = {}, S = { exports: {} }, K;
|
|
61
61
|
function mA() {
|
|
62
62
|
if (K) return S.exports;
|
|
63
63
|
K = 1;
|
|
@@ -478,7 +478,7 @@ function pA() {
|
|
|
478
478
|
}), this.slate;
|
|
479
479
|
}
|
|
480
480
|
};
|
|
481
|
-
})(
|
|
481
|
+
})(k)), k;
|
|
482
482
|
}
|
|
483
483
|
var X, AA;
|
|
484
484
|
function hA() {
|
|
@@ -511,8 +511,8 @@ const wA = "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEBLAEsAAD/4QCNRXhpZgAASUkqA
|
|
|
511
511
|
}
|
|
512
512
|
);
|
|
513
513
|
BA.displayName = "Image";
|
|
514
|
-
const
|
|
515
|
-
const e =
|
|
514
|
+
const V = (A) => {
|
|
515
|
+
const e = sA.create({
|
|
516
516
|
baseURL: A,
|
|
517
517
|
timeout: 5e3,
|
|
518
518
|
headers: { "Content-Type": "application/json" }
|
|
@@ -524,7 +524,7 @@ const k = (A) => {
|
|
|
524
524
|
}, bA = async ({
|
|
525
525
|
filter: A,
|
|
526
526
|
environment: e
|
|
527
|
-
}) => (await
|
|
527
|
+
}) => (await V(e).get("/action", {
|
|
528
528
|
params: A
|
|
529
529
|
})).data;
|
|
530
530
|
function CA({ filter: A, queryKey: e }) {
|
|
@@ -548,16 +548,16 @@ const PA = I(
|
|
|
548
548
|
},
|
|
549
549
|
queryKey: A
|
|
550
550
|
}), g = o.data?.data;
|
|
551
|
-
|
|
551
|
+
Y(() => {
|
|
552
552
|
!e && r && (b(void 0), P(""));
|
|
553
553
|
}, [r, e]);
|
|
554
|
-
const
|
|
555
|
-
const
|
|
556
|
-
d(!1),
|
|
554
|
+
const N = (c) => {
|
|
555
|
+
const s = g?.find((y) => y._id === c);
|
|
556
|
+
d(!1), s && (b(s), f(s));
|
|
557
557
|
};
|
|
558
558
|
return /* @__PURE__ */ l(Q, { open: u, onOpenChange: d, children: [
|
|
559
559
|
/* @__PURE__ */ n(G, { asChild: !0, children: /* @__PURE__ */ l(
|
|
560
|
-
|
|
560
|
+
v,
|
|
561
561
|
{
|
|
562
562
|
id: p,
|
|
563
563
|
variant: "outline",
|
|
@@ -571,20 +571,20 @@ const PA = I(
|
|
|
571
571
|
]
|
|
572
572
|
}
|
|
573
573
|
) }),
|
|
574
|
-
/* @__PURE__ */ n(
|
|
574
|
+
/* @__PURE__ */ n(q, { className: "w-full min-w-[var(--radix-popper-anchor-width)] p-0", children: /* @__PURE__ */ l(H, { shouldFilter: !1, children: [
|
|
575
575
|
/* @__PURE__ */ n(
|
|
576
|
-
|
|
576
|
+
x,
|
|
577
577
|
{
|
|
578
578
|
...h,
|
|
579
579
|
disabled: i,
|
|
580
580
|
value: C,
|
|
581
|
-
onValueChange: (
|
|
581
|
+
onValueChange: (c) => P(c),
|
|
582
582
|
placeholder: "Busque uma Ação...",
|
|
583
583
|
className: "h-9",
|
|
584
584
|
ref: w
|
|
585
585
|
}
|
|
586
586
|
),
|
|
587
|
-
/* @__PURE__ */ l(
|
|
587
|
+
/* @__PURE__ */ l(U, { children: [
|
|
588
588
|
o.isSuccess && g?.length === 0 && /* @__PURE__ */ n(m, { children: "Nenhuma ação encontrada." }),
|
|
589
589
|
o.isError && /* @__PURE__ */ n(m, { children: "Ocorreu um erro ao buscar as ações." }),
|
|
590
590
|
!o.isEnabled && /* @__PURE__ */ n(m, { children: "Busque uma Ação..." }),
|
|
@@ -592,29 +592,29 @@ const PA = I(
|
|
|
592
592
|
/* @__PURE__ */ n(O, { className: "size-4 animate-spin" }),
|
|
593
593
|
"Buscando..."
|
|
594
594
|
] }),
|
|
595
|
-
/* @__PURE__ */ n(L, { children: g?.map((
|
|
595
|
+
/* @__PURE__ */ n(L, { children: g?.map((c) => /* @__PURE__ */ l(
|
|
596
596
|
J,
|
|
597
597
|
{
|
|
598
|
-
value:
|
|
599
|
-
onSelect: (
|
|
600
|
-
|
|
601
|
-
|
|
598
|
+
value: c._id,
|
|
599
|
+
onSelect: (s) => {
|
|
600
|
+
N(
|
|
601
|
+
s === r?._id ? "" : s
|
|
602
602
|
), d(!1);
|
|
603
603
|
},
|
|
604
604
|
children: [
|
|
605
|
-
|
|
605
|
+
c.title,
|
|
606
606
|
/* @__PURE__ */ n(
|
|
607
|
-
|
|
607
|
+
T,
|
|
608
608
|
{
|
|
609
609
|
className: R(
|
|
610
610
|
"ml-auto",
|
|
611
|
-
r?._id ===
|
|
611
|
+
r?._id === c._id ? "opacity-100" : "opacity-0"
|
|
612
612
|
)
|
|
613
613
|
}
|
|
614
614
|
)
|
|
615
615
|
]
|
|
616
616
|
},
|
|
617
|
-
|
|
617
|
+
c._id
|
|
618
618
|
)) })
|
|
619
619
|
] })
|
|
620
620
|
] }) })
|
|
@@ -625,7 +625,7 @@ PA.displayName = "CampaignsSelectInput";
|
|
|
625
625
|
const yA = async ({
|
|
626
626
|
filter: A,
|
|
627
627
|
environment: e
|
|
628
|
-
}) => (await
|
|
628
|
+
}) => (await V(e).get("/client", { params: A })).data;
|
|
629
629
|
function RA({ filter: A, queryKey: e }) {
|
|
630
630
|
const { environments: a } = M();
|
|
631
631
|
return Z({
|
|
@@ -647,16 +647,16 @@ const IA = I(
|
|
|
647
647
|
},
|
|
648
648
|
queryKey: A
|
|
649
649
|
}), g = o.data?.data;
|
|
650
|
-
|
|
650
|
+
Y(() => {
|
|
651
651
|
!e && r && (b(void 0), P(""));
|
|
652
652
|
}, [r, e]);
|
|
653
|
-
const
|
|
654
|
-
const
|
|
655
|
-
d(!1),
|
|
653
|
+
const N = (c) => {
|
|
654
|
+
const s = g?.find((y) => y._id === c);
|
|
655
|
+
d(!1), s && (b(s), f(s));
|
|
656
656
|
};
|
|
657
657
|
return /* @__PURE__ */ l(Q, { open: u, onOpenChange: d, children: [
|
|
658
658
|
/* @__PURE__ */ n(G, { asChild: !0, children: /* @__PURE__ */ l(
|
|
659
|
-
|
|
659
|
+
v,
|
|
660
660
|
{
|
|
661
661
|
id: p,
|
|
662
662
|
variant: "outline",
|
|
@@ -670,20 +670,20 @@ const IA = I(
|
|
|
670
670
|
]
|
|
671
671
|
}
|
|
672
672
|
) }),
|
|
673
|
-
/* @__PURE__ */ n(
|
|
673
|
+
/* @__PURE__ */ n(q, { className: "w-full min-w-[var(--radix-popper-anchor-width)] p-0", children: /* @__PURE__ */ l(H, { shouldFilter: !1, children: [
|
|
674
674
|
/* @__PURE__ */ n(
|
|
675
|
-
|
|
675
|
+
x,
|
|
676
676
|
{
|
|
677
677
|
...h,
|
|
678
678
|
disabled: i,
|
|
679
679
|
value: C,
|
|
680
|
-
onValueChange: (
|
|
680
|
+
onValueChange: (c) => P(c),
|
|
681
681
|
placeholder: "Busque um cliente...",
|
|
682
682
|
className: "h-9",
|
|
683
683
|
ref: w
|
|
684
684
|
}
|
|
685
685
|
),
|
|
686
|
-
/* @__PURE__ */ l(
|
|
686
|
+
/* @__PURE__ */ l(U, { children: [
|
|
687
687
|
o.isSuccess && g?.length === 0 && /* @__PURE__ */ n(m, { children: "Nenhuma cliente encontrado." }),
|
|
688
688
|
o.isError && /* @__PURE__ */ n(m, { children: "Ocorreu um erro ao buscar os clientes." }),
|
|
689
689
|
!o.isEnabled && /* @__PURE__ */ n(m, { children: "Busque um cliente..." }),
|
|
@@ -691,29 +691,29 @@ const IA = I(
|
|
|
691
691
|
/* @__PURE__ */ n(O, { className: "size-4 animate-spin" }),
|
|
692
692
|
"Buscando..."
|
|
693
693
|
] }),
|
|
694
|
-
/* @__PURE__ */ n(L, { children: g?.map((
|
|
694
|
+
/* @__PURE__ */ n(L, { children: g?.map((c) => /* @__PURE__ */ l(
|
|
695
695
|
J,
|
|
696
696
|
{
|
|
697
|
-
value:
|
|
698
|
-
onSelect: (
|
|
699
|
-
|
|
700
|
-
|
|
697
|
+
value: c._id,
|
|
698
|
+
onSelect: (s) => {
|
|
699
|
+
N(
|
|
700
|
+
s === r?._id ? "" : s
|
|
701
701
|
), d(!1);
|
|
702
702
|
},
|
|
703
703
|
children: [
|
|
704
|
-
|
|
704
|
+
c.name,
|
|
705
705
|
/* @__PURE__ */ n(
|
|
706
|
-
|
|
706
|
+
T,
|
|
707
707
|
{
|
|
708
708
|
className: R(
|
|
709
709
|
"ml-auto",
|
|
710
|
-
r?._id ===
|
|
710
|
+
r?._id === c._id ? "opacity-100" : "opacity-0"
|
|
711
711
|
)
|
|
712
712
|
}
|
|
713
713
|
)
|
|
714
714
|
]
|
|
715
715
|
},
|
|
716
|
-
|
|
716
|
+
c._id
|
|
717
717
|
)) })
|
|
718
718
|
] })
|
|
719
719
|
] }) })
|
|
@@ -724,10 +724,10 @@ IA.displayName = "ClientSelectInput";
|
|
|
724
724
|
const EA = async ({
|
|
725
725
|
filter: A,
|
|
726
726
|
environment: e
|
|
727
|
-
}) => (await
|
|
727
|
+
}) => (await V(e).get("/influencers", {
|
|
728
728
|
params: A
|
|
729
729
|
})).data;
|
|
730
|
-
function
|
|
730
|
+
function NA({
|
|
731
731
|
filter: A,
|
|
732
732
|
queryKey: e
|
|
733
733
|
}) {
|
|
@@ -741,9 +741,9 @@ function DA({
|
|
|
741
741
|
enabled: !!(A.name && A.name.length > 3)
|
|
742
742
|
});
|
|
743
743
|
}
|
|
744
|
-
const
|
|
744
|
+
const DA = I(
|
|
745
745
|
({ queryKey: A, value: e, defaultValue: a, onValueChange: f, id: p, disabled: i, ...h }, w) => {
|
|
746
|
-
const t = a ? { name: String(a) } : void 0, [u, d] = B(!1), [r, b] = B(t), [C, P] = B(""), E = j(C, 200), o =
|
|
746
|
+
const t = a ? { name: String(a) } : void 0, [u, d] = B(!1), [r, b] = B(t), [C, P] = B(""), E = j(C, 200), o = NA({
|
|
747
747
|
filter: {
|
|
748
748
|
page: 1,
|
|
749
749
|
limit: 10,
|
|
@@ -751,16 +751,16 @@ const NA = I(
|
|
|
751
751
|
},
|
|
752
752
|
queryKey: A
|
|
753
753
|
}), g = o.data?.data;
|
|
754
|
-
|
|
754
|
+
Y(() => {
|
|
755
755
|
!e && r && (b(void 0), P(""));
|
|
756
756
|
}, [r, e]);
|
|
757
|
-
const
|
|
758
|
-
const
|
|
759
|
-
d(!1),
|
|
757
|
+
const N = (c) => {
|
|
758
|
+
const s = g?.find((y) => y._id === c);
|
|
759
|
+
d(!1), s && (b(s), f(s));
|
|
760
760
|
};
|
|
761
761
|
return /* @__PURE__ */ l(Q, { open: u, onOpenChange: d, children: [
|
|
762
762
|
/* @__PURE__ */ n(G, { asChild: !0, children: /* @__PURE__ */ l(
|
|
763
|
-
|
|
763
|
+
v,
|
|
764
764
|
{
|
|
765
765
|
id: p,
|
|
766
766
|
variant: "outline",
|
|
@@ -774,20 +774,20 @@ const NA = I(
|
|
|
774
774
|
]
|
|
775
775
|
}
|
|
776
776
|
) }),
|
|
777
|
-
/* @__PURE__ */ n(
|
|
777
|
+
/* @__PURE__ */ n(q, { className: "w-full min-w-[var(--radix-popper-anchor-width)] p-0", children: /* @__PURE__ */ l(H, { shouldFilter: !1, children: [
|
|
778
778
|
/* @__PURE__ */ n(
|
|
779
|
-
|
|
779
|
+
x,
|
|
780
780
|
{
|
|
781
781
|
...h,
|
|
782
782
|
disabled: i,
|
|
783
783
|
value: C,
|
|
784
|
-
onValueChange: (
|
|
784
|
+
onValueChange: (c) => P(c),
|
|
785
785
|
placeholder: "Busque um influenciador...",
|
|
786
786
|
className: "h-9",
|
|
787
787
|
ref: w
|
|
788
788
|
}
|
|
789
789
|
),
|
|
790
|
-
/* @__PURE__ */ l(
|
|
790
|
+
/* @__PURE__ */ l(U, { children: [
|
|
791
791
|
o.isSuccess && g?.length === 0 && /* @__PURE__ */ n(m, { children: "Nenhuma influenciador encontrado." }),
|
|
792
792
|
o.isError && /* @__PURE__ */ n(m, { children: "Ocorreu um erro ao buscar os influenciadores." }),
|
|
793
793
|
!o.isEnabled && /* @__PURE__ */ n(m, { children: "Busque um influenciador..." }),
|
|
@@ -795,36 +795,36 @@ const NA = I(
|
|
|
795
795
|
/* @__PURE__ */ n(O, { className: "size-4 animate-spin" }),
|
|
796
796
|
"Buscando..."
|
|
797
797
|
] }),
|
|
798
|
-
/* @__PURE__ */ n(L, { children: g?.map((
|
|
798
|
+
/* @__PURE__ */ n(L, { children: g?.map((c) => /* @__PURE__ */ l(
|
|
799
799
|
J,
|
|
800
800
|
{
|
|
801
|
-
value:
|
|
802
|
-
onSelect: (
|
|
803
|
-
|
|
804
|
-
|
|
801
|
+
value: c._id,
|
|
802
|
+
onSelect: (s) => {
|
|
803
|
+
N(
|
|
804
|
+
s === r?._id ? "" : s
|
|
805
805
|
), d(!1);
|
|
806
806
|
},
|
|
807
807
|
children: [
|
|
808
|
-
|
|
808
|
+
c.name,
|
|
809
809
|
/* @__PURE__ */ n(
|
|
810
|
-
|
|
810
|
+
T,
|
|
811
811
|
{
|
|
812
812
|
className: R(
|
|
813
813
|
"ml-auto",
|
|
814
|
-
r?._id ===
|
|
814
|
+
r?._id === c._id ? "opacity-100" : "opacity-0"
|
|
815
815
|
)
|
|
816
816
|
}
|
|
817
817
|
)
|
|
818
818
|
]
|
|
819
819
|
},
|
|
820
|
-
|
|
820
|
+
c._id
|
|
821
821
|
)) })
|
|
822
822
|
] })
|
|
823
823
|
] }) })
|
|
824
824
|
] });
|
|
825
825
|
}
|
|
826
826
|
);
|
|
827
|
-
|
|
827
|
+
DA.displayName = "InfluencerSelectInput";
|
|
828
828
|
const W = {
|
|
829
829
|
instagram: "Instagram",
|
|
830
830
|
tiktok: "TikTok",
|
|
@@ -834,10 +834,13 @@ const W = {
|
|
|
834
834
|
}, SA = {
|
|
835
835
|
agency: "Agência",
|
|
836
836
|
brand: "Marca"
|
|
837
|
+
}, MA = {
|
|
838
|
+
partner: "Perceiros",
|
|
839
|
+
exclusive: "Exclusivos"
|
|
837
840
|
}, QA = {
|
|
838
841
|
enterprise: "Empresa",
|
|
839
842
|
artistic: "Artística"
|
|
840
|
-
},
|
|
843
|
+
}, jA = {
|
|
841
844
|
instagram: "bg-gradient-to-br from-[#f09433] via-[#e6683c] via-[#dc2743] via-[#cc2366] to-[#bc1888]",
|
|
842
845
|
tiktok: "bg-black",
|
|
843
846
|
youtube: "bg-[#ff0033]",
|
|
@@ -846,10 +849,10 @@ const W = {
|
|
|
846
849
|
}, GA = async ({
|
|
847
850
|
filter: A,
|
|
848
851
|
environment: e
|
|
849
|
-
}) => (await
|
|
852
|
+
}) => (await V(e).get("/profiles", {
|
|
850
853
|
params: A
|
|
851
854
|
})).data;
|
|
852
|
-
function
|
|
855
|
+
function vA({ filter: A, queryKey: e }) {
|
|
853
856
|
const { environments: a } = M();
|
|
854
857
|
return Z({
|
|
855
858
|
queryKey: ["profile", A, ...e || []],
|
|
@@ -860,39 +863,39 @@ function qA({ filter: A, queryKey: e }) {
|
|
|
860
863
|
enabled: A.searchTerm.length > 3
|
|
861
864
|
});
|
|
862
865
|
}
|
|
863
|
-
function
|
|
866
|
+
function ZA(A) {
|
|
864
867
|
return !isNaN(Number(A));
|
|
865
868
|
}
|
|
866
869
|
function eA(A) {
|
|
867
870
|
return typeof A != "string" || !A ? !1 : A in W;
|
|
868
871
|
}
|
|
869
|
-
function
|
|
872
|
+
function zA(A) {
|
|
870
873
|
return typeof A != "string" || !A ? !1 : A in SA;
|
|
871
874
|
}
|
|
872
|
-
function
|
|
875
|
+
function VA(A) {
|
|
873
876
|
return typeof A != "string" || !A ? !1 : A in QA;
|
|
874
877
|
}
|
|
875
|
-
const
|
|
878
|
+
const qA = I(
|
|
876
879
|
({ queryKey: A, value: e, defaultValue: a, onValueChange: f, id: p, disabled: i, ...h }, w) => {
|
|
877
|
-
const t = a ? { username: String(a) } : void 0, [u, d] = B(!1), [r, b] = B(t), [C, P] = B(""), E = j(C, 200), o =
|
|
880
|
+
const t = a ? { username: String(a) } : void 0, [u, d] = B(!1), [r, b] = B(t), [C, P] = B(""), E = j(C, 200), o = vA({
|
|
878
881
|
filter: {
|
|
879
882
|
searchTerm: E,
|
|
880
883
|
fromRecruitment: !1
|
|
881
884
|
},
|
|
882
885
|
queryKey: A
|
|
883
886
|
}), g = o.data;
|
|
884
|
-
|
|
887
|
+
Y(() => {
|
|
885
888
|
!e && r && (b(void 0), P(""));
|
|
886
889
|
}, [r, e]);
|
|
887
|
-
const
|
|
888
|
-
const y = g?.find((
|
|
890
|
+
const N = (s) => {
|
|
891
|
+
const y = g?.find((D) => D._id === s);
|
|
889
892
|
d(!1), y && (b(y), f(y));
|
|
890
|
-
},
|
|
893
|
+
}, c = eA(
|
|
891
894
|
r?.socialnetwork
|
|
892
895
|
) ? W[r.socialnetwork] : "";
|
|
893
896
|
return /* @__PURE__ */ l(Q, { open: u, onOpenChange: d, children: [
|
|
894
897
|
/* @__PURE__ */ n(G, { asChild: !0, children: /* @__PURE__ */ l(
|
|
895
|
-
|
|
898
|
+
v,
|
|
896
899
|
{
|
|
897
900
|
id: p,
|
|
898
901
|
variant: "outline",
|
|
@@ -904,25 +907,25 @@ const vA = I(
|
|
|
904
907
|
),
|
|
905
908
|
disabled: i,
|
|
906
909
|
children: [
|
|
907
|
-
r?.username ? `${
|
|
910
|
+
r?.username ? `${c && `[${c}]`} ${r.username}` : "Selecionar",
|
|
908
911
|
/* @__PURE__ */ n(z, { className: "opacity-50" })
|
|
909
912
|
]
|
|
910
913
|
}
|
|
911
914
|
) }),
|
|
912
|
-
/* @__PURE__ */ n(
|
|
915
|
+
/* @__PURE__ */ n(q, { className: "w-full min-w-[var(--radix-popper-anchor-width)] p-0", children: /* @__PURE__ */ l(H, { shouldFilter: !1, children: [
|
|
913
916
|
/* @__PURE__ */ n(
|
|
914
|
-
|
|
917
|
+
x,
|
|
915
918
|
{
|
|
916
919
|
...h,
|
|
917
920
|
disabled: i,
|
|
918
921
|
value: C,
|
|
919
|
-
onValueChange: (
|
|
922
|
+
onValueChange: (s) => P(s),
|
|
920
923
|
placeholder: "Busque um cliente...",
|
|
921
924
|
className: "h-9",
|
|
922
925
|
ref: w
|
|
923
926
|
}
|
|
924
927
|
),
|
|
925
|
-
/* @__PURE__ */ l(
|
|
928
|
+
/* @__PURE__ */ l(U, { children: [
|
|
926
929
|
o.isSuccess && g?.length === 0 && /* @__PURE__ */ n(m, { children: "Nenhuma perfil encontrado." }),
|
|
927
930
|
o.isError && /* @__PURE__ */ n(m, { children: "Ocorreu um erro ao buscar os perfis." }),
|
|
928
931
|
!o.isEnabled && /* @__PURE__ */ n(m, { children: "Busque um perfil..." }),
|
|
@@ -930,34 +933,34 @@ const vA = I(
|
|
|
930
933
|
/* @__PURE__ */ n(O, { className: "size-4 animate-spin" }),
|
|
931
934
|
"Buscando..."
|
|
932
935
|
] }),
|
|
933
|
-
/* @__PURE__ */ n(L, { children: g?.map((
|
|
934
|
-
const y = eA(
|
|
936
|
+
/* @__PURE__ */ n(L, { children: g?.map((s) => {
|
|
937
|
+
const y = eA(s?.socialnetwork) ? W[s.socialnetwork] : "Não encontrado";
|
|
935
938
|
return /* @__PURE__ */ l(
|
|
936
939
|
J,
|
|
937
940
|
{
|
|
938
|
-
value:
|
|
939
|
-
onSelect: (
|
|
940
|
-
|
|
941
|
-
|
|
941
|
+
value: s._id,
|
|
942
|
+
onSelect: (D) => {
|
|
943
|
+
N(
|
|
944
|
+
D === r?._id ? "" : D
|
|
942
945
|
), d(!1);
|
|
943
946
|
},
|
|
944
947
|
children: [
|
|
945
948
|
"[",
|
|
946
949
|
y,
|
|
947
950
|
"] ",
|
|
948
|
-
|
|
951
|
+
s.username,
|
|
949
952
|
/* @__PURE__ */ n(
|
|
950
|
-
|
|
953
|
+
T,
|
|
951
954
|
{
|
|
952
955
|
className: R(
|
|
953
956
|
"ml-auto",
|
|
954
|
-
r?._id ===
|
|
957
|
+
r?._id === s._id ? "opacity-100" : "opacity-0"
|
|
955
958
|
)
|
|
956
959
|
}
|
|
957
960
|
)
|
|
958
961
|
]
|
|
959
962
|
},
|
|
960
|
-
|
|
963
|
+
s._id
|
|
961
964
|
);
|
|
962
965
|
}) })
|
|
963
966
|
] })
|
|
@@ -965,25 +968,26 @@ const vA = I(
|
|
|
965
968
|
] });
|
|
966
969
|
}
|
|
967
970
|
);
|
|
968
|
-
|
|
971
|
+
qA.displayName = "ProfileSelectInput";
|
|
969
972
|
export {
|
|
973
|
+
MA as A,
|
|
970
974
|
QA as B,
|
|
971
975
|
SA as C,
|
|
972
976
|
BA as I,
|
|
973
977
|
uA as L,
|
|
974
978
|
oA as P,
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
979
|
+
jA as S,
|
|
980
|
+
zA as a,
|
|
981
|
+
ZA as b,
|
|
978
982
|
eA as c,
|
|
979
983
|
W as d,
|
|
980
984
|
iA as e,
|
|
981
985
|
lA as f,
|
|
982
986
|
dA as g,
|
|
983
987
|
fA as h,
|
|
984
|
-
|
|
988
|
+
VA as i,
|
|
985
989
|
PA as j,
|
|
986
990
|
IA as k,
|
|
987
|
-
|
|
988
|
-
|
|
991
|
+
DA as l,
|
|
992
|
+
qA as m
|
|
989
993
|
};
|
package/dist/components.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as b, c as d, B as T, H as N, b as v, d as C, T as _, e as A, f as y, g as L, h as j, i as S } from "./chuncks/scroll-area.D85EojoN.js";
|
|
2
|
-
import { L as P } from "./chuncks/profile-select-input.component.
|
|
3
|
-
import { j as be, k as me, I as he, l as fe, P as pe, e as ue, f as ye, g as we, h as ke, m as Ne } from "./chuncks/profile-select-input.component.
|
|
2
|
+
import { L as P } from "./chuncks/profile-select-input.component.aGuF_LAp.js";
|
|
3
|
+
import { j as be, k as me, I as he, l as fe, P as pe, e as ue, f as ye, g as we, h as ke, m as Ne } from "./chuncks/profile-select-input.component.aGuF_LAp.js";
|
|
4
4
|
import { jsx as e, jsxs as o, Fragment as F } from "react/jsx-runtime";
|
|
5
5
|
import "react";
|
|
6
6
|
import { C as z, a as I, S as f } from "./chuncks/card.C3Mnb-Yx.js";
|
package/dist/constants.d.ts
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import { JSX } from 'react/jsx-runtime';
|
|
2
2
|
import { LucideProps } from 'lucide-react';
|
|
3
3
|
|
|
4
|
+
export declare const ACTION_TYPE_VALUES: {
|
|
5
|
+
readonly partner: "Perceiros";
|
|
6
|
+
readonly exclusive: "Exclusivos";
|
|
7
|
+
};
|
|
8
|
+
|
|
4
9
|
export declare const BUSINESS_UNIT_VALUES: {
|
|
5
10
|
readonly enterprise: "Empresa";
|
|
6
11
|
readonly artistic: "Artística";
|
package/dist/constants.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { A as p, B as L, C as N, S as d, d as u } from "./chuncks/profile-select-input.component.aGuF_LAp.js";
|
|
2
2
|
import "./chuncks/scroll-area.D85EojoN.js";
|
|
3
3
|
import "react/jsx-runtime";
|
|
4
4
|
import "react";
|
|
5
5
|
import "date-fns";
|
|
6
6
|
import { P as o, L as a, Y as t, T as e, I as n } from "./chuncks/youtube-icon.component.R7s6jY4w.js";
|
|
7
|
-
const A = "Não há dados para atualizar.",
|
|
7
|
+
const A = "Não há dados para atualizar.", T = "O filtro selecionado já está ativo. Por favor, escolha outro filtro antes de tentar novamente.", S = "Nenhum dado novo foi informado para realizar a operação. Por favor, atualize os campos antes de tentar novamente.", m = "Não foi possível concluir a operação. Tente novamente mais tarde ou entre em contato com o suporte.", I = {
|
|
8
8
|
instagram: n,
|
|
9
9
|
tiktok: e,
|
|
10
10
|
youtube: t,
|
|
@@ -12,13 +12,14 @@ const A = "Não há dados para atualizar.", m = "O filtro selecionado já está
|
|
|
12
12
|
pinterest: o
|
|
13
13
|
};
|
|
14
14
|
export {
|
|
15
|
-
p as
|
|
16
|
-
L as
|
|
17
|
-
|
|
18
|
-
m as
|
|
15
|
+
p as ACTION_TYPE_VALUES,
|
|
16
|
+
L as BUSINESS_UNIT_VALUES,
|
|
17
|
+
N as CLIENT_TYPE_VALUES,
|
|
18
|
+
m as ERROR_MESSAGE,
|
|
19
|
+
T as FILTER_ALREADY_APPLIED_MESSAGE,
|
|
19
20
|
A as NO_DATA_TO_UPDATE,
|
|
20
21
|
S as NO_DATA_TO_UPDATE_MESSAGE,
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
d as SOCIAL_NETWORK_COLOR_VALUES,
|
|
23
|
+
I as SOCIAL_NETWORK_ICON_COMPONENTS,
|
|
24
|
+
u as SOCIAL_NETWORK_VALUES
|
|
24
25
|
};
|
package/dist/events.js
CHANGED
package/dist/utils.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { f as e, a as r, b as m, c as t, m as o, d as c, e as i, g as n, p, h as C, u as f } from "./chuncks/format.util.
|
|
2
|
-
import { i as k, a as P, b, c as N } from "./chuncks/profile-select-input.component.
|
|
1
|
+
import { f as e, a as r, b as m, c as t, m as o, d as c, e as i, g as n, p, h as C, u as f } from "./chuncks/format.util.DAmYwXUA.js";
|
|
2
|
+
import { i as k, a as P, b, c as N } from "./chuncks/profile-select-input.component.aGuF_LAp.js";
|
|
3
3
|
export {
|
|
4
4
|
e as formatCompactNumber,
|
|
5
5
|
r as formatCompactPercent,
|