@planetaexo/design-system 0.37.6 → 0.39.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 -28
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +64 -2
- package/dist/index.d.ts +64 -2
- package/dist/index.js +202 -29
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1352,6 +1352,65 @@ interface RegistrationReminderIndividualEmailProps {
|
|
|
1352
1352
|
}
|
|
1353
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;
|
|
1354
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
|
+
|
|
1355
1414
|
interface PaymentReceiptEmailLabels {
|
|
1356
1415
|
logoAlt?: string;
|
|
1357
1416
|
greeting?: (name: string) => string;
|
|
@@ -1669,7 +1728,10 @@ interface BookingFormProps {
|
|
|
1669
1728
|
}
|
|
1670
1729
|
declare function BookingForm({ defaultValues, onSubmit, submitLabel, loading, showHeader, title, subtitle, className, }: BookingFormProps): react_jsx_runtime.JSX.Element;
|
|
1671
1730
|
|
|
1672
|
-
type RegistrationFieldType = "text" | "textarea" | "number" | "date" | "birthDate" | "select" | "radio" | "checkbox" | "name" | "phone" | "nationality" | "emergencyContact"
|
|
1731
|
+
type RegistrationFieldType = "text" | "textarea" | "number" | "date" | "birthDate" | "select" | "radio" | "checkbox" | "name" | "phone" | "nationality" | "emergencyContact"
|
|
1732
|
+
/** Texto longo semântico: a resposta do viajante a "expectativas" da aventura.
|
|
1733
|
+
* Renderiza como `textarea`; identificado pelo tipo (não por id/label). */
|
|
1734
|
+
| "travellersExpectations";
|
|
1673
1735
|
interface RegistrationFieldOption {
|
|
1674
1736
|
value: string;
|
|
1675
1737
|
label: string;
|
|
@@ -3059,4 +3121,4 @@ declare function LeadCapturePopup({ config: _config, }: {
|
|
|
3059
3121
|
config: LeadCapturePopupConfig;
|
|
3060
3122
|
}): react_jsx_runtime.JSX.Element | null;
|
|
3061
3123
|
|
|
3062
|
-
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 };
|
|
3124
|
+
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
|
@@ -1352,6 +1352,65 @@ interface RegistrationReminderIndividualEmailProps {
|
|
|
1352
1352
|
}
|
|
1353
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;
|
|
1354
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
|
+
|
|
1355
1414
|
interface PaymentReceiptEmailLabels {
|
|
1356
1415
|
logoAlt?: string;
|
|
1357
1416
|
greeting?: (name: string) => string;
|
|
@@ -1669,7 +1728,10 @@ interface BookingFormProps {
|
|
|
1669
1728
|
}
|
|
1670
1729
|
declare function BookingForm({ defaultValues, onSubmit, submitLabel, loading, showHeader, title, subtitle, className, }: BookingFormProps): react_jsx_runtime.JSX.Element;
|
|
1671
1730
|
|
|
1672
|
-
type RegistrationFieldType = "text" | "textarea" | "number" | "date" | "birthDate" | "select" | "radio" | "checkbox" | "name" | "phone" | "nationality" | "emergencyContact"
|
|
1731
|
+
type RegistrationFieldType = "text" | "textarea" | "number" | "date" | "birthDate" | "select" | "radio" | "checkbox" | "name" | "phone" | "nationality" | "emergencyContact"
|
|
1732
|
+
/** Texto longo semântico: a resposta do viajante a "expectativas" da aventura.
|
|
1733
|
+
* Renderiza como `textarea`; identificado pelo tipo (não por id/label). */
|
|
1734
|
+
| "travellersExpectations";
|
|
1673
1735
|
interface RegistrationFieldOption {
|
|
1674
1736
|
value: string;
|
|
1675
1737
|
label: string;
|
|
@@ -3059,4 +3121,4 @@ declare function LeadCapturePopup({ config: _config, }: {
|
|
|
3059
3121
|
config: LeadCapturePopupConfig;
|
|
3060
3122
|
}): react_jsx_runtime.JSX.Element | null;
|
|
3061
3123
|
|
|
3062
|
-
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 };
|
|
3124
|
+
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
|
@@ -5783,7 +5783,180 @@ function RegistrationReminderIndividualEmail({
|
|
|
5783
5783
|
}
|
|
5784
5784
|
);
|
|
5785
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
|
+
}
|
|
5786
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 = {
|
|
5787
5960
|
logoAlt: "PlanetaEXO",
|
|
5788
5961
|
greeting: (name) => `Hi ${name},`,
|
|
5789
5962
|
receiptHeading: "Payment receipt",
|
|
@@ -5822,7 +5995,7 @@ function PaymentReceiptEmail({
|
|
|
5822
5995
|
labels,
|
|
5823
5996
|
className
|
|
5824
5997
|
}) {
|
|
5825
|
-
const l = __spreadValues(__spreadValues({},
|
|
5998
|
+
const l = __spreadValues(__spreadValues({}, DEFAULT_LABELS8), labels);
|
|
5826
5999
|
const travellersLine = travellers.filter((s) => s.trim().length > 0).join(", ");
|
|
5827
6000
|
const interestRow = chargedAmount && chargedAmount !== amount;
|
|
5828
6001
|
const receiptRows = [
|
|
@@ -5897,24 +6070,24 @@ function PaymentReceiptEmail({
|
|
|
5897
6070
|
}
|
|
5898
6071
|
);
|
|
5899
6072
|
}
|
|
5900
|
-
var
|
|
6073
|
+
var INLINE_LINK_STYLE4 = {
|
|
5901
6074
|
color: emailTokens.primary,
|
|
5902
6075
|
textDecoration: "underline"
|
|
5903
6076
|
};
|
|
5904
|
-
function
|
|
6077
|
+
function renderWhatsappLink4(contact, label) {
|
|
5905
6078
|
if (contact.whatsappUrl) {
|
|
5906
|
-
return /* @__PURE__ */ jsx("a", { href: contact.whatsappUrl, style:
|
|
6079
|
+
return /* @__PURE__ */ jsx("a", { href: contact.whatsappUrl, style: INLINE_LINK_STYLE4, children: label });
|
|
5907
6080
|
}
|
|
5908
6081
|
return label;
|
|
5909
6082
|
}
|
|
5910
|
-
function
|
|
6083
|
+
function renderEmailLink4(contact, label) {
|
|
5911
6084
|
if (contact.email) {
|
|
5912
|
-
return /* @__PURE__ */ jsx("a", { href: `mailto:${contact.email}`, style:
|
|
6085
|
+
return /* @__PURE__ */ jsx("a", { href: `mailto:${contact.email}`, style: INLINE_LINK_STYLE4, children: label });
|
|
5913
6086
|
}
|
|
5914
6087
|
return label;
|
|
5915
6088
|
}
|
|
5916
6089
|
var EMPTY_CLOSING_ALTERNATIVE = (_agentName, _contact) => null;
|
|
5917
|
-
var
|
|
6090
|
+
var DEFAULT_LABELS9 = {
|
|
5918
6091
|
logoAlt: "PlanetaEXO",
|
|
5919
6092
|
greeting: (name) => `Hi ${name},`,
|
|
5920
6093
|
intermediateHello: "Hope you're doing well.",
|
|
@@ -5929,9 +6102,9 @@ var DEFAULT_LABELS8 = {
|
|
|
5929
6102
|
"If you need any assistance or would like to discuss your payment, feel free to contact your agent ",
|
|
5930
6103
|
agentName,
|
|
5931
6104
|
" via ",
|
|
5932
|
-
|
|
6105
|
+
renderWhatsappLink4(contact, "WhatsApp"),
|
|
5933
6106
|
" or ",
|
|
5934
|
-
|
|
6107
|
+
renderEmailLink4(contact, "email"),
|
|
5935
6108
|
"."
|
|
5936
6109
|
] }),
|
|
5937
6110
|
closingNoAgent: "If you need any assistance or would like to discuss your payment, feel free to contact us via WhatsApp or email.",
|
|
@@ -5975,9 +6148,9 @@ var DEFAULT_LABELS8 = {
|
|
|
5975
6148
|
"If you are experiencing any issues with payment or need additional time, please contact your agent ",
|
|
5976
6149
|
agentName,
|
|
5977
6150
|
" via ",
|
|
5978
|
-
|
|
6151
|
+
renderWhatsappLink4(contact, "WhatsApp"),
|
|
5979
6152
|
" or ",
|
|
5980
|
-
|
|
6153
|
+
renderEmailLink4(contact, "email"),
|
|
5981
6154
|
". We'll be happy to assist."
|
|
5982
6155
|
] })
|
|
5983
6156
|
}
|
|
@@ -6001,7 +6174,7 @@ function PaymentReminderEmail({
|
|
|
6001
6174
|
}) {
|
|
6002
6175
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s;
|
|
6003
6176
|
const lOverride = labels != null ? labels : {};
|
|
6004
|
-
const variantDefaults =
|
|
6177
|
+
const variantDefaults = DEFAULT_LABELS9.variants[variant];
|
|
6005
6178
|
const variantOverride = (_b = (_a = lOverride.variants) == null ? void 0 : _a[variant]) != null ? _b : {};
|
|
6006
6179
|
const variantLabels = {
|
|
6007
6180
|
intro: (_c = variantOverride.intro) != null ? _c : variantDefaults.intro,
|
|
@@ -6011,19 +6184,19 @@ function PaymentReminderEmail({
|
|
|
6011
6184
|
closingAlternative: (_f = variantOverride.closingAlternative) != null ? _f : variantDefaults.closingAlternative
|
|
6012
6185
|
};
|
|
6013
6186
|
const l = {
|
|
6014
|
-
logoAlt: (_g = lOverride.logoAlt) != null ? _g :
|
|
6015
|
-
greeting: (_h = lOverride.greeting) != null ? _h :
|
|
6016
|
-
intermediateHello: (_i = lOverride.intermediateHello) != null ? _i :
|
|
6017
|
-
bookingSummaryHeader: (_j = lOverride.bookingSummaryHeader) != null ? _j :
|
|
6018
|
-
amountAlreadyPaidLabel: (_k = lOverride.amountAlreadyPaidLabel) != null ? _k :
|
|
6019
|
-
remainingBalanceDueLabel: (_l = lOverride.remainingBalanceDueLabel) != null ? _l :
|
|
6020
|
-
totalBookingAmountLabel: (_m = lOverride.totalBookingAmountLabel) != null ? _m :
|
|
6021
|
-
paymentDetailsHeading: (_n = lOverride.paymentDetailsHeading) != null ? _n :
|
|
6022
|
-
ctaLabel: (_o = lOverride.ctaLabel) != null ? _o :
|
|
6023
|
-
teamSignature: (_p = lOverride.teamSignature) != null ? _p :
|
|
6024
|
-
closingAgent: (_q = lOverride.closingAgent) != null ? _q :
|
|
6025
|
-
closingNoAgent: (_r = lOverride.closingNoAgent) != null ? _r :
|
|
6026
|
-
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 : {})
|
|
6027
6200
|
};
|
|
6028
6201
|
const ctaStyle = {
|
|
6029
6202
|
display: "inline-block",
|
|
@@ -6850,7 +7023,7 @@ function BookingForm({
|
|
|
6850
7023
|
}
|
|
6851
7024
|
);
|
|
6852
7025
|
}
|
|
6853
|
-
var
|
|
7026
|
+
var DEFAULT_LABELS10 = {
|
|
6854
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.",
|
|
6855
7028
|
detailsSectionTitle: "Your details",
|
|
6856
7029
|
tripInfoSectionTitle: "Trip info",
|
|
@@ -7315,7 +7488,7 @@ function FieldRenderer({
|
|
|
7315
7488
|
] })
|
|
7316
7489
|
] });
|
|
7317
7490
|
}
|
|
7318
|
-
if (field.type === "textarea") {
|
|
7491
|
+
if (field.type === "textarea" || field.type === "travellersExpectations") {
|
|
7319
7492
|
return /* @__PURE__ */ jsx(
|
|
7320
7493
|
FloatingTextarea,
|
|
7321
7494
|
{
|
|
@@ -7515,7 +7688,7 @@ function RegistrationForm({
|
|
|
7515
7688
|
}) {
|
|
7516
7689
|
var _a;
|
|
7517
7690
|
const L = React28.useMemo(
|
|
7518
|
-
() => __spreadValues(__spreadValues({},
|
|
7691
|
+
() => __spreadValues(__spreadValues({}, DEFAULT_LABELS10), labels != null ? labels : {}),
|
|
7519
7692
|
[labels]
|
|
7520
7693
|
);
|
|
7521
7694
|
const sortedFields = React28.useMemo(
|
|
@@ -13339,6 +13512,6 @@ function LeadCapturePopup({
|
|
|
13339
13512
|
);
|
|
13340
13513
|
}
|
|
13341
13514
|
|
|
13342
|
-
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 };
|
|
13343
13516
|
//# sourceMappingURL=index.js.map
|
|
13344
13517
|
//# sourceMappingURL=index.js.map
|