@planetaexo/design-system 0.68.1 → 0.69.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +329 -106
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +49 -1
- package/dist/index.d.ts +49 -1
- package/dist/index.js +329 -107
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -6114,6 +6114,228 @@ function CancellationRequestReceivedEmail({
|
|
|
6114
6114
|
}
|
|
6115
6115
|
);
|
|
6116
6116
|
}
|
|
6117
|
+
var INLINE_LINK_STYLE3 = {
|
|
6118
|
+
color: emailTokens.primary,
|
|
6119
|
+
textDecoration: "underline"
|
|
6120
|
+
};
|
|
6121
|
+
function renderWhatsappLink3(contact, label) {
|
|
6122
|
+
if (contact.whatsappUrl) {
|
|
6123
|
+
return /* @__PURE__ */ jsxRuntime.jsx("a", { href: contact.whatsappUrl, style: INLINE_LINK_STYLE3, children: label });
|
|
6124
|
+
}
|
|
6125
|
+
return label;
|
|
6126
|
+
}
|
|
6127
|
+
function renderEmailLink3(contact, label) {
|
|
6128
|
+
if (contact.email) {
|
|
6129
|
+
return /* @__PURE__ */ jsxRuntime.jsx("a", { href: `mailto:${contact.email}`, style: INLINE_LINK_STYLE3, children: label });
|
|
6130
|
+
}
|
|
6131
|
+
return label;
|
|
6132
|
+
}
|
|
6133
|
+
function hasText3(s) {
|
|
6134
|
+
return typeof s === "string" && s.trim().length > 0;
|
|
6135
|
+
}
|
|
6136
|
+
var DEFAULT_LABELS7 = {
|
|
6137
|
+
logoAlt: "PlanetaEXO",
|
|
6138
|
+
greeting: (recipientName) => `Hi ${recipientName},`,
|
|
6139
|
+
title: "Part of your booking has been cancelled",
|
|
6140
|
+
intro: (bookingRef) => `We're writing to let you know that part of your booking ${bookingRef} has been cancelled. The rest of your booking remains active.`,
|
|
6141
|
+
removedHeading: "What was removed",
|
|
6142
|
+
refundHeading: "Refund registered",
|
|
6143
|
+
refundAmountLabel: "Refund amount",
|
|
6144
|
+
refundNote: "As per our cancellation policy.",
|
|
6145
|
+
closingAgent: (agentName, contact) => /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
6146
|
+
"If you have any questions, your agent ",
|
|
6147
|
+
agentName,
|
|
6148
|
+
" is available via",
|
|
6149
|
+
" ",
|
|
6150
|
+
renderWhatsappLink3(contact, "WhatsApp"),
|
|
6151
|
+
" or ",
|
|
6152
|
+
renderEmailLink3(contact, "email"),
|
|
6153
|
+
"."
|
|
6154
|
+
] }),
|
|
6155
|
+
closingNoAgent: "If you have any questions, our team is available via WhatsApp or email.",
|
|
6156
|
+
teamSignature: "The PlanetaEXO Team"
|
|
6157
|
+
};
|
|
6158
|
+
function BookingPartialCancellationEmail({
|
|
6159
|
+
recipientName,
|
|
6160
|
+
bookingRef,
|
|
6161
|
+
removedItems,
|
|
6162
|
+
refundAmount,
|
|
6163
|
+
agentName,
|
|
6164
|
+
agentContactLinks,
|
|
6165
|
+
logoUrl,
|
|
6166
|
+
labels,
|
|
6167
|
+
className
|
|
6168
|
+
}) {
|
|
6169
|
+
const l = __spreadValues(__spreadValues({}, DEFAULT_LABELS7), labels);
|
|
6170
|
+
const showRefund = hasText3(refundAmount);
|
|
6171
|
+
const agentNameTrimmed = agentName == null ? void 0 : agentName.trim();
|
|
6172
|
+
const contact = agentContactLinks != null ? agentContactLinks : {};
|
|
6173
|
+
const closingNode = agentNameTrimmed ? l.closingAgent(agentNameTrimmed, contact) : l.closingNoAgent;
|
|
6174
|
+
const sectionDivider = /* @__PURE__ */ jsxRuntime.jsx(
|
|
6175
|
+
"hr",
|
|
6176
|
+
{
|
|
6177
|
+
style: {
|
|
6178
|
+
border: "none",
|
|
6179
|
+
borderTop: `1px solid ${emailTokens.border}`,
|
|
6180
|
+
marginTop: 0,
|
|
6181
|
+
marginBottom: "24px"
|
|
6182
|
+
}
|
|
6183
|
+
}
|
|
6184
|
+
);
|
|
6185
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
6186
|
+
"div",
|
|
6187
|
+
{
|
|
6188
|
+
style: {
|
|
6189
|
+
maxWidth: "576px",
|
|
6190
|
+
margin: "0 auto",
|
|
6191
|
+
backgroundColor: emailTokens.white,
|
|
6192
|
+
color: emailTokens.foreground,
|
|
6193
|
+
fontFamily: emailTokens.fontFamily,
|
|
6194
|
+
fontSize: "16px",
|
|
6195
|
+
lineHeight: "1.6",
|
|
6196
|
+
border: `1px solid ${emailTokens.border}`,
|
|
6197
|
+
borderRadius: "12px",
|
|
6198
|
+
overflow: "hidden",
|
|
6199
|
+
padding: "32px"
|
|
6200
|
+
},
|
|
6201
|
+
className,
|
|
6202
|
+
children: [
|
|
6203
|
+
/* @__PURE__ */ jsxRuntime.jsx(EmailLogo, { src: logoUrl, alt: l.logoAlt }),
|
|
6204
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { style: { marginBottom: "16px" }, children: l.greeting(recipientName) }),
|
|
6205
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
6206
|
+
"p",
|
|
6207
|
+
{
|
|
6208
|
+
style: {
|
|
6209
|
+
marginTop: 0,
|
|
6210
|
+
marginBottom: "16px",
|
|
6211
|
+
fontWeight: 700,
|
|
6212
|
+
color: emailTokens.foreground,
|
|
6213
|
+
fontSize: "20px",
|
|
6214
|
+
lineHeight: "1.3",
|
|
6215
|
+
fontFamily: emailTokens.fontFamily
|
|
6216
|
+
},
|
|
6217
|
+
children: l.title
|
|
6218
|
+
}
|
|
6219
|
+
),
|
|
6220
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { style: { marginBottom: "24px" }, children: l.intro(`#${bookingRef}`) }),
|
|
6221
|
+
sectionDivider,
|
|
6222
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
6223
|
+
"div",
|
|
6224
|
+
{
|
|
6225
|
+
style: {
|
|
6226
|
+
marginBottom: "24px",
|
|
6227
|
+
padding: "16px 20px",
|
|
6228
|
+
borderRadius: "12px",
|
|
6229
|
+
border: `1px solid ${emailTokens.border}`,
|
|
6230
|
+
backgroundColor: emailTokens.muted
|
|
6231
|
+
},
|
|
6232
|
+
children: [
|
|
6233
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
6234
|
+
"p",
|
|
6235
|
+
{
|
|
6236
|
+
style: {
|
|
6237
|
+
margin: "0 0 12px 0",
|
|
6238
|
+
fontSize: "12px",
|
|
6239
|
+
fontWeight: 700,
|
|
6240
|
+
color: emailTokens.mutedForeground,
|
|
6241
|
+
textTransform: "uppercase",
|
|
6242
|
+
letterSpacing: "0.08em",
|
|
6243
|
+
fontFamily: emailTokens.fontFamily
|
|
6244
|
+
},
|
|
6245
|
+
children: l.removedHeading
|
|
6246
|
+
}
|
|
6247
|
+
),
|
|
6248
|
+
removedItems.map((item, i) => /* @__PURE__ */ jsxRuntime.jsxs("div", { style: { marginBottom: i < removedItems.length - 1 ? "10px" : 0 }, children: [
|
|
6249
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
6250
|
+
"p",
|
|
6251
|
+
{
|
|
6252
|
+
style: {
|
|
6253
|
+
margin: 0,
|
|
6254
|
+
fontSize: "15px",
|
|
6255
|
+
fontWeight: 700,
|
|
6256
|
+
color: emailTokens.foreground
|
|
6257
|
+
},
|
|
6258
|
+
children: item.title
|
|
6259
|
+
}
|
|
6260
|
+
),
|
|
6261
|
+
hasText3(item.detail) && /* @__PURE__ */ jsxRuntime.jsx("p", { style: { margin: "2px 0 0 0", fontSize: "14px", color: emailTokens.bodyText }, children: item.detail })
|
|
6262
|
+
] }, i))
|
|
6263
|
+
]
|
|
6264
|
+
}
|
|
6265
|
+
),
|
|
6266
|
+
showRefund && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
6267
|
+
"div",
|
|
6268
|
+
{
|
|
6269
|
+
style: {
|
|
6270
|
+
marginBottom: "24px",
|
|
6271
|
+
padding: "16px 20px",
|
|
6272
|
+
borderRadius: "12px",
|
|
6273
|
+
border: `1px solid ${emailTokens.border}`,
|
|
6274
|
+
backgroundColor: emailTokens.muted
|
|
6275
|
+
},
|
|
6276
|
+
children: [
|
|
6277
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
6278
|
+
"p",
|
|
6279
|
+
{
|
|
6280
|
+
style: {
|
|
6281
|
+
margin: "0 0 8px 0",
|
|
6282
|
+
fontSize: "12px",
|
|
6283
|
+
fontWeight: 700,
|
|
6284
|
+
color: emailTokens.mutedForeground,
|
|
6285
|
+
textTransform: "uppercase",
|
|
6286
|
+
letterSpacing: "0.08em",
|
|
6287
|
+
fontFamily: emailTokens.fontFamily
|
|
6288
|
+
},
|
|
6289
|
+
children: l.refundHeading
|
|
6290
|
+
}
|
|
6291
|
+
),
|
|
6292
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
6293
|
+
"table",
|
|
6294
|
+
{
|
|
6295
|
+
cellPadding: 0,
|
|
6296
|
+
cellSpacing: 0,
|
|
6297
|
+
style: { width: "100%", borderCollapse: "collapse" },
|
|
6298
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("tbody", { children: /* @__PURE__ */ jsxRuntime.jsxs("tr", { children: [
|
|
6299
|
+
/* @__PURE__ */ jsxRuntime.jsx("td", { style: { fontSize: "14px", color: emailTokens.bodyText, verticalAlign: "middle" }, children: l.refundAmountLabel }),
|
|
6300
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
6301
|
+
"td",
|
|
6302
|
+
{
|
|
6303
|
+
style: {
|
|
6304
|
+
fontSize: "18px",
|
|
6305
|
+
fontWeight: 700,
|
|
6306
|
+
color: emailTokens.foreground,
|
|
6307
|
+
textAlign: "right",
|
|
6308
|
+
verticalAlign: "middle",
|
|
6309
|
+
whiteSpace: "nowrap"
|
|
6310
|
+
},
|
|
6311
|
+
children: refundAmount
|
|
6312
|
+
}
|
|
6313
|
+
)
|
|
6314
|
+
] }) })
|
|
6315
|
+
}
|
|
6316
|
+
),
|
|
6317
|
+
hasText3(l.refundNote) && /* @__PURE__ */ jsxRuntime.jsx(
|
|
6318
|
+
"p",
|
|
6319
|
+
{
|
|
6320
|
+
style: {
|
|
6321
|
+
margin: "8px 0 0 0",
|
|
6322
|
+
fontSize: "12px",
|
|
6323
|
+
color: emailTokens.mutedForeground,
|
|
6324
|
+
fontStyle: "italic"
|
|
6325
|
+
},
|
|
6326
|
+
children: l.refundNote
|
|
6327
|
+
}
|
|
6328
|
+
)
|
|
6329
|
+
]
|
|
6330
|
+
}
|
|
6331
|
+
),
|
|
6332
|
+
sectionDivider,
|
|
6333
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { style: { marginBottom: "16px", fontSize: "14px", fontWeight: 700, color: emailTokens.bodyText }, children: closingNode }),
|
|
6334
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { style: { marginTop: 0, marginBottom: 0, fontSize: "14px", color: emailTokens.bodyText }, children: l.teamSignature })
|
|
6335
|
+
]
|
|
6336
|
+
}
|
|
6337
|
+
);
|
|
6338
|
+
}
|
|
6117
6339
|
function RegistrationProgressBar({
|
|
6118
6340
|
tone,
|
|
6119
6341
|
pct,
|
|
@@ -6176,23 +6398,23 @@ function RegistrationProgressBar({
|
|
|
6176
6398
|
}
|
|
6177
6399
|
) });
|
|
6178
6400
|
}
|
|
6179
|
-
var
|
|
6401
|
+
var INLINE_LINK_STYLE4 = {
|
|
6180
6402
|
color: emailTokens.primary,
|
|
6181
6403
|
textDecoration: "underline"
|
|
6182
6404
|
};
|
|
6183
|
-
function
|
|
6405
|
+
function renderWhatsappLink4(contact, label) {
|
|
6184
6406
|
if (contact.whatsappUrl) {
|
|
6185
|
-
return /* @__PURE__ */ jsxRuntime.jsx("a", { href: contact.whatsappUrl, style:
|
|
6407
|
+
return /* @__PURE__ */ jsxRuntime.jsx("a", { href: contact.whatsappUrl, style: INLINE_LINK_STYLE4, children: label });
|
|
6186
6408
|
}
|
|
6187
6409
|
return label;
|
|
6188
6410
|
}
|
|
6189
|
-
function
|
|
6411
|
+
function renderEmailLink4(contact, label) {
|
|
6190
6412
|
if (contact.email) {
|
|
6191
|
-
return /* @__PURE__ */ jsxRuntime.jsx("a", { href: `mailto:${contact.email}`, style:
|
|
6413
|
+
return /* @__PURE__ */ jsxRuntime.jsx("a", { href: `mailto:${contact.email}`, style: INLINE_LINK_STYLE4, children: label });
|
|
6192
6414
|
}
|
|
6193
6415
|
return label;
|
|
6194
6416
|
}
|
|
6195
|
-
var
|
|
6417
|
+
var DEFAULT_LABELS8 = {
|
|
6196
6418
|
logoAlt: "PlanetaEXO",
|
|
6197
6419
|
greeting: (n) => `Hi ${n},`,
|
|
6198
6420
|
intermediateHello: "Hope you're doing well.",
|
|
@@ -6211,9 +6433,9 @@ var DEFAULT_LABELS7 = {
|
|
|
6211
6433
|
"If you need any assistance with the traveller registrations, feel free to contact your agent ",
|
|
6212
6434
|
agentName,
|
|
6213
6435
|
" via ",
|
|
6214
|
-
|
|
6436
|
+
renderWhatsappLink4(contact, "WhatsApp"),
|
|
6215
6437
|
" or ",
|
|
6216
|
-
|
|
6438
|
+
renderEmailLink4(contact, "email"),
|
|
6217
6439
|
"."
|
|
6218
6440
|
] }),
|
|
6219
6441
|
closingNoAgent: "If you need any assistance with the traveller registrations, feel free to contact us via WhatsApp or email.",
|
|
@@ -6286,7 +6508,7 @@ var DEFAULT_LABELS7 = {
|
|
|
6286
6508
|
}
|
|
6287
6509
|
}
|
|
6288
6510
|
};
|
|
6289
|
-
function
|
|
6511
|
+
function hasText4(s) {
|
|
6290
6512
|
return typeof s === "string" && s.trim().length > 0;
|
|
6291
6513
|
}
|
|
6292
6514
|
function hasItems(arr) {
|
|
@@ -6306,12 +6528,12 @@ function RegistrationReminderEmail({
|
|
|
6306
6528
|
className
|
|
6307
6529
|
}) {
|
|
6308
6530
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
6309
|
-
const l = __spreadProps(__spreadValues(__spreadValues({},
|
|
6531
|
+
const l = __spreadProps(__spreadValues(__spreadValues({}, DEFAULT_LABELS8), labels), {
|
|
6310
6532
|
variants: {
|
|
6311
|
-
d_minus_30: __spreadValues(__spreadValues({},
|
|
6312
|
-
d_minus_15: __spreadValues(__spreadValues({},
|
|
6313
|
-
d_minus_7: __spreadValues(__spreadValues({},
|
|
6314
|
-
d_minus_2: __spreadValues(__spreadValues({},
|
|
6533
|
+
d_minus_30: __spreadValues(__spreadValues({}, DEFAULT_LABELS8.variants.d_minus_30), (_b = (_a = labels == null ? void 0 : labels.variants) == null ? void 0 : _a.d_minus_30) != null ? _b : {}),
|
|
6534
|
+
d_minus_15: __spreadValues(__spreadValues({}, DEFAULT_LABELS8.variants.d_minus_15), (_d = (_c = labels == null ? void 0 : labels.variants) == null ? void 0 : _c.d_minus_15) != null ? _d : {}),
|
|
6535
|
+
d_minus_7: __spreadValues(__spreadValues({}, DEFAULT_LABELS8.variants.d_minus_7), (_f = (_e = labels == null ? void 0 : labels.variants) == null ? void 0 : _e.d_minus_7) != null ? _f : {}),
|
|
6536
|
+
d_minus_2: __spreadValues(__spreadValues({}, DEFAULT_LABELS8.variants.d_minus_2), (_h = (_g = labels == null ? void 0 : labels.variants) == null ? void 0 : _g.d_minus_2) != null ? _h : {})
|
|
6315
6537
|
}
|
|
6316
6538
|
});
|
|
6317
6539
|
const v = l.variants[slug];
|
|
@@ -6332,14 +6554,14 @@ function RegistrationReminderEmail({
|
|
|
6332
6554
|
{ label: l.travellersRowLabel, value: l.travellersCountLabel(totalTravellers) },
|
|
6333
6555
|
...(agent == null ? void 0 : agent.name) ? [{ label: l.agentRowLabel, value: agent.name }] : []
|
|
6334
6556
|
];
|
|
6335
|
-
const showPleaseNote =
|
|
6336
|
-
const showBookerCoord =
|
|
6337
|
-
const showEarlyBenefit =
|
|
6338
|
-
const showImportant =
|
|
6339
|
-
const showFinalTagline =
|
|
6340
|
-
|
|
6341
|
-
const showDisregard =
|
|
6342
|
-
const showClosingThanks =
|
|
6557
|
+
const showPleaseNote = hasText4(v.pleaseNoteHeader) && hasItems(v.pleaseNoteBullets);
|
|
6558
|
+
const showBookerCoord = hasText4(v.bookerCoordinationNote);
|
|
6559
|
+
const showEarlyBenefit = hasText4(v.earlyCompletionBenefit);
|
|
6560
|
+
const showImportant = hasText4(v.importantNote);
|
|
6561
|
+
const showFinalTagline = hasText4(v.finalReminderTagline);
|
|
6562
|
+
hasText4(v.multiTravellerNote);
|
|
6563
|
+
const showDisregard = hasText4(v.disregardIfCompleted);
|
|
6564
|
+
const showClosingThanks = hasText4(v.closingThanks);
|
|
6343
6565
|
const sectionDivider = /* @__PURE__ */ jsxRuntime.jsx(
|
|
6344
6566
|
"hr",
|
|
6345
6567
|
{
|
|
@@ -6351,7 +6573,7 @@ function RegistrationReminderEmail({
|
|
|
6351
6573
|
}
|
|
6352
6574
|
}
|
|
6353
6575
|
);
|
|
6354
|
-
const hasIntroBlock =
|
|
6576
|
+
const hasIntroBlock = hasText4(v.intro) || hasText4(v.contextNote);
|
|
6355
6577
|
const hasPleaseNote = showPleaseNote;
|
|
6356
6578
|
const hasD7Highlight = showImportant && slug === "d_minus_7";
|
|
6357
6579
|
const hasD2Highlight = showFinalTagline || showImportant && slug === "d_minus_2";
|
|
@@ -6375,9 +6597,9 @@ function RegistrationReminderEmail({
|
|
|
6375
6597
|
children: [
|
|
6376
6598
|
/* @__PURE__ */ jsxRuntime.jsx(EmailLogo, { src: logoUrl, alt: l.logoAlt }),
|
|
6377
6599
|
/* @__PURE__ */ jsxRuntime.jsx("p", { style: { marginBottom: "16px" }, children: l.greeting(recipientFirstName) }),
|
|
6378
|
-
|
|
6379
|
-
|
|
6380
|
-
|
|
6600
|
+
hasText4(l.intermediateHello) && /* @__PURE__ */ jsxRuntime.jsx("p", { style: { marginBottom: "16px" }, children: l.intermediateHello }),
|
|
6601
|
+
hasText4(v.intro) && /* @__PURE__ */ jsxRuntime.jsx("p", { style: { marginBottom: "16px" }, children: v.intro }),
|
|
6602
|
+
hasText4(v.contextNote) && /* @__PURE__ */ jsxRuntime.jsx("p", { style: { marginBottom: "16px" }, children: v.contextNote }),
|
|
6381
6603
|
hasIntroBlock && sectionDivider,
|
|
6382
6604
|
slug === "d_minus_15" && showBookerCoord && /* @__PURE__ */ jsxRuntime.jsx("p", { style: { marginBottom: "16px" }, children: v.bookerCoordinationNote }),
|
|
6383
6605
|
hasItems(adventures) && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
@@ -6395,7 +6617,7 @@ function RegistrationReminderEmail({
|
|
|
6395
6617
|
children: l.progressHeader
|
|
6396
6618
|
}
|
|
6397
6619
|
),
|
|
6398
|
-
|
|
6620
|
+
hasText4(v.progressIntro) && /* @__PURE__ */ jsxRuntime.jsx("p", { style: { marginBottom: "16px", color: emailTokens.bodyText }, children: v.progressIntro }),
|
|
6399
6621
|
adventures.map((adv, i) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
6400
6622
|
"div",
|
|
6401
6623
|
{
|
|
@@ -6531,23 +6753,23 @@ function RegistrationReminderEmail({
|
|
|
6531
6753
|
}
|
|
6532
6754
|
);
|
|
6533
6755
|
}
|
|
6534
|
-
var
|
|
6756
|
+
var INLINE_LINK_STYLE5 = {
|
|
6535
6757
|
color: emailTokens.primary,
|
|
6536
6758
|
textDecoration: "underline"
|
|
6537
6759
|
};
|
|
6538
|
-
function
|
|
6760
|
+
function renderWhatsappLink5(contact, label) {
|
|
6539
6761
|
if (contact.whatsappUrl) {
|
|
6540
|
-
return /* @__PURE__ */ jsxRuntime.jsx("a", { href: contact.whatsappUrl, style:
|
|
6762
|
+
return /* @__PURE__ */ jsxRuntime.jsx("a", { href: contact.whatsappUrl, style: INLINE_LINK_STYLE5, children: label });
|
|
6541
6763
|
}
|
|
6542
6764
|
return label;
|
|
6543
6765
|
}
|
|
6544
|
-
function
|
|
6766
|
+
function renderEmailLink5(contact, label) {
|
|
6545
6767
|
if (contact.email) {
|
|
6546
|
-
return /* @__PURE__ */ jsxRuntime.jsx("a", { href: `mailto:${contact.email}`, style:
|
|
6768
|
+
return /* @__PURE__ */ jsxRuntime.jsx("a", { href: `mailto:${contact.email}`, style: INLINE_LINK_STYLE5, children: label });
|
|
6547
6769
|
}
|
|
6548
6770
|
return label;
|
|
6549
6771
|
}
|
|
6550
|
-
var
|
|
6772
|
+
var DEFAULT_LABELS9 = {
|
|
6551
6773
|
logoAlt: "PlanetaEXO",
|
|
6552
6774
|
greeting: (n) => `Hi ${n},`,
|
|
6553
6775
|
tripDetailsHeader: "\u{1F4CB} Trip details",
|
|
@@ -6563,9 +6785,9 @@ var DEFAULT_LABELS8 = {
|
|
|
6563
6785
|
"If you have questions, your agent ",
|
|
6564
6786
|
agentName,
|
|
6565
6787
|
" is available via ",
|
|
6566
|
-
|
|
6788
|
+
renderWhatsappLink5(contact, "WhatsApp"),
|
|
6567
6789
|
" or ",
|
|
6568
|
-
|
|
6790
|
+
renderEmailLink5(contact, "email"),
|
|
6569
6791
|
"."
|
|
6570
6792
|
] }),
|
|
6571
6793
|
closingNoAgent: "If you have questions or need assistance, our team is available via WhatsApp or email.",
|
|
@@ -6613,7 +6835,7 @@ var DEFAULT_LABELS8 = {
|
|
|
6613
6835
|
}
|
|
6614
6836
|
}
|
|
6615
6837
|
};
|
|
6616
|
-
function
|
|
6838
|
+
function hasText5(s) {
|
|
6617
6839
|
return typeof s === "string" && s.trim().length > 0;
|
|
6618
6840
|
}
|
|
6619
6841
|
function RegistrationReminderIndividualEmail({
|
|
@@ -6634,12 +6856,12 @@ function RegistrationReminderIndividualEmail({
|
|
|
6634
6856
|
className
|
|
6635
6857
|
}) {
|
|
6636
6858
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
6637
|
-
const l = __spreadProps(__spreadValues(__spreadValues({},
|
|
6859
|
+
const l = __spreadProps(__spreadValues(__spreadValues({}, DEFAULT_LABELS9), labels), {
|
|
6638
6860
|
variants: {
|
|
6639
|
-
d_minus_30: __spreadValues(__spreadValues({},
|
|
6640
|
-
d_minus_15: __spreadValues(__spreadValues({},
|
|
6641
|
-
d_minus_7: __spreadValues(__spreadValues({},
|
|
6642
|
-
d_minus_2: __spreadValues(__spreadValues({},
|
|
6861
|
+
d_minus_30: __spreadValues(__spreadValues({}, DEFAULT_LABELS9.variants.d_minus_30), (_b = (_a = labels == null ? void 0 : labels.variants) == null ? void 0 : _a.d_minus_30) != null ? _b : {}),
|
|
6862
|
+
d_minus_15: __spreadValues(__spreadValues({}, DEFAULT_LABELS9.variants.d_minus_15), (_d = (_c = labels == null ? void 0 : labels.variants) == null ? void 0 : _c.d_minus_15) != null ? _d : {}),
|
|
6863
|
+
d_minus_7: __spreadValues(__spreadValues({}, DEFAULT_LABELS9.variants.d_minus_7), (_f = (_e = labels == null ? void 0 : labels.variants) == null ? void 0 : _e.d_minus_7) != null ? _f : {}),
|
|
6864
|
+
d_minus_2: __spreadValues(__spreadValues({}, DEFAULT_LABELS9.variants.d_minus_2), (_h = (_g = labels == null ? void 0 : labels.variants) == null ? void 0 : _g.d_minus_2) != null ? _h : {})
|
|
6643
6865
|
}
|
|
6644
6866
|
});
|
|
6645
6867
|
const v = l.variants[slug];
|
|
@@ -6659,7 +6881,7 @@ function RegistrationReminderIndividualEmail({
|
|
|
6659
6881
|
{ label: l.leadTravellerLabel, value: leadTravellerName },
|
|
6660
6882
|
{ label: l.adventureLabel, value: adventureName },
|
|
6661
6883
|
{ label: l.startingDateLabel, value: startDateFormatted },
|
|
6662
|
-
...
|
|
6884
|
+
...hasText5(partnerName) ? [{ label: l.partnerLabel, value: partnerName }] : []
|
|
6663
6885
|
];
|
|
6664
6886
|
const sectionDivider = /* @__PURE__ */ jsxRuntime.jsx(
|
|
6665
6887
|
"hr",
|
|
@@ -6694,7 +6916,7 @@ function RegistrationReminderIndividualEmail({
|
|
|
6694
6916
|
children: [
|
|
6695
6917
|
/* @__PURE__ */ jsxRuntime.jsx(EmailLogo, { src: logoUrl, alt: l.logoAlt }),
|
|
6696
6918
|
/* @__PURE__ */ jsxRuntime.jsx("p", { style: { marginBottom: "16px" }, children: l.greeting(recipientFirstName) }),
|
|
6697
|
-
|
|
6919
|
+
hasText5(routingNote) && /* @__PURE__ */ jsxRuntime.jsx(
|
|
6698
6920
|
"p",
|
|
6699
6921
|
{
|
|
6700
6922
|
style: {
|
|
@@ -6709,8 +6931,8 @@ function RegistrationReminderIndividualEmail({
|
|
|
6709
6931
|
}
|
|
6710
6932
|
),
|
|
6711
6933
|
/* @__PURE__ */ jsxRuntime.jsx("p", { style: { marginBottom: "16px" }, children: introText }),
|
|
6712
|
-
|
|
6713
|
-
slug === "d_minus_2" && (
|
|
6934
|
+
hasText5(v.contextNote) && /* @__PURE__ */ jsxRuntime.jsx("p", { style: { marginBottom: "16px" }, children: v.contextNote }),
|
|
6935
|
+
slug === "d_minus_2" && (hasText5(v.finalReminderTagline) || hasText5(v.consequencesNote)) && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
6714
6936
|
"div",
|
|
6715
6937
|
{
|
|
6716
6938
|
style: {
|
|
@@ -6722,23 +6944,23 @@ function RegistrationReminderIndividualEmail({
|
|
|
6722
6944
|
color: "#7f1d1d"
|
|
6723
6945
|
},
|
|
6724
6946
|
children: [
|
|
6725
|
-
|
|
6947
|
+
hasText5(v.finalReminderTagline) && /* @__PURE__ */ jsxRuntime.jsx(
|
|
6726
6948
|
"p",
|
|
6727
6949
|
{
|
|
6728
6950
|
style: {
|
|
6729
6951
|
margin: 0,
|
|
6730
|
-
marginBottom:
|
|
6952
|
+
marginBottom: hasText5(v.consequencesNote) ? "8px" : 0,
|
|
6731
6953
|
fontWeight: 700
|
|
6732
6954
|
},
|
|
6733
6955
|
children: v.finalReminderTagline
|
|
6734
6956
|
}
|
|
6735
6957
|
),
|
|
6736
|
-
|
|
6958
|
+
hasText5(v.consequencesNote) && /* @__PURE__ */ jsxRuntime.jsx("p", { style: { margin: 0 }, children: v.consequencesNote })
|
|
6737
6959
|
]
|
|
6738
6960
|
}
|
|
6739
6961
|
),
|
|
6740
6962
|
/* @__PURE__ */ jsxRuntime.jsx("div", { style: { marginBottom: "24px", textAlign: "left" }, children: /* @__PURE__ */ jsxRuntime.jsx("a", { href: ctaUrl, style: ctaStyle, children: l.ctaLabel }) }),
|
|
6741
|
-
slug === "d_minus_7" &&
|
|
6963
|
+
slug === "d_minus_7" && hasText5(v.mandatoryNote) && /* @__PURE__ */ jsxRuntime.jsx(
|
|
6742
6964
|
"p",
|
|
6743
6965
|
{
|
|
6744
6966
|
style: {
|
|
@@ -6754,8 +6976,8 @@ function RegistrationReminderIndividualEmail({
|
|
|
6754
6976
|
),
|
|
6755
6977
|
sectionDivider,
|
|
6756
6978
|
/* @__PURE__ */ jsxRuntime.jsx(BookingSummary, { heading: l.tripDetailsHeader, rows: tripRows }),
|
|
6757
|
-
(slug === "d_minus_30" || slug === "d_minus_15") &&
|
|
6758
|
-
slug === "d_minus_2" &&
|
|
6979
|
+
(slug === "d_minus_30" || slug === "d_minus_15") && hasText5(v.mandatoryNote) && /* @__PURE__ */ jsxRuntime.jsx("p", { style: { marginBottom: "16px", color: emailTokens.bodyText }, children: v.mandatoryNote }),
|
|
6980
|
+
slug === "d_minus_2" && hasText5(v.disregardIfCompleted) && /* @__PURE__ */ jsxRuntime.jsx(
|
|
6759
6981
|
"p",
|
|
6760
6982
|
{
|
|
6761
6983
|
style: {
|
|
@@ -6772,29 +6994,29 @@ function RegistrationReminderIndividualEmail({
|
|
|
6772
6994
|
whatsappUrl: agent.whatsappUrl,
|
|
6773
6995
|
email: agent.email
|
|
6774
6996
|
}) : l.closingNoAgent }),
|
|
6775
|
-
|
|
6997
|
+
hasText5(v.closingThanks) && /* @__PURE__ */ jsxRuntime.jsx("p", { style: { marginBottom: "16px", fontSize: "14px", color: emailTokens.bodyText }, children: v.closingThanks }),
|
|
6776
6998
|
/* @__PURE__ */ jsxRuntime.jsx("p", { style: { marginTop: 0, marginBottom: 0, fontSize: "14px", color: emailTokens.bodyText }, children: l.teamSignature })
|
|
6777
6999
|
]
|
|
6778
7000
|
}
|
|
6779
7001
|
);
|
|
6780
7002
|
}
|
|
6781
|
-
var
|
|
7003
|
+
var INLINE_LINK_STYLE6 = {
|
|
6782
7004
|
color: emailTokens.primary,
|
|
6783
7005
|
textDecoration: "underline"
|
|
6784
7006
|
};
|
|
6785
|
-
function
|
|
7007
|
+
function renderWhatsappLink6(contact, label) {
|
|
6786
7008
|
if (contact.whatsappUrl) {
|
|
6787
|
-
return /* @__PURE__ */ jsxRuntime.jsx("a", { href: contact.whatsappUrl, style:
|
|
7009
|
+
return /* @__PURE__ */ jsxRuntime.jsx("a", { href: contact.whatsappUrl, style: INLINE_LINK_STYLE6, children: label });
|
|
6788
7010
|
}
|
|
6789
7011
|
return label;
|
|
6790
7012
|
}
|
|
6791
|
-
function
|
|
7013
|
+
function renderEmailLink6(contact, label) {
|
|
6792
7014
|
if (contact.email) {
|
|
6793
|
-
return /* @__PURE__ */ jsxRuntime.jsx("a", { href: `mailto:${contact.email}`, style:
|
|
7015
|
+
return /* @__PURE__ */ jsxRuntime.jsx("a", { href: `mailto:${contact.email}`, style: INLINE_LINK_STYLE6, children: label });
|
|
6794
7016
|
}
|
|
6795
7017
|
return label;
|
|
6796
7018
|
}
|
|
6797
|
-
var
|
|
7019
|
+
var DEFAULT_LABELS10 = {
|
|
6798
7020
|
logoAlt: "PlanetaEXO",
|
|
6799
7021
|
greeting: (n) => `Hi ${n},`,
|
|
6800
7022
|
introAllDone: (adv, dr) => `All travellers for ${adv} (${dr}) have completed their registration. Their consolidated registration details are attached, and below you'll find what they're most looking forward to.`,
|
|
@@ -6816,15 +7038,15 @@ var DEFAULT_LABELS9 = {
|
|
|
6816
7038
|
agentName,
|
|
6817
7039
|
" is available via",
|
|
6818
7040
|
" ",
|
|
6819
|
-
|
|
7041
|
+
renderWhatsappLink6(contact, "WhatsApp"),
|
|
6820
7042
|
" or ",
|
|
6821
|
-
|
|
7043
|
+
renderEmailLink6(contact, "email"),
|
|
6822
7044
|
"."
|
|
6823
7045
|
] }),
|
|
6824
7046
|
closingNoAgent: "If you have any questions, our team is available via WhatsApp or email.",
|
|
6825
7047
|
teamSignature: "The PlanetaEXO Team"
|
|
6826
7048
|
};
|
|
6827
|
-
function
|
|
7049
|
+
function hasText6(s) {
|
|
6828
7050
|
return typeof s === "string" && s.trim().length > 0;
|
|
6829
7051
|
}
|
|
6830
7052
|
function PartnerRegistrationCompleteEmail({
|
|
@@ -6844,14 +7066,14 @@ function PartnerRegistrationCompleteEmail({
|
|
|
6844
7066
|
labels,
|
|
6845
7067
|
className
|
|
6846
7068
|
}) {
|
|
6847
|
-
const l = __spreadValues(__spreadValues({},
|
|
7069
|
+
const l = __spreadValues(__spreadValues({}, DEFAULT_LABELS10), labels);
|
|
6848
7070
|
const tripRows = [
|
|
6849
7071
|
{ label: l.bookingNumberLabel, value: `#${bookingNumber}`, valueColor: emailTokens.primary },
|
|
6850
7072
|
{ label: l.adventureLabel, value: adventureName },
|
|
6851
7073
|
{ label: l.datesLabel, value: dateRange },
|
|
6852
7074
|
{ label: l.partnerLabel, value: partnerName },
|
|
6853
|
-
...
|
|
6854
|
-
...
|
|
7075
|
+
...hasText6(bookingPersonName) ? [{ label: l.bookingPersonLabel, value: bookingPersonName }] : [],
|
|
7076
|
+
...hasText6(bookingPersonPassport) ? [{ label: l.passportLabel, value: bookingPersonPassport }] : []
|
|
6855
7077
|
];
|
|
6856
7078
|
const sectionDivider = /* @__PURE__ */ jsxRuntime.jsx(
|
|
6857
7079
|
"hr",
|
|
@@ -6885,7 +7107,7 @@ function PartnerRegistrationCompleteEmail({
|
|
|
6885
7107
|
className,
|
|
6886
7108
|
children: [
|
|
6887
7109
|
/* @__PURE__ */ jsxRuntime.jsx(EmailLogo, { src: logoUrl, alt: l.logoAlt }),
|
|
6888
|
-
|
|
7110
|
+
hasText6(topNotice) && /* @__PURE__ */ jsxRuntime.jsx(
|
|
6889
7111
|
"div",
|
|
6890
7112
|
{
|
|
6891
7113
|
style: {
|
|
@@ -6962,7 +7184,7 @@ function PartnerRegistrationCompleteEmail({
|
|
|
6962
7184
|
}) })
|
|
6963
7185
|
}
|
|
6964
7186
|
) : /* @__PURE__ */ jsxRuntime.jsx("p", { style: { marginTop: 0, marginBottom: "24px", color: emailTokens.bodyText }, children: l.expectationsEmptyNote }),
|
|
6965
|
-
pdfAttached &&
|
|
7187
|
+
pdfAttached && hasText6(l.pdfNote) && /* @__PURE__ */ jsxRuntime.jsx(
|
|
6966
7188
|
"div",
|
|
6967
7189
|
{
|
|
6968
7190
|
style: {
|
|
@@ -6987,26 +7209,26 @@ function PartnerRegistrationCompleteEmail({
|
|
|
6987
7209
|
}
|
|
6988
7210
|
);
|
|
6989
7211
|
}
|
|
6990
|
-
var
|
|
7212
|
+
var INLINE_LINK_STYLE7 = {
|
|
6991
7213
|
color: emailTokens.primary,
|
|
6992
7214
|
textDecoration: "underline"
|
|
6993
7215
|
};
|
|
6994
|
-
function
|
|
7216
|
+
function renderWhatsappLink7(contact, label) {
|
|
6995
7217
|
if (contact.whatsappUrl) {
|
|
6996
|
-
return /* @__PURE__ */ jsxRuntime.jsx("a", { href: contact.whatsappUrl, style:
|
|
7218
|
+
return /* @__PURE__ */ jsxRuntime.jsx("a", { href: contact.whatsappUrl, style: INLINE_LINK_STYLE7, children: label });
|
|
6997
7219
|
}
|
|
6998
7220
|
return label;
|
|
6999
7221
|
}
|
|
7000
|
-
function
|
|
7222
|
+
function renderEmailLink7(contact, label) {
|
|
7001
7223
|
if (contact.email) {
|
|
7002
|
-
return /* @__PURE__ */ jsxRuntime.jsx("a", { href: `mailto:${contact.email}`, style:
|
|
7224
|
+
return /* @__PURE__ */ jsxRuntime.jsx("a", { href: `mailto:${contact.email}`, style: INLINE_LINK_STYLE7, children: label });
|
|
7003
7225
|
}
|
|
7004
7226
|
return label;
|
|
7005
7227
|
}
|
|
7006
|
-
function
|
|
7228
|
+
function hasText7(s) {
|
|
7007
7229
|
return typeof s === "string" && s.trim().length > 0;
|
|
7008
7230
|
}
|
|
7009
|
-
var
|
|
7231
|
+
var DEFAULT_LABELS11 = {
|
|
7010
7232
|
logoAlt: "PlanetaEXO",
|
|
7011
7233
|
greeting: (n) => `Hi ${n},`,
|
|
7012
7234
|
intro: (adv) => `You have a new booking for your adventure ${adv}. Here are the details:`,
|
|
@@ -7032,9 +7254,9 @@ var DEFAULT_LABELS10 = {
|
|
|
7032
7254
|
agentName,
|
|
7033
7255
|
" is available via",
|
|
7034
7256
|
" ",
|
|
7035
|
-
|
|
7257
|
+
renderWhatsappLink7(contact, "WhatsApp"),
|
|
7036
7258
|
" or ",
|
|
7037
|
-
|
|
7259
|
+
renderEmailLink7(contact, "email"),
|
|
7038
7260
|
"."
|
|
7039
7261
|
] }),
|
|
7040
7262
|
closingNoAgent: "If you have any questions, our team is available via WhatsApp or email.",
|
|
@@ -7055,10 +7277,10 @@ function PartnerBookingCreatedEmail({
|
|
|
7055
7277
|
labels,
|
|
7056
7278
|
className
|
|
7057
7279
|
}) {
|
|
7058
|
-
const l = __spreadValues(__spreadValues({},
|
|
7280
|
+
const l = __spreadValues(__spreadValues({}, DEFAULT_LABELS11), labels);
|
|
7059
7281
|
const summaryRows = [
|
|
7060
7282
|
{ label: l.bookerNameLabel, value: booker.name },
|
|
7061
|
-
...
|
|
7283
|
+
...hasText7(booker.country) ? [{ label: l.bookerCountryLabel, value: booker.country }] : [],
|
|
7062
7284
|
{ label: l.bookingNumberLabel, value: `#${bookingNumber}`, valueColor: emailTokens.primary },
|
|
7063
7285
|
{ label: l.adventureLabel, value: adventureName },
|
|
7064
7286
|
{ label: l.datesLabel, value: dateRange },
|
|
@@ -7095,7 +7317,7 @@ function PartnerBookingCreatedEmail({
|
|
|
7095
7317
|
className,
|
|
7096
7318
|
children: [
|
|
7097
7319
|
/* @__PURE__ */ jsxRuntime.jsx(EmailLogo, { src: logoUrl, alt: l.logoAlt }),
|
|
7098
|
-
|
|
7320
|
+
hasText7(topNotice) && /* @__PURE__ */ jsxRuntime.jsx(
|
|
7099
7321
|
"div",
|
|
7100
7322
|
{
|
|
7101
7323
|
style: {
|
|
@@ -7154,7 +7376,7 @@ function PartnerBookingCreatedEmail({
|
|
|
7154
7376
|
}
|
|
7155
7377
|
);
|
|
7156
7378
|
}
|
|
7157
|
-
var
|
|
7379
|
+
var DEFAULT_LABELS12 = {
|
|
7158
7380
|
logoAlt: "PlanetaEXO",
|
|
7159
7381
|
greeting: (name) => `Hi ${name},`,
|
|
7160
7382
|
introMessage: "",
|
|
@@ -7197,7 +7419,7 @@ function PaymentReceiptEmail({
|
|
|
7197
7419
|
labels,
|
|
7198
7420
|
className
|
|
7199
7421
|
}) {
|
|
7200
|
-
const l = __spreadValues(__spreadValues({},
|
|
7422
|
+
const l = __spreadValues(__spreadValues({}, DEFAULT_LABELS12), labels);
|
|
7201
7423
|
const travellersLine = travellers.filter((s) => s.trim().length > 0).join(", ");
|
|
7202
7424
|
const interestRow = chargedAmount && chargedAmount !== amount;
|
|
7203
7425
|
const receiptRows = [
|
|
@@ -7341,24 +7563,24 @@ function PaymentReceiptEmail({
|
|
|
7341
7563
|
}
|
|
7342
7564
|
);
|
|
7343
7565
|
}
|
|
7344
|
-
var
|
|
7566
|
+
var INLINE_LINK_STYLE8 = {
|
|
7345
7567
|
color: emailTokens.primary,
|
|
7346
7568
|
textDecoration: "underline"
|
|
7347
7569
|
};
|
|
7348
|
-
function
|
|
7570
|
+
function renderWhatsappLink8(contact, label) {
|
|
7349
7571
|
if (contact.whatsappUrl) {
|
|
7350
|
-
return /* @__PURE__ */ jsxRuntime.jsx("a", { href: contact.whatsappUrl, style:
|
|
7572
|
+
return /* @__PURE__ */ jsxRuntime.jsx("a", { href: contact.whatsappUrl, style: INLINE_LINK_STYLE8, children: label });
|
|
7351
7573
|
}
|
|
7352
7574
|
return label;
|
|
7353
7575
|
}
|
|
7354
|
-
function
|
|
7576
|
+
function renderEmailLink8(contact, label) {
|
|
7355
7577
|
if (contact.email) {
|
|
7356
|
-
return /* @__PURE__ */ jsxRuntime.jsx("a", { href: `mailto:${contact.email}`, style:
|
|
7578
|
+
return /* @__PURE__ */ jsxRuntime.jsx("a", { href: `mailto:${contact.email}`, style: INLINE_LINK_STYLE8, children: label });
|
|
7357
7579
|
}
|
|
7358
7580
|
return label;
|
|
7359
7581
|
}
|
|
7360
7582
|
var EMPTY_CLOSING_ALTERNATIVE = (_agentName, _contact) => null;
|
|
7361
|
-
var
|
|
7583
|
+
var DEFAULT_LABELS13 = {
|
|
7362
7584
|
logoAlt: "PlanetaEXO",
|
|
7363
7585
|
greeting: (name) => `Hi ${name},`,
|
|
7364
7586
|
intermediateHello: "Hope you're doing well.",
|
|
@@ -7373,9 +7595,9 @@ var DEFAULT_LABELS12 = {
|
|
|
7373
7595
|
"If you need any assistance or would like to discuss your payment, feel free to contact your agent ",
|
|
7374
7596
|
agentName,
|
|
7375
7597
|
" via ",
|
|
7376
|
-
|
|
7598
|
+
renderWhatsappLink8(contact, "WhatsApp"),
|
|
7377
7599
|
" or ",
|
|
7378
|
-
|
|
7600
|
+
renderEmailLink8(contact, "email"),
|
|
7379
7601
|
"."
|
|
7380
7602
|
] }),
|
|
7381
7603
|
closingNoAgent: "If you need any assistance or would like to discuss your payment, feel free to contact us via WhatsApp or email.",
|
|
@@ -7419,9 +7641,9 @@ var DEFAULT_LABELS12 = {
|
|
|
7419
7641
|
"If you are experiencing any issues with payment or need additional time, please contact your agent ",
|
|
7420
7642
|
agentName,
|
|
7421
7643
|
" via ",
|
|
7422
|
-
|
|
7644
|
+
renderWhatsappLink8(contact, "WhatsApp"),
|
|
7423
7645
|
" or ",
|
|
7424
|
-
|
|
7646
|
+
renderEmailLink8(contact, "email"),
|
|
7425
7647
|
". We'll be happy to assist."
|
|
7426
7648
|
] })
|
|
7427
7649
|
}
|
|
@@ -7445,7 +7667,7 @@ function PaymentReminderEmail({
|
|
|
7445
7667
|
}) {
|
|
7446
7668
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s;
|
|
7447
7669
|
const lOverride = labels != null ? labels : {};
|
|
7448
|
-
const variantDefaults =
|
|
7670
|
+
const variantDefaults = DEFAULT_LABELS13.variants[variant];
|
|
7449
7671
|
const variantOverride = (_b = (_a = lOverride.variants) == null ? void 0 : _a[variant]) != null ? _b : {};
|
|
7450
7672
|
const variantLabels = {
|
|
7451
7673
|
intro: (_c = variantOverride.intro) != null ? _c : variantDefaults.intro,
|
|
@@ -7455,19 +7677,19 @@ function PaymentReminderEmail({
|
|
|
7455
7677
|
closingAlternative: (_f = variantOverride.closingAlternative) != null ? _f : variantDefaults.closingAlternative
|
|
7456
7678
|
};
|
|
7457
7679
|
const l = {
|
|
7458
|
-
logoAlt: (_g = lOverride.logoAlt) != null ? _g :
|
|
7459
|
-
greeting: (_h = lOverride.greeting) != null ? _h :
|
|
7460
|
-
intermediateHello: (_i = lOverride.intermediateHello) != null ? _i :
|
|
7461
|
-
bookingSummaryHeader: (_j = lOverride.bookingSummaryHeader) != null ? _j :
|
|
7462
|
-
amountAlreadyPaidLabel: (_k = lOverride.amountAlreadyPaidLabel) != null ? _k :
|
|
7463
|
-
remainingBalanceDueLabel: (_l = lOverride.remainingBalanceDueLabel) != null ? _l :
|
|
7464
|
-
totalBookingAmountLabel: (_m = lOverride.totalBookingAmountLabel) != null ? _m :
|
|
7465
|
-
paymentDetailsHeading: (_n = lOverride.paymentDetailsHeading) != null ? _n :
|
|
7466
|
-
ctaLabel: (_o = lOverride.ctaLabel) != null ? _o :
|
|
7467
|
-
teamSignature: (_p = lOverride.teamSignature) != null ? _p :
|
|
7468
|
-
closingAgent: (_q = lOverride.closingAgent) != null ? _q :
|
|
7469
|
-
closingNoAgent: (_r = lOverride.closingNoAgent) != null ? _r :
|
|
7470
|
-
adventureCard: __spreadValues(__spreadValues({},
|
|
7680
|
+
logoAlt: (_g = lOverride.logoAlt) != null ? _g : DEFAULT_LABELS13.logoAlt,
|
|
7681
|
+
greeting: (_h = lOverride.greeting) != null ? _h : DEFAULT_LABELS13.greeting,
|
|
7682
|
+
intermediateHello: (_i = lOverride.intermediateHello) != null ? _i : DEFAULT_LABELS13.intermediateHello,
|
|
7683
|
+
bookingSummaryHeader: (_j = lOverride.bookingSummaryHeader) != null ? _j : DEFAULT_LABELS13.bookingSummaryHeader,
|
|
7684
|
+
amountAlreadyPaidLabel: (_k = lOverride.amountAlreadyPaidLabel) != null ? _k : DEFAULT_LABELS13.amountAlreadyPaidLabel,
|
|
7685
|
+
remainingBalanceDueLabel: (_l = lOverride.remainingBalanceDueLabel) != null ? _l : DEFAULT_LABELS13.remainingBalanceDueLabel,
|
|
7686
|
+
totalBookingAmountLabel: (_m = lOverride.totalBookingAmountLabel) != null ? _m : DEFAULT_LABELS13.totalBookingAmountLabel,
|
|
7687
|
+
paymentDetailsHeading: (_n = lOverride.paymentDetailsHeading) != null ? _n : DEFAULT_LABELS13.paymentDetailsHeading,
|
|
7688
|
+
ctaLabel: (_o = lOverride.ctaLabel) != null ? _o : DEFAULT_LABELS13.ctaLabel,
|
|
7689
|
+
teamSignature: (_p = lOverride.teamSignature) != null ? _p : DEFAULT_LABELS13.teamSignature,
|
|
7690
|
+
closingAgent: (_q = lOverride.closingAgent) != null ? _q : DEFAULT_LABELS13.closingAgent,
|
|
7691
|
+
closingNoAgent: (_r = lOverride.closingNoAgent) != null ? _r : DEFAULT_LABELS13.closingNoAgent,
|
|
7692
|
+
adventureCard: __spreadValues(__spreadValues({}, DEFAULT_LABELS13.adventureCard), (_s = lOverride.adventureCard) != null ? _s : {})
|
|
7471
7693
|
};
|
|
7472
7694
|
const ctaStyle = {
|
|
7473
7695
|
display: "inline-block",
|
|
@@ -8748,7 +8970,7 @@ function validateCpf(value) {
|
|
|
8748
8970
|
if (secondDigit !== parseInt(digits[10], 10)) return false;
|
|
8749
8971
|
return true;
|
|
8750
8972
|
}
|
|
8751
|
-
var
|
|
8973
|
+
var DEFAULT_LABELS14 = {
|
|
8752
8974
|
formSubtitle: "To confirm your participation, please complete this short form. It's required for all travellers and helps us coordinate logistics with our local partners and tailor the experience to you.",
|
|
8753
8975
|
detailsSectionTitle: "Your details",
|
|
8754
8976
|
tripInfoSectionTitle: "Trip info",
|
|
@@ -9492,7 +9714,7 @@ function RegistrationForm({
|
|
|
9492
9714
|
}) {
|
|
9493
9715
|
var _a;
|
|
9494
9716
|
const L = React32__namespace.useMemo(
|
|
9495
|
-
() => __spreadValues(__spreadValues({},
|
|
9717
|
+
() => __spreadValues(__spreadValues({}, DEFAULT_LABELS14), labels != null ? labels : {}),
|
|
9496
9718
|
[labels]
|
|
9497
9719
|
);
|
|
9498
9720
|
const sortedFields = React32__namespace.useMemo(
|
|
@@ -19138,6 +19360,7 @@ exports.BookingCreatedEmail = BookingCreatedEmail;
|
|
|
19138
19360
|
exports.BookingDetails = BookingDetails;
|
|
19139
19361
|
exports.BookingForm = BookingForm;
|
|
19140
19362
|
exports.BookingOtpEmail = BookingOtpEmail;
|
|
19363
|
+
exports.BookingPartialCancellationEmail = BookingPartialCancellationEmail;
|
|
19141
19364
|
exports.BookingPaymentConfirmationEmail = BookingPaymentConfirmationEmail;
|
|
19142
19365
|
exports.BookingShell = BookingShell;
|
|
19143
19366
|
exports.BookingSummary = BookingSummary;
|