promote-email-templates 0.0.19 → 0.1.1
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/.react-email/.eslintrc.js +52 -0
- package/.react-email/.prettierignore +3 -0
- package/.react-email/.prettierrc.js +8 -0
- package/.react-email/license.md +7 -0
- package/.react-email/next.config.js +36 -0
- package/.react-email/package.json +1 -0
- package/.react-email/postcss.config.js +8 -0
- package/.react-email/readme.md +44 -0
- package/.react-email/src/actions/get-email-path-from-slug.ts +26 -0
- package/.react-email/src/actions/get-emails-directory-metadata.spec.ts +73 -0
- package/.react-email/src/actions/get-emails-directory-metadata.ts +91 -0
- package/.react-email/src/actions/render-email-by-path.tsx +59 -0
- package/.react-email/src/app/favicon.ico +0 -0
- package/.react-email/src/app/globals.css +35 -0
- package/.react-email/src/app/inter.ts +7 -0
- package/.react-email/src/app/layout.tsx +36 -0
- package/.react-email/src/app/logo.png +0 -0
- package/.react-email/src/app/page.tsx +47 -0
- package/.react-email/src/app/preview/[...slug]/page.tsx +65 -0
- package/.react-email/src/app/preview/[...slug]/preview.tsx +141 -0
- package/.react-email/src/app/preview/[...slug]/rendering-error.tsx +40 -0
- package/.react-email/src/components/button.tsx +90 -0
- package/.react-email/src/components/code-container.tsx +145 -0
- package/.react-email/src/components/code.tsx +112 -0
- package/.react-email/src/components/heading.tsx +113 -0
- package/.react-email/src/components/icons/icon-arrow-down.tsx +16 -0
- package/.react-email/src/components/icons/icon-base.tsx +24 -0
- package/.react-email/src/components/icons/icon-button.tsx +23 -0
- package/.react-email/src/components/icons/icon-check.tsx +19 -0
- package/.react-email/src/components/icons/icon-clipboard.tsx +40 -0
- package/.react-email/src/components/icons/icon-download.tsx +19 -0
- package/.react-email/src/components/icons/icon-file.tsx +19 -0
- package/.react-email/src/components/icons/icon-folder-open.tsx +19 -0
- package/.react-email/src/components/icons/icon-folder.tsx +18 -0
- package/.react-email/src/components/icons/icon-hide-sidebar.tsx +23 -0
- package/.react-email/src/components/icons/icon-monitor.tsx +19 -0
- package/.react-email/src/components/icons/icon-phone.tsx +26 -0
- package/.react-email/src/components/icons/icon-source.tsx +19 -0
- package/.react-email/src/components/index.ts +7 -0
- package/.react-email/src/components/logo.tsx +64 -0
- package/.react-email/src/components/send.tsx +135 -0
- package/.react-email/src/components/shell.tsx +115 -0
- package/.react-email/src/components/sidebar/index.ts +1 -0
- package/.react-email/src/components/sidebar/sidebar-directory-children.tsx +134 -0
- package/.react-email/src/components/sidebar/sidebar-directory.tsx +106 -0
- package/.react-email/src/components/sidebar/sidebar.tsx +45 -0
- package/.react-email/src/components/text.tsx +99 -0
- package/.react-email/src/components/tooltip-content.tsx +32 -0
- package/.react-email/src/components/tooltip.tsx +19 -0
- package/.react-email/src/components/topbar.tsx +161 -0
- package/.react-email/src/contexts/emails.tsx +127 -0
- package/.react-email/src/hooks/use-hot-reload.ts +35 -0
- package/.react-email/src/hooks/use-rendering-metadata.ts +36 -0
- package/.react-email/src/utils/cn.ts +6 -0
- package/.react-email/src/utils/constants.ts +6 -0
- package/.react-email/src/utils/copy-text-to-clipboard.ts +7 -0
- package/.react-email/src/utils/emails-directory-absolute-path.ts +34 -0
- package/.react-email/src/utils/get-email-component.ts +108 -0
- package/.react-email/src/utils/improve-error-with-sourcemap.ts +55 -0
- package/.react-email/src/utils/index.ts +5 -0
- package/.react-email/src/utils/language-map.ts +7 -0
- package/.react-email/src/utils/static-node-modules-for-vm.ts +92 -0
- package/.react-email/src/utils/types/as.ts +26 -0
- package/.react-email/src/utils/types/email-template.ts +8 -0
- package/.react-email/src/utils/types/error-object.ts +11 -0
- package/.react-email/src/utils/types/hot-reload-change.ts +6 -0
- package/.react-email/src/utils/types/hot-reload-event.ts +6 -0
- package/.react-email/src/utils/unreachable.ts +8 -0
- package/.react-email/tailwind.config.ts +94 -0
- package/dist/index.d.mts +238 -83
- package/dist/index.d.ts +238 -83
- package/dist/index.js +364 -105
- package/dist/index.mjs +360 -105
- package/package.json +1 -1
- package/emails/admin/abort-order-request.tsx +0 -58
- package/emails/admin/index.ts +0 -2
- package/emails/admin/revert-payment-request-admin.tsx +0 -54
- package/emails/all/index.ts +0 -1
- package/emails/all/welcome.tsx +0 -104
- package/emails/brand/evidences-accepted-brand.tsx +0 -59
- package/emails/brand/evidences-submitted-brand.tsx +0 -65
- package/emails/brand/index.ts +0 -6
- package/emails/brand/new-order-created-brand.tsx +0 -74
- package/emails/brand/order-accepted-brand.tsx +0 -63
- package/emails/brand/order-cancelled-brand.tsx +0 -68
- package/emails/brand/order-rejected-brand.tsx +0 -79
- package/emails/creator/evidences-approved-creator.tsx +0 -62
- package/emails/creator/evidences-rejected-creator.tsx +0 -74
- package/emails/creator/index.ts +0 -5
- package/emails/creator/new-order-created-creator.tsx +0 -70
- package/emails/creator/order-cancelled-creator.tsx +0 -69
- package/emails/creator/order-payment-creator.tsx +0 -58
- package/emails/index.ts +0 -5
- package/emails/shared/components/base-head.tsx +0 -19
- package/emails/shared/components/comment-component.tsx +0 -32
- package/emails/shared/components/footer.tsx +0 -84
- package/emails/shared/components/header.tsx +0 -24
- package/emails/shared/components/new-order-info.tsx +0 -60
- package/emails/shared/components/payment-amount.tsx +0 -37
- package/emails/shared/components/user-Info.tsx +0 -55
- package/emails/shared/index.ts +0 -3
- package/emails/shared/styles.ts +0 -72
- package/emails/shared/types.ts +0 -179
- package/emails/shared/values.ts +0 -19
package/dist/index.js
CHANGED
|
@@ -24,6 +24,10 @@ __export(emails_exports, {
|
|
|
24
24
|
EvidenceApprovedCreator: () => EvidenceApprovedCreator,
|
|
25
25
|
EvidencesRejectedCreator: () => EvidencesRejectedCreator,
|
|
26
26
|
EvidencesSubmittedBrand: () => EvidencesSubmittedBrand,
|
|
27
|
+
NewJobApplicationUnapprovedCreator: () => NewJobApplicationUnapprovedCreator,
|
|
28
|
+
NewJobApplicationsReceivedBrand: () => NewJobApplicationsReceivedBrand,
|
|
29
|
+
NewJobCreatedBrand: () => NewJobCreatedBrand,
|
|
30
|
+
NewMessageNotification: () => NewMessageNotification,
|
|
27
31
|
NewOrderCreatedBrand: () => NewOrderCreatedBrand,
|
|
28
32
|
NewOrderCreatedCreator: () => NewOrderCreatedCreator,
|
|
29
33
|
OrderAcceptedBrand: () => OrderAcceptedBrand,
|
|
@@ -100,7 +104,7 @@ var button = {
|
|
|
100
104
|
display: "block",
|
|
101
105
|
color: colors.white,
|
|
102
106
|
padding: "15px 20px",
|
|
103
|
-
width: "
|
|
107
|
+
width: "fit-content",
|
|
104
108
|
borderRadius: "8px",
|
|
105
109
|
justifyContent: "center",
|
|
106
110
|
margin: "0 auto",
|
|
@@ -125,16 +129,19 @@ var import_components = require("@react-email/components");
|
|
|
125
129
|
|
|
126
130
|
// emails/shared/values.ts
|
|
127
131
|
var appBaseUrl = `https://promote.co.mz`;
|
|
128
|
-
var assetsBasePath = `https://s3.us-east-2.amazonaws.com/promote-mz
|
|
132
|
+
var assetsBasePath = `https://s3.us-east-2.amazonaws.com/promote-co-mz/assets`;
|
|
129
133
|
var appRoutes = {
|
|
130
134
|
homePageRoute: `${appBaseUrl}/home`,
|
|
131
135
|
creatorsList: `${appBaseUrl}/content-creators`,
|
|
132
136
|
creatorPrivateProfile: `${appBaseUrl}/content-creators/profile`,
|
|
133
137
|
termsAndConditions: `${appBaseUrl}/terms-and-conditions`,
|
|
138
|
+
jobsList: `${appBaseUrl}/jobs`,
|
|
134
139
|
creatorOrderDetails: (orderId) => `${appBaseUrl}/content-creators/profile/orders/${orderId}`,
|
|
135
140
|
brandOrderDetails: (orderId) => `${appBaseUrl}/brands/orders/${orderId}`,
|
|
141
|
+
brandJobDetails: (jobId) => `${appBaseUrl}/brands/jobs/${jobId}`,
|
|
136
142
|
adminOrderDetails: (orderId) => `${appBaseUrl}/admin/orders/${orderId}`,
|
|
137
|
-
creatorPublicProfile: (username) => `${appBaseUrl}/content-creators/${username}
|
|
143
|
+
creatorPublicProfile: (username) => `${appBaseUrl}/content-creators/${username}`,
|
|
144
|
+
brandConversation: (conversationPath, chatRoomId) => `${appBaseUrl}/${conversationPath}?chatRoomId=${chatRoomId}`
|
|
138
145
|
};
|
|
139
146
|
var socialNetworkLinks = {
|
|
140
147
|
linkedin: "https://www.linkedin.com/company/promotemz",
|
|
@@ -434,7 +441,7 @@ var import_jsx_runtime9 = require("react/jsx-runtime");
|
|
|
434
441
|
function EvidencesSubmittedBrand(props) {
|
|
435
442
|
return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(import_components9.Html, { style: rootStyles, children: [
|
|
436
443
|
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(BaseHead, {}),
|
|
437
|
-
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_components9.Preview, { children: "
|
|
444
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_components9.Preview, { children: "Materiais de Entrega submetidos \u{1F195}" }),
|
|
438
445
|
/* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(import_components9.Body, { style: { ...main, ...baseContainer }, children: [
|
|
439
446
|
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Header, {}),
|
|
440
447
|
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(UserInfo, { photo: props.creator.photo, name: props.creator.name, userType: "creator" /* CREATOR */, username: props.creator.username }),
|
|
@@ -449,19 +456,19 @@ function EvidencesSubmittedBrand(props) {
|
|
|
449
456
|
" ",
|
|
450
457
|
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_components9.Link, { href: appRoutes.creatorPublicProfile(props.creator.username), target: "_blank", style: link, children: props.creator.name }),
|
|
451
458
|
" ",
|
|
452
|
-
"submeteu
|
|
459
|
+
"submeteu novo material de entrega para o seu",
|
|
453
460
|
" ",
|
|
454
461
|
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_components9.Link, { href: appRoutes.brandOrderDetails(props.order.id), target: "_blank", style: link, children: "pedido. \u{1F680}" }),
|
|
455
462
|
" ",
|
|
456
463
|
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("br", {}),
|
|
457
|
-
" Por favor, verifique
|
|
464
|
+
" Por favor, verifique os materiais de entrega submetidos e ",
|
|
458
465
|
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("b", { children: "aprove \u2705" }),
|
|
459
466
|
" ou ",
|
|
460
467
|
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("b", { children: "rejeite \u274C" }),
|
|
461
468
|
" o trabalho."
|
|
462
469
|
] })
|
|
463
470
|
] }),
|
|
464
|
-
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_components9.Container, { style: { ...baseContentContainer }, children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_components9.Link, { href: appRoutes.brandOrderDetails(props.order.id), style: { ...button, width: "150px" }, children: "VER
|
|
471
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_components9.Container, { style: { ...baseContentContainer }, children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_components9.Link, { href: appRoutes.brandOrderDetails(props.order.id), style: { ...button, width: "150px" }, children: "VER MATERIAL" }) }),
|
|
465
472
|
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Footer, {})
|
|
466
473
|
] })
|
|
467
474
|
] });
|
|
@@ -492,7 +499,7 @@ var import_jsx_runtime10 = require("react/jsx-runtime");
|
|
|
492
499
|
function NewOrderInfo(props) {
|
|
493
500
|
return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(import_components10.Section, { children: [
|
|
494
501
|
/* @__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: "
|
|
502
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_components10.Column, { children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_components10.Text, { style: leftText, children: "Pacote:" }) }),
|
|
496
503
|
/* @__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
504
|
] }),
|
|
498
505
|
/* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(import_components10.Row, { style: rowItem, children: [
|
|
@@ -769,33 +776,166 @@ var reasonContainer2 = {
|
|
|
769
776
|
margin: "30px 0"
|
|
770
777
|
};
|
|
771
778
|
|
|
772
|
-
// emails/
|
|
779
|
+
// emails/brand/new-job-created-brand.tsx
|
|
773
780
|
var import_components16 = require("@react-email/components");
|
|
774
781
|
var import_jsx_runtime16 = require("react/jsx-runtime");
|
|
775
|
-
function
|
|
782
|
+
function NewJobCreatedBrand(props) {
|
|
776
783
|
return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(import_components16.Html, { style: rootStyles, children: [
|
|
777
784
|
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(BaseHead, {}),
|
|
778
|
-
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_components16.Preview, { children: "
|
|
785
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_components16.Preview, { children: "Novo Job Publicado" }),
|
|
779
786
|
/* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(import_components16.Body, { style: { ...main, ...baseContainer }, children: [
|
|
780
787
|
/* @__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
788
|
/* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(import_components16.Container, { style: { ...baseContentContainer }, children: [
|
|
783
789
|
/* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(import_components16.Text, { style: baseText, children: [
|
|
790
|
+
"Ol\xE1, ",
|
|
791
|
+
props.brand.name,
|
|
792
|
+
","
|
|
793
|
+
] }),
|
|
794
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(import_components16.Text, { style: baseText, children: [
|
|
795
|
+
"Parab\xE9ns \u{1F389}, publicou com sucesso o novo job para a campanha ",
|
|
796
|
+
" ",
|
|
797
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("span", { style: link, children: [
|
|
798
|
+
props.campaign.name,
|
|
799
|
+
"."
|
|
800
|
+
] }),
|
|
801
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("br", {}),
|
|
802
|
+
" Por favor, revise os detalhes abaixo \u{1F680}:"
|
|
803
|
+
] })
|
|
804
|
+
] }),
|
|
805
|
+
/* @__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 }) }),
|
|
806
|
+
/* @__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" }) }),
|
|
807
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Footer, {})
|
|
808
|
+
] })
|
|
809
|
+
] });
|
|
810
|
+
}
|
|
811
|
+
NewJobCreatedBrand.PreviewProps = {
|
|
812
|
+
brand: {
|
|
813
|
+
name: "Vodacom Mz"
|
|
814
|
+
},
|
|
815
|
+
campaign: {
|
|
816
|
+
name: "Megas ate dormir",
|
|
817
|
+
description: "Ganhe megas so por publicar uma foto com a vodacom"
|
|
818
|
+
},
|
|
819
|
+
job: {
|
|
820
|
+
id: "1",
|
|
821
|
+
createdAt: "20 de Agosto, 2021",
|
|
822
|
+
jobCommission: "1000"
|
|
823
|
+
}
|
|
824
|
+
};
|
|
825
|
+
var jobDetails = {
|
|
826
|
+
...baseContentContainer,
|
|
827
|
+
marginTop: "30px",
|
|
828
|
+
marginBottom: "40px"
|
|
829
|
+
};
|
|
830
|
+
|
|
831
|
+
// emails/brand/new-job-application-received-brand.tsx
|
|
832
|
+
var import_components17 = require("@react-email/components");
|
|
833
|
+
var import_jsx_runtime17 = require("react/jsx-runtime");
|
|
834
|
+
function NewJobApplicationsReceivedBrand(props) {
|
|
835
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_components17.Html, { style: rootStyles, children: [
|
|
836
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(BaseHead, {}),
|
|
837
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_components17.Preview, { children: "Nova Candidatura Recebida para o Job" }),
|
|
838
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_components17.Body, { style: { ...main, ...baseContainer }, children: [
|
|
839
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Header, {}),
|
|
840
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_components17.Container, { style: { ...baseContentContainer }, children: [
|
|
841
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_components17.Text, { style: baseText, children: [
|
|
842
|
+
"Ol\xE1, ",
|
|
843
|
+
props.brand.name,
|
|
844
|
+
","
|
|
845
|
+
] }),
|
|
846
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_components17.Text, { style: baseText, children: [
|
|
847
|
+
"Voc\xEA recebeu uma nova candidatura para o job da campanha",
|
|
848
|
+
" ",
|
|
849
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("span", { style: link, children: [
|
|
850
|
+
props.campaign.name,
|
|
851
|
+
"."
|
|
852
|
+
] }),
|
|
853
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("br", {}),
|
|
854
|
+
" Revise os detalhes da candidatura abaixo \u{1F680}:"
|
|
855
|
+
] })
|
|
856
|
+
] }),
|
|
857
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
858
|
+
UserInfo,
|
|
859
|
+
{
|
|
860
|
+
photo: props.creatorCandidate.photo,
|
|
861
|
+
name: props.creatorCandidate.name,
|
|
862
|
+
userType: "creator" /* CREATOR */,
|
|
863
|
+
username: props.creatorCandidate.username
|
|
864
|
+
}
|
|
865
|
+
),
|
|
866
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_components17.Container, { style: jobDetails2, children: [
|
|
867
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_components17.Text, { style: baseText, children: [
|
|
868
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("strong", { children: "Or\xE7amento desejado:" }),
|
|
869
|
+
" ",
|
|
870
|
+
props.jobApplication.desired_budget ? `MZN ${props.jobApplication.desired_budget}` : "N\xE3o informado"
|
|
871
|
+
] }),
|
|
872
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_components17.Text, { style: baseText, children: [
|
|
873
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("strong", { children: "Observa\xE7\xF5es:" }),
|
|
874
|
+
" ",
|
|
875
|
+
props.jobApplication.observations || "Nenhuma observa\xE7\xE3o"
|
|
876
|
+
] })
|
|
877
|
+
] }),
|
|
878
|
+
/* @__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" }) }),
|
|
879
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Footer, {})
|
|
880
|
+
] })
|
|
881
|
+
] });
|
|
882
|
+
}
|
|
883
|
+
NewJobApplicationsReceivedBrand.PreviewProps = {
|
|
884
|
+
brand: {
|
|
885
|
+
name: "Vodacom Mz"
|
|
886
|
+
},
|
|
887
|
+
campaign: {
|
|
888
|
+
name: "Megas at\xE9 Dormir",
|
|
889
|
+
description: "Ganhe megas s\xF3 por publicar uma foto com a Vodacom"
|
|
890
|
+
},
|
|
891
|
+
job: {
|
|
892
|
+
id: "1",
|
|
893
|
+
jobCommission: "1000"
|
|
894
|
+
},
|
|
895
|
+
jobApplication: {
|
|
896
|
+
id: "1",
|
|
897
|
+
desired_budget: 1500,
|
|
898
|
+
observations: "Gostaria de discutir mais sobre os requisitos da campanha."
|
|
899
|
+
},
|
|
900
|
+
creatorCandidate: {
|
|
901
|
+
name: "Jo\xE3o Silva",
|
|
902
|
+
photo: "https://s3.us-east-2.amazonaws.com/promote-mz.com/images/creator-photo.jpg",
|
|
903
|
+
username: "joaosilva"
|
|
904
|
+
}
|
|
905
|
+
};
|
|
906
|
+
var jobDetails2 = {
|
|
907
|
+
...baseContentContainer,
|
|
908
|
+
marginTop: "30px",
|
|
909
|
+
marginBottom: "40px"
|
|
910
|
+
};
|
|
911
|
+
|
|
912
|
+
// emails/creator/evidences-approved-creator.tsx
|
|
913
|
+
var import_components18 = require("@react-email/components");
|
|
914
|
+
var import_jsx_runtime18 = require("react/jsx-runtime");
|
|
915
|
+
function EvidenceApprovedCreator(props) {
|
|
916
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(import_components18.Html, { style: rootStyles, children: [
|
|
917
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(BaseHead, {}),
|
|
918
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_components18.Preview, { children: "Material de Entrega aprovado \u2705" }),
|
|
919
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(import_components18.Body, { style: { ...main, ...baseContainer }, children: [
|
|
920
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Header, {}),
|
|
921
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(UserInfo, { photo: props.brand.photo, name: props.brand.name, userType: "brand" /* BRAND */ }),
|
|
922
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(import_components18.Container, { style: { ...baseContentContainer }, children: [
|
|
923
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(import_components18.Text, { style: baseText, children: [
|
|
784
924
|
"Ol\xE1, ",
|
|
785
925
|
props.creator.name,
|
|
786
926
|
" \u{1F38A},"
|
|
787
927
|
] }),
|
|
788
|
-
/* @__PURE__ */ (0,
|
|
789
|
-
"Actualiza\xE7\xF5es,
|
|
928
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(import_components18.Text, { style: baseText, children: [
|
|
929
|
+
"Actualiza\xE7\xF5es, o",
|
|
790
930
|
" ",
|
|
791
|
-
/* @__PURE__ */ (0,
|
|
931
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_components18.Link, { href: appRoutes.creatorOrderDetails(props.evidenceLink), target: "_blank", style: link, children: "material de entrega" }),
|
|
792
932
|
" ",
|
|
793
|
-
"que submeteste foi
|
|
933
|
+
"que submeteste foi aprovado pela marca \u{1F389}."
|
|
794
934
|
] }),
|
|
795
|
-
/* @__PURE__ */ (0,
|
|
935
|
+
/* @__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
936
|
] }),
|
|
797
|
-
/* @__PURE__ */ (0,
|
|
798
|
-
/* @__PURE__ */ (0,
|
|
937
|
+
/* @__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" }) }),
|
|
938
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Footer, {})
|
|
799
939
|
] })
|
|
800
940
|
] });
|
|
801
941
|
}
|
|
@@ -814,34 +954,34 @@ EvidenceApprovedCreator.PreviewProps = {
|
|
|
814
954
|
};
|
|
815
955
|
|
|
816
956
|
// emails/creator/evidences-rejected-creator.tsx
|
|
817
|
-
var
|
|
818
|
-
var
|
|
957
|
+
var import_components19 = require("@react-email/components");
|
|
958
|
+
var import_jsx_runtime19 = require("react/jsx-runtime");
|
|
819
959
|
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,
|
|
960
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(import_components19.Html, { style: rootStyles, children: [
|
|
961
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(BaseHead, {}),
|
|
962
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_components19.Preview, { children: "Evi\xEAncia rejeitada \u274C" }),
|
|
963
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(import_components19.Body, { style: { ...main, ...baseContainer }, children: [
|
|
964
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Header, {}),
|
|
965
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(UserInfo, { photo: props.brand.photo, name: props.brand.name, userType: "brand" /* BRAND */ }),
|
|
966
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(import_components19.Container, { style: { ...baseContentContainer }, children: [
|
|
967
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(import_components19.Text, { style: baseText, children: [
|
|
828
968
|
"Ol\xE1, ",
|
|
829
969
|
props.creator.name,
|
|
830
970
|
","
|
|
831
971
|
] }),
|
|
832
|
-
/* @__PURE__ */ (0,
|
|
833
|
-
"
|
|
972
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(import_components19.Text, { style: baseText, children: [
|
|
973
|
+
"O",
|
|
834
974
|
" ",
|
|
835
|
-
/* @__PURE__ */ (0,
|
|
975
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_components19.Link, { href: props.evidenceLink, target: "_blank", style: link, children: "material de entrega" }),
|
|
836
976
|
" ",
|
|
837
977
|
"foi rejeitada \u274C pela marca.",
|
|
838
|
-
/* @__PURE__ */ (0,
|
|
978
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)("br", {}),
|
|
839
979
|
"Por favor, reveja o motivo da rejei\xE7\xE3o e submeta novamente."
|
|
840
980
|
] })
|
|
841
981
|
] }),
|
|
842
|
-
props.reason && /* @__PURE__ */ (0,
|
|
843
|
-
/* @__PURE__ */ (0,
|
|
844
|
-
/* @__PURE__ */ (0,
|
|
982
|
+
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 }) }),
|
|
983
|
+
/* @__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" }) }),
|
|
984
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Footer, {})
|
|
845
985
|
] })
|
|
846
986
|
] });
|
|
847
987
|
}
|
|
@@ -866,37 +1006,37 @@ var reasonContainer3 = {
|
|
|
866
1006
|
};
|
|
867
1007
|
|
|
868
1008
|
// emails/creator/order-cancelled-creator.tsx
|
|
869
|
-
var
|
|
870
|
-
var
|
|
1009
|
+
var import_components20 = require("@react-email/components");
|
|
1010
|
+
var import_jsx_runtime20 = require("react/jsx-runtime");
|
|
871
1011
|
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,
|
|
1012
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(import_components20.Html, { style: rootStyles, children: [
|
|
1013
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(BaseHead, {}),
|
|
1014
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_components20.Preview, { children: "Pedido cancelado \u274C" }),
|
|
1015
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(import_components20.Body, { style: { ...main, ...baseContainer }, children: [
|
|
1016
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Header, {}),
|
|
1017
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(UserInfo, { photo: `${assetsBasePath}/icons/logo-icon-colored.png`, name: "Promote Team", userType: "brand" /* BRAND */ }),
|
|
1018
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(import_components20.Container, { style: { ...baseContentContainer }, children: [
|
|
1019
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(import_components20.Text, { style: baseText, children: [
|
|
880
1020
|
"Ol\xE1, ",
|
|
881
1021
|
props.creator.name,
|
|
882
1022
|
","
|
|
883
1023
|
] }),
|
|
884
|
-
/* @__PURE__ */ (0,
|
|
1024
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(import_components20.Text, { style: baseText, children: [
|
|
885
1025
|
"Infelizmente o",
|
|
886
1026
|
" ",
|
|
887
|
-
/* @__PURE__ */ (0,
|
|
1027
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(import_components20.Link, { href: appRoutes.creatorOrderDetails(props.order.id), target: "_blank", style: link, children: [
|
|
888
1028
|
"pedido #",
|
|
889
1029
|
props.order.id
|
|
890
1030
|
] }),
|
|
891
1031
|
" ",
|
|
892
1032
|
"foi cancelado \u274C antes da sua conclus\xE3o.",
|
|
893
|
-
/* @__PURE__ */ (0,
|
|
1033
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("br", {}),
|
|
894
1034
|
"Agradecemos a sua disponibilidade e esperamos que a pr\xF3xima oportunidade seja um sucesso \u{1F44C}\u{1F3FD}\u{1F44C}\u{1F3FD}!"
|
|
895
1035
|
] })
|
|
896
1036
|
] }),
|
|
897
|
-
props.reason && /* @__PURE__ */ (0,
|
|
898
|
-
/* @__PURE__ */ (0,
|
|
899
|
-
/* @__PURE__ */ (0,
|
|
1037
|
+
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 }) }),
|
|
1038
|
+
/* @__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" }) }),
|
|
1039
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Footer, {})
|
|
900
1040
|
] })
|
|
901
1041
|
] });
|
|
902
1042
|
}
|
|
@@ -916,35 +1056,35 @@ var reasonContainer4 = {
|
|
|
916
1056
|
};
|
|
917
1057
|
|
|
918
1058
|
// emails/creator/order-payment-creator.tsx
|
|
919
|
-
var
|
|
920
|
-
var
|
|
1059
|
+
var import_components21 = require("@react-email/components");
|
|
1060
|
+
var import_jsx_runtime21 = require("react/jsx-runtime");
|
|
921
1061
|
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,
|
|
1062
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(import_components21.Html, { style: rootStyles, children: [
|
|
1063
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(BaseHead, {}),
|
|
1064
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_components21.Preview, { children: "Pagamento Liberado \u2705" }),
|
|
1065
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(import_components21.Body, { style: { ...main, ...baseContainer }, children: [
|
|
1066
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Header, {}),
|
|
1067
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(UserInfo, { photo: `${assetsBasePath}/icons/logo-icon-colored.png`, name: "Promote Team", userType: "brand" /* BRAND */ }),
|
|
1068
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(import_components21.Container, { style: { ...baseContentContainer }, children: [
|
|
1069
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(import_components21.Text, { style: baseText, children: [
|
|
930
1070
|
"Ol\xE1, ",
|
|
931
1071
|
props.creator.name,
|
|
932
1072
|
" \u{1F38A},"
|
|
933
1073
|
] }),
|
|
934
|
-
/* @__PURE__ */ (0,
|
|
1074
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(import_components21.Text, { style: baseText, children: [
|
|
935
1075
|
"Boas Not\xEDcias \u{1F389}, est\xE1 em processamento o pagamento da",
|
|
936
1076
|
" ",
|
|
937
|
-
/* @__PURE__ */ (0,
|
|
1077
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(import_components21.Link, { href: appRoutes.creatorOrderDetails(props.order.id), target: "_blank", style: link, children: [
|
|
938
1078
|
"ordem #",
|
|
939
1079
|
props.order.id
|
|
940
1080
|
] }),
|
|
941
1081
|
" "
|
|
942
1082
|
] }),
|
|
943
|
-
/* @__PURE__ */ (0,
|
|
1083
|
+
/* @__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
1084
|
] }),
|
|
945
|
-
/* @__PURE__ */ (0,
|
|
946
|
-
/* @__PURE__ */ (0,
|
|
947
|
-
/* @__PURE__ */ (0,
|
|
1085
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(PaymentAmount, { totalAmount: props.totalAmount }),
|
|
1086
|
+
/* @__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" }) }),
|
|
1087
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Footer, {})
|
|
948
1088
|
] })
|
|
949
1089
|
] });
|
|
950
1090
|
}
|
|
@@ -959,32 +1099,32 @@ OrderPaymentCreator.PreviewProps = {
|
|
|
959
1099
|
};
|
|
960
1100
|
|
|
961
1101
|
// emails/creator/new-order-created-creator.tsx
|
|
962
|
-
var
|
|
963
|
-
var
|
|
1102
|
+
var import_components22 = require("@react-email/components");
|
|
1103
|
+
var import_jsx_runtime22 = require("react/jsx-runtime");
|
|
964
1104
|
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,
|
|
1105
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(import_components22.Html, { style: rootStyles, children: [
|
|
1106
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(BaseHead, {}),
|
|
1107
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_components22.Preview, { children: "Novo Pedido Recebido" }),
|
|
1108
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(import_components22.Body, { style: { ...main, ...baseContainer }, children: [
|
|
1109
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Header, {}),
|
|
1110
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(UserInfo, { photo: props.brand.photo, name: props.brand.name, userType: "brand" /* BRAND */ }),
|
|
1111
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(import_components22.Container, { style: { ...baseContentContainer }, children: [
|
|
1112
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(import_components22.Text, { style: baseText, children: [
|
|
973
1113
|
"Ol\xE1, ",
|
|
974
1114
|
props.creator.name,
|
|
975
1115
|
","
|
|
976
1116
|
] }),
|
|
977
|
-
/* @__PURE__ */ (0,
|
|
1117
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(import_components22.Text, { style: baseText, children: [
|
|
978
1118
|
"Parab\xE9ns \u{1F389}, voc\xEA recebeu um novo pedido da empresa ",
|
|
979
|
-
/* @__PURE__ */ (0,
|
|
1119
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)("span", { style: { color: colors.primary }, children: props.brand.name }),
|
|
980
1120
|
".",
|
|
981
|
-
/* @__PURE__ */ (0,
|
|
1121
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)("br", {}),
|
|
982
1122
|
" Por favor, revise os detalhes abaixo \u{1F680}:"
|
|
983
1123
|
] })
|
|
984
1124
|
] }),
|
|
985
|
-
/* @__PURE__ */ (0,
|
|
986
|
-
/* @__PURE__ */ (0,
|
|
987
|
-
/* @__PURE__ */ (0,
|
|
1125
|
+
/* @__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 }) }),
|
|
1126
|
+
/* @__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" }) }),
|
|
1127
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Footer, {})
|
|
988
1128
|
] })
|
|
989
1129
|
] });
|
|
990
1130
|
}
|
|
@@ -1011,51 +1151,112 @@ var orderDetails2 = {
|
|
|
1011
1151
|
marginBottom: "40px"
|
|
1012
1152
|
};
|
|
1013
1153
|
|
|
1154
|
+
// emails/creator/new-job-application-unapproved-creator.tsx
|
|
1155
|
+
var import_components23 = require("@react-email/components");
|
|
1156
|
+
var import_jsx_runtime23 = require("react/jsx-runtime");
|
|
1157
|
+
function NewJobApplicationUnapprovedCreator(props) {
|
|
1158
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(import_components23.Html, { style: rootStyles, children: [
|
|
1159
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(BaseHead, {}),
|
|
1160
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_components23.Preview, { children: "Actualiza\xE7\xE3o sobre sua candidatura ao job" }),
|
|
1161
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(import_components23.Body, { style: { ...main, ...baseContainer }, children: [
|
|
1162
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Header, {}),
|
|
1163
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(import_components23.Container, { style: { ...baseContentContainer }, children: [
|
|
1164
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(import_components23.Text, { style: baseText2, children: [
|
|
1165
|
+
"Ol\xE1, ",
|
|
1166
|
+
props.creator.name,
|
|
1167
|
+
","
|
|
1168
|
+
] }),
|
|
1169
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(import_components23.Text, { style: baseText2, children: [
|
|
1170
|
+
"Infelizmente, sua candidatura para o job da campanha",
|
|
1171
|
+
" ",
|
|
1172
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { style: link, children: props.campaign.name }),
|
|
1173
|
+
" n\xE3o foi aprovada.",
|
|
1174
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)("br", {}),
|
|
1175
|
+
"Agradecemos por seu interesse e participa\xE7\xE3o!"
|
|
1176
|
+
] }),
|
|
1177
|
+
props.jobApplication.rejectionReason && /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(import_components23.Text, { style: baseText2, children: [
|
|
1178
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)("strong", { children: "Motivo:" }),
|
|
1179
|
+
" ",
|
|
1180
|
+
props.jobApplication.rejectionReason
|
|
1181
|
+
] }),
|
|
1182
|
+
/* @__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}" })
|
|
1183
|
+
] }),
|
|
1184
|
+
/* @__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" }) }),
|
|
1185
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Footer, {})
|
|
1186
|
+
] })
|
|
1187
|
+
] });
|
|
1188
|
+
}
|
|
1189
|
+
NewJobApplicationUnapprovedCreator.PreviewProps = {
|
|
1190
|
+
creator: {
|
|
1191
|
+
name: "K\xE1tia Vanessa",
|
|
1192
|
+
email: "katia@example.com"
|
|
1193
|
+
},
|
|
1194
|
+
campaign: {
|
|
1195
|
+
name: "Megas at\xE9 Dormir",
|
|
1196
|
+
description: "Ganhe megas s\xF3 por publicar uma foto com a Vodacom"
|
|
1197
|
+
},
|
|
1198
|
+
jobApplication: {
|
|
1199
|
+
id: "1",
|
|
1200
|
+
rejectionReason: "N\xE3o atingiu os requisitos esperados para o job."
|
|
1201
|
+
}
|
|
1202
|
+
};
|
|
1203
|
+
var baseText2 = {
|
|
1204
|
+
fontSize: "16px",
|
|
1205
|
+
lineHeight: "24px",
|
|
1206
|
+
color: "#333"
|
|
1207
|
+
};
|
|
1208
|
+
|
|
1014
1209
|
// emails/all/welcome.tsx
|
|
1015
|
-
var
|
|
1016
|
-
var
|
|
1210
|
+
var import_components24 = require("@react-email/components");
|
|
1211
|
+
var import_jsx_runtime24 = require("react/jsx-runtime");
|
|
1017
1212
|
function Welcome({ name, userType }) {
|
|
1018
1213
|
const content2 = {
|
|
1019
1214
|
["brand" /* BRAND */]: {
|
|
1020
1215
|
startLink: appRoutes.creatorsList,
|
|
1021
|
-
description:
|
|
1216
|
+
description: `Agora fazes parte da Promote, a primeira plataforma de Conte\xFAdo Gerado pelo Usu\xE1rio (UGC) em Mo\xE7ambique.
|
|
1217
|
+
Como Marca, podes conectar-te com criadores e escolher os que melhor se alinham \xE0 tua vis\xE3o para criar o conte\xFAdo ideal.
|
|
1218
|
+
|
|
1219
|
+
Agradecemos pelo teu registo e vamos manter-te informado sobre atualiza\xE7\xF5es e o lan\xE7amento oficial.`
|
|
1022
1220
|
},
|
|
1023
1221
|
["creator" /* CREATOR */]: {
|
|
1024
1222
|
startLink: appRoutes.creatorPrivateProfile,
|
|
1025
|
-
description:
|
|
1223
|
+
description: `Parab\xE9ns! Agora fazes parte da Promote, a primeira plataforma de Conte\xFAdo Gerado pelo Usu\xE1rio (UGC) em Mo\xE7ambique.
|
|
1224
|
+
Como Criador, vais poder conectar-te com marcas e ag\xEAncias, mostrar o teu talento e candidatar-te a diversos projectos.
|
|
1225
|
+
|
|
1226
|
+
Agradecemos pelo teu registo e vamos manter-te informado sobre novidades e o lan\xE7amento oficial.`
|
|
1026
1227
|
}
|
|
1027
1228
|
};
|
|
1028
|
-
return /* @__PURE__ */ (0,
|
|
1029
|
-
/* @__PURE__ */ (0,
|
|
1030
|
-
/* @__PURE__ */ (0,
|
|
1031
|
-
/* @__PURE__ */ (0,
|
|
1032
|
-
/* @__PURE__ */ (0,
|
|
1033
|
-
/* @__PURE__ */ (0,
|
|
1034
|
-
/* @__PURE__ */ (0,
|
|
1229
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_components24.Html, { style: rootStyles, children: [
|
|
1230
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(BaseHead, {}),
|
|
1231
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_components24.Preview, { children: "Bem-vindo \xE0 Promote" }),
|
|
1232
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_components24.Body, { style: { ...main, ...baseContainer }, children: [
|
|
1233
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_components24.Container, { style: headContainer, children: [
|
|
1234
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_components24.Img, { src: `${assetsBasePath}/icons/logo-icon.png`, alt: "Promote Logo", style: promoteLogo }),
|
|
1235
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_components24.Img, { src: `${assetsBasePath}/icons/welcome-title.png`, alt: "Bem-vindo \xE0 Promote", style: welcomeImage })
|
|
1035
1236
|
] }),
|
|
1036
|
-
/* @__PURE__ */ (0,
|
|
1037
|
-
/* @__PURE__ */ (0,
|
|
1237
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_components24.Container, { style: baseContentContainer, children: [
|
|
1238
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_components24.Heading, { as: "h1", style: title3, children: [
|
|
1038
1239
|
"Ol\xE1 ",
|
|
1039
1240
|
name || "{{nome}}",
|
|
1040
1241
|
" \u{1F389},"
|
|
1041
1242
|
] }),
|
|
1042
|
-
/* @__PURE__ */ (0,
|
|
1043
|
-
/* @__PURE__ */ (0,
|
|
1044
|
-
"
|
|
1243
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_components24.Text, { style: textInfo, children: content2[userType]?.description }),
|
|
1244
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_components24.Text, { style: textInfo, children: [
|
|
1245
|
+
"Se tiveres alguma d\xFAvida ou sugest\xE3o, n\xE3o hesites em contactar-nos atrav\xE9s do e-mail:",
|
|
1045
1246
|
" ",
|
|
1046
|
-
/* @__PURE__ */ (0,
|
|
1247
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_components24.Link, { style: link, href: "mailto:help@promote.co.mz", children: "help@promote.co.mz" }),
|
|
1047
1248
|
" ",
|
|
1048
1249
|
"\u{1F680}"
|
|
1049
1250
|
] })
|
|
1050
1251
|
] }),
|
|
1051
|
-
/* @__PURE__ */ (0,
|
|
1052
|
-
/* @__PURE__ */ (0,
|
|
1252
|
+
/* @__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" }) }),
|
|
1253
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Footer, {})
|
|
1053
1254
|
] })
|
|
1054
1255
|
] });
|
|
1055
1256
|
}
|
|
1056
1257
|
Welcome.PreviewProps = {
|
|
1057
|
-
name: "Jo\xE3o
|
|
1058
|
-
userType: "
|
|
1258
|
+
name: "Jo\xE3o Ant\xF3nio",
|
|
1259
|
+
userType: "creator" /* CREATOR */
|
|
1059
1260
|
};
|
|
1060
1261
|
var headContainer = {
|
|
1061
1262
|
...baseContentContainer,
|
|
@@ -1087,14 +1288,72 @@ var title3 = {
|
|
|
1087
1288
|
var textInfo = {
|
|
1088
1289
|
...baseText,
|
|
1089
1290
|
marginTop: "20px",
|
|
1291
|
+
marginBottom: "20px",
|
|
1292
|
+
textAlign: "justify",
|
|
1293
|
+
whiteSpace: "pre-line"
|
|
1294
|
+
};
|
|
1295
|
+
|
|
1296
|
+
// emails/all/new-message-notification.tsx
|
|
1297
|
+
var import_components25 = require("@react-email/components");
|
|
1298
|
+
var import_jsx_runtime25 = require("react/jsx-runtime");
|
|
1299
|
+
function NewMessageNotification(props) {
|
|
1300
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(import_components25.Html, { style: rootStyles, children: [
|
|
1301
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(BaseHead, {}),
|
|
1302
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_components25.Preview, { children: "Nova mensagem recebida \u{1F195}" }),
|
|
1303
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(import_components25.Body, { style: { ...main, ...baseContainer }, children: [
|
|
1304
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Header, {}),
|
|
1305
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(UserInfo, { photo: props.sender.photo, name: props.sender.name, userType: props.sender.userType, username: props.sender.username }),
|
|
1306
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(import_components25.Container, { style: { ...baseContentContainer }, children: [
|
|
1307
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(import_components25.Text, { style: baseText, children: [
|
|
1308
|
+
"Ol\xE1, ",
|
|
1309
|
+
props.recipient.name,
|
|
1310
|
+
","
|
|
1311
|
+
] }),
|
|
1312
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(import_components25.Text, { style: baseText, children: [
|
|
1313
|
+
"Voc\xEA recebeu uma nova mensagem de ",
|
|
1314
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { style: link, children: props.sender.name }),
|
|
1315
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)("br", {}),
|
|
1316
|
+
" Veja o conte\xFAdo da mensagem abaixo:"
|
|
1317
|
+
] })
|
|
1318
|
+
] }),
|
|
1319
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_components25.Container, { style: messageContainer, children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(CommentComponent, { title: `Mensagem enviada em ${props.message.createdAt}:`, comment: props.message.content }) }),
|
|
1320
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_components25.Container, { style: { ...baseContentContainer }, children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_components25.Link, { href: `${appRoutes.brandConversation(props.conversationPath, props.chatRoomId)}`, style: { ...button, width: "150px" }, children: "VER CONVERSA" }) }),
|
|
1321
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Footer, {})
|
|
1322
|
+
] })
|
|
1323
|
+
] });
|
|
1324
|
+
}
|
|
1325
|
+
var messageContainer = {
|
|
1326
|
+
...baseContentContainer,
|
|
1327
|
+
marginTop: "20px",
|
|
1090
1328
|
marginBottom: "20px"
|
|
1091
1329
|
};
|
|
1330
|
+
NewMessageNotification.PreviewProps = {
|
|
1331
|
+
recipient: {
|
|
1332
|
+
name: "Jo\xE3o Ant\xF3nio"
|
|
1333
|
+
},
|
|
1334
|
+
sender: {
|
|
1335
|
+
name: "Promote",
|
|
1336
|
+
photo: "https://s3.us-east-2.amazonaws.com/promote-mz.com/images/8c52bb92-4a8b-472f-89cb-0428b90b8b74.jpg",
|
|
1337
|
+
userType: "brand" /* BRAND */,
|
|
1338
|
+
username: "promote"
|
|
1339
|
+
},
|
|
1340
|
+
message: {
|
|
1341
|
+
content: "Ol\xE1, Jo\xE3o Ant\xF3nio, tudo bem? Estou a ver a sua proposta e gostaria de saber se poderia me enviar mais informa\xE7\xF5es sobre o projeto.",
|
|
1342
|
+
createdAt: "10 Janeiro de 2025 \xE0s 14:30"
|
|
1343
|
+
},
|
|
1344
|
+
conversationPath: "/conversations",
|
|
1345
|
+
chatRoomId: "123"
|
|
1346
|
+
};
|
|
1092
1347
|
// Annotate the CommonJS export names for ESM import in node:
|
|
1093
1348
|
0 && (module.exports = {
|
|
1094
1349
|
AbortOrderRequest,
|
|
1095
1350
|
EvidenceApprovedCreator,
|
|
1096
1351
|
EvidencesRejectedCreator,
|
|
1097
1352
|
EvidencesSubmittedBrand,
|
|
1353
|
+
NewJobApplicationUnapprovedCreator,
|
|
1354
|
+
NewJobApplicationsReceivedBrand,
|
|
1355
|
+
NewJobCreatedBrand,
|
|
1356
|
+
NewMessageNotification,
|
|
1098
1357
|
NewOrderCreatedBrand,
|
|
1099
1358
|
NewOrderCreatedCreator,
|
|
1100
1359
|
OrderAcceptedBrand,
|