@planetaexo/design-system 0.66.0 → 0.68.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 +317 -132
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +74 -1
- package/dist/index.d.ts +74 -1
- package/dist/index.js +317 -133
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1483,7 +1483,7 @@ function AdventureCard({
|
|
|
1483
1483
|
adventure.rooms && adventure.rooms.length > 0 && /* @__PURE__ */ jsx("div", { className: "flex flex-col gap-5 mt-1", children: adventure.rooms.map((room, i) => {
|
|
1484
1484
|
var _a2, _b2;
|
|
1485
1485
|
const bedLabel = (_b2 = (_a2 = adventure.bedArrangementLabels) == null ? void 0 : _a2[room.bedArrangement]) != null ? _b2 : room.bedArrangement === "DOUBLE" ? "Double" : room.bedArrangement === "TWIN" ? "Twin" : room.bedArrangement === "SINGLE" ? "Single" : "Triple";
|
|
1486
|
-
const heading = adventure.accommodationRoomHeading ? adventure.accommodationRoomHeading(room.
|
|
1486
|
+
const heading = adventure.accommodationRoomHeading ? adventure.accommodationRoomHeading(room.accommodationName) : `Accommodation: ${room.accommodationName}`;
|
|
1487
1487
|
return /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-2", children: [
|
|
1488
1488
|
/* @__PURE__ */ jsx("h4", { className: "text-lg font-semibold text-foreground font-heading", children: heading }),
|
|
1489
1489
|
room.imageUrl && // eslint-disable-next-line @next/next/no-img-element
|
|
@@ -1495,9 +1495,8 @@ function AdventureCard({
|
|
|
1495
1495
|
className: "w-full h-auto max-w-full rounded"
|
|
1496
1496
|
}
|
|
1497
1497
|
),
|
|
1498
|
-
/* @__PURE__ */
|
|
1499
|
-
|
|
1500
|
-
/* @__PURE__ */ jsx("span", { children: room.accommodationName }),
|
|
1498
|
+
/* @__PURE__ */ jsxs("div", { className: "text-base font-semibold text-foreground flex items-center gap-2 flex-wrap", children: [
|
|
1499
|
+
/* @__PURE__ */ jsx("span", { children: `${room.qty}\xD7 ${room.roomName}` }),
|
|
1501
1500
|
/* @__PURE__ */ jsx("span", { className: "inline-block px-2 py-0.5 text-xs font-semibold bg-primary/10 text-primary rounded uppercase tracking-wide", children: bedLabel })
|
|
1502
1501
|
] }),
|
|
1503
1502
|
room.description && /* @__PURE__ */ jsx("p", { className: "text-sm text-foreground/70 leading-snug", children: room.description })
|
|
@@ -4556,7 +4555,7 @@ function BookingAdventureCard({
|
|
|
4556
4555
|
lineHeight: "1.3",
|
|
4557
4556
|
margin: "0 0 8px 0"
|
|
4558
4557
|
},
|
|
4559
|
-
children: l.accommodationRoomHeading(room.
|
|
4558
|
+
children: l.accommodationRoomHeading(room.accommodationName)
|
|
4560
4559
|
}
|
|
4561
4560
|
),
|
|
4562
4561
|
room.imageUrl && /* @__PURE__ */ jsx("div", { style: { marginBottom: "8px" }, children: /* @__PURE__ */ jsx(
|
|
@@ -4585,27 +4584,23 @@ function BookingAdventureCard({
|
|
|
4585
4584
|
children: `${room.qty}\xD7 ${room.roomName}`
|
|
4586
4585
|
}
|
|
4587
4586
|
),
|
|
4588
|
-
/* @__PURE__ */
|
|
4589
|
-
|
|
4590
|
-
|
|
4591
|
-
|
|
4592
|
-
|
|
4593
|
-
|
|
4594
|
-
|
|
4595
|
-
|
|
4596
|
-
|
|
4597
|
-
|
|
4598
|
-
|
|
4599
|
-
|
|
4600
|
-
|
|
4601
|
-
|
|
4602
|
-
|
|
4603
|
-
|
|
4604
|
-
|
|
4605
|
-
children: l.bedArrangementLabels[room.bedArrangement]
|
|
4606
|
-
}
|
|
4607
|
-
)
|
|
4608
|
-
] }),
|
|
4587
|
+
/* @__PURE__ */ jsx("div", { style: { fontSize: "12px", color: emailTokens.mutedForeground }, children: /* @__PURE__ */ jsx(
|
|
4588
|
+
"span",
|
|
4589
|
+
{
|
|
4590
|
+
style: {
|
|
4591
|
+
display: "inline-block",
|
|
4592
|
+
padding: "1px 6px",
|
|
4593
|
+
fontSize: "10px",
|
|
4594
|
+
fontWeight: 600,
|
|
4595
|
+
color: emailTokens.primary,
|
|
4596
|
+
backgroundColor: emailTokens.primaryLight,
|
|
4597
|
+
borderRadius: "4px",
|
|
4598
|
+
textTransform: "uppercase",
|
|
4599
|
+
letterSpacing: "0.05em"
|
|
4600
|
+
},
|
|
4601
|
+
children: l.bedArrangementLabels[room.bedArrangement]
|
|
4602
|
+
}
|
|
4603
|
+
) }),
|
|
4609
4604
|
room.description && /* @__PURE__ */ jsx(
|
|
4610
4605
|
"div",
|
|
4611
4606
|
{
|
|
@@ -5909,6 +5904,195 @@ function BookingCancellationEmail({
|
|
|
5909
5904
|
}
|
|
5910
5905
|
);
|
|
5911
5906
|
}
|
|
5907
|
+
var INLINE_LINK_STYLE2 = {
|
|
5908
|
+
color: emailTokens.primary,
|
|
5909
|
+
textDecoration: "underline"
|
|
5910
|
+
};
|
|
5911
|
+
function renderWhatsappLink2(contact, label) {
|
|
5912
|
+
if (contact.whatsappUrl) {
|
|
5913
|
+
return /* @__PURE__ */ jsx("a", { href: contact.whatsappUrl, style: INLINE_LINK_STYLE2, children: label });
|
|
5914
|
+
}
|
|
5915
|
+
return label;
|
|
5916
|
+
}
|
|
5917
|
+
function renderEmailLink2(contact, label) {
|
|
5918
|
+
if (contact.email) {
|
|
5919
|
+
return /* @__PURE__ */ jsx("a", { href: `mailto:${contact.email}`, style: INLINE_LINK_STYLE2, children: label });
|
|
5920
|
+
}
|
|
5921
|
+
return label;
|
|
5922
|
+
}
|
|
5923
|
+
function hasText2(s) {
|
|
5924
|
+
return typeof s === "string" && s.trim().length > 0;
|
|
5925
|
+
}
|
|
5926
|
+
var DEFAULT_LABELS6 = {
|
|
5927
|
+
logoAlt: "PlanetaEXO",
|
|
5928
|
+
greeting: (recipientName) => `Hi ${recipientName},`,
|
|
5929
|
+
title: "We've received your cancellation request",
|
|
5930
|
+
intro: (bookingRef) => `We've received your request to cancel booking ${bookingRef}. Our team will review it according to our cancellation policy and get back to you within 2 business days.`,
|
|
5931
|
+
summaryHeading: "Your request",
|
|
5932
|
+
bookingNumberLabel: "Booking number",
|
|
5933
|
+
adventuresLabel: "Adventure",
|
|
5934
|
+
datesLabel: "Dates",
|
|
5935
|
+
travellersLabel: "Travellers",
|
|
5936
|
+
nextStepsHeading: "What happens next",
|
|
5937
|
+
nextStepsNote: "No action is needed from you right now. We'll be in touch soon with the next steps.",
|
|
5938
|
+
closingAgent: (agentName, contact) => /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
5939
|
+
"If you have any questions, your agent ",
|
|
5940
|
+
agentName,
|
|
5941
|
+
" is available via",
|
|
5942
|
+
" ",
|
|
5943
|
+
renderWhatsappLink2(contact, "WhatsApp"),
|
|
5944
|
+
" or ",
|
|
5945
|
+
renderEmailLink2(contact, "email"),
|
|
5946
|
+
"."
|
|
5947
|
+
] }),
|
|
5948
|
+
closingNoAgent: "If you have any questions, our team is available via WhatsApp or email.",
|
|
5949
|
+
teamSignature: "The PlanetaEXO Team"
|
|
5950
|
+
};
|
|
5951
|
+
function CancellationRequestReceivedEmail({
|
|
5952
|
+
recipientName,
|
|
5953
|
+
bookingRef,
|
|
5954
|
+
adventures,
|
|
5955
|
+
travellersCount,
|
|
5956
|
+
agentName,
|
|
5957
|
+
agentContactLinks,
|
|
5958
|
+
logoUrl,
|
|
5959
|
+
labels,
|
|
5960
|
+
className
|
|
5961
|
+
}) {
|
|
5962
|
+
const l = __spreadValues(__spreadValues({}, DEFAULT_LABELS6), labels);
|
|
5963
|
+
const adventureLines = adventures.map((a) => a.name).join("\n");
|
|
5964
|
+
const dateLines = adventures.map((a) => `${a.startDate} \u2013 ${a.endDate}`).join("\n");
|
|
5965
|
+
const summaryRows = [
|
|
5966
|
+
{
|
|
5967
|
+
label: l.bookingNumberLabel,
|
|
5968
|
+
value: `#${bookingRef}`,
|
|
5969
|
+
valueColor: emailTokens.primary
|
|
5970
|
+
},
|
|
5971
|
+
{ label: l.adventuresLabel, value: adventureLines },
|
|
5972
|
+
{ label: l.datesLabel, value: dateLines },
|
|
5973
|
+
{ label: l.travellersLabel, value: travellersCount }
|
|
5974
|
+
];
|
|
5975
|
+
const agentNameTrimmed = agentName == null ? void 0 : agentName.trim();
|
|
5976
|
+
const contact = agentContactLinks != null ? agentContactLinks : {};
|
|
5977
|
+
const closingNode = agentNameTrimmed ? l.closingAgent(agentNameTrimmed, contact) : l.closingNoAgent;
|
|
5978
|
+
const sectionDivider = /* @__PURE__ */ jsx(
|
|
5979
|
+
"hr",
|
|
5980
|
+
{
|
|
5981
|
+
style: {
|
|
5982
|
+
border: "none",
|
|
5983
|
+
borderTop: `1px solid ${emailTokens.border}`,
|
|
5984
|
+
marginTop: 0,
|
|
5985
|
+
marginBottom: "24px"
|
|
5986
|
+
}
|
|
5987
|
+
}
|
|
5988
|
+
);
|
|
5989
|
+
return /* @__PURE__ */ jsxs(
|
|
5990
|
+
"div",
|
|
5991
|
+
{
|
|
5992
|
+
style: {
|
|
5993
|
+
maxWidth: "576px",
|
|
5994
|
+
margin: "0 auto",
|
|
5995
|
+
backgroundColor: emailTokens.white,
|
|
5996
|
+
color: emailTokens.foreground,
|
|
5997
|
+
fontFamily: emailTokens.fontFamily,
|
|
5998
|
+
fontSize: "16px",
|
|
5999
|
+
lineHeight: "1.6",
|
|
6000
|
+
border: `1px solid ${emailTokens.border}`,
|
|
6001
|
+
borderRadius: "12px",
|
|
6002
|
+
overflow: "hidden",
|
|
6003
|
+
padding: "32px"
|
|
6004
|
+
},
|
|
6005
|
+
className,
|
|
6006
|
+
children: [
|
|
6007
|
+
/* @__PURE__ */ jsx(EmailLogo, { src: logoUrl, alt: l.logoAlt }),
|
|
6008
|
+
/* @__PURE__ */ jsx("p", { style: { marginBottom: "16px" }, children: l.greeting(recipientName) }),
|
|
6009
|
+
/* @__PURE__ */ jsx(
|
|
6010
|
+
"p",
|
|
6011
|
+
{
|
|
6012
|
+
style: {
|
|
6013
|
+
marginTop: 0,
|
|
6014
|
+
marginBottom: "16px",
|
|
6015
|
+
fontWeight: 700,
|
|
6016
|
+
color: emailTokens.foreground,
|
|
6017
|
+
fontSize: "20px",
|
|
6018
|
+
lineHeight: "1.3",
|
|
6019
|
+
fontFamily: emailTokens.fontFamily
|
|
6020
|
+
},
|
|
6021
|
+
children: l.title
|
|
6022
|
+
}
|
|
6023
|
+
),
|
|
6024
|
+
/* @__PURE__ */ jsx("p", { style: { marginBottom: "24px" }, children: l.intro(`#${bookingRef}`) }),
|
|
6025
|
+
sectionDivider,
|
|
6026
|
+
/* @__PURE__ */ jsx(BookingSummary, { heading: l.summaryHeading, rows: summaryRows }),
|
|
6027
|
+
(hasText2(l.nextStepsHeading) || hasText2(l.nextStepsNote)) && /* @__PURE__ */ jsxs(
|
|
6028
|
+
"div",
|
|
6029
|
+
{
|
|
6030
|
+
style: {
|
|
6031
|
+
marginBottom: "24px",
|
|
6032
|
+
padding: "16px 20px",
|
|
6033
|
+
borderRadius: "12px",
|
|
6034
|
+
border: `1px solid ${emailTokens.border}`,
|
|
6035
|
+
backgroundColor: emailTokens.muted
|
|
6036
|
+
},
|
|
6037
|
+
children: [
|
|
6038
|
+
hasText2(l.nextStepsHeading) && /* @__PURE__ */ jsx(
|
|
6039
|
+
"p",
|
|
6040
|
+
{
|
|
6041
|
+
style: {
|
|
6042
|
+
margin: "0 0 8px 0",
|
|
6043
|
+
fontSize: "12px",
|
|
6044
|
+
fontWeight: 700,
|
|
6045
|
+
color: emailTokens.mutedForeground,
|
|
6046
|
+
textTransform: "uppercase",
|
|
6047
|
+
letterSpacing: "0.08em",
|
|
6048
|
+
fontFamily: emailTokens.fontFamily
|
|
6049
|
+
},
|
|
6050
|
+
children: l.nextStepsHeading
|
|
6051
|
+
}
|
|
6052
|
+
),
|
|
6053
|
+
hasText2(l.nextStepsNote) && /* @__PURE__ */ jsx(
|
|
6054
|
+
"p",
|
|
6055
|
+
{
|
|
6056
|
+
style: {
|
|
6057
|
+
margin: 0,
|
|
6058
|
+
fontSize: "14px",
|
|
6059
|
+
color: emailTokens.bodyText
|
|
6060
|
+
},
|
|
6061
|
+
children: l.nextStepsNote
|
|
6062
|
+
}
|
|
6063
|
+
)
|
|
6064
|
+
]
|
|
6065
|
+
}
|
|
6066
|
+
),
|
|
6067
|
+
sectionDivider,
|
|
6068
|
+
/* @__PURE__ */ jsx(
|
|
6069
|
+
"p",
|
|
6070
|
+
{
|
|
6071
|
+
style: {
|
|
6072
|
+
marginBottom: "16px",
|
|
6073
|
+
fontSize: "14px",
|
|
6074
|
+
fontWeight: 700,
|
|
6075
|
+
color: emailTokens.bodyText
|
|
6076
|
+
},
|
|
6077
|
+
children: closingNode
|
|
6078
|
+
}
|
|
6079
|
+
),
|
|
6080
|
+
/* @__PURE__ */ jsx(
|
|
6081
|
+
"p",
|
|
6082
|
+
{
|
|
6083
|
+
style: {
|
|
6084
|
+
marginTop: 0,
|
|
6085
|
+
marginBottom: 0,
|
|
6086
|
+
fontSize: "14px",
|
|
6087
|
+
color: emailTokens.bodyText
|
|
6088
|
+
},
|
|
6089
|
+
children: l.teamSignature
|
|
6090
|
+
}
|
|
6091
|
+
)
|
|
6092
|
+
]
|
|
6093
|
+
}
|
|
6094
|
+
);
|
|
6095
|
+
}
|
|
5912
6096
|
function RegistrationProgressBar({
|
|
5913
6097
|
tone,
|
|
5914
6098
|
pct,
|
|
@@ -5971,23 +6155,23 @@ function RegistrationProgressBar({
|
|
|
5971
6155
|
}
|
|
5972
6156
|
) });
|
|
5973
6157
|
}
|
|
5974
|
-
var
|
|
6158
|
+
var INLINE_LINK_STYLE3 = {
|
|
5975
6159
|
color: emailTokens.primary,
|
|
5976
6160
|
textDecoration: "underline"
|
|
5977
6161
|
};
|
|
5978
|
-
function
|
|
6162
|
+
function renderWhatsappLink3(contact, label) {
|
|
5979
6163
|
if (contact.whatsappUrl) {
|
|
5980
|
-
return /* @__PURE__ */ jsx("a", { href: contact.whatsappUrl, style:
|
|
6164
|
+
return /* @__PURE__ */ jsx("a", { href: contact.whatsappUrl, style: INLINE_LINK_STYLE3, children: label });
|
|
5981
6165
|
}
|
|
5982
6166
|
return label;
|
|
5983
6167
|
}
|
|
5984
|
-
function
|
|
6168
|
+
function renderEmailLink3(contact, label) {
|
|
5985
6169
|
if (contact.email) {
|
|
5986
|
-
return /* @__PURE__ */ jsx("a", { href: `mailto:${contact.email}`, style:
|
|
6170
|
+
return /* @__PURE__ */ jsx("a", { href: `mailto:${contact.email}`, style: INLINE_LINK_STYLE3, children: label });
|
|
5987
6171
|
}
|
|
5988
6172
|
return label;
|
|
5989
6173
|
}
|
|
5990
|
-
var
|
|
6174
|
+
var DEFAULT_LABELS7 = {
|
|
5991
6175
|
logoAlt: "PlanetaEXO",
|
|
5992
6176
|
greeting: (n) => `Hi ${n},`,
|
|
5993
6177
|
intermediateHello: "Hope you're doing well.",
|
|
@@ -6006,9 +6190,9 @@ var DEFAULT_LABELS6 = {
|
|
|
6006
6190
|
"If you need any assistance with the traveller registrations, feel free to contact your agent ",
|
|
6007
6191
|
agentName,
|
|
6008
6192
|
" via ",
|
|
6009
|
-
|
|
6193
|
+
renderWhatsappLink3(contact, "WhatsApp"),
|
|
6010
6194
|
" or ",
|
|
6011
|
-
|
|
6195
|
+
renderEmailLink3(contact, "email"),
|
|
6012
6196
|
"."
|
|
6013
6197
|
] }),
|
|
6014
6198
|
closingNoAgent: "If you need any assistance with the traveller registrations, feel free to contact us via WhatsApp or email.",
|
|
@@ -6081,7 +6265,7 @@ var DEFAULT_LABELS6 = {
|
|
|
6081
6265
|
}
|
|
6082
6266
|
}
|
|
6083
6267
|
};
|
|
6084
|
-
function
|
|
6268
|
+
function hasText3(s) {
|
|
6085
6269
|
return typeof s === "string" && s.trim().length > 0;
|
|
6086
6270
|
}
|
|
6087
6271
|
function hasItems(arr) {
|
|
@@ -6101,12 +6285,12 @@ function RegistrationReminderEmail({
|
|
|
6101
6285
|
className
|
|
6102
6286
|
}) {
|
|
6103
6287
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
6104
|
-
const l = __spreadProps(__spreadValues(__spreadValues({},
|
|
6288
|
+
const l = __spreadProps(__spreadValues(__spreadValues({}, DEFAULT_LABELS7), labels), {
|
|
6105
6289
|
variants: {
|
|
6106
|
-
d_minus_30: __spreadValues(__spreadValues({},
|
|
6107
|
-
d_minus_15: __spreadValues(__spreadValues({},
|
|
6108
|
-
d_minus_7: __spreadValues(__spreadValues({},
|
|
6109
|
-
d_minus_2: __spreadValues(__spreadValues({},
|
|
6290
|
+
d_minus_30: __spreadValues(__spreadValues({}, DEFAULT_LABELS7.variants.d_minus_30), (_b = (_a = labels == null ? void 0 : labels.variants) == null ? void 0 : _a.d_minus_30) != null ? _b : {}),
|
|
6291
|
+
d_minus_15: __spreadValues(__spreadValues({}, DEFAULT_LABELS7.variants.d_minus_15), (_d = (_c = labels == null ? void 0 : labels.variants) == null ? void 0 : _c.d_minus_15) != null ? _d : {}),
|
|
6292
|
+
d_minus_7: __spreadValues(__spreadValues({}, DEFAULT_LABELS7.variants.d_minus_7), (_f = (_e = labels == null ? void 0 : labels.variants) == null ? void 0 : _e.d_minus_7) != null ? _f : {}),
|
|
6293
|
+
d_minus_2: __spreadValues(__spreadValues({}, DEFAULT_LABELS7.variants.d_minus_2), (_h = (_g = labels == null ? void 0 : labels.variants) == null ? void 0 : _g.d_minus_2) != null ? _h : {})
|
|
6110
6294
|
}
|
|
6111
6295
|
});
|
|
6112
6296
|
const v = l.variants[slug];
|
|
@@ -6127,14 +6311,14 @@ function RegistrationReminderEmail({
|
|
|
6127
6311
|
{ label: l.travellersRowLabel, value: l.travellersCountLabel(totalTravellers) },
|
|
6128
6312
|
...(agent == null ? void 0 : agent.name) ? [{ label: l.agentRowLabel, value: agent.name }] : []
|
|
6129
6313
|
];
|
|
6130
|
-
const showPleaseNote =
|
|
6131
|
-
const showBookerCoord =
|
|
6132
|
-
const showEarlyBenefit =
|
|
6133
|
-
const showImportant =
|
|
6134
|
-
const showFinalTagline =
|
|
6135
|
-
|
|
6136
|
-
const showDisregard =
|
|
6137
|
-
const showClosingThanks =
|
|
6314
|
+
const showPleaseNote = hasText3(v.pleaseNoteHeader) && hasItems(v.pleaseNoteBullets);
|
|
6315
|
+
const showBookerCoord = hasText3(v.bookerCoordinationNote);
|
|
6316
|
+
const showEarlyBenefit = hasText3(v.earlyCompletionBenefit);
|
|
6317
|
+
const showImportant = hasText3(v.importantNote);
|
|
6318
|
+
const showFinalTagline = hasText3(v.finalReminderTagline);
|
|
6319
|
+
hasText3(v.multiTravellerNote);
|
|
6320
|
+
const showDisregard = hasText3(v.disregardIfCompleted);
|
|
6321
|
+
const showClosingThanks = hasText3(v.closingThanks);
|
|
6138
6322
|
const sectionDivider = /* @__PURE__ */ jsx(
|
|
6139
6323
|
"hr",
|
|
6140
6324
|
{
|
|
@@ -6146,7 +6330,7 @@ function RegistrationReminderEmail({
|
|
|
6146
6330
|
}
|
|
6147
6331
|
}
|
|
6148
6332
|
);
|
|
6149
|
-
const hasIntroBlock =
|
|
6333
|
+
const hasIntroBlock = hasText3(v.intro) || hasText3(v.contextNote);
|
|
6150
6334
|
const hasPleaseNote = showPleaseNote;
|
|
6151
6335
|
const hasD7Highlight = showImportant && slug === "d_minus_7";
|
|
6152
6336
|
const hasD2Highlight = showFinalTagline || showImportant && slug === "d_minus_2";
|
|
@@ -6170,9 +6354,9 @@ function RegistrationReminderEmail({
|
|
|
6170
6354
|
children: [
|
|
6171
6355
|
/* @__PURE__ */ jsx(EmailLogo, { src: logoUrl, alt: l.logoAlt }),
|
|
6172
6356
|
/* @__PURE__ */ jsx("p", { style: { marginBottom: "16px" }, children: l.greeting(recipientFirstName) }),
|
|
6173
|
-
|
|
6174
|
-
|
|
6175
|
-
|
|
6357
|
+
hasText3(l.intermediateHello) && /* @__PURE__ */ jsx("p", { style: { marginBottom: "16px" }, children: l.intermediateHello }),
|
|
6358
|
+
hasText3(v.intro) && /* @__PURE__ */ jsx("p", { style: { marginBottom: "16px" }, children: v.intro }),
|
|
6359
|
+
hasText3(v.contextNote) && /* @__PURE__ */ jsx("p", { style: { marginBottom: "16px" }, children: v.contextNote }),
|
|
6176
6360
|
hasIntroBlock && sectionDivider,
|
|
6177
6361
|
slug === "d_minus_15" && showBookerCoord && /* @__PURE__ */ jsx("p", { style: { marginBottom: "16px" }, children: v.bookerCoordinationNote }),
|
|
6178
6362
|
hasItems(adventures) && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
@@ -6190,7 +6374,7 @@ function RegistrationReminderEmail({
|
|
|
6190
6374
|
children: l.progressHeader
|
|
6191
6375
|
}
|
|
6192
6376
|
),
|
|
6193
|
-
|
|
6377
|
+
hasText3(v.progressIntro) && /* @__PURE__ */ jsx("p", { style: { marginBottom: "16px", color: emailTokens.bodyText }, children: v.progressIntro }),
|
|
6194
6378
|
adventures.map((adv, i) => /* @__PURE__ */ jsxs(
|
|
6195
6379
|
"div",
|
|
6196
6380
|
{
|
|
@@ -6326,23 +6510,23 @@ function RegistrationReminderEmail({
|
|
|
6326
6510
|
}
|
|
6327
6511
|
);
|
|
6328
6512
|
}
|
|
6329
|
-
var
|
|
6513
|
+
var INLINE_LINK_STYLE4 = {
|
|
6330
6514
|
color: emailTokens.primary,
|
|
6331
6515
|
textDecoration: "underline"
|
|
6332
6516
|
};
|
|
6333
|
-
function
|
|
6517
|
+
function renderWhatsappLink4(contact, label) {
|
|
6334
6518
|
if (contact.whatsappUrl) {
|
|
6335
|
-
return /* @__PURE__ */ jsx("a", { href: contact.whatsappUrl, style:
|
|
6519
|
+
return /* @__PURE__ */ jsx("a", { href: contact.whatsappUrl, style: INLINE_LINK_STYLE4, children: label });
|
|
6336
6520
|
}
|
|
6337
6521
|
return label;
|
|
6338
6522
|
}
|
|
6339
|
-
function
|
|
6523
|
+
function renderEmailLink4(contact, label) {
|
|
6340
6524
|
if (contact.email) {
|
|
6341
|
-
return /* @__PURE__ */ jsx("a", { href: `mailto:${contact.email}`, style:
|
|
6525
|
+
return /* @__PURE__ */ jsx("a", { href: `mailto:${contact.email}`, style: INLINE_LINK_STYLE4, children: label });
|
|
6342
6526
|
}
|
|
6343
6527
|
return label;
|
|
6344
6528
|
}
|
|
6345
|
-
var
|
|
6529
|
+
var DEFAULT_LABELS8 = {
|
|
6346
6530
|
logoAlt: "PlanetaEXO",
|
|
6347
6531
|
greeting: (n) => `Hi ${n},`,
|
|
6348
6532
|
tripDetailsHeader: "\u{1F4CB} Trip details",
|
|
@@ -6358,9 +6542,9 @@ var DEFAULT_LABELS7 = {
|
|
|
6358
6542
|
"If you have questions, your agent ",
|
|
6359
6543
|
agentName,
|
|
6360
6544
|
" is available via ",
|
|
6361
|
-
|
|
6545
|
+
renderWhatsappLink4(contact, "WhatsApp"),
|
|
6362
6546
|
" or ",
|
|
6363
|
-
|
|
6547
|
+
renderEmailLink4(contact, "email"),
|
|
6364
6548
|
"."
|
|
6365
6549
|
] }),
|
|
6366
6550
|
closingNoAgent: "If you have questions or need assistance, our team is available via WhatsApp or email.",
|
|
@@ -6408,7 +6592,7 @@ var DEFAULT_LABELS7 = {
|
|
|
6408
6592
|
}
|
|
6409
6593
|
}
|
|
6410
6594
|
};
|
|
6411
|
-
function
|
|
6595
|
+
function hasText4(s) {
|
|
6412
6596
|
return typeof s === "string" && s.trim().length > 0;
|
|
6413
6597
|
}
|
|
6414
6598
|
function RegistrationReminderIndividualEmail({
|
|
@@ -6429,12 +6613,12 @@ function RegistrationReminderIndividualEmail({
|
|
|
6429
6613
|
className
|
|
6430
6614
|
}) {
|
|
6431
6615
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
6432
|
-
const l = __spreadProps(__spreadValues(__spreadValues({},
|
|
6616
|
+
const l = __spreadProps(__spreadValues(__spreadValues({}, DEFAULT_LABELS8), labels), {
|
|
6433
6617
|
variants: {
|
|
6434
|
-
d_minus_30: __spreadValues(__spreadValues({},
|
|
6435
|
-
d_minus_15: __spreadValues(__spreadValues({},
|
|
6436
|
-
d_minus_7: __spreadValues(__spreadValues({},
|
|
6437
|
-
d_minus_2: __spreadValues(__spreadValues({},
|
|
6618
|
+
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 : {}),
|
|
6619
|
+
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 : {}),
|
|
6620
|
+
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 : {}),
|
|
6621
|
+
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 : {})
|
|
6438
6622
|
}
|
|
6439
6623
|
});
|
|
6440
6624
|
const v = l.variants[slug];
|
|
@@ -6454,7 +6638,7 @@ function RegistrationReminderIndividualEmail({
|
|
|
6454
6638
|
{ label: l.leadTravellerLabel, value: leadTravellerName },
|
|
6455
6639
|
{ label: l.adventureLabel, value: adventureName },
|
|
6456
6640
|
{ label: l.startingDateLabel, value: startDateFormatted },
|
|
6457
|
-
...
|
|
6641
|
+
...hasText4(partnerName) ? [{ label: l.partnerLabel, value: partnerName }] : []
|
|
6458
6642
|
];
|
|
6459
6643
|
const sectionDivider = /* @__PURE__ */ jsx(
|
|
6460
6644
|
"hr",
|
|
@@ -6489,7 +6673,7 @@ function RegistrationReminderIndividualEmail({
|
|
|
6489
6673
|
children: [
|
|
6490
6674
|
/* @__PURE__ */ jsx(EmailLogo, { src: logoUrl, alt: l.logoAlt }),
|
|
6491
6675
|
/* @__PURE__ */ jsx("p", { style: { marginBottom: "16px" }, children: l.greeting(recipientFirstName) }),
|
|
6492
|
-
|
|
6676
|
+
hasText4(routingNote) && /* @__PURE__ */ jsx(
|
|
6493
6677
|
"p",
|
|
6494
6678
|
{
|
|
6495
6679
|
style: {
|
|
@@ -6504,8 +6688,8 @@ function RegistrationReminderIndividualEmail({
|
|
|
6504
6688
|
}
|
|
6505
6689
|
),
|
|
6506
6690
|
/* @__PURE__ */ jsx("p", { style: { marginBottom: "16px" }, children: introText }),
|
|
6507
|
-
|
|
6508
|
-
slug === "d_minus_2" && (
|
|
6691
|
+
hasText4(v.contextNote) && /* @__PURE__ */ jsx("p", { style: { marginBottom: "16px" }, children: v.contextNote }),
|
|
6692
|
+
slug === "d_minus_2" && (hasText4(v.finalReminderTagline) || hasText4(v.consequencesNote)) && /* @__PURE__ */ jsxs(
|
|
6509
6693
|
"div",
|
|
6510
6694
|
{
|
|
6511
6695
|
style: {
|
|
@@ -6517,23 +6701,23 @@ function RegistrationReminderIndividualEmail({
|
|
|
6517
6701
|
color: "#7f1d1d"
|
|
6518
6702
|
},
|
|
6519
6703
|
children: [
|
|
6520
|
-
|
|
6704
|
+
hasText4(v.finalReminderTagline) && /* @__PURE__ */ jsx(
|
|
6521
6705
|
"p",
|
|
6522
6706
|
{
|
|
6523
6707
|
style: {
|
|
6524
6708
|
margin: 0,
|
|
6525
|
-
marginBottom:
|
|
6709
|
+
marginBottom: hasText4(v.consequencesNote) ? "8px" : 0,
|
|
6526
6710
|
fontWeight: 700
|
|
6527
6711
|
},
|
|
6528
6712
|
children: v.finalReminderTagline
|
|
6529
6713
|
}
|
|
6530
6714
|
),
|
|
6531
|
-
|
|
6715
|
+
hasText4(v.consequencesNote) && /* @__PURE__ */ jsx("p", { style: { margin: 0 }, children: v.consequencesNote })
|
|
6532
6716
|
]
|
|
6533
6717
|
}
|
|
6534
6718
|
),
|
|
6535
6719
|
/* @__PURE__ */ jsx("div", { style: { marginBottom: "24px", textAlign: "left" }, children: /* @__PURE__ */ jsx("a", { href: ctaUrl, style: ctaStyle, children: l.ctaLabel }) }),
|
|
6536
|
-
slug === "d_minus_7" &&
|
|
6720
|
+
slug === "d_minus_7" && hasText4(v.mandatoryNote) && /* @__PURE__ */ jsx(
|
|
6537
6721
|
"p",
|
|
6538
6722
|
{
|
|
6539
6723
|
style: {
|
|
@@ -6549,8 +6733,8 @@ function RegistrationReminderIndividualEmail({
|
|
|
6549
6733
|
),
|
|
6550
6734
|
sectionDivider,
|
|
6551
6735
|
/* @__PURE__ */ jsx(BookingSummary, { heading: l.tripDetailsHeader, rows: tripRows }),
|
|
6552
|
-
(slug === "d_minus_30" || slug === "d_minus_15") &&
|
|
6553
|
-
slug === "d_minus_2" &&
|
|
6736
|
+
(slug === "d_minus_30" || slug === "d_minus_15") && hasText4(v.mandatoryNote) && /* @__PURE__ */ jsx("p", { style: { marginBottom: "16px", color: emailTokens.bodyText }, children: v.mandatoryNote }),
|
|
6737
|
+
slug === "d_minus_2" && hasText4(v.disregardIfCompleted) && /* @__PURE__ */ jsx(
|
|
6554
6738
|
"p",
|
|
6555
6739
|
{
|
|
6556
6740
|
style: {
|
|
@@ -6567,29 +6751,29 @@ function RegistrationReminderIndividualEmail({
|
|
|
6567
6751
|
whatsappUrl: agent.whatsappUrl,
|
|
6568
6752
|
email: agent.email
|
|
6569
6753
|
}) : l.closingNoAgent }),
|
|
6570
|
-
|
|
6754
|
+
hasText4(v.closingThanks) && /* @__PURE__ */ jsx("p", { style: { marginBottom: "16px", fontSize: "14px", color: emailTokens.bodyText }, children: v.closingThanks }),
|
|
6571
6755
|
/* @__PURE__ */ jsx("p", { style: { marginTop: 0, marginBottom: 0, fontSize: "14px", color: emailTokens.bodyText }, children: l.teamSignature })
|
|
6572
6756
|
]
|
|
6573
6757
|
}
|
|
6574
6758
|
);
|
|
6575
6759
|
}
|
|
6576
|
-
var
|
|
6760
|
+
var INLINE_LINK_STYLE5 = {
|
|
6577
6761
|
color: emailTokens.primary,
|
|
6578
6762
|
textDecoration: "underline"
|
|
6579
6763
|
};
|
|
6580
|
-
function
|
|
6764
|
+
function renderWhatsappLink5(contact, label) {
|
|
6581
6765
|
if (contact.whatsappUrl) {
|
|
6582
|
-
return /* @__PURE__ */ jsx("a", { href: contact.whatsappUrl, style:
|
|
6766
|
+
return /* @__PURE__ */ jsx("a", { href: contact.whatsappUrl, style: INLINE_LINK_STYLE5, children: label });
|
|
6583
6767
|
}
|
|
6584
6768
|
return label;
|
|
6585
6769
|
}
|
|
6586
|
-
function
|
|
6770
|
+
function renderEmailLink5(contact, label) {
|
|
6587
6771
|
if (contact.email) {
|
|
6588
|
-
return /* @__PURE__ */ jsx("a", { href: `mailto:${contact.email}`, style:
|
|
6772
|
+
return /* @__PURE__ */ jsx("a", { href: `mailto:${contact.email}`, style: INLINE_LINK_STYLE5, children: label });
|
|
6589
6773
|
}
|
|
6590
6774
|
return label;
|
|
6591
6775
|
}
|
|
6592
|
-
var
|
|
6776
|
+
var DEFAULT_LABELS9 = {
|
|
6593
6777
|
logoAlt: "PlanetaEXO",
|
|
6594
6778
|
greeting: (n) => `Hi ${n},`,
|
|
6595
6779
|
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.`,
|
|
@@ -6611,15 +6795,15 @@ var DEFAULT_LABELS8 = {
|
|
|
6611
6795
|
agentName,
|
|
6612
6796
|
" is available via",
|
|
6613
6797
|
" ",
|
|
6614
|
-
|
|
6798
|
+
renderWhatsappLink5(contact, "WhatsApp"),
|
|
6615
6799
|
" or ",
|
|
6616
|
-
|
|
6800
|
+
renderEmailLink5(contact, "email"),
|
|
6617
6801
|
"."
|
|
6618
6802
|
] }),
|
|
6619
6803
|
closingNoAgent: "If you have any questions, our team is available via WhatsApp or email.",
|
|
6620
6804
|
teamSignature: "The PlanetaEXO Team"
|
|
6621
6805
|
};
|
|
6622
|
-
function
|
|
6806
|
+
function hasText5(s) {
|
|
6623
6807
|
return typeof s === "string" && s.trim().length > 0;
|
|
6624
6808
|
}
|
|
6625
6809
|
function PartnerRegistrationCompleteEmail({
|
|
@@ -6639,14 +6823,14 @@ function PartnerRegistrationCompleteEmail({
|
|
|
6639
6823
|
labels,
|
|
6640
6824
|
className
|
|
6641
6825
|
}) {
|
|
6642
|
-
const l = __spreadValues(__spreadValues({},
|
|
6826
|
+
const l = __spreadValues(__spreadValues({}, DEFAULT_LABELS9), labels);
|
|
6643
6827
|
const tripRows = [
|
|
6644
6828
|
{ label: l.bookingNumberLabel, value: `#${bookingNumber}`, valueColor: emailTokens.primary },
|
|
6645
6829
|
{ label: l.adventureLabel, value: adventureName },
|
|
6646
6830
|
{ label: l.datesLabel, value: dateRange },
|
|
6647
6831
|
{ label: l.partnerLabel, value: partnerName },
|
|
6648
|
-
...
|
|
6649
|
-
...
|
|
6832
|
+
...hasText5(bookingPersonName) ? [{ label: l.bookingPersonLabel, value: bookingPersonName }] : [],
|
|
6833
|
+
...hasText5(bookingPersonPassport) ? [{ label: l.passportLabel, value: bookingPersonPassport }] : []
|
|
6650
6834
|
];
|
|
6651
6835
|
const sectionDivider = /* @__PURE__ */ jsx(
|
|
6652
6836
|
"hr",
|
|
@@ -6680,7 +6864,7 @@ function PartnerRegistrationCompleteEmail({
|
|
|
6680
6864
|
className,
|
|
6681
6865
|
children: [
|
|
6682
6866
|
/* @__PURE__ */ jsx(EmailLogo, { src: logoUrl, alt: l.logoAlt }),
|
|
6683
|
-
|
|
6867
|
+
hasText5(topNotice) && /* @__PURE__ */ jsx(
|
|
6684
6868
|
"div",
|
|
6685
6869
|
{
|
|
6686
6870
|
style: {
|
|
@@ -6757,7 +6941,7 @@ function PartnerRegistrationCompleteEmail({
|
|
|
6757
6941
|
}) })
|
|
6758
6942
|
}
|
|
6759
6943
|
) : /* @__PURE__ */ jsx("p", { style: { marginTop: 0, marginBottom: "24px", color: emailTokens.bodyText }, children: l.expectationsEmptyNote }),
|
|
6760
|
-
pdfAttached &&
|
|
6944
|
+
pdfAttached && hasText5(l.pdfNote) && /* @__PURE__ */ jsx(
|
|
6761
6945
|
"div",
|
|
6762
6946
|
{
|
|
6763
6947
|
style: {
|
|
@@ -6782,26 +6966,26 @@ function PartnerRegistrationCompleteEmail({
|
|
|
6782
6966
|
}
|
|
6783
6967
|
);
|
|
6784
6968
|
}
|
|
6785
|
-
var
|
|
6969
|
+
var INLINE_LINK_STYLE6 = {
|
|
6786
6970
|
color: emailTokens.primary,
|
|
6787
6971
|
textDecoration: "underline"
|
|
6788
6972
|
};
|
|
6789
|
-
function
|
|
6973
|
+
function renderWhatsappLink6(contact, label) {
|
|
6790
6974
|
if (contact.whatsappUrl) {
|
|
6791
|
-
return /* @__PURE__ */ jsx("a", { href: contact.whatsappUrl, style:
|
|
6975
|
+
return /* @__PURE__ */ jsx("a", { href: contact.whatsappUrl, style: INLINE_LINK_STYLE6, children: label });
|
|
6792
6976
|
}
|
|
6793
6977
|
return label;
|
|
6794
6978
|
}
|
|
6795
|
-
function
|
|
6979
|
+
function renderEmailLink6(contact, label) {
|
|
6796
6980
|
if (contact.email) {
|
|
6797
|
-
return /* @__PURE__ */ jsx("a", { href: `mailto:${contact.email}`, style:
|
|
6981
|
+
return /* @__PURE__ */ jsx("a", { href: `mailto:${contact.email}`, style: INLINE_LINK_STYLE6, children: label });
|
|
6798
6982
|
}
|
|
6799
6983
|
return label;
|
|
6800
6984
|
}
|
|
6801
|
-
function
|
|
6985
|
+
function hasText6(s) {
|
|
6802
6986
|
return typeof s === "string" && s.trim().length > 0;
|
|
6803
6987
|
}
|
|
6804
|
-
var
|
|
6988
|
+
var DEFAULT_LABELS10 = {
|
|
6805
6989
|
logoAlt: "PlanetaEXO",
|
|
6806
6990
|
greeting: (n) => `Hi ${n},`,
|
|
6807
6991
|
intro: (adv) => `You have a new booking for your adventure ${adv}. Here are the details:`,
|
|
@@ -6827,9 +7011,9 @@ var DEFAULT_LABELS9 = {
|
|
|
6827
7011
|
agentName,
|
|
6828
7012
|
" is available via",
|
|
6829
7013
|
" ",
|
|
6830
|
-
|
|
7014
|
+
renderWhatsappLink6(contact, "WhatsApp"),
|
|
6831
7015
|
" or ",
|
|
6832
|
-
|
|
7016
|
+
renderEmailLink6(contact, "email"),
|
|
6833
7017
|
"."
|
|
6834
7018
|
] }),
|
|
6835
7019
|
closingNoAgent: "If you have any questions, our team is available via WhatsApp or email.",
|
|
@@ -6850,10 +7034,10 @@ function PartnerBookingCreatedEmail({
|
|
|
6850
7034
|
labels,
|
|
6851
7035
|
className
|
|
6852
7036
|
}) {
|
|
6853
|
-
const l = __spreadValues(__spreadValues({},
|
|
7037
|
+
const l = __spreadValues(__spreadValues({}, DEFAULT_LABELS10), labels);
|
|
6854
7038
|
const summaryRows = [
|
|
6855
7039
|
{ label: l.bookerNameLabel, value: booker.name },
|
|
6856
|
-
...
|
|
7040
|
+
...hasText6(booker.country) ? [{ label: l.bookerCountryLabel, value: booker.country }] : [],
|
|
6857
7041
|
{ label: l.bookingNumberLabel, value: `#${bookingNumber}`, valueColor: emailTokens.primary },
|
|
6858
7042
|
{ label: l.adventureLabel, value: adventureName },
|
|
6859
7043
|
{ label: l.datesLabel, value: dateRange },
|
|
@@ -6890,7 +7074,7 @@ function PartnerBookingCreatedEmail({
|
|
|
6890
7074
|
className,
|
|
6891
7075
|
children: [
|
|
6892
7076
|
/* @__PURE__ */ jsx(EmailLogo, { src: logoUrl, alt: l.logoAlt }),
|
|
6893
|
-
|
|
7077
|
+
hasText6(topNotice) && /* @__PURE__ */ jsx(
|
|
6894
7078
|
"div",
|
|
6895
7079
|
{
|
|
6896
7080
|
style: {
|
|
@@ -6949,7 +7133,7 @@ function PartnerBookingCreatedEmail({
|
|
|
6949
7133
|
}
|
|
6950
7134
|
);
|
|
6951
7135
|
}
|
|
6952
|
-
var
|
|
7136
|
+
var DEFAULT_LABELS11 = {
|
|
6953
7137
|
logoAlt: "PlanetaEXO",
|
|
6954
7138
|
greeting: (name) => `Hi ${name},`,
|
|
6955
7139
|
introMessage: "",
|
|
@@ -6992,7 +7176,7 @@ function PaymentReceiptEmail({
|
|
|
6992
7176
|
labels,
|
|
6993
7177
|
className
|
|
6994
7178
|
}) {
|
|
6995
|
-
const l = __spreadValues(__spreadValues({},
|
|
7179
|
+
const l = __spreadValues(__spreadValues({}, DEFAULT_LABELS11), labels);
|
|
6996
7180
|
const travellersLine = travellers.filter((s) => s.trim().length > 0).join(", ");
|
|
6997
7181
|
const interestRow = chargedAmount && chargedAmount !== amount;
|
|
6998
7182
|
const receiptRows = [
|
|
@@ -7136,24 +7320,24 @@ function PaymentReceiptEmail({
|
|
|
7136
7320
|
}
|
|
7137
7321
|
);
|
|
7138
7322
|
}
|
|
7139
|
-
var
|
|
7323
|
+
var INLINE_LINK_STYLE7 = {
|
|
7140
7324
|
color: emailTokens.primary,
|
|
7141
7325
|
textDecoration: "underline"
|
|
7142
7326
|
};
|
|
7143
|
-
function
|
|
7327
|
+
function renderWhatsappLink7(contact, label) {
|
|
7144
7328
|
if (contact.whatsappUrl) {
|
|
7145
|
-
return /* @__PURE__ */ jsx("a", { href: contact.whatsappUrl, style:
|
|
7329
|
+
return /* @__PURE__ */ jsx("a", { href: contact.whatsappUrl, style: INLINE_LINK_STYLE7, children: label });
|
|
7146
7330
|
}
|
|
7147
7331
|
return label;
|
|
7148
7332
|
}
|
|
7149
|
-
function
|
|
7333
|
+
function renderEmailLink7(contact, label) {
|
|
7150
7334
|
if (contact.email) {
|
|
7151
|
-
return /* @__PURE__ */ jsx("a", { href: `mailto:${contact.email}`, style:
|
|
7335
|
+
return /* @__PURE__ */ jsx("a", { href: `mailto:${contact.email}`, style: INLINE_LINK_STYLE7, children: label });
|
|
7152
7336
|
}
|
|
7153
7337
|
return label;
|
|
7154
7338
|
}
|
|
7155
7339
|
var EMPTY_CLOSING_ALTERNATIVE = (_agentName, _contact) => null;
|
|
7156
|
-
var
|
|
7340
|
+
var DEFAULT_LABELS12 = {
|
|
7157
7341
|
logoAlt: "PlanetaEXO",
|
|
7158
7342
|
greeting: (name) => `Hi ${name},`,
|
|
7159
7343
|
intermediateHello: "Hope you're doing well.",
|
|
@@ -7168,9 +7352,9 @@ var DEFAULT_LABELS11 = {
|
|
|
7168
7352
|
"If you need any assistance or would like to discuss your payment, feel free to contact your agent ",
|
|
7169
7353
|
agentName,
|
|
7170
7354
|
" via ",
|
|
7171
|
-
|
|
7355
|
+
renderWhatsappLink7(contact, "WhatsApp"),
|
|
7172
7356
|
" or ",
|
|
7173
|
-
|
|
7357
|
+
renderEmailLink7(contact, "email"),
|
|
7174
7358
|
"."
|
|
7175
7359
|
] }),
|
|
7176
7360
|
closingNoAgent: "If you need any assistance or would like to discuss your payment, feel free to contact us via WhatsApp or email.",
|
|
@@ -7214,9 +7398,9 @@ var DEFAULT_LABELS11 = {
|
|
|
7214
7398
|
"If you are experiencing any issues with payment or need additional time, please contact your agent ",
|
|
7215
7399
|
agentName,
|
|
7216
7400
|
" via ",
|
|
7217
|
-
|
|
7401
|
+
renderWhatsappLink7(contact, "WhatsApp"),
|
|
7218
7402
|
" or ",
|
|
7219
|
-
|
|
7403
|
+
renderEmailLink7(contact, "email"),
|
|
7220
7404
|
". We'll be happy to assist."
|
|
7221
7405
|
] })
|
|
7222
7406
|
}
|
|
@@ -7240,7 +7424,7 @@ function PaymentReminderEmail({
|
|
|
7240
7424
|
}) {
|
|
7241
7425
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s;
|
|
7242
7426
|
const lOverride = labels != null ? labels : {};
|
|
7243
|
-
const variantDefaults =
|
|
7427
|
+
const variantDefaults = DEFAULT_LABELS12.variants[variant];
|
|
7244
7428
|
const variantOverride = (_b = (_a = lOverride.variants) == null ? void 0 : _a[variant]) != null ? _b : {};
|
|
7245
7429
|
const variantLabels = {
|
|
7246
7430
|
intro: (_c = variantOverride.intro) != null ? _c : variantDefaults.intro,
|
|
@@ -7250,19 +7434,19 @@ function PaymentReminderEmail({
|
|
|
7250
7434
|
closingAlternative: (_f = variantOverride.closingAlternative) != null ? _f : variantDefaults.closingAlternative
|
|
7251
7435
|
};
|
|
7252
7436
|
const l = {
|
|
7253
|
-
logoAlt: (_g = lOverride.logoAlt) != null ? _g :
|
|
7254
|
-
greeting: (_h = lOverride.greeting) != null ? _h :
|
|
7255
|
-
intermediateHello: (_i = lOverride.intermediateHello) != null ? _i :
|
|
7256
|
-
bookingSummaryHeader: (_j = lOverride.bookingSummaryHeader) != null ? _j :
|
|
7257
|
-
amountAlreadyPaidLabel: (_k = lOverride.amountAlreadyPaidLabel) != null ? _k :
|
|
7258
|
-
remainingBalanceDueLabel: (_l = lOverride.remainingBalanceDueLabel) != null ? _l :
|
|
7259
|
-
totalBookingAmountLabel: (_m = lOverride.totalBookingAmountLabel) != null ? _m :
|
|
7260
|
-
paymentDetailsHeading: (_n = lOverride.paymentDetailsHeading) != null ? _n :
|
|
7261
|
-
ctaLabel: (_o = lOverride.ctaLabel) != null ? _o :
|
|
7262
|
-
teamSignature: (_p = lOverride.teamSignature) != null ? _p :
|
|
7263
|
-
closingAgent: (_q = lOverride.closingAgent) != null ? _q :
|
|
7264
|
-
closingNoAgent: (_r = lOverride.closingNoAgent) != null ? _r :
|
|
7265
|
-
adventureCard: __spreadValues(__spreadValues({},
|
|
7437
|
+
logoAlt: (_g = lOverride.logoAlt) != null ? _g : DEFAULT_LABELS12.logoAlt,
|
|
7438
|
+
greeting: (_h = lOverride.greeting) != null ? _h : DEFAULT_LABELS12.greeting,
|
|
7439
|
+
intermediateHello: (_i = lOverride.intermediateHello) != null ? _i : DEFAULT_LABELS12.intermediateHello,
|
|
7440
|
+
bookingSummaryHeader: (_j = lOverride.bookingSummaryHeader) != null ? _j : DEFAULT_LABELS12.bookingSummaryHeader,
|
|
7441
|
+
amountAlreadyPaidLabel: (_k = lOverride.amountAlreadyPaidLabel) != null ? _k : DEFAULT_LABELS12.amountAlreadyPaidLabel,
|
|
7442
|
+
remainingBalanceDueLabel: (_l = lOverride.remainingBalanceDueLabel) != null ? _l : DEFAULT_LABELS12.remainingBalanceDueLabel,
|
|
7443
|
+
totalBookingAmountLabel: (_m = lOverride.totalBookingAmountLabel) != null ? _m : DEFAULT_LABELS12.totalBookingAmountLabel,
|
|
7444
|
+
paymentDetailsHeading: (_n = lOverride.paymentDetailsHeading) != null ? _n : DEFAULT_LABELS12.paymentDetailsHeading,
|
|
7445
|
+
ctaLabel: (_o = lOverride.ctaLabel) != null ? _o : DEFAULT_LABELS12.ctaLabel,
|
|
7446
|
+
teamSignature: (_p = lOverride.teamSignature) != null ? _p : DEFAULT_LABELS12.teamSignature,
|
|
7447
|
+
closingAgent: (_q = lOverride.closingAgent) != null ? _q : DEFAULT_LABELS12.closingAgent,
|
|
7448
|
+
closingNoAgent: (_r = lOverride.closingNoAgent) != null ? _r : DEFAULT_LABELS12.closingNoAgent,
|
|
7449
|
+
adventureCard: __spreadValues(__spreadValues({}, DEFAULT_LABELS12.adventureCard), (_s = lOverride.adventureCard) != null ? _s : {})
|
|
7266
7450
|
};
|
|
7267
7451
|
const ctaStyle = {
|
|
7268
7452
|
display: "inline-block",
|
|
@@ -8543,7 +8727,7 @@ function validateCpf(value) {
|
|
|
8543
8727
|
if (secondDigit !== parseInt(digits[10], 10)) return false;
|
|
8544
8728
|
return true;
|
|
8545
8729
|
}
|
|
8546
|
-
var
|
|
8730
|
+
var DEFAULT_LABELS13 = {
|
|
8547
8731
|
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.",
|
|
8548
8732
|
detailsSectionTitle: "Your details",
|
|
8549
8733
|
tripInfoSectionTitle: "Trip info",
|
|
@@ -9287,7 +9471,7 @@ function RegistrationForm({
|
|
|
9287
9471
|
}) {
|
|
9288
9472
|
var _a;
|
|
9289
9473
|
const L = React32.useMemo(
|
|
9290
|
-
() => __spreadValues(__spreadValues({},
|
|
9474
|
+
() => __spreadValues(__spreadValues({}, DEFAULT_LABELS13), labels != null ? labels : {}),
|
|
9291
9475
|
[labels]
|
|
9292
9476
|
);
|
|
9293
9477
|
const sortedFields = React32.useMemo(
|
|
@@ -18910,6 +19094,6 @@ function SegmentedControl({
|
|
|
18910
19094
|
);
|
|
18911
19095
|
}
|
|
18912
19096
|
|
|
18913
|
-
export { ActivityCard, AdventureExplorer, AgentContactCard, Alert, AskExo, BirthDateField, BlogCard, BlogJournal, BlogPost, BookingAdventureCard, BookingCancellationEmail, BookingConfirmedCard, BookingCreatedEmail, BookingDetails, BookingForm, BookingOtpEmail, BookingPaymentConfirmationEmail, BookingShell, BookingSummary, Button, COUNTRIES, CancellationForm, CategoryPage2, Chip, CounterField, CountrySearchField, CtaBanner, DEFAULT_FOOTER_BADGES, DEFAULT_FOOTER_DESTINATIONS, DEFAULT_FOOTER_LANGUAGES, DEFAULT_FOOTER_LEGAL, DEFAULT_FOOTER_PAGES, DEFAULT_FOOTER_SOCIALS, DEFAULT_FOOTER_THEMES, DEFAULT_HEADER_LINKS, DEFAULT_LANGUAGES, STATUS_MAP as DEPARTURE_STATUS_MAP, DatePickerField, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, ExoOrb, FilterPanel, FloatingInput, FloatingSelect, GroupProgressBar, GroupStatusBanner, HomeHeader, Itinerary, ItineraryDay, LOGO_PLANETAEXO_DATA_URI, LeadCapturePopup, MenuTrip, NewHome, NotificationEmail, OTPCodeInput, Offer, OfferAdventureCard, ParticipantCounter, ParticipantList, PartnerBookingCreatedEmail, PartnerRegistrationCompleteEmail, PaymentAmountSelector, PaymentDetailsBlock, PaymentMethodSelector, PaymentModalShell, PaymentReceiptEmail, PaymentReminderEmail, PhoneCountrySelect, PhotoGallery, Picture, PriceProgress, PricingMatrixCard, PricingTrip, RegistrationForm, RegistrationProgressBar, RegistrationReminderEmail, RegistrationReminderIndividualEmail, RegistrationSuccessCard, SegmentedControl, ShareWidget, SiteFooter, SiteHeader, StatusBadge2 as StatusBadge, StickyBookingCard, TERMS_ACCEPT_KEY, TermsSection, ThemeToggle, Toast, TransferDetailsBlock, TravellerFormInviteEmail, TripCard, TripHeader, TripPage, TrustpilotEmbed, USP, buttonVariants, chipVariants, cn, emailTokens, formatCpf, getStripeAppearance, itineraryDaySpecIcons, stripeAppearance, validateCpf, webpVariantUrl, wrapEmailHtml };
|
|
19097
|
+
export { ActivityCard, AdventureExplorer, AgentContactCard, Alert, AskExo, BirthDateField, BlogCard, BlogJournal, BlogPost, BookingAdventureCard, BookingCancellationEmail, BookingConfirmedCard, BookingCreatedEmail, BookingDetails, BookingForm, BookingOtpEmail, BookingPaymentConfirmationEmail, BookingShell, BookingSummary, Button, COUNTRIES, CancellationForm, CancellationRequestReceivedEmail, CategoryPage2, Chip, CounterField, CountrySearchField, CtaBanner, DEFAULT_FOOTER_BADGES, DEFAULT_FOOTER_DESTINATIONS, DEFAULT_FOOTER_LANGUAGES, DEFAULT_FOOTER_LEGAL, DEFAULT_FOOTER_PAGES, DEFAULT_FOOTER_SOCIALS, DEFAULT_FOOTER_THEMES, DEFAULT_HEADER_LINKS, DEFAULT_LANGUAGES, STATUS_MAP as DEPARTURE_STATUS_MAP, DatePickerField, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, ExoOrb, FilterPanel, FloatingInput, FloatingSelect, GroupProgressBar, GroupStatusBanner, HomeHeader, Itinerary, ItineraryDay, LOGO_PLANETAEXO_DATA_URI, LeadCapturePopup, MenuTrip, NewHome, NotificationEmail, OTPCodeInput, Offer, OfferAdventureCard, ParticipantCounter, ParticipantList, PartnerBookingCreatedEmail, PartnerRegistrationCompleteEmail, PaymentAmountSelector, PaymentDetailsBlock, PaymentMethodSelector, PaymentModalShell, PaymentReceiptEmail, PaymentReminderEmail, PhoneCountrySelect, PhotoGallery, Picture, PriceProgress, PricingMatrixCard, PricingTrip, RegistrationForm, RegistrationProgressBar, RegistrationReminderEmail, RegistrationReminderIndividualEmail, RegistrationSuccessCard, SegmentedControl, ShareWidget, SiteFooter, SiteHeader, StatusBadge2 as StatusBadge, StickyBookingCard, TERMS_ACCEPT_KEY, TermsSection, ThemeToggle, Toast, TransferDetailsBlock, TravellerFormInviteEmail, TripCard, TripHeader, TripPage, TrustpilotEmbed, USP, buttonVariants, chipVariants, cn, emailTokens, formatCpf, getStripeAppearance, itineraryDaySpecIcons, stripeAppearance, validateCpf, webpVariantUrl, wrapEmailHtml };
|
|
18914
19098
|
//# sourceMappingURL=index.js.map
|
|
18915
19099
|
//# sourceMappingURL=index.js.map
|