@planetaexo/design-system 0.49.0 → 0.50.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 +361 -110
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +99 -2
- package/dist/index.d.ts +99 -2
- package/dist/index.js +361 -111
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -5269,6 +5269,234 @@ function BookingCreatedEmail({
|
|
|
5269
5269
|
}
|
|
5270
5270
|
);
|
|
5271
5271
|
}
|
|
5272
|
+
var INLINE_LINK_STYLE = {
|
|
5273
|
+
color: emailTokens.primary,
|
|
5274
|
+
textDecoration: "underline"
|
|
5275
|
+
};
|
|
5276
|
+
function renderWhatsappLink(contact, label) {
|
|
5277
|
+
if (contact.whatsappUrl) {
|
|
5278
|
+
return /* @__PURE__ */ jsxRuntime.jsx("a", { href: contact.whatsappUrl, style: INLINE_LINK_STYLE, children: label });
|
|
5279
|
+
}
|
|
5280
|
+
return label;
|
|
5281
|
+
}
|
|
5282
|
+
function renderEmailLink(contact, label) {
|
|
5283
|
+
if (contact.email) {
|
|
5284
|
+
return /* @__PURE__ */ jsxRuntime.jsx("a", { href: `mailto:${contact.email}`, style: INLINE_LINK_STYLE, children: label });
|
|
5285
|
+
}
|
|
5286
|
+
return label;
|
|
5287
|
+
}
|
|
5288
|
+
function hasText(s) {
|
|
5289
|
+
return typeof s === "string" && s.trim().length > 0;
|
|
5290
|
+
}
|
|
5291
|
+
var DEFAULT_LABELS5 = {
|
|
5292
|
+
logoAlt: "PlanetaEXO",
|
|
5293
|
+
greeting: (recipientName) => `Hi ${recipientName},`,
|
|
5294
|
+
title: "Your booking has been cancelled",
|
|
5295
|
+
intro: (bookingRef) => `We're writing to let you know that your booking ${bookingRef} has been cancelled.`,
|
|
5296
|
+
summaryHeading: "Booking details",
|
|
5297
|
+
bookingNumberLabel: "Booking number",
|
|
5298
|
+
adventuresLabel: "Adventure",
|
|
5299
|
+
datesLabel: "Dates",
|
|
5300
|
+
travellersLabel: "Travellers",
|
|
5301
|
+
refundHeading: "Refund registered",
|
|
5302
|
+
refundAmountLabel: "Refund amount",
|
|
5303
|
+
refundNote: "As per our cancellation policy.",
|
|
5304
|
+
closingAgent: (agentName, contact) => /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
5305
|
+
"If you have any questions, your agent ",
|
|
5306
|
+
agentName,
|
|
5307
|
+
" is available via",
|
|
5308
|
+
" ",
|
|
5309
|
+
renderWhatsappLink(contact, "WhatsApp"),
|
|
5310
|
+
" or ",
|
|
5311
|
+
renderEmailLink(contact, "email"),
|
|
5312
|
+
"."
|
|
5313
|
+
] }),
|
|
5314
|
+
closingNoAgent: "If you have any questions, our team is available via WhatsApp or email.",
|
|
5315
|
+
teamSignature: "The PlanetaEXO Team"
|
|
5316
|
+
};
|
|
5317
|
+
function BookingCancellationEmail({
|
|
5318
|
+
recipientName,
|
|
5319
|
+
bookingRef,
|
|
5320
|
+
adventures,
|
|
5321
|
+
travellersCount,
|
|
5322
|
+
refundAmount,
|
|
5323
|
+
agentName,
|
|
5324
|
+
agentContactLinks,
|
|
5325
|
+
logoUrl,
|
|
5326
|
+
labels,
|
|
5327
|
+
className
|
|
5328
|
+
}) {
|
|
5329
|
+
const l = __spreadValues(__spreadValues({}, DEFAULT_LABELS5), labels);
|
|
5330
|
+
const adventureLines = adventures.map((a) => a.name).join("\n");
|
|
5331
|
+
const dateLines = adventures.map((a) => `${a.startDate} \u2013 ${a.endDate}`).join("\n");
|
|
5332
|
+
const summaryRows = [
|
|
5333
|
+
{
|
|
5334
|
+
label: l.bookingNumberLabel,
|
|
5335
|
+
value: `#${bookingRef}`,
|
|
5336
|
+
valueColor: emailTokens.primary
|
|
5337
|
+
},
|
|
5338
|
+
{ label: l.adventuresLabel, value: adventureLines },
|
|
5339
|
+
{ label: l.datesLabel, value: dateLines },
|
|
5340
|
+
{ label: l.travellersLabel, value: travellersCount }
|
|
5341
|
+
];
|
|
5342
|
+
const showRefund = hasText(refundAmount);
|
|
5343
|
+
const agentNameTrimmed = agentName == null ? void 0 : agentName.trim();
|
|
5344
|
+
const contact = agentContactLinks != null ? agentContactLinks : {};
|
|
5345
|
+
const closingNode = agentNameTrimmed ? l.closingAgent(agentNameTrimmed, contact) : l.closingNoAgent;
|
|
5346
|
+
const sectionDivider = /* @__PURE__ */ jsxRuntime.jsx(
|
|
5347
|
+
"hr",
|
|
5348
|
+
{
|
|
5349
|
+
style: {
|
|
5350
|
+
border: "none",
|
|
5351
|
+
borderTop: `1px solid ${emailTokens.border}`,
|
|
5352
|
+
marginTop: 0,
|
|
5353
|
+
marginBottom: "24px"
|
|
5354
|
+
}
|
|
5355
|
+
}
|
|
5356
|
+
);
|
|
5357
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
5358
|
+
"div",
|
|
5359
|
+
{
|
|
5360
|
+
style: {
|
|
5361
|
+
maxWidth: "576px",
|
|
5362
|
+
margin: "0 auto",
|
|
5363
|
+
backgroundColor: emailTokens.white,
|
|
5364
|
+
color: emailTokens.foreground,
|
|
5365
|
+
fontFamily: emailTokens.fontFamily,
|
|
5366
|
+
fontSize: "16px",
|
|
5367
|
+
lineHeight: "1.6",
|
|
5368
|
+
border: `1px solid ${emailTokens.border}`,
|
|
5369
|
+
borderRadius: "12px",
|
|
5370
|
+
overflow: "hidden",
|
|
5371
|
+
padding: "32px"
|
|
5372
|
+
},
|
|
5373
|
+
className,
|
|
5374
|
+
children: [
|
|
5375
|
+
/* @__PURE__ */ jsxRuntime.jsx(EmailLogo, { src: logoUrl, alt: l.logoAlt }),
|
|
5376
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { style: { marginBottom: "16px" }, children: l.greeting(recipientName) }),
|
|
5377
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5378
|
+
"p",
|
|
5379
|
+
{
|
|
5380
|
+
style: {
|
|
5381
|
+
marginTop: 0,
|
|
5382
|
+
marginBottom: "16px",
|
|
5383
|
+
fontWeight: 700,
|
|
5384
|
+
color: emailTokens.foreground,
|
|
5385
|
+
fontSize: "20px",
|
|
5386
|
+
lineHeight: "1.3",
|
|
5387
|
+
fontFamily: emailTokens.fontFamily
|
|
5388
|
+
},
|
|
5389
|
+
children: l.title
|
|
5390
|
+
}
|
|
5391
|
+
),
|
|
5392
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { style: { marginBottom: "24px" }, children: l.intro(`#${bookingRef}`) }),
|
|
5393
|
+
sectionDivider,
|
|
5394
|
+
/* @__PURE__ */ jsxRuntime.jsx(BookingSummary, { heading: l.summaryHeading, rows: summaryRows }),
|
|
5395
|
+
showRefund && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
5396
|
+
"div",
|
|
5397
|
+
{
|
|
5398
|
+
style: {
|
|
5399
|
+
marginBottom: "24px",
|
|
5400
|
+
padding: "16px 20px",
|
|
5401
|
+
borderRadius: "12px",
|
|
5402
|
+
border: `1px solid ${emailTokens.border}`,
|
|
5403
|
+
backgroundColor: emailTokens.muted
|
|
5404
|
+
},
|
|
5405
|
+
children: [
|
|
5406
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5407
|
+
"p",
|
|
5408
|
+
{
|
|
5409
|
+
style: {
|
|
5410
|
+
margin: "0 0 8px 0",
|
|
5411
|
+
fontSize: "12px",
|
|
5412
|
+
fontWeight: 700,
|
|
5413
|
+
color: emailTokens.mutedForeground,
|
|
5414
|
+
textTransform: "uppercase",
|
|
5415
|
+
letterSpacing: "0.08em",
|
|
5416
|
+
fontFamily: emailTokens.fontFamily
|
|
5417
|
+
},
|
|
5418
|
+
children: l.refundHeading
|
|
5419
|
+
}
|
|
5420
|
+
),
|
|
5421
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5422
|
+
"table",
|
|
5423
|
+
{
|
|
5424
|
+
cellPadding: 0,
|
|
5425
|
+
cellSpacing: 0,
|
|
5426
|
+
style: { width: "100%", borderCollapse: "collapse" },
|
|
5427
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("tbody", { children: /* @__PURE__ */ jsxRuntime.jsxs("tr", { children: [
|
|
5428
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5429
|
+
"td",
|
|
5430
|
+
{
|
|
5431
|
+
style: {
|
|
5432
|
+
fontSize: "14px",
|
|
5433
|
+
color: emailTokens.bodyText,
|
|
5434
|
+
verticalAlign: "middle"
|
|
5435
|
+
},
|
|
5436
|
+
children: l.refundAmountLabel
|
|
5437
|
+
}
|
|
5438
|
+
),
|
|
5439
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5440
|
+
"td",
|
|
5441
|
+
{
|
|
5442
|
+
style: {
|
|
5443
|
+
fontSize: "18px",
|
|
5444
|
+
fontWeight: 700,
|
|
5445
|
+
color: emailTokens.foreground,
|
|
5446
|
+
textAlign: "right",
|
|
5447
|
+
verticalAlign: "middle",
|
|
5448
|
+
whiteSpace: "nowrap"
|
|
5449
|
+
},
|
|
5450
|
+
children: refundAmount
|
|
5451
|
+
}
|
|
5452
|
+
)
|
|
5453
|
+
] }) })
|
|
5454
|
+
}
|
|
5455
|
+
),
|
|
5456
|
+
hasText(l.refundNote) && /* @__PURE__ */ jsxRuntime.jsx(
|
|
5457
|
+
"p",
|
|
5458
|
+
{
|
|
5459
|
+
style: {
|
|
5460
|
+
margin: "8px 0 0 0",
|
|
5461
|
+
fontSize: "12px",
|
|
5462
|
+
color: emailTokens.mutedForeground,
|
|
5463
|
+
fontStyle: "italic"
|
|
5464
|
+
},
|
|
5465
|
+
children: l.refundNote
|
|
5466
|
+
}
|
|
5467
|
+
)
|
|
5468
|
+
]
|
|
5469
|
+
}
|
|
5470
|
+
),
|
|
5471
|
+
sectionDivider,
|
|
5472
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5473
|
+
"p",
|
|
5474
|
+
{
|
|
5475
|
+
style: {
|
|
5476
|
+
marginBottom: "16px",
|
|
5477
|
+
fontSize: "14px",
|
|
5478
|
+
fontWeight: 700,
|
|
5479
|
+
color: emailTokens.bodyText
|
|
5480
|
+
},
|
|
5481
|
+
children: closingNode
|
|
5482
|
+
}
|
|
5483
|
+
),
|
|
5484
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5485
|
+
"p",
|
|
5486
|
+
{
|
|
5487
|
+
style: {
|
|
5488
|
+
marginTop: 0,
|
|
5489
|
+
marginBottom: 0,
|
|
5490
|
+
fontSize: "14px",
|
|
5491
|
+
color: emailTokens.bodyText
|
|
5492
|
+
},
|
|
5493
|
+
children: l.teamSignature
|
|
5494
|
+
}
|
|
5495
|
+
)
|
|
5496
|
+
]
|
|
5497
|
+
}
|
|
5498
|
+
);
|
|
5499
|
+
}
|
|
5272
5500
|
function RegistrationProgressBar({
|
|
5273
5501
|
tone,
|
|
5274
5502
|
pct,
|
|
@@ -5331,23 +5559,23 @@ function RegistrationProgressBar({
|
|
|
5331
5559
|
}
|
|
5332
5560
|
) });
|
|
5333
5561
|
}
|
|
5334
|
-
var
|
|
5562
|
+
var INLINE_LINK_STYLE2 = {
|
|
5335
5563
|
color: emailTokens.primary,
|
|
5336
5564
|
textDecoration: "underline"
|
|
5337
5565
|
};
|
|
5338
|
-
function
|
|
5566
|
+
function renderWhatsappLink2(contact, label) {
|
|
5339
5567
|
if (contact.whatsappUrl) {
|
|
5340
|
-
return /* @__PURE__ */ jsxRuntime.jsx("a", { href: contact.whatsappUrl, style:
|
|
5568
|
+
return /* @__PURE__ */ jsxRuntime.jsx("a", { href: contact.whatsappUrl, style: INLINE_LINK_STYLE2, children: label });
|
|
5341
5569
|
}
|
|
5342
5570
|
return label;
|
|
5343
5571
|
}
|
|
5344
|
-
function
|
|
5572
|
+
function renderEmailLink2(contact, label) {
|
|
5345
5573
|
if (contact.email) {
|
|
5346
|
-
return /* @__PURE__ */ jsxRuntime.jsx("a", { href: `mailto:${contact.email}`, style:
|
|
5574
|
+
return /* @__PURE__ */ jsxRuntime.jsx("a", { href: `mailto:${contact.email}`, style: INLINE_LINK_STYLE2, children: label });
|
|
5347
5575
|
}
|
|
5348
5576
|
return label;
|
|
5349
5577
|
}
|
|
5350
|
-
var
|
|
5578
|
+
var DEFAULT_LABELS6 = {
|
|
5351
5579
|
logoAlt: "PlanetaEXO",
|
|
5352
5580
|
greeting: (n) => `Hi ${n},`,
|
|
5353
5581
|
intermediateHello: "Hope you're doing well.",
|
|
@@ -5366,9 +5594,9 @@ var DEFAULT_LABELS5 = {
|
|
|
5366
5594
|
"If you need any assistance with the traveller registrations, feel free to contact your agent ",
|
|
5367
5595
|
agentName,
|
|
5368
5596
|
" via ",
|
|
5369
|
-
|
|
5597
|
+
renderWhatsappLink2(contact, "WhatsApp"),
|
|
5370
5598
|
" or ",
|
|
5371
|
-
|
|
5599
|
+
renderEmailLink2(contact, "email"),
|
|
5372
5600
|
"."
|
|
5373
5601
|
] }),
|
|
5374
5602
|
closingNoAgent: "If you need any assistance with the traveller registrations, feel free to contact us via WhatsApp or email.",
|
|
@@ -5441,7 +5669,7 @@ var DEFAULT_LABELS5 = {
|
|
|
5441
5669
|
}
|
|
5442
5670
|
}
|
|
5443
5671
|
};
|
|
5444
|
-
function
|
|
5672
|
+
function hasText2(s) {
|
|
5445
5673
|
return typeof s === "string" && s.trim().length > 0;
|
|
5446
5674
|
}
|
|
5447
5675
|
function hasItems(arr) {
|
|
@@ -5461,12 +5689,12 @@ function RegistrationReminderEmail({
|
|
|
5461
5689
|
className
|
|
5462
5690
|
}) {
|
|
5463
5691
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
5464
|
-
const l = __spreadProps(__spreadValues(__spreadValues({},
|
|
5692
|
+
const l = __spreadProps(__spreadValues(__spreadValues({}, DEFAULT_LABELS6), labels), {
|
|
5465
5693
|
variants: {
|
|
5466
|
-
d_minus_30: __spreadValues(__spreadValues({},
|
|
5467
|
-
d_minus_15: __spreadValues(__spreadValues({},
|
|
5468
|
-
d_minus_7: __spreadValues(__spreadValues({},
|
|
5469
|
-
d_minus_2: __spreadValues(__spreadValues({},
|
|
5694
|
+
d_minus_30: __spreadValues(__spreadValues({}, DEFAULT_LABELS6.variants.d_minus_30), (_b = (_a = labels == null ? void 0 : labels.variants) == null ? void 0 : _a.d_minus_30) != null ? _b : {}),
|
|
5695
|
+
d_minus_15: __spreadValues(__spreadValues({}, DEFAULT_LABELS6.variants.d_minus_15), (_d = (_c = labels == null ? void 0 : labels.variants) == null ? void 0 : _c.d_minus_15) != null ? _d : {}),
|
|
5696
|
+
d_minus_7: __spreadValues(__spreadValues({}, DEFAULT_LABELS6.variants.d_minus_7), (_f = (_e = labels == null ? void 0 : labels.variants) == null ? void 0 : _e.d_minus_7) != null ? _f : {}),
|
|
5697
|
+
d_minus_2: __spreadValues(__spreadValues({}, DEFAULT_LABELS6.variants.d_minus_2), (_h = (_g = labels == null ? void 0 : labels.variants) == null ? void 0 : _g.d_minus_2) != null ? _h : {})
|
|
5470
5698
|
}
|
|
5471
5699
|
});
|
|
5472
5700
|
const v = l.variants[slug];
|
|
@@ -5487,14 +5715,14 @@ function RegistrationReminderEmail({
|
|
|
5487
5715
|
{ label: l.travellersRowLabel, value: l.travellersCountLabel(totalTravellers) },
|
|
5488
5716
|
...(agent == null ? void 0 : agent.name) ? [{ label: l.agentRowLabel, value: agent.name }] : []
|
|
5489
5717
|
];
|
|
5490
|
-
const showPleaseNote =
|
|
5491
|
-
const showBookerCoord =
|
|
5492
|
-
const showEarlyBenefit =
|
|
5493
|
-
const showImportant =
|
|
5494
|
-
const showFinalTagline =
|
|
5495
|
-
|
|
5496
|
-
const showDisregard =
|
|
5497
|
-
const showClosingThanks =
|
|
5718
|
+
const showPleaseNote = hasText2(v.pleaseNoteHeader) && hasItems(v.pleaseNoteBullets);
|
|
5719
|
+
const showBookerCoord = hasText2(v.bookerCoordinationNote);
|
|
5720
|
+
const showEarlyBenefit = hasText2(v.earlyCompletionBenefit);
|
|
5721
|
+
const showImportant = hasText2(v.importantNote);
|
|
5722
|
+
const showFinalTagline = hasText2(v.finalReminderTagline);
|
|
5723
|
+
hasText2(v.multiTravellerNote);
|
|
5724
|
+
const showDisregard = hasText2(v.disregardIfCompleted);
|
|
5725
|
+
const showClosingThanks = hasText2(v.closingThanks);
|
|
5498
5726
|
const sectionDivider = /* @__PURE__ */ jsxRuntime.jsx(
|
|
5499
5727
|
"hr",
|
|
5500
5728
|
{
|
|
@@ -5506,7 +5734,7 @@ function RegistrationReminderEmail({
|
|
|
5506
5734
|
}
|
|
5507
5735
|
}
|
|
5508
5736
|
);
|
|
5509
|
-
const hasIntroBlock =
|
|
5737
|
+
const hasIntroBlock = hasText2(v.intro) || hasText2(v.contextNote);
|
|
5510
5738
|
const hasPleaseNote = showPleaseNote;
|
|
5511
5739
|
const hasD7Highlight = showImportant && slug === "d_minus_7";
|
|
5512
5740
|
const hasD2Highlight = showFinalTagline || showImportant && slug === "d_minus_2";
|
|
@@ -5530,9 +5758,9 @@ function RegistrationReminderEmail({
|
|
|
5530
5758
|
children: [
|
|
5531
5759
|
/* @__PURE__ */ jsxRuntime.jsx(EmailLogo, { src: logoUrl, alt: l.logoAlt }),
|
|
5532
5760
|
/* @__PURE__ */ jsxRuntime.jsx("p", { style: { marginBottom: "16px" }, children: l.greeting(recipientFirstName) }),
|
|
5533
|
-
|
|
5534
|
-
|
|
5535
|
-
|
|
5761
|
+
hasText2(l.intermediateHello) && /* @__PURE__ */ jsxRuntime.jsx("p", { style: { marginBottom: "16px" }, children: l.intermediateHello }),
|
|
5762
|
+
hasText2(v.intro) && /* @__PURE__ */ jsxRuntime.jsx("p", { style: { marginBottom: "16px" }, children: v.intro }),
|
|
5763
|
+
hasText2(v.contextNote) && /* @__PURE__ */ jsxRuntime.jsx("p", { style: { marginBottom: "16px" }, children: v.contextNote }),
|
|
5536
5764
|
hasIntroBlock && sectionDivider,
|
|
5537
5765
|
slug === "d_minus_15" && showBookerCoord && /* @__PURE__ */ jsxRuntime.jsx("p", { style: { marginBottom: "16px" }, children: v.bookerCoordinationNote }),
|
|
5538
5766
|
hasItems(adventures) && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
@@ -5550,7 +5778,7 @@ function RegistrationReminderEmail({
|
|
|
5550
5778
|
children: l.progressHeader
|
|
5551
5779
|
}
|
|
5552
5780
|
),
|
|
5553
|
-
|
|
5781
|
+
hasText2(v.progressIntro) && /* @__PURE__ */ jsxRuntime.jsx("p", { style: { marginBottom: "16px", color: emailTokens.bodyText }, children: v.progressIntro }),
|
|
5554
5782
|
adventures.map((adv, i) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
5555
5783
|
"div",
|
|
5556
5784
|
{
|
|
@@ -5686,23 +5914,23 @@ function RegistrationReminderEmail({
|
|
|
5686
5914
|
}
|
|
5687
5915
|
);
|
|
5688
5916
|
}
|
|
5689
|
-
var
|
|
5917
|
+
var INLINE_LINK_STYLE3 = {
|
|
5690
5918
|
color: emailTokens.primary,
|
|
5691
5919
|
textDecoration: "underline"
|
|
5692
5920
|
};
|
|
5693
|
-
function
|
|
5921
|
+
function renderWhatsappLink3(contact, label) {
|
|
5694
5922
|
if (contact.whatsappUrl) {
|
|
5695
|
-
return /* @__PURE__ */ jsxRuntime.jsx("a", { href: contact.whatsappUrl, style:
|
|
5923
|
+
return /* @__PURE__ */ jsxRuntime.jsx("a", { href: contact.whatsappUrl, style: INLINE_LINK_STYLE3, children: label });
|
|
5696
5924
|
}
|
|
5697
5925
|
return label;
|
|
5698
5926
|
}
|
|
5699
|
-
function
|
|
5927
|
+
function renderEmailLink3(contact, label) {
|
|
5700
5928
|
if (contact.email) {
|
|
5701
|
-
return /* @__PURE__ */ jsxRuntime.jsx("a", { href: `mailto:${contact.email}`, style:
|
|
5929
|
+
return /* @__PURE__ */ jsxRuntime.jsx("a", { href: `mailto:${contact.email}`, style: INLINE_LINK_STYLE3, children: label });
|
|
5702
5930
|
}
|
|
5703
5931
|
return label;
|
|
5704
5932
|
}
|
|
5705
|
-
var
|
|
5933
|
+
var DEFAULT_LABELS7 = {
|
|
5706
5934
|
logoAlt: "PlanetaEXO",
|
|
5707
5935
|
greeting: (n) => `Hi ${n},`,
|
|
5708
5936
|
tripDetailsHeader: "\u{1F4CB} Trip details",
|
|
@@ -5718,9 +5946,9 @@ var DEFAULT_LABELS6 = {
|
|
|
5718
5946
|
"If you have questions, your agent ",
|
|
5719
5947
|
agentName,
|
|
5720
5948
|
" is available via ",
|
|
5721
|
-
|
|
5949
|
+
renderWhatsappLink3(contact, "WhatsApp"),
|
|
5722
5950
|
" or ",
|
|
5723
|
-
|
|
5951
|
+
renderEmailLink3(contact, "email"),
|
|
5724
5952
|
"."
|
|
5725
5953
|
] }),
|
|
5726
5954
|
closingNoAgent: "If you have questions or need assistance, our team is available via WhatsApp or email.",
|
|
@@ -5768,7 +5996,7 @@ var DEFAULT_LABELS6 = {
|
|
|
5768
5996
|
}
|
|
5769
5997
|
}
|
|
5770
5998
|
};
|
|
5771
|
-
function
|
|
5999
|
+
function hasText3(s) {
|
|
5772
6000
|
return typeof s === "string" && s.trim().length > 0;
|
|
5773
6001
|
}
|
|
5774
6002
|
function RegistrationReminderIndividualEmail({
|
|
@@ -5789,12 +6017,12 @@ function RegistrationReminderIndividualEmail({
|
|
|
5789
6017
|
className
|
|
5790
6018
|
}) {
|
|
5791
6019
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
5792
|
-
const l = __spreadProps(__spreadValues(__spreadValues({},
|
|
6020
|
+
const l = __spreadProps(__spreadValues(__spreadValues({}, DEFAULT_LABELS7), labels), {
|
|
5793
6021
|
variants: {
|
|
5794
|
-
d_minus_30: __spreadValues(__spreadValues({},
|
|
5795
|
-
d_minus_15: __spreadValues(__spreadValues({},
|
|
5796
|
-
d_minus_7: __spreadValues(__spreadValues({},
|
|
5797
|
-
d_minus_2: __spreadValues(__spreadValues({},
|
|
6022
|
+
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 : {}),
|
|
6023
|
+
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 : {}),
|
|
6024
|
+
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 : {}),
|
|
6025
|
+
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 : {})
|
|
5798
6026
|
}
|
|
5799
6027
|
});
|
|
5800
6028
|
const v = l.variants[slug];
|
|
@@ -5814,7 +6042,7 @@ function RegistrationReminderIndividualEmail({
|
|
|
5814
6042
|
{ label: l.leadTravellerLabel, value: leadTravellerName },
|
|
5815
6043
|
{ label: l.adventureLabel, value: adventureName },
|
|
5816
6044
|
{ label: l.startingDateLabel, value: startDateFormatted },
|
|
5817
|
-
...
|
|
6045
|
+
...hasText3(partnerName) ? [{ label: l.partnerLabel, value: partnerName }] : []
|
|
5818
6046
|
];
|
|
5819
6047
|
const sectionDivider = /* @__PURE__ */ jsxRuntime.jsx(
|
|
5820
6048
|
"hr",
|
|
@@ -5849,7 +6077,7 @@ function RegistrationReminderIndividualEmail({
|
|
|
5849
6077
|
children: [
|
|
5850
6078
|
/* @__PURE__ */ jsxRuntime.jsx(EmailLogo, { src: logoUrl, alt: l.logoAlt }),
|
|
5851
6079
|
/* @__PURE__ */ jsxRuntime.jsx("p", { style: { marginBottom: "16px" }, children: l.greeting(recipientFirstName) }),
|
|
5852
|
-
|
|
6080
|
+
hasText3(routingNote) && /* @__PURE__ */ jsxRuntime.jsx(
|
|
5853
6081
|
"p",
|
|
5854
6082
|
{
|
|
5855
6083
|
style: {
|
|
@@ -5864,8 +6092,8 @@ function RegistrationReminderIndividualEmail({
|
|
|
5864
6092
|
}
|
|
5865
6093
|
),
|
|
5866
6094
|
/* @__PURE__ */ jsxRuntime.jsx("p", { style: { marginBottom: "16px" }, children: introText }),
|
|
5867
|
-
|
|
5868
|
-
slug === "d_minus_2" && (
|
|
6095
|
+
hasText3(v.contextNote) && /* @__PURE__ */ jsxRuntime.jsx("p", { style: { marginBottom: "16px" }, children: v.contextNote }),
|
|
6096
|
+
slug === "d_minus_2" && (hasText3(v.finalReminderTagline) || hasText3(v.consequencesNote)) && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
5869
6097
|
"div",
|
|
5870
6098
|
{
|
|
5871
6099
|
style: {
|
|
@@ -5877,23 +6105,23 @@ function RegistrationReminderIndividualEmail({
|
|
|
5877
6105
|
color: "#7f1d1d"
|
|
5878
6106
|
},
|
|
5879
6107
|
children: [
|
|
5880
|
-
|
|
6108
|
+
hasText3(v.finalReminderTagline) && /* @__PURE__ */ jsxRuntime.jsx(
|
|
5881
6109
|
"p",
|
|
5882
6110
|
{
|
|
5883
6111
|
style: {
|
|
5884
6112
|
margin: 0,
|
|
5885
|
-
marginBottom:
|
|
6113
|
+
marginBottom: hasText3(v.consequencesNote) ? "8px" : 0,
|
|
5886
6114
|
fontWeight: 700
|
|
5887
6115
|
},
|
|
5888
6116
|
children: v.finalReminderTagline
|
|
5889
6117
|
}
|
|
5890
6118
|
),
|
|
5891
|
-
|
|
6119
|
+
hasText3(v.consequencesNote) && /* @__PURE__ */ jsxRuntime.jsx("p", { style: { margin: 0 }, children: v.consequencesNote })
|
|
5892
6120
|
]
|
|
5893
6121
|
}
|
|
5894
6122
|
),
|
|
5895
6123
|
/* @__PURE__ */ jsxRuntime.jsx("div", { style: { marginBottom: "24px", textAlign: "left" }, children: /* @__PURE__ */ jsxRuntime.jsx("a", { href: ctaUrl, style: ctaStyle, children: l.ctaLabel }) }),
|
|
5896
|
-
slug === "d_minus_7" &&
|
|
6124
|
+
slug === "d_minus_7" && hasText3(v.mandatoryNote) && /* @__PURE__ */ jsxRuntime.jsx(
|
|
5897
6125
|
"p",
|
|
5898
6126
|
{
|
|
5899
6127
|
style: {
|
|
@@ -5909,8 +6137,8 @@ function RegistrationReminderIndividualEmail({
|
|
|
5909
6137
|
),
|
|
5910
6138
|
sectionDivider,
|
|
5911
6139
|
/* @__PURE__ */ jsxRuntime.jsx(BookingSummary, { heading: l.tripDetailsHeader, rows: tripRows }),
|
|
5912
|
-
(slug === "d_minus_30" || slug === "d_minus_15") &&
|
|
5913
|
-
slug === "d_minus_2" &&
|
|
6140
|
+
(slug === "d_minus_30" || slug === "d_minus_15") && hasText3(v.mandatoryNote) && /* @__PURE__ */ jsxRuntime.jsx("p", { style: { marginBottom: "16px", color: emailTokens.bodyText }, children: v.mandatoryNote }),
|
|
6141
|
+
slug === "d_minus_2" && hasText3(v.disregardIfCompleted) && /* @__PURE__ */ jsxRuntime.jsx(
|
|
5914
6142
|
"p",
|
|
5915
6143
|
{
|
|
5916
6144
|
style: {
|
|
@@ -5927,29 +6155,29 @@ function RegistrationReminderIndividualEmail({
|
|
|
5927
6155
|
whatsappUrl: agent.whatsappUrl,
|
|
5928
6156
|
email: agent.email
|
|
5929
6157
|
}) : l.closingNoAgent }),
|
|
5930
|
-
|
|
6158
|
+
hasText3(v.closingThanks) && /* @__PURE__ */ jsxRuntime.jsx("p", { style: { marginBottom: "16px", fontSize: "14px", color: emailTokens.bodyText }, children: v.closingThanks }),
|
|
5931
6159
|
/* @__PURE__ */ jsxRuntime.jsx("p", { style: { marginTop: 0, marginBottom: 0, fontSize: "14px", color: emailTokens.bodyText }, children: l.teamSignature })
|
|
5932
6160
|
]
|
|
5933
6161
|
}
|
|
5934
6162
|
);
|
|
5935
6163
|
}
|
|
5936
|
-
var
|
|
6164
|
+
var INLINE_LINK_STYLE4 = {
|
|
5937
6165
|
color: emailTokens.primary,
|
|
5938
6166
|
textDecoration: "underline"
|
|
5939
6167
|
};
|
|
5940
|
-
function
|
|
6168
|
+
function renderWhatsappLink4(contact, label) {
|
|
5941
6169
|
if (contact.whatsappUrl) {
|
|
5942
|
-
return /* @__PURE__ */ jsxRuntime.jsx("a", { href: contact.whatsappUrl, style:
|
|
6170
|
+
return /* @__PURE__ */ jsxRuntime.jsx("a", { href: contact.whatsappUrl, style: INLINE_LINK_STYLE4, children: label });
|
|
5943
6171
|
}
|
|
5944
6172
|
return label;
|
|
5945
6173
|
}
|
|
5946
|
-
function
|
|
6174
|
+
function renderEmailLink4(contact, label) {
|
|
5947
6175
|
if (contact.email) {
|
|
5948
|
-
return /* @__PURE__ */ jsxRuntime.jsx("a", { href: `mailto:${contact.email}`, style:
|
|
6176
|
+
return /* @__PURE__ */ jsxRuntime.jsx("a", { href: `mailto:${contact.email}`, style: INLINE_LINK_STYLE4, children: label });
|
|
5949
6177
|
}
|
|
5950
6178
|
return label;
|
|
5951
6179
|
}
|
|
5952
|
-
var
|
|
6180
|
+
var DEFAULT_LABELS8 = {
|
|
5953
6181
|
logoAlt: "PlanetaEXO",
|
|
5954
6182
|
greeting: (n) => `Hi ${n},`,
|
|
5955
6183
|
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.`,
|
|
@@ -5969,15 +6197,15 @@ var DEFAULT_LABELS7 = {
|
|
|
5969
6197
|
agentName,
|
|
5970
6198
|
" is available via",
|
|
5971
6199
|
" ",
|
|
5972
|
-
|
|
6200
|
+
renderWhatsappLink4(contact, "WhatsApp"),
|
|
5973
6201
|
" or ",
|
|
5974
|
-
|
|
6202
|
+
renderEmailLink4(contact, "email"),
|
|
5975
6203
|
"."
|
|
5976
6204
|
] }),
|
|
5977
6205
|
closingNoAgent: "If you have any questions, our team is available via WhatsApp or email.",
|
|
5978
6206
|
teamSignature: "The PlanetaEXO Team"
|
|
5979
6207
|
};
|
|
5980
|
-
function
|
|
6208
|
+
function hasText4(s) {
|
|
5981
6209
|
return typeof s === "string" && s.trim().length > 0;
|
|
5982
6210
|
}
|
|
5983
6211
|
function PartnerConfirmationEmail({
|
|
@@ -5995,7 +6223,7 @@ function PartnerConfirmationEmail({
|
|
|
5995
6223
|
labels,
|
|
5996
6224
|
className
|
|
5997
6225
|
}) {
|
|
5998
|
-
const l = __spreadValues(__spreadValues({},
|
|
6226
|
+
const l = __spreadValues(__spreadValues({}, DEFAULT_LABELS8), labels);
|
|
5999
6227
|
const tripRows = [
|
|
6000
6228
|
{ label: l.bookingNumberLabel, value: `#${bookingNumber}`, valueColor: emailTokens.primary },
|
|
6001
6229
|
{ label: l.adventureLabel, value: adventureName },
|
|
@@ -6034,7 +6262,7 @@ function PartnerConfirmationEmail({
|
|
|
6034
6262
|
className,
|
|
6035
6263
|
children: [
|
|
6036
6264
|
/* @__PURE__ */ jsxRuntime.jsx(EmailLogo, { src: logoUrl, alt: l.logoAlt }),
|
|
6037
|
-
|
|
6265
|
+
hasText4(topNotice) && /* @__PURE__ */ jsxRuntime.jsx(
|
|
6038
6266
|
"div",
|
|
6039
6267
|
{
|
|
6040
6268
|
style: {
|
|
@@ -6111,7 +6339,7 @@ function PartnerConfirmationEmail({
|
|
|
6111
6339
|
}) })
|
|
6112
6340
|
}
|
|
6113
6341
|
) : /* @__PURE__ */ jsxRuntime.jsx("p", { style: { marginTop: 0, marginBottom: "24px", color: emailTokens.bodyText }, children: l.expectationsEmptyNote }),
|
|
6114
|
-
pdfAttached &&
|
|
6342
|
+
pdfAttached && hasText4(l.pdfNote) && /* @__PURE__ */ jsxRuntime.jsx(
|
|
6115
6343
|
"div",
|
|
6116
6344
|
{
|
|
6117
6345
|
style: {
|
|
@@ -6136,26 +6364,26 @@ function PartnerConfirmationEmail({
|
|
|
6136
6364
|
}
|
|
6137
6365
|
);
|
|
6138
6366
|
}
|
|
6139
|
-
var
|
|
6367
|
+
var INLINE_LINK_STYLE5 = {
|
|
6140
6368
|
color: emailTokens.primary,
|
|
6141
6369
|
textDecoration: "underline"
|
|
6142
6370
|
};
|
|
6143
|
-
function
|
|
6371
|
+
function renderWhatsappLink5(contact, label) {
|
|
6144
6372
|
if (contact.whatsappUrl) {
|
|
6145
|
-
return /* @__PURE__ */ jsxRuntime.jsx("a", { href: contact.whatsappUrl, style:
|
|
6373
|
+
return /* @__PURE__ */ jsxRuntime.jsx("a", { href: contact.whatsappUrl, style: INLINE_LINK_STYLE5, children: label });
|
|
6146
6374
|
}
|
|
6147
6375
|
return label;
|
|
6148
6376
|
}
|
|
6149
|
-
function
|
|
6377
|
+
function renderEmailLink5(contact, label) {
|
|
6150
6378
|
if (contact.email) {
|
|
6151
|
-
return /* @__PURE__ */ jsxRuntime.jsx("a", { href: `mailto:${contact.email}`, style:
|
|
6379
|
+
return /* @__PURE__ */ jsxRuntime.jsx("a", { href: `mailto:${contact.email}`, style: INLINE_LINK_STYLE5, children: label });
|
|
6152
6380
|
}
|
|
6153
6381
|
return label;
|
|
6154
6382
|
}
|
|
6155
|
-
function
|
|
6383
|
+
function hasText5(s) {
|
|
6156
6384
|
return typeof s === "string" && s.trim().length > 0;
|
|
6157
6385
|
}
|
|
6158
|
-
var
|
|
6386
|
+
var DEFAULT_LABELS9 = {
|
|
6159
6387
|
logoAlt: "PlanetaEXO",
|
|
6160
6388
|
greeting: (n) => `Hi ${n},`,
|
|
6161
6389
|
intro: (adv) => `You have a new booking for your adventure ${adv}. Here are the details:`,
|
|
@@ -6173,9 +6401,9 @@ var DEFAULT_LABELS8 = {
|
|
|
6173
6401
|
agentName,
|
|
6174
6402
|
" is available via",
|
|
6175
6403
|
" ",
|
|
6176
|
-
|
|
6404
|
+
renderWhatsappLink5(contact, "WhatsApp"),
|
|
6177
6405
|
" or ",
|
|
6178
|
-
|
|
6406
|
+
renderEmailLink5(contact, "email"),
|
|
6179
6407
|
"."
|
|
6180
6408
|
] }),
|
|
6181
6409
|
closingNoAgent: "If you have any questions, our team is available via WhatsApp or email.",
|
|
@@ -6194,10 +6422,10 @@ function PartnerBookingCreatedEmail({
|
|
|
6194
6422
|
labels,
|
|
6195
6423
|
className
|
|
6196
6424
|
}) {
|
|
6197
|
-
const l = __spreadValues(__spreadValues({},
|
|
6425
|
+
const l = __spreadValues(__spreadValues({}, DEFAULT_LABELS9), labels);
|
|
6198
6426
|
const summaryRows = [
|
|
6199
6427
|
{ label: l.bookerNameLabel, value: booker.name },
|
|
6200
|
-
...
|
|
6428
|
+
...hasText5(booker.country) ? [{ label: l.bookerCountryLabel, value: booker.country }] : [],
|
|
6201
6429
|
{ label: l.bookingNumberLabel, value: `#${bookingNumber}`, valueColor: emailTokens.primary },
|
|
6202
6430
|
{ label: l.adventureLabel, value: adventureName },
|
|
6203
6431
|
{ label: l.datesLabel, value: dateRange },
|
|
@@ -6233,7 +6461,7 @@ function PartnerBookingCreatedEmail({
|
|
|
6233
6461
|
className,
|
|
6234
6462
|
children: [
|
|
6235
6463
|
/* @__PURE__ */ jsxRuntime.jsx(EmailLogo, { src: logoUrl, alt: l.logoAlt }),
|
|
6236
|
-
|
|
6464
|
+
hasText5(topNotice) && /* @__PURE__ */ jsxRuntime.jsx(
|
|
6237
6465
|
"div",
|
|
6238
6466
|
{
|
|
6239
6467
|
style: {
|
|
@@ -6283,7 +6511,7 @@ function PartnerBookingCreatedEmail({
|
|
|
6283
6511
|
}
|
|
6284
6512
|
);
|
|
6285
6513
|
}
|
|
6286
|
-
var
|
|
6514
|
+
var DEFAULT_LABELS10 = {
|
|
6287
6515
|
logoAlt: "PlanetaEXO",
|
|
6288
6516
|
greeting: (name) => `Hi ${name},`,
|
|
6289
6517
|
introMessage: "",
|
|
@@ -6324,7 +6552,7 @@ function PaymentReceiptEmail({
|
|
|
6324
6552
|
labels,
|
|
6325
6553
|
className
|
|
6326
6554
|
}) {
|
|
6327
|
-
const l = __spreadValues(__spreadValues({},
|
|
6555
|
+
const l = __spreadValues(__spreadValues({}, DEFAULT_LABELS10), labels);
|
|
6328
6556
|
const travellersLine = travellers.filter((s) => s.trim().length > 0).join(", ");
|
|
6329
6557
|
const interestRow = chargedAmount && chargedAmount !== amount;
|
|
6330
6558
|
const receiptRows = [
|
|
@@ -6467,24 +6695,24 @@ function PaymentReceiptEmail({
|
|
|
6467
6695
|
}
|
|
6468
6696
|
);
|
|
6469
6697
|
}
|
|
6470
|
-
var
|
|
6698
|
+
var INLINE_LINK_STYLE6 = {
|
|
6471
6699
|
color: emailTokens.primary,
|
|
6472
6700
|
textDecoration: "underline"
|
|
6473
6701
|
};
|
|
6474
|
-
function
|
|
6702
|
+
function renderWhatsappLink6(contact, label) {
|
|
6475
6703
|
if (contact.whatsappUrl) {
|
|
6476
|
-
return /* @__PURE__ */ jsxRuntime.jsx("a", { href: contact.whatsappUrl, style:
|
|
6704
|
+
return /* @__PURE__ */ jsxRuntime.jsx("a", { href: contact.whatsappUrl, style: INLINE_LINK_STYLE6, children: label });
|
|
6477
6705
|
}
|
|
6478
6706
|
return label;
|
|
6479
6707
|
}
|
|
6480
|
-
function
|
|
6708
|
+
function renderEmailLink6(contact, label) {
|
|
6481
6709
|
if (contact.email) {
|
|
6482
|
-
return /* @__PURE__ */ jsxRuntime.jsx("a", { href: `mailto:${contact.email}`, style:
|
|
6710
|
+
return /* @__PURE__ */ jsxRuntime.jsx("a", { href: `mailto:${contact.email}`, style: INLINE_LINK_STYLE6, children: label });
|
|
6483
6711
|
}
|
|
6484
6712
|
return label;
|
|
6485
6713
|
}
|
|
6486
6714
|
var EMPTY_CLOSING_ALTERNATIVE = (_agentName, _contact) => null;
|
|
6487
|
-
var
|
|
6715
|
+
var DEFAULT_LABELS11 = {
|
|
6488
6716
|
logoAlt: "PlanetaEXO",
|
|
6489
6717
|
greeting: (name) => `Hi ${name},`,
|
|
6490
6718
|
intermediateHello: "Hope you're doing well.",
|
|
@@ -6499,9 +6727,9 @@ var DEFAULT_LABELS10 = {
|
|
|
6499
6727
|
"If you need any assistance or would like to discuss your payment, feel free to contact your agent ",
|
|
6500
6728
|
agentName,
|
|
6501
6729
|
" via ",
|
|
6502
|
-
|
|
6730
|
+
renderWhatsappLink6(contact, "WhatsApp"),
|
|
6503
6731
|
" or ",
|
|
6504
|
-
|
|
6732
|
+
renderEmailLink6(contact, "email"),
|
|
6505
6733
|
"."
|
|
6506
6734
|
] }),
|
|
6507
6735
|
closingNoAgent: "If you need any assistance or would like to discuss your payment, feel free to contact us via WhatsApp or email.",
|
|
@@ -6545,9 +6773,9 @@ var DEFAULT_LABELS10 = {
|
|
|
6545
6773
|
"If you are experiencing any issues with payment or need additional time, please contact your agent ",
|
|
6546
6774
|
agentName,
|
|
6547
6775
|
" via ",
|
|
6548
|
-
|
|
6776
|
+
renderWhatsappLink6(contact, "WhatsApp"),
|
|
6549
6777
|
" or ",
|
|
6550
|
-
|
|
6778
|
+
renderEmailLink6(contact, "email"),
|
|
6551
6779
|
". We'll be happy to assist."
|
|
6552
6780
|
] })
|
|
6553
6781
|
}
|
|
@@ -6571,7 +6799,7 @@ function PaymentReminderEmail({
|
|
|
6571
6799
|
}) {
|
|
6572
6800
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s;
|
|
6573
6801
|
const lOverride = labels != null ? labels : {};
|
|
6574
|
-
const variantDefaults =
|
|
6802
|
+
const variantDefaults = DEFAULT_LABELS11.variants[variant];
|
|
6575
6803
|
const variantOverride = (_b = (_a = lOverride.variants) == null ? void 0 : _a[variant]) != null ? _b : {};
|
|
6576
6804
|
const variantLabels = {
|
|
6577
6805
|
intro: (_c = variantOverride.intro) != null ? _c : variantDefaults.intro,
|
|
@@ -6581,19 +6809,19 @@ function PaymentReminderEmail({
|
|
|
6581
6809
|
closingAlternative: (_f = variantOverride.closingAlternative) != null ? _f : variantDefaults.closingAlternative
|
|
6582
6810
|
};
|
|
6583
6811
|
const l = {
|
|
6584
|
-
logoAlt: (_g = lOverride.logoAlt) != null ? _g :
|
|
6585
|
-
greeting: (_h = lOverride.greeting) != null ? _h :
|
|
6586
|
-
intermediateHello: (_i = lOverride.intermediateHello) != null ? _i :
|
|
6587
|
-
bookingSummaryHeader: (_j = lOverride.bookingSummaryHeader) != null ? _j :
|
|
6588
|
-
amountAlreadyPaidLabel: (_k = lOverride.amountAlreadyPaidLabel) != null ? _k :
|
|
6589
|
-
remainingBalanceDueLabel: (_l = lOverride.remainingBalanceDueLabel) != null ? _l :
|
|
6590
|
-
totalBookingAmountLabel: (_m = lOverride.totalBookingAmountLabel) != null ? _m :
|
|
6591
|
-
paymentDetailsHeading: (_n = lOverride.paymentDetailsHeading) != null ? _n :
|
|
6592
|
-
ctaLabel: (_o = lOverride.ctaLabel) != null ? _o :
|
|
6593
|
-
teamSignature: (_p = lOverride.teamSignature) != null ? _p :
|
|
6594
|
-
closingAgent: (_q = lOverride.closingAgent) != null ? _q :
|
|
6595
|
-
closingNoAgent: (_r = lOverride.closingNoAgent) != null ? _r :
|
|
6596
|
-
adventureCard: __spreadValues(__spreadValues({},
|
|
6812
|
+
logoAlt: (_g = lOverride.logoAlt) != null ? _g : DEFAULT_LABELS11.logoAlt,
|
|
6813
|
+
greeting: (_h = lOverride.greeting) != null ? _h : DEFAULT_LABELS11.greeting,
|
|
6814
|
+
intermediateHello: (_i = lOverride.intermediateHello) != null ? _i : DEFAULT_LABELS11.intermediateHello,
|
|
6815
|
+
bookingSummaryHeader: (_j = lOverride.bookingSummaryHeader) != null ? _j : DEFAULT_LABELS11.bookingSummaryHeader,
|
|
6816
|
+
amountAlreadyPaidLabel: (_k = lOverride.amountAlreadyPaidLabel) != null ? _k : DEFAULT_LABELS11.amountAlreadyPaidLabel,
|
|
6817
|
+
remainingBalanceDueLabel: (_l = lOverride.remainingBalanceDueLabel) != null ? _l : DEFAULT_LABELS11.remainingBalanceDueLabel,
|
|
6818
|
+
totalBookingAmountLabel: (_m = lOverride.totalBookingAmountLabel) != null ? _m : DEFAULT_LABELS11.totalBookingAmountLabel,
|
|
6819
|
+
paymentDetailsHeading: (_n = lOverride.paymentDetailsHeading) != null ? _n : DEFAULT_LABELS11.paymentDetailsHeading,
|
|
6820
|
+
ctaLabel: (_o = lOverride.ctaLabel) != null ? _o : DEFAULT_LABELS11.ctaLabel,
|
|
6821
|
+
teamSignature: (_p = lOverride.teamSignature) != null ? _p : DEFAULT_LABELS11.teamSignature,
|
|
6822
|
+
closingAgent: (_q = lOverride.closingAgent) != null ? _q : DEFAULT_LABELS11.closingAgent,
|
|
6823
|
+
closingNoAgent: (_r = lOverride.closingNoAgent) != null ? _r : DEFAULT_LABELS11.closingNoAgent,
|
|
6824
|
+
adventureCard: __spreadValues(__spreadValues({}, DEFAULT_LABELS11.adventureCard), (_s = lOverride.adventureCard) != null ? _s : {})
|
|
6597
6825
|
};
|
|
6598
6826
|
const ctaStyle = {
|
|
6599
6827
|
display: "inline-block",
|
|
@@ -7451,7 +7679,7 @@ function validateCpf(value) {
|
|
|
7451
7679
|
if (secondDigit !== parseInt(digits[10], 10)) return false;
|
|
7452
7680
|
return true;
|
|
7453
7681
|
}
|
|
7454
|
-
var
|
|
7682
|
+
var DEFAULT_LABELS12 = {
|
|
7455
7683
|
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.",
|
|
7456
7684
|
detailsSectionTitle: "Your details",
|
|
7457
7685
|
tripInfoSectionTitle: "Trip info",
|
|
@@ -8192,7 +8420,7 @@ function RegistrationForm({
|
|
|
8192
8420
|
}) {
|
|
8193
8421
|
var _a;
|
|
8194
8422
|
const L = React28__namespace.useMemo(
|
|
8195
|
-
() => __spreadValues(__spreadValues({},
|
|
8423
|
+
() => __spreadValues(__spreadValues({}, DEFAULT_LABELS12), labels != null ? labels : {}),
|
|
8196
8424
|
[labels]
|
|
8197
8425
|
);
|
|
8198
8426
|
const sortedFields = React28__namespace.useMemo(
|
|
@@ -12650,8 +12878,10 @@ function TripPage({
|
|
|
12650
12878
|
weather,
|
|
12651
12879
|
optionalExtras,
|
|
12652
12880
|
accommodation,
|
|
12881
|
+
accommodationGallery,
|
|
12653
12882
|
whenItOperates,
|
|
12654
12883
|
food,
|
|
12884
|
+
foodGallery,
|
|
12655
12885
|
termsAndConditions,
|
|
12656
12886
|
meetingPoints,
|
|
12657
12887
|
meetingPoint,
|
|
@@ -12719,7 +12949,7 @@ function TripPage({
|
|
|
12719
12949
|
{ id: "included", label: (_c2 = labels == null ? void 0 : labels.whatIsIncluded) != null ? _c2 : "What is Included", show: !!(included == null ? void 0 : included.length) },
|
|
12720
12950
|
{ id: "what-to-bring", label: (_d2 = labels == null ? void 0 : labels.whatToBring) != null ? _d2 : "What to Bring", show: !!(whatToBring == null ? void 0 : whatToBring.length) },
|
|
12721
12951
|
{ id: "when-it-operates", label: (_e2 = labels == null ? void 0 : labels.whenItOperates) != null ? _e2 : "When this tour operates", show: !!whenItOperates },
|
|
12722
|
-
{ id: "accommodation", label: (_f2 = labels == null ? void 0 : labels.accommodation) != null ? _f2 : "Accommodation", show: !!accommodation },
|
|
12952
|
+
{ id: "accommodation", label: (_f2 = labels == null ? void 0 : labels.accommodation) != null ? _f2 : "Accommodation", show: !!(accommodation || (accommodationGallery == null ? void 0 : accommodationGallery.length)) },
|
|
12723
12953
|
{ id: "terms", label: (_g2 = labels == null ? void 0 : labels.terms) != null ? _g2 : "Terms", show: !!termsAndConditions },
|
|
12724
12954
|
{ id: "faq", label: (_h2 = labels == null ? void 0 : labels.faq) != null ? _h2 : "FAQ", show: !!(faqs == null ? void 0 : faqs.length) },
|
|
12725
12955
|
{ id: "reviews", label: (_i2 = labels == null ? void 0 : labels.reviews) != null ? _i2 : "Reviews", show: !!(trustpilot || (reviews == null ? void 0 : reviews.length)) }
|
|
@@ -12930,7 +13160,7 @@ function TripPage({
|
|
|
12930
13160
|
}
|
|
12931
13161
|
)
|
|
12932
13162
|
] }),
|
|
12933
|
-
(howToGetThere || (whatToBring == null ? void 0 : whatToBring.length) || weather || optionalExtras || accommodation || food || (meetingPoints == null ? void 0 : meetingPoints.length) || meetingPoint || termsAndConditions || whenItOperates) && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
13163
|
+
(howToGetThere || (whatToBring == null ? void 0 : whatToBring.length) || weather || optionalExtras || accommodation || (accommodationGallery == null ? void 0 : accommodationGallery.length) || food || (foodGallery == null ? void 0 : foodGallery.length) || (meetingPoints == null ? void 0 : meetingPoints.length) || meetingPoint || termsAndConditions || whenItOperates) && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
12934
13164
|
Accordion,
|
|
12935
13165
|
{
|
|
12936
13166
|
multiple: false,
|
|
@@ -12953,7 +13183,7 @@ function TripPage({
|
|
|
12953
13183
|
]
|
|
12954
13184
|
}
|
|
12955
13185
|
),
|
|
12956
|
-
accommodation && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
13186
|
+
(accommodation || accommodationGallery && accommodationGallery.length > 0) && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
12957
13187
|
AccordionItem,
|
|
12958
13188
|
{
|
|
12959
13189
|
value: "accommodation",
|
|
@@ -12964,11 +13194,21 @@ function TripPage({
|
|
|
12964
13194
|
(sectionIcons == null ? void 0 : sectionIcons.accommodation) ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-primary [&>svg]:h-5 [&>svg]:w-5", children: sectionIcons.accommodation }) : /* @__PURE__ */ jsxRuntime.jsx(lucideReact.BedDoubleIcon, { className: "h-5 w-5 text-primary" }),
|
|
12965
13195
|
(_g = labels == null ? void 0 : labels.accommodation) != null ? _g : "Accommodation"
|
|
12966
13196
|
] }) }),
|
|
12967
|
-
/* @__PURE__ */ jsxRuntime.
|
|
13197
|
+
/* @__PURE__ */ jsxRuntime.jsxs(AccordionContent, { className: "pb-6", children: [
|
|
13198
|
+
accommodation && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-base text-foreground leading-relaxed space-y-3 [&_strong]:font-semibold [&_a]:text-primary [&_a]:underline", children: accommodation }),
|
|
13199
|
+
accommodationGallery && accommodationGallery.length > 0 && /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn(accommodation && "mt-6"), children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
13200
|
+
PhotoGallery,
|
|
13201
|
+
{
|
|
13202
|
+
photos: accommodationGallery,
|
|
13203
|
+
variant: "gridCompact",
|
|
13204
|
+
initialVisible: 6
|
|
13205
|
+
}
|
|
13206
|
+
) })
|
|
13207
|
+
] })
|
|
12968
13208
|
]
|
|
12969
13209
|
}
|
|
12970
13210
|
),
|
|
12971
|
-
food && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
13211
|
+
(food || foodGallery && foodGallery.length > 0) && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
12972
13212
|
AccordionItem,
|
|
12973
13213
|
{
|
|
12974
13214
|
value: "food",
|
|
@@ -12979,7 +13219,17 @@ function TripPage({
|
|
|
12979
13219
|
(sectionIcons == null ? void 0 : sectionIcons.food) ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-primary [&>svg]:h-5 [&>svg]:w-5", children: sectionIcons.food }) : /* @__PURE__ */ jsxRuntime.jsx(lucideReact.UtensilsIcon, { className: "h-5 w-5 text-primary" }),
|
|
12980
13220
|
(_h = labels == null ? void 0 : labels.food) != null ? _h : "Food"
|
|
12981
13221
|
] }) }),
|
|
12982
|
-
/* @__PURE__ */ jsxRuntime.
|
|
13222
|
+
/* @__PURE__ */ jsxRuntime.jsxs(AccordionContent, { className: "pb-6", children: [
|
|
13223
|
+
food && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-base text-foreground leading-relaxed space-y-3 [&_strong]:font-semibold [&_a]:text-primary [&_a]:underline", children: food }),
|
|
13224
|
+
foodGallery && foodGallery.length > 0 && /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn(food && "mt-6"), children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
13225
|
+
PhotoGallery,
|
|
13226
|
+
{
|
|
13227
|
+
photos: foodGallery,
|
|
13228
|
+
variant: "gridCompact",
|
|
13229
|
+
initialVisible: 6
|
|
13230
|
+
}
|
|
13231
|
+
) })
|
|
13232
|
+
] })
|
|
12983
13233
|
]
|
|
12984
13234
|
}
|
|
12985
13235
|
),
|
|
@@ -14044,6 +14294,7 @@ exports.AgentContactCard = AgentContactCard;
|
|
|
14044
14294
|
exports.Alert = Alert;
|
|
14045
14295
|
exports.BirthDateField = BirthDateField;
|
|
14046
14296
|
exports.BookingAdventureCard = BookingAdventureCard;
|
|
14297
|
+
exports.BookingCancellationEmail = BookingCancellationEmail;
|
|
14047
14298
|
exports.BookingConfirmedCard = BookingConfirmedCard;
|
|
14048
14299
|
exports.BookingCreatedEmail = BookingCreatedEmail;
|
|
14049
14300
|
exports.BookingDetails = BookingDetails;
|