@planetaexo/design-system 0.68.1 → 0.69.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +352 -117
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +64 -4
- package/dist/index.d.ts +64 -4
- package/dist/index.js +352 -118
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1482,7 +1482,7 @@ function AdventureCard({
|
|
|
1482
1482
|
] }),
|
|
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
|
-
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";
|
|
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" : room.bedArrangement === "TRIPLE" ? "Triple" : room.bedArrangement === "QUADRUPLE" ? "Quadruple" : "Quintuple";
|
|
1486
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 }),
|
|
@@ -4127,7 +4127,9 @@ var DEFAULT_LABELS = {
|
|
|
4127
4127
|
DOUBLE: "Double",
|
|
4128
4128
|
TWIN: "Twin",
|
|
4129
4129
|
SINGLE: "Single",
|
|
4130
|
-
TRIPLE: "Triple"
|
|
4130
|
+
TRIPLE: "Triple",
|
|
4131
|
+
QUADRUPLE: "Quadruple",
|
|
4132
|
+
QUINTUPLE: "Quintuple"
|
|
4131
4133
|
}
|
|
4132
4134
|
};
|
|
4133
4135
|
function BookingAdventureCard({
|
|
@@ -4154,7 +4156,7 @@ function BookingAdventureCard({
|
|
|
4154
4156
|
labels,
|
|
4155
4157
|
className
|
|
4156
4158
|
}) {
|
|
4157
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v;
|
|
4159
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z;
|
|
4158
4160
|
const l = {
|
|
4159
4161
|
travellersHeading: (_a = labels == null ? void 0 : labels.travellersHeading) != null ? _a : DEFAULT_LABELS.travellersHeading,
|
|
4160
4162
|
detailsHeading: (_b = labels == null ? void 0 : labels.detailsHeading) != null ? _b : DEFAULT_LABELS.detailsHeading,
|
|
@@ -4174,7 +4176,9 @@ function BookingAdventureCard({
|
|
|
4174
4176
|
DOUBLE: (_p = (_o = labels == null ? void 0 : labels.bedArrangementLabels) == null ? void 0 : _o.DOUBLE) != null ? _p : DEFAULT_LABELS.bedArrangementLabels.DOUBLE,
|
|
4175
4177
|
TWIN: (_r = (_q = labels == null ? void 0 : labels.bedArrangementLabels) == null ? void 0 : _q.TWIN) != null ? _r : DEFAULT_LABELS.bedArrangementLabels.TWIN,
|
|
4176
4178
|
SINGLE: (_t = (_s = labels == null ? void 0 : labels.bedArrangementLabels) == null ? void 0 : _s.SINGLE) != null ? _t : DEFAULT_LABELS.bedArrangementLabels.SINGLE,
|
|
4177
|
-
TRIPLE: (_v = (_u = labels == null ? void 0 : labels.bedArrangementLabels) == null ? void 0 : _u.TRIPLE) != null ? _v : DEFAULT_LABELS.bedArrangementLabels.TRIPLE
|
|
4179
|
+
TRIPLE: (_v = (_u = labels == null ? void 0 : labels.bedArrangementLabels) == null ? void 0 : _u.TRIPLE) != null ? _v : DEFAULT_LABELS.bedArrangementLabels.TRIPLE,
|
|
4180
|
+
QUADRUPLE: (_x = (_w = labels == null ? void 0 : labels.bedArrangementLabels) == null ? void 0 : _w.QUADRUPLE) != null ? _x : DEFAULT_LABELS.bedArrangementLabels.QUADRUPLE,
|
|
4181
|
+
QUINTUPLE: (_z = (_y = labels == null ? void 0 : labels.bedArrangementLabels) == null ? void 0 : _y.QUINTUPLE) != null ? _z : DEFAULT_LABELS.bedArrangementLabels.QUINTUPLE
|
|
4178
4182
|
}
|
|
4179
4183
|
};
|
|
4180
4184
|
const hasTravellers = !!travellers && travellers.length > 0;
|
|
@@ -4986,16 +4990,20 @@ var DEFAULT_BED_LABELS = {
|
|
|
4986
4990
|
DOUBLE: "Double",
|
|
4987
4991
|
TWIN: "Twin",
|
|
4988
4992
|
SINGLE: "Single",
|
|
4989
|
-
TRIPLE: "Triple"
|
|
4993
|
+
TRIPLE: "Triple",
|
|
4994
|
+
QUADRUPLE: "Quadruple",
|
|
4995
|
+
QUINTUPLE: "Quintuple"
|
|
4990
4996
|
};
|
|
4991
4997
|
function BookingSummary({ heading, rows, rooms, roomsHeading, bedArrangementLabels, footer, className }) {
|
|
4992
|
-
var _a, _b, _c, _d, _e, _f;
|
|
4998
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
4993
4999
|
const hasRooms = !!rooms && rooms.length > 0;
|
|
4994
5000
|
const bedLabels = {
|
|
4995
5001
|
DOUBLE: (_a = bedArrangementLabels == null ? void 0 : bedArrangementLabels.DOUBLE) != null ? _a : DEFAULT_BED_LABELS.DOUBLE,
|
|
4996
5002
|
TWIN: (_b = bedArrangementLabels == null ? void 0 : bedArrangementLabels.TWIN) != null ? _b : DEFAULT_BED_LABELS.TWIN,
|
|
4997
5003
|
SINGLE: (_c = bedArrangementLabels == null ? void 0 : bedArrangementLabels.SINGLE) != null ? _c : DEFAULT_BED_LABELS.SINGLE,
|
|
4998
|
-
TRIPLE: (_d = bedArrangementLabels == null ? void 0 : bedArrangementLabels.TRIPLE) != null ? _d : DEFAULT_BED_LABELS.TRIPLE
|
|
5004
|
+
TRIPLE: (_d = bedArrangementLabels == null ? void 0 : bedArrangementLabels.TRIPLE) != null ? _d : DEFAULT_BED_LABELS.TRIPLE,
|
|
5005
|
+
QUADRUPLE: (_e = bedArrangementLabels == null ? void 0 : bedArrangementLabels.QUADRUPLE) != null ? _e : DEFAULT_BED_LABELS.QUADRUPLE,
|
|
5006
|
+
QUINTUPLE: (_f = bedArrangementLabels == null ? void 0 : bedArrangementLabels.QUINTUPLE) != null ? _f : DEFAULT_BED_LABELS.QUINTUPLE
|
|
4999
5007
|
};
|
|
5000
5008
|
return /* @__PURE__ */ jsxs("div", { className, style: { marginBottom: "24px" }, children: [
|
|
5001
5009
|
heading && /* @__PURE__ */ jsx(
|
|
@@ -5120,8 +5128,8 @@ function BookingSummary({ heading, rows, rooms, roomsHeading, bedArrangementLabe
|
|
|
5120
5128
|
style: {
|
|
5121
5129
|
padding: "12px 20px",
|
|
5122
5130
|
textAlign: "center",
|
|
5123
|
-
fontWeight: (
|
|
5124
|
-
color: (
|
|
5131
|
+
fontWeight: (_g = footer.fontWeight) != null ? _g : 600,
|
|
5132
|
+
color: (_h = footer.color) != null ? _h : emailTokens.foreground,
|
|
5125
5133
|
backgroundColor: footer.backgroundColor
|
|
5126
5134
|
},
|
|
5127
5135
|
children: footer.text
|
|
@@ -5263,7 +5271,9 @@ var DEFAULT_LABELS3 = {
|
|
|
5263
5271
|
DOUBLE: "Double",
|
|
5264
5272
|
TWIN: "Twin",
|
|
5265
5273
|
SINGLE: "Single",
|
|
5266
|
-
TRIPLE: "Triple"
|
|
5274
|
+
TRIPLE: "Triple",
|
|
5275
|
+
QUADRUPLE: "Quadruple",
|
|
5276
|
+
QUINTUPLE: "Quintuple"
|
|
5267
5277
|
},
|
|
5268
5278
|
paymentSummaryHeading: "\u{1F4B0} Payment Summary",
|
|
5269
5279
|
paymentDetailsHeading: "Payment Details",
|
|
@@ -6093,6 +6103,228 @@ function CancellationRequestReceivedEmail({
|
|
|
6093
6103
|
}
|
|
6094
6104
|
);
|
|
6095
6105
|
}
|
|
6106
|
+
var INLINE_LINK_STYLE3 = {
|
|
6107
|
+
color: emailTokens.primary,
|
|
6108
|
+
textDecoration: "underline"
|
|
6109
|
+
};
|
|
6110
|
+
function renderWhatsappLink3(contact, label) {
|
|
6111
|
+
if (contact.whatsappUrl) {
|
|
6112
|
+
return /* @__PURE__ */ jsx("a", { href: contact.whatsappUrl, style: INLINE_LINK_STYLE3, children: label });
|
|
6113
|
+
}
|
|
6114
|
+
return label;
|
|
6115
|
+
}
|
|
6116
|
+
function renderEmailLink3(contact, label) {
|
|
6117
|
+
if (contact.email) {
|
|
6118
|
+
return /* @__PURE__ */ jsx("a", { href: `mailto:${contact.email}`, style: INLINE_LINK_STYLE3, children: label });
|
|
6119
|
+
}
|
|
6120
|
+
return label;
|
|
6121
|
+
}
|
|
6122
|
+
function hasText3(s) {
|
|
6123
|
+
return typeof s === "string" && s.trim().length > 0;
|
|
6124
|
+
}
|
|
6125
|
+
var DEFAULT_LABELS7 = {
|
|
6126
|
+
logoAlt: "PlanetaEXO",
|
|
6127
|
+
greeting: (recipientName) => `Hi ${recipientName},`,
|
|
6128
|
+
title: "Part of your booking has been cancelled",
|
|
6129
|
+
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.`,
|
|
6130
|
+
removedHeading: "What was removed",
|
|
6131
|
+
refundHeading: "Refund registered",
|
|
6132
|
+
refundAmountLabel: "Refund amount",
|
|
6133
|
+
refundNote: "As per our cancellation policy.",
|
|
6134
|
+
closingAgent: (agentName, contact) => /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
6135
|
+
"If you have any questions, your agent ",
|
|
6136
|
+
agentName,
|
|
6137
|
+
" is available via",
|
|
6138
|
+
" ",
|
|
6139
|
+
renderWhatsappLink3(contact, "WhatsApp"),
|
|
6140
|
+
" or ",
|
|
6141
|
+
renderEmailLink3(contact, "email"),
|
|
6142
|
+
"."
|
|
6143
|
+
] }),
|
|
6144
|
+
closingNoAgent: "If you have any questions, our team is available via WhatsApp or email.",
|
|
6145
|
+
teamSignature: "The PlanetaEXO Team"
|
|
6146
|
+
};
|
|
6147
|
+
function BookingPartialCancellationEmail({
|
|
6148
|
+
recipientName,
|
|
6149
|
+
bookingRef,
|
|
6150
|
+
removedItems,
|
|
6151
|
+
refundAmount,
|
|
6152
|
+
agentName,
|
|
6153
|
+
agentContactLinks,
|
|
6154
|
+
logoUrl,
|
|
6155
|
+
labels,
|
|
6156
|
+
className
|
|
6157
|
+
}) {
|
|
6158
|
+
const l = __spreadValues(__spreadValues({}, DEFAULT_LABELS7), labels);
|
|
6159
|
+
const showRefund = hasText3(refundAmount);
|
|
6160
|
+
const agentNameTrimmed = agentName == null ? void 0 : agentName.trim();
|
|
6161
|
+
const contact = agentContactLinks != null ? agentContactLinks : {};
|
|
6162
|
+
const closingNode = agentNameTrimmed ? l.closingAgent(agentNameTrimmed, contact) : l.closingNoAgent;
|
|
6163
|
+
const sectionDivider = /* @__PURE__ */ jsx(
|
|
6164
|
+
"hr",
|
|
6165
|
+
{
|
|
6166
|
+
style: {
|
|
6167
|
+
border: "none",
|
|
6168
|
+
borderTop: `1px solid ${emailTokens.border}`,
|
|
6169
|
+
marginTop: 0,
|
|
6170
|
+
marginBottom: "24px"
|
|
6171
|
+
}
|
|
6172
|
+
}
|
|
6173
|
+
);
|
|
6174
|
+
return /* @__PURE__ */ jsxs(
|
|
6175
|
+
"div",
|
|
6176
|
+
{
|
|
6177
|
+
style: {
|
|
6178
|
+
maxWidth: "576px",
|
|
6179
|
+
margin: "0 auto",
|
|
6180
|
+
backgroundColor: emailTokens.white,
|
|
6181
|
+
color: emailTokens.foreground,
|
|
6182
|
+
fontFamily: emailTokens.fontFamily,
|
|
6183
|
+
fontSize: "16px",
|
|
6184
|
+
lineHeight: "1.6",
|
|
6185
|
+
border: `1px solid ${emailTokens.border}`,
|
|
6186
|
+
borderRadius: "12px",
|
|
6187
|
+
overflow: "hidden",
|
|
6188
|
+
padding: "32px"
|
|
6189
|
+
},
|
|
6190
|
+
className,
|
|
6191
|
+
children: [
|
|
6192
|
+
/* @__PURE__ */ jsx(EmailLogo, { src: logoUrl, alt: l.logoAlt }),
|
|
6193
|
+
/* @__PURE__ */ jsx("p", { style: { marginBottom: "16px" }, children: l.greeting(recipientName) }),
|
|
6194
|
+
/* @__PURE__ */ jsx(
|
|
6195
|
+
"p",
|
|
6196
|
+
{
|
|
6197
|
+
style: {
|
|
6198
|
+
marginTop: 0,
|
|
6199
|
+
marginBottom: "16px",
|
|
6200
|
+
fontWeight: 700,
|
|
6201
|
+
color: emailTokens.foreground,
|
|
6202
|
+
fontSize: "20px",
|
|
6203
|
+
lineHeight: "1.3",
|
|
6204
|
+
fontFamily: emailTokens.fontFamily
|
|
6205
|
+
},
|
|
6206
|
+
children: l.title
|
|
6207
|
+
}
|
|
6208
|
+
),
|
|
6209
|
+
/* @__PURE__ */ jsx("p", { style: { marginBottom: "24px" }, children: l.intro(`#${bookingRef}`) }),
|
|
6210
|
+
sectionDivider,
|
|
6211
|
+
/* @__PURE__ */ jsxs(
|
|
6212
|
+
"div",
|
|
6213
|
+
{
|
|
6214
|
+
style: {
|
|
6215
|
+
marginBottom: "24px",
|
|
6216
|
+
padding: "16px 20px",
|
|
6217
|
+
borderRadius: "12px",
|
|
6218
|
+
border: `1px solid ${emailTokens.border}`,
|
|
6219
|
+
backgroundColor: emailTokens.muted
|
|
6220
|
+
},
|
|
6221
|
+
children: [
|
|
6222
|
+
/* @__PURE__ */ jsx(
|
|
6223
|
+
"p",
|
|
6224
|
+
{
|
|
6225
|
+
style: {
|
|
6226
|
+
margin: "0 0 12px 0",
|
|
6227
|
+
fontSize: "12px",
|
|
6228
|
+
fontWeight: 700,
|
|
6229
|
+
color: emailTokens.mutedForeground,
|
|
6230
|
+
textTransform: "uppercase",
|
|
6231
|
+
letterSpacing: "0.08em",
|
|
6232
|
+
fontFamily: emailTokens.fontFamily
|
|
6233
|
+
},
|
|
6234
|
+
children: l.removedHeading
|
|
6235
|
+
}
|
|
6236
|
+
),
|
|
6237
|
+
removedItems.map((item, i) => /* @__PURE__ */ jsxs("div", { style: { marginBottom: i < removedItems.length - 1 ? "10px" : 0 }, children: [
|
|
6238
|
+
/* @__PURE__ */ jsx(
|
|
6239
|
+
"p",
|
|
6240
|
+
{
|
|
6241
|
+
style: {
|
|
6242
|
+
margin: 0,
|
|
6243
|
+
fontSize: "15px",
|
|
6244
|
+
fontWeight: 700,
|
|
6245
|
+
color: emailTokens.foreground
|
|
6246
|
+
},
|
|
6247
|
+
children: item.title
|
|
6248
|
+
}
|
|
6249
|
+
),
|
|
6250
|
+
hasText3(item.detail) && /* @__PURE__ */ jsx("p", { style: { margin: "2px 0 0 0", fontSize: "14px", color: emailTokens.bodyText }, children: item.detail })
|
|
6251
|
+
] }, i))
|
|
6252
|
+
]
|
|
6253
|
+
}
|
|
6254
|
+
),
|
|
6255
|
+
showRefund && /* @__PURE__ */ jsxs(
|
|
6256
|
+
"div",
|
|
6257
|
+
{
|
|
6258
|
+
style: {
|
|
6259
|
+
marginBottom: "24px",
|
|
6260
|
+
padding: "16px 20px",
|
|
6261
|
+
borderRadius: "12px",
|
|
6262
|
+
border: `1px solid ${emailTokens.border}`,
|
|
6263
|
+
backgroundColor: emailTokens.muted
|
|
6264
|
+
},
|
|
6265
|
+
children: [
|
|
6266
|
+
/* @__PURE__ */ jsx(
|
|
6267
|
+
"p",
|
|
6268
|
+
{
|
|
6269
|
+
style: {
|
|
6270
|
+
margin: "0 0 8px 0",
|
|
6271
|
+
fontSize: "12px",
|
|
6272
|
+
fontWeight: 700,
|
|
6273
|
+
color: emailTokens.mutedForeground,
|
|
6274
|
+
textTransform: "uppercase",
|
|
6275
|
+
letterSpacing: "0.08em",
|
|
6276
|
+
fontFamily: emailTokens.fontFamily
|
|
6277
|
+
},
|
|
6278
|
+
children: l.refundHeading
|
|
6279
|
+
}
|
|
6280
|
+
),
|
|
6281
|
+
/* @__PURE__ */ jsx(
|
|
6282
|
+
"table",
|
|
6283
|
+
{
|
|
6284
|
+
cellPadding: 0,
|
|
6285
|
+
cellSpacing: 0,
|
|
6286
|
+
style: { width: "100%", borderCollapse: "collapse" },
|
|
6287
|
+
children: /* @__PURE__ */ jsx("tbody", { children: /* @__PURE__ */ jsxs("tr", { children: [
|
|
6288
|
+
/* @__PURE__ */ jsx("td", { style: { fontSize: "14px", color: emailTokens.bodyText, verticalAlign: "middle" }, children: l.refundAmountLabel }),
|
|
6289
|
+
/* @__PURE__ */ jsx(
|
|
6290
|
+
"td",
|
|
6291
|
+
{
|
|
6292
|
+
style: {
|
|
6293
|
+
fontSize: "18px",
|
|
6294
|
+
fontWeight: 700,
|
|
6295
|
+
color: emailTokens.foreground,
|
|
6296
|
+
textAlign: "right",
|
|
6297
|
+
verticalAlign: "middle",
|
|
6298
|
+
whiteSpace: "nowrap"
|
|
6299
|
+
},
|
|
6300
|
+
children: refundAmount
|
|
6301
|
+
}
|
|
6302
|
+
)
|
|
6303
|
+
] }) })
|
|
6304
|
+
}
|
|
6305
|
+
),
|
|
6306
|
+
hasText3(l.refundNote) && /* @__PURE__ */ jsx(
|
|
6307
|
+
"p",
|
|
6308
|
+
{
|
|
6309
|
+
style: {
|
|
6310
|
+
margin: "8px 0 0 0",
|
|
6311
|
+
fontSize: "12px",
|
|
6312
|
+
color: emailTokens.mutedForeground,
|
|
6313
|
+
fontStyle: "italic"
|
|
6314
|
+
},
|
|
6315
|
+
children: l.refundNote
|
|
6316
|
+
}
|
|
6317
|
+
)
|
|
6318
|
+
]
|
|
6319
|
+
}
|
|
6320
|
+
),
|
|
6321
|
+
sectionDivider,
|
|
6322
|
+
/* @__PURE__ */ jsx("p", { style: { marginBottom: "16px", fontSize: "14px", fontWeight: 700, color: emailTokens.bodyText }, children: closingNode }),
|
|
6323
|
+
/* @__PURE__ */ jsx("p", { style: { marginTop: 0, marginBottom: 0, fontSize: "14px", color: emailTokens.bodyText }, children: l.teamSignature })
|
|
6324
|
+
]
|
|
6325
|
+
}
|
|
6326
|
+
);
|
|
6327
|
+
}
|
|
6096
6328
|
function RegistrationProgressBar({
|
|
6097
6329
|
tone,
|
|
6098
6330
|
pct,
|
|
@@ -6155,23 +6387,23 @@ function RegistrationProgressBar({
|
|
|
6155
6387
|
}
|
|
6156
6388
|
) });
|
|
6157
6389
|
}
|
|
6158
|
-
var
|
|
6390
|
+
var INLINE_LINK_STYLE4 = {
|
|
6159
6391
|
color: emailTokens.primary,
|
|
6160
6392
|
textDecoration: "underline"
|
|
6161
6393
|
};
|
|
6162
|
-
function
|
|
6394
|
+
function renderWhatsappLink4(contact, label) {
|
|
6163
6395
|
if (contact.whatsappUrl) {
|
|
6164
|
-
return /* @__PURE__ */ jsx("a", { href: contact.whatsappUrl, style:
|
|
6396
|
+
return /* @__PURE__ */ jsx("a", { href: contact.whatsappUrl, style: INLINE_LINK_STYLE4, children: label });
|
|
6165
6397
|
}
|
|
6166
6398
|
return label;
|
|
6167
6399
|
}
|
|
6168
|
-
function
|
|
6400
|
+
function renderEmailLink4(contact, label) {
|
|
6169
6401
|
if (contact.email) {
|
|
6170
|
-
return /* @__PURE__ */ jsx("a", { href: `mailto:${contact.email}`, style:
|
|
6402
|
+
return /* @__PURE__ */ jsx("a", { href: `mailto:${contact.email}`, style: INLINE_LINK_STYLE4, children: label });
|
|
6171
6403
|
}
|
|
6172
6404
|
return label;
|
|
6173
6405
|
}
|
|
6174
|
-
var
|
|
6406
|
+
var DEFAULT_LABELS8 = {
|
|
6175
6407
|
logoAlt: "PlanetaEXO",
|
|
6176
6408
|
greeting: (n) => `Hi ${n},`,
|
|
6177
6409
|
intermediateHello: "Hope you're doing well.",
|
|
@@ -6190,9 +6422,9 @@ var DEFAULT_LABELS7 = {
|
|
|
6190
6422
|
"If you need any assistance with the traveller registrations, feel free to contact your agent ",
|
|
6191
6423
|
agentName,
|
|
6192
6424
|
" via ",
|
|
6193
|
-
|
|
6425
|
+
renderWhatsappLink4(contact, "WhatsApp"),
|
|
6194
6426
|
" or ",
|
|
6195
|
-
|
|
6427
|
+
renderEmailLink4(contact, "email"),
|
|
6196
6428
|
"."
|
|
6197
6429
|
] }),
|
|
6198
6430
|
closingNoAgent: "If you need any assistance with the traveller registrations, feel free to contact us via WhatsApp or email.",
|
|
@@ -6265,7 +6497,7 @@ var DEFAULT_LABELS7 = {
|
|
|
6265
6497
|
}
|
|
6266
6498
|
}
|
|
6267
6499
|
};
|
|
6268
|
-
function
|
|
6500
|
+
function hasText4(s) {
|
|
6269
6501
|
return typeof s === "string" && s.trim().length > 0;
|
|
6270
6502
|
}
|
|
6271
6503
|
function hasItems(arr) {
|
|
@@ -6285,12 +6517,12 @@ function RegistrationReminderEmail({
|
|
|
6285
6517
|
className
|
|
6286
6518
|
}) {
|
|
6287
6519
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
6288
|
-
const l = __spreadProps(__spreadValues(__spreadValues({},
|
|
6520
|
+
const l = __spreadProps(__spreadValues(__spreadValues({}, DEFAULT_LABELS8), labels), {
|
|
6289
6521
|
variants: {
|
|
6290
|
-
d_minus_30: __spreadValues(__spreadValues({},
|
|
6291
|
-
d_minus_15: __spreadValues(__spreadValues({},
|
|
6292
|
-
d_minus_7: __spreadValues(__spreadValues({},
|
|
6293
|
-
d_minus_2: __spreadValues(__spreadValues({},
|
|
6522
|
+
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 : {}),
|
|
6523
|
+
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 : {}),
|
|
6524
|
+
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 : {}),
|
|
6525
|
+
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 : {})
|
|
6294
6526
|
}
|
|
6295
6527
|
});
|
|
6296
6528
|
const v = l.variants[slug];
|
|
@@ -6311,14 +6543,14 @@ function RegistrationReminderEmail({
|
|
|
6311
6543
|
{ label: l.travellersRowLabel, value: l.travellersCountLabel(totalTravellers) },
|
|
6312
6544
|
...(agent == null ? void 0 : agent.name) ? [{ label: l.agentRowLabel, value: agent.name }] : []
|
|
6313
6545
|
];
|
|
6314
|
-
const showPleaseNote =
|
|
6315
|
-
const showBookerCoord =
|
|
6316
|
-
const showEarlyBenefit =
|
|
6317
|
-
const showImportant =
|
|
6318
|
-
const showFinalTagline =
|
|
6319
|
-
|
|
6320
|
-
const showDisregard =
|
|
6321
|
-
const showClosingThanks =
|
|
6546
|
+
const showPleaseNote = hasText4(v.pleaseNoteHeader) && hasItems(v.pleaseNoteBullets);
|
|
6547
|
+
const showBookerCoord = hasText4(v.bookerCoordinationNote);
|
|
6548
|
+
const showEarlyBenefit = hasText4(v.earlyCompletionBenefit);
|
|
6549
|
+
const showImportant = hasText4(v.importantNote);
|
|
6550
|
+
const showFinalTagline = hasText4(v.finalReminderTagline);
|
|
6551
|
+
hasText4(v.multiTravellerNote);
|
|
6552
|
+
const showDisregard = hasText4(v.disregardIfCompleted);
|
|
6553
|
+
const showClosingThanks = hasText4(v.closingThanks);
|
|
6322
6554
|
const sectionDivider = /* @__PURE__ */ jsx(
|
|
6323
6555
|
"hr",
|
|
6324
6556
|
{
|
|
@@ -6330,7 +6562,7 @@ function RegistrationReminderEmail({
|
|
|
6330
6562
|
}
|
|
6331
6563
|
}
|
|
6332
6564
|
);
|
|
6333
|
-
const hasIntroBlock =
|
|
6565
|
+
const hasIntroBlock = hasText4(v.intro) || hasText4(v.contextNote);
|
|
6334
6566
|
const hasPleaseNote = showPleaseNote;
|
|
6335
6567
|
const hasD7Highlight = showImportant && slug === "d_minus_7";
|
|
6336
6568
|
const hasD2Highlight = showFinalTagline || showImportant && slug === "d_minus_2";
|
|
@@ -6354,9 +6586,9 @@ function RegistrationReminderEmail({
|
|
|
6354
6586
|
children: [
|
|
6355
6587
|
/* @__PURE__ */ jsx(EmailLogo, { src: logoUrl, alt: l.logoAlt }),
|
|
6356
6588
|
/* @__PURE__ */ jsx("p", { style: { marginBottom: "16px" }, children: l.greeting(recipientFirstName) }),
|
|
6357
|
-
|
|
6358
|
-
|
|
6359
|
-
|
|
6589
|
+
hasText4(l.intermediateHello) && /* @__PURE__ */ jsx("p", { style: { marginBottom: "16px" }, children: l.intermediateHello }),
|
|
6590
|
+
hasText4(v.intro) && /* @__PURE__ */ jsx("p", { style: { marginBottom: "16px" }, children: v.intro }),
|
|
6591
|
+
hasText4(v.contextNote) && /* @__PURE__ */ jsx("p", { style: { marginBottom: "16px" }, children: v.contextNote }),
|
|
6360
6592
|
hasIntroBlock && sectionDivider,
|
|
6361
6593
|
slug === "d_minus_15" && showBookerCoord && /* @__PURE__ */ jsx("p", { style: { marginBottom: "16px" }, children: v.bookerCoordinationNote }),
|
|
6362
6594
|
hasItems(adventures) && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
@@ -6374,7 +6606,7 @@ function RegistrationReminderEmail({
|
|
|
6374
6606
|
children: l.progressHeader
|
|
6375
6607
|
}
|
|
6376
6608
|
),
|
|
6377
|
-
|
|
6609
|
+
hasText4(v.progressIntro) && /* @__PURE__ */ jsx("p", { style: { marginBottom: "16px", color: emailTokens.bodyText }, children: v.progressIntro }),
|
|
6378
6610
|
adventures.map((adv, i) => /* @__PURE__ */ jsxs(
|
|
6379
6611
|
"div",
|
|
6380
6612
|
{
|
|
@@ -6510,23 +6742,23 @@ function RegistrationReminderEmail({
|
|
|
6510
6742
|
}
|
|
6511
6743
|
);
|
|
6512
6744
|
}
|
|
6513
|
-
var
|
|
6745
|
+
var INLINE_LINK_STYLE5 = {
|
|
6514
6746
|
color: emailTokens.primary,
|
|
6515
6747
|
textDecoration: "underline"
|
|
6516
6748
|
};
|
|
6517
|
-
function
|
|
6749
|
+
function renderWhatsappLink5(contact, label) {
|
|
6518
6750
|
if (contact.whatsappUrl) {
|
|
6519
|
-
return /* @__PURE__ */ jsx("a", { href: contact.whatsappUrl, style:
|
|
6751
|
+
return /* @__PURE__ */ jsx("a", { href: contact.whatsappUrl, style: INLINE_LINK_STYLE5, children: label });
|
|
6520
6752
|
}
|
|
6521
6753
|
return label;
|
|
6522
6754
|
}
|
|
6523
|
-
function
|
|
6755
|
+
function renderEmailLink5(contact, label) {
|
|
6524
6756
|
if (contact.email) {
|
|
6525
|
-
return /* @__PURE__ */ jsx("a", { href: `mailto:${contact.email}`, style:
|
|
6757
|
+
return /* @__PURE__ */ jsx("a", { href: `mailto:${contact.email}`, style: INLINE_LINK_STYLE5, children: label });
|
|
6526
6758
|
}
|
|
6527
6759
|
return label;
|
|
6528
6760
|
}
|
|
6529
|
-
var
|
|
6761
|
+
var DEFAULT_LABELS9 = {
|
|
6530
6762
|
logoAlt: "PlanetaEXO",
|
|
6531
6763
|
greeting: (n) => `Hi ${n},`,
|
|
6532
6764
|
tripDetailsHeader: "\u{1F4CB} Trip details",
|
|
@@ -6542,9 +6774,9 @@ var DEFAULT_LABELS8 = {
|
|
|
6542
6774
|
"If you have questions, your agent ",
|
|
6543
6775
|
agentName,
|
|
6544
6776
|
" is available via ",
|
|
6545
|
-
|
|
6777
|
+
renderWhatsappLink5(contact, "WhatsApp"),
|
|
6546
6778
|
" or ",
|
|
6547
|
-
|
|
6779
|
+
renderEmailLink5(contact, "email"),
|
|
6548
6780
|
"."
|
|
6549
6781
|
] }),
|
|
6550
6782
|
closingNoAgent: "If you have questions or need assistance, our team is available via WhatsApp or email.",
|
|
@@ -6592,7 +6824,7 @@ var DEFAULT_LABELS8 = {
|
|
|
6592
6824
|
}
|
|
6593
6825
|
}
|
|
6594
6826
|
};
|
|
6595
|
-
function
|
|
6827
|
+
function hasText5(s) {
|
|
6596
6828
|
return typeof s === "string" && s.trim().length > 0;
|
|
6597
6829
|
}
|
|
6598
6830
|
function RegistrationReminderIndividualEmail({
|
|
@@ -6613,12 +6845,12 @@ function RegistrationReminderIndividualEmail({
|
|
|
6613
6845
|
className
|
|
6614
6846
|
}) {
|
|
6615
6847
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
6616
|
-
const l = __spreadProps(__spreadValues(__spreadValues({},
|
|
6848
|
+
const l = __spreadProps(__spreadValues(__spreadValues({}, DEFAULT_LABELS9), labels), {
|
|
6617
6849
|
variants: {
|
|
6618
|
-
d_minus_30: __spreadValues(__spreadValues({},
|
|
6619
|
-
d_minus_15: __spreadValues(__spreadValues({},
|
|
6620
|
-
d_minus_7: __spreadValues(__spreadValues({},
|
|
6621
|
-
d_minus_2: __spreadValues(__spreadValues({},
|
|
6850
|
+
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 : {}),
|
|
6851
|
+
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 : {}),
|
|
6852
|
+
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 : {}),
|
|
6853
|
+
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 : {})
|
|
6622
6854
|
}
|
|
6623
6855
|
});
|
|
6624
6856
|
const v = l.variants[slug];
|
|
@@ -6638,7 +6870,7 @@ function RegistrationReminderIndividualEmail({
|
|
|
6638
6870
|
{ label: l.leadTravellerLabel, value: leadTravellerName },
|
|
6639
6871
|
{ label: l.adventureLabel, value: adventureName },
|
|
6640
6872
|
{ label: l.startingDateLabel, value: startDateFormatted },
|
|
6641
|
-
...
|
|
6873
|
+
...hasText5(partnerName) ? [{ label: l.partnerLabel, value: partnerName }] : []
|
|
6642
6874
|
];
|
|
6643
6875
|
const sectionDivider = /* @__PURE__ */ jsx(
|
|
6644
6876
|
"hr",
|
|
@@ -6673,7 +6905,7 @@ function RegistrationReminderIndividualEmail({
|
|
|
6673
6905
|
children: [
|
|
6674
6906
|
/* @__PURE__ */ jsx(EmailLogo, { src: logoUrl, alt: l.logoAlt }),
|
|
6675
6907
|
/* @__PURE__ */ jsx("p", { style: { marginBottom: "16px" }, children: l.greeting(recipientFirstName) }),
|
|
6676
|
-
|
|
6908
|
+
hasText5(routingNote) && /* @__PURE__ */ jsx(
|
|
6677
6909
|
"p",
|
|
6678
6910
|
{
|
|
6679
6911
|
style: {
|
|
@@ -6688,8 +6920,8 @@ function RegistrationReminderIndividualEmail({
|
|
|
6688
6920
|
}
|
|
6689
6921
|
),
|
|
6690
6922
|
/* @__PURE__ */ jsx("p", { style: { marginBottom: "16px" }, children: introText }),
|
|
6691
|
-
|
|
6692
|
-
slug === "d_minus_2" && (
|
|
6923
|
+
hasText5(v.contextNote) && /* @__PURE__ */ jsx("p", { style: { marginBottom: "16px" }, children: v.contextNote }),
|
|
6924
|
+
slug === "d_minus_2" && (hasText5(v.finalReminderTagline) || hasText5(v.consequencesNote)) && /* @__PURE__ */ jsxs(
|
|
6693
6925
|
"div",
|
|
6694
6926
|
{
|
|
6695
6927
|
style: {
|
|
@@ -6701,23 +6933,23 @@ function RegistrationReminderIndividualEmail({
|
|
|
6701
6933
|
color: "#7f1d1d"
|
|
6702
6934
|
},
|
|
6703
6935
|
children: [
|
|
6704
|
-
|
|
6936
|
+
hasText5(v.finalReminderTagline) && /* @__PURE__ */ jsx(
|
|
6705
6937
|
"p",
|
|
6706
6938
|
{
|
|
6707
6939
|
style: {
|
|
6708
6940
|
margin: 0,
|
|
6709
|
-
marginBottom:
|
|
6941
|
+
marginBottom: hasText5(v.consequencesNote) ? "8px" : 0,
|
|
6710
6942
|
fontWeight: 700
|
|
6711
6943
|
},
|
|
6712
6944
|
children: v.finalReminderTagline
|
|
6713
6945
|
}
|
|
6714
6946
|
),
|
|
6715
|
-
|
|
6947
|
+
hasText5(v.consequencesNote) && /* @__PURE__ */ jsx("p", { style: { margin: 0 }, children: v.consequencesNote })
|
|
6716
6948
|
]
|
|
6717
6949
|
}
|
|
6718
6950
|
),
|
|
6719
6951
|
/* @__PURE__ */ jsx("div", { style: { marginBottom: "24px", textAlign: "left" }, children: /* @__PURE__ */ jsx("a", { href: ctaUrl, style: ctaStyle, children: l.ctaLabel }) }),
|
|
6720
|
-
slug === "d_minus_7" &&
|
|
6952
|
+
slug === "d_minus_7" && hasText5(v.mandatoryNote) && /* @__PURE__ */ jsx(
|
|
6721
6953
|
"p",
|
|
6722
6954
|
{
|
|
6723
6955
|
style: {
|
|
@@ -6733,8 +6965,8 @@ function RegistrationReminderIndividualEmail({
|
|
|
6733
6965
|
),
|
|
6734
6966
|
sectionDivider,
|
|
6735
6967
|
/* @__PURE__ */ jsx(BookingSummary, { heading: l.tripDetailsHeader, rows: tripRows }),
|
|
6736
|
-
(slug === "d_minus_30" || slug === "d_minus_15") &&
|
|
6737
|
-
slug === "d_minus_2" &&
|
|
6968
|
+
(slug === "d_minus_30" || slug === "d_minus_15") && hasText5(v.mandatoryNote) && /* @__PURE__ */ jsx("p", { style: { marginBottom: "16px", color: emailTokens.bodyText }, children: v.mandatoryNote }),
|
|
6969
|
+
slug === "d_minus_2" && hasText5(v.disregardIfCompleted) && /* @__PURE__ */ jsx(
|
|
6738
6970
|
"p",
|
|
6739
6971
|
{
|
|
6740
6972
|
style: {
|
|
@@ -6751,29 +6983,29 @@ function RegistrationReminderIndividualEmail({
|
|
|
6751
6983
|
whatsappUrl: agent.whatsappUrl,
|
|
6752
6984
|
email: agent.email
|
|
6753
6985
|
}) : l.closingNoAgent }),
|
|
6754
|
-
|
|
6986
|
+
hasText5(v.closingThanks) && /* @__PURE__ */ jsx("p", { style: { marginBottom: "16px", fontSize: "14px", color: emailTokens.bodyText }, children: v.closingThanks }),
|
|
6755
6987
|
/* @__PURE__ */ jsx("p", { style: { marginTop: 0, marginBottom: 0, fontSize: "14px", color: emailTokens.bodyText }, children: l.teamSignature })
|
|
6756
6988
|
]
|
|
6757
6989
|
}
|
|
6758
6990
|
);
|
|
6759
6991
|
}
|
|
6760
|
-
var
|
|
6992
|
+
var INLINE_LINK_STYLE6 = {
|
|
6761
6993
|
color: emailTokens.primary,
|
|
6762
6994
|
textDecoration: "underline"
|
|
6763
6995
|
};
|
|
6764
|
-
function
|
|
6996
|
+
function renderWhatsappLink6(contact, label) {
|
|
6765
6997
|
if (contact.whatsappUrl) {
|
|
6766
|
-
return /* @__PURE__ */ jsx("a", { href: contact.whatsappUrl, style:
|
|
6998
|
+
return /* @__PURE__ */ jsx("a", { href: contact.whatsappUrl, style: INLINE_LINK_STYLE6, children: label });
|
|
6767
6999
|
}
|
|
6768
7000
|
return label;
|
|
6769
7001
|
}
|
|
6770
|
-
function
|
|
7002
|
+
function renderEmailLink6(contact, label) {
|
|
6771
7003
|
if (contact.email) {
|
|
6772
|
-
return /* @__PURE__ */ jsx("a", { href: `mailto:${contact.email}`, style:
|
|
7004
|
+
return /* @__PURE__ */ jsx("a", { href: `mailto:${contact.email}`, style: INLINE_LINK_STYLE6, children: label });
|
|
6773
7005
|
}
|
|
6774
7006
|
return label;
|
|
6775
7007
|
}
|
|
6776
|
-
var
|
|
7008
|
+
var DEFAULT_LABELS10 = {
|
|
6777
7009
|
logoAlt: "PlanetaEXO",
|
|
6778
7010
|
greeting: (n) => `Hi ${n},`,
|
|
6779
7011
|
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.`,
|
|
@@ -6795,15 +7027,15 @@ var DEFAULT_LABELS9 = {
|
|
|
6795
7027
|
agentName,
|
|
6796
7028
|
" is available via",
|
|
6797
7029
|
" ",
|
|
6798
|
-
|
|
7030
|
+
renderWhatsappLink6(contact, "WhatsApp"),
|
|
6799
7031
|
" or ",
|
|
6800
|
-
|
|
7032
|
+
renderEmailLink6(contact, "email"),
|
|
6801
7033
|
"."
|
|
6802
7034
|
] }),
|
|
6803
7035
|
closingNoAgent: "If you have any questions, our team is available via WhatsApp or email.",
|
|
6804
7036
|
teamSignature: "The PlanetaEXO Team"
|
|
6805
7037
|
};
|
|
6806
|
-
function
|
|
7038
|
+
function hasText6(s) {
|
|
6807
7039
|
return typeof s === "string" && s.trim().length > 0;
|
|
6808
7040
|
}
|
|
6809
7041
|
function PartnerRegistrationCompleteEmail({
|
|
@@ -6823,14 +7055,14 @@ function PartnerRegistrationCompleteEmail({
|
|
|
6823
7055
|
labels,
|
|
6824
7056
|
className
|
|
6825
7057
|
}) {
|
|
6826
|
-
const l = __spreadValues(__spreadValues({},
|
|
7058
|
+
const l = __spreadValues(__spreadValues({}, DEFAULT_LABELS10), labels);
|
|
6827
7059
|
const tripRows = [
|
|
6828
7060
|
{ label: l.bookingNumberLabel, value: `#${bookingNumber}`, valueColor: emailTokens.primary },
|
|
6829
7061
|
{ label: l.adventureLabel, value: adventureName },
|
|
6830
7062
|
{ label: l.datesLabel, value: dateRange },
|
|
6831
7063
|
{ label: l.partnerLabel, value: partnerName },
|
|
6832
|
-
...
|
|
6833
|
-
...
|
|
7064
|
+
...hasText6(bookingPersonName) ? [{ label: l.bookingPersonLabel, value: bookingPersonName }] : [],
|
|
7065
|
+
...hasText6(bookingPersonPassport) ? [{ label: l.passportLabel, value: bookingPersonPassport }] : []
|
|
6834
7066
|
];
|
|
6835
7067
|
const sectionDivider = /* @__PURE__ */ jsx(
|
|
6836
7068
|
"hr",
|
|
@@ -6864,7 +7096,7 @@ function PartnerRegistrationCompleteEmail({
|
|
|
6864
7096
|
className,
|
|
6865
7097
|
children: [
|
|
6866
7098
|
/* @__PURE__ */ jsx(EmailLogo, { src: logoUrl, alt: l.logoAlt }),
|
|
6867
|
-
|
|
7099
|
+
hasText6(topNotice) && /* @__PURE__ */ jsx(
|
|
6868
7100
|
"div",
|
|
6869
7101
|
{
|
|
6870
7102
|
style: {
|
|
@@ -6941,7 +7173,7 @@ function PartnerRegistrationCompleteEmail({
|
|
|
6941
7173
|
}) })
|
|
6942
7174
|
}
|
|
6943
7175
|
) : /* @__PURE__ */ jsx("p", { style: { marginTop: 0, marginBottom: "24px", color: emailTokens.bodyText }, children: l.expectationsEmptyNote }),
|
|
6944
|
-
pdfAttached &&
|
|
7176
|
+
pdfAttached && hasText6(l.pdfNote) && /* @__PURE__ */ jsx(
|
|
6945
7177
|
"div",
|
|
6946
7178
|
{
|
|
6947
7179
|
style: {
|
|
@@ -6966,26 +7198,26 @@ function PartnerRegistrationCompleteEmail({
|
|
|
6966
7198
|
}
|
|
6967
7199
|
);
|
|
6968
7200
|
}
|
|
6969
|
-
var
|
|
7201
|
+
var INLINE_LINK_STYLE7 = {
|
|
6970
7202
|
color: emailTokens.primary,
|
|
6971
7203
|
textDecoration: "underline"
|
|
6972
7204
|
};
|
|
6973
|
-
function
|
|
7205
|
+
function renderWhatsappLink7(contact, label) {
|
|
6974
7206
|
if (contact.whatsappUrl) {
|
|
6975
|
-
return /* @__PURE__ */ jsx("a", { href: contact.whatsappUrl, style:
|
|
7207
|
+
return /* @__PURE__ */ jsx("a", { href: contact.whatsappUrl, style: INLINE_LINK_STYLE7, children: label });
|
|
6976
7208
|
}
|
|
6977
7209
|
return label;
|
|
6978
7210
|
}
|
|
6979
|
-
function
|
|
7211
|
+
function renderEmailLink7(contact, label) {
|
|
6980
7212
|
if (contact.email) {
|
|
6981
|
-
return /* @__PURE__ */ jsx("a", { href: `mailto:${contact.email}`, style:
|
|
7213
|
+
return /* @__PURE__ */ jsx("a", { href: `mailto:${contact.email}`, style: INLINE_LINK_STYLE7, children: label });
|
|
6982
7214
|
}
|
|
6983
7215
|
return label;
|
|
6984
7216
|
}
|
|
6985
|
-
function
|
|
7217
|
+
function hasText7(s) {
|
|
6986
7218
|
return typeof s === "string" && s.trim().length > 0;
|
|
6987
7219
|
}
|
|
6988
|
-
var
|
|
7220
|
+
var DEFAULT_LABELS11 = {
|
|
6989
7221
|
logoAlt: "PlanetaEXO",
|
|
6990
7222
|
greeting: (n) => `Hi ${n},`,
|
|
6991
7223
|
intro: (adv) => `You have a new booking for your adventure ${adv}. Here are the details:`,
|
|
@@ -7002,7 +7234,9 @@ var DEFAULT_LABELS10 = {
|
|
|
7002
7234
|
DOUBLE: "Double",
|
|
7003
7235
|
TWIN: "Twin",
|
|
7004
7236
|
SINGLE: "Single",
|
|
7005
|
-
TRIPLE: "Triple"
|
|
7237
|
+
TRIPLE: "Triple",
|
|
7238
|
+
QUADRUPLE: "Quadruple",
|
|
7239
|
+
QUINTUPLE: "Quintuple"
|
|
7006
7240
|
},
|
|
7007
7241
|
registrationPendingNotice: "The travellers' registration details will be sent to you as soon as all travellers have completed their forms.",
|
|
7008
7242
|
mustReplyToConfirm: "Please reply to this email to confirm the booking.",
|
|
@@ -7011,9 +7245,9 @@ var DEFAULT_LABELS10 = {
|
|
|
7011
7245
|
agentName,
|
|
7012
7246
|
" is available via",
|
|
7013
7247
|
" ",
|
|
7014
|
-
|
|
7248
|
+
renderWhatsappLink7(contact, "WhatsApp"),
|
|
7015
7249
|
" or ",
|
|
7016
|
-
|
|
7250
|
+
renderEmailLink7(contact, "email"),
|
|
7017
7251
|
"."
|
|
7018
7252
|
] }),
|
|
7019
7253
|
closingNoAgent: "If you have any questions, our team is available via WhatsApp or email.",
|
|
@@ -7034,10 +7268,10 @@ function PartnerBookingCreatedEmail({
|
|
|
7034
7268
|
labels,
|
|
7035
7269
|
className
|
|
7036
7270
|
}) {
|
|
7037
|
-
const l = __spreadValues(__spreadValues({},
|
|
7271
|
+
const l = __spreadValues(__spreadValues({}, DEFAULT_LABELS11), labels);
|
|
7038
7272
|
const summaryRows = [
|
|
7039
7273
|
{ label: l.bookerNameLabel, value: booker.name },
|
|
7040
|
-
...
|
|
7274
|
+
...hasText7(booker.country) ? [{ label: l.bookerCountryLabel, value: booker.country }] : [],
|
|
7041
7275
|
{ label: l.bookingNumberLabel, value: `#${bookingNumber}`, valueColor: emailTokens.primary },
|
|
7042
7276
|
{ label: l.adventureLabel, value: adventureName },
|
|
7043
7277
|
{ label: l.datesLabel, value: dateRange },
|
|
@@ -7074,7 +7308,7 @@ function PartnerBookingCreatedEmail({
|
|
|
7074
7308
|
className,
|
|
7075
7309
|
children: [
|
|
7076
7310
|
/* @__PURE__ */ jsx(EmailLogo, { src: logoUrl, alt: l.logoAlt }),
|
|
7077
|
-
|
|
7311
|
+
hasText7(topNotice) && /* @__PURE__ */ jsx(
|
|
7078
7312
|
"div",
|
|
7079
7313
|
{
|
|
7080
7314
|
style: {
|
|
@@ -7133,7 +7367,7 @@ function PartnerBookingCreatedEmail({
|
|
|
7133
7367
|
}
|
|
7134
7368
|
);
|
|
7135
7369
|
}
|
|
7136
|
-
var
|
|
7370
|
+
var DEFAULT_LABELS12 = {
|
|
7137
7371
|
logoAlt: "PlanetaEXO",
|
|
7138
7372
|
greeting: (name) => `Hi ${name},`,
|
|
7139
7373
|
introMessage: "",
|
|
@@ -7176,7 +7410,7 @@ function PaymentReceiptEmail({
|
|
|
7176
7410
|
labels,
|
|
7177
7411
|
className
|
|
7178
7412
|
}) {
|
|
7179
|
-
const l = __spreadValues(__spreadValues({},
|
|
7413
|
+
const l = __spreadValues(__spreadValues({}, DEFAULT_LABELS12), labels);
|
|
7180
7414
|
const travellersLine = travellers.filter((s) => s.trim().length > 0).join(", ");
|
|
7181
7415
|
const interestRow = chargedAmount && chargedAmount !== amount;
|
|
7182
7416
|
const receiptRows = [
|
|
@@ -7320,24 +7554,24 @@ function PaymentReceiptEmail({
|
|
|
7320
7554
|
}
|
|
7321
7555
|
);
|
|
7322
7556
|
}
|
|
7323
|
-
var
|
|
7557
|
+
var INLINE_LINK_STYLE8 = {
|
|
7324
7558
|
color: emailTokens.primary,
|
|
7325
7559
|
textDecoration: "underline"
|
|
7326
7560
|
};
|
|
7327
|
-
function
|
|
7561
|
+
function renderWhatsappLink8(contact, label) {
|
|
7328
7562
|
if (contact.whatsappUrl) {
|
|
7329
|
-
return /* @__PURE__ */ jsx("a", { href: contact.whatsappUrl, style:
|
|
7563
|
+
return /* @__PURE__ */ jsx("a", { href: contact.whatsappUrl, style: INLINE_LINK_STYLE8, children: label });
|
|
7330
7564
|
}
|
|
7331
7565
|
return label;
|
|
7332
7566
|
}
|
|
7333
|
-
function
|
|
7567
|
+
function renderEmailLink8(contact, label) {
|
|
7334
7568
|
if (contact.email) {
|
|
7335
|
-
return /* @__PURE__ */ jsx("a", { href: `mailto:${contact.email}`, style:
|
|
7569
|
+
return /* @__PURE__ */ jsx("a", { href: `mailto:${contact.email}`, style: INLINE_LINK_STYLE8, children: label });
|
|
7336
7570
|
}
|
|
7337
7571
|
return label;
|
|
7338
7572
|
}
|
|
7339
7573
|
var EMPTY_CLOSING_ALTERNATIVE = (_agentName, _contact) => null;
|
|
7340
|
-
var
|
|
7574
|
+
var DEFAULT_LABELS13 = {
|
|
7341
7575
|
logoAlt: "PlanetaEXO",
|
|
7342
7576
|
greeting: (name) => `Hi ${name},`,
|
|
7343
7577
|
intermediateHello: "Hope you're doing well.",
|
|
@@ -7352,9 +7586,9 @@ var DEFAULT_LABELS12 = {
|
|
|
7352
7586
|
"If you need any assistance or would like to discuss your payment, feel free to contact your agent ",
|
|
7353
7587
|
agentName,
|
|
7354
7588
|
" via ",
|
|
7355
|
-
|
|
7589
|
+
renderWhatsappLink8(contact, "WhatsApp"),
|
|
7356
7590
|
" or ",
|
|
7357
|
-
|
|
7591
|
+
renderEmailLink8(contact, "email"),
|
|
7358
7592
|
"."
|
|
7359
7593
|
] }),
|
|
7360
7594
|
closingNoAgent: "If you need any assistance or would like to discuss your payment, feel free to contact us via WhatsApp or email.",
|
|
@@ -7398,9 +7632,9 @@ var DEFAULT_LABELS12 = {
|
|
|
7398
7632
|
"If you are experiencing any issues with payment or need additional time, please contact your agent ",
|
|
7399
7633
|
agentName,
|
|
7400
7634
|
" via ",
|
|
7401
|
-
|
|
7635
|
+
renderWhatsappLink8(contact, "WhatsApp"),
|
|
7402
7636
|
" or ",
|
|
7403
|
-
|
|
7637
|
+
renderEmailLink8(contact, "email"),
|
|
7404
7638
|
". We'll be happy to assist."
|
|
7405
7639
|
] })
|
|
7406
7640
|
}
|
|
@@ -7424,7 +7658,7 @@ function PaymentReminderEmail({
|
|
|
7424
7658
|
}) {
|
|
7425
7659
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s;
|
|
7426
7660
|
const lOverride = labels != null ? labels : {};
|
|
7427
|
-
const variantDefaults =
|
|
7661
|
+
const variantDefaults = DEFAULT_LABELS13.variants[variant];
|
|
7428
7662
|
const variantOverride = (_b = (_a = lOverride.variants) == null ? void 0 : _a[variant]) != null ? _b : {};
|
|
7429
7663
|
const variantLabels = {
|
|
7430
7664
|
intro: (_c = variantOverride.intro) != null ? _c : variantDefaults.intro,
|
|
@@ -7434,19 +7668,19 @@ function PaymentReminderEmail({
|
|
|
7434
7668
|
closingAlternative: (_f = variantOverride.closingAlternative) != null ? _f : variantDefaults.closingAlternative
|
|
7435
7669
|
};
|
|
7436
7670
|
const l = {
|
|
7437
|
-
logoAlt: (_g = lOverride.logoAlt) != null ? _g :
|
|
7438
|
-
greeting: (_h = lOverride.greeting) != null ? _h :
|
|
7439
|
-
intermediateHello: (_i = lOverride.intermediateHello) != null ? _i :
|
|
7440
|
-
bookingSummaryHeader: (_j = lOverride.bookingSummaryHeader) != null ? _j :
|
|
7441
|
-
amountAlreadyPaidLabel: (_k = lOverride.amountAlreadyPaidLabel) != null ? _k :
|
|
7442
|
-
remainingBalanceDueLabel: (_l = lOverride.remainingBalanceDueLabel) != null ? _l :
|
|
7443
|
-
totalBookingAmountLabel: (_m = lOverride.totalBookingAmountLabel) != null ? _m :
|
|
7444
|
-
paymentDetailsHeading: (_n = lOverride.paymentDetailsHeading) != null ? _n :
|
|
7445
|
-
ctaLabel: (_o = lOverride.ctaLabel) != null ? _o :
|
|
7446
|
-
teamSignature: (_p = lOverride.teamSignature) != null ? _p :
|
|
7447
|
-
closingAgent: (_q = lOverride.closingAgent) != null ? _q :
|
|
7448
|
-
closingNoAgent: (_r = lOverride.closingNoAgent) != null ? _r :
|
|
7449
|
-
adventureCard: __spreadValues(__spreadValues({},
|
|
7671
|
+
logoAlt: (_g = lOverride.logoAlt) != null ? _g : DEFAULT_LABELS13.logoAlt,
|
|
7672
|
+
greeting: (_h = lOverride.greeting) != null ? _h : DEFAULT_LABELS13.greeting,
|
|
7673
|
+
intermediateHello: (_i = lOverride.intermediateHello) != null ? _i : DEFAULT_LABELS13.intermediateHello,
|
|
7674
|
+
bookingSummaryHeader: (_j = lOverride.bookingSummaryHeader) != null ? _j : DEFAULT_LABELS13.bookingSummaryHeader,
|
|
7675
|
+
amountAlreadyPaidLabel: (_k = lOverride.amountAlreadyPaidLabel) != null ? _k : DEFAULT_LABELS13.amountAlreadyPaidLabel,
|
|
7676
|
+
remainingBalanceDueLabel: (_l = lOverride.remainingBalanceDueLabel) != null ? _l : DEFAULT_LABELS13.remainingBalanceDueLabel,
|
|
7677
|
+
totalBookingAmountLabel: (_m = lOverride.totalBookingAmountLabel) != null ? _m : DEFAULT_LABELS13.totalBookingAmountLabel,
|
|
7678
|
+
paymentDetailsHeading: (_n = lOverride.paymentDetailsHeading) != null ? _n : DEFAULT_LABELS13.paymentDetailsHeading,
|
|
7679
|
+
ctaLabel: (_o = lOverride.ctaLabel) != null ? _o : DEFAULT_LABELS13.ctaLabel,
|
|
7680
|
+
teamSignature: (_p = lOverride.teamSignature) != null ? _p : DEFAULT_LABELS13.teamSignature,
|
|
7681
|
+
closingAgent: (_q = lOverride.closingAgent) != null ? _q : DEFAULT_LABELS13.closingAgent,
|
|
7682
|
+
closingNoAgent: (_r = lOverride.closingNoAgent) != null ? _r : DEFAULT_LABELS13.closingNoAgent,
|
|
7683
|
+
adventureCard: __spreadValues(__spreadValues({}, DEFAULT_LABELS13.adventureCard), (_s = lOverride.adventureCard) != null ? _s : {})
|
|
7450
7684
|
};
|
|
7451
7685
|
const ctaStyle = {
|
|
7452
7686
|
display: "inline-block",
|
|
@@ -8727,7 +8961,7 @@ function validateCpf(value) {
|
|
|
8727
8961
|
if (secondDigit !== parseInt(digits[10], 10)) return false;
|
|
8728
8962
|
return true;
|
|
8729
8963
|
}
|
|
8730
|
-
var
|
|
8964
|
+
var DEFAULT_LABELS14 = {
|
|
8731
8965
|
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.",
|
|
8732
8966
|
detailsSectionTitle: "Your details",
|
|
8733
8967
|
tripInfoSectionTitle: "Trip info",
|
|
@@ -9471,7 +9705,7 @@ function RegistrationForm({
|
|
|
9471
9705
|
}) {
|
|
9472
9706
|
var _a;
|
|
9473
9707
|
const L = React32.useMemo(
|
|
9474
|
-
() => __spreadValues(__spreadValues({},
|
|
9708
|
+
() => __spreadValues(__spreadValues({}, DEFAULT_LABELS14), labels != null ? labels : {}),
|
|
9475
9709
|
[labels]
|
|
9476
9710
|
);
|
|
9477
9711
|
const sortedFields = React32.useMemo(
|
|
@@ -19101,6 +19335,6 @@ function SegmentedControl({
|
|
|
19101
19335
|
);
|
|
19102
19336
|
}
|
|
19103
19337
|
|
|
19104
|
-
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 };
|
|
19338
|
+
export { ActivityCard, AdventureExplorer, AgentContactCard, Alert, AskExo, BirthDateField, BlogCard, BlogJournal, BlogPost, BookingAdventureCard, BookingCancellationEmail, BookingConfirmedCard, BookingCreatedEmail, BookingDetails, BookingForm, BookingOtpEmail, BookingPartialCancellationEmail, 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 };
|
|
19105
19339
|
//# sourceMappingURL=index.js.map
|
|
19106
19340
|
//# sourceMappingURL=index.js.map
|