promote-email-templates 0.0.2
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/.eslintrc.js +22 -0
- package/.prettierrc.json +7 -0
- package/dist/index.d.mts +467 -0
- package/dist/index.d.ts +467 -0
- package/dist/index.js +1123 -0
- package/dist/index.mjs +1068 -0
- package/package.json +32 -0
- package/readme.md +27 -0
package/dist/index.js
ADDED
|
@@ -0,0 +1,1123 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// emails/index.ts
|
|
21
|
+
var emails_exports = {};
|
|
22
|
+
__export(emails_exports, {
|
|
23
|
+
AbortOrderRequest: () => AbortOrderRequest,
|
|
24
|
+
EvidenceApprovedCreator: () => EvidenceApprovedCreator,
|
|
25
|
+
EvidencesRejectedCreator: () => EvidencesRejectedCreator,
|
|
26
|
+
EvidencesSubmittedBrand: () => EvidencesSubmittedBrand,
|
|
27
|
+
NewOrderCreatedBrand: () => NewOrderCreatedBrand,
|
|
28
|
+
NewOrderCreatedCreator: () => NewOrderCreatedCreator,
|
|
29
|
+
OrderAcceptedBrand: () => OrderAcceptedBrand,
|
|
30
|
+
OrderCancelledBrand: () => OrderCancelledBrand,
|
|
31
|
+
OrderCancelledCreator: () => OrderCancelledCreator,
|
|
32
|
+
OrderEvidencesAcceptedBrand: () => OrderEvidencesAcceptedBrand,
|
|
33
|
+
OrderPaymentCreator: () => OrderPaymentCreator,
|
|
34
|
+
OrderRejectedBrand: () => OrderRejectedBrand,
|
|
35
|
+
RevertPaymentRequestAdmin: () => RevertPaymentRequestAdmin,
|
|
36
|
+
USER_ROLES: () => USER_ROLES,
|
|
37
|
+
Welcome: () => Welcome,
|
|
38
|
+
appBaseUrl: () => appBaseUrl,
|
|
39
|
+
appRoutes: () => appRoutes,
|
|
40
|
+
assetsBasePath: () => assetsBasePath,
|
|
41
|
+
baseContainer: () => baseContainer,
|
|
42
|
+
baseContentContainer: () => baseContentContainer,
|
|
43
|
+
baseText: () => baseText,
|
|
44
|
+
button: () => button,
|
|
45
|
+
centerBlock: () => centerBlock,
|
|
46
|
+
centerText: () => centerText,
|
|
47
|
+
colors: () => colors,
|
|
48
|
+
link: () => link,
|
|
49
|
+
main: () => main,
|
|
50
|
+
rootStyles: () => rootStyles,
|
|
51
|
+
socialNetworkLinks: () => socialNetworkLinks
|
|
52
|
+
});
|
|
53
|
+
module.exports = __toCommonJS(emails_exports);
|
|
54
|
+
|
|
55
|
+
// emails/admin/abort-order-request.tsx
|
|
56
|
+
var import_components5 = require("@react-email/components");
|
|
57
|
+
|
|
58
|
+
// emails/shared/styles.ts
|
|
59
|
+
var colors = {
|
|
60
|
+
primary: "#FF5C5C",
|
|
61
|
+
white: "#FFFFFF",
|
|
62
|
+
black: "#595959",
|
|
63
|
+
grey: "#E0E0E0",
|
|
64
|
+
grey01: "#7c7c7c"
|
|
65
|
+
};
|
|
66
|
+
var rootStyles = {
|
|
67
|
+
width: "100%",
|
|
68
|
+
height: "100%",
|
|
69
|
+
backgroundColor: colors.white,
|
|
70
|
+
fontFamily: '-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Ubuntu,sans-serif'
|
|
71
|
+
};
|
|
72
|
+
var baseContentContainer = {
|
|
73
|
+
padding: "0 auto",
|
|
74
|
+
maxWidth: "90%"
|
|
75
|
+
};
|
|
76
|
+
var link = {
|
|
77
|
+
color: colors.primary,
|
|
78
|
+
textDecoration: "none",
|
|
79
|
+
fontWeight: "bold",
|
|
80
|
+
opacity: 0.8
|
|
81
|
+
};
|
|
82
|
+
var main = {
|
|
83
|
+
backgroundColor: colors.white,
|
|
84
|
+
maxWidth: "650px",
|
|
85
|
+
width: "100%",
|
|
86
|
+
height: "100%",
|
|
87
|
+
marginLeft: "auto",
|
|
88
|
+
marginRight: "auto"
|
|
89
|
+
};
|
|
90
|
+
var baseContainer = {
|
|
91
|
+
width: "100%",
|
|
92
|
+
height: "auto",
|
|
93
|
+
padding: "20px 0",
|
|
94
|
+
border: "1px solid #e0e0e0",
|
|
95
|
+
borderRadius: "8px"
|
|
96
|
+
};
|
|
97
|
+
var button = {
|
|
98
|
+
fontSize: "16px",
|
|
99
|
+
backgroundColor: colors.primary,
|
|
100
|
+
display: "block",
|
|
101
|
+
color: colors.white,
|
|
102
|
+
padding: "15px 20px",
|
|
103
|
+
width: "auto",
|
|
104
|
+
borderRadius: "8px",
|
|
105
|
+
justifyContent: "center",
|
|
106
|
+
margin: "0 auto",
|
|
107
|
+
textAlign: "center",
|
|
108
|
+
fontWeight: "bold"
|
|
109
|
+
};
|
|
110
|
+
var baseText = {
|
|
111
|
+
color: colors.black,
|
|
112
|
+
fontSize: "18px",
|
|
113
|
+
lineHeight: "1.5"
|
|
114
|
+
};
|
|
115
|
+
var centerBlock = {
|
|
116
|
+
display: "block",
|
|
117
|
+
margin: "0 auto"
|
|
118
|
+
};
|
|
119
|
+
var centerText = {
|
|
120
|
+
textAlign: "center"
|
|
121
|
+
};
|
|
122
|
+
|
|
123
|
+
// emails/shared/components/header.tsx
|
|
124
|
+
var import_components = require("@react-email/components");
|
|
125
|
+
|
|
126
|
+
// emails/shared/values.ts
|
|
127
|
+
var appBaseUrl = `https://promote.co.mz`;
|
|
128
|
+
var assetsBasePath = `https://s3.us-east-2.amazonaws.com/promote-mz.com/assets`;
|
|
129
|
+
var appRoutes = {
|
|
130
|
+
homePageRoute: `${appBaseUrl}/home`,
|
|
131
|
+
creatorsList: `${appBaseUrl}/content-creators`,
|
|
132
|
+
creatorPrivateProfile: `${appBaseUrl}/content-creators/profile`,
|
|
133
|
+
termsAndConditions: `${appBaseUrl}/terms-and-conditions`,
|
|
134
|
+
creatorOrderDetails: (orderId) => `${appBaseUrl}/content-creators/profile/orders/${orderId}`,
|
|
135
|
+
brandOrderDetails: (orderId) => `${appBaseUrl}/brands/orders/${orderId}`,
|
|
136
|
+
adminOrderDetails: (orderId) => `${appBaseUrl}/admin/orders/${orderId}`,
|
|
137
|
+
creatorPublicProfile: (username) => `${appBaseUrl}/content-creators/${username}`
|
|
138
|
+
};
|
|
139
|
+
var socialNetworkLinks = {
|
|
140
|
+
linkedin: "https://www.linkedin.com/company/promotemz",
|
|
141
|
+
instagram: "https://www.instagram.com/promotemz/",
|
|
142
|
+
facebook: "https://www.facebook.com/promotemz"
|
|
143
|
+
};
|
|
144
|
+
|
|
145
|
+
// emails/shared/components/header.tsx
|
|
146
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
147
|
+
function Header() {
|
|
148
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_components.Container, { style: container, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_components.Link, { href: appRoutes.homePageRoute, target: "_blank", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_components.Img, { src: `${assetsBasePath}/icons/full-logo-colored.png`, alt: "Promote Logo", style: logo }) }) });
|
|
149
|
+
}
|
|
150
|
+
var container = {
|
|
151
|
+
...baseContentContainer,
|
|
152
|
+
padding: "20px 0"
|
|
153
|
+
};
|
|
154
|
+
var logo = {
|
|
155
|
+
width: "auto",
|
|
156
|
+
height: "20px"
|
|
157
|
+
};
|
|
158
|
+
|
|
159
|
+
// emails/shared/components/footer.tsx
|
|
160
|
+
var import_components2 = require("@react-email/components");
|
|
161
|
+
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
162
|
+
function Footer() {
|
|
163
|
+
const currentYear = (/* @__PURE__ */ new Date()).getFullYear();
|
|
164
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_components2.Container, { style: container2, children: [
|
|
165
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_components2.Hr, { style: line }),
|
|
166
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_components2.Section, { children: [
|
|
167
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_components2.Row, { children: [
|
|
168
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_components2.Column, { children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_components2.Img, { src: `${assetsBasePath}/icons/logo-icon-colored.png`, alt: "Promote Logo", style: logo2 }) }),
|
|
169
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_components2.Column, { align: "right", children: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_components2.Container, { children: [
|
|
170
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_components2.Link, { href: socialNetworkLinks.linkedin, target: "_blank", children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_components2.Img, { src: `${assetsBasePath}/icons/linkedin.png`, alt: "Linkedin Logo", style: socialItem }) }),
|
|
171
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_components2.Link, { href: socialNetworkLinks.instagram, target: "_blank", children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_components2.Img, { src: `${assetsBasePath}/icons/instagram.png`, alt: "Instagram Logo", style: socialItem }) }),
|
|
172
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_components2.Link, { href: socialNetworkLinks.facebook, target: "_blank", children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_components2.Img, { src: `${assetsBasePath}/icons/facebook.png`, alt: "Facebook Logo", style: socialItem }) })
|
|
173
|
+
] }) })
|
|
174
|
+
] }),
|
|
175
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_components2.Row, { children: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_components2.Column, { children: [
|
|
176
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_components2.Text, { style: summaryText, children: [
|
|
177
|
+
"\xA9",
|
|
178
|
+
currentYear,
|
|
179
|
+
" Promote. Todos direitos reservados"
|
|
180
|
+
] }),
|
|
181
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_components2.Link, { href: appRoutes.termsAndConditions, style: termsConditions, children: "Termos e Condi\xE7\xF5es." })
|
|
182
|
+
] }) })
|
|
183
|
+
] })
|
|
184
|
+
] });
|
|
185
|
+
}
|
|
186
|
+
var container2 = {
|
|
187
|
+
...baseContentContainer,
|
|
188
|
+
width: "100%",
|
|
189
|
+
padding: "20px 0"
|
|
190
|
+
};
|
|
191
|
+
var line = {
|
|
192
|
+
margin: "20px 0",
|
|
193
|
+
backgroundColor: colors.grey
|
|
194
|
+
};
|
|
195
|
+
var logo2 = {
|
|
196
|
+
width: "30px",
|
|
197
|
+
height: "30px"
|
|
198
|
+
};
|
|
199
|
+
var summaryText = {
|
|
200
|
+
color: colors.black,
|
|
201
|
+
fontSize: "12px",
|
|
202
|
+
margin: "0",
|
|
203
|
+
marginTop: "5px"
|
|
204
|
+
};
|
|
205
|
+
var termsConditions = {
|
|
206
|
+
color: colors.grey01,
|
|
207
|
+
fontSize: "12px",
|
|
208
|
+
margin: "0"
|
|
209
|
+
};
|
|
210
|
+
var socialItem = {
|
|
211
|
+
display: "inline-block",
|
|
212
|
+
marginLeft: "10px",
|
|
213
|
+
width: "20px",
|
|
214
|
+
height: "20px",
|
|
215
|
+
borderRadius: "50%",
|
|
216
|
+
float: "right"
|
|
217
|
+
};
|
|
218
|
+
|
|
219
|
+
// emails/shared/components/base-head.tsx
|
|
220
|
+
var import_components3 = require("@react-email/components");
|
|
221
|
+
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
222
|
+
function BaseHead() {
|
|
223
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_components3.Head, { children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("style", { children: `
|
|
224
|
+
@media screen and (max-width: 700px) {
|
|
225
|
+
body {
|
|
226
|
+
border: none !important;
|
|
227
|
+
padding: 0 20px;
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
` }) });
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
// emails/shared/components/user-Info.tsx
|
|
234
|
+
var import_components4 = require("@react-email/components");
|
|
235
|
+
|
|
236
|
+
// emails/shared/types.ts
|
|
237
|
+
var USER_ROLES = /* @__PURE__ */ ((USER_ROLES2) => {
|
|
238
|
+
USER_ROLES2["BRAND"] = "brand";
|
|
239
|
+
USER_ROLES2["CREATOR"] = "creator";
|
|
240
|
+
return USER_ROLES2;
|
|
241
|
+
})(USER_ROLES || {});
|
|
242
|
+
|
|
243
|
+
// emails/shared/components/user-Info.tsx
|
|
244
|
+
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
245
|
+
function UserInfo(props) {
|
|
246
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_components4.Container, { children: [
|
|
247
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_components4.Img, { src: props.photo, alt: props.name, style: userPhoto, defaultValue: "https://via.placeholder.com/150" }),
|
|
248
|
+
props.userType === "creator" /* CREATOR */ ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_components4.Link, { href: appRoutes.creatorPublicProfile(props.username), children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_components4.Text, { style: userName, children: props.name }) }) : /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_components4.Text, { style: userName, children: props.name })
|
|
249
|
+
] });
|
|
250
|
+
}
|
|
251
|
+
UserInfo.PreviewProps = {
|
|
252
|
+
photo: "https://via.placeholder.com/150",
|
|
253
|
+
name: "User Name"
|
|
254
|
+
};
|
|
255
|
+
var userName = {
|
|
256
|
+
...baseText,
|
|
257
|
+
...centerText,
|
|
258
|
+
marginTop: "10px",
|
|
259
|
+
textAlign: "center",
|
|
260
|
+
fontWeight: "bold",
|
|
261
|
+
color: colors.primary
|
|
262
|
+
};
|
|
263
|
+
var userPhoto = {
|
|
264
|
+
width: "60px",
|
|
265
|
+
height: "60px",
|
|
266
|
+
borderRadius: "100%",
|
|
267
|
+
objectFit: "cover",
|
|
268
|
+
marginBottom: "10px",
|
|
269
|
+
...centerBlock
|
|
270
|
+
};
|
|
271
|
+
|
|
272
|
+
// emails/admin/abort-order-request.tsx
|
|
273
|
+
var import_jsx_runtime5 = require("react/jsx-runtime");
|
|
274
|
+
function AbortOrderRequest(props) {
|
|
275
|
+
const requestedBy = {
|
|
276
|
+
["brand" /* BRAND */]: "Empresa",
|
|
277
|
+
["creator" /* CREATOR */]: "Influencer"
|
|
278
|
+
};
|
|
279
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(import_components5.Html, { style: rootStyles, children: [
|
|
280
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(BaseHead, {}),
|
|
281
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_components5.Preview, { children: "Pedido de cancelamento" }),
|
|
282
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(import_components5.Body, { style: { ...main, ...baseContainer }, children: [
|
|
283
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Header, {}),
|
|
284
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(UserInfo, { photo: `${assetsBasePath}/icons/logo-icon-colored.png`, name: "Promote Team", userType: "brand" /* BRAND */ }),
|
|
285
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(import_components5.Container, { style: { ...baseContentContainer }, children: [
|
|
286
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_components5.Text, { style: baseText, children: "Ol\xE1 Admin Team" }),
|
|
287
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(import_components5.Text, { style: baseText, children: [
|
|
288
|
+
"Foi efectuado um novo pedido de cancelamento da",
|
|
289
|
+
" ",
|
|
290
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(import_components5.Link, { href: appRoutes.adminOrderDetails(props.order.id), target: "_blank", style: link, children: [
|
|
291
|
+
"ordem #",
|
|
292
|
+
props.order.id,
|
|
293
|
+
"."
|
|
294
|
+
] }),
|
|
295
|
+
" ",
|
|
296
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("br", {})
|
|
297
|
+
] }),
|
|
298
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(import_components5.Text, { style: baseText, children: [
|
|
299
|
+
"O pedido de cancelamento foi feito pelo/a ",
|
|
300
|
+
requestedBy[props.requestedBy]
|
|
301
|
+
] })
|
|
302
|
+
] }),
|
|
303
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_components5.Container, { style: { ...baseContentContainer, marginTop: "25px" }, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_components5.Link, { href: appRoutes.adminOrderDetails(props.order.id), style: { ...button, width: "150px" }, children: "VER PEDIDO" }) }),
|
|
304
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Footer, {})
|
|
305
|
+
] })
|
|
306
|
+
] });
|
|
307
|
+
}
|
|
308
|
+
AbortOrderRequest.PreviewProps = {
|
|
309
|
+
order: {
|
|
310
|
+
id: "123"
|
|
311
|
+
},
|
|
312
|
+
requestedBy: "creator" /* CREATOR */
|
|
313
|
+
};
|
|
314
|
+
|
|
315
|
+
// emails/admin/revert-payment-request-admin.tsx
|
|
316
|
+
var import_components7 = require("@react-email/components");
|
|
317
|
+
|
|
318
|
+
// emails/shared/components/payment-amount.tsx
|
|
319
|
+
var import_components6 = require("@react-email/components");
|
|
320
|
+
var import_jsx_runtime6 = require("react/jsx-runtime");
|
|
321
|
+
function PaymentAmount(props) {
|
|
322
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_components6.Container, { style: container3, children: [
|
|
323
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_components6.Heading, { style: title, children: "Valor Total" }),
|
|
324
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_components6.Text, { style: amount, children: [
|
|
325
|
+
props.totalAmount,
|
|
326
|
+
" MZN"
|
|
327
|
+
] })
|
|
328
|
+
] });
|
|
329
|
+
}
|
|
330
|
+
var container3 = {
|
|
331
|
+
...baseContentContainer,
|
|
332
|
+
backgroundColor: "rgba(59,140,235,0.79)",
|
|
333
|
+
borderRadius: "8px",
|
|
334
|
+
padding: "16px"
|
|
335
|
+
};
|
|
336
|
+
var title = {
|
|
337
|
+
...baseText,
|
|
338
|
+
fontWeight: "bold",
|
|
339
|
+
margin: "0",
|
|
340
|
+
color: colors.white
|
|
341
|
+
};
|
|
342
|
+
var amount = {
|
|
343
|
+
...baseText,
|
|
344
|
+
color: colors.white,
|
|
345
|
+
fontWeight: "bold",
|
|
346
|
+
fontSize: "25px",
|
|
347
|
+
margin: "10px 0",
|
|
348
|
+
textAlign: "center"
|
|
349
|
+
};
|
|
350
|
+
|
|
351
|
+
// emails/admin/revert-payment-request-admin.tsx
|
|
352
|
+
var import_jsx_runtime7 = require("react/jsx-runtime");
|
|
353
|
+
function RevertPaymentRequestAdmin(props) {
|
|
354
|
+
return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(import_components7.Html, { style: rootStyles, children: [
|
|
355
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(BaseHead, {}),
|
|
356
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_components7.Preview, { children: "Pedido de revers\xE3o de pagamento" }),
|
|
357
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(import_components7.Body, { style: { ...main, ...baseContainer }, children: [
|
|
358
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Header, {}),
|
|
359
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(UserInfo, { photo: `${assetsBasePath}/icons/logo-icon-colored.png`, name: "Promote Team", userType: "brand" /* BRAND */ }),
|
|
360
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(import_components7.Container, { style: { ...baseContentContainer }, children: [
|
|
361
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_components7.Text, { style: baseText, children: "Ol\xE1 Promote team," }),
|
|
362
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(import_components7.Text, { style: baseText, children: [
|
|
363
|
+
"O pagamento da",
|
|
364
|
+
" ",
|
|
365
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(import_components7.Link, { href: appRoutes.brandOrderDetails(props.order.id), target: "_blank", style: link, children: [
|
|
366
|
+
"ordem #",
|
|
367
|
+
props.order.id
|
|
368
|
+
] }),
|
|
369
|
+
" ",
|
|
370
|
+
"deve ser revertido."
|
|
371
|
+
] })
|
|
372
|
+
] }),
|
|
373
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(PaymentAmount, { totalAmount: props.totalAmount }),
|
|
374
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_components7.Container, { style: { ...baseContentContainer, marginTop: "25px" }, children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_components7.Link, { href: appRoutes.brandOrderDetails(props.order.id), style: { ...button, width: "150px" }, children: "VER PEDIDO" }) }),
|
|
375
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Footer, {})
|
|
376
|
+
] })
|
|
377
|
+
] });
|
|
378
|
+
}
|
|
379
|
+
RevertPaymentRequestAdmin.PreviewProps = {
|
|
380
|
+
order: {
|
|
381
|
+
id: "123"
|
|
382
|
+
},
|
|
383
|
+
totalAmount: "1000,00"
|
|
384
|
+
};
|
|
385
|
+
|
|
386
|
+
// emails/brand/evidences-accepted-brand.tsx
|
|
387
|
+
var import_components8 = require("@react-email/components");
|
|
388
|
+
var import_jsx_runtime8 = require("react/jsx-runtime");
|
|
389
|
+
function OrderEvidencesAcceptedBrand(props) {
|
|
390
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_components8.Html, { style: rootStyles, children: [
|
|
391
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(BaseHead, {}),
|
|
392
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_components8.Preview, { children: "Pagamento Efectuado com sucesso" }),
|
|
393
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_components8.Body, { style: { ...main, ...baseContainer }, children: [
|
|
394
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Header, {}),
|
|
395
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(UserInfo, { photo: `${assetsBasePath}/icons/logo-icon-colored.png`, name: "Promote Team", userType: "brand" /* BRAND */ }),
|
|
396
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_components8.Container, { style: { ...baseContentContainer }, children: [
|
|
397
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_components8.Text, { style: baseText, children: [
|
|
398
|
+
"Ol\xE1, ",
|
|
399
|
+
props.brand.name,
|
|
400
|
+
" \u{1F38A},"
|
|
401
|
+
] }),
|
|
402
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_components8.Text, { style: baseText, children: [
|
|
403
|
+
"O pagamento da",
|
|
404
|
+
" ",
|
|
405
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_components8.Link, { href: appRoutes.brandOrderDetails(props.order.id), target: "_blank", style: link, children: [
|
|
406
|
+
"ordem #",
|
|
407
|
+
props.order.id
|
|
408
|
+
] }),
|
|
409
|
+
" ",
|
|
410
|
+
"foi efectuado com sucesso \u2705.",
|
|
411
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("br", {}),
|
|
412
|
+
"Agradecemos por confiar na Promote, esperamos que a sua experi\xEAncia tenha sido agrad\xE1vel."
|
|
413
|
+
] })
|
|
414
|
+
] }),
|
|
415
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(PaymentAmount, { totalAmount: props.totalAmount }),
|
|
416
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_components8.Container, { style: { ...baseContentContainer, marginTop: "25px" }, children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_components8.Link, { href: appRoutes.brandOrderDetails(props.order.id), style: { ...button, width: "150px" }, children: "VER PEDIDO" }) }),
|
|
417
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Footer, {})
|
|
418
|
+
] })
|
|
419
|
+
] });
|
|
420
|
+
}
|
|
421
|
+
OrderEvidencesAcceptedBrand.PreviewProps = {
|
|
422
|
+
order: {
|
|
423
|
+
id: "123"
|
|
424
|
+
},
|
|
425
|
+
brand: {
|
|
426
|
+
name: "Vodacom Mz"
|
|
427
|
+
},
|
|
428
|
+
totalAmount: "1000,00"
|
|
429
|
+
};
|
|
430
|
+
|
|
431
|
+
// emails/brand/evidences-submitted-brand.tsx
|
|
432
|
+
var import_components9 = require("@react-email/components");
|
|
433
|
+
var import_jsx_runtime9 = require("react/jsx-runtime");
|
|
434
|
+
function EvidencesSubmittedBrand(props) {
|
|
435
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(import_components9.Html, { style: rootStyles, children: [
|
|
436
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(BaseHead, {}),
|
|
437
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_components9.Preview, { children: "Evid\xEAncias submetidas \u{1F195}" }),
|
|
438
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(import_components9.Body, { style: { ...main, ...baseContainer }, children: [
|
|
439
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Header, {}),
|
|
440
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(UserInfo, { photo: props.creator.photo, name: props.creator.name, userType: "creator" /* CREATOR */, username: props.creator.username }),
|
|
441
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(import_components9.Container, { style: { ...baseContentContainer }, children: [
|
|
442
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(import_components9.Text, { style: baseText, children: [
|
|
443
|
+
"Ol\xE1, ",
|
|
444
|
+
props.brand.name,
|
|
445
|
+
","
|
|
446
|
+
] }),
|
|
447
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(import_components9.Text, { style: baseText, children: [
|
|
448
|
+
"O criador de conte\xFAdos",
|
|
449
|
+
" ",
|
|
450
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_components9.Link, { href: appRoutes.creatorPublicProfile(props.creator.username), target: "_blank", style: link, children: props.creator.name }),
|
|
451
|
+
" ",
|
|
452
|
+
"submeteu novas evid\xEAncias para o seu",
|
|
453
|
+
" ",
|
|
454
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_components9.Link, { href: appRoutes.brandOrderDetails(props.order.id), target: "_blank", style: link, children: "pedido. \u{1F680}" }),
|
|
455
|
+
" ",
|
|
456
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("br", {}),
|
|
457
|
+
" Por favor, verifique as evid\xEAncias submetidas e ",
|
|
458
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("b", { children: "aprove \u2705" }),
|
|
459
|
+
" ou ",
|
|
460
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("b", { children: "rejeite \u274C" }),
|
|
461
|
+
" o trabalho."
|
|
462
|
+
] })
|
|
463
|
+
] }),
|
|
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 EVID\xCANCIAS" }) }),
|
|
465
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Footer, {})
|
|
466
|
+
] })
|
|
467
|
+
] });
|
|
468
|
+
}
|
|
469
|
+
EvidencesSubmittedBrand.PreviewProps = {
|
|
470
|
+
package: {
|
|
471
|
+
name: "1 Instagram Post"
|
|
472
|
+
},
|
|
473
|
+
order: {
|
|
474
|
+
id: "123"
|
|
475
|
+
},
|
|
476
|
+
brand: {
|
|
477
|
+
name: "Vodacom Mz"
|
|
478
|
+
},
|
|
479
|
+
creator: {
|
|
480
|
+
username: "test_user",
|
|
481
|
+
name: "K\xE1tia Vanessa",
|
|
482
|
+
photo: "https://s3.us-east-2.amazonaws.com/promote-mz.com/images/8c52bb92-4a8b-472f-89cb-0428b90b8b74.jpg"
|
|
483
|
+
}
|
|
484
|
+
};
|
|
485
|
+
|
|
486
|
+
// emails/brand/new-order-created-brand.tsx
|
|
487
|
+
var import_components11 = require("@react-email/components");
|
|
488
|
+
|
|
489
|
+
// emails/shared/components/new-order-info.tsx
|
|
490
|
+
var import_components10 = require("@react-email/components");
|
|
491
|
+
var import_jsx_runtime10 = require("react/jsx-runtime");
|
|
492
|
+
function NewOrderInfo(props) {
|
|
493
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(import_components10.Section, { children: [
|
|
494
|
+
/* @__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: "Paconte:" }) }),
|
|
496
|
+
/* @__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
|
+
] }),
|
|
498
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(import_components10.Row, { style: rowItem, children: [
|
|
499
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_components10.Column, { children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_components10.Text, { style: leftText, children: "Pre\xE7o: " }) }),
|
|
500
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_components10.Column, { align: "right", children: /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(import_components10.Text, { style: rightText, children: [
|
|
501
|
+
props.packagePrice,
|
|
502
|
+
" MZN"
|
|
503
|
+
] }) })
|
|
504
|
+
] }),
|
|
505
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(import_components10.Row, { style: rowItem, children: [
|
|
506
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_components10.Column, { children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_components10.Text, { style: leftText, children: "Data: " }) }),
|
|
507
|
+
/* @__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.orderCreatedAt }) })
|
|
508
|
+
] })
|
|
509
|
+
] });
|
|
510
|
+
}
|
|
511
|
+
var leftText = {
|
|
512
|
+
...baseText,
|
|
513
|
+
textAlign: "left",
|
|
514
|
+
margin: 0,
|
|
515
|
+
color: colors.black,
|
|
516
|
+
fontWeight: "bold"
|
|
517
|
+
};
|
|
518
|
+
var rightText = {
|
|
519
|
+
...baseText,
|
|
520
|
+
textAlign: "right",
|
|
521
|
+
margin: 0,
|
|
522
|
+
color: colors.primary
|
|
523
|
+
};
|
|
524
|
+
var rowItem = {
|
|
525
|
+
marginBottom: "5px"
|
|
526
|
+
};
|
|
527
|
+
|
|
528
|
+
// emails/brand/new-order-created-brand.tsx
|
|
529
|
+
var import_jsx_runtime11 = require("react/jsx-runtime");
|
|
530
|
+
function NewOrderCreatedBrand(props) {
|
|
531
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(import_components11.Html, { style: rootStyles, children: [
|
|
532
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(BaseHead, {}),
|
|
533
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_components11.Preview, { children: "Novo Pedido efectuado" }),
|
|
534
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(import_components11.Body, { style: { ...main, ...baseContainer }, children: [
|
|
535
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Header, {}),
|
|
536
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(UserInfo, { photo: props.creator.photo, name: props.creator.name, userType: "creator" /* CREATOR */, username: props.creator.username }),
|
|
537
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(import_components11.Container, { style: { ...baseContentContainer }, children: [
|
|
538
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(import_components11.Text, { style: baseText, children: [
|
|
539
|
+
"Ol\xE1, ",
|
|
540
|
+
props.brand.name,
|
|
541
|
+
","
|
|
542
|
+
] }),
|
|
543
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(import_components11.Text, { style: baseText, children: [
|
|
544
|
+
"Parab\xE9ns \u{1F389}, efectuou com sucesso a cria\xE7\xE3o de uma ordem para o criador de conte\xFAdos",
|
|
545
|
+
" ",
|
|
546
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(import_components11.Link, { href: appRoutes.creatorPublicProfile(props.creator.username), style: link, children: [
|
|
547
|
+
props.creator.name,
|
|
548
|
+
"."
|
|
549
|
+
] }),
|
|
550
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("br", {}),
|
|
551
|
+
" Por favor, revise os detalhes abaixo \u{1F680}:"
|
|
552
|
+
] })
|
|
553
|
+
] }),
|
|
554
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_components11.Container, { style: orderDetails, children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(NewOrderInfo, { orderCreatedAt: props.order.createdAt, packageName: props.package.name, packagePrice: props.package.price }) }),
|
|
555
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_components11.Container, { style: { ...baseContentContainer }, children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_components11.Link, { href: appRoutes.brandOrderDetails(props.order.id), style: { ...button, width: "120px" }, children: "VER PEDIDO" }) }),
|
|
556
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Footer, {})
|
|
557
|
+
] })
|
|
558
|
+
] });
|
|
559
|
+
}
|
|
560
|
+
NewOrderCreatedBrand.PreviewProps = {
|
|
561
|
+
package: {
|
|
562
|
+
name: "1 Instagram Post",
|
|
563
|
+
price: "1000.00"
|
|
564
|
+
},
|
|
565
|
+
order: {
|
|
566
|
+
id: "123",
|
|
567
|
+
createdAt: "20 de Agosto, 2021"
|
|
568
|
+
},
|
|
569
|
+
brand: {
|
|
570
|
+
name: "Vodacom Mz"
|
|
571
|
+
},
|
|
572
|
+
creator: {
|
|
573
|
+
username: "test_user",
|
|
574
|
+
name: "K\xE1tia Vanessa",
|
|
575
|
+
photo: "https://s3.us-east-2.amazonaws.com/promote-mz.com/images/8c52bb92-4a8b-472f-89cb-0428b90b8b74.jpg"
|
|
576
|
+
}
|
|
577
|
+
};
|
|
578
|
+
var orderDetails = {
|
|
579
|
+
...baseContentContainer,
|
|
580
|
+
marginTop: "30px",
|
|
581
|
+
marginBottom: "40px"
|
|
582
|
+
};
|
|
583
|
+
|
|
584
|
+
// emails/brand/order-accepted-brand.tsx
|
|
585
|
+
var import_components12 = require("@react-email/components");
|
|
586
|
+
var import_jsx_runtime12 = require("react/jsx-runtime");
|
|
587
|
+
function OrderAcceptedBrand(props) {
|
|
588
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(import_components12.Html, { style: rootStyles, children: [
|
|
589
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(BaseHead, {}),
|
|
590
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_components12.Preview, { children: "Pedido aceite \u2705" }),
|
|
591
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(import_components12.Body, { style: { ...main, ...baseContainer }, children: [
|
|
592
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Header, {}),
|
|
593
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(UserInfo, { photo: props.creator.photo, name: props.creator.name, userType: "creator" /* CREATOR */, username: props.creator.username }),
|
|
594
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(import_components12.Container, { style: { ...baseContentContainer }, children: [
|
|
595
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(import_components12.Text, { style: baseText, children: [
|
|
596
|
+
"Ol\xE1, ",
|
|
597
|
+
props.brand.name,
|
|
598
|
+
","
|
|
599
|
+
] }),
|
|
600
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(import_components12.Text, { style: baseText, children: [
|
|
601
|
+
"O seu",
|
|
602
|
+
" ",
|
|
603
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_components12.Link, { href: appRoutes.brandOrderDetails(props.order.id), target: "_blank", style: link, children: "pedido" }),
|
|
604
|
+
" ",
|
|
605
|
+
"foi aceite \u2705 por",
|
|
606
|
+
" ",
|
|
607
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(import_components12.Link, { href: appRoutes.creatorPublicProfile(props.creator.username), style: link, children: [
|
|
608
|
+
props.creator.name,
|
|
609
|
+
"."
|
|
610
|
+
] }),
|
|
611
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("br", {}),
|
|
612
|
+
" Agora \xE9 s\xF3 aguardar que o trabalho seja executado.",
|
|
613
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("br", {}),
|
|
614
|
+
" Assim que o trabalho for conclu\xEDdo, voc\xEA receber\xE1 um email com os detalhes \u{1F680}."
|
|
615
|
+
] })
|
|
616
|
+
] }),
|
|
617
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_components12.Container, { style: { ...baseContentContainer }, children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_components12.Link, { href: appRoutes.brandOrderDetails(props.order.id), style: { ...button, width: "120px" }, children: "VER PEDIDO!" }) }),
|
|
618
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Footer, {})
|
|
619
|
+
] })
|
|
620
|
+
] });
|
|
621
|
+
}
|
|
622
|
+
OrderAcceptedBrand.PreviewProps = {
|
|
623
|
+
order: {
|
|
624
|
+
id: "123"
|
|
625
|
+
},
|
|
626
|
+
brand: {
|
|
627
|
+
name: "Vodacom Mz"
|
|
628
|
+
},
|
|
629
|
+
creator: {
|
|
630
|
+
username: "test_user",
|
|
631
|
+
name: "K\xE1tia Vanessa",
|
|
632
|
+
photo: "https://s3.us-east-2.amazonaws.com/promote-mz.com/images/8c52bb92-4a8b-472f-89cb-0428b90b8b74.jpg"
|
|
633
|
+
}
|
|
634
|
+
};
|
|
635
|
+
|
|
636
|
+
// emails/brand/order-cancelled-brand.tsx
|
|
637
|
+
var import_components14 = require("@react-email/components");
|
|
638
|
+
|
|
639
|
+
// emails/shared/components/comment-component.tsx
|
|
640
|
+
var import_components13 = require("@react-email/components");
|
|
641
|
+
var import_jsx_runtime13 = require("react/jsx-runtime");
|
|
642
|
+
function CommentComponent(props) {
|
|
643
|
+
return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(import_components13.Container, { style: { ...container4(props.danger) }, children: [
|
|
644
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_components13.Heading, { style: title2, children: props.title }),
|
|
645
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_components13.Text, { style: content, children: props.comment })
|
|
646
|
+
] });
|
|
647
|
+
}
|
|
648
|
+
var container4 = (isDanger) => ({
|
|
649
|
+
...baseContentContainer,
|
|
650
|
+
backgroundColor: isDanger ? "rgba(250,0,0,0.26)" : "#f5f5f5",
|
|
651
|
+
borderRadius: "8px",
|
|
652
|
+
padding: "16px"
|
|
653
|
+
});
|
|
654
|
+
var title2 = {
|
|
655
|
+
...baseText,
|
|
656
|
+
fontWeight: "bold",
|
|
657
|
+
margin: "0"
|
|
658
|
+
};
|
|
659
|
+
var content = {
|
|
660
|
+
...baseText
|
|
661
|
+
};
|
|
662
|
+
|
|
663
|
+
// emails/brand/order-cancelled-brand.tsx
|
|
664
|
+
var import_jsx_runtime14 = require("react/jsx-runtime");
|
|
665
|
+
function OrderCancelledBrand(props) {
|
|
666
|
+
return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(import_components14.Html, { style: rootStyles, children: [
|
|
667
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)(BaseHead, {}),
|
|
668
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_components14.Preview, { children: "Pedido cancelado \u274C" }),
|
|
669
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(import_components14.Body, { style: { ...main, ...baseContainer }, children: [
|
|
670
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)(Header, {}),
|
|
671
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)(UserInfo, { photo: `${assetsBasePath}/icons/logo-icon-colored.png`, name: "Promote Team", userType: "brand" /* BRAND */ }),
|
|
672
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(import_components14.Container, { style: { ...baseContentContainer }, children: [
|
|
673
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(import_components14.Text, { style: baseText, children: [
|
|
674
|
+
"Ol\xE1, ",
|
|
675
|
+
props.brand.name,
|
|
676
|
+
","
|
|
677
|
+
] }),
|
|
678
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(import_components14.Text, { style: baseText, children: [
|
|
679
|
+
"O",
|
|
680
|
+
" ",
|
|
681
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(import_components14.Link, { href: appRoutes.brandOrderDetails(props.order.id), target: "_blank", style: link, children: [
|
|
682
|
+
"pedido #",
|
|
683
|
+
props.order.id
|
|
684
|
+
] }),
|
|
685
|
+
" ",
|
|
686
|
+
"foi cancelado \u274C antes da sua conclus\xE3o.",
|
|
687
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("br", {}),
|
|
688
|
+
"O seu pagamento ser\xE1 reembolsado dentro de 24h."
|
|
689
|
+
] })
|
|
690
|
+
] }),
|
|
691
|
+
props.reason && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { style: reasonContainer, children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(CommentComponent, { title: "Motivo do cancelamento:", comment: props.reason, danger: true }) }),
|
|
692
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_components14.Container, { style: { ...baseContentContainer }, children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_components14.Link, { href: appRoutes.brandOrderDetails(props.order.id), style: { ...button, width: "120px" }, children: "VER PEDIDO!" }) }),
|
|
693
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)(Footer, {})
|
|
694
|
+
] })
|
|
695
|
+
] });
|
|
696
|
+
}
|
|
697
|
+
OrderCancelledBrand.PreviewProps = {
|
|
698
|
+
order: {
|
|
699
|
+
id: "123"
|
|
700
|
+
},
|
|
701
|
+
brand: {
|
|
702
|
+
name: "Vodacom Mz"
|
|
703
|
+
},
|
|
704
|
+
reason: "O influencer n\xE3o aceitou o pedido."
|
|
705
|
+
};
|
|
706
|
+
var reasonContainer = {
|
|
707
|
+
width: "100%",
|
|
708
|
+
padding: "0",
|
|
709
|
+
margin: "30px 0"
|
|
710
|
+
};
|
|
711
|
+
|
|
712
|
+
// emails/brand/order-rejected-brand.tsx
|
|
713
|
+
var import_components15 = require("@react-email/components");
|
|
714
|
+
var import_jsx_runtime15 = require("react/jsx-runtime");
|
|
715
|
+
function OrderRejectedBrand(props) {
|
|
716
|
+
return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(import_components15.Html, { style: rootStyles, children: [
|
|
717
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)(BaseHead, {}),
|
|
718
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_components15.Preview, { children: "Pedido Rejeitado \u274C" }),
|
|
719
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(import_components15.Body, { style: { ...main, ...baseContainer }, children: [
|
|
720
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)(Header, {}),
|
|
721
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)(UserInfo, { photo: props.creator.photo, name: props.creator.name, userType: "creator" /* CREATOR */, username: props.creator.username }),
|
|
722
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(import_components15.Container, { style: { ...baseContentContainer }, children: [
|
|
723
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(import_components15.Text, { style: baseText, children: [
|
|
724
|
+
"Ol\xE1, ",
|
|
725
|
+
props.brand.name,
|
|
726
|
+
","
|
|
727
|
+
] }),
|
|
728
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(import_components15.Text, { style: baseText, children: [
|
|
729
|
+
"O seu",
|
|
730
|
+
" ",
|
|
731
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_components15.Link, { href: appRoutes.brandOrderDetails(props.order.id), target: "_blank", style: link, children: "pedido" }),
|
|
732
|
+
" ",
|
|
733
|
+
"foi rejeitado \u274C pelo criador de conte\xFAdo",
|
|
734
|
+
" ",
|
|
735
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(import_components15.Link, { href: appRoutes.creatorPublicProfile(props.creator.username), style: link, children: [
|
|
736
|
+
props.creator.name,
|
|
737
|
+
"."
|
|
738
|
+
] }),
|
|
739
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)("br", {}),
|
|
740
|
+
"O seu pagamento ser\xE1 reembolsado dentro de 24 horas."
|
|
741
|
+
] })
|
|
742
|
+
] }),
|
|
743
|
+
props.reason && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { style: reasonContainer2, children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(CommentComponent, { title: "Motivo da Rejei\xE7\xE3o", comment: props.reason }) }),
|
|
744
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_components15.Container, { style: { ...baseContentContainer }, children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_components15.Link, { href: appRoutes.brandOrderDetails(props.order.id), style: { ...button, width: "120px" }, children: "VER PEDIDO" }) }),
|
|
745
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)(Footer, {})
|
|
746
|
+
] })
|
|
747
|
+
] });
|
|
748
|
+
}
|
|
749
|
+
OrderRejectedBrand.PreviewProps = {
|
|
750
|
+
package: {
|
|
751
|
+
name: "1 Instagram Post"
|
|
752
|
+
},
|
|
753
|
+
order: {
|
|
754
|
+
id: "123"
|
|
755
|
+
},
|
|
756
|
+
brand: {
|
|
757
|
+
name: "Vodacom Mz"
|
|
758
|
+
},
|
|
759
|
+
creator: {
|
|
760
|
+
username: "test_user",
|
|
761
|
+
name: "K\xE1tia Vanessa",
|
|
762
|
+
photo: "https://s3.us-east-2.amazonaws.com/promote-mz.com/images/8c52bb92-4a8b-472f-89cb-0428b90b8b74.jpg"
|
|
763
|
+
},
|
|
764
|
+
reason: "N\xE3o me identifiquei com a marca e o produto."
|
|
765
|
+
};
|
|
766
|
+
var reasonContainer2 = {
|
|
767
|
+
width: "100%",
|
|
768
|
+
padding: "0",
|
|
769
|
+
margin: "30px 0"
|
|
770
|
+
};
|
|
771
|
+
|
|
772
|
+
// emails/creator/evidences-approved-creator.tsx
|
|
773
|
+
var import_components16 = require("@react-email/components");
|
|
774
|
+
var import_jsx_runtime16 = require("react/jsx-runtime");
|
|
775
|
+
function EvidenceApprovedCreator(props) {
|
|
776
|
+
return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(import_components16.Html, { style: rootStyles, children: [
|
|
777
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(BaseHead, {}),
|
|
778
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_components16.Preview, { children: "Evid\xEAncia aprovada \u2705" }),
|
|
779
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(import_components16.Body, { style: { ...main, ...baseContainer }, children: [
|
|
780
|
+
/* @__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
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(import_components16.Container, { style: { ...baseContentContainer }, children: [
|
|
783
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(import_components16.Text, { style: baseText, children: [
|
|
784
|
+
"Ol\xE1, ",
|
|
785
|
+
props.creator.name,
|
|
786
|
+
" \u{1F38A},"
|
|
787
|
+
] }),
|
|
788
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(import_components16.Text, { style: baseText, children: [
|
|
789
|
+
"Actualiza\xE7\xF5es, a",
|
|
790
|
+
" ",
|
|
791
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_components16.Link, { href: appRoutes.creatorOrderDetails(props.evidenceLink), target: "_blank", style: link, children: "evid\xEAncia" }),
|
|
792
|
+
" ",
|
|
793
|
+
"que submeteste foi aprovada pela marca \u{1F389}."
|
|
794
|
+
] }),
|
|
795
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_components16.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
|
+
] }),
|
|
797
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_components16.Container, { style: { ...baseContentContainer, marginTop: "25px" }, children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_components16.Link, { href: appRoutes.creatorOrderDetails(props.order.id), style: { ...button, width: "150px" }, children: "VER PEDIDO" }) }),
|
|
798
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Footer, {})
|
|
799
|
+
] })
|
|
800
|
+
] });
|
|
801
|
+
}
|
|
802
|
+
EvidenceApprovedCreator.PreviewProps = {
|
|
803
|
+
order: {
|
|
804
|
+
id: "123"
|
|
805
|
+
},
|
|
806
|
+
brand: {
|
|
807
|
+
name: "Vodacom Mz",
|
|
808
|
+
photo: "https://companieslogo.com/img/orig/VOD.JO-b42c4c1b.png?t=1603932474"
|
|
809
|
+
},
|
|
810
|
+
creator: {
|
|
811
|
+
name: "John Doe"
|
|
812
|
+
},
|
|
813
|
+
evidenceLink: "https://www.youtube.com/test_video"
|
|
814
|
+
};
|
|
815
|
+
|
|
816
|
+
// emails/creator/evidences-rejected-creator.tsx
|
|
817
|
+
var import_components17 = require("@react-email/components");
|
|
818
|
+
var import_jsx_runtime17 = require("react/jsx-runtime");
|
|
819
|
+
function EvidencesRejectedCreator(props) {
|
|
820
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_components17.Html, { style: rootStyles, children: [
|
|
821
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(BaseHead, {}),
|
|
822
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_components17.Preview, { children: "Evi\xEAncia rejeitada \u274C" }),
|
|
823
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_components17.Body, { style: { ...main, ...baseContainer }, children: [
|
|
824
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Header, {}),
|
|
825
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(UserInfo, { photo: props.brand.photo, name: props.brand.name, userType: "brand" /* BRAND */ }),
|
|
826
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_components17.Container, { style: { ...baseContentContainer }, children: [
|
|
827
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_components17.Text, { style: baseText, children: [
|
|
828
|
+
"Ol\xE1, ",
|
|
829
|
+
props.creator.name,
|
|
830
|
+
","
|
|
831
|
+
] }),
|
|
832
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_components17.Text, { style: baseText, children: [
|
|
833
|
+
"A",
|
|
834
|
+
" ",
|
|
835
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_components17.Link, { href: props.evidenceLink, target: "_blank", style: link, children: "evid\xEAncia" }),
|
|
836
|
+
" ",
|
|
837
|
+
"foi rejeitada \u274C pela marca.",
|
|
838
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("br", {}),
|
|
839
|
+
"Por favor, reveja o motivo da rejei\xE7\xE3o e submeta novamente."
|
|
840
|
+
] })
|
|
841
|
+
] }),
|
|
842
|
+
props.reason && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { style: reasonContainer3, children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(CommentComponent, { title: "Motivo da rejei\xE7\xE3o:", comment: props.reason, danger: true }) }),
|
|
843
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_components17.Container, { style: { ...baseContentContainer }, children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_components17.Link, { href: appRoutes.creatorOrderDetails(props.order.id), style: { ...button, width: "200px" }, children: "VER PEDIDO" }) }),
|
|
844
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Footer, {})
|
|
845
|
+
] })
|
|
846
|
+
] });
|
|
847
|
+
}
|
|
848
|
+
EvidencesRejectedCreator.PreviewProps = {
|
|
849
|
+
order: {
|
|
850
|
+
id: "123"
|
|
851
|
+
},
|
|
852
|
+
creator: {
|
|
853
|
+
name: "John Doe"
|
|
854
|
+
},
|
|
855
|
+
brand: {
|
|
856
|
+
name: "Vodacom Mz",
|
|
857
|
+
photo: "https://companieslogo.com/img/orig/VOD.JO-b42c4c1b.png?t=1603932474"
|
|
858
|
+
},
|
|
859
|
+
evidenceLink: "https://www.youtube.com/watch?v=123",
|
|
860
|
+
reason: "Conte\xFAdo n\xE3o cumpre com as diretrizes da marca."
|
|
861
|
+
};
|
|
862
|
+
var reasonContainer3 = {
|
|
863
|
+
width: "100%",
|
|
864
|
+
padding: "0",
|
|
865
|
+
margin: "30px 0"
|
|
866
|
+
};
|
|
867
|
+
|
|
868
|
+
// emails/creator/order-cancelled-creator.tsx
|
|
869
|
+
var import_components18 = require("@react-email/components");
|
|
870
|
+
var import_jsx_runtime18 = require("react/jsx-runtime");
|
|
871
|
+
function OrderCancelledCreator(props) {
|
|
872
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(import_components18.Html, { style: rootStyles, children: [
|
|
873
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(BaseHead, {}),
|
|
874
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_components18.Preview, { children: "Pedido cancelado \u274C" }),
|
|
875
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(import_components18.Body, { style: { ...main, ...baseContainer }, children: [
|
|
876
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Header, {}),
|
|
877
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(UserInfo, { photo: `${assetsBasePath}/icons/logo-icon-colored.png`, name: "Promote Team", userType: "brand" /* BRAND */ }),
|
|
878
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(import_components18.Container, { style: { ...baseContentContainer }, children: [
|
|
879
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(import_components18.Text, { style: baseText, children: [
|
|
880
|
+
"Ol\xE1, ",
|
|
881
|
+
props.creator.name,
|
|
882
|
+
","
|
|
883
|
+
] }),
|
|
884
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(import_components18.Text, { style: baseText, children: [
|
|
885
|
+
"Infelizmente o",
|
|
886
|
+
" ",
|
|
887
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(import_components18.Link, { href: appRoutes.creatorOrderDetails(props.order.id), target: "_blank", style: link, children: [
|
|
888
|
+
"pedido #",
|
|
889
|
+
props.order.id
|
|
890
|
+
] }),
|
|
891
|
+
" ",
|
|
892
|
+
"foi cancelado \u274C antes da sua conclus\xE3o.",
|
|
893
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("br", {}),
|
|
894
|
+
"Agradecemos a sua disponibilidade e esperamos que a pr\xF3xima oportunidade seja um sucesso \u{1F44C}\u{1F3FD}\u{1F44C}\u{1F3FD}!"
|
|
895
|
+
] })
|
|
896
|
+
] }),
|
|
897
|
+
props.reason && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { style: reasonContainer4, children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(CommentComponent, { title: "Motivo do cancelamento:", comment: props.reason, danger: true }) }),
|
|
898
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_components18.Container, { style: { ...baseContentContainer }, children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_components18.Link, { href: appRoutes.creatorOrderDetails(props.order.id), style: { ...button, width: "150px" }, children: "VER PEDIDO" }) }),
|
|
899
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Footer, {})
|
|
900
|
+
] })
|
|
901
|
+
] });
|
|
902
|
+
}
|
|
903
|
+
OrderCancelledCreator.PreviewProps = {
|
|
904
|
+
order: {
|
|
905
|
+
id: "123"
|
|
906
|
+
},
|
|
907
|
+
creator: {
|
|
908
|
+
name: "Vanessa Martins"
|
|
909
|
+
},
|
|
910
|
+
reason: "A marca desistiu do pedido."
|
|
911
|
+
};
|
|
912
|
+
var reasonContainer4 = {
|
|
913
|
+
width: "100%",
|
|
914
|
+
padding: "0",
|
|
915
|
+
margin: "30px 0"
|
|
916
|
+
};
|
|
917
|
+
|
|
918
|
+
// emails/creator/order-payment-creator.tsx
|
|
919
|
+
var import_components19 = require("@react-email/components");
|
|
920
|
+
var import_jsx_runtime19 = require("react/jsx-runtime");
|
|
921
|
+
function OrderPaymentCreator(props) {
|
|
922
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(import_components19.Html, { style: rootStyles, children: [
|
|
923
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(BaseHead, {}),
|
|
924
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_components19.Preview, { children: "Pagamento Liberado \u2705" }),
|
|
925
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(import_components19.Body, { style: { ...main, ...baseContainer }, children: [
|
|
926
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Header, {}),
|
|
927
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(UserInfo, { photo: `${assetsBasePath}/icons/logo-icon-colored.png`, name: "Promote Team", userType: "brand" /* BRAND */ }),
|
|
928
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(import_components19.Container, { style: { ...baseContentContainer }, children: [
|
|
929
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(import_components19.Text, { style: baseText, children: [
|
|
930
|
+
"Ol\xE1, ",
|
|
931
|
+
props.creator.name,
|
|
932
|
+
" \u{1F38A},"
|
|
933
|
+
] }),
|
|
934
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(import_components19.Text, { style: baseText, children: [
|
|
935
|
+
"Boas Not\xEDcias \u{1F389}, est\xE1 em processamento o pagamento da",
|
|
936
|
+
" ",
|
|
937
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(import_components19.Link, { href: appRoutes.creatorOrderDetails(props.order.id), target: "_blank", style: link, children: [
|
|
938
|
+
"ordem #",
|
|
939
|
+
props.order.id
|
|
940
|
+
] }),
|
|
941
|
+
" "
|
|
942
|
+
] }),
|
|
943
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_components19.Text, { style: baseText, children: "Espera-se que dentro de 24h o pagamento seja conclu\xEDdo, agradecemos por confiar na Promote." })
|
|
944
|
+
] }),
|
|
945
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(PaymentAmount, { totalAmount: props.totalAmount }),
|
|
946
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_components19.Container, { style: { ...baseContentContainer, marginTop: "25px" }, children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_components19.Link, { href: appRoutes.creatorOrderDetails(props.order.id), style: { ...button, width: "150px" }, children: "VER PEDIDO" }) }),
|
|
947
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Footer, {})
|
|
948
|
+
] })
|
|
949
|
+
] });
|
|
950
|
+
}
|
|
951
|
+
OrderPaymentCreator.PreviewProps = {
|
|
952
|
+
order: {
|
|
953
|
+
id: "123"
|
|
954
|
+
},
|
|
955
|
+
creator: {
|
|
956
|
+
name: "John Doe"
|
|
957
|
+
},
|
|
958
|
+
totalAmount: "1000,00"
|
|
959
|
+
};
|
|
960
|
+
|
|
961
|
+
// emails/creator/new-order-created-creator.tsx
|
|
962
|
+
var import_components20 = require("@react-email/components");
|
|
963
|
+
var import_jsx_runtime20 = require("react/jsx-runtime");
|
|
964
|
+
function NewOrderCreatedCreator(props) {
|
|
965
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(import_components20.Html, { style: rootStyles, children: [
|
|
966
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(BaseHead, {}),
|
|
967
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_components20.Preview, { children: "Novo Pedido Recebido" }),
|
|
968
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(import_components20.Body, { style: { ...main, ...baseContainer }, children: [
|
|
969
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Header, {}),
|
|
970
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(UserInfo, { photo: props.brand.photo, name: props.brand.name, userType: "brand" /* BRAND */ }),
|
|
971
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(import_components20.Container, { style: { ...baseContentContainer }, children: [
|
|
972
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(import_components20.Text, { style: baseText, children: [
|
|
973
|
+
"Ol\xE1, ",
|
|
974
|
+
props.creator.name,
|
|
975
|
+
","
|
|
976
|
+
] }),
|
|
977
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(import_components20.Text, { style: baseText, children: [
|
|
978
|
+
"Parab\xE9ns \u{1F389}, voc\xEA recebeu um novo pedido da empresa ",
|
|
979
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { style: { color: colors.primary }, children: props.brand.name }),
|
|
980
|
+
".",
|
|
981
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("br", {}),
|
|
982
|
+
" Por favor, revise os detalhes abaixo \u{1F680}:"
|
|
983
|
+
] })
|
|
984
|
+
] }),
|
|
985
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_components20.Container, { style: orderDetails2, children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(NewOrderInfo, { orderCreatedAt: props.order.createdAt, packageName: props.package.name, packagePrice: props.package.price }) }),
|
|
986
|
+
/* @__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: "120px" }, children: "VER PEDIDO" }) }),
|
|
987
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Footer, {})
|
|
988
|
+
] })
|
|
989
|
+
] });
|
|
990
|
+
}
|
|
991
|
+
NewOrderCreatedCreator.PreviewProps = {
|
|
992
|
+
package: {
|
|
993
|
+
name: "1 Instagram Post",
|
|
994
|
+
price: "1000.00"
|
|
995
|
+
},
|
|
996
|
+
order: {
|
|
997
|
+
id: "123",
|
|
998
|
+
createdAt: "20 de Agosto, 2021"
|
|
999
|
+
},
|
|
1000
|
+
brand: {
|
|
1001
|
+
name: "Vodacom Mz",
|
|
1002
|
+
photo: "https://companieslogo.com/img/orig/VOD.JO-b42c4c1b.png?t=1603932474"
|
|
1003
|
+
},
|
|
1004
|
+
creator: {
|
|
1005
|
+
name: "Neymar Jr."
|
|
1006
|
+
}
|
|
1007
|
+
};
|
|
1008
|
+
var orderDetails2 = {
|
|
1009
|
+
...baseContentContainer,
|
|
1010
|
+
marginTop: "30px",
|
|
1011
|
+
marginBottom: "40px"
|
|
1012
|
+
};
|
|
1013
|
+
|
|
1014
|
+
// emails/all/welcome.tsx
|
|
1015
|
+
var import_components21 = require("@react-email/components");
|
|
1016
|
+
var import_jsx_runtime21 = require("react/jsx-runtime");
|
|
1017
|
+
function Welcome({ name, userType }) {
|
|
1018
|
+
const content2 = {
|
|
1019
|
+
["brand" /* BRAND */]: {
|
|
1020
|
+
startLink: appRoutes.creatorsList,
|
|
1021
|
+
description: " Obrigado por se registrar. Estamos muito felizes por t\xEA-lo a bordo. Explore nossa plataforma e descubra os melhores influenciadores e criadores de conte\xFAdo para suas necessidades de marketing."
|
|
1022
|
+
},
|
|
1023
|
+
["creator" /* CREATOR */]: {
|
|
1024
|
+
startLink: appRoutes.creatorPrivateProfile,
|
|
1025
|
+
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
|
+
}
|
|
1027
|
+
};
|
|
1028
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(import_components21.Html, { style: rootStyles, children: [
|
|
1029
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(BaseHead, {}),
|
|
1030
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_components21.Preview, { children: "Bem-vindo a Promote" }),
|
|
1031
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(import_components21.Body, { style: { ...main, ...baseContainer }, children: [
|
|
1032
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(import_components21.Container, { style: headContainer, children: [
|
|
1033
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_components21.Img, { src: `${assetsBasePath}/icons/logo-icon.png`, alt: "Promote Logo", style: promoteLogo }),
|
|
1034
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_components21.Img, { src: `${assetsBasePath}/icons/welcome-title.png`, alt: "Promote Logo", style: welcomeImage })
|
|
1035
|
+
] }),
|
|
1036
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(import_components21.Container, { style: baseContentContainer, children: [
|
|
1037
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(import_components21.Heading, { as: "h1", style: title3, children: [
|
|
1038
|
+
"Ol\xE1 ",
|
|
1039
|
+
name || "{{nome}}",
|
|
1040
|
+
" \u{1F389},"
|
|
1041
|
+
] }),
|
|
1042
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_components21.Text, { style: textInfo, children: content2[userType]?.description }),
|
|
1043
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(import_components21.Text, { style: textInfo, children: [
|
|
1044
|
+
"Em caso de qualquer d\xFAvida, entre em conctato connosco atrav\xE9s do e-mail:",
|
|
1045
|
+
" ",
|
|
1046
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_components21.Link, { style: link, href: "mailto:help@promote.co.mz", children: "help@promote.co.mz" }),
|
|
1047
|
+
" ",
|
|
1048
|
+
"\u{1F680}"
|
|
1049
|
+
] })
|
|
1050
|
+
] }),
|
|
1051
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_components21.Container, { style: baseContentContainer, children: userType && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_components21.Link, { href: content2[userType]?.startLink, style: { ...button, width: "150px" }, children: "COME\xC7AR AGORA" }) }),
|
|
1052
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Footer, {})
|
|
1053
|
+
] })
|
|
1054
|
+
] });
|
|
1055
|
+
}
|
|
1056
|
+
Welcome.PreviewProps = {
|
|
1057
|
+
name: "Jo\xE3o ant\xF3nio",
|
|
1058
|
+
userType: "brand" /* BRAND */
|
|
1059
|
+
};
|
|
1060
|
+
var headContainer = {
|
|
1061
|
+
...baseContentContainer,
|
|
1062
|
+
marginBottom: "20px",
|
|
1063
|
+
padding: "20px 0",
|
|
1064
|
+
height: "200px",
|
|
1065
|
+
backgroundColor: colors.primary,
|
|
1066
|
+
borderRadius: "8px",
|
|
1067
|
+
align: "center"
|
|
1068
|
+
};
|
|
1069
|
+
var promoteLogo = {
|
|
1070
|
+
width: "70px",
|
|
1071
|
+
height: "70px",
|
|
1072
|
+
margin: "0 auto",
|
|
1073
|
+
marginBottom: "20px"
|
|
1074
|
+
};
|
|
1075
|
+
var welcomeImage = {
|
|
1076
|
+
width: "auto",
|
|
1077
|
+
height: "30px",
|
|
1078
|
+
margin: "0 auto"
|
|
1079
|
+
};
|
|
1080
|
+
var title3 = {
|
|
1081
|
+
color: colors.primary,
|
|
1082
|
+
fontSize: "22px",
|
|
1083
|
+
fontWeight: "bold",
|
|
1084
|
+
marginTop: "10px",
|
|
1085
|
+
marginBottom: "10px"
|
|
1086
|
+
};
|
|
1087
|
+
var textInfo = {
|
|
1088
|
+
...baseText,
|
|
1089
|
+
marginTop: "20px",
|
|
1090
|
+
marginBottom: "20px"
|
|
1091
|
+
};
|
|
1092
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
1093
|
+
0 && (module.exports = {
|
|
1094
|
+
AbortOrderRequest,
|
|
1095
|
+
EvidenceApprovedCreator,
|
|
1096
|
+
EvidencesRejectedCreator,
|
|
1097
|
+
EvidencesSubmittedBrand,
|
|
1098
|
+
NewOrderCreatedBrand,
|
|
1099
|
+
NewOrderCreatedCreator,
|
|
1100
|
+
OrderAcceptedBrand,
|
|
1101
|
+
OrderCancelledBrand,
|
|
1102
|
+
OrderCancelledCreator,
|
|
1103
|
+
OrderEvidencesAcceptedBrand,
|
|
1104
|
+
OrderPaymentCreator,
|
|
1105
|
+
OrderRejectedBrand,
|
|
1106
|
+
RevertPaymentRequestAdmin,
|
|
1107
|
+
USER_ROLES,
|
|
1108
|
+
Welcome,
|
|
1109
|
+
appBaseUrl,
|
|
1110
|
+
appRoutes,
|
|
1111
|
+
assetsBasePath,
|
|
1112
|
+
baseContainer,
|
|
1113
|
+
baseContentContainer,
|
|
1114
|
+
baseText,
|
|
1115
|
+
button,
|
|
1116
|
+
centerBlock,
|
|
1117
|
+
centerText,
|
|
1118
|
+
colors,
|
|
1119
|
+
link,
|
|
1120
|
+
main,
|
|
1121
|
+
rootStyles,
|
|
1122
|
+
socialNetworkLinks
|
|
1123
|
+
});
|