@planetaexo/design-system 0.65.0 → 0.67.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.js CHANGED
@@ -1306,7 +1306,7 @@ function AdventureCard({
1306
1306
  labels,
1307
1307
  interactionsDisabled
1308
1308
  }) {
1309
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s;
1309
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r;
1310
1310
  const isControlled = (_b = (_a = adventure.optionals) == null ? void 0 : _a.some((o) => o.onCheckedChange !== void 0)) != null ? _b : false;
1311
1311
  const [checkedInternal, setCheckedInternal] = React32.useState(
1312
1312
  new Set((_d = (_c = adventure.optionals) == null ? void 0 : _c.filter((o) => o.defaultChecked).map((o) => o.id)) != null ? _d : [])
@@ -1480,6 +1480,29 @@ function AdventureCard({
1480
1480
  }
1481
1481
  )
1482
1482
  ] }),
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
+ 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";
1486
+ const heading = adventure.accommodationRoomHeading ? adventure.accommodationRoomHeading(room.roomName) : `Accommodation: ${room.roomName}`;
1487
+ return /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-2", children: [
1488
+ /* @__PURE__ */ jsx("h4", { className: "text-lg font-semibold text-foreground font-heading", children: heading }),
1489
+ room.imageUrl && // eslint-disable-next-line @next/next/no-img-element
1490
+ /* @__PURE__ */ jsx(
1491
+ "img",
1492
+ {
1493
+ src: room.imageUrl,
1494
+ alt: room.roomName,
1495
+ className: "w-full h-auto max-w-full rounded"
1496
+ }
1497
+ ),
1498
+ /* @__PURE__ */ jsx("div", { className: "text-base font-semibold text-foreground", children: `${room.qty}\xD7 ${room.roomName}` }),
1499
+ /* @__PURE__ */ jsxs("div", { className: "text-sm text-foreground/70 flex items-center gap-2 flex-wrap", children: [
1500
+ /* @__PURE__ */ jsx("span", { children: room.accommodationName }),
1501
+ /* @__PURE__ */ jsx("span", { className: "inline-block px-2 py-0.5 text-xs font-semibold bg-primary/10 text-primary rounded uppercase tracking-wide", children: bedLabel })
1502
+ ] }),
1503
+ room.description && /* @__PURE__ */ jsx("p", { className: "text-sm text-foreground/70 leading-snug", children: room.description })
1504
+ ] }, i);
1505
+ }) }),
1483
1506
  (adventure.description || adventure.detailsSlot) && /* @__PURE__ */ jsxs(Fragment, { children: [
1484
1507
  /* @__PURE__ */ jsx(Separator, { className: "my-1" }),
1485
1508
  /* @__PURE__ */ jsxs("div", { children: [
@@ -1508,48 +1531,22 @@ function AdventureCard({
1508
1531
  ), children: adventure.detailsSlot })
1509
1532
  ] })
1510
1533
  ] }),
1511
- adventure.rooms && adventure.rooms.length > 0 && /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-2.5 mt-1", children: [
1512
- /* @__PURE__ */ jsx("h4", { className: "text-base font-bold text-foreground font-heading", children: (_p = adventure.accommodationsLabel) != null ? _p : "Accommodations" }),
1513
- /* @__PURE__ */ jsx("ul", { className: "flex flex-col gap-3", children: adventure.rooms.map((room, i) => {
1514
- var _a2, _b2;
1515
- 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";
1516
- return /* @__PURE__ */ jsxs("li", { className: "flex items-start gap-3", children: [
1517
- room.imageUrl && // eslint-disable-next-line @next/next/no-img-element
1518
- /* @__PURE__ */ jsx(
1519
- "img",
1520
- {
1521
- src: room.imageUrl,
1522
- alt: room.roomName,
1523
- className: "w-20 h-16 object-cover rounded shrink-0"
1524
- }
1525
- ),
1526
- /* @__PURE__ */ jsxs("div", { className: "flex-1", children: [
1527
- /* @__PURE__ */ jsx("div", { className: "text-base font-semibold text-foreground", children: `${room.qty}\xD7 ${room.roomName}` }),
1528
- /* @__PURE__ */ jsxs("div", { className: "text-sm text-foreground/70 flex items-center gap-2 flex-wrap", children: [
1529
- /* @__PURE__ */ jsx("span", { children: room.accommodationName }),
1530
- /* @__PURE__ */ jsx("span", { className: "inline-block px-2 py-0.5 text-xs font-semibold bg-primary/10 text-primary rounded uppercase tracking-wide", children: bedLabel })
1531
- ] }),
1532
- room.description && /* @__PURE__ */ jsx("p", { className: "text-sm text-foreground/70 mt-1 leading-snug", children: room.description })
1533
- ] })
1534
- ] }, i);
1535
- }) })
1536
- ] }),
1537
1534
  adventure.included && adventure.included.length > 0 && /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-2.5 mt-1", children: [
1538
- /* @__PURE__ */ jsx("h4", { className: "text-base font-bold text-foreground font-heading", children: (_q = adventure.includedLabel) != null ? _q : "What's included" }),
1535
+ /* @__PURE__ */ jsx("h4", { className: "text-base font-bold text-foreground font-heading", children: (_p = adventure.includedLabel) != null ? _p : "What's included" }),
1539
1536
  /* @__PURE__ */ jsx("ul", { className: "flex flex-col gap-1.5", children: adventure.included.map((item, i) => /* @__PURE__ */ jsxs("li", { className: "flex items-start gap-2 text-base text-foreground/80 font-sans", children: [
1540
1537
  /* @__PURE__ */ jsx(CheckIcon, { className: "w-4 h-4 text-primary shrink-0 mt-1" }),
1541
1538
  item
1542
1539
  ] }, i)) })
1543
1540
  ] }),
1544
1541
  adventure.notIncluded && adventure.notIncluded.length > 0 && /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-2.5 mt-1", children: [
1545
- /* @__PURE__ */ jsx("h4", { className: "text-base font-bold text-foreground font-heading", children: (_r = adventure.notIncludedLabel) != null ? _r : "What's not included" }),
1542
+ /* @__PURE__ */ jsx("h4", { className: "text-base font-bold text-foreground font-heading", children: (_q = adventure.notIncludedLabel) != null ? _q : "What's not included" }),
1546
1543
  /* @__PURE__ */ jsx("ul", { className: "flex flex-col gap-1.5", children: adventure.notIncluded.map((item, i) => /* @__PURE__ */ jsxs("li", { className: "flex items-start gap-2 text-base text-foreground/80 font-sans", children: [
1547
1544
  /* @__PURE__ */ jsx(XIcon, { className: "w-4 h-4 text-destructive shrink-0 mt-1" }),
1548
1545
  item
1549
1546
  ] }, i)) })
1550
1547
  ] }),
1551
1548
  adventure.cancellationPolicy && adventure.cancellationPolicy.length > 0 && /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-2.5 mt-1", children: [
1552
- /* @__PURE__ */ jsx("h4", { className: "text-base font-bold text-foreground font-heading", children: (_s = adventure.cancellationPolicyLabel) != null ? _s : "Cancellation policy" }),
1549
+ /* @__PURE__ */ jsx("h4", { className: "text-base font-bold text-foreground font-heading", children: (_r = adventure.cancellationPolicyLabel) != null ? _r : "Cancellation policy" }),
1553
1550
  /* @__PURE__ */ jsx("ul", { className: "flex flex-col gap-1.5", children: adventure.cancellationPolicy.map((item, i) => /* @__PURE__ */ jsxs("li", { className: "flex items-start gap-2 text-base text-muted-foreground font-sans", children: [
1554
1551
  /* @__PURE__ */ jsx("span", { className: "w-1.5 h-1.5 rounded-full bg-primary shrink-0 mt-2.5" }),
1555
1552
  item
@@ -4126,6 +4123,7 @@ var DEFAULT_LABELS = {
4126
4123
  adultsUnit: "adult(s)",
4127
4124
  childrenUnit: "child(ren)",
4128
4125
  accommodationsHeading: "ACCOMMODATIONS",
4126
+ accommodationRoomHeading: (name) => `Accommodation: ${name}`,
4129
4127
  bedArrangementLabels: {
4130
4128
  DOUBLE: "Double",
4131
4129
  TWIN: "Twin",
@@ -4153,10 +4151,11 @@ function BookingAdventureCard({
4153
4151
  lineItems,
4154
4152
  subtotal,
4155
4153
  rooms,
4154
+ roomLayout = "compact",
4156
4155
  labels,
4157
4156
  className
4158
4157
  }) {
4159
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u;
4158
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v;
4160
4159
  const l = {
4161
4160
  travellersHeading: (_a = labels == null ? void 0 : labels.travellersHeading) != null ? _a : DEFAULT_LABELS.travellersHeading,
4162
4161
  detailsHeading: (_b = labels == null ? void 0 : labels.detailsHeading) != null ? _b : DEFAULT_LABELS.detailsHeading,
@@ -4171,11 +4170,12 @@ function BookingAdventureCard({
4171
4170
  adultsUnit: (_k = labels == null ? void 0 : labels.adultsUnit) != null ? _k : DEFAULT_LABELS.adultsUnit,
4172
4171
  childrenUnit: (_l = labels == null ? void 0 : labels.childrenUnit) != null ? _l : DEFAULT_LABELS.childrenUnit,
4173
4172
  accommodationsHeading: (_m = labels == null ? void 0 : labels.accommodationsHeading) != null ? _m : DEFAULT_LABELS.accommodationsHeading,
4173
+ accommodationRoomHeading: (_n = labels == null ? void 0 : labels.accommodationRoomHeading) != null ? _n : DEFAULT_LABELS.accommodationRoomHeading,
4174
4174
  bedArrangementLabels: {
4175
- DOUBLE: (_o = (_n = labels == null ? void 0 : labels.bedArrangementLabels) == null ? void 0 : _n.DOUBLE) != null ? _o : DEFAULT_LABELS.bedArrangementLabels.DOUBLE,
4176
- TWIN: (_q = (_p = labels == null ? void 0 : labels.bedArrangementLabels) == null ? void 0 : _p.TWIN) != null ? _q : DEFAULT_LABELS.bedArrangementLabels.TWIN,
4177
- SINGLE: (_s = (_r = labels == null ? void 0 : labels.bedArrangementLabels) == null ? void 0 : _r.SINGLE) != null ? _s : DEFAULT_LABELS.bedArrangementLabels.SINGLE,
4178
- TRIPLE: (_u = (_t = labels == null ? void 0 : labels.bedArrangementLabels) == null ? void 0 : _t.TRIPLE) != null ? _u : DEFAULT_LABELS.bedArrangementLabels.TRIPLE
4175
+ DOUBLE: (_p = (_o = labels == null ? void 0 : labels.bedArrangementLabels) == null ? void 0 : _o.DOUBLE) != null ? _p : DEFAULT_LABELS.bedArrangementLabels.DOUBLE,
4176
+ TWIN: (_r = (_q = labels == null ? void 0 : labels.bedArrangementLabels) == null ? void 0 : _q.TWIN) != null ? _r : DEFAULT_LABELS.bedArrangementLabels.TWIN,
4177
+ SINGLE: (_t = (_s = labels == null ? void 0 : labels.bedArrangementLabels) == null ? void 0 : _s.SINGLE) != null ? _t : DEFAULT_LABELS.bedArrangementLabels.SINGLE,
4178
+ TRIPLE: (_v = (_u = labels == null ? void 0 : labels.bedArrangementLabels) == null ? void 0 : _u.TRIPLE) != null ? _v : DEFAULT_LABELS.bedArrangementLabels.TRIPLE
4179
4179
  }
4180
4180
  };
4181
4181
  const hasTravellers = !!travellers && travellers.length > 0;
@@ -4514,7 +4514,116 @@ function BookingAdventureCard({
4514
4514
  );
4515
4515
  })
4516
4516
  ] }),
4517
- hasRooms && /* @__PURE__ */ jsxs("div", { style: { marginTop: "4px" }, children: [
4517
+ hasRooms && roomLayout === "feature" && /* @__PURE__ */ jsxs("div", { style: { marginTop: "4px" }, children: [
4518
+ /* @__PURE__ */ jsx(
4519
+ "hr",
4520
+ {
4521
+ style: {
4522
+ border: "none",
4523
+ borderTop: `1px solid ${emailTokens.border}`,
4524
+ marginBottom: "10px"
4525
+ }
4526
+ }
4527
+ ),
4528
+ /* @__PURE__ */ jsx(
4529
+ "p",
4530
+ {
4531
+ style: {
4532
+ fontSize: "10px",
4533
+ fontWeight: 700,
4534
+ color: emailTokens.mutedForeground,
4535
+ textTransform: "uppercase",
4536
+ letterSpacing: "0.1em",
4537
+ margin: "0 0 10px 0"
4538
+ },
4539
+ children: l.accommodationsHeading
4540
+ }
4541
+ ),
4542
+ rooms.map((room, i) => /* @__PURE__ */ jsxs(
4543
+ "div",
4544
+ {
4545
+ style: {
4546
+ marginBottom: i < rooms.length - 1 ? "16px" : "0"
4547
+ },
4548
+ children: [
4549
+ /* @__PURE__ */ jsx(
4550
+ "p",
4551
+ {
4552
+ style: {
4553
+ fontSize: "16px",
4554
+ fontWeight: 700,
4555
+ color: emailTokens.foreground,
4556
+ lineHeight: "1.3",
4557
+ margin: "0 0 8px 0"
4558
+ },
4559
+ children: l.accommodationRoomHeading(room.roomName)
4560
+ }
4561
+ ),
4562
+ room.imageUrl && /* @__PURE__ */ jsx("div", { style: { marginBottom: "8px" }, children: /* @__PURE__ */ jsx(
4563
+ "img",
4564
+ {
4565
+ src: room.imageUrl,
4566
+ alt: room.roomName,
4567
+ style: {
4568
+ width: "100%",
4569
+ height: "auto",
4570
+ maxWidth: "100%",
4571
+ display: "block",
4572
+ borderRadius: "8px"
4573
+ }
4574
+ }
4575
+ ) }),
4576
+ /* @__PURE__ */ jsx(
4577
+ "div",
4578
+ {
4579
+ style: {
4580
+ fontSize: "14px",
4581
+ fontWeight: 600,
4582
+ color: emailTokens.foreground,
4583
+ marginBottom: "2px"
4584
+ },
4585
+ children: `${room.qty}\xD7 ${room.roomName}`
4586
+ }
4587
+ ),
4588
+ /* @__PURE__ */ jsxs("div", { style: { fontSize: "12px", color: emailTokens.mutedForeground }, children: [
4589
+ room.accommodationName,
4590
+ /* @__PURE__ */ jsx(
4591
+ "span",
4592
+ {
4593
+ style: {
4594
+ display: "inline-block",
4595
+ marginLeft: "8px",
4596
+ padding: "1px 6px",
4597
+ fontSize: "10px",
4598
+ fontWeight: 600,
4599
+ color: emailTokens.primary,
4600
+ backgroundColor: emailTokens.primaryLight,
4601
+ borderRadius: "4px",
4602
+ textTransform: "uppercase",
4603
+ letterSpacing: "0.05em"
4604
+ },
4605
+ children: l.bedArrangementLabels[room.bedArrangement]
4606
+ }
4607
+ )
4608
+ ] }),
4609
+ room.description && /* @__PURE__ */ jsx(
4610
+ "div",
4611
+ {
4612
+ style: {
4613
+ fontSize: "12px",
4614
+ color: emailTokens.bodyText,
4615
+ marginTop: "4px",
4616
+ lineHeight: "1.4"
4617
+ },
4618
+ children: room.description
4619
+ }
4620
+ )
4621
+ ]
4622
+ },
4623
+ i
4624
+ ))
4625
+ ] }),
4626
+ hasRooms && roomLayout === "compact" && /* @__PURE__ */ jsxs("div", { style: { marginTop: "4px" }, children: [
4518
4627
  /* @__PURE__ */ jsx(
4519
4628
  "hr",
4520
4629
  {
@@ -5153,6 +5262,14 @@ var DEFAULT_LABELS3 = {
5153
5262
  pricingLabel: "Pricing",
5154
5263
  subtotalLabel: "Subtotal",
5155
5264
  totalLabel: "Total",
5265
+ accommodationsLabel: "ACCOMMODATIONS",
5266
+ accommodationRoomHeading: (name) => `Accommodation: ${name}`,
5267
+ bedArrangementLabels: {
5268
+ DOUBLE: "Double",
5269
+ TWIN: "Twin",
5270
+ SINGLE: "Single",
5271
+ TRIPLE: "Triple"
5272
+ },
5156
5273
  paymentSummaryHeading: "\u{1F4B0} Payment Summary",
5157
5274
  paymentDetailsHeading: "Payment Details",
5158
5275
  depositLabel: (percent) => `Deposit (${percent}%)`,
@@ -5321,6 +5438,7 @@ function BookingPaymentConfirmationEmail({
5321
5438
  lineItems: lineItemsToPass,
5322
5439
  subtotal: adventure.subtotal,
5323
5440
  rooms: adventure.rooms,
5441
+ roomLayout: "feature",
5324
5442
  labels: {
5325
5443
  travellersHeading: l.travellersLabel,
5326
5444
  detailsHeading: l.itineraryLabel,
@@ -5330,7 +5448,10 @@ function BookingPaymentConfirmationEmail({
5330
5448
  notIncludedHeading: l.notIncludedLabel,
5331
5449
  childBadge: l.childBadge,
5332
5450
  adultsUnit: l.adultsUnit,
5333
- childrenUnit: l.childrenUnit
5451
+ childrenUnit: l.childrenUnit,
5452
+ accommodationsHeading: l.accommodationsLabel,
5453
+ accommodationRoomHeading: l.accommodationRoomHeading,
5454
+ bedArrangementLabels: l.bedArrangementLabels
5334
5455
  }
5335
5456
  }
5336
5457
  )
@@ -5788,6 +5909,195 @@ function BookingCancellationEmail({
5788
5909
  }
5789
5910
  );
5790
5911
  }
5912
+ var INLINE_LINK_STYLE2 = {
5913
+ color: emailTokens.primary,
5914
+ textDecoration: "underline"
5915
+ };
5916
+ function renderWhatsappLink2(contact, label) {
5917
+ if (contact.whatsappUrl) {
5918
+ return /* @__PURE__ */ jsx("a", { href: contact.whatsappUrl, style: INLINE_LINK_STYLE2, children: label });
5919
+ }
5920
+ return label;
5921
+ }
5922
+ function renderEmailLink2(contact, label) {
5923
+ if (contact.email) {
5924
+ return /* @__PURE__ */ jsx("a", { href: `mailto:${contact.email}`, style: INLINE_LINK_STYLE2, children: label });
5925
+ }
5926
+ return label;
5927
+ }
5928
+ function hasText2(s) {
5929
+ return typeof s === "string" && s.trim().length > 0;
5930
+ }
5931
+ var DEFAULT_LABELS6 = {
5932
+ logoAlt: "PlanetaEXO",
5933
+ greeting: (recipientName) => `Hi ${recipientName},`,
5934
+ title: "We've received your cancellation request",
5935
+ intro: (bookingRef) => `We've received your request to cancel booking ${bookingRef}. Our team will review it according to our cancellation policy and get back to you within 2 business days.`,
5936
+ summaryHeading: "Your request",
5937
+ bookingNumberLabel: "Booking number",
5938
+ adventuresLabel: "Adventure",
5939
+ datesLabel: "Dates",
5940
+ travellersLabel: "Travellers",
5941
+ nextStepsHeading: "What happens next",
5942
+ nextStepsNote: "No action is needed from you right now. We'll be in touch soon with the next steps.",
5943
+ closingAgent: (agentName, contact) => /* @__PURE__ */ jsxs(Fragment, { children: [
5944
+ "If you have any questions, your agent ",
5945
+ agentName,
5946
+ " is available via",
5947
+ " ",
5948
+ renderWhatsappLink2(contact, "WhatsApp"),
5949
+ " or ",
5950
+ renderEmailLink2(contact, "email"),
5951
+ "."
5952
+ ] }),
5953
+ closingNoAgent: "If you have any questions, our team is available via WhatsApp or email.",
5954
+ teamSignature: "The PlanetaEXO Team"
5955
+ };
5956
+ function CancellationRequestReceivedEmail({
5957
+ recipientName,
5958
+ bookingRef,
5959
+ adventures,
5960
+ travellersCount,
5961
+ agentName,
5962
+ agentContactLinks,
5963
+ logoUrl,
5964
+ labels,
5965
+ className
5966
+ }) {
5967
+ const l = __spreadValues(__spreadValues({}, DEFAULT_LABELS6), labels);
5968
+ const adventureLines = adventures.map((a) => a.name).join("\n");
5969
+ const dateLines = adventures.map((a) => `${a.startDate} \u2013 ${a.endDate}`).join("\n");
5970
+ const summaryRows = [
5971
+ {
5972
+ label: l.bookingNumberLabel,
5973
+ value: `#${bookingRef}`,
5974
+ valueColor: emailTokens.primary
5975
+ },
5976
+ { label: l.adventuresLabel, value: adventureLines },
5977
+ { label: l.datesLabel, value: dateLines },
5978
+ { label: l.travellersLabel, value: travellersCount }
5979
+ ];
5980
+ const agentNameTrimmed = agentName == null ? void 0 : agentName.trim();
5981
+ const contact = agentContactLinks != null ? agentContactLinks : {};
5982
+ const closingNode = agentNameTrimmed ? l.closingAgent(agentNameTrimmed, contact) : l.closingNoAgent;
5983
+ const sectionDivider = /* @__PURE__ */ jsx(
5984
+ "hr",
5985
+ {
5986
+ style: {
5987
+ border: "none",
5988
+ borderTop: `1px solid ${emailTokens.border}`,
5989
+ marginTop: 0,
5990
+ marginBottom: "24px"
5991
+ }
5992
+ }
5993
+ );
5994
+ return /* @__PURE__ */ jsxs(
5995
+ "div",
5996
+ {
5997
+ style: {
5998
+ maxWidth: "576px",
5999
+ margin: "0 auto",
6000
+ backgroundColor: emailTokens.white,
6001
+ color: emailTokens.foreground,
6002
+ fontFamily: emailTokens.fontFamily,
6003
+ fontSize: "16px",
6004
+ lineHeight: "1.6",
6005
+ border: `1px solid ${emailTokens.border}`,
6006
+ borderRadius: "12px",
6007
+ overflow: "hidden",
6008
+ padding: "32px"
6009
+ },
6010
+ className,
6011
+ children: [
6012
+ /* @__PURE__ */ jsx(EmailLogo, { src: logoUrl, alt: l.logoAlt }),
6013
+ /* @__PURE__ */ jsx("p", { style: { marginBottom: "16px" }, children: l.greeting(recipientName) }),
6014
+ /* @__PURE__ */ jsx(
6015
+ "p",
6016
+ {
6017
+ style: {
6018
+ marginTop: 0,
6019
+ marginBottom: "16px",
6020
+ fontWeight: 700,
6021
+ color: emailTokens.foreground,
6022
+ fontSize: "20px",
6023
+ lineHeight: "1.3",
6024
+ fontFamily: emailTokens.fontFamily
6025
+ },
6026
+ children: l.title
6027
+ }
6028
+ ),
6029
+ /* @__PURE__ */ jsx("p", { style: { marginBottom: "24px" }, children: l.intro(`#${bookingRef}`) }),
6030
+ sectionDivider,
6031
+ /* @__PURE__ */ jsx(BookingSummary, { heading: l.summaryHeading, rows: summaryRows }),
6032
+ (hasText2(l.nextStepsHeading) || hasText2(l.nextStepsNote)) && /* @__PURE__ */ jsxs(
6033
+ "div",
6034
+ {
6035
+ style: {
6036
+ marginBottom: "24px",
6037
+ padding: "16px 20px",
6038
+ borderRadius: "12px",
6039
+ border: `1px solid ${emailTokens.border}`,
6040
+ backgroundColor: emailTokens.muted
6041
+ },
6042
+ children: [
6043
+ hasText2(l.nextStepsHeading) && /* @__PURE__ */ jsx(
6044
+ "p",
6045
+ {
6046
+ style: {
6047
+ margin: "0 0 8px 0",
6048
+ fontSize: "12px",
6049
+ fontWeight: 700,
6050
+ color: emailTokens.mutedForeground,
6051
+ textTransform: "uppercase",
6052
+ letterSpacing: "0.08em",
6053
+ fontFamily: emailTokens.fontFamily
6054
+ },
6055
+ children: l.nextStepsHeading
6056
+ }
6057
+ ),
6058
+ hasText2(l.nextStepsNote) && /* @__PURE__ */ jsx(
6059
+ "p",
6060
+ {
6061
+ style: {
6062
+ margin: 0,
6063
+ fontSize: "14px",
6064
+ color: emailTokens.bodyText
6065
+ },
6066
+ children: l.nextStepsNote
6067
+ }
6068
+ )
6069
+ ]
6070
+ }
6071
+ ),
6072
+ sectionDivider,
6073
+ /* @__PURE__ */ jsx(
6074
+ "p",
6075
+ {
6076
+ style: {
6077
+ marginBottom: "16px",
6078
+ fontSize: "14px",
6079
+ fontWeight: 700,
6080
+ color: emailTokens.bodyText
6081
+ },
6082
+ children: closingNode
6083
+ }
6084
+ ),
6085
+ /* @__PURE__ */ jsx(
6086
+ "p",
6087
+ {
6088
+ style: {
6089
+ marginTop: 0,
6090
+ marginBottom: 0,
6091
+ fontSize: "14px",
6092
+ color: emailTokens.bodyText
6093
+ },
6094
+ children: l.teamSignature
6095
+ }
6096
+ )
6097
+ ]
6098
+ }
6099
+ );
6100
+ }
5791
6101
  function RegistrationProgressBar({
5792
6102
  tone,
5793
6103
  pct,
@@ -5850,23 +6160,23 @@ function RegistrationProgressBar({
5850
6160
  }
5851
6161
  ) });
5852
6162
  }
5853
- var INLINE_LINK_STYLE2 = {
6163
+ var INLINE_LINK_STYLE3 = {
5854
6164
  color: emailTokens.primary,
5855
6165
  textDecoration: "underline"
5856
6166
  };
5857
- function renderWhatsappLink2(contact, label) {
6167
+ function renderWhatsappLink3(contact, label) {
5858
6168
  if (contact.whatsappUrl) {
5859
- return /* @__PURE__ */ jsx("a", { href: contact.whatsappUrl, style: INLINE_LINK_STYLE2, children: label });
6169
+ return /* @__PURE__ */ jsx("a", { href: contact.whatsappUrl, style: INLINE_LINK_STYLE3, children: label });
5860
6170
  }
5861
6171
  return label;
5862
6172
  }
5863
- function renderEmailLink2(contact, label) {
6173
+ function renderEmailLink3(contact, label) {
5864
6174
  if (contact.email) {
5865
- return /* @__PURE__ */ jsx("a", { href: `mailto:${contact.email}`, style: INLINE_LINK_STYLE2, children: label });
6175
+ return /* @__PURE__ */ jsx("a", { href: `mailto:${contact.email}`, style: INLINE_LINK_STYLE3, children: label });
5866
6176
  }
5867
6177
  return label;
5868
6178
  }
5869
- var DEFAULT_LABELS6 = {
6179
+ var DEFAULT_LABELS7 = {
5870
6180
  logoAlt: "PlanetaEXO",
5871
6181
  greeting: (n) => `Hi ${n},`,
5872
6182
  intermediateHello: "Hope you're doing well.",
@@ -5885,9 +6195,9 @@ var DEFAULT_LABELS6 = {
5885
6195
  "If you need any assistance with the traveller registrations, feel free to contact your agent ",
5886
6196
  agentName,
5887
6197
  " via ",
5888
- renderWhatsappLink2(contact, "WhatsApp"),
6198
+ renderWhatsappLink3(contact, "WhatsApp"),
5889
6199
  " or ",
5890
- renderEmailLink2(contact, "email"),
6200
+ renderEmailLink3(contact, "email"),
5891
6201
  "."
5892
6202
  ] }),
5893
6203
  closingNoAgent: "If you need any assistance with the traveller registrations, feel free to contact us via WhatsApp or email.",
@@ -5960,7 +6270,7 @@ var DEFAULT_LABELS6 = {
5960
6270
  }
5961
6271
  }
5962
6272
  };
5963
- function hasText2(s) {
6273
+ function hasText3(s) {
5964
6274
  return typeof s === "string" && s.trim().length > 0;
5965
6275
  }
5966
6276
  function hasItems(arr) {
@@ -5980,12 +6290,12 @@ function RegistrationReminderEmail({
5980
6290
  className
5981
6291
  }) {
5982
6292
  var _a, _b, _c, _d, _e, _f, _g, _h;
5983
- const l = __spreadProps(__spreadValues(__spreadValues({}, DEFAULT_LABELS6), labels), {
6293
+ const l = __spreadProps(__spreadValues(__spreadValues({}, DEFAULT_LABELS7), labels), {
5984
6294
  variants: {
5985
- 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 : {}),
5986
- 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 : {}),
5987
- 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 : {}),
5988
- 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 : {})
6295
+ 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 : {}),
6296
+ 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 : {}),
6297
+ 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 : {}),
6298
+ 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 : {})
5989
6299
  }
5990
6300
  });
5991
6301
  const v = l.variants[slug];
@@ -6006,14 +6316,14 @@ function RegistrationReminderEmail({
6006
6316
  { label: l.travellersRowLabel, value: l.travellersCountLabel(totalTravellers) },
6007
6317
  ...(agent == null ? void 0 : agent.name) ? [{ label: l.agentRowLabel, value: agent.name }] : []
6008
6318
  ];
6009
- const showPleaseNote = hasText2(v.pleaseNoteHeader) && hasItems(v.pleaseNoteBullets);
6010
- const showBookerCoord = hasText2(v.bookerCoordinationNote);
6011
- const showEarlyBenefit = hasText2(v.earlyCompletionBenefit);
6012
- const showImportant = hasText2(v.importantNote);
6013
- const showFinalTagline = hasText2(v.finalReminderTagline);
6014
- hasText2(v.multiTravellerNote);
6015
- const showDisregard = hasText2(v.disregardIfCompleted);
6016
- const showClosingThanks = hasText2(v.closingThanks);
6319
+ const showPleaseNote = hasText3(v.pleaseNoteHeader) && hasItems(v.pleaseNoteBullets);
6320
+ const showBookerCoord = hasText3(v.bookerCoordinationNote);
6321
+ const showEarlyBenefit = hasText3(v.earlyCompletionBenefit);
6322
+ const showImportant = hasText3(v.importantNote);
6323
+ const showFinalTagline = hasText3(v.finalReminderTagline);
6324
+ hasText3(v.multiTravellerNote);
6325
+ const showDisregard = hasText3(v.disregardIfCompleted);
6326
+ const showClosingThanks = hasText3(v.closingThanks);
6017
6327
  const sectionDivider = /* @__PURE__ */ jsx(
6018
6328
  "hr",
6019
6329
  {
@@ -6025,7 +6335,7 @@ function RegistrationReminderEmail({
6025
6335
  }
6026
6336
  }
6027
6337
  );
6028
- const hasIntroBlock = hasText2(v.intro) || hasText2(v.contextNote);
6338
+ const hasIntroBlock = hasText3(v.intro) || hasText3(v.contextNote);
6029
6339
  const hasPleaseNote = showPleaseNote;
6030
6340
  const hasD7Highlight = showImportant && slug === "d_minus_7";
6031
6341
  const hasD2Highlight = showFinalTagline || showImportant && slug === "d_minus_2";
@@ -6049,9 +6359,9 @@ function RegistrationReminderEmail({
6049
6359
  children: [
6050
6360
  /* @__PURE__ */ jsx(EmailLogo, { src: logoUrl, alt: l.logoAlt }),
6051
6361
  /* @__PURE__ */ jsx("p", { style: { marginBottom: "16px" }, children: l.greeting(recipientFirstName) }),
6052
- hasText2(l.intermediateHello) && /* @__PURE__ */ jsx("p", { style: { marginBottom: "16px" }, children: l.intermediateHello }),
6053
- hasText2(v.intro) && /* @__PURE__ */ jsx("p", { style: { marginBottom: "16px" }, children: v.intro }),
6054
- hasText2(v.contextNote) && /* @__PURE__ */ jsx("p", { style: { marginBottom: "16px" }, children: v.contextNote }),
6362
+ hasText3(l.intermediateHello) && /* @__PURE__ */ jsx("p", { style: { marginBottom: "16px" }, children: l.intermediateHello }),
6363
+ hasText3(v.intro) && /* @__PURE__ */ jsx("p", { style: { marginBottom: "16px" }, children: v.intro }),
6364
+ hasText3(v.contextNote) && /* @__PURE__ */ jsx("p", { style: { marginBottom: "16px" }, children: v.contextNote }),
6055
6365
  hasIntroBlock && sectionDivider,
6056
6366
  slug === "d_minus_15" && showBookerCoord && /* @__PURE__ */ jsx("p", { style: { marginBottom: "16px" }, children: v.bookerCoordinationNote }),
6057
6367
  hasItems(adventures) && /* @__PURE__ */ jsxs(Fragment, { children: [
@@ -6069,7 +6379,7 @@ function RegistrationReminderEmail({
6069
6379
  children: l.progressHeader
6070
6380
  }
6071
6381
  ),
6072
- hasText2(v.progressIntro) && /* @__PURE__ */ jsx("p", { style: { marginBottom: "16px", color: emailTokens.bodyText }, children: v.progressIntro }),
6382
+ hasText3(v.progressIntro) && /* @__PURE__ */ jsx("p", { style: { marginBottom: "16px", color: emailTokens.bodyText }, children: v.progressIntro }),
6073
6383
  adventures.map((adv, i) => /* @__PURE__ */ jsxs(
6074
6384
  "div",
6075
6385
  {
@@ -6205,23 +6515,23 @@ function RegistrationReminderEmail({
6205
6515
  }
6206
6516
  );
6207
6517
  }
6208
- var INLINE_LINK_STYLE3 = {
6518
+ var INLINE_LINK_STYLE4 = {
6209
6519
  color: emailTokens.primary,
6210
6520
  textDecoration: "underline"
6211
6521
  };
6212
- function renderWhatsappLink3(contact, label) {
6522
+ function renderWhatsappLink4(contact, label) {
6213
6523
  if (contact.whatsappUrl) {
6214
- return /* @__PURE__ */ jsx("a", { href: contact.whatsappUrl, style: INLINE_LINK_STYLE3, children: label });
6524
+ return /* @__PURE__ */ jsx("a", { href: contact.whatsappUrl, style: INLINE_LINK_STYLE4, children: label });
6215
6525
  }
6216
6526
  return label;
6217
6527
  }
6218
- function renderEmailLink3(contact, label) {
6528
+ function renderEmailLink4(contact, label) {
6219
6529
  if (contact.email) {
6220
- return /* @__PURE__ */ jsx("a", { href: `mailto:${contact.email}`, style: INLINE_LINK_STYLE3, children: label });
6530
+ return /* @__PURE__ */ jsx("a", { href: `mailto:${contact.email}`, style: INLINE_LINK_STYLE4, children: label });
6221
6531
  }
6222
6532
  return label;
6223
6533
  }
6224
- var DEFAULT_LABELS7 = {
6534
+ var DEFAULT_LABELS8 = {
6225
6535
  logoAlt: "PlanetaEXO",
6226
6536
  greeting: (n) => `Hi ${n},`,
6227
6537
  tripDetailsHeader: "\u{1F4CB} Trip details",
@@ -6237,9 +6547,9 @@ var DEFAULT_LABELS7 = {
6237
6547
  "If you have questions, your agent ",
6238
6548
  agentName,
6239
6549
  " is available via ",
6240
- renderWhatsappLink3(contact, "WhatsApp"),
6550
+ renderWhatsappLink4(contact, "WhatsApp"),
6241
6551
  " or ",
6242
- renderEmailLink3(contact, "email"),
6552
+ renderEmailLink4(contact, "email"),
6243
6553
  "."
6244
6554
  ] }),
6245
6555
  closingNoAgent: "If you have questions or need assistance, our team is available via WhatsApp or email.",
@@ -6287,7 +6597,7 @@ var DEFAULT_LABELS7 = {
6287
6597
  }
6288
6598
  }
6289
6599
  };
6290
- function hasText3(s) {
6600
+ function hasText4(s) {
6291
6601
  return typeof s === "string" && s.trim().length > 0;
6292
6602
  }
6293
6603
  function RegistrationReminderIndividualEmail({
@@ -6308,12 +6618,12 @@ function RegistrationReminderIndividualEmail({
6308
6618
  className
6309
6619
  }) {
6310
6620
  var _a, _b, _c, _d, _e, _f, _g, _h;
6311
- const l = __spreadProps(__spreadValues(__spreadValues({}, DEFAULT_LABELS7), labels), {
6621
+ const l = __spreadProps(__spreadValues(__spreadValues({}, DEFAULT_LABELS8), labels), {
6312
6622
  variants: {
6313
- 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 : {}),
6314
- 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 : {}),
6315
- 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 : {}),
6316
- 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 : {})
6623
+ 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 : {}),
6624
+ 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 : {}),
6625
+ 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 : {}),
6626
+ 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 : {})
6317
6627
  }
6318
6628
  });
6319
6629
  const v = l.variants[slug];
@@ -6333,7 +6643,7 @@ function RegistrationReminderIndividualEmail({
6333
6643
  { label: l.leadTravellerLabel, value: leadTravellerName },
6334
6644
  { label: l.adventureLabel, value: adventureName },
6335
6645
  { label: l.startingDateLabel, value: startDateFormatted },
6336
- ...hasText3(partnerName) ? [{ label: l.partnerLabel, value: partnerName }] : []
6646
+ ...hasText4(partnerName) ? [{ label: l.partnerLabel, value: partnerName }] : []
6337
6647
  ];
6338
6648
  const sectionDivider = /* @__PURE__ */ jsx(
6339
6649
  "hr",
@@ -6368,7 +6678,7 @@ function RegistrationReminderIndividualEmail({
6368
6678
  children: [
6369
6679
  /* @__PURE__ */ jsx(EmailLogo, { src: logoUrl, alt: l.logoAlt }),
6370
6680
  /* @__PURE__ */ jsx("p", { style: { marginBottom: "16px" }, children: l.greeting(recipientFirstName) }),
6371
- hasText3(routingNote) && /* @__PURE__ */ jsx(
6681
+ hasText4(routingNote) && /* @__PURE__ */ jsx(
6372
6682
  "p",
6373
6683
  {
6374
6684
  style: {
@@ -6383,8 +6693,8 @@ function RegistrationReminderIndividualEmail({
6383
6693
  }
6384
6694
  ),
6385
6695
  /* @__PURE__ */ jsx("p", { style: { marginBottom: "16px" }, children: introText }),
6386
- hasText3(v.contextNote) && /* @__PURE__ */ jsx("p", { style: { marginBottom: "16px" }, children: v.contextNote }),
6387
- slug === "d_minus_2" && (hasText3(v.finalReminderTagline) || hasText3(v.consequencesNote)) && /* @__PURE__ */ jsxs(
6696
+ hasText4(v.contextNote) && /* @__PURE__ */ jsx("p", { style: { marginBottom: "16px" }, children: v.contextNote }),
6697
+ slug === "d_minus_2" && (hasText4(v.finalReminderTagline) || hasText4(v.consequencesNote)) && /* @__PURE__ */ jsxs(
6388
6698
  "div",
6389
6699
  {
6390
6700
  style: {
@@ -6396,23 +6706,23 @@ function RegistrationReminderIndividualEmail({
6396
6706
  color: "#7f1d1d"
6397
6707
  },
6398
6708
  children: [
6399
- hasText3(v.finalReminderTagline) && /* @__PURE__ */ jsx(
6709
+ hasText4(v.finalReminderTagline) && /* @__PURE__ */ jsx(
6400
6710
  "p",
6401
6711
  {
6402
6712
  style: {
6403
6713
  margin: 0,
6404
- marginBottom: hasText3(v.consequencesNote) ? "8px" : 0,
6714
+ marginBottom: hasText4(v.consequencesNote) ? "8px" : 0,
6405
6715
  fontWeight: 700
6406
6716
  },
6407
6717
  children: v.finalReminderTagline
6408
6718
  }
6409
6719
  ),
6410
- hasText3(v.consequencesNote) && /* @__PURE__ */ jsx("p", { style: { margin: 0 }, children: v.consequencesNote })
6720
+ hasText4(v.consequencesNote) && /* @__PURE__ */ jsx("p", { style: { margin: 0 }, children: v.consequencesNote })
6411
6721
  ]
6412
6722
  }
6413
6723
  ),
6414
6724
  /* @__PURE__ */ jsx("div", { style: { marginBottom: "24px", textAlign: "left" }, children: /* @__PURE__ */ jsx("a", { href: ctaUrl, style: ctaStyle, children: l.ctaLabel }) }),
6415
- slug === "d_minus_7" && hasText3(v.mandatoryNote) && /* @__PURE__ */ jsx(
6725
+ slug === "d_minus_7" && hasText4(v.mandatoryNote) && /* @__PURE__ */ jsx(
6416
6726
  "p",
6417
6727
  {
6418
6728
  style: {
@@ -6428,8 +6738,8 @@ function RegistrationReminderIndividualEmail({
6428
6738
  ),
6429
6739
  sectionDivider,
6430
6740
  /* @__PURE__ */ jsx(BookingSummary, { heading: l.tripDetailsHeader, rows: tripRows }),
6431
- (slug === "d_minus_30" || slug === "d_minus_15") && hasText3(v.mandatoryNote) && /* @__PURE__ */ jsx("p", { style: { marginBottom: "16px", color: emailTokens.bodyText }, children: v.mandatoryNote }),
6432
- slug === "d_minus_2" && hasText3(v.disregardIfCompleted) && /* @__PURE__ */ jsx(
6741
+ (slug === "d_minus_30" || slug === "d_minus_15") && hasText4(v.mandatoryNote) && /* @__PURE__ */ jsx("p", { style: { marginBottom: "16px", color: emailTokens.bodyText }, children: v.mandatoryNote }),
6742
+ slug === "d_minus_2" && hasText4(v.disregardIfCompleted) && /* @__PURE__ */ jsx(
6433
6743
  "p",
6434
6744
  {
6435
6745
  style: {
@@ -6446,29 +6756,29 @@ function RegistrationReminderIndividualEmail({
6446
6756
  whatsappUrl: agent.whatsappUrl,
6447
6757
  email: agent.email
6448
6758
  }) : l.closingNoAgent }),
6449
- hasText3(v.closingThanks) && /* @__PURE__ */ jsx("p", { style: { marginBottom: "16px", fontSize: "14px", color: emailTokens.bodyText }, children: v.closingThanks }),
6759
+ hasText4(v.closingThanks) && /* @__PURE__ */ jsx("p", { style: { marginBottom: "16px", fontSize: "14px", color: emailTokens.bodyText }, children: v.closingThanks }),
6450
6760
  /* @__PURE__ */ jsx("p", { style: { marginTop: 0, marginBottom: 0, fontSize: "14px", color: emailTokens.bodyText }, children: l.teamSignature })
6451
6761
  ]
6452
6762
  }
6453
6763
  );
6454
6764
  }
6455
- var INLINE_LINK_STYLE4 = {
6765
+ var INLINE_LINK_STYLE5 = {
6456
6766
  color: emailTokens.primary,
6457
6767
  textDecoration: "underline"
6458
6768
  };
6459
- function renderWhatsappLink4(contact, label) {
6769
+ function renderWhatsappLink5(contact, label) {
6460
6770
  if (contact.whatsappUrl) {
6461
- return /* @__PURE__ */ jsx("a", { href: contact.whatsappUrl, style: INLINE_LINK_STYLE4, children: label });
6771
+ return /* @__PURE__ */ jsx("a", { href: contact.whatsappUrl, style: INLINE_LINK_STYLE5, children: label });
6462
6772
  }
6463
6773
  return label;
6464
6774
  }
6465
- function renderEmailLink4(contact, label) {
6775
+ function renderEmailLink5(contact, label) {
6466
6776
  if (contact.email) {
6467
- return /* @__PURE__ */ jsx("a", { href: `mailto:${contact.email}`, style: INLINE_LINK_STYLE4, children: label });
6777
+ return /* @__PURE__ */ jsx("a", { href: `mailto:${contact.email}`, style: INLINE_LINK_STYLE5, children: label });
6468
6778
  }
6469
6779
  return label;
6470
6780
  }
6471
- var DEFAULT_LABELS8 = {
6781
+ var DEFAULT_LABELS9 = {
6472
6782
  logoAlt: "PlanetaEXO",
6473
6783
  greeting: (n) => `Hi ${n},`,
6474
6784
  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.`,
@@ -6490,15 +6800,15 @@ var DEFAULT_LABELS8 = {
6490
6800
  agentName,
6491
6801
  " is available via",
6492
6802
  " ",
6493
- renderWhatsappLink4(contact, "WhatsApp"),
6803
+ renderWhatsappLink5(contact, "WhatsApp"),
6494
6804
  " or ",
6495
- renderEmailLink4(contact, "email"),
6805
+ renderEmailLink5(contact, "email"),
6496
6806
  "."
6497
6807
  ] }),
6498
6808
  closingNoAgent: "If you have any questions, our team is available via WhatsApp or email.",
6499
6809
  teamSignature: "The PlanetaEXO Team"
6500
6810
  };
6501
- function hasText4(s) {
6811
+ function hasText5(s) {
6502
6812
  return typeof s === "string" && s.trim().length > 0;
6503
6813
  }
6504
6814
  function PartnerRegistrationCompleteEmail({
@@ -6518,14 +6828,14 @@ function PartnerRegistrationCompleteEmail({
6518
6828
  labels,
6519
6829
  className
6520
6830
  }) {
6521
- const l = __spreadValues(__spreadValues({}, DEFAULT_LABELS8), labels);
6831
+ const l = __spreadValues(__spreadValues({}, DEFAULT_LABELS9), labels);
6522
6832
  const tripRows = [
6523
6833
  { label: l.bookingNumberLabel, value: `#${bookingNumber}`, valueColor: emailTokens.primary },
6524
6834
  { label: l.adventureLabel, value: adventureName },
6525
6835
  { label: l.datesLabel, value: dateRange },
6526
6836
  { label: l.partnerLabel, value: partnerName },
6527
- ...hasText4(bookingPersonName) ? [{ label: l.bookingPersonLabel, value: bookingPersonName }] : [],
6528
- ...hasText4(bookingPersonPassport) ? [{ label: l.passportLabel, value: bookingPersonPassport }] : []
6837
+ ...hasText5(bookingPersonName) ? [{ label: l.bookingPersonLabel, value: bookingPersonName }] : [],
6838
+ ...hasText5(bookingPersonPassport) ? [{ label: l.passportLabel, value: bookingPersonPassport }] : []
6529
6839
  ];
6530
6840
  const sectionDivider = /* @__PURE__ */ jsx(
6531
6841
  "hr",
@@ -6559,7 +6869,7 @@ function PartnerRegistrationCompleteEmail({
6559
6869
  className,
6560
6870
  children: [
6561
6871
  /* @__PURE__ */ jsx(EmailLogo, { src: logoUrl, alt: l.logoAlt }),
6562
- hasText4(topNotice) && /* @__PURE__ */ jsx(
6872
+ hasText5(topNotice) && /* @__PURE__ */ jsx(
6563
6873
  "div",
6564
6874
  {
6565
6875
  style: {
@@ -6636,7 +6946,7 @@ function PartnerRegistrationCompleteEmail({
6636
6946
  }) })
6637
6947
  }
6638
6948
  ) : /* @__PURE__ */ jsx("p", { style: { marginTop: 0, marginBottom: "24px", color: emailTokens.bodyText }, children: l.expectationsEmptyNote }),
6639
- pdfAttached && hasText4(l.pdfNote) && /* @__PURE__ */ jsx(
6949
+ pdfAttached && hasText5(l.pdfNote) && /* @__PURE__ */ jsx(
6640
6950
  "div",
6641
6951
  {
6642
6952
  style: {
@@ -6661,26 +6971,26 @@ function PartnerRegistrationCompleteEmail({
6661
6971
  }
6662
6972
  );
6663
6973
  }
6664
- var INLINE_LINK_STYLE5 = {
6974
+ var INLINE_LINK_STYLE6 = {
6665
6975
  color: emailTokens.primary,
6666
6976
  textDecoration: "underline"
6667
6977
  };
6668
- function renderWhatsappLink5(contact, label) {
6978
+ function renderWhatsappLink6(contact, label) {
6669
6979
  if (contact.whatsappUrl) {
6670
- return /* @__PURE__ */ jsx("a", { href: contact.whatsappUrl, style: INLINE_LINK_STYLE5, children: label });
6980
+ return /* @__PURE__ */ jsx("a", { href: contact.whatsappUrl, style: INLINE_LINK_STYLE6, children: label });
6671
6981
  }
6672
6982
  return label;
6673
6983
  }
6674
- function renderEmailLink5(contact, label) {
6984
+ function renderEmailLink6(contact, label) {
6675
6985
  if (contact.email) {
6676
- return /* @__PURE__ */ jsx("a", { href: `mailto:${contact.email}`, style: INLINE_LINK_STYLE5, children: label });
6986
+ return /* @__PURE__ */ jsx("a", { href: `mailto:${contact.email}`, style: INLINE_LINK_STYLE6, children: label });
6677
6987
  }
6678
6988
  return label;
6679
6989
  }
6680
- function hasText5(s) {
6990
+ function hasText6(s) {
6681
6991
  return typeof s === "string" && s.trim().length > 0;
6682
6992
  }
6683
- var DEFAULT_LABELS9 = {
6993
+ var DEFAULT_LABELS10 = {
6684
6994
  logoAlt: "PlanetaEXO",
6685
6995
  greeting: (n) => `Hi ${n},`,
6686
6996
  intro: (adv) => `You have a new booking for your adventure ${adv}. Here are the details:`,
@@ -6706,9 +7016,9 @@ var DEFAULT_LABELS9 = {
6706
7016
  agentName,
6707
7017
  " is available via",
6708
7018
  " ",
6709
- renderWhatsappLink5(contact, "WhatsApp"),
7019
+ renderWhatsappLink6(contact, "WhatsApp"),
6710
7020
  " or ",
6711
- renderEmailLink5(contact, "email"),
7021
+ renderEmailLink6(contact, "email"),
6712
7022
  "."
6713
7023
  ] }),
6714
7024
  closingNoAgent: "If you have any questions, our team is available via WhatsApp or email.",
@@ -6729,10 +7039,10 @@ function PartnerBookingCreatedEmail({
6729
7039
  labels,
6730
7040
  className
6731
7041
  }) {
6732
- const l = __spreadValues(__spreadValues({}, DEFAULT_LABELS9), labels);
7042
+ const l = __spreadValues(__spreadValues({}, DEFAULT_LABELS10), labels);
6733
7043
  const summaryRows = [
6734
7044
  { label: l.bookerNameLabel, value: booker.name },
6735
- ...hasText5(booker.country) ? [{ label: l.bookerCountryLabel, value: booker.country }] : [],
7045
+ ...hasText6(booker.country) ? [{ label: l.bookerCountryLabel, value: booker.country }] : [],
6736
7046
  { label: l.bookingNumberLabel, value: `#${bookingNumber}`, valueColor: emailTokens.primary },
6737
7047
  { label: l.adventureLabel, value: adventureName },
6738
7048
  { label: l.datesLabel, value: dateRange },
@@ -6769,7 +7079,7 @@ function PartnerBookingCreatedEmail({
6769
7079
  className,
6770
7080
  children: [
6771
7081
  /* @__PURE__ */ jsx(EmailLogo, { src: logoUrl, alt: l.logoAlt }),
6772
- hasText5(topNotice) && /* @__PURE__ */ jsx(
7082
+ hasText6(topNotice) && /* @__PURE__ */ jsx(
6773
7083
  "div",
6774
7084
  {
6775
7085
  style: {
@@ -6828,7 +7138,7 @@ function PartnerBookingCreatedEmail({
6828
7138
  }
6829
7139
  );
6830
7140
  }
6831
- var DEFAULT_LABELS10 = {
7141
+ var DEFAULT_LABELS11 = {
6832
7142
  logoAlt: "PlanetaEXO",
6833
7143
  greeting: (name) => `Hi ${name},`,
6834
7144
  introMessage: "",
@@ -6871,7 +7181,7 @@ function PaymentReceiptEmail({
6871
7181
  labels,
6872
7182
  className
6873
7183
  }) {
6874
- const l = __spreadValues(__spreadValues({}, DEFAULT_LABELS10), labels);
7184
+ const l = __spreadValues(__spreadValues({}, DEFAULT_LABELS11), labels);
6875
7185
  const travellersLine = travellers.filter((s) => s.trim().length > 0).join(", ");
6876
7186
  const interestRow = chargedAmount && chargedAmount !== amount;
6877
7187
  const receiptRows = [
@@ -7015,24 +7325,24 @@ function PaymentReceiptEmail({
7015
7325
  }
7016
7326
  );
7017
7327
  }
7018
- var INLINE_LINK_STYLE6 = {
7328
+ var INLINE_LINK_STYLE7 = {
7019
7329
  color: emailTokens.primary,
7020
7330
  textDecoration: "underline"
7021
7331
  };
7022
- function renderWhatsappLink6(contact, label) {
7332
+ function renderWhatsappLink7(contact, label) {
7023
7333
  if (contact.whatsappUrl) {
7024
- return /* @__PURE__ */ jsx("a", { href: contact.whatsappUrl, style: INLINE_LINK_STYLE6, children: label });
7334
+ return /* @__PURE__ */ jsx("a", { href: contact.whatsappUrl, style: INLINE_LINK_STYLE7, children: label });
7025
7335
  }
7026
7336
  return label;
7027
7337
  }
7028
- function renderEmailLink6(contact, label) {
7338
+ function renderEmailLink7(contact, label) {
7029
7339
  if (contact.email) {
7030
- return /* @__PURE__ */ jsx("a", { href: `mailto:${contact.email}`, style: INLINE_LINK_STYLE6, children: label });
7340
+ return /* @__PURE__ */ jsx("a", { href: `mailto:${contact.email}`, style: INLINE_LINK_STYLE7, children: label });
7031
7341
  }
7032
7342
  return label;
7033
7343
  }
7034
7344
  var EMPTY_CLOSING_ALTERNATIVE = (_agentName, _contact) => null;
7035
- var DEFAULT_LABELS11 = {
7345
+ var DEFAULT_LABELS12 = {
7036
7346
  logoAlt: "PlanetaEXO",
7037
7347
  greeting: (name) => `Hi ${name},`,
7038
7348
  intermediateHello: "Hope you're doing well.",
@@ -7047,9 +7357,9 @@ var DEFAULT_LABELS11 = {
7047
7357
  "If you need any assistance or would like to discuss your payment, feel free to contact your agent ",
7048
7358
  agentName,
7049
7359
  " via ",
7050
- renderWhatsappLink6(contact, "WhatsApp"),
7360
+ renderWhatsappLink7(contact, "WhatsApp"),
7051
7361
  " or ",
7052
- renderEmailLink6(contact, "email"),
7362
+ renderEmailLink7(contact, "email"),
7053
7363
  "."
7054
7364
  ] }),
7055
7365
  closingNoAgent: "If you need any assistance or would like to discuss your payment, feel free to contact us via WhatsApp or email.",
@@ -7093,9 +7403,9 @@ var DEFAULT_LABELS11 = {
7093
7403
  "If you are experiencing any issues with payment or need additional time, please contact your agent ",
7094
7404
  agentName,
7095
7405
  " via ",
7096
- renderWhatsappLink6(contact, "WhatsApp"),
7406
+ renderWhatsappLink7(contact, "WhatsApp"),
7097
7407
  " or ",
7098
- renderEmailLink6(contact, "email"),
7408
+ renderEmailLink7(contact, "email"),
7099
7409
  ". We'll be happy to assist."
7100
7410
  ] })
7101
7411
  }
@@ -7119,7 +7429,7 @@ function PaymentReminderEmail({
7119
7429
  }) {
7120
7430
  var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s;
7121
7431
  const lOverride = labels != null ? labels : {};
7122
- const variantDefaults = DEFAULT_LABELS11.variants[variant];
7432
+ const variantDefaults = DEFAULT_LABELS12.variants[variant];
7123
7433
  const variantOverride = (_b = (_a = lOverride.variants) == null ? void 0 : _a[variant]) != null ? _b : {};
7124
7434
  const variantLabels = {
7125
7435
  intro: (_c = variantOverride.intro) != null ? _c : variantDefaults.intro,
@@ -7129,19 +7439,19 @@ function PaymentReminderEmail({
7129
7439
  closingAlternative: (_f = variantOverride.closingAlternative) != null ? _f : variantDefaults.closingAlternative
7130
7440
  };
7131
7441
  const l = {
7132
- logoAlt: (_g = lOverride.logoAlt) != null ? _g : DEFAULT_LABELS11.logoAlt,
7133
- greeting: (_h = lOverride.greeting) != null ? _h : DEFAULT_LABELS11.greeting,
7134
- intermediateHello: (_i = lOverride.intermediateHello) != null ? _i : DEFAULT_LABELS11.intermediateHello,
7135
- bookingSummaryHeader: (_j = lOverride.bookingSummaryHeader) != null ? _j : DEFAULT_LABELS11.bookingSummaryHeader,
7136
- amountAlreadyPaidLabel: (_k = lOverride.amountAlreadyPaidLabel) != null ? _k : DEFAULT_LABELS11.amountAlreadyPaidLabel,
7137
- remainingBalanceDueLabel: (_l = lOverride.remainingBalanceDueLabel) != null ? _l : DEFAULT_LABELS11.remainingBalanceDueLabel,
7138
- totalBookingAmountLabel: (_m = lOverride.totalBookingAmountLabel) != null ? _m : DEFAULT_LABELS11.totalBookingAmountLabel,
7139
- paymentDetailsHeading: (_n = lOverride.paymentDetailsHeading) != null ? _n : DEFAULT_LABELS11.paymentDetailsHeading,
7140
- ctaLabel: (_o = lOverride.ctaLabel) != null ? _o : DEFAULT_LABELS11.ctaLabel,
7141
- teamSignature: (_p = lOverride.teamSignature) != null ? _p : DEFAULT_LABELS11.teamSignature,
7142
- closingAgent: (_q = lOverride.closingAgent) != null ? _q : DEFAULT_LABELS11.closingAgent,
7143
- closingNoAgent: (_r = lOverride.closingNoAgent) != null ? _r : DEFAULT_LABELS11.closingNoAgent,
7144
- adventureCard: __spreadValues(__spreadValues({}, DEFAULT_LABELS11.adventureCard), (_s = lOverride.adventureCard) != null ? _s : {})
7442
+ logoAlt: (_g = lOverride.logoAlt) != null ? _g : DEFAULT_LABELS12.logoAlt,
7443
+ greeting: (_h = lOverride.greeting) != null ? _h : DEFAULT_LABELS12.greeting,
7444
+ intermediateHello: (_i = lOverride.intermediateHello) != null ? _i : DEFAULT_LABELS12.intermediateHello,
7445
+ bookingSummaryHeader: (_j = lOverride.bookingSummaryHeader) != null ? _j : DEFAULT_LABELS12.bookingSummaryHeader,
7446
+ amountAlreadyPaidLabel: (_k = lOverride.amountAlreadyPaidLabel) != null ? _k : DEFAULT_LABELS12.amountAlreadyPaidLabel,
7447
+ remainingBalanceDueLabel: (_l = lOverride.remainingBalanceDueLabel) != null ? _l : DEFAULT_LABELS12.remainingBalanceDueLabel,
7448
+ totalBookingAmountLabel: (_m = lOverride.totalBookingAmountLabel) != null ? _m : DEFAULT_LABELS12.totalBookingAmountLabel,
7449
+ paymentDetailsHeading: (_n = lOverride.paymentDetailsHeading) != null ? _n : DEFAULT_LABELS12.paymentDetailsHeading,
7450
+ ctaLabel: (_o = lOverride.ctaLabel) != null ? _o : DEFAULT_LABELS12.ctaLabel,
7451
+ teamSignature: (_p = lOverride.teamSignature) != null ? _p : DEFAULT_LABELS12.teamSignature,
7452
+ closingAgent: (_q = lOverride.closingAgent) != null ? _q : DEFAULT_LABELS12.closingAgent,
7453
+ closingNoAgent: (_r = lOverride.closingNoAgent) != null ? _r : DEFAULT_LABELS12.closingNoAgent,
7454
+ adventureCard: __spreadValues(__spreadValues({}, DEFAULT_LABELS12.adventureCard), (_s = lOverride.adventureCard) != null ? _s : {})
7145
7455
  };
7146
7456
  const ctaStyle = {
7147
7457
  display: "inline-block",
@@ -8422,7 +8732,7 @@ function validateCpf(value) {
8422
8732
  if (secondDigit !== parseInt(digits[10], 10)) return false;
8423
8733
  return true;
8424
8734
  }
8425
- var DEFAULT_LABELS12 = {
8735
+ var DEFAULT_LABELS13 = {
8426
8736
  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.",
8427
8737
  detailsSectionTitle: "Your details",
8428
8738
  tripInfoSectionTitle: "Trip info",
@@ -9166,7 +9476,7 @@ function RegistrationForm({
9166
9476
  }) {
9167
9477
  var _a;
9168
9478
  const L = React32.useMemo(
9169
- () => __spreadValues(__spreadValues({}, DEFAULT_LABELS12), labels != null ? labels : {}),
9479
+ () => __spreadValues(__spreadValues({}, DEFAULT_LABELS13), labels != null ? labels : {}),
9170
9480
  [labels]
9171
9481
  );
9172
9482
  const sortedFields = React32.useMemo(
@@ -18789,6 +19099,6 @@ function SegmentedControl({
18789
19099
  );
18790
19100
  }
18791
19101
 
18792
- export { ActivityCard, AdventureExplorer, AgentContactCard, Alert, AskExo, BirthDateField, BlogCard, BlogJournal, BlogPost, BookingAdventureCard, BookingCancellationEmail, BookingConfirmedCard, BookingCreatedEmail, BookingDetails, BookingForm, BookingOtpEmail, BookingPaymentConfirmationEmail, BookingShell, BookingSummary, Button, COUNTRIES, CancellationForm, CategoryPage2, Chip, CounterField, CountrySearchField, CtaBanner, DEFAULT_FOOTER_BADGES, DEFAULT_FOOTER_DESTINATIONS, DEFAULT_FOOTER_LANGUAGES, DEFAULT_FOOTER_LEGAL, DEFAULT_FOOTER_PAGES, DEFAULT_FOOTER_SOCIALS, DEFAULT_FOOTER_THEMES, DEFAULT_HEADER_LINKS, DEFAULT_LANGUAGES, STATUS_MAP as DEPARTURE_STATUS_MAP, DatePickerField, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, ExoOrb, FilterPanel, FloatingInput, FloatingSelect, GroupProgressBar, GroupStatusBanner, HomeHeader, Itinerary, ItineraryDay, LOGO_PLANETAEXO_DATA_URI, LeadCapturePopup, MenuTrip, NewHome, NotificationEmail, OTPCodeInput, Offer, OfferAdventureCard, ParticipantCounter, ParticipantList, PartnerBookingCreatedEmail, PartnerRegistrationCompleteEmail, PaymentAmountSelector, PaymentDetailsBlock, PaymentMethodSelector, PaymentModalShell, PaymentReceiptEmail, PaymentReminderEmail, PhoneCountrySelect, PhotoGallery, Picture, PriceProgress, PricingMatrixCard, PricingTrip, RegistrationForm, RegistrationProgressBar, RegistrationReminderEmail, RegistrationReminderIndividualEmail, RegistrationSuccessCard, SegmentedControl, ShareWidget, SiteFooter, SiteHeader, StatusBadge2 as StatusBadge, StickyBookingCard, TERMS_ACCEPT_KEY, TermsSection, ThemeToggle, Toast, TransferDetailsBlock, TravellerFormInviteEmail, TripCard, TripHeader, TripPage, TrustpilotEmbed, USP, buttonVariants, chipVariants, cn, emailTokens, formatCpf, getStripeAppearance, itineraryDaySpecIcons, stripeAppearance, validateCpf, webpVariantUrl, wrapEmailHtml };
19102
+ 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 };
18793
19103
  //# sourceMappingURL=index.js.map
18794
19104
  //# sourceMappingURL=index.js.map