@planetaexo/design-system 0.40.0 → 0.42.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 +127 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +49 -6
- package/dist/index.d.ts +49 -6
- package/dist/index.js +127 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1094,8 +1094,12 @@ interface BookingSummaryRow {
|
|
|
1094
1094
|
valueColor?: string;
|
|
1095
1095
|
}
|
|
1096
1096
|
interface BookingSummaryProps {
|
|
1097
|
-
/**
|
|
1098
|
-
|
|
1097
|
+
/**
|
|
1098
|
+
* Heading do bloco (ex.: "Booking summary" ou "📝 Here's a quick summary of your booking:").
|
|
1099
|
+
* Opcional desde v0.38.0 — quando ausente/vazio, o consumer renderiza o heading externamente
|
|
1100
|
+
* (ex.: PaymentReceiptEmail injeta cards de aventura entre heading e tabela de totais).
|
|
1101
|
+
*/
|
|
1102
|
+
heading?: string;
|
|
1099
1103
|
/** Linhas do resumo. Cada par renderiza como (label | value) na tabela. */
|
|
1100
1104
|
rows: BookingSummaryRow[];
|
|
1101
1105
|
/**
|
|
@@ -1363,6 +1367,8 @@ interface PartnerConfirmationEmailExpectationRow {
|
|
|
1363
1367
|
interface PartnerConfirmationEmailProps {
|
|
1364
1368
|
scenario: "all_done" | "d_minus_7";
|
|
1365
1369
|
locale: "en" | "pt" | "fr" | "de";
|
|
1370
|
+
/** Aviso de topo opcional (banner âmbar). Texto já localizado pelo backend. */
|
|
1371
|
+
topNotice?: string | null;
|
|
1366
1372
|
partnerName: string;
|
|
1367
1373
|
bookingNumber: string;
|
|
1368
1374
|
adventureName: string;
|
|
@@ -1409,7 +1415,7 @@ interface PartnerConfirmationEmailLabels {
|
|
|
1409
1415
|
closingNoAgent?: string;
|
|
1410
1416
|
teamSignature?: string;
|
|
1411
1417
|
}
|
|
1412
|
-
declare function PartnerConfirmationEmail({ scenario, partnerName, bookingNumber, adventureName, dateRange, travellersCount, expectations, pdfAttached, agent, logoUrl, labels, className, }: PartnerConfirmationEmailProps): react_jsx_runtime.JSX.Element;
|
|
1418
|
+
declare function PartnerConfirmationEmail({ scenario, topNotice, partnerName, bookingNumber, adventureName, dateRange, travellersCount, expectations, pdfAttached, agent, logoUrl, labels, className, }: PartnerConfirmationEmailProps): react_jsx_runtime.JSX.Element;
|
|
1413
1419
|
|
|
1414
1420
|
interface PartnerBookingCreatedAgentContactLinks {
|
|
1415
1421
|
whatsappUrl?: string;
|
|
@@ -1417,6 +1423,8 @@ interface PartnerBookingCreatedAgentContactLinks {
|
|
|
1417
1423
|
}
|
|
1418
1424
|
interface PartnerBookingCreatedEmailProps {
|
|
1419
1425
|
locale: "en" | "pt" | "fr" | "de";
|
|
1426
|
+
/** Aviso de topo opcional (banner âmbar). Texto já localizado pelo backend. */
|
|
1427
|
+
topNotice?: string | null;
|
|
1420
1428
|
partnerName: string;
|
|
1421
1429
|
bookingNumber: string;
|
|
1422
1430
|
adventureName: string;
|
|
@@ -1452,17 +1460,28 @@ interface PartnerBookingCreatedEmailLabels {
|
|
|
1452
1460
|
bookerNameLabel?: string;
|
|
1453
1461
|
bookerEmailLabel?: string;
|
|
1454
1462
|
bookerPhoneLabel?: string;
|
|
1463
|
+
/** Aviso (linha 1) antes do closing — sempre visível. */
|
|
1464
|
+
registrationPendingNotice?: string;
|
|
1465
|
+
/** Aviso (linha 2, enfatizado) antes do closing — sempre visível. */
|
|
1466
|
+
mustReplyToConfirm?: string;
|
|
1455
1467
|
/** Closing principal quando há agente. Recebe nome + URLs e retorna JSX. */
|
|
1456
1468
|
closingAgent?: (agentName: string, contact: PartnerBookingCreatedAgentContactLinks) => React.ReactNode;
|
|
1457
1469
|
/** Closing alternativo sem agente. */
|
|
1458
1470
|
closingNoAgent?: string;
|
|
1459
1471
|
teamSignature?: string;
|
|
1460
1472
|
}
|
|
1461
|
-
declare function PartnerBookingCreatedEmail({ partnerName, bookingNumber, adventureName, dateRange, travellersCount, booker, agent, logoUrl, labels, className, }: PartnerBookingCreatedEmailProps): react_jsx_runtime.JSX.Element;
|
|
1473
|
+
declare function PartnerBookingCreatedEmail({ topNotice, partnerName, bookingNumber, adventureName, dateRange, travellersCount, booker, agent, logoUrl, labels, className, }: PartnerBookingCreatedEmailProps): react_jsx_runtime.JSX.Element;
|
|
1462
1474
|
|
|
1463
1475
|
interface PaymentReceiptEmailLabels {
|
|
1464
1476
|
logoAlt?: string;
|
|
1465
1477
|
greeting?: (name: string) => string;
|
|
1478
|
+
/**
|
|
1479
|
+
* Frase de contexto exibida entre o greeting e o `receiptHeading`.
|
|
1480
|
+
* Vazio (`""`) ou ausente omite o parágrafo — comportamento default.
|
|
1481
|
+
* Usado pelo Payment Receipt para reforçar "pagamento confirmado"
|
|
1482
|
+
* em paridade com o Booking Confirmation Email.
|
|
1483
|
+
*/
|
|
1484
|
+
introMessage?: string;
|
|
1466
1485
|
receiptHeading?: string;
|
|
1467
1486
|
bookingNumberLabel?: string;
|
|
1468
1487
|
paymentMethodLabel?: string;
|
|
@@ -1481,6 +1500,23 @@ interface PaymentReceiptEmailLabels {
|
|
|
1481
1500
|
closingMessage?: string;
|
|
1482
1501
|
teamSignature?: string;
|
|
1483
1502
|
}
|
|
1503
|
+
interface PaymentReceiptAdventureLineItem {
|
|
1504
|
+
/** Texto do lado esquerdo da linha (ex.: "R$ 1.500,00 (Adults) × 2"). */
|
|
1505
|
+
label: string;
|
|
1506
|
+
/** Total formatado da linha (ex.: "R$ 3.000,00"). */
|
|
1507
|
+
price: string;
|
|
1508
|
+
}
|
|
1509
|
+
/**
|
|
1510
|
+
* Aventura exibida no bloco "Booking summary" do Payment Receipt — versão enxuta
|
|
1511
|
+
* (nome + line items), distinta da `ConfirmationAdventure` do Booking Payment
|
|
1512
|
+
* Confirmation (que carrega imagem, viajantes, included/notIncluded, etc.).
|
|
1513
|
+
*
|
|
1514
|
+
* Spec payment-receipt-intro-and-adventure-items.
|
|
1515
|
+
*/
|
|
1516
|
+
interface PaymentReceiptAdventure {
|
|
1517
|
+
name: string;
|
|
1518
|
+
lineItems?: PaymentReceiptAdventureLineItem[];
|
|
1519
|
+
}
|
|
1484
1520
|
interface PaymentReceiptEmailProps {
|
|
1485
1521
|
/** Nome do destinatário (ex.: "Maria"). */
|
|
1486
1522
|
recipientName: string;
|
|
@@ -1508,6 +1544,13 @@ interface PaymentReceiptEmailProps {
|
|
|
1508
1544
|
balanceDueDate?: string;
|
|
1509
1545
|
/** Sinal: "totalPaid >= total - epsilon". Quando true, exibe banner verde. */
|
|
1510
1546
|
isPaidInFull: boolean;
|
|
1547
|
+
/**
|
|
1548
|
+
* Itens de aventura exibidos no bloco "Booking summary" (cards com nome +
|
|
1549
|
+
* tabela `label/price`). Quando vazio/undefined, a seção é omitida e o
|
|
1550
|
+
* recibo mantém o layout legado (apenas tabela de totais). Spec
|
|
1551
|
+
* payment-receipt-intro-and-adventure-items.
|
|
1552
|
+
*/
|
|
1553
|
+
adventures?: PaymentReceiptAdventure[];
|
|
1511
1554
|
/** URL da logo. Default: data URI embutido no pacote (via EmailLogo). */
|
|
1512
1555
|
logoUrl?: string;
|
|
1513
1556
|
/** Optional label overrides for i18n. */
|
|
@@ -1515,7 +1558,7 @@ interface PaymentReceiptEmailProps {
|
|
|
1515
1558
|
/** className adicional no container. */
|
|
1516
1559
|
className?: string;
|
|
1517
1560
|
}
|
|
1518
|
-
declare function PaymentReceiptEmail({ recipientName, bookingNumber, paymentMethodLabel, paymentDate, amount, chargedAmount, statusLabel, travellers, totalOrderAmount, totalPaidCumulative, remainingBalance, balanceDueDate, isPaidInFull, logoUrl, labels, className, }: PaymentReceiptEmailProps): react_jsx_runtime.JSX.Element;
|
|
1561
|
+
declare function PaymentReceiptEmail({ recipientName, bookingNumber, paymentMethodLabel, paymentDate, amount, chargedAmount, statusLabel, travellers, totalOrderAmount, totalPaidCumulative, remainingBalance, balanceDueDate, isPaidInFull, adventures, logoUrl, labels, className, }: PaymentReceiptEmailProps): react_jsx_runtime.JSX.Element;
|
|
1519
1562
|
|
|
1520
1563
|
/**
|
|
1521
1564
|
* Variante do lembrete:
|
|
@@ -3170,4 +3213,4 @@ declare function LeadCapturePopup({ config: _config, }: {
|
|
|
3170
3213
|
config: LeadCapturePopupConfig;
|
|
3171
3214
|
}): react_jsx_runtime.JSX.Element | null;
|
|
3172
3215
|
|
|
3173
|
-
export { ActivityCard, type ActivityCardProps, type ActivityCardSize, AgentContactCard, type AgentContactCardProps, Alert, type AlertProps, type AlertVariant, BirthDateField, type BirthDateFieldProps, type BookingAdventure, BookingAdventureCard, type BookingAdventureCardLabels, type BookingAdventureCardLineItem, type BookingAdventureCardProps, type BookingAdventureCardSlots, type BookingAdventureCardTraveller, BookingConfirmedCard, type BookingConfirmedCardProps, type BookingContact, BookingCreatedEmail, type BookingCreatedEmailLabels, type BookingCreatedEmailProps, type BookingDepositInfo, BookingDetails, type BookingDetailsLabels, type BookingDetailsProps, BookingForm, type BookingFormProps, type BookingFormValues, BookingOtpEmail, type BookingOtpEmailProps, BookingPaymentConfirmationEmail, type BookingPaymentConfirmationEmailLabels, type BookingPaymentConfirmationEmailProps, BookingShell, type BookingShellProps, type BookingStatus, BookingSummary, type BookingSummaryLineItem, type BookingSummaryProps, type BookingSummaryRow, type BookingTraveller, Button, type ButtonProps, COUNTRIES, type ConfirmationAdventure, type ConfirmationDepositInfo, type ConfirmationLineItem, type ConfirmationTraveller, CounterField, type CounterFieldProps, type CountryOption, CountrySearchField, type CountrySearchFieldProps, type CurrencyEstimate, DEFAULT_HEADER_LINKS, DEFAULT_LANGUAGES, DatePickerField, type DatePickerFieldProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, type EmailTokens, type FilterGroup, type FilterItem, FilterPanel, type FilterPanelProps, FloatingInput, type FloatingInputProps, FloatingSelect, type FloatingSelectProps, Itinerary, ItineraryDay, type ItineraryDayPhoto, type ItineraryDayPhotoLayout, type ItineraryDayProps, type ItineraryDaySpec, type ItineraryProps, type ItineraryRoute, type ItineraryStop, LOGO_PLANETAEXO_DATA_URI, LeadCapturePopup, type LeadCapturePopupConfig, MenuTrip, type MenuTripProps, type MenuTripSection, type MenuTripVariant, OTPCodeInput, type OTPCodeInputProps, Offer, OfferAdventureCard, type OfferAdventureItem, type OfferAgentInfo, type OfferConfirmedState, type OfferDepositInfo, type OfferLabels, type OfferOptionalItem, type OfferProps, type OfferSummaryLineItem, type PartnerBookingCreatedAgentContactLinks, PartnerBookingCreatedEmail, type PartnerBookingCreatedEmailLabels, type PartnerBookingCreatedEmailProps, type PartnerConfirmationAgentContactLinks, PartnerConfirmationEmail, type PartnerConfirmationEmailExpectationRow, type PartnerConfirmationEmailLabels, type PartnerConfirmationEmailProps, PaymentAmountSelector, type PaymentAmountSelectorProps, PaymentDetailsBlock, type PaymentDetailsBlockFooterBanner, type PaymentDetailsBlockLabels, type PaymentDetailsBlockProps, type PaymentDetailsBlockRow, type PaymentMethodOption, PaymentMethodSelector, type PaymentMethodSelectorProps, PaymentModalShell, type PaymentModalShellProps, PaymentReceiptEmail, type PaymentReceiptEmailLabels, type PaymentReceiptEmailProps, type PaymentReminderAgentContactLinks, PaymentReminderEmail, type PaymentReminderEmailAdventure, type PaymentReminderEmailLabels, type PaymentReminderEmailLineItem, type PaymentReminderEmailProps, type PaymentReminderEmailVariantLabels, type PaymentReminderVariant, PhoneCountrySelect, PhotoGallery, type PhotoGalleryPhoto, type PhotoGalleryProps, type PhotoGalleryVariant, PricingTrip, type PricingTripProps, type PricingTripVariant, type RegistrationAdventure, type RegistrationBooking, type RegistrationEmergencyContactValue, type RegistrationField, type RegistrationFieldOption, type RegistrationFieldType, type RegistrationFieldValue, RegistrationForm, type RegistrationFormLabels, type RegistrationFormProps, type RegistrationFormValues, type RegistrationNameValue, type RegistrationPhoneValue, RegistrationProgressBar, type RegistrationProgressBarProps, type RegistrationProgressTone, type RegistrationReminderAdventureBlock, type RegistrationReminderAgentContactLinks, RegistrationReminderEmail, type RegistrationReminderEmailLabels, type RegistrationReminderEmailProps, type RegistrationReminderEmailVariantLabels, type RegistrationReminderIndividualAgentContactLinks, RegistrationReminderIndividualEmail, type RegistrationReminderIndividualEmailLabels, type RegistrationReminderIndividualEmailProps, type RegistrationReminderIndividualRoute, type RegistrationReminderIndividualSlug, type RegistrationReminderIndividualVariantLabels, type RegistrationReminderSlug, RegistrationSuccessCard, type RegistrationSuccessCardProps, type RegistrationTerms, type RegistrationTraveller, SiteHeader, type SiteHeaderLanguage, type SiteHeaderLink, type SiteHeaderProps, type SiteHeaderSubItem, type SiteHeaderVariant, type StripeAppearance, type SuggestedTraveller, TERMS_ACCEPT_KEY, TermsSection, type TermsSectionProps, ThemeToggle, Toast, type ToastProps, type ToastVariant, TransferDetailsBlock, type TransferDetailsBlockProps, type TravellerFormConfig, type TravellerFormData, TravellerFormInviteEmail, type TravellerFormInviteEmailLabels, type TravellerFormInviteEmailProps, type TravellerFormInviteLink, type TravellerFormLabels, TripCard, type TripCardCta, type TripCardProps, type TripCardSize, type TripCardStatus, type TripDuration, type TripFaq, TripHeader, type TripHeaderProps, type TripHighlight, type TripInfoGroup, type TripItineraryDay, type TripItineraryStep, type TripMeetingPoint, type TripOverviewHighlight, TripPage, type TripPageProps, type TripReview, type TripTrustpilotWidget, TrustpilotEmbed, type TrustpilotWidgetConfig, buttonVariants, cn, emailTokens, getStripeAppearance, itineraryDaySpecIcons, stripeAppearance, wrapEmailHtml };
|
|
3216
|
+
export { ActivityCard, type ActivityCardProps, type ActivityCardSize, AgentContactCard, type AgentContactCardProps, Alert, type AlertProps, type AlertVariant, BirthDateField, type BirthDateFieldProps, type BookingAdventure, BookingAdventureCard, type BookingAdventureCardLabels, type BookingAdventureCardLineItem, type BookingAdventureCardProps, type BookingAdventureCardSlots, type BookingAdventureCardTraveller, BookingConfirmedCard, type BookingConfirmedCardProps, type BookingContact, BookingCreatedEmail, type BookingCreatedEmailLabels, type BookingCreatedEmailProps, type BookingDepositInfo, BookingDetails, type BookingDetailsLabels, type BookingDetailsProps, BookingForm, type BookingFormProps, type BookingFormValues, BookingOtpEmail, type BookingOtpEmailProps, BookingPaymentConfirmationEmail, type BookingPaymentConfirmationEmailLabels, type BookingPaymentConfirmationEmailProps, BookingShell, type BookingShellProps, type BookingStatus, BookingSummary, type BookingSummaryLineItem, type BookingSummaryProps, type BookingSummaryRow, type BookingTraveller, Button, type ButtonProps, COUNTRIES, type ConfirmationAdventure, type ConfirmationDepositInfo, type ConfirmationLineItem, type ConfirmationTraveller, CounterField, type CounterFieldProps, type CountryOption, CountrySearchField, type CountrySearchFieldProps, type CurrencyEstimate, DEFAULT_HEADER_LINKS, DEFAULT_LANGUAGES, DatePickerField, type DatePickerFieldProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, type EmailTokens, type FilterGroup, type FilterItem, FilterPanel, type FilterPanelProps, FloatingInput, type FloatingInputProps, FloatingSelect, type FloatingSelectProps, Itinerary, ItineraryDay, type ItineraryDayPhoto, type ItineraryDayPhotoLayout, type ItineraryDayProps, type ItineraryDaySpec, type ItineraryProps, type ItineraryRoute, type ItineraryStop, LOGO_PLANETAEXO_DATA_URI, LeadCapturePopup, type LeadCapturePopupConfig, MenuTrip, type MenuTripProps, type MenuTripSection, type MenuTripVariant, OTPCodeInput, type OTPCodeInputProps, Offer, OfferAdventureCard, type OfferAdventureItem, type OfferAgentInfo, type OfferConfirmedState, type OfferDepositInfo, type OfferLabels, type OfferOptionalItem, type OfferProps, type OfferSummaryLineItem, type PartnerBookingCreatedAgentContactLinks, PartnerBookingCreatedEmail, type PartnerBookingCreatedEmailLabels, type PartnerBookingCreatedEmailProps, type PartnerConfirmationAgentContactLinks, PartnerConfirmationEmail, type PartnerConfirmationEmailExpectationRow, type PartnerConfirmationEmailLabels, type PartnerConfirmationEmailProps, PaymentAmountSelector, type PaymentAmountSelectorProps, PaymentDetailsBlock, type PaymentDetailsBlockFooterBanner, type PaymentDetailsBlockLabels, type PaymentDetailsBlockProps, type PaymentDetailsBlockRow, type PaymentMethodOption, PaymentMethodSelector, type PaymentMethodSelectorProps, PaymentModalShell, type PaymentModalShellProps, type PaymentReceiptAdventure, type PaymentReceiptAdventureLineItem, PaymentReceiptEmail, type PaymentReceiptEmailLabels, type PaymentReceiptEmailProps, type PaymentReminderAgentContactLinks, PaymentReminderEmail, type PaymentReminderEmailAdventure, type PaymentReminderEmailLabels, type PaymentReminderEmailLineItem, type PaymentReminderEmailProps, type PaymentReminderEmailVariantLabels, type PaymentReminderVariant, PhoneCountrySelect, PhotoGallery, type PhotoGalleryPhoto, type PhotoGalleryProps, type PhotoGalleryVariant, PricingTrip, type PricingTripProps, type PricingTripVariant, type RegistrationAdventure, type RegistrationBooking, type RegistrationEmergencyContactValue, type RegistrationField, type RegistrationFieldOption, type RegistrationFieldType, type RegistrationFieldValue, RegistrationForm, type RegistrationFormLabels, type RegistrationFormProps, type RegistrationFormValues, type RegistrationNameValue, type RegistrationPhoneValue, RegistrationProgressBar, type RegistrationProgressBarProps, type RegistrationProgressTone, type RegistrationReminderAdventureBlock, type RegistrationReminderAgentContactLinks, RegistrationReminderEmail, type RegistrationReminderEmailLabels, type RegistrationReminderEmailProps, type RegistrationReminderEmailVariantLabels, type RegistrationReminderIndividualAgentContactLinks, RegistrationReminderIndividualEmail, type RegistrationReminderIndividualEmailLabels, type RegistrationReminderIndividualEmailProps, type RegistrationReminderIndividualRoute, type RegistrationReminderIndividualSlug, type RegistrationReminderIndividualVariantLabels, type RegistrationReminderSlug, RegistrationSuccessCard, type RegistrationSuccessCardProps, type RegistrationTerms, type RegistrationTraveller, SiteHeader, type SiteHeaderLanguage, type SiteHeaderLink, type SiteHeaderProps, type SiteHeaderSubItem, type SiteHeaderVariant, type StripeAppearance, type SuggestedTraveller, TERMS_ACCEPT_KEY, TermsSection, type TermsSectionProps, ThemeToggle, Toast, type ToastProps, type ToastVariant, TransferDetailsBlock, type TransferDetailsBlockProps, type TravellerFormConfig, type TravellerFormData, TravellerFormInviteEmail, type TravellerFormInviteEmailLabels, type TravellerFormInviteEmailProps, type TravellerFormInviteLink, type TravellerFormLabels, TripCard, type TripCardCta, type TripCardProps, type TripCardSize, type TripCardStatus, type TripDuration, type TripFaq, TripHeader, type TripHeaderProps, type TripHighlight, type TripInfoGroup, type TripItineraryDay, type TripItineraryStep, type TripMeetingPoint, type TripOverviewHighlight, TripPage, type TripPageProps, type TripReview, type TripTrustpilotWidget, TrustpilotEmbed, type TrustpilotWidgetConfig, buttonVariants, cn, emailTokens, getStripeAppearance, itineraryDaySpecIcons, stripeAppearance, wrapEmailHtml };
|
package/dist/index.d.ts
CHANGED
|
@@ -1094,8 +1094,12 @@ interface BookingSummaryRow {
|
|
|
1094
1094
|
valueColor?: string;
|
|
1095
1095
|
}
|
|
1096
1096
|
interface BookingSummaryProps {
|
|
1097
|
-
/**
|
|
1098
|
-
|
|
1097
|
+
/**
|
|
1098
|
+
* Heading do bloco (ex.: "Booking summary" ou "📝 Here's a quick summary of your booking:").
|
|
1099
|
+
* Opcional desde v0.38.0 — quando ausente/vazio, o consumer renderiza o heading externamente
|
|
1100
|
+
* (ex.: PaymentReceiptEmail injeta cards de aventura entre heading e tabela de totais).
|
|
1101
|
+
*/
|
|
1102
|
+
heading?: string;
|
|
1099
1103
|
/** Linhas do resumo. Cada par renderiza como (label | value) na tabela. */
|
|
1100
1104
|
rows: BookingSummaryRow[];
|
|
1101
1105
|
/**
|
|
@@ -1363,6 +1367,8 @@ interface PartnerConfirmationEmailExpectationRow {
|
|
|
1363
1367
|
interface PartnerConfirmationEmailProps {
|
|
1364
1368
|
scenario: "all_done" | "d_minus_7";
|
|
1365
1369
|
locale: "en" | "pt" | "fr" | "de";
|
|
1370
|
+
/** Aviso de topo opcional (banner âmbar). Texto já localizado pelo backend. */
|
|
1371
|
+
topNotice?: string | null;
|
|
1366
1372
|
partnerName: string;
|
|
1367
1373
|
bookingNumber: string;
|
|
1368
1374
|
adventureName: string;
|
|
@@ -1409,7 +1415,7 @@ interface PartnerConfirmationEmailLabels {
|
|
|
1409
1415
|
closingNoAgent?: string;
|
|
1410
1416
|
teamSignature?: string;
|
|
1411
1417
|
}
|
|
1412
|
-
declare function PartnerConfirmationEmail({ scenario, partnerName, bookingNumber, adventureName, dateRange, travellersCount, expectations, pdfAttached, agent, logoUrl, labels, className, }: PartnerConfirmationEmailProps): react_jsx_runtime.JSX.Element;
|
|
1418
|
+
declare function PartnerConfirmationEmail({ scenario, topNotice, partnerName, bookingNumber, adventureName, dateRange, travellersCount, expectations, pdfAttached, agent, logoUrl, labels, className, }: PartnerConfirmationEmailProps): react_jsx_runtime.JSX.Element;
|
|
1413
1419
|
|
|
1414
1420
|
interface PartnerBookingCreatedAgentContactLinks {
|
|
1415
1421
|
whatsappUrl?: string;
|
|
@@ -1417,6 +1423,8 @@ interface PartnerBookingCreatedAgentContactLinks {
|
|
|
1417
1423
|
}
|
|
1418
1424
|
interface PartnerBookingCreatedEmailProps {
|
|
1419
1425
|
locale: "en" | "pt" | "fr" | "de";
|
|
1426
|
+
/** Aviso de topo opcional (banner âmbar). Texto já localizado pelo backend. */
|
|
1427
|
+
topNotice?: string | null;
|
|
1420
1428
|
partnerName: string;
|
|
1421
1429
|
bookingNumber: string;
|
|
1422
1430
|
adventureName: string;
|
|
@@ -1452,17 +1460,28 @@ interface PartnerBookingCreatedEmailLabels {
|
|
|
1452
1460
|
bookerNameLabel?: string;
|
|
1453
1461
|
bookerEmailLabel?: string;
|
|
1454
1462
|
bookerPhoneLabel?: string;
|
|
1463
|
+
/** Aviso (linha 1) antes do closing — sempre visível. */
|
|
1464
|
+
registrationPendingNotice?: string;
|
|
1465
|
+
/** Aviso (linha 2, enfatizado) antes do closing — sempre visível. */
|
|
1466
|
+
mustReplyToConfirm?: string;
|
|
1455
1467
|
/** Closing principal quando há agente. Recebe nome + URLs e retorna JSX. */
|
|
1456
1468
|
closingAgent?: (agentName: string, contact: PartnerBookingCreatedAgentContactLinks) => React.ReactNode;
|
|
1457
1469
|
/** Closing alternativo sem agente. */
|
|
1458
1470
|
closingNoAgent?: string;
|
|
1459
1471
|
teamSignature?: string;
|
|
1460
1472
|
}
|
|
1461
|
-
declare function PartnerBookingCreatedEmail({ partnerName, bookingNumber, adventureName, dateRange, travellersCount, booker, agent, logoUrl, labels, className, }: PartnerBookingCreatedEmailProps): react_jsx_runtime.JSX.Element;
|
|
1473
|
+
declare function PartnerBookingCreatedEmail({ topNotice, partnerName, bookingNumber, adventureName, dateRange, travellersCount, booker, agent, logoUrl, labels, className, }: PartnerBookingCreatedEmailProps): react_jsx_runtime.JSX.Element;
|
|
1462
1474
|
|
|
1463
1475
|
interface PaymentReceiptEmailLabels {
|
|
1464
1476
|
logoAlt?: string;
|
|
1465
1477
|
greeting?: (name: string) => string;
|
|
1478
|
+
/**
|
|
1479
|
+
* Frase de contexto exibida entre o greeting e o `receiptHeading`.
|
|
1480
|
+
* Vazio (`""`) ou ausente omite o parágrafo — comportamento default.
|
|
1481
|
+
* Usado pelo Payment Receipt para reforçar "pagamento confirmado"
|
|
1482
|
+
* em paridade com o Booking Confirmation Email.
|
|
1483
|
+
*/
|
|
1484
|
+
introMessage?: string;
|
|
1466
1485
|
receiptHeading?: string;
|
|
1467
1486
|
bookingNumberLabel?: string;
|
|
1468
1487
|
paymentMethodLabel?: string;
|
|
@@ -1481,6 +1500,23 @@ interface PaymentReceiptEmailLabels {
|
|
|
1481
1500
|
closingMessage?: string;
|
|
1482
1501
|
teamSignature?: string;
|
|
1483
1502
|
}
|
|
1503
|
+
interface PaymentReceiptAdventureLineItem {
|
|
1504
|
+
/** Texto do lado esquerdo da linha (ex.: "R$ 1.500,00 (Adults) × 2"). */
|
|
1505
|
+
label: string;
|
|
1506
|
+
/** Total formatado da linha (ex.: "R$ 3.000,00"). */
|
|
1507
|
+
price: string;
|
|
1508
|
+
}
|
|
1509
|
+
/**
|
|
1510
|
+
* Aventura exibida no bloco "Booking summary" do Payment Receipt — versão enxuta
|
|
1511
|
+
* (nome + line items), distinta da `ConfirmationAdventure` do Booking Payment
|
|
1512
|
+
* Confirmation (que carrega imagem, viajantes, included/notIncluded, etc.).
|
|
1513
|
+
*
|
|
1514
|
+
* Spec payment-receipt-intro-and-adventure-items.
|
|
1515
|
+
*/
|
|
1516
|
+
interface PaymentReceiptAdventure {
|
|
1517
|
+
name: string;
|
|
1518
|
+
lineItems?: PaymentReceiptAdventureLineItem[];
|
|
1519
|
+
}
|
|
1484
1520
|
interface PaymentReceiptEmailProps {
|
|
1485
1521
|
/** Nome do destinatário (ex.: "Maria"). */
|
|
1486
1522
|
recipientName: string;
|
|
@@ -1508,6 +1544,13 @@ interface PaymentReceiptEmailProps {
|
|
|
1508
1544
|
balanceDueDate?: string;
|
|
1509
1545
|
/** Sinal: "totalPaid >= total - epsilon". Quando true, exibe banner verde. */
|
|
1510
1546
|
isPaidInFull: boolean;
|
|
1547
|
+
/**
|
|
1548
|
+
* Itens de aventura exibidos no bloco "Booking summary" (cards com nome +
|
|
1549
|
+
* tabela `label/price`). Quando vazio/undefined, a seção é omitida e o
|
|
1550
|
+
* recibo mantém o layout legado (apenas tabela de totais). Spec
|
|
1551
|
+
* payment-receipt-intro-and-adventure-items.
|
|
1552
|
+
*/
|
|
1553
|
+
adventures?: PaymentReceiptAdventure[];
|
|
1511
1554
|
/** URL da logo. Default: data URI embutido no pacote (via EmailLogo). */
|
|
1512
1555
|
logoUrl?: string;
|
|
1513
1556
|
/** Optional label overrides for i18n. */
|
|
@@ -1515,7 +1558,7 @@ interface PaymentReceiptEmailProps {
|
|
|
1515
1558
|
/** className adicional no container. */
|
|
1516
1559
|
className?: string;
|
|
1517
1560
|
}
|
|
1518
|
-
declare function PaymentReceiptEmail({ recipientName, bookingNumber, paymentMethodLabel, paymentDate, amount, chargedAmount, statusLabel, travellers, totalOrderAmount, totalPaidCumulative, remainingBalance, balanceDueDate, isPaidInFull, logoUrl, labels, className, }: PaymentReceiptEmailProps): react_jsx_runtime.JSX.Element;
|
|
1561
|
+
declare function PaymentReceiptEmail({ recipientName, bookingNumber, paymentMethodLabel, paymentDate, amount, chargedAmount, statusLabel, travellers, totalOrderAmount, totalPaidCumulative, remainingBalance, balanceDueDate, isPaidInFull, adventures, logoUrl, labels, className, }: PaymentReceiptEmailProps): react_jsx_runtime.JSX.Element;
|
|
1519
1562
|
|
|
1520
1563
|
/**
|
|
1521
1564
|
* Variante do lembrete:
|
|
@@ -3170,4 +3213,4 @@ declare function LeadCapturePopup({ config: _config, }: {
|
|
|
3170
3213
|
config: LeadCapturePopupConfig;
|
|
3171
3214
|
}): react_jsx_runtime.JSX.Element | null;
|
|
3172
3215
|
|
|
3173
|
-
export { ActivityCard, type ActivityCardProps, type ActivityCardSize, AgentContactCard, type AgentContactCardProps, Alert, type AlertProps, type AlertVariant, BirthDateField, type BirthDateFieldProps, type BookingAdventure, BookingAdventureCard, type BookingAdventureCardLabels, type BookingAdventureCardLineItem, type BookingAdventureCardProps, type BookingAdventureCardSlots, type BookingAdventureCardTraveller, BookingConfirmedCard, type BookingConfirmedCardProps, type BookingContact, BookingCreatedEmail, type BookingCreatedEmailLabels, type BookingCreatedEmailProps, type BookingDepositInfo, BookingDetails, type BookingDetailsLabels, type BookingDetailsProps, BookingForm, type BookingFormProps, type BookingFormValues, BookingOtpEmail, type BookingOtpEmailProps, BookingPaymentConfirmationEmail, type BookingPaymentConfirmationEmailLabels, type BookingPaymentConfirmationEmailProps, BookingShell, type BookingShellProps, type BookingStatus, BookingSummary, type BookingSummaryLineItem, type BookingSummaryProps, type BookingSummaryRow, type BookingTraveller, Button, type ButtonProps, COUNTRIES, type ConfirmationAdventure, type ConfirmationDepositInfo, type ConfirmationLineItem, type ConfirmationTraveller, CounterField, type CounterFieldProps, type CountryOption, CountrySearchField, type CountrySearchFieldProps, type CurrencyEstimate, DEFAULT_HEADER_LINKS, DEFAULT_LANGUAGES, DatePickerField, type DatePickerFieldProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, type EmailTokens, type FilterGroup, type FilterItem, FilterPanel, type FilterPanelProps, FloatingInput, type FloatingInputProps, FloatingSelect, type FloatingSelectProps, Itinerary, ItineraryDay, type ItineraryDayPhoto, type ItineraryDayPhotoLayout, type ItineraryDayProps, type ItineraryDaySpec, type ItineraryProps, type ItineraryRoute, type ItineraryStop, LOGO_PLANETAEXO_DATA_URI, LeadCapturePopup, type LeadCapturePopupConfig, MenuTrip, type MenuTripProps, type MenuTripSection, type MenuTripVariant, OTPCodeInput, type OTPCodeInputProps, Offer, OfferAdventureCard, type OfferAdventureItem, type OfferAgentInfo, type OfferConfirmedState, type OfferDepositInfo, type OfferLabels, type OfferOptionalItem, type OfferProps, type OfferSummaryLineItem, type PartnerBookingCreatedAgentContactLinks, PartnerBookingCreatedEmail, type PartnerBookingCreatedEmailLabels, type PartnerBookingCreatedEmailProps, type PartnerConfirmationAgentContactLinks, PartnerConfirmationEmail, type PartnerConfirmationEmailExpectationRow, type PartnerConfirmationEmailLabels, type PartnerConfirmationEmailProps, PaymentAmountSelector, type PaymentAmountSelectorProps, PaymentDetailsBlock, type PaymentDetailsBlockFooterBanner, type PaymentDetailsBlockLabels, type PaymentDetailsBlockProps, type PaymentDetailsBlockRow, type PaymentMethodOption, PaymentMethodSelector, type PaymentMethodSelectorProps, PaymentModalShell, type PaymentModalShellProps, PaymentReceiptEmail, type PaymentReceiptEmailLabels, type PaymentReceiptEmailProps, type PaymentReminderAgentContactLinks, PaymentReminderEmail, type PaymentReminderEmailAdventure, type PaymentReminderEmailLabels, type PaymentReminderEmailLineItem, type PaymentReminderEmailProps, type PaymentReminderEmailVariantLabels, type PaymentReminderVariant, PhoneCountrySelect, PhotoGallery, type PhotoGalleryPhoto, type PhotoGalleryProps, type PhotoGalleryVariant, PricingTrip, type PricingTripProps, type PricingTripVariant, type RegistrationAdventure, type RegistrationBooking, type RegistrationEmergencyContactValue, type RegistrationField, type RegistrationFieldOption, type RegistrationFieldType, type RegistrationFieldValue, RegistrationForm, type RegistrationFormLabels, type RegistrationFormProps, type RegistrationFormValues, type RegistrationNameValue, type RegistrationPhoneValue, RegistrationProgressBar, type RegistrationProgressBarProps, type RegistrationProgressTone, type RegistrationReminderAdventureBlock, type RegistrationReminderAgentContactLinks, RegistrationReminderEmail, type RegistrationReminderEmailLabels, type RegistrationReminderEmailProps, type RegistrationReminderEmailVariantLabels, type RegistrationReminderIndividualAgentContactLinks, RegistrationReminderIndividualEmail, type RegistrationReminderIndividualEmailLabels, type RegistrationReminderIndividualEmailProps, type RegistrationReminderIndividualRoute, type RegistrationReminderIndividualSlug, type RegistrationReminderIndividualVariantLabels, type RegistrationReminderSlug, RegistrationSuccessCard, type RegistrationSuccessCardProps, type RegistrationTerms, type RegistrationTraveller, SiteHeader, type SiteHeaderLanguage, type SiteHeaderLink, type SiteHeaderProps, type SiteHeaderSubItem, type SiteHeaderVariant, type StripeAppearance, type SuggestedTraveller, TERMS_ACCEPT_KEY, TermsSection, type TermsSectionProps, ThemeToggle, Toast, type ToastProps, type ToastVariant, TransferDetailsBlock, type TransferDetailsBlockProps, type TravellerFormConfig, type TravellerFormData, TravellerFormInviteEmail, type TravellerFormInviteEmailLabels, type TravellerFormInviteEmailProps, type TravellerFormInviteLink, type TravellerFormLabels, TripCard, type TripCardCta, type TripCardProps, type TripCardSize, type TripCardStatus, type TripDuration, type TripFaq, TripHeader, type TripHeaderProps, type TripHighlight, type TripInfoGroup, type TripItineraryDay, type TripItineraryStep, type TripMeetingPoint, type TripOverviewHighlight, TripPage, type TripPageProps, type TripReview, type TripTrustpilotWidget, TrustpilotEmbed, type TrustpilotWidgetConfig, buttonVariants, cn, emailTokens, getStripeAppearance, itineraryDaySpecIcons, stripeAppearance, wrapEmailHtml };
|
|
3216
|
+
export { ActivityCard, type ActivityCardProps, type ActivityCardSize, AgentContactCard, type AgentContactCardProps, Alert, type AlertProps, type AlertVariant, BirthDateField, type BirthDateFieldProps, type BookingAdventure, BookingAdventureCard, type BookingAdventureCardLabels, type BookingAdventureCardLineItem, type BookingAdventureCardProps, type BookingAdventureCardSlots, type BookingAdventureCardTraveller, BookingConfirmedCard, type BookingConfirmedCardProps, type BookingContact, BookingCreatedEmail, type BookingCreatedEmailLabels, type BookingCreatedEmailProps, type BookingDepositInfo, BookingDetails, type BookingDetailsLabels, type BookingDetailsProps, BookingForm, type BookingFormProps, type BookingFormValues, BookingOtpEmail, type BookingOtpEmailProps, BookingPaymentConfirmationEmail, type BookingPaymentConfirmationEmailLabels, type BookingPaymentConfirmationEmailProps, BookingShell, type BookingShellProps, type BookingStatus, BookingSummary, type BookingSummaryLineItem, type BookingSummaryProps, type BookingSummaryRow, type BookingTraveller, Button, type ButtonProps, COUNTRIES, type ConfirmationAdventure, type ConfirmationDepositInfo, type ConfirmationLineItem, type ConfirmationTraveller, CounterField, type CounterFieldProps, type CountryOption, CountrySearchField, type CountrySearchFieldProps, type CurrencyEstimate, DEFAULT_HEADER_LINKS, DEFAULT_LANGUAGES, DatePickerField, type DatePickerFieldProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, type EmailTokens, type FilterGroup, type FilterItem, FilterPanel, type FilterPanelProps, FloatingInput, type FloatingInputProps, FloatingSelect, type FloatingSelectProps, Itinerary, ItineraryDay, type ItineraryDayPhoto, type ItineraryDayPhotoLayout, type ItineraryDayProps, type ItineraryDaySpec, type ItineraryProps, type ItineraryRoute, type ItineraryStop, LOGO_PLANETAEXO_DATA_URI, LeadCapturePopup, type LeadCapturePopupConfig, MenuTrip, type MenuTripProps, type MenuTripSection, type MenuTripVariant, OTPCodeInput, type OTPCodeInputProps, Offer, OfferAdventureCard, type OfferAdventureItem, type OfferAgentInfo, type OfferConfirmedState, type OfferDepositInfo, type OfferLabels, type OfferOptionalItem, type OfferProps, type OfferSummaryLineItem, type PartnerBookingCreatedAgentContactLinks, PartnerBookingCreatedEmail, type PartnerBookingCreatedEmailLabels, type PartnerBookingCreatedEmailProps, type PartnerConfirmationAgentContactLinks, PartnerConfirmationEmail, type PartnerConfirmationEmailExpectationRow, type PartnerConfirmationEmailLabels, type PartnerConfirmationEmailProps, PaymentAmountSelector, type PaymentAmountSelectorProps, PaymentDetailsBlock, type PaymentDetailsBlockFooterBanner, type PaymentDetailsBlockLabels, type PaymentDetailsBlockProps, type PaymentDetailsBlockRow, type PaymentMethodOption, PaymentMethodSelector, type PaymentMethodSelectorProps, PaymentModalShell, type PaymentModalShellProps, type PaymentReceiptAdventure, type PaymentReceiptAdventureLineItem, PaymentReceiptEmail, type PaymentReceiptEmailLabels, type PaymentReceiptEmailProps, type PaymentReminderAgentContactLinks, PaymentReminderEmail, type PaymentReminderEmailAdventure, type PaymentReminderEmailLabels, type PaymentReminderEmailLineItem, type PaymentReminderEmailProps, type PaymentReminderEmailVariantLabels, type PaymentReminderVariant, PhoneCountrySelect, PhotoGallery, type PhotoGalleryPhoto, type PhotoGalleryProps, type PhotoGalleryVariant, PricingTrip, type PricingTripProps, type PricingTripVariant, type RegistrationAdventure, type RegistrationBooking, type RegistrationEmergencyContactValue, type RegistrationField, type RegistrationFieldOption, type RegistrationFieldType, type RegistrationFieldValue, RegistrationForm, type RegistrationFormLabels, type RegistrationFormProps, type RegistrationFormValues, type RegistrationNameValue, type RegistrationPhoneValue, RegistrationProgressBar, type RegistrationProgressBarProps, type RegistrationProgressTone, type RegistrationReminderAdventureBlock, type RegistrationReminderAgentContactLinks, RegistrationReminderEmail, type RegistrationReminderEmailLabels, type RegistrationReminderEmailProps, type RegistrationReminderEmailVariantLabels, type RegistrationReminderIndividualAgentContactLinks, RegistrationReminderIndividualEmail, type RegistrationReminderIndividualEmailLabels, type RegistrationReminderIndividualEmailProps, type RegistrationReminderIndividualRoute, type RegistrationReminderIndividualSlug, type RegistrationReminderIndividualVariantLabels, type RegistrationReminderSlug, RegistrationSuccessCard, type RegistrationSuccessCardProps, type RegistrationTerms, type RegistrationTraveller, SiteHeader, type SiteHeaderLanguage, type SiteHeaderLink, type SiteHeaderProps, type SiteHeaderSubItem, type SiteHeaderVariant, type StripeAppearance, type SuggestedTraveller, TERMS_ACCEPT_KEY, TermsSection, type TermsSectionProps, ThemeToggle, Toast, type ToastProps, type ToastVariant, TransferDetailsBlock, type TransferDetailsBlockProps, type TravellerFormConfig, type TravellerFormData, TravellerFormInviteEmail, type TravellerFormInviteEmailLabels, type TravellerFormInviteEmailProps, type TravellerFormInviteLink, type TravellerFormLabels, TripCard, type TripCardCta, type TripCardProps, type TripCardSize, type TripCardStatus, type TripDuration, type TripFaq, TripHeader, type TripHeaderProps, type TripHighlight, type TripInfoGroup, type TripItineraryDay, type TripItineraryStep, type TripMeetingPoint, type TripOverviewHighlight, TripPage, type TripPageProps, type TripReview, type TripTrustpilotWidget, TrustpilotEmbed, type TrustpilotWidgetConfig, buttonVariants, cn, emailTokens, getStripeAppearance, itineraryDaySpecIcons, stripeAppearance, wrapEmailHtml };
|
package/dist/index.js
CHANGED
|
@@ -4576,7 +4576,7 @@ function BookingAdventureCard({
|
|
|
4576
4576
|
function BookingSummary({ heading, rows, footer, className }) {
|
|
4577
4577
|
var _a, _b;
|
|
4578
4578
|
return /* @__PURE__ */ jsxs("div", { className, style: { marginBottom: "24px" }, children: [
|
|
4579
|
-
/* @__PURE__ */ jsx(
|
|
4579
|
+
heading && /* @__PURE__ */ jsx(
|
|
4580
4580
|
"p",
|
|
4581
4581
|
{
|
|
4582
4582
|
style: {
|
|
@@ -5832,6 +5832,7 @@ function hasText3(s) {
|
|
|
5832
5832
|
}
|
|
5833
5833
|
function PartnerConfirmationEmail({
|
|
5834
5834
|
scenario,
|
|
5835
|
+
topNotice,
|
|
5835
5836
|
partnerName,
|
|
5836
5837
|
bookingNumber,
|
|
5837
5838
|
adventureName,
|
|
@@ -5883,6 +5884,21 @@ function PartnerConfirmationEmail({
|
|
|
5883
5884
|
className,
|
|
5884
5885
|
children: [
|
|
5885
5886
|
/* @__PURE__ */ jsx(EmailLogo, { src: logoUrl, alt: l.logoAlt }),
|
|
5887
|
+
hasText3(topNotice) && /* @__PURE__ */ jsx(
|
|
5888
|
+
"div",
|
|
5889
|
+
{
|
|
5890
|
+
style: {
|
|
5891
|
+
padding: "12px 16px",
|
|
5892
|
+
borderRadius: 8,
|
|
5893
|
+
backgroundColor: "#fef3c7",
|
|
5894
|
+
color: "#78350f",
|
|
5895
|
+
fontWeight: 600,
|
|
5896
|
+
fontSize: "14px",
|
|
5897
|
+
marginBottom: "20px"
|
|
5898
|
+
},
|
|
5899
|
+
children: topNotice
|
|
5900
|
+
}
|
|
5901
|
+
),
|
|
5886
5902
|
/* @__PURE__ */ jsx("p", { style: { marginBottom: "16px" }, children: l.greeting(partnerName) }),
|
|
5887
5903
|
/* @__PURE__ */ jsx("p", { style: { marginBottom: "16px" }, children: introText }),
|
|
5888
5904
|
/* @__PURE__ */ jsx("p", { style: { marginBottom: "24px", fontWeight: 600 }, children: l.travellersCountLine(travellersCount) }),
|
|
@@ -5988,6 +6004,8 @@ var DEFAULT_LABELS8 = {
|
|
|
5988
6004
|
bookerNameLabel: "Name",
|
|
5989
6005
|
bookerEmailLabel: "Email",
|
|
5990
6006
|
bookerPhoneLabel: "Phone",
|
|
6007
|
+
registrationPendingNotice: "The travellers' registration details will be sent to you as soon as all travellers have completed their forms.",
|
|
6008
|
+
mustReplyToConfirm: "Please reply to this email to confirm the booking.",
|
|
5991
6009
|
closingAgent: (agentName, contact) => /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
5992
6010
|
"If you have any questions, your contact ",
|
|
5993
6011
|
agentName,
|
|
@@ -6002,6 +6020,7 @@ var DEFAULT_LABELS8 = {
|
|
|
6002
6020
|
teamSignature: "The PlanetaEXO Team"
|
|
6003
6021
|
};
|
|
6004
6022
|
function PartnerBookingCreatedEmail({
|
|
6023
|
+
topNotice,
|
|
6005
6024
|
partnerName,
|
|
6006
6025
|
bookingNumber,
|
|
6007
6026
|
adventureName,
|
|
@@ -6060,6 +6079,21 @@ function PartnerBookingCreatedEmail({
|
|
|
6060
6079
|
className,
|
|
6061
6080
|
children: [
|
|
6062
6081
|
/* @__PURE__ */ jsx(EmailLogo, { src: logoUrl, alt: l.logoAlt }),
|
|
6082
|
+
hasText4(topNotice) && /* @__PURE__ */ jsx(
|
|
6083
|
+
"div",
|
|
6084
|
+
{
|
|
6085
|
+
style: {
|
|
6086
|
+
padding: "12px 16px",
|
|
6087
|
+
borderRadius: 8,
|
|
6088
|
+
backgroundColor: "#fef3c7",
|
|
6089
|
+
color: "#78350f",
|
|
6090
|
+
fontWeight: 600,
|
|
6091
|
+
fontSize: "14px",
|
|
6092
|
+
marginBottom: "20px"
|
|
6093
|
+
},
|
|
6094
|
+
children: topNotice
|
|
6095
|
+
}
|
|
6096
|
+
),
|
|
6063
6097
|
/* @__PURE__ */ jsx("p", { style: { marginBottom: "16px" }, children: l.greeting(partnerName) }),
|
|
6064
6098
|
/* @__PURE__ */ jsx("p", { style: { marginBottom: "24px" }, children: l.intro(adventureName) }),
|
|
6065
6099
|
sectionDivider,
|
|
@@ -6136,6 +6170,27 @@ function PartnerBookingCreatedEmail({
|
|
|
6136
6170
|
}
|
|
6137
6171
|
),
|
|
6138
6172
|
sectionDivider,
|
|
6173
|
+
/* @__PURE__ */ jsxs(
|
|
6174
|
+
"div",
|
|
6175
|
+
{
|
|
6176
|
+
style: {
|
|
6177
|
+
padding: "16px 20px",
|
|
6178
|
+
borderRadius: 8,
|
|
6179
|
+
border: "2px solid #f59e0b",
|
|
6180
|
+
backgroundColor: "#fef3c7",
|
|
6181
|
+
color: "#78350f",
|
|
6182
|
+
fontSize: "14px",
|
|
6183
|
+
marginBottom: "16px"
|
|
6184
|
+
},
|
|
6185
|
+
children: [
|
|
6186
|
+
/* @__PURE__ */ jsx("p", { style: { margin: 0, marginBottom: "10px", lineHeight: 1.5 }, children: l.registrationPendingNotice }),
|
|
6187
|
+
/* @__PURE__ */ jsxs("p", { style: { margin: 0, fontWeight: 700, fontSize: "15px", lineHeight: 1.5 }, children: [
|
|
6188
|
+
"\u26A0\uFE0F ",
|
|
6189
|
+
l.mustReplyToConfirm
|
|
6190
|
+
] })
|
|
6191
|
+
]
|
|
6192
|
+
}
|
|
6193
|
+
),
|
|
6139
6194
|
/* @__PURE__ */ jsx("p", { style: { marginBottom: "16px", fontSize: "14px", fontWeight: 700, color: emailTokens.bodyText }, children: (agent == null ? void 0 : agent.name) ? l.closingAgent(agent.name, {
|
|
6140
6195
|
whatsappUrl: agent.whatsappUrl,
|
|
6141
6196
|
email: agent.email
|
|
@@ -6148,6 +6203,7 @@ function PartnerBookingCreatedEmail({
|
|
|
6148
6203
|
var DEFAULT_LABELS9 = {
|
|
6149
6204
|
logoAlt: "PlanetaEXO",
|
|
6150
6205
|
greeting: (name) => `Hi ${name},`,
|
|
6206
|
+
introMessage: "",
|
|
6151
6207
|
receiptHeading: "Payment receipt",
|
|
6152
6208
|
bookingNumberLabel: "Booking number",
|
|
6153
6209
|
paymentMethodLabel: "Payment method",
|
|
@@ -6180,6 +6236,7 @@ function PaymentReceiptEmail({
|
|
|
6180
6236
|
remainingBalance,
|
|
6181
6237
|
balanceDueDate,
|
|
6182
6238
|
isPaidInFull,
|
|
6239
|
+
adventures,
|
|
6183
6240
|
logoUrl,
|
|
6184
6241
|
labels,
|
|
6185
6242
|
className
|
|
@@ -6222,6 +6279,7 @@ function PaymentReceiptEmail({
|
|
|
6222
6279
|
children: [
|
|
6223
6280
|
/* @__PURE__ */ jsx(EmailLogo, { src: logoUrl, alt: l.logoAlt }),
|
|
6224
6281
|
/* @__PURE__ */ jsx("p", { style: { marginBottom: "16px" }, children: l.greeting(recipientName) }),
|
|
6282
|
+
l.introMessage && /* @__PURE__ */ jsx("p", { style: { marginBottom: "16px" }, children: l.introMessage }),
|
|
6225
6283
|
/* @__PURE__ */ jsx("p", { style: { marginBottom: "12px", fontWeight: 700, color: emailTokens.foreground, fontSize: "16px" }, children: l.receiptHeading }),
|
|
6226
6284
|
/* @__PURE__ */ jsx(
|
|
6227
6285
|
"div",
|
|
@@ -6241,10 +6299,77 @@ function PaymentReceiptEmail({
|
|
|
6241
6299
|
] }) })
|
|
6242
6300
|
}
|
|
6243
6301
|
),
|
|
6302
|
+
/* @__PURE__ */ jsx(
|
|
6303
|
+
"p",
|
|
6304
|
+
{
|
|
6305
|
+
style: {
|
|
6306
|
+
marginTop: 0,
|
|
6307
|
+
marginBottom: "20px",
|
|
6308
|
+
fontWeight: 700,
|
|
6309
|
+
color: emailTokens.foreground,
|
|
6310
|
+
fontSize: "18px",
|
|
6311
|
+
fontFamily: emailTokens.fontFamily
|
|
6312
|
+
},
|
|
6313
|
+
children: l.summaryHeading
|
|
6314
|
+
}
|
|
6315
|
+
),
|
|
6316
|
+
adventures && adventures.length > 0 && /* @__PURE__ */ jsx("div", { style: { marginBottom: "16px" }, children: adventures.map((adv, i) => /* @__PURE__ */ jsxs(
|
|
6317
|
+
"div",
|
|
6318
|
+
{
|
|
6319
|
+
style: {
|
|
6320
|
+
borderRadius: "12px",
|
|
6321
|
+
border: `1px solid ${emailTokens.border}`,
|
|
6322
|
+
overflow: "hidden",
|
|
6323
|
+
marginBottom: "12px"
|
|
6324
|
+
},
|
|
6325
|
+
children: [
|
|
6326
|
+
/* @__PURE__ */ jsx(
|
|
6327
|
+
"div",
|
|
6328
|
+
{
|
|
6329
|
+
style: {
|
|
6330
|
+
padding: "12px 20px",
|
|
6331
|
+
backgroundColor: emailTokens.muted,
|
|
6332
|
+
fontWeight: 600,
|
|
6333
|
+
color: emailTokens.foreground,
|
|
6334
|
+
fontSize: "14px"
|
|
6335
|
+
},
|
|
6336
|
+
children: adv.name
|
|
6337
|
+
}
|
|
6338
|
+
),
|
|
6339
|
+
adv.lineItems && adv.lineItems.length > 0 && /* @__PURE__ */ jsx("table", { style: { width: "100%", fontSize: "14px", borderCollapse: "collapse" }, children: /* @__PURE__ */ jsx("tbody", { children: adv.lineItems.map((li, j) => /* @__PURE__ */ jsxs("tr", { style: j > 0 ? { borderTop: `1px solid ${emailTokens.border}` } : {}, children: [
|
|
6340
|
+
/* @__PURE__ */ jsx(
|
|
6341
|
+
"td",
|
|
6342
|
+
{
|
|
6343
|
+
style: {
|
|
6344
|
+
padding: "10px 20px",
|
|
6345
|
+
color: emailTokens.mutedForeground,
|
|
6346
|
+
verticalAlign: "top"
|
|
6347
|
+
},
|
|
6348
|
+
children: li.label
|
|
6349
|
+
}
|
|
6350
|
+
),
|
|
6351
|
+
/* @__PURE__ */ jsx(
|
|
6352
|
+
"td",
|
|
6353
|
+
{
|
|
6354
|
+
style: {
|
|
6355
|
+
padding: "10px 20px",
|
|
6356
|
+
textAlign: "right",
|
|
6357
|
+
fontWeight: 500,
|
|
6358
|
+
color: emailTokens.foreground,
|
|
6359
|
+
verticalAlign: "top",
|
|
6360
|
+
whiteSpace: "nowrap"
|
|
6361
|
+
},
|
|
6362
|
+
children: li.price
|
|
6363
|
+
}
|
|
6364
|
+
)
|
|
6365
|
+
] }, j)) }) })
|
|
6366
|
+
]
|
|
6367
|
+
},
|
|
6368
|
+
i
|
|
6369
|
+
)) }),
|
|
6244
6370
|
/* @__PURE__ */ jsx(
|
|
6245
6371
|
BookingSummary,
|
|
6246
6372
|
{
|
|
6247
|
-
heading: l.summaryHeading,
|
|
6248
6373
|
rows: summaryRows,
|
|
6249
6374
|
footer: isPaidInFull ? {
|
|
6250
6375
|
text: l.paidInFullMessage,
|