@planetaexo/design-system 0.34.0 → 0.36.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +296 -27
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +87 -2
- package/dist/index.d.ts +87 -2
- package/dist/index.js +296 -28
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2612,6 +2612,9 @@ function AdventureSection({
|
|
|
2612
2612
|
onAddTraveller,
|
|
2613
2613
|
onUnassignFromAdventure,
|
|
2614
2614
|
onCopyFormLink,
|
|
2615
|
+
onResendInvite,
|
|
2616
|
+
resendingInviteTravellerIds,
|
|
2617
|
+
resendInviteAriaLabel,
|
|
2615
2618
|
hasSubmitAddTraveller,
|
|
2616
2619
|
hasSubmitEditTraveller,
|
|
2617
2620
|
hasConfirmRemoveTraveller,
|
|
@@ -2868,6 +2871,18 @@ function AdventureSection({
|
|
|
2868
2871
|
}
|
|
2869
2872
|
),
|
|
2870
2873
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-0.5 shrink-0", children: [
|
|
2874
|
+
onResendInvite && t.status === "pending" && t.email && /* @__PURE__ */ jsx(
|
|
2875
|
+
"button",
|
|
2876
|
+
{
|
|
2877
|
+
type: "button",
|
|
2878
|
+
onClick: () => onResendInvite(t.id),
|
|
2879
|
+
disabled: resendingInviteTravellerIds == null ? void 0 : resendingInviteTravellerIds.has(t.id),
|
|
2880
|
+
className: "flex h-8 w-8 sm:h-7 sm:w-7 items-center justify-center rounded-lg text-muted-foreground hover:text-primary hover:bg-primary/10 transition-colors disabled:opacity-40 disabled:cursor-not-allowed disabled:pointer-events-none",
|
|
2881
|
+
"aria-label": resendInviteAriaLabel != null ? resendInviteAriaLabel : "Resend registration invite",
|
|
2882
|
+
title: resendInviteAriaLabel != null ? resendInviteAriaLabel : "Resend registration invite",
|
|
2883
|
+
children: /* @__PURE__ */ jsx(SendIcon, { className: "w-3.5 h-3.5" })
|
|
2884
|
+
}
|
|
2885
|
+
),
|
|
2871
2886
|
(onEditTraveller || hasSubmitEditTraveller) && /* @__PURE__ */ jsx(
|
|
2872
2887
|
"button",
|
|
2873
2888
|
{
|
|
@@ -3444,6 +3459,9 @@ function BookingDetails({
|
|
|
3444
3459
|
onAddTraveller,
|
|
3445
3460
|
onUnassignFromAdventure,
|
|
3446
3461
|
onCopyFormLink,
|
|
3462
|
+
onResendInvite,
|
|
3463
|
+
resendingInviteTravellerIds,
|
|
3464
|
+
resendInviteAriaLabel,
|
|
3447
3465
|
onSubmitAddTraveller,
|
|
3448
3466
|
onSubmitEditTraveller,
|
|
3449
3467
|
onConfirmRemoveTraveller,
|
|
@@ -3632,6 +3650,9 @@ function BookingDetails({
|
|
|
3632
3650
|
onAddTraveller,
|
|
3633
3651
|
onUnassignFromAdventure,
|
|
3634
3652
|
onCopyFormLink,
|
|
3653
|
+
onResendInvite,
|
|
3654
|
+
resendingInviteTravellerIds,
|
|
3655
|
+
resendInviteAriaLabel,
|
|
3635
3656
|
hasSubmitAddTraveller,
|
|
3636
3657
|
hasSubmitEditTraveller,
|
|
3637
3658
|
hasConfirmRemoveTraveller,
|
|
@@ -5414,7 +5435,254 @@ function RegistrationReminderEmail({
|
|
|
5414
5435
|
}
|
|
5415
5436
|
);
|
|
5416
5437
|
}
|
|
5438
|
+
var INLINE_LINK_STYLE2 = {
|
|
5439
|
+
color: emailTokens.primary,
|
|
5440
|
+
textDecoration: "underline"
|
|
5441
|
+
};
|
|
5442
|
+
function renderWhatsappLink2(contact, label) {
|
|
5443
|
+
if (contact.whatsappUrl) {
|
|
5444
|
+
return /* @__PURE__ */ jsx("a", { href: contact.whatsappUrl, style: INLINE_LINK_STYLE2, children: label });
|
|
5445
|
+
}
|
|
5446
|
+
return label;
|
|
5447
|
+
}
|
|
5448
|
+
function renderEmailLink2(contact, label) {
|
|
5449
|
+
if (contact.email) {
|
|
5450
|
+
return /* @__PURE__ */ jsx("a", { href: `mailto:${contact.email}`, style: INLINE_LINK_STYLE2, children: label });
|
|
5451
|
+
}
|
|
5452
|
+
return label;
|
|
5453
|
+
}
|
|
5417
5454
|
var DEFAULT_LABELS6 = {
|
|
5455
|
+
logoAlt: "PlanetaEXO",
|
|
5456
|
+
greeting: (n) => `Hi ${n},`,
|
|
5457
|
+
tripDetailsHeader: "\u{1F4CB} Trip details",
|
|
5458
|
+
bookingNumberLabel: "Booking Number",
|
|
5459
|
+
leadTravellerLabel: "Lead Traveller",
|
|
5460
|
+
adventureLabel: "Adventure",
|
|
5461
|
+
startingDateLabel: "Starting Date",
|
|
5462
|
+
partnerLabel: "Partner",
|
|
5463
|
+
ctaLabel: "Complete Registration",
|
|
5464
|
+
routingNoteUnderage: (travellerFirstName, bookerFirstName) => `We're sending this to you, ${bookerFirstName}, because ${travellerFirstName} is under 18. Please help complete the registration on their behalf.`,
|
|
5465
|
+
routingNoteNoEmail: (travellerFirstName) => `We don't have an email on file for ${travellerFirstName}. Please forward this message to them, or reply with their email so we can reach out directly.`,
|
|
5466
|
+
closingAgent: (agentName, contact) => /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
5467
|
+
"If you have questions, your agent ",
|
|
5468
|
+
agentName,
|
|
5469
|
+
" is available via ",
|
|
5470
|
+
renderWhatsappLink2(contact, "WhatsApp"),
|
|
5471
|
+
" or ",
|
|
5472
|
+
renderEmailLink2(contact, "email"),
|
|
5473
|
+
"."
|
|
5474
|
+
] }),
|
|
5475
|
+
closingNoAgent: "If you have questions or need assistance, our team is available via WhatsApp or email.",
|
|
5476
|
+
teamSignature: "The PlanetaEXO Team",
|
|
5477
|
+
variants: {
|
|
5478
|
+
d_minus_30: {
|
|
5479
|
+
subject: "Complete your registration for your upcoming adventure",
|
|
5480
|
+
intro: (_traveller, lead, adventure) => `Your adventure with PlanetaEXO, booked by ${lead}, is approaching and we noticed your registration is still incomplete.`,
|
|
5481
|
+
contextNote: "Completing your registration early helps us organise logistics and prepare your experience with our local partners.",
|
|
5482
|
+
mandatoryNote: "Registration is mandatory for all travellers and only takes a few minutes.",
|
|
5483
|
+
finalReminderTagline: "",
|
|
5484
|
+
consequencesNote: "",
|
|
5485
|
+
disregardIfCompleted: "",
|
|
5486
|
+
closingThanks: "See you soon,"
|
|
5487
|
+
},
|
|
5488
|
+
d_minus_15: {
|
|
5489
|
+
subject: "Registration still pending for your upcoming adventure",
|
|
5490
|
+
intro: (_traveller, lead, _adventure) => `Your adventure booked by ${lead} is getting closer, and your registration is still incomplete.`,
|
|
5491
|
+
contextNote: "Please complete your registration to help us finalise logistics and operational details before departure.",
|
|
5492
|
+
mandatoryNote: "Registration is required before departure and helps us prepare accommodation, transfers, safety information, and local operations.",
|
|
5493
|
+
finalReminderTagline: "",
|
|
5494
|
+
consequencesNote: "",
|
|
5495
|
+
disregardIfCompleted: "",
|
|
5496
|
+
closingThanks: ""
|
|
5497
|
+
},
|
|
5498
|
+
d_minus_7: {
|
|
5499
|
+
subject: "Action required: complete your registration before departure",
|
|
5500
|
+
intro: (_traveller, lead, _adventure) => `Your adventure booked by ${lead} begins in one week, and your registration is still incomplete.`,
|
|
5501
|
+
contextNote: "Please complete your registration as soon as possible.",
|
|
5502
|
+
mandatoryNote: "Registration is mandatory for participation in the adventure.",
|
|
5503
|
+
finalReminderTagline: "",
|
|
5504
|
+
consequencesNote: "",
|
|
5505
|
+
disregardIfCompleted: "",
|
|
5506
|
+
closingThanks: "We look forward to welcoming you soon."
|
|
5507
|
+
},
|
|
5508
|
+
d_minus_2: {
|
|
5509
|
+
subject: "\u{1F6A8} Final reminder: registration required before departure",
|
|
5510
|
+
intro: (_traveller, lead, _adventure) => `Your adventure booked by ${lead} starts in 2 days, and your registration is still incomplete.`,
|
|
5511
|
+
contextNote: "",
|
|
5512
|
+
finalReminderTagline: "This is a final reminder.",
|
|
5513
|
+
consequencesNote: "Without a completed registration form, we may be unable to confirm logistics and travellers may not be allowed to board transfers, flights, boats, or participate in activities.",
|
|
5514
|
+
mandatoryNote: "",
|
|
5515
|
+
disregardIfCompleted: "If you have already completed your registration, please disregard this email.",
|
|
5516
|
+
closingThanks: "We look forward to welcoming you soon."
|
|
5517
|
+
}
|
|
5518
|
+
}
|
|
5519
|
+
};
|
|
5520
|
+
function hasText2(s) {
|
|
5521
|
+
return typeof s === "string" && s.trim().length > 0;
|
|
5522
|
+
}
|
|
5523
|
+
function RegistrationReminderIndividualEmail({
|
|
5524
|
+
slug,
|
|
5525
|
+
recipientFirstName,
|
|
5526
|
+
travellerFirstName,
|
|
5527
|
+
leadTravellerName,
|
|
5528
|
+
leadTravellerFirstName,
|
|
5529
|
+
bookingNumber,
|
|
5530
|
+
adventureName,
|
|
5531
|
+
startDateFormatted,
|
|
5532
|
+
partnerName,
|
|
5533
|
+
ctaUrl,
|
|
5534
|
+
route,
|
|
5535
|
+
agent,
|
|
5536
|
+
logoUrl,
|
|
5537
|
+
labels,
|
|
5538
|
+
className
|
|
5539
|
+
}) {
|
|
5540
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
5541
|
+
const l = __spreadProps(__spreadValues(__spreadValues({}, DEFAULT_LABELS6), labels), {
|
|
5542
|
+
variants: {
|
|
5543
|
+
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 : {}),
|
|
5544
|
+
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 : {}),
|
|
5545
|
+
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 : {}),
|
|
5546
|
+
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 : {})
|
|
5547
|
+
}
|
|
5548
|
+
});
|
|
5549
|
+
const v = l.variants[slug];
|
|
5550
|
+
const ctaStyle = {
|
|
5551
|
+
display: "inline-block",
|
|
5552
|
+
backgroundColor: emailTokens.primary,
|
|
5553
|
+
color: emailTokens.primaryForeground,
|
|
5554
|
+
padding: "12px 24px",
|
|
5555
|
+
borderRadius: "8px",
|
|
5556
|
+
fontSize: "14px",
|
|
5557
|
+
fontWeight: 700,
|
|
5558
|
+
textDecoration: "none",
|
|
5559
|
+
fontFamily: emailTokens.fontFamily
|
|
5560
|
+
};
|
|
5561
|
+
const tripRows = [
|
|
5562
|
+
{ label: l.bookingNumberLabel, value: `#${bookingNumber}`, valueColor: emailTokens.primary },
|
|
5563
|
+
{ label: l.leadTravellerLabel, value: leadTravellerName },
|
|
5564
|
+
{ label: l.adventureLabel, value: adventureName },
|
|
5565
|
+
{ label: l.startingDateLabel, value: startDateFormatted },
|
|
5566
|
+
...hasText2(partnerName) ? [{ label: l.partnerLabel, value: partnerName }] : []
|
|
5567
|
+
];
|
|
5568
|
+
const sectionDivider = /* @__PURE__ */ jsx(
|
|
5569
|
+
"hr",
|
|
5570
|
+
{
|
|
5571
|
+
style: {
|
|
5572
|
+
border: "none",
|
|
5573
|
+
borderTop: `1px solid ${emailTokens.border}`,
|
|
5574
|
+
marginTop: 0,
|
|
5575
|
+
marginBottom: "24px"
|
|
5576
|
+
}
|
|
5577
|
+
}
|
|
5578
|
+
);
|
|
5579
|
+
const introText = v.intro(travellerFirstName, leadTravellerFirstName, adventureName);
|
|
5580
|
+
const routingNote = route === "underage_to_booker" ? l.routingNoteUnderage(travellerFirstName, leadTravellerFirstName) : route === "no_email_fallback" ? l.routingNoteNoEmail(travellerFirstName) : null;
|
|
5581
|
+
return /* @__PURE__ */ jsxs(
|
|
5582
|
+
"div",
|
|
5583
|
+
{
|
|
5584
|
+
style: {
|
|
5585
|
+
maxWidth: "576px",
|
|
5586
|
+
margin: "0 auto",
|
|
5587
|
+
backgroundColor: emailTokens.white,
|
|
5588
|
+
color: emailTokens.foreground,
|
|
5589
|
+
fontFamily: emailTokens.fontFamily,
|
|
5590
|
+
fontSize: "16px",
|
|
5591
|
+
lineHeight: "1.6",
|
|
5592
|
+
border: `1px solid ${emailTokens.border}`,
|
|
5593
|
+
borderRadius: "12px",
|
|
5594
|
+
overflow: "hidden",
|
|
5595
|
+
padding: "32px"
|
|
5596
|
+
},
|
|
5597
|
+
className,
|
|
5598
|
+
children: [
|
|
5599
|
+
/* @__PURE__ */ jsx(EmailLogo, { src: logoUrl, alt: l.logoAlt }),
|
|
5600
|
+
/* @__PURE__ */ jsx("p", { style: { marginBottom: "16px" }, children: l.greeting(recipientFirstName) }),
|
|
5601
|
+
hasText2(routingNote) && /* @__PURE__ */ jsx(
|
|
5602
|
+
"p",
|
|
5603
|
+
{
|
|
5604
|
+
style: {
|
|
5605
|
+
marginBottom: "16px",
|
|
5606
|
+
padding: "10px 14px",
|
|
5607
|
+
borderRadius: "8px",
|
|
5608
|
+
backgroundColor: emailTokens.muted,
|
|
5609
|
+
color: emailTokens.bodyText,
|
|
5610
|
+
fontSize: "14px"
|
|
5611
|
+
},
|
|
5612
|
+
children: routingNote
|
|
5613
|
+
}
|
|
5614
|
+
),
|
|
5615
|
+
/* @__PURE__ */ jsx("p", { style: { marginBottom: "16px" }, children: introText }),
|
|
5616
|
+
hasText2(v.contextNote) && /* @__PURE__ */ jsx("p", { style: { marginBottom: "16px" }, children: v.contextNote }),
|
|
5617
|
+
slug === "d_minus_2" && (hasText2(v.finalReminderTagline) || hasText2(v.consequencesNote)) && /* @__PURE__ */ jsxs(
|
|
5618
|
+
"div",
|
|
5619
|
+
{
|
|
5620
|
+
style: {
|
|
5621
|
+
marginBottom: "20px",
|
|
5622
|
+
padding: "12px 16px",
|
|
5623
|
+
borderRadius: "8px",
|
|
5624
|
+
backgroundColor: "#fef2f2",
|
|
5625
|
+
border: "1px solid #fecaca",
|
|
5626
|
+
color: "#7f1d1d"
|
|
5627
|
+
},
|
|
5628
|
+
children: [
|
|
5629
|
+
hasText2(v.finalReminderTagline) && /* @__PURE__ */ jsx(
|
|
5630
|
+
"p",
|
|
5631
|
+
{
|
|
5632
|
+
style: {
|
|
5633
|
+
margin: 0,
|
|
5634
|
+
marginBottom: hasText2(v.consequencesNote) ? "8px" : 0,
|
|
5635
|
+
fontWeight: 700
|
|
5636
|
+
},
|
|
5637
|
+
children: v.finalReminderTagline
|
|
5638
|
+
}
|
|
5639
|
+
),
|
|
5640
|
+
hasText2(v.consequencesNote) && /* @__PURE__ */ jsx("p", { style: { margin: 0 }, children: v.consequencesNote })
|
|
5641
|
+
]
|
|
5642
|
+
}
|
|
5643
|
+
),
|
|
5644
|
+
/* @__PURE__ */ jsx("div", { style: { marginBottom: "24px", textAlign: "left" }, children: /* @__PURE__ */ jsx("a", { href: ctaUrl, style: ctaStyle, children: l.ctaLabel }) }),
|
|
5645
|
+
slug === "d_minus_7" && hasText2(v.mandatoryNote) && /* @__PURE__ */ jsx(
|
|
5646
|
+
"p",
|
|
5647
|
+
{
|
|
5648
|
+
style: {
|
|
5649
|
+
marginBottom: "20px",
|
|
5650
|
+
padding: "12px 16px",
|
|
5651
|
+
borderRadius: "8px",
|
|
5652
|
+
backgroundColor: "#fef3c7",
|
|
5653
|
+
color: "#78350f",
|
|
5654
|
+
fontWeight: 600
|
|
5655
|
+
},
|
|
5656
|
+
children: v.mandatoryNote
|
|
5657
|
+
}
|
|
5658
|
+
),
|
|
5659
|
+
sectionDivider,
|
|
5660
|
+
/* @__PURE__ */ jsx(BookingSummary, { heading: l.tripDetailsHeader, rows: tripRows }),
|
|
5661
|
+
(slug === "d_minus_30" || slug === "d_minus_15") && hasText2(v.mandatoryNote) && /* @__PURE__ */ jsx("p", { style: { marginBottom: "16px", color: emailTokens.bodyText }, children: v.mandatoryNote }),
|
|
5662
|
+
slug === "d_minus_2" && hasText2(v.disregardIfCompleted) && /* @__PURE__ */ jsx(
|
|
5663
|
+
"p",
|
|
5664
|
+
{
|
|
5665
|
+
style: {
|
|
5666
|
+
marginBottom: "16px",
|
|
5667
|
+
color: emailTokens.mutedForeground,
|
|
5668
|
+
fontSize: "13px",
|
|
5669
|
+
fontStyle: "italic"
|
|
5670
|
+
},
|
|
5671
|
+
children: v.disregardIfCompleted
|
|
5672
|
+
}
|
|
5673
|
+
),
|
|
5674
|
+
sectionDivider,
|
|
5675
|
+
/* @__PURE__ */ jsx("p", { style: { marginBottom: "16px", fontSize: "14px", fontWeight: 700, color: emailTokens.bodyText }, children: (agent == null ? void 0 : agent.name) ? l.closingAgent(agent.name, {
|
|
5676
|
+
whatsappUrl: agent.whatsappUrl,
|
|
5677
|
+
email: agent.email
|
|
5678
|
+
}) : l.closingNoAgent }),
|
|
5679
|
+
hasText2(v.closingThanks) && /* @__PURE__ */ jsx("p", { style: { marginBottom: "16px", fontSize: "14px", color: emailTokens.bodyText }, children: v.closingThanks }),
|
|
5680
|
+
/* @__PURE__ */ jsx("p", { style: { marginTop: 0, marginBottom: 0, fontSize: "14px", color: emailTokens.bodyText }, children: l.teamSignature })
|
|
5681
|
+
]
|
|
5682
|
+
}
|
|
5683
|
+
);
|
|
5684
|
+
}
|
|
5685
|
+
var DEFAULT_LABELS7 = {
|
|
5418
5686
|
logoAlt: "PlanetaEXO",
|
|
5419
5687
|
greeting: (name) => `Hi ${name},`,
|
|
5420
5688
|
receiptHeading: "Payment receipt",
|
|
@@ -5453,7 +5721,7 @@ function PaymentReceiptEmail({
|
|
|
5453
5721
|
labels,
|
|
5454
5722
|
className
|
|
5455
5723
|
}) {
|
|
5456
|
-
const l = __spreadValues(__spreadValues({},
|
|
5724
|
+
const l = __spreadValues(__spreadValues({}, DEFAULT_LABELS7), labels);
|
|
5457
5725
|
const travellersLine = travellers.filter((s) => s.trim().length > 0).join(", ");
|
|
5458
5726
|
const interestRow = chargedAmount && chargedAmount !== amount;
|
|
5459
5727
|
const receiptRows = [
|
|
@@ -5528,24 +5796,24 @@ function PaymentReceiptEmail({
|
|
|
5528
5796
|
}
|
|
5529
5797
|
);
|
|
5530
5798
|
}
|
|
5531
|
-
var
|
|
5799
|
+
var INLINE_LINK_STYLE3 = {
|
|
5532
5800
|
color: emailTokens.primary,
|
|
5533
5801
|
textDecoration: "underline"
|
|
5534
5802
|
};
|
|
5535
|
-
function
|
|
5803
|
+
function renderWhatsappLink3(contact, label) {
|
|
5536
5804
|
if (contact.whatsappUrl) {
|
|
5537
|
-
return /* @__PURE__ */ jsx("a", { href: contact.whatsappUrl, style:
|
|
5805
|
+
return /* @__PURE__ */ jsx("a", { href: contact.whatsappUrl, style: INLINE_LINK_STYLE3, children: label });
|
|
5538
5806
|
}
|
|
5539
5807
|
return label;
|
|
5540
5808
|
}
|
|
5541
|
-
function
|
|
5809
|
+
function renderEmailLink3(contact, label) {
|
|
5542
5810
|
if (contact.email) {
|
|
5543
|
-
return /* @__PURE__ */ jsx("a", { href: `mailto:${contact.email}`, style:
|
|
5811
|
+
return /* @__PURE__ */ jsx("a", { href: `mailto:${contact.email}`, style: INLINE_LINK_STYLE3, children: label });
|
|
5544
5812
|
}
|
|
5545
5813
|
return label;
|
|
5546
5814
|
}
|
|
5547
5815
|
var EMPTY_CLOSING_ALTERNATIVE = (_agentName, _contact) => null;
|
|
5548
|
-
var
|
|
5816
|
+
var DEFAULT_LABELS8 = {
|
|
5549
5817
|
logoAlt: "PlanetaEXO",
|
|
5550
5818
|
greeting: (name) => `Hi ${name},`,
|
|
5551
5819
|
intermediateHello: "Hope you're doing well.",
|
|
@@ -5560,9 +5828,9 @@ var DEFAULT_LABELS7 = {
|
|
|
5560
5828
|
"If you need any assistance or would like to discuss your payment, feel free to contact your agent ",
|
|
5561
5829
|
agentName,
|
|
5562
5830
|
" via ",
|
|
5563
|
-
|
|
5831
|
+
renderWhatsappLink3(contact, "WhatsApp"),
|
|
5564
5832
|
" or ",
|
|
5565
|
-
|
|
5833
|
+
renderEmailLink3(contact, "email"),
|
|
5566
5834
|
"."
|
|
5567
5835
|
] }),
|
|
5568
5836
|
closingNoAgent: "If you need any assistance or would like to discuss your payment, feel free to contact us via WhatsApp or email.",
|
|
@@ -5606,9 +5874,9 @@ var DEFAULT_LABELS7 = {
|
|
|
5606
5874
|
"If you are experiencing any issues with payment or need additional time, please contact your agent ",
|
|
5607
5875
|
agentName,
|
|
5608
5876
|
" via ",
|
|
5609
|
-
|
|
5877
|
+
renderWhatsappLink3(contact, "WhatsApp"),
|
|
5610
5878
|
" or ",
|
|
5611
|
-
|
|
5879
|
+
renderEmailLink3(contact, "email"),
|
|
5612
5880
|
". We'll be happy to assist."
|
|
5613
5881
|
] })
|
|
5614
5882
|
}
|
|
@@ -5632,7 +5900,7 @@ function PaymentReminderEmail({
|
|
|
5632
5900
|
}) {
|
|
5633
5901
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s;
|
|
5634
5902
|
const lOverride = labels != null ? labels : {};
|
|
5635
|
-
const variantDefaults =
|
|
5903
|
+
const variantDefaults = DEFAULT_LABELS8.variants[variant];
|
|
5636
5904
|
const variantOverride = (_b = (_a = lOverride.variants) == null ? void 0 : _a[variant]) != null ? _b : {};
|
|
5637
5905
|
const variantLabels = {
|
|
5638
5906
|
intro: (_c = variantOverride.intro) != null ? _c : variantDefaults.intro,
|
|
@@ -5642,19 +5910,19 @@ function PaymentReminderEmail({
|
|
|
5642
5910
|
closingAlternative: (_f = variantOverride.closingAlternative) != null ? _f : variantDefaults.closingAlternative
|
|
5643
5911
|
};
|
|
5644
5912
|
const l = {
|
|
5645
|
-
logoAlt: (_g = lOverride.logoAlt) != null ? _g :
|
|
5646
|
-
greeting: (_h = lOverride.greeting) != null ? _h :
|
|
5647
|
-
intermediateHello: (_i = lOverride.intermediateHello) != null ? _i :
|
|
5648
|
-
bookingSummaryHeader: (_j = lOverride.bookingSummaryHeader) != null ? _j :
|
|
5649
|
-
amountAlreadyPaidLabel: (_k = lOverride.amountAlreadyPaidLabel) != null ? _k :
|
|
5650
|
-
remainingBalanceDueLabel: (_l = lOverride.remainingBalanceDueLabel) != null ? _l :
|
|
5651
|
-
totalBookingAmountLabel: (_m = lOverride.totalBookingAmountLabel) != null ? _m :
|
|
5652
|
-
paymentDetailsHeading: (_n = lOverride.paymentDetailsHeading) != null ? _n :
|
|
5653
|
-
ctaLabel: (_o = lOverride.ctaLabel) != null ? _o :
|
|
5654
|
-
teamSignature: (_p = lOverride.teamSignature) != null ? _p :
|
|
5655
|
-
closingAgent: (_q = lOverride.closingAgent) != null ? _q :
|
|
5656
|
-
closingNoAgent: (_r = lOverride.closingNoAgent) != null ? _r :
|
|
5657
|
-
adventureCard: __spreadValues(__spreadValues({},
|
|
5913
|
+
logoAlt: (_g = lOverride.logoAlt) != null ? _g : DEFAULT_LABELS8.logoAlt,
|
|
5914
|
+
greeting: (_h = lOverride.greeting) != null ? _h : DEFAULT_LABELS8.greeting,
|
|
5915
|
+
intermediateHello: (_i = lOverride.intermediateHello) != null ? _i : DEFAULT_LABELS8.intermediateHello,
|
|
5916
|
+
bookingSummaryHeader: (_j = lOverride.bookingSummaryHeader) != null ? _j : DEFAULT_LABELS8.bookingSummaryHeader,
|
|
5917
|
+
amountAlreadyPaidLabel: (_k = lOverride.amountAlreadyPaidLabel) != null ? _k : DEFAULT_LABELS8.amountAlreadyPaidLabel,
|
|
5918
|
+
remainingBalanceDueLabel: (_l = lOverride.remainingBalanceDueLabel) != null ? _l : DEFAULT_LABELS8.remainingBalanceDueLabel,
|
|
5919
|
+
totalBookingAmountLabel: (_m = lOverride.totalBookingAmountLabel) != null ? _m : DEFAULT_LABELS8.totalBookingAmountLabel,
|
|
5920
|
+
paymentDetailsHeading: (_n = lOverride.paymentDetailsHeading) != null ? _n : DEFAULT_LABELS8.paymentDetailsHeading,
|
|
5921
|
+
ctaLabel: (_o = lOverride.ctaLabel) != null ? _o : DEFAULT_LABELS8.ctaLabel,
|
|
5922
|
+
teamSignature: (_p = lOverride.teamSignature) != null ? _p : DEFAULT_LABELS8.teamSignature,
|
|
5923
|
+
closingAgent: (_q = lOverride.closingAgent) != null ? _q : DEFAULT_LABELS8.closingAgent,
|
|
5924
|
+
closingNoAgent: (_r = lOverride.closingNoAgent) != null ? _r : DEFAULT_LABELS8.closingNoAgent,
|
|
5925
|
+
adventureCard: __spreadValues(__spreadValues({}, DEFAULT_LABELS8.adventureCard), (_s = lOverride.adventureCard) != null ? _s : {})
|
|
5658
5926
|
};
|
|
5659
5927
|
const ctaStyle = {
|
|
5660
5928
|
display: "inline-block",
|
|
@@ -6481,7 +6749,7 @@ function BookingForm({
|
|
|
6481
6749
|
}
|
|
6482
6750
|
);
|
|
6483
6751
|
}
|
|
6484
|
-
var
|
|
6752
|
+
var DEFAULT_LABELS9 = {
|
|
6485
6753
|
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.",
|
|
6486
6754
|
detailsSectionTitle: "Your details",
|
|
6487
6755
|
tripInfoSectionTitle: "Trip info",
|
|
@@ -7146,7 +7414,7 @@ function RegistrationForm({
|
|
|
7146
7414
|
}) {
|
|
7147
7415
|
var _a;
|
|
7148
7416
|
const L = React25.useMemo(
|
|
7149
|
-
() => __spreadValues(__spreadValues({},
|
|
7417
|
+
() => __spreadValues(__spreadValues({}, DEFAULT_LABELS9), labels != null ? labels : {}),
|
|
7150
7418
|
[labels]
|
|
7151
7419
|
);
|
|
7152
7420
|
const sortedFields = React25.useMemo(
|
|
@@ -11744,6 +12012,6 @@ function LeadCapturePopup({
|
|
|
11744
12012
|
);
|
|
11745
12013
|
}
|
|
11746
12014
|
|
|
11747
|
-
export { ActivityCard, AgentContactCard, Alert, BirthDateField, BookingAdventureCard, BookingConfirmedCard, BookingCreatedEmail, BookingDetails, BookingForm, BookingOtpEmail, BookingPaymentConfirmationEmail, BookingShell, BookingSummary, Button, COUNTRIES, CounterField, CountrySearchField, DEFAULT_HEADER_LINKS, DEFAULT_LANGUAGES, DatePickerField, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, FilterPanel, FloatingInput, FloatingSelect, Itinerary, ItineraryDay, LOGO_PLANETAEXO_DATA_URI, LeadCapturePopup, MenuTrip, OTPCodeInput, Offer, OfferAdventureCard, PaymentAmountSelector, PaymentDetailsBlock, PaymentMethodSelector, PaymentModalShell, PaymentReceiptEmail, PaymentReminderEmail, PhoneCountrySelect, PhotoGallery, PricingTrip, RegistrationForm, RegistrationProgressBar, RegistrationReminderEmail, RegistrationSuccessCard, SiteHeader, TERMS_ACCEPT_KEY, TermsSection, ThemeToggle, Toast, TransferDetailsBlock, TravellerFormInviteEmail, TripCard, TripHeader, TripPage, TrustpilotEmbed, buttonVariants, cn, emailTokens, getStripeAppearance, itineraryDaySpecIcons, stripeAppearance, wrapEmailHtml };
|
|
12015
|
+
export { ActivityCard, AgentContactCard, Alert, BirthDateField, BookingAdventureCard, BookingConfirmedCard, BookingCreatedEmail, BookingDetails, BookingForm, BookingOtpEmail, BookingPaymentConfirmationEmail, BookingShell, BookingSummary, Button, COUNTRIES, CounterField, CountrySearchField, DEFAULT_HEADER_LINKS, DEFAULT_LANGUAGES, DatePickerField, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, FilterPanel, FloatingInput, FloatingSelect, Itinerary, ItineraryDay, LOGO_PLANETAEXO_DATA_URI, LeadCapturePopup, MenuTrip, OTPCodeInput, Offer, OfferAdventureCard, PaymentAmountSelector, PaymentDetailsBlock, PaymentMethodSelector, PaymentModalShell, PaymentReceiptEmail, PaymentReminderEmail, PhoneCountrySelect, PhotoGallery, PricingTrip, RegistrationForm, RegistrationProgressBar, RegistrationReminderEmail, RegistrationReminderIndividualEmail, RegistrationSuccessCard, SiteHeader, TERMS_ACCEPT_KEY, TermsSection, ThemeToggle, Toast, TransferDetailsBlock, TravellerFormInviteEmail, TripCard, TripHeader, TripPage, TrustpilotEmbed, buttonVariants, cn, emailTokens, getStripeAppearance, itineraryDaySpecIcons, stripeAppearance, wrapEmailHtml };
|
|
11748
12016
|
//# sourceMappingURL=index.js.map
|
|
11749
12017
|
//# sourceMappingURL=index.js.map
|