promote-email-templates 0.0.2 → 0.0.4
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.d.mts +200 -82
- package/dist/index.d.ts +200 -82
- package/dist/index.js +288 -91
- package/dist/index.mjs +285 -91
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -24,6 +24,9 @@ __export(emails_exports, {
|
|
|
24
24
|
EvidenceApprovedCreator: () => EvidenceApprovedCreator,
|
|
25
25
|
EvidencesRejectedCreator: () => EvidencesRejectedCreator,
|
|
26
26
|
EvidencesSubmittedBrand: () => EvidencesSubmittedBrand,
|
|
27
|
+
NewJobApplicationUnapprovedCreator: () => NewJobApplicationUnapprovedCreator,
|
|
28
|
+
NewJobApplicationsReceivedBrand: () => NewJobApplicationsReceivedBrand,
|
|
29
|
+
NewJobCreatedBrand: () => NewJobCreatedBrand,
|
|
27
30
|
NewOrderCreatedBrand: () => NewOrderCreatedBrand,
|
|
28
31
|
NewOrderCreatedCreator: () => NewOrderCreatedCreator,
|
|
29
32
|
OrderAcceptedBrand: () => OrderAcceptedBrand,
|
|
@@ -100,7 +103,7 @@ var button = {
|
|
|
100
103
|
display: "block",
|
|
101
104
|
color: colors.white,
|
|
102
105
|
padding: "15px 20px",
|
|
103
|
-
width: "
|
|
106
|
+
width: "fit-content",
|
|
104
107
|
borderRadius: "8px",
|
|
105
108
|
justifyContent: "center",
|
|
106
109
|
margin: "0 auto",
|
|
@@ -131,8 +134,10 @@ var appRoutes = {
|
|
|
131
134
|
creatorsList: `${appBaseUrl}/content-creators`,
|
|
132
135
|
creatorPrivateProfile: `${appBaseUrl}/content-creators/profile`,
|
|
133
136
|
termsAndConditions: `${appBaseUrl}/terms-and-conditions`,
|
|
137
|
+
jobsList: `${appBaseUrl}/jobs`,
|
|
134
138
|
creatorOrderDetails: (orderId) => `${appBaseUrl}/content-creators/profile/orders/${orderId}`,
|
|
135
139
|
brandOrderDetails: (orderId) => `${appBaseUrl}/brands/orders/${orderId}`,
|
|
140
|
+
brandJobDetails: (jobId) => `${appBaseUrl}/brands/jobs/${jobId}`,
|
|
136
141
|
adminOrderDetails: (orderId) => `${appBaseUrl}/admin/orders/${orderId}`,
|
|
137
142
|
creatorPublicProfile: (username) => `${appBaseUrl}/content-creators/${username}`
|
|
138
143
|
};
|
|
@@ -492,7 +497,7 @@ var import_jsx_runtime10 = require("react/jsx-runtime");
|
|
|
492
497
|
function NewOrderInfo(props) {
|
|
493
498
|
return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(import_components10.Section, { children: [
|
|
494
499
|
/* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(import_components10.Row, { style: rowItem, children: [
|
|
495
|
-
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_components10.Column, { children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_components10.Text, { style: leftText, children: "
|
|
500
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_components10.Column, { children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_components10.Text, { style: leftText, children: "Pacote:" }) }),
|
|
496
501
|
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_components10.Column, { align: "right", children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_components10.Text, { style: rightText, children: props.packageName }) })
|
|
497
502
|
] }),
|
|
498
503
|
/* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(import_components10.Row, { style: rowItem, children: [
|
|
@@ -769,33 +774,167 @@ var reasonContainer2 = {
|
|
|
769
774
|
margin: "30px 0"
|
|
770
775
|
};
|
|
771
776
|
|
|
772
|
-
// emails/
|
|
777
|
+
// emails/brand/new-job-created-brand.tsx
|
|
773
778
|
var import_components16 = require("@react-email/components");
|
|
774
779
|
var import_jsx_runtime16 = require("react/jsx-runtime");
|
|
775
|
-
function
|
|
780
|
+
function NewJobCreatedBrand(props) {
|
|
776
781
|
return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(import_components16.Html, { style: rootStyles, children: [
|
|
777
782
|
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(BaseHead, {}),
|
|
778
|
-
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_components16.Preview, { children: "
|
|
783
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_components16.Preview, { children: "Novo Job Publicado" }),
|
|
779
784
|
/* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(import_components16.Body, { style: { ...main, ...baseContainer }, children: [
|
|
780
785
|
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Header, {}),
|
|
781
|
-
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(UserInfo, { photo: props.brand.photo, name: props.brand.name, userType: "brand" /* BRAND */ }),
|
|
782
786
|
/* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(import_components16.Container, { style: { ...baseContentContainer }, children: [
|
|
783
787
|
/* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(import_components16.Text, { style: baseText, children: [
|
|
788
|
+
"Ol\xE1, ",
|
|
789
|
+
props.brand.name,
|
|
790
|
+
","
|
|
791
|
+
] }),
|
|
792
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(import_components16.Text, { style: baseText, children: [
|
|
793
|
+
"Parab\xE9ns \u{1F389}, publicou com sucesso o novo job para a campanha ",
|
|
794
|
+
" ",
|
|
795
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("span", { style: link, children: [
|
|
796
|
+
props.campaign.name,
|
|
797
|
+
"."
|
|
798
|
+
] }),
|
|
799
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("br", {}),
|
|
800
|
+
" Por favor, revise os detalhes abaixo \u{1F680}:"
|
|
801
|
+
] })
|
|
802
|
+
] }),
|
|
803
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_components16.Container, { style: jobDetails, children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(NewOrderInfo, { orderCreatedAt: props.job.createdAt, packageName: props.campaign.name, packagePrice: props.job.jobCommission }) }),
|
|
804
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_components16.Container, { style: { ...baseContentContainer }, children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_components16.Link, { href: appRoutes.brandJobDetails(props.job.id), style: { ...button, width: "120px" }, children: "VER JOB" }) }),
|
|
805
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Footer, {})
|
|
806
|
+
] })
|
|
807
|
+
] });
|
|
808
|
+
}
|
|
809
|
+
NewJobCreatedBrand.PreviewProps = {
|
|
810
|
+
brand: {
|
|
811
|
+
name: "Vodacom Mz"
|
|
812
|
+
},
|
|
813
|
+
campaign: {
|
|
814
|
+
name: "Megas ate dormir",
|
|
815
|
+
description: "Ganhe megas so por publicar uma foto com a vodacom",
|
|
816
|
+
photo: "https://s3.us-east-2.amazonaws.com/promote-mz.com/images/8c52bb92-4a8b-472f-89cb-0428b90b8b74.jpg"
|
|
817
|
+
},
|
|
818
|
+
job: {
|
|
819
|
+
id: "1",
|
|
820
|
+
createdAt: "20 de Agosto, 2021",
|
|
821
|
+
jobCommission: "1000"
|
|
822
|
+
}
|
|
823
|
+
};
|
|
824
|
+
var jobDetails = {
|
|
825
|
+
...baseContentContainer,
|
|
826
|
+
marginTop: "30px",
|
|
827
|
+
marginBottom: "40px"
|
|
828
|
+
};
|
|
829
|
+
|
|
830
|
+
// emails/brand/new-job-application-received-brand.tsx
|
|
831
|
+
var import_components17 = require("@react-email/components");
|
|
832
|
+
var import_jsx_runtime17 = require("react/jsx-runtime");
|
|
833
|
+
function NewJobApplicationsReceivedBrand(props) {
|
|
834
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_components17.Html, { style: rootStyles, children: [
|
|
835
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(BaseHead, {}),
|
|
836
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_components17.Preview, { children: "Nova Candidatura Recebida para o Job" }),
|
|
837
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_components17.Body, { style: { ...main, ...baseContainer }, children: [
|
|
838
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Header, {}),
|
|
839
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_components17.Container, { style: { ...baseContentContainer }, children: [
|
|
840
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_components17.Text, { style: baseText, children: [
|
|
841
|
+
"Ol\xE1, ",
|
|
842
|
+
props.brand.name,
|
|
843
|
+
","
|
|
844
|
+
] }),
|
|
845
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_components17.Text, { style: baseText, children: [
|
|
846
|
+
"Voc\xEA recebeu uma nova candidatura para o job da campanha",
|
|
847
|
+
" ",
|
|
848
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("span", { style: link, children: [
|
|
849
|
+
props.campaign.name,
|
|
850
|
+
"."
|
|
851
|
+
] }),
|
|
852
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("br", {}),
|
|
853
|
+
" Revise os detalhes da candidatura abaixo \u{1F680}:"
|
|
854
|
+
] })
|
|
855
|
+
] }),
|
|
856
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
857
|
+
UserInfo,
|
|
858
|
+
{
|
|
859
|
+
photo: props.creatorCandidate.photo,
|
|
860
|
+
name: props.creatorCandidate.name,
|
|
861
|
+
userType: "creator" /* CREATOR */,
|
|
862
|
+
username: props.creatorCandidate.username
|
|
863
|
+
}
|
|
864
|
+
),
|
|
865
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_components17.Container, { style: jobDetails2, children: [
|
|
866
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_components17.Text, { style: baseText, children: [
|
|
867
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("strong", { children: "Or\xE7amento desejado:" }),
|
|
868
|
+
" ",
|
|
869
|
+
props.jobApplication.desired_budget ? `MZN ${props.jobApplication.desired_budget}` : "N\xE3o informado"
|
|
870
|
+
] }),
|
|
871
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_components17.Text, { style: baseText, children: [
|
|
872
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("strong", { children: "Observa\xE7\xF5es:" }),
|
|
873
|
+
" ",
|
|
874
|
+
props.jobApplication.observations || "Nenhuma observa\xE7\xE3o"
|
|
875
|
+
] })
|
|
876
|
+
] }),
|
|
877
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_components17.Container, { style: { ...baseContentContainer }, children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_components17.Link, { href: appRoutes.brandJobDetails(props.job.id), style: { ...button }, children: "VER CANDIDATURA" }) }),
|
|
878
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Footer, {})
|
|
879
|
+
] })
|
|
880
|
+
] });
|
|
881
|
+
}
|
|
882
|
+
NewJobApplicationsReceivedBrand.PreviewProps = {
|
|
883
|
+
brand: {
|
|
884
|
+
name: "Vodacom Mz"
|
|
885
|
+
},
|
|
886
|
+
campaign: {
|
|
887
|
+
name: "Megas at\xE9 Dormir",
|
|
888
|
+
description: "Ganhe megas s\xF3 por publicar uma foto com a Vodacom"
|
|
889
|
+
},
|
|
890
|
+
job: {
|
|
891
|
+
id: "1",
|
|
892
|
+
jobCommission: "1000"
|
|
893
|
+
},
|
|
894
|
+
jobApplication: {
|
|
895
|
+
id: "1",
|
|
896
|
+
desired_budget: 1500,
|
|
897
|
+
observations: "Gostaria de discutir mais sobre os requisitos da campanha."
|
|
898
|
+
},
|
|
899
|
+
creatorCandidate: {
|
|
900
|
+
name: "Jo\xE3o Silva",
|
|
901
|
+
photo: "https://s3.us-east-2.amazonaws.com/promote-mz.com/images/creator-photo.jpg",
|
|
902
|
+
username: "joaosilva"
|
|
903
|
+
}
|
|
904
|
+
};
|
|
905
|
+
var jobDetails2 = {
|
|
906
|
+
...baseContentContainer,
|
|
907
|
+
marginTop: "30px",
|
|
908
|
+
marginBottom: "40px"
|
|
909
|
+
};
|
|
910
|
+
|
|
911
|
+
// emails/creator/evidences-approved-creator.tsx
|
|
912
|
+
var import_components18 = require("@react-email/components");
|
|
913
|
+
var import_jsx_runtime18 = require("react/jsx-runtime");
|
|
914
|
+
function EvidenceApprovedCreator(props) {
|
|
915
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(import_components18.Html, { style: rootStyles, children: [
|
|
916
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(BaseHead, {}),
|
|
917
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_components18.Preview, { children: "Evid\xEAncia aprovada \u2705" }),
|
|
918
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(import_components18.Body, { style: { ...main, ...baseContainer }, children: [
|
|
919
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Header, {}),
|
|
920
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(UserInfo, { photo: props.brand.photo, name: props.brand.name, userType: "brand" /* BRAND */ }),
|
|
921
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(import_components18.Container, { style: { ...baseContentContainer }, children: [
|
|
922
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(import_components18.Text, { style: baseText, children: [
|
|
784
923
|
"Ol\xE1, ",
|
|
785
924
|
props.creator.name,
|
|
786
925
|
" \u{1F38A},"
|
|
787
926
|
] }),
|
|
788
|
-
/* @__PURE__ */ (0,
|
|
927
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(import_components18.Text, { style: baseText, children: [
|
|
789
928
|
"Actualiza\xE7\xF5es, a",
|
|
790
929
|
" ",
|
|
791
|
-
/* @__PURE__ */ (0,
|
|
930
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_components18.Link, { href: appRoutes.creatorOrderDetails(props.evidenceLink), target: "_blank", style: link, children: "evid\xEAncia" }),
|
|
792
931
|
" ",
|
|
793
932
|
"que submeteste foi aprovada pela marca \u{1F389}."
|
|
794
933
|
] }),
|
|
795
|
-
/* @__PURE__ */ (0,
|
|
934
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_components18.Text, { style: baseText, children: "Aguarde pela aprova\xE7\xE3o total por parte da marca para receberes o pagamento. Se tiveres alguma d\xFAvida, n\xE3o hesites em contactar" })
|
|
796
935
|
] }),
|
|
797
|
-
/* @__PURE__ */ (0,
|
|
798
|
-
/* @__PURE__ */ (0,
|
|
936
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_components18.Container, { style: { ...baseContentContainer, marginTop: "25px" }, children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_components18.Link, { href: appRoutes.creatorOrderDetails(props.order.id), style: { ...button, width: "150px" }, children: "VER PEDIDO" }) }),
|
|
937
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Footer, {})
|
|
799
938
|
] })
|
|
800
939
|
] });
|
|
801
940
|
}
|
|
@@ -814,34 +953,34 @@ EvidenceApprovedCreator.PreviewProps = {
|
|
|
814
953
|
};
|
|
815
954
|
|
|
816
955
|
// emails/creator/evidences-rejected-creator.tsx
|
|
817
|
-
var
|
|
818
|
-
var
|
|
956
|
+
var import_components19 = require("@react-email/components");
|
|
957
|
+
var import_jsx_runtime19 = require("react/jsx-runtime");
|
|
819
958
|
function EvidencesRejectedCreator(props) {
|
|
820
|
-
return /* @__PURE__ */ (0,
|
|
821
|
-
/* @__PURE__ */ (0,
|
|
822
|
-
/* @__PURE__ */ (0,
|
|
823
|
-
/* @__PURE__ */ (0,
|
|
824
|
-
/* @__PURE__ */ (0,
|
|
825
|
-
/* @__PURE__ */ (0,
|
|
826
|
-
/* @__PURE__ */ (0,
|
|
827
|
-
/* @__PURE__ */ (0,
|
|
959
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(import_components19.Html, { style: rootStyles, children: [
|
|
960
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(BaseHead, {}),
|
|
961
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_components19.Preview, { children: "Evi\xEAncia rejeitada \u274C" }),
|
|
962
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(import_components19.Body, { style: { ...main, ...baseContainer }, children: [
|
|
963
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Header, {}),
|
|
964
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(UserInfo, { photo: props.brand.photo, name: props.brand.name, userType: "brand" /* BRAND */ }),
|
|
965
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(import_components19.Container, { style: { ...baseContentContainer }, children: [
|
|
966
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(import_components19.Text, { style: baseText, children: [
|
|
828
967
|
"Ol\xE1, ",
|
|
829
968
|
props.creator.name,
|
|
830
969
|
","
|
|
831
970
|
] }),
|
|
832
|
-
/* @__PURE__ */ (0,
|
|
971
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(import_components19.Text, { style: baseText, children: [
|
|
833
972
|
"A",
|
|
834
973
|
" ",
|
|
835
|
-
/* @__PURE__ */ (0,
|
|
974
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_components19.Link, { href: props.evidenceLink, target: "_blank", style: link, children: "evid\xEAncia" }),
|
|
836
975
|
" ",
|
|
837
976
|
"foi rejeitada \u274C pela marca.",
|
|
838
|
-
/* @__PURE__ */ (0,
|
|
977
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)("br", {}),
|
|
839
978
|
"Por favor, reveja o motivo da rejei\xE7\xE3o e submeta novamente."
|
|
840
979
|
] })
|
|
841
980
|
] }),
|
|
842
|
-
props.reason && /* @__PURE__ */ (0,
|
|
843
|
-
/* @__PURE__ */ (0,
|
|
844
|
-
/* @__PURE__ */ (0,
|
|
981
|
+
props.reason && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { style: reasonContainer3, children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(CommentComponent, { title: "Motivo da rejei\xE7\xE3o:", comment: props.reason, danger: true }) }),
|
|
982
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_components19.Container, { style: { ...baseContentContainer }, children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_components19.Link, { href: appRoutes.creatorOrderDetails(props.order.id), style: { ...button, width: "200px" }, children: "VER PEDIDO" }) }),
|
|
983
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Footer, {})
|
|
845
984
|
] })
|
|
846
985
|
] });
|
|
847
986
|
}
|
|
@@ -866,37 +1005,37 @@ var reasonContainer3 = {
|
|
|
866
1005
|
};
|
|
867
1006
|
|
|
868
1007
|
// emails/creator/order-cancelled-creator.tsx
|
|
869
|
-
var
|
|
870
|
-
var
|
|
1008
|
+
var import_components20 = require("@react-email/components");
|
|
1009
|
+
var import_jsx_runtime20 = require("react/jsx-runtime");
|
|
871
1010
|
function OrderCancelledCreator(props) {
|
|
872
|
-
return /* @__PURE__ */ (0,
|
|
873
|
-
/* @__PURE__ */ (0,
|
|
874
|
-
/* @__PURE__ */ (0,
|
|
875
|
-
/* @__PURE__ */ (0,
|
|
876
|
-
/* @__PURE__ */ (0,
|
|
877
|
-
/* @__PURE__ */ (0,
|
|
878
|
-
/* @__PURE__ */ (0,
|
|
879
|
-
/* @__PURE__ */ (0,
|
|
1011
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(import_components20.Html, { style: rootStyles, children: [
|
|
1012
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(BaseHead, {}),
|
|
1013
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_components20.Preview, { children: "Pedido cancelado \u274C" }),
|
|
1014
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(import_components20.Body, { style: { ...main, ...baseContainer }, children: [
|
|
1015
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Header, {}),
|
|
1016
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(UserInfo, { photo: `${assetsBasePath}/icons/logo-icon-colored.png`, name: "Promote Team", userType: "brand" /* BRAND */ }),
|
|
1017
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(import_components20.Container, { style: { ...baseContentContainer }, children: [
|
|
1018
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(import_components20.Text, { style: baseText, children: [
|
|
880
1019
|
"Ol\xE1, ",
|
|
881
1020
|
props.creator.name,
|
|
882
1021
|
","
|
|
883
1022
|
] }),
|
|
884
|
-
/* @__PURE__ */ (0,
|
|
1023
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(import_components20.Text, { style: baseText, children: [
|
|
885
1024
|
"Infelizmente o",
|
|
886
1025
|
" ",
|
|
887
|
-
/* @__PURE__ */ (0,
|
|
1026
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(import_components20.Link, { href: appRoutes.creatorOrderDetails(props.order.id), target: "_blank", style: link, children: [
|
|
888
1027
|
"pedido #",
|
|
889
1028
|
props.order.id
|
|
890
1029
|
] }),
|
|
891
1030
|
" ",
|
|
892
1031
|
"foi cancelado \u274C antes da sua conclus\xE3o.",
|
|
893
|
-
/* @__PURE__ */ (0,
|
|
1032
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("br", {}),
|
|
894
1033
|
"Agradecemos a sua disponibilidade e esperamos que a pr\xF3xima oportunidade seja um sucesso \u{1F44C}\u{1F3FD}\u{1F44C}\u{1F3FD}!"
|
|
895
1034
|
] })
|
|
896
1035
|
] }),
|
|
897
|
-
props.reason && /* @__PURE__ */ (0,
|
|
898
|
-
/* @__PURE__ */ (0,
|
|
899
|
-
/* @__PURE__ */ (0,
|
|
1036
|
+
props.reason && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { style: reasonContainer4, children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(CommentComponent, { title: "Motivo do cancelamento:", comment: props.reason, danger: true }) }),
|
|
1037
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_components20.Container, { style: { ...baseContentContainer }, children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_components20.Link, { href: appRoutes.creatorOrderDetails(props.order.id), style: { ...button, width: "150px" }, children: "VER PEDIDO" }) }),
|
|
1038
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Footer, {})
|
|
900
1039
|
] })
|
|
901
1040
|
] });
|
|
902
1041
|
}
|
|
@@ -916,35 +1055,35 @@ var reasonContainer4 = {
|
|
|
916
1055
|
};
|
|
917
1056
|
|
|
918
1057
|
// emails/creator/order-payment-creator.tsx
|
|
919
|
-
var
|
|
920
|
-
var
|
|
1058
|
+
var import_components21 = require("@react-email/components");
|
|
1059
|
+
var import_jsx_runtime21 = require("react/jsx-runtime");
|
|
921
1060
|
function OrderPaymentCreator(props) {
|
|
922
|
-
return /* @__PURE__ */ (0,
|
|
923
|
-
/* @__PURE__ */ (0,
|
|
924
|
-
/* @__PURE__ */ (0,
|
|
925
|
-
/* @__PURE__ */ (0,
|
|
926
|
-
/* @__PURE__ */ (0,
|
|
927
|
-
/* @__PURE__ */ (0,
|
|
928
|
-
/* @__PURE__ */ (0,
|
|
929
|
-
/* @__PURE__ */ (0,
|
|
1061
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(import_components21.Html, { style: rootStyles, children: [
|
|
1062
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(BaseHead, {}),
|
|
1063
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_components21.Preview, { children: "Pagamento Liberado \u2705" }),
|
|
1064
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(import_components21.Body, { style: { ...main, ...baseContainer }, children: [
|
|
1065
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Header, {}),
|
|
1066
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(UserInfo, { photo: `${assetsBasePath}/icons/logo-icon-colored.png`, name: "Promote Team", userType: "brand" /* BRAND */ }),
|
|
1067
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(import_components21.Container, { style: { ...baseContentContainer }, children: [
|
|
1068
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(import_components21.Text, { style: baseText, children: [
|
|
930
1069
|
"Ol\xE1, ",
|
|
931
1070
|
props.creator.name,
|
|
932
1071
|
" \u{1F38A},"
|
|
933
1072
|
] }),
|
|
934
|
-
/* @__PURE__ */ (0,
|
|
1073
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(import_components21.Text, { style: baseText, children: [
|
|
935
1074
|
"Boas Not\xEDcias \u{1F389}, est\xE1 em processamento o pagamento da",
|
|
936
1075
|
" ",
|
|
937
|
-
/* @__PURE__ */ (0,
|
|
1076
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(import_components21.Link, { href: appRoutes.creatorOrderDetails(props.order.id), target: "_blank", style: link, children: [
|
|
938
1077
|
"ordem #",
|
|
939
1078
|
props.order.id
|
|
940
1079
|
] }),
|
|
941
1080
|
" "
|
|
942
1081
|
] }),
|
|
943
|
-
/* @__PURE__ */ (0,
|
|
1082
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_components21.Text, { style: baseText, children: "Espera-se que dentro de 24h o pagamento seja conclu\xEDdo, agradecemos por confiar na Promote." })
|
|
944
1083
|
] }),
|
|
945
|
-
/* @__PURE__ */ (0,
|
|
946
|
-
/* @__PURE__ */ (0,
|
|
947
|
-
/* @__PURE__ */ (0,
|
|
1084
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(PaymentAmount, { totalAmount: props.totalAmount }),
|
|
1085
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_components21.Container, { style: { ...baseContentContainer, marginTop: "25px" }, children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_components21.Link, { href: appRoutes.creatorOrderDetails(props.order.id), style: { ...button, width: "150px" }, children: "VER PEDIDO" }) }),
|
|
1086
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Footer, {})
|
|
948
1087
|
] })
|
|
949
1088
|
] });
|
|
950
1089
|
}
|
|
@@ -959,32 +1098,32 @@ OrderPaymentCreator.PreviewProps = {
|
|
|
959
1098
|
};
|
|
960
1099
|
|
|
961
1100
|
// emails/creator/new-order-created-creator.tsx
|
|
962
|
-
var
|
|
963
|
-
var
|
|
1101
|
+
var import_components22 = require("@react-email/components");
|
|
1102
|
+
var import_jsx_runtime22 = require("react/jsx-runtime");
|
|
964
1103
|
function NewOrderCreatedCreator(props) {
|
|
965
|
-
return /* @__PURE__ */ (0,
|
|
966
|
-
/* @__PURE__ */ (0,
|
|
967
|
-
/* @__PURE__ */ (0,
|
|
968
|
-
/* @__PURE__ */ (0,
|
|
969
|
-
/* @__PURE__ */ (0,
|
|
970
|
-
/* @__PURE__ */ (0,
|
|
971
|
-
/* @__PURE__ */ (0,
|
|
972
|
-
/* @__PURE__ */ (0,
|
|
1104
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(import_components22.Html, { style: rootStyles, children: [
|
|
1105
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(BaseHead, {}),
|
|
1106
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_components22.Preview, { children: "Novo Pedido Recebido" }),
|
|
1107
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(import_components22.Body, { style: { ...main, ...baseContainer }, children: [
|
|
1108
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Header, {}),
|
|
1109
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(UserInfo, { photo: props.brand.photo, name: props.brand.name, userType: "brand" /* BRAND */ }),
|
|
1110
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(import_components22.Container, { style: { ...baseContentContainer }, children: [
|
|
1111
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(import_components22.Text, { style: baseText, children: [
|
|
973
1112
|
"Ol\xE1, ",
|
|
974
1113
|
props.creator.name,
|
|
975
1114
|
","
|
|
976
1115
|
] }),
|
|
977
|
-
/* @__PURE__ */ (0,
|
|
1116
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(import_components22.Text, { style: baseText, children: [
|
|
978
1117
|
"Parab\xE9ns \u{1F389}, voc\xEA recebeu um novo pedido da empresa ",
|
|
979
|
-
/* @__PURE__ */ (0,
|
|
1118
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)("span", { style: { color: colors.primary }, children: props.brand.name }),
|
|
980
1119
|
".",
|
|
981
|
-
/* @__PURE__ */ (0,
|
|
1120
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)("br", {}),
|
|
982
1121
|
" Por favor, revise os detalhes abaixo \u{1F680}:"
|
|
983
1122
|
] })
|
|
984
1123
|
] }),
|
|
985
|
-
/* @__PURE__ */ (0,
|
|
986
|
-
/* @__PURE__ */ (0,
|
|
987
|
-
/* @__PURE__ */ (0,
|
|
1124
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_components22.Container, { style: orderDetails2, children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(NewOrderInfo, { orderCreatedAt: props.order.createdAt, packageName: props.package.name, packagePrice: props.package.price }) }),
|
|
1125
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_components22.Container, { style: { ...baseContentContainer }, children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_components22.Link, { href: appRoutes.creatorOrderDetails(props.order.id), style: { ...button, width: "120px" }, children: "VER PEDIDO" }) }),
|
|
1126
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Footer, {})
|
|
988
1127
|
] })
|
|
989
1128
|
] });
|
|
990
1129
|
}
|
|
@@ -1011,9 +1150,64 @@ var orderDetails2 = {
|
|
|
1011
1150
|
marginBottom: "40px"
|
|
1012
1151
|
};
|
|
1013
1152
|
|
|
1153
|
+
// emails/creator/new-job-application-unapproved-creator.tsx
|
|
1154
|
+
var import_components23 = require("@react-email/components");
|
|
1155
|
+
var import_jsx_runtime23 = require("react/jsx-runtime");
|
|
1156
|
+
function NewJobApplicationUnapprovedCreator(props) {
|
|
1157
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(import_components23.Html, { style: rootStyles, children: [
|
|
1158
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(BaseHead, {}),
|
|
1159
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_components23.Preview, { children: "Actualiza\xE7\xE3o sobre sua candidatura ao job" }),
|
|
1160
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(import_components23.Body, { style: { ...main, ...baseContainer }, children: [
|
|
1161
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Header, {}),
|
|
1162
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(import_components23.Container, { style: { ...baseContentContainer }, children: [
|
|
1163
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(import_components23.Text, { style: baseText2, children: [
|
|
1164
|
+
"Ol\xE1, ",
|
|
1165
|
+
props.creator.name,
|
|
1166
|
+
","
|
|
1167
|
+
] }),
|
|
1168
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(import_components23.Text, { style: baseText2, children: [
|
|
1169
|
+
"Infelizmente, sua candidatura para o job da campanha",
|
|
1170
|
+
" ",
|
|
1171
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { style: link, children: props.campaign.name }),
|
|
1172
|
+
" n\xE3o foi aprovada.",
|
|
1173
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)("br", {}),
|
|
1174
|
+
"Agradecemos por seu interesse e participa\xE7\xE3o!"
|
|
1175
|
+
] }),
|
|
1176
|
+
props.jobApplication.rejectionReason && /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(import_components23.Text, { style: baseText2, children: [
|
|
1177
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)("strong", { children: "Motivo:" }),
|
|
1178
|
+
" ",
|
|
1179
|
+
props.jobApplication.rejectionReason
|
|
1180
|
+
] }),
|
|
1181
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_components23.Text, { style: baseText2, children: "N\xE3o desanime! Continue acompanhando outras oportunidades que possam surgir na plataforma. \u{1F680}" })
|
|
1182
|
+
] }),
|
|
1183
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_components23.Container, { style: { ...baseContentContainer }, children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_components23.Link, { href: appRoutes.jobsList, style: { ...button }, children: "VER OUTRAS OPORTUNIDADES" }) }),
|
|
1184
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Footer, {})
|
|
1185
|
+
] })
|
|
1186
|
+
] });
|
|
1187
|
+
}
|
|
1188
|
+
NewJobApplicationUnapprovedCreator.PreviewProps = {
|
|
1189
|
+
creator: {
|
|
1190
|
+
name: "K\xE1tia Vanessa",
|
|
1191
|
+
email: "katia@example.com"
|
|
1192
|
+
},
|
|
1193
|
+
campaign: {
|
|
1194
|
+
name: "Megas at\xE9 Dormir",
|
|
1195
|
+
description: "Ganhe megas s\xF3 por publicar uma foto com a Vodacom"
|
|
1196
|
+
},
|
|
1197
|
+
jobApplication: {
|
|
1198
|
+
id: "1",
|
|
1199
|
+
rejectionReason: "N\xE3o atingiu os requisitos esperados para o job."
|
|
1200
|
+
}
|
|
1201
|
+
};
|
|
1202
|
+
var baseText2 = {
|
|
1203
|
+
fontSize: "16px",
|
|
1204
|
+
lineHeight: "24px",
|
|
1205
|
+
color: "#333"
|
|
1206
|
+
};
|
|
1207
|
+
|
|
1014
1208
|
// emails/all/welcome.tsx
|
|
1015
|
-
var
|
|
1016
|
-
var
|
|
1209
|
+
var import_components24 = require("@react-email/components");
|
|
1210
|
+
var import_jsx_runtime24 = require("react/jsx-runtime");
|
|
1017
1211
|
function Welcome({ name, userType }) {
|
|
1018
1212
|
const content2 = {
|
|
1019
1213
|
["brand" /* BRAND */]: {
|
|
@@ -1025,31 +1219,31 @@ function Welcome({ name, userType }) {
|
|
|
1025
1219
|
description: " Obrigado por se registrar. Estamos muito felizes por t\xEA-lo a bordo. Explore nossa plataforma e descubra as melhores marcas para colaborar."
|
|
1026
1220
|
}
|
|
1027
1221
|
};
|
|
1028
|
-
return /* @__PURE__ */ (0,
|
|
1029
|
-
/* @__PURE__ */ (0,
|
|
1030
|
-
/* @__PURE__ */ (0,
|
|
1031
|
-
/* @__PURE__ */ (0,
|
|
1032
|
-
/* @__PURE__ */ (0,
|
|
1033
|
-
/* @__PURE__ */ (0,
|
|
1034
|
-
/* @__PURE__ */ (0,
|
|
1222
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_components24.Html, { style: rootStyles, children: [
|
|
1223
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(BaseHead, {}),
|
|
1224
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_components24.Preview, { children: "Bem-vindo a Promote" }),
|
|
1225
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_components24.Body, { style: { ...main, ...baseContainer }, children: [
|
|
1226
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_components24.Container, { style: headContainer, children: [
|
|
1227
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_components24.Img, { src: `${assetsBasePath}/icons/logo-icon.png`, alt: "Promote Logo", style: promoteLogo }),
|
|
1228
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_components24.Img, { src: `${assetsBasePath}/icons/welcome-title.png`, alt: "Promote Logo", style: welcomeImage })
|
|
1035
1229
|
] }),
|
|
1036
|
-
/* @__PURE__ */ (0,
|
|
1037
|
-
/* @__PURE__ */ (0,
|
|
1230
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_components24.Container, { style: baseContentContainer, children: [
|
|
1231
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_components24.Heading, { as: "h1", style: title3, children: [
|
|
1038
1232
|
"Ol\xE1 ",
|
|
1039
1233
|
name || "{{nome}}",
|
|
1040
1234
|
" \u{1F389},"
|
|
1041
1235
|
] }),
|
|
1042
|
-
/* @__PURE__ */ (0,
|
|
1043
|
-
/* @__PURE__ */ (0,
|
|
1236
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_components24.Text, { style: textInfo, children: content2[userType]?.description }),
|
|
1237
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_components24.Text, { style: textInfo, children: [
|
|
1044
1238
|
"Em caso de qualquer d\xFAvida, entre em conctato connosco atrav\xE9s do e-mail:",
|
|
1045
1239
|
" ",
|
|
1046
|
-
/* @__PURE__ */ (0,
|
|
1240
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_components24.Link, { style: link, href: "mailto:help@promote.co.mz", children: "help@promote.co.mz" }),
|
|
1047
1241
|
" ",
|
|
1048
1242
|
"\u{1F680}"
|
|
1049
1243
|
] })
|
|
1050
1244
|
] }),
|
|
1051
|
-
/* @__PURE__ */ (0,
|
|
1052
|
-
/* @__PURE__ */ (0,
|
|
1245
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_components24.Container, { style: baseContentContainer, children: userType && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_components24.Link, { href: content2[userType]?.startLink, style: { ...button, width: "150px" }, children: "COME\xC7AR AGORA" }) }),
|
|
1246
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Footer, {})
|
|
1053
1247
|
] })
|
|
1054
1248
|
] });
|
|
1055
1249
|
}
|
|
@@ -1095,6 +1289,9 @@ var textInfo = {
|
|
|
1095
1289
|
EvidenceApprovedCreator,
|
|
1096
1290
|
EvidencesRejectedCreator,
|
|
1097
1291
|
EvidencesSubmittedBrand,
|
|
1292
|
+
NewJobApplicationUnapprovedCreator,
|
|
1293
|
+
NewJobApplicationsReceivedBrand,
|
|
1294
|
+
NewJobCreatedBrand,
|
|
1098
1295
|
NewOrderCreatedBrand,
|
|
1099
1296
|
NewOrderCreatedCreator,
|
|
1100
1297
|
OrderAcceptedBrand,
|