@planetaexo/design-system 0.37.5 → 0.38.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 +202 -27
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +62 -1
- package/dist/index.d.ts +62 -1
- package/dist/index.js +202 -28
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -450,6 +450,8 @@ interface BookingDetailsLabels {
|
|
|
450
450
|
/** Botão "Add contact as traveller" / "Add contact". */
|
|
451
451
|
addContactAsTraveller?: string;
|
|
452
452
|
addContactAsTravellerShort?: string;
|
|
453
|
+
/** Tooltip (title nativo) exibido quando o botão está desabilitado por contato já adicionado. */
|
|
454
|
+
addContactAsTravellerDisabledTooltip?: string;
|
|
453
455
|
/** Badge inline "Child". */
|
|
454
456
|
childBadge?: string;
|
|
455
457
|
/** Status do traveller (mostrado como badge). */
|
|
@@ -1350,6 +1352,65 @@ interface RegistrationReminderIndividualEmailProps {
|
|
|
1350
1352
|
}
|
|
1351
1353
|
declare function RegistrationReminderIndividualEmail({ slug, recipientFirstName, travellerFirstName, leadTravellerName, leadTravellerFirstName, bookingNumber, adventureName, startDateFormatted, partnerName, ctaUrl, route, agent, logoUrl, labels, className, }: RegistrationReminderIndividualEmailProps): react_jsx_runtime.JSX.Element;
|
|
1352
1354
|
|
|
1355
|
+
interface PartnerConfirmationAgentContactLinks {
|
|
1356
|
+
whatsappUrl?: string;
|
|
1357
|
+
email?: string;
|
|
1358
|
+
}
|
|
1359
|
+
interface PartnerConfirmationEmailExpectationRow {
|
|
1360
|
+
travellerName: string;
|
|
1361
|
+
answer: string | null;
|
|
1362
|
+
}
|
|
1363
|
+
interface PartnerConfirmationEmailProps {
|
|
1364
|
+
scenario: "all_done" | "d_minus_7";
|
|
1365
|
+
locale: "en" | "pt" | "fr" | "de";
|
|
1366
|
+
partnerName: string;
|
|
1367
|
+
bookingNumber: string;
|
|
1368
|
+
adventureName: string;
|
|
1369
|
+
/** Já formatado pelo backend (ex.: "12 May 2026 – 18 May 2026"). */
|
|
1370
|
+
dateRange: string;
|
|
1371
|
+
travellersCount: number;
|
|
1372
|
+
/** Seção Travellers Expectations. hasSection=false → nenhum campo marcado no form. */
|
|
1373
|
+
expectations: {
|
|
1374
|
+
hasSection: boolean;
|
|
1375
|
+
rows: PartnerConfirmationEmailExpectationRow[];
|
|
1376
|
+
};
|
|
1377
|
+
pdfAttached: boolean;
|
|
1378
|
+
agent: {
|
|
1379
|
+
name: string;
|
|
1380
|
+
whatsappUrl?: string;
|
|
1381
|
+
email?: string;
|
|
1382
|
+
} | null;
|
|
1383
|
+
logoUrl?: string;
|
|
1384
|
+
labels?: PartnerConfirmationEmailLabels;
|
|
1385
|
+
className?: string;
|
|
1386
|
+
}
|
|
1387
|
+
interface PartnerConfirmationEmailLabels {
|
|
1388
|
+
logoAlt?: string;
|
|
1389
|
+
greeting?: (partnerName: string) => string;
|
|
1390
|
+
/** Cenário 1 (all_done). Recebe (adventureName, dateRange). */
|
|
1391
|
+
introAllDone?: (adventureName: string, dateRange: string) => string;
|
|
1392
|
+
/** Cenário 2 (d_minus_7 — lembrete D-7). Recebe (adventureName, dateRange). */
|
|
1393
|
+
introD7?: (adventureName: string, dateRange: string) => string;
|
|
1394
|
+
travellersCountLine?: (n: number) => string;
|
|
1395
|
+
tripDetailsHeader?: string;
|
|
1396
|
+
bookingNumberLabel?: string;
|
|
1397
|
+
adventureLabel?: string;
|
|
1398
|
+
datesLabel?: string;
|
|
1399
|
+
partnerLabel?: string;
|
|
1400
|
+
expectationsHeading?: string;
|
|
1401
|
+
/** Quando hasSection=false OU rows vazio. */
|
|
1402
|
+
expectationsEmptyNote?: string;
|
|
1403
|
+
/** "—" quando answer == null. */
|
|
1404
|
+
expectationsEmptyAnswer?: string;
|
|
1405
|
+
pdfNote?: string;
|
|
1406
|
+
/** Closing principal quando há agente. Recebe nome + URLs e retorna JSX. */
|
|
1407
|
+
closingAgent?: (agentName: string, contact: PartnerConfirmationAgentContactLinks) => React.ReactNode;
|
|
1408
|
+
/** Closing alternativo sem agente. */
|
|
1409
|
+
closingNoAgent?: string;
|
|
1410
|
+
teamSignature?: string;
|
|
1411
|
+
}
|
|
1412
|
+
declare function PartnerConfirmationEmail({ scenario, partnerName, bookingNumber, adventureName, dateRange, travellersCount, expectations, pdfAttached, agent, logoUrl, labels, className, }: PartnerConfirmationEmailProps): react_jsx_runtime.JSX.Element;
|
|
1413
|
+
|
|
1353
1414
|
interface PaymentReceiptEmailLabels {
|
|
1354
1415
|
logoAlt?: string;
|
|
1355
1416
|
greeting?: (name: string) => string;
|
|
@@ -3057,4 +3118,4 @@ declare function LeadCapturePopup({ config: _config, }: {
|
|
|
3057
3118
|
config: LeadCapturePopupConfig;
|
|
3058
3119
|
}): react_jsx_runtime.JSX.Element | null;
|
|
3059
3120
|
|
|
3060
|
-
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, 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 };
|
|
3121
|
+
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 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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -450,6 +450,8 @@ interface BookingDetailsLabels {
|
|
|
450
450
|
/** Botão "Add contact as traveller" / "Add contact". */
|
|
451
451
|
addContactAsTraveller?: string;
|
|
452
452
|
addContactAsTravellerShort?: string;
|
|
453
|
+
/** Tooltip (title nativo) exibido quando o botão está desabilitado por contato já adicionado. */
|
|
454
|
+
addContactAsTravellerDisabledTooltip?: string;
|
|
453
455
|
/** Badge inline "Child". */
|
|
454
456
|
childBadge?: string;
|
|
455
457
|
/** Status do traveller (mostrado como badge). */
|
|
@@ -1350,6 +1352,65 @@ interface RegistrationReminderIndividualEmailProps {
|
|
|
1350
1352
|
}
|
|
1351
1353
|
declare function RegistrationReminderIndividualEmail({ slug, recipientFirstName, travellerFirstName, leadTravellerName, leadTravellerFirstName, bookingNumber, adventureName, startDateFormatted, partnerName, ctaUrl, route, agent, logoUrl, labels, className, }: RegistrationReminderIndividualEmailProps): react_jsx_runtime.JSX.Element;
|
|
1352
1354
|
|
|
1355
|
+
interface PartnerConfirmationAgentContactLinks {
|
|
1356
|
+
whatsappUrl?: string;
|
|
1357
|
+
email?: string;
|
|
1358
|
+
}
|
|
1359
|
+
interface PartnerConfirmationEmailExpectationRow {
|
|
1360
|
+
travellerName: string;
|
|
1361
|
+
answer: string | null;
|
|
1362
|
+
}
|
|
1363
|
+
interface PartnerConfirmationEmailProps {
|
|
1364
|
+
scenario: "all_done" | "d_minus_7";
|
|
1365
|
+
locale: "en" | "pt" | "fr" | "de";
|
|
1366
|
+
partnerName: string;
|
|
1367
|
+
bookingNumber: string;
|
|
1368
|
+
adventureName: string;
|
|
1369
|
+
/** Já formatado pelo backend (ex.: "12 May 2026 – 18 May 2026"). */
|
|
1370
|
+
dateRange: string;
|
|
1371
|
+
travellersCount: number;
|
|
1372
|
+
/** Seção Travellers Expectations. hasSection=false → nenhum campo marcado no form. */
|
|
1373
|
+
expectations: {
|
|
1374
|
+
hasSection: boolean;
|
|
1375
|
+
rows: PartnerConfirmationEmailExpectationRow[];
|
|
1376
|
+
};
|
|
1377
|
+
pdfAttached: boolean;
|
|
1378
|
+
agent: {
|
|
1379
|
+
name: string;
|
|
1380
|
+
whatsappUrl?: string;
|
|
1381
|
+
email?: string;
|
|
1382
|
+
} | null;
|
|
1383
|
+
logoUrl?: string;
|
|
1384
|
+
labels?: PartnerConfirmationEmailLabels;
|
|
1385
|
+
className?: string;
|
|
1386
|
+
}
|
|
1387
|
+
interface PartnerConfirmationEmailLabels {
|
|
1388
|
+
logoAlt?: string;
|
|
1389
|
+
greeting?: (partnerName: string) => string;
|
|
1390
|
+
/** Cenário 1 (all_done). Recebe (adventureName, dateRange). */
|
|
1391
|
+
introAllDone?: (adventureName: string, dateRange: string) => string;
|
|
1392
|
+
/** Cenário 2 (d_minus_7 — lembrete D-7). Recebe (adventureName, dateRange). */
|
|
1393
|
+
introD7?: (adventureName: string, dateRange: string) => string;
|
|
1394
|
+
travellersCountLine?: (n: number) => string;
|
|
1395
|
+
tripDetailsHeader?: string;
|
|
1396
|
+
bookingNumberLabel?: string;
|
|
1397
|
+
adventureLabel?: string;
|
|
1398
|
+
datesLabel?: string;
|
|
1399
|
+
partnerLabel?: string;
|
|
1400
|
+
expectationsHeading?: string;
|
|
1401
|
+
/** Quando hasSection=false OU rows vazio. */
|
|
1402
|
+
expectationsEmptyNote?: string;
|
|
1403
|
+
/** "—" quando answer == null. */
|
|
1404
|
+
expectationsEmptyAnswer?: string;
|
|
1405
|
+
pdfNote?: string;
|
|
1406
|
+
/** Closing principal quando há agente. Recebe nome + URLs e retorna JSX. */
|
|
1407
|
+
closingAgent?: (agentName: string, contact: PartnerConfirmationAgentContactLinks) => React.ReactNode;
|
|
1408
|
+
/** Closing alternativo sem agente. */
|
|
1409
|
+
closingNoAgent?: string;
|
|
1410
|
+
teamSignature?: string;
|
|
1411
|
+
}
|
|
1412
|
+
declare function PartnerConfirmationEmail({ scenario, partnerName, bookingNumber, adventureName, dateRange, travellersCount, expectations, pdfAttached, agent, logoUrl, labels, className, }: PartnerConfirmationEmailProps): react_jsx_runtime.JSX.Element;
|
|
1413
|
+
|
|
1353
1414
|
interface PaymentReceiptEmailLabels {
|
|
1354
1415
|
logoAlt?: string;
|
|
1355
1416
|
greeting?: (name: string) => string;
|
|
@@ -3057,4 +3118,4 @@ declare function LeadCapturePopup({ config: _config, }: {
|
|
|
3057
3118
|
config: LeadCapturePopupConfig;
|
|
3058
3119
|
}): react_jsx_runtime.JSX.Element | null;
|
|
3059
3120
|
|
|
3060
|
-
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, 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 };
|
|
3121
|
+
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 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 };
|
package/dist/index.js
CHANGED
|
@@ -2783,6 +2783,7 @@ function AdventureSection({
|
|
|
2783
2783
|
type: "button",
|
|
2784
2784
|
onClick: () => onAddContactAsTraveller(adventure.id),
|
|
2785
2785
|
disabled: adventure.addContactAsTravellerDisabled,
|
|
2786
|
+
title: adventure.addContactAsTravellerDisabled ? labels == null ? void 0 : labels.addContactAsTravellerDisabledTooltip : void 0,
|
|
2786
2787
|
className: cn(
|
|
2787
2788
|
"flex items-center gap-1.5 rounded-full border border-border px-3 py-1.5 text-xs font-ui text-muted-foreground transition-colors",
|
|
2788
2789
|
"hover:border-primary hover:text-primary hover:bg-primary/5",
|
|
@@ -5782,7 +5783,180 @@ function RegistrationReminderIndividualEmail({
|
|
|
5782
5783
|
}
|
|
5783
5784
|
);
|
|
5784
5785
|
}
|
|
5786
|
+
var INLINE_LINK_STYLE3 = {
|
|
5787
|
+
color: emailTokens.primary,
|
|
5788
|
+
textDecoration: "underline"
|
|
5789
|
+
};
|
|
5790
|
+
function renderWhatsappLink3(contact, label) {
|
|
5791
|
+
if (contact.whatsappUrl) {
|
|
5792
|
+
return /* @__PURE__ */ jsx("a", { href: contact.whatsappUrl, style: INLINE_LINK_STYLE3, children: label });
|
|
5793
|
+
}
|
|
5794
|
+
return label;
|
|
5795
|
+
}
|
|
5796
|
+
function renderEmailLink3(contact, label) {
|
|
5797
|
+
if (contact.email) {
|
|
5798
|
+
return /* @__PURE__ */ jsx("a", { href: `mailto:${contact.email}`, style: INLINE_LINK_STYLE3, children: label });
|
|
5799
|
+
}
|
|
5800
|
+
return label;
|
|
5801
|
+
}
|
|
5785
5802
|
var DEFAULT_LABELS7 = {
|
|
5803
|
+
logoAlt: "PlanetaEXO",
|
|
5804
|
+
greeting: (n) => `Hi ${n},`,
|
|
5805
|
+
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.`,
|
|
5806
|
+
introD7: (adv, dr) => `Your upcoming adventure ${adv} (${dr}) starts in one week. All travellers have completed their registration \u2014 their consolidated details are attached.`,
|
|
5807
|
+
travellersCountLine: (n) => `${n} traveller${n === 1 ? "" : "s"} registered.`,
|
|
5808
|
+
tripDetailsHeader: "\u{1F4CB} Trip details",
|
|
5809
|
+
bookingNumberLabel: "Booking Number",
|
|
5810
|
+
adventureLabel: "Adventure",
|
|
5811
|
+
datesLabel: "Dates",
|
|
5812
|
+
partnerLabel: "Partner",
|
|
5813
|
+
expectationsHeading: "Travellers Expectations",
|
|
5814
|
+
expectationsEmptyNote: "No expectations were collected for this adventure.",
|
|
5815
|
+
expectationsEmptyAnswer: "\u2014",
|
|
5816
|
+
pdfNote: "The consolidated registration PDF is attached to this email.",
|
|
5817
|
+
closingAgent: (agentName, contact) => /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
5818
|
+
"If you have any questions, your contact ",
|
|
5819
|
+
agentName,
|
|
5820
|
+
" is available via",
|
|
5821
|
+
" ",
|
|
5822
|
+
renderWhatsappLink3(contact, "WhatsApp"),
|
|
5823
|
+
" or ",
|
|
5824
|
+
renderEmailLink3(contact, "email"),
|
|
5825
|
+
"."
|
|
5826
|
+
] }),
|
|
5827
|
+
closingNoAgent: "If you have any questions, our team is available via WhatsApp or email.",
|
|
5828
|
+
teamSignature: "The PlanetaEXO Team"
|
|
5829
|
+
};
|
|
5830
|
+
function hasText3(s) {
|
|
5831
|
+
return typeof s === "string" && s.trim().length > 0;
|
|
5832
|
+
}
|
|
5833
|
+
function PartnerConfirmationEmail({
|
|
5834
|
+
scenario,
|
|
5835
|
+
partnerName,
|
|
5836
|
+
bookingNumber,
|
|
5837
|
+
adventureName,
|
|
5838
|
+
dateRange,
|
|
5839
|
+
travellersCount,
|
|
5840
|
+
expectations,
|
|
5841
|
+
pdfAttached,
|
|
5842
|
+
agent,
|
|
5843
|
+
logoUrl,
|
|
5844
|
+
labels,
|
|
5845
|
+
className
|
|
5846
|
+
}) {
|
|
5847
|
+
const l = __spreadValues(__spreadValues({}, DEFAULT_LABELS7), labels);
|
|
5848
|
+
const tripRows = [
|
|
5849
|
+
{ label: l.bookingNumberLabel, value: `#${bookingNumber}`, valueColor: emailTokens.primary },
|
|
5850
|
+
{ label: l.adventureLabel, value: adventureName },
|
|
5851
|
+
{ label: l.datesLabel, value: dateRange },
|
|
5852
|
+
{ label: l.partnerLabel, value: partnerName }
|
|
5853
|
+
];
|
|
5854
|
+
const sectionDivider = /* @__PURE__ */ jsx(
|
|
5855
|
+
"hr",
|
|
5856
|
+
{
|
|
5857
|
+
style: {
|
|
5858
|
+
border: "none",
|
|
5859
|
+
borderTop: `1px solid ${emailTokens.border}`,
|
|
5860
|
+
marginTop: 0,
|
|
5861
|
+
marginBottom: "24px"
|
|
5862
|
+
}
|
|
5863
|
+
}
|
|
5864
|
+
);
|
|
5865
|
+
const introText = scenario === "all_done" ? l.introAllDone(adventureName, dateRange) : l.introD7(adventureName, dateRange);
|
|
5866
|
+
const showExpectationsRows = expectations.hasSection && expectations.rows.length > 0;
|
|
5867
|
+
return /* @__PURE__ */ jsxs(
|
|
5868
|
+
"div",
|
|
5869
|
+
{
|
|
5870
|
+
style: {
|
|
5871
|
+
maxWidth: "576px",
|
|
5872
|
+
margin: "0 auto",
|
|
5873
|
+
backgroundColor: emailTokens.white,
|
|
5874
|
+
color: emailTokens.foreground,
|
|
5875
|
+
fontFamily: emailTokens.fontFamily,
|
|
5876
|
+
fontSize: "16px",
|
|
5877
|
+
lineHeight: "1.6",
|
|
5878
|
+
border: `1px solid ${emailTokens.border}`,
|
|
5879
|
+
borderRadius: "12px",
|
|
5880
|
+
overflow: "hidden",
|
|
5881
|
+
padding: "32px"
|
|
5882
|
+
},
|
|
5883
|
+
className,
|
|
5884
|
+
children: [
|
|
5885
|
+
/* @__PURE__ */ jsx(EmailLogo, { src: logoUrl, alt: l.logoAlt }),
|
|
5886
|
+
/* @__PURE__ */ jsx("p", { style: { marginBottom: "16px" }, children: l.greeting(partnerName) }),
|
|
5887
|
+
/* @__PURE__ */ jsx("p", { style: { marginBottom: "16px" }, children: introText }),
|
|
5888
|
+
/* @__PURE__ */ jsx("p", { style: { marginBottom: "24px", fontWeight: 600 }, children: l.travellersCountLine(travellersCount) }),
|
|
5889
|
+
sectionDivider,
|
|
5890
|
+
/* @__PURE__ */ jsx(BookingSummary, { heading: l.tripDetailsHeader, rows: tripRows }),
|
|
5891
|
+
/* @__PURE__ */ jsx(
|
|
5892
|
+
"p",
|
|
5893
|
+
{
|
|
5894
|
+
style: {
|
|
5895
|
+
marginTop: 0,
|
|
5896
|
+
marginBottom: "16px",
|
|
5897
|
+
paddingBottom: "8px",
|
|
5898
|
+
borderBottom: `2px solid ${emailTokens.primary}`,
|
|
5899
|
+
fontWeight: 700,
|
|
5900
|
+
fontSize: "18px",
|
|
5901
|
+
color: emailTokens.foreground,
|
|
5902
|
+
fontFamily: emailTokens.fontFamily
|
|
5903
|
+
},
|
|
5904
|
+
children: l.expectationsHeading
|
|
5905
|
+
}
|
|
5906
|
+
),
|
|
5907
|
+
showExpectationsRows ? /* @__PURE__ */ jsx(
|
|
5908
|
+
"table",
|
|
5909
|
+
{
|
|
5910
|
+
role: "presentation",
|
|
5911
|
+
style: {
|
|
5912
|
+
width: "100%",
|
|
5913
|
+
borderCollapse: "collapse",
|
|
5914
|
+
fontSize: "14px",
|
|
5915
|
+
marginBottom: "24px"
|
|
5916
|
+
},
|
|
5917
|
+
children: /* @__PURE__ */ jsx("tbody", { children: expectations.rows.map((row, i) => {
|
|
5918
|
+
var _a;
|
|
5919
|
+
return /* @__PURE__ */ jsxs("tr", { style: { borderBottom: `1px solid ${emailTokens.border}` }, children: [
|
|
5920
|
+
/* @__PURE__ */ jsx(
|
|
5921
|
+
"td",
|
|
5922
|
+
{
|
|
5923
|
+
style: {
|
|
5924
|
+
width: "35%",
|
|
5925
|
+
padding: "10px 12px 10px 0",
|
|
5926
|
+
fontWeight: 600,
|
|
5927
|
+
color: emailTokens.foreground,
|
|
5928
|
+
verticalAlign: "top"
|
|
5929
|
+
},
|
|
5930
|
+
children: row.travellerName
|
|
5931
|
+
}
|
|
5932
|
+
),
|
|
5933
|
+
/* @__PURE__ */ jsx(
|
|
5934
|
+
"td",
|
|
5935
|
+
{
|
|
5936
|
+
style: {
|
|
5937
|
+
padding: "10px 0",
|
|
5938
|
+
color: emailTokens.bodyText,
|
|
5939
|
+
verticalAlign: "top"
|
|
5940
|
+
},
|
|
5941
|
+
children: (_a = row.answer) != null ? _a : l.expectationsEmptyAnswer
|
|
5942
|
+
}
|
|
5943
|
+
)
|
|
5944
|
+
] }, i);
|
|
5945
|
+
}) })
|
|
5946
|
+
}
|
|
5947
|
+
) : /* @__PURE__ */ jsx("p", { style: { marginTop: 0, marginBottom: "24px", color: emailTokens.bodyText }, children: l.expectationsEmptyNote }),
|
|
5948
|
+
pdfAttached && hasText3(l.pdfNote) && /* @__PURE__ */ jsx("p", { style: { marginBottom: "16px", color: emailTokens.bodyText }, children: l.pdfNote }),
|
|
5949
|
+
sectionDivider,
|
|
5950
|
+
/* @__PURE__ */ jsx("p", { style: { marginBottom: "16px", fontSize: "14px", fontWeight: 700, color: emailTokens.bodyText }, children: (agent == null ? void 0 : agent.name) ? l.closingAgent(agent.name, {
|
|
5951
|
+
whatsappUrl: agent.whatsappUrl,
|
|
5952
|
+
email: agent.email
|
|
5953
|
+
}) : l.closingNoAgent }),
|
|
5954
|
+
/* @__PURE__ */ jsx("p", { style: { marginTop: 0, marginBottom: 0, fontSize: "14px", color: emailTokens.bodyText }, children: l.teamSignature })
|
|
5955
|
+
]
|
|
5956
|
+
}
|
|
5957
|
+
);
|
|
5958
|
+
}
|
|
5959
|
+
var DEFAULT_LABELS8 = {
|
|
5786
5960
|
logoAlt: "PlanetaEXO",
|
|
5787
5961
|
greeting: (name) => `Hi ${name},`,
|
|
5788
5962
|
receiptHeading: "Payment receipt",
|
|
@@ -5821,7 +5995,7 @@ function PaymentReceiptEmail({
|
|
|
5821
5995
|
labels,
|
|
5822
5996
|
className
|
|
5823
5997
|
}) {
|
|
5824
|
-
const l = __spreadValues(__spreadValues({},
|
|
5998
|
+
const l = __spreadValues(__spreadValues({}, DEFAULT_LABELS8), labels);
|
|
5825
5999
|
const travellersLine = travellers.filter((s) => s.trim().length > 0).join(", ");
|
|
5826
6000
|
const interestRow = chargedAmount && chargedAmount !== amount;
|
|
5827
6001
|
const receiptRows = [
|
|
@@ -5896,24 +6070,24 @@ function PaymentReceiptEmail({
|
|
|
5896
6070
|
}
|
|
5897
6071
|
);
|
|
5898
6072
|
}
|
|
5899
|
-
var
|
|
6073
|
+
var INLINE_LINK_STYLE4 = {
|
|
5900
6074
|
color: emailTokens.primary,
|
|
5901
6075
|
textDecoration: "underline"
|
|
5902
6076
|
};
|
|
5903
|
-
function
|
|
6077
|
+
function renderWhatsappLink4(contact, label) {
|
|
5904
6078
|
if (contact.whatsappUrl) {
|
|
5905
|
-
return /* @__PURE__ */ jsx("a", { href: contact.whatsappUrl, style:
|
|
6079
|
+
return /* @__PURE__ */ jsx("a", { href: contact.whatsappUrl, style: INLINE_LINK_STYLE4, children: label });
|
|
5906
6080
|
}
|
|
5907
6081
|
return label;
|
|
5908
6082
|
}
|
|
5909
|
-
function
|
|
6083
|
+
function renderEmailLink4(contact, label) {
|
|
5910
6084
|
if (contact.email) {
|
|
5911
|
-
return /* @__PURE__ */ jsx("a", { href: `mailto:${contact.email}`, style:
|
|
6085
|
+
return /* @__PURE__ */ jsx("a", { href: `mailto:${contact.email}`, style: INLINE_LINK_STYLE4, children: label });
|
|
5912
6086
|
}
|
|
5913
6087
|
return label;
|
|
5914
6088
|
}
|
|
5915
6089
|
var EMPTY_CLOSING_ALTERNATIVE = (_agentName, _contact) => null;
|
|
5916
|
-
var
|
|
6090
|
+
var DEFAULT_LABELS9 = {
|
|
5917
6091
|
logoAlt: "PlanetaEXO",
|
|
5918
6092
|
greeting: (name) => `Hi ${name},`,
|
|
5919
6093
|
intermediateHello: "Hope you're doing well.",
|
|
@@ -5928,9 +6102,9 @@ var DEFAULT_LABELS8 = {
|
|
|
5928
6102
|
"If you need any assistance or would like to discuss your payment, feel free to contact your agent ",
|
|
5929
6103
|
agentName,
|
|
5930
6104
|
" via ",
|
|
5931
|
-
|
|
6105
|
+
renderWhatsappLink4(contact, "WhatsApp"),
|
|
5932
6106
|
" or ",
|
|
5933
|
-
|
|
6107
|
+
renderEmailLink4(contact, "email"),
|
|
5934
6108
|
"."
|
|
5935
6109
|
] }),
|
|
5936
6110
|
closingNoAgent: "If you need any assistance or would like to discuss your payment, feel free to contact us via WhatsApp or email.",
|
|
@@ -5974,9 +6148,9 @@ var DEFAULT_LABELS8 = {
|
|
|
5974
6148
|
"If you are experiencing any issues with payment or need additional time, please contact your agent ",
|
|
5975
6149
|
agentName,
|
|
5976
6150
|
" via ",
|
|
5977
|
-
|
|
6151
|
+
renderWhatsappLink4(contact, "WhatsApp"),
|
|
5978
6152
|
" or ",
|
|
5979
|
-
|
|
6153
|
+
renderEmailLink4(contact, "email"),
|
|
5980
6154
|
". We'll be happy to assist."
|
|
5981
6155
|
] })
|
|
5982
6156
|
}
|
|
@@ -6000,7 +6174,7 @@ function PaymentReminderEmail({
|
|
|
6000
6174
|
}) {
|
|
6001
6175
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s;
|
|
6002
6176
|
const lOverride = labels != null ? labels : {};
|
|
6003
|
-
const variantDefaults =
|
|
6177
|
+
const variantDefaults = DEFAULT_LABELS9.variants[variant];
|
|
6004
6178
|
const variantOverride = (_b = (_a = lOverride.variants) == null ? void 0 : _a[variant]) != null ? _b : {};
|
|
6005
6179
|
const variantLabels = {
|
|
6006
6180
|
intro: (_c = variantOverride.intro) != null ? _c : variantDefaults.intro,
|
|
@@ -6010,19 +6184,19 @@ function PaymentReminderEmail({
|
|
|
6010
6184
|
closingAlternative: (_f = variantOverride.closingAlternative) != null ? _f : variantDefaults.closingAlternative
|
|
6011
6185
|
};
|
|
6012
6186
|
const l = {
|
|
6013
|
-
logoAlt: (_g = lOverride.logoAlt) != null ? _g :
|
|
6014
|
-
greeting: (_h = lOverride.greeting) != null ? _h :
|
|
6015
|
-
intermediateHello: (_i = lOverride.intermediateHello) != null ? _i :
|
|
6016
|
-
bookingSummaryHeader: (_j = lOverride.bookingSummaryHeader) != null ? _j :
|
|
6017
|
-
amountAlreadyPaidLabel: (_k = lOverride.amountAlreadyPaidLabel) != null ? _k :
|
|
6018
|
-
remainingBalanceDueLabel: (_l = lOverride.remainingBalanceDueLabel) != null ? _l :
|
|
6019
|
-
totalBookingAmountLabel: (_m = lOverride.totalBookingAmountLabel) != null ? _m :
|
|
6020
|
-
paymentDetailsHeading: (_n = lOverride.paymentDetailsHeading) != null ? _n :
|
|
6021
|
-
ctaLabel: (_o = lOverride.ctaLabel) != null ? _o :
|
|
6022
|
-
teamSignature: (_p = lOverride.teamSignature) != null ? _p :
|
|
6023
|
-
closingAgent: (_q = lOverride.closingAgent) != null ? _q :
|
|
6024
|
-
closingNoAgent: (_r = lOverride.closingNoAgent) != null ? _r :
|
|
6025
|
-
adventureCard: __spreadValues(__spreadValues({},
|
|
6187
|
+
logoAlt: (_g = lOverride.logoAlt) != null ? _g : DEFAULT_LABELS9.logoAlt,
|
|
6188
|
+
greeting: (_h = lOverride.greeting) != null ? _h : DEFAULT_LABELS9.greeting,
|
|
6189
|
+
intermediateHello: (_i = lOverride.intermediateHello) != null ? _i : DEFAULT_LABELS9.intermediateHello,
|
|
6190
|
+
bookingSummaryHeader: (_j = lOverride.bookingSummaryHeader) != null ? _j : DEFAULT_LABELS9.bookingSummaryHeader,
|
|
6191
|
+
amountAlreadyPaidLabel: (_k = lOverride.amountAlreadyPaidLabel) != null ? _k : DEFAULT_LABELS9.amountAlreadyPaidLabel,
|
|
6192
|
+
remainingBalanceDueLabel: (_l = lOverride.remainingBalanceDueLabel) != null ? _l : DEFAULT_LABELS9.remainingBalanceDueLabel,
|
|
6193
|
+
totalBookingAmountLabel: (_m = lOverride.totalBookingAmountLabel) != null ? _m : DEFAULT_LABELS9.totalBookingAmountLabel,
|
|
6194
|
+
paymentDetailsHeading: (_n = lOverride.paymentDetailsHeading) != null ? _n : DEFAULT_LABELS9.paymentDetailsHeading,
|
|
6195
|
+
ctaLabel: (_o = lOverride.ctaLabel) != null ? _o : DEFAULT_LABELS9.ctaLabel,
|
|
6196
|
+
teamSignature: (_p = lOverride.teamSignature) != null ? _p : DEFAULT_LABELS9.teamSignature,
|
|
6197
|
+
closingAgent: (_q = lOverride.closingAgent) != null ? _q : DEFAULT_LABELS9.closingAgent,
|
|
6198
|
+
closingNoAgent: (_r = lOverride.closingNoAgent) != null ? _r : DEFAULT_LABELS9.closingNoAgent,
|
|
6199
|
+
adventureCard: __spreadValues(__spreadValues({}, DEFAULT_LABELS9.adventureCard), (_s = lOverride.adventureCard) != null ? _s : {})
|
|
6026
6200
|
};
|
|
6027
6201
|
const ctaStyle = {
|
|
6028
6202
|
display: "inline-block",
|
|
@@ -6849,7 +7023,7 @@ function BookingForm({
|
|
|
6849
7023
|
}
|
|
6850
7024
|
);
|
|
6851
7025
|
}
|
|
6852
|
-
var
|
|
7026
|
+
var DEFAULT_LABELS10 = {
|
|
6853
7027
|
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.",
|
|
6854
7028
|
detailsSectionTitle: "Your details",
|
|
6855
7029
|
tripInfoSectionTitle: "Trip info",
|
|
@@ -7514,7 +7688,7 @@ function RegistrationForm({
|
|
|
7514
7688
|
}) {
|
|
7515
7689
|
var _a;
|
|
7516
7690
|
const L = React28.useMemo(
|
|
7517
|
-
() => __spreadValues(__spreadValues({},
|
|
7691
|
+
() => __spreadValues(__spreadValues({}, DEFAULT_LABELS10), labels != null ? labels : {}),
|
|
7518
7692
|
[labels]
|
|
7519
7693
|
);
|
|
7520
7694
|
const sortedFields = React28.useMemo(
|
|
@@ -13338,6 +13512,6 @@ function LeadCapturePopup({
|
|
|
13338
13512
|
);
|
|
13339
13513
|
}
|
|
13340
13514
|
|
|
13341
|
-
export { ActivityCard, AgentContactCard, Alert, BirthDateField, BookingAdventureCard, BookingConfirmedCard, BookingCreatedEmail, BookingDetails, BookingForm, BookingOtpEmail, BookingPaymentConfirmationEmail, BookingShell, BookingSummary, Button, COUNTRIES, CounterField, CountrySearchField, DEFAULT_HEADER_LINKS, DEFAULT_LANGUAGES, DatePickerField, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, FilterPanel, FloatingInput, FloatingSelect, Itinerary, ItineraryDay, LOGO_PLANETAEXO_DATA_URI, LeadCapturePopup, MenuTrip, OTPCodeInput, Offer, OfferAdventureCard, PaymentAmountSelector, PaymentDetailsBlock, PaymentMethodSelector, PaymentModalShell, PaymentReceiptEmail, PaymentReminderEmail, PhoneCountrySelect, PhotoGallery, PricingTrip, RegistrationForm, RegistrationProgressBar, RegistrationReminderEmail, RegistrationReminderIndividualEmail, RegistrationSuccessCard, SiteHeader, TERMS_ACCEPT_KEY, TermsSection, ThemeToggle, Toast, TransferDetailsBlock, TravellerFormInviteEmail, TripCard, TripHeader, TripPage, TrustpilotEmbed, buttonVariants, cn, emailTokens, getStripeAppearance, itineraryDaySpecIcons, stripeAppearance, wrapEmailHtml };
|
|
13515
|
+
export { ActivityCard, AgentContactCard, Alert, BirthDateField, BookingAdventureCard, BookingConfirmedCard, BookingCreatedEmail, BookingDetails, BookingForm, BookingOtpEmail, BookingPaymentConfirmationEmail, BookingShell, BookingSummary, Button, COUNTRIES, CounterField, CountrySearchField, DEFAULT_HEADER_LINKS, DEFAULT_LANGUAGES, DatePickerField, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, FilterPanel, FloatingInput, FloatingSelect, Itinerary, ItineraryDay, LOGO_PLANETAEXO_DATA_URI, LeadCapturePopup, MenuTrip, OTPCodeInput, Offer, OfferAdventureCard, PartnerConfirmationEmail, PaymentAmountSelector, PaymentDetailsBlock, PaymentMethodSelector, PaymentModalShell, PaymentReceiptEmail, PaymentReminderEmail, PhoneCountrySelect, PhotoGallery, PricingTrip, RegistrationForm, RegistrationProgressBar, RegistrationReminderEmail, RegistrationReminderIndividualEmail, RegistrationSuccessCard, SiteHeader, TERMS_ACCEPT_KEY, TermsSection, ThemeToggle, Toast, TransferDetailsBlock, TravellerFormInviteEmail, TripCard, TripHeader, TripPage, TrustpilotEmbed, buttonVariants, cn, emailTokens, getStripeAppearance, itineraryDaySpecIcons, stripeAppearance, wrapEmailHtml };
|
|
13342
13516
|
//# sourceMappingURL=index.js.map
|
|
13343
13517
|
//# sourceMappingURL=index.js.map
|