@planetaexo/design-system 0.14.1 → 0.15.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 +106 -72
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +92 -2
- package/dist/index.d.ts +92 -2
- package/dist/index.js +106 -72
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1495,7 +1495,15 @@ function OfferSidebar({
|
|
|
1495
1495
|
) : /* @__PURE__ */ jsx("div", { className: "w-16 h-16 rounded-full bg-primary/10 flex items-center justify-center", children: /* @__PURE__ */ jsx("span", { className: "text-xl font-bold text-primary font-heading", children: agent.name.charAt(0) }) }),
|
|
1496
1496
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
1497
1497
|
/* @__PURE__ */ jsx("p", { className: "text-sm text-foreground font-sans", children: (_b = labels == null ? void 0 : labels.needHelp) != null ? _b : "Need help with your offer?" }),
|
|
1498
|
-
/* @__PURE__ */
|
|
1498
|
+
/* @__PURE__ */ jsx("p", { className: "text-sm font-sans text-foreground mt-0.5", children: (labels == null ? void 0 : labels.agentContactTemplate) ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
1499
|
+
labels.agentContactTemplate(agent.name),
|
|
1500
|
+
agent.company && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
1501
|
+
" ",
|
|
1502
|
+
"at",
|
|
1503
|
+
" ",
|
|
1504
|
+
/* @__PURE__ */ jsx("span", { className: "font-bold text-foreground font-heading", children: agent.company })
|
|
1505
|
+
] })
|
|
1506
|
+
] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
1499
1507
|
"Contact",
|
|
1500
1508
|
" ",
|
|
1501
1509
|
/* @__PURE__ */ jsx("span", { className: "font-bold text-foreground font-heading", children: agent.name }),
|
|
@@ -1506,7 +1514,7 @@ function OfferSidebar({
|
|
|
1506
1514
|
" ",
|
|
1507
1515
|
/* @__PURE__ */ jsx("span", { className: "font-bold text-foreground font-heading", children: agent.company })
|
|
1508
1516
|
] })
|
|
1509
|
-
] })
|
|
1517
|
+
] }) })
|
|
1510
1518
|
] })
|
|
1511
1519
|
] }),
|
|
1512
1520
|
/* @__PURE__ */ jsx(Separator, {}),
|
|
@@ -1564,7 +1572,7 @@ function OfferSummarySection({
|
|
|
1564
1572
|
continueDisabled,
|
|
1565
1573
|
labels
|
|
1566
1574
|
}) {
|
|
1567
|
-
var _a, _b, _c, _d, _e;
|
|
1575
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
1568
1576
|
return /* @__PURE__ */ jsxs("div", { className: "rounded-2xl border border-border bg-card p-5 flex flex-col gap-4", children: [
|
|
1569
1577
|
/* @__PURE__ */ jsx("h3", { className: "font-bold text-foreground font-heading text-base", children: (_a = labels == null ? void 0 : labels.summary) != null ? _a : "Summary" }),
|
|
1570
1578
|
/* @__PURE__ */ jsx(Separator, {}),
|
|
@@ -1597,24 +1605,20 @@ function OfferSummarySection({
|
|
|
1597
1605
|
] }),
|
|
1598
1606
|
depositInfo && /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-1.5 rounded-lg bg-muted/50 border border-border p-3", children: [
|
|
1599
1607
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
|
|
1600
|
-
/* @__PURE__ */
|
|
1601
|
-
"Deposit (",
|
|
1602
|
-
depositInfo.depositPercent,
|
|
1603
|
-
"%)"
|
|
1604
|
-
] }),
|
|
1608
|
+
/* @__PURE__ */ jsx("span", { className: "text-xs text-muted-foreground font-sans", children: (_d = (_c = labels == null ? void 0 : labels.depositLabel) == null ? void 0 : _c.call(labels, depositInfo.depositPercent)) != null ? _d : `Deposit (${depositInfo.depositPercent}%)` }),
|
|
1605
1609
|
/* @__PURE__ */ jsx("span", { className: "text-xs font-semibold text-foreground font-sans", children: depositInfo.depositAmount })
|
|
1606
1610
|
] }),
|
|
1607
1611
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
|
|
1608
|
-
/* @__PURE__ */ jsx("span", { className: "text-xs text-muted-foreground font-sans", children: (
|
|
1612
|
+
/* @__PURE__ */ jsx("span", { className: "text-xs text-muted-foreground font-sans", children: (_e = labels == null ? void 0 : labels.remainingBalance) != null ? _e : "Remaining balance" }),
|
|
1609
1613
|
/* @__PURE__ */ jsx("span", { className: "text-xs font-semibold text-foreground font-sans", children: depositInfo.remainingAmount })
|
|
1610
1614
|
] }),
|
|
1611
1615
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
|
|
1612
|
-
/* @__PURE__ */ jsx("span", { className: "text-xs text-muted-foreground font-sans", children: (
|
|
1616
|
+
/* @__PURE__ */ jsx("span", { className: "text-xs text-muted-foreground font-sans", children: (_f = labels == null ? void 0 : labels.balanceDue) != null ? _f : "Balance due" }),
|
|
1613
1617
|
/* @__PURE__ */ jsx("span", { className: "text-xs font-semibold text-foreground font-sans", children: depositInfo.balanceDueDate })
|
|
1614
1618
|
] })
|
|
1615
1619
|
] }),
|
|
1616
1620
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between pt-1", children: [
|
|
1617
|
-
/* @__PURE__ */ jsx("span", { className: "text-base font-bold text-foreground font-heading", children: (
|
|
1621
|
+
/* @__PURE__ */ jsx("span", { className: "text-base font-bold text-foreground font-heading", children: (_g = labels == null ? void 0 : labels.total) != null ? _g : "Total" }),
|
|
1618
1622
|
/* @__PURE__ */ jsx("span", { className: "text-2xl font-black text-primary font-heading", children: total })
|
|
1619
1623
|
] }),
|
|
1620
1624
|
/* @__PURE__ */ jsx(
|
|
@@ -1944,7 +1948,7 @@ function BookingWizard({
|
|
|
1944
1948
|
onCancel,
|
|
1945
1949
|
labels
|
|
1946
1950
|
}) {
|
|
1947
|
-
var _a;
|
|
1951
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D, _E, _F, _G, _H, _I, _J, _K, _L, _M, _N, _O, _P, _Q, _R, _S, _T;
|
|
1948
1952
|
const wizardSteps = WIZARD_STEPS_FN(labels);
|
|
1949
1953
|
const [step, setStep] = React23.useState("responsible");
|
|
1950
1954
|
const [error, setError] = React23.useState(null);
|
|
@@ -1959,12 +1963,12 @@ function BookingWizard({
|
|
|
1959
1963
|
notes: ""
|
|
1960
1964
|
});
|
|
1961
1965
|
const totalAdults = adventures.reduce((s, a) => {
|
|
1962
|
-
var _a2,
|
|
1963
|
-
return s + ((
|
|
1966
|
+
var _a2, _b2;
|
|
1967
|
+
return s + ((_b2 = (_a2 = a.slots) == null ? void 0 : _a2.adults) != null ? _b2 : 1);
|
|
1964
1968
|
}, 0);
|
|
1965
1969
|
const totalChildren = adventures.reduce((s, a) => {
|
|
1966
|
-
var _a2,
|
|
1967
|
-
return s + ((
|
|
1970
|
+
var _a2, _b2;
|
|
1971
|
+
return s + ((_b2 = (_a2 = a.slots) == null ? void 0 : _a2.children) != null ? _b2 : 0);
|
|
1968
1972
|
}, 0);
|
|
1969
1973
|
const totalPax = totalAdults + totalChildren;
|
|
1970
1974
|
const [travellers, setTravellers] = React23.useState(
|
|
@@ -2018,7 +2022,17 @@ function BookingWizard({
|
|
|
2018
2022
|
const depositLabel = depositInfo ? `${payDepositLabel} (${depositInfo.depositPercent}%) \u2014 ${depositInfo.depositAmount}` : payDepositLabel;
|
|
2019
2023
|
const fullLabel = `Pay full amount \u2014 ${total}`;
|
|
2020
2024
|
if (step === "confirmed") {
|
|
2021
|
-
|
|
2025
|
+
const confirmedMsg = labels == null ? void 0 : labels.bookingConfirmedMessage;
|
|
2026
|
+
const resolvedMsg = typeof confirmedMsg === "function" ? confirmedMsg({ email: (_b = responsible.email) != null ? _b : "" }) : confirmedMsg;
|
|
2027
|
+
return /* @__PURE__ */ jsx(
|
|
2028
|
+
BookingConfirmedCard,
|
|
2029
|
+
{
|
|
2030
|
+
title: labels == null ? void 0 : labels.bookingConfirmed,
|
|
2031
|
+
email: responsible.email,
|
|
2032
|
+
message: resolvedMsg,
|
|
2033
|
+
onBack: onCancel
|
|
2034
|
+
}
|
|
2035
|
+
);
|
|
2022
2036
|
}
|
|
2023
2037
|
return /* @__PURE__ */ jsx(
|
|
2024
2038
|
BookingShell,
|
|
@@ -2029,13 +2043,13 @@ function BookingWizard({
|
|
|
2029
2043
|
onNext: goNext,
|
|
2030
2044
|
onBack: goPrev,
|
|
2031
2045
|
onCancel,
|
|
2032
|
-
nextLabel: step === "payment" ? "Confirm booking" : "Next",
|
|
2033
|
-
backLabel: "Back",
|
|
2034
|
-
cancelLabel: "Cancel",
|
|
2046
|
+
nextLabel: step === "payment" ? (_d = (_c = labels == null ? void 0 : labels.wizard) == null ? void 0 : _c.confirmBookingLabel) != null ? _d : "Confirm booking" : (_f = (_e = labels == null ? void 0 : labels.wizard) == null ? void 0 : _e.nextLabel) != null ? _f : "Next",
|
|
2047
|
+
backLabel: (_h = (_g = labels == null ? void 0 : labels.wizard) == null ? void 0 : _g.backLabel) != null ? _h : "Back",
|
|
2048
|
+
cancelLabel: (_j = (_i = labels == null ? void 0 : labels.wizard) == null ? void 0 : _i.cancelLabel) != null ? _j : "Cancel",
|
|
2035
2049
|
error,
|
|
2036
2050
|
children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-5", children: [
|
|
2037
2051
|
step === "responsible" && /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-4", children: [
|
|
2038
|
-
/* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground font-sans", children: "Enter the responsible person's details. This person will receive booking confirmations and is accountable for all travellers." }),
|
|
2052
|
+
/* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground font-sans", children: (_l = (_k = labels == null ? void 0 : labels.wizard) == null ? void 0 : _k.step1Description) != null ? _l : "Enter the responsible person's details. This person will receive booking confirmations and is accountable for all travellers." }),
|
|
2039
2053
|
/* @__PURE__ */ jsxs("div", { className: "grid grid-cols-1 gap-4 sm:grid-cols-2", children: [
|
|
2040
2054
|
/* @__PURE__ */ jsx(FloatingInput, { label: "First name", required: true, value: responsible.firstName, onChange: (e) => setR("firstName", e.target.value) }),
|
|
2041
2055
|
/* @__PURE__ */ jsx(FloatingInput, { label: "Last name", required: true, value: responsible.lastName, onChange: (e) => setR("lastName", e.target.value) })
|
|
@@ -2056,7 +2070,7 @@ function BookingWizard({
|
|
|
2056
2070
|
className: "peer block h-14 w-full rounded-r-lg border border-border bg-background px-3 pt-5 pb-2 text-base text-foreground font-ui transition-colors placeholder-transparent focus:outline-none focus:border-primary focus:ring-1 focus:ring-primary"
|
|
2057
2071
|
}
|
|
2058
2072
|
),
|
|
2059
|
-
/* @__PURE__ */ jsx("label", { htmlFor: "wiz-phone", className: "pointer-events-none absolute left-3 top-1/2 -translate-y-1/2 text-base text-muted-foreground font-ui transition-all duration-150 peer-focus:top-3 peer-focus:translate-y-0 peer-focus:text-xs peer-focus:text-primary peer-not-placeholder-shown:top-3 peer-not-placeholder-shown:translate-y-0 peer-not-placeholder-shown:text-xs", children: "Phone" })
|
|
2073
|
+
/* @__PURE__ */ jsx("label", { htmlFor: "wiz-phone", className: "pointer-events-none absolute left-3 top-1/2 -translate-y-1/2 text-base text-muted-foreground font-ui transition-all duration-150 peer-focus:top-3 peer-focus:translate-y-0 peer-focus:text-xs peer-focus:text-primary peer-not-placeholder-shown:top-3 peer-not-placeholder-shown:translate-y-0 peer-not-placeholder-shown:text-xs", children: (_o = (_n = (_m = labels == null ? void 0 : labels.wizard) == null ? void 0 : _m.fields) == null ? void 0 : _n.phone) != null ? _o : "Phone" })
|
|
2060
2074
|
] })
|
|
2061
2075
|
] })
|
|
2062
2076
|
] }),
|
|
@@ -2074,27 +2088,24 @@ function BookingWizard({
|
|
|
2074
2088
|
className: "peer block w-full resize-none rounded-lg border border-border bg-background px-3 pt-6 pb-3 text-base text-foreground font-ui transition-colors placeholder-transparent focus:outline-none focus:border-primary focus:ring-1 focus:ring-primary"
|
|
2075
2089
|
}
|
|
2076
2090
|
),
|
|
2077
|
-
/* @__PURE__ */ jsx("label", { htmlFor: "wiz-notes", className: "pointer-events-none absolute left-3 top-4 text-base text-muted-foreground font-ui transition-all duration-150 peer-focus:top-2 peer-focus:text-xs peer-focus:text-primary peer-not-placeholder-shown:top-2 peer-not-placeholder-shown:text-xs", children: "Notes (optional)" })
|
|
2091
|
+
/* @__PURE__ */ jsx("label", { htmlFor: "wiz-notes", className: "pointer-events-none absolute left-3 top-4 text-base text-muted-foreground font-ui transition-all duration-150 peer-focus:top-2 peer-focus:text-xs peer-focus:text-primary peer-not-placeholder-shown:top-2 peer-not-placeholder-shown:text-xs", children: (_r = (_q = (_p = labels == null ? void 0 : labels.wizard) == null ? void 0 : _p.fields) == null ? void 0 : _q.notesOptional) != null ? _r : "Notes (optional)" })
|
|
2078
2092
|
] })
|
|
2079
2093
|
] }),
|
|
2080
2094
|
step === "travellers" && /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-5", children: [
|
|
2081
2095
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
2082
2096
|
/* @__PURE__ */ jsx(UsersIcon, { className: "w-5 h-5 text-primary shrink-0" }),
|
|
2083
|
-
/* @__PURE__ */ jsx("h4", { className: "font-bold text-foreground font-heading text-base", children: "Traveller details" })
|
|
2097
|
+
/* @__PURE__ */ jsx("h4", { className: "font-bold text-foreground font-heading text-base", children: (_t = (_s = labels == null ? void 0 : labels.wizard) == null ? void 0 : _s.step2Heading) != null ? _t : "Traveller details" })
|
|
2084
2098
|
] }),
|
|
2085
2099
|
travellers.map((t, i) => {
|
|
2086
|
-
var _a2,
|
|
2100
|
+
var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2, _i2, _j2, _k2;
|
|
2087
2101
|
const isChild = i >= totalAdults;
|
|
2088
2102
|
return /* @__PURE__ */ jsxs("div", { className: "rounded-xl border border-border p-4 flex flex-col gap-3", children: [
|
|
2089
2103
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
|
|
2090
|
-
/* @__PURE__ */
|
|
2091
|
-
"Traveller ",
|
|
2092
|
-
i + 1
|
|
2093
|
-
] }),
|
|
2104
|
+
/* @__PURE__ */ jsx("p", { className: "text-sm font-bold text-foreground font-heading", children: (_c2 = (_b2 = (_a2 = labels == null ? void 0 : labels.wizard) == null ? void 0 : _a2.step2TravellerCard) == null ? void 0 : _b2.call(_a2, i + 1)) != null ? _c2 : `Traveller ${i + 1}` }),
|
|
2094
2105
|
/* @__PURE__ */ jsx("span", { className: cn(
|
|
2095
2106
|
"text-xs font-semibold font-heading rounded-full px-2.5 py-0.5",
|
|
2096
2107
|
isChild ? "bg-orange-100 text-orange-700 dark:bg-orange-900/30 dark:text-orange-400" : "bg-primary/10 text-primary"
|
|
2097
|
-
), children: isChild ? (
|
|
2108
|
+
), children: isChild ? (_d2 = labels == null ? void 0 : labels.childLabel) != null ? _d2 : "Child" : (_e2 = labels == null ? void 0 : labels.adultLabel) != null ? _e2 : "Adult" })
|
|
2098
2109
|
] }),
|
|
2099
2110
|
/* @__PURE__ */ jsxs("div", { className: "grid grid-cols-1 gap-3 sm:grid-cols-2", children: [
|
|
2100
2111
|
/* @__PURE__ */ jsx(FloatingInput, { label: "First name", required: true, value: t.firstName, onChange: (e) => setT(i, "firstName", e.target.value) }),
|
|
@@ -2104,7 +2115,7 @@ function BookingWizard({
|
|
|
2104
2115
|
/* @__PURE__ */ jsx(
|
|
2105
2116
|
BirthDateField,
|
|
2106
2117
|
{
|
|
2107
|
-
label: "Date of birth",
|
|
2118
|
+
label: (_h2 = (_g2 = (_f2 = labels == null ? void 0 : labels.wizard) == null ? void 0 : _f2.fields) == null ? void 0 : _g2.dateOfBirth) != null ? _h2 : "Date of birth",
|
|
2108
2119
|
required: isChild,
|
|
2109
2120
|
value: t.dateOfBirth,
|
|
2110
2121
|
onChange: (d) => setTDob(i, d)
|
|
@@ -2113,7 +2124,7 @@ function BookingWizard({
|
|
|
2113
2124
|
/* @__PURE__ */ jsx(
|
|
2114
2125
|
FloatingInput,
|
|
2115
2126
|
{
|
|
2116
|
-
label: "Email",
|
|
2127
|
+
label: (_k2 = (_j2 = (_i2 = labels == null ? void 0 : labels.wizard) == null ? void 0 : _i2.fields) == null ? void 0 : _j2.email) != null ? _k2 : "Email",
|
|
2117
2128
|
type: "email",
|
|
2118
2129
|
value: t.email,
|
|
2119
2130
|
onChange: (e) => setT(i, "email", e.target.value)
|
|
@@ -2124,7 +2135,7 @@ function BookingWizard({
|
|
|
2124
2135
|
})
|
|
2125
2136
|
] }),
|
|
2126
2137
|
step === "payment" && /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-5", children: [
|
|
2127
|
-
/* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground font-sans", children: "When you confirm, we will open secure online payment (Stripe). Choose deposit vs full amount below when applicable." }),
|
|
2138
|
+
/* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground font-sans", children: (_v = (_u = labels == null ? void 0 : labels.wizard) == null ? void 0 : _u.step3Description) != null ? _v : "When you confirm, we will open secure online payment (Stripe). Choose deposit vs full amount below when applicable." }),
|
|
2128
2139
|
depositInfo && /* @__PURE__ */ jsx(
|
|
2129
2140
|
PaymentAmountSelector,
|
|
2130
2141
|
{
|
|
@@ -2139,9 +2150,21 @@ function BookingWizard({
|
|
|
2139
2150
|
{
|
|
2140
2151
|
title: labels == null ? void 0 : labels.paymentMethod,
|
|
2141
2152
|
methods: [
|
|
2142
|
-
{
|
|
2143
|
-
|
|
2144
|
-
|
|
2153
|
+
{
|
|
2154
|
+
id: "stripe",
|
|
2155
|
+
label: (_z = (_y = (_x = (_w = labels == null ? void 0 : labels.wizard) == null ? void 0 : _w.paymentMethods) == null ? void 0 : _x.creditCard) == null ? void 0 : _y.label) != null ? _z : "Credit / Debit card",
|
|
2156
|
+
description: (_D = (_C = (_B = (_A = labels == null ? void 0 : labels.wizard) == null ? void 0 : _A.paymentMethods) == null ? void 0 : _B.creditCard) == null ? void 0 : _C.description) != null ? _D : "Secure payment via Stripe"
|
|
2157
|
+
},
|
|
2158
|
+
{
|
|
2159
|
+
id: "pix",
|
|
2160
|
+
label: (_H = (_G = (_F = (_E = labels == null ? void 0 : labels.wizard) == null ? void 0 : _E.paymentMethods) == null ? void 0 : _F.pix) == null ? void 0 : _G.label) != null ? _H : "PIX",
|
|
2161
|
+
description: (_L = (_K = (_J = (_I = labels == null ? void 0 : labels.wizard) == null ? void 0 : _I.paymentMethods) == null ? void 0 : _J.pix) == null ? void 0 : _K.description) != null ? _L : "Instant transfer \u2014 Brazil only"
|
|
2162
|
+
},
|
|
2163
|
+
{
|
|
2164
|
+
id: "bank",
|
|
2165
|
+
label: (_P = (_O = (_N = (_M = labels == null ? void 0 : labels.wizard) == null ? void 0 : _M.paymentMethods) == null ? void 0 : _N.bankTransfer) == null ? void 0 : _O.label) != null ? _P : "Bank transfer",
|
|
2166
|
+
description: (_T = (_S = (_R = (_Q = labels == null ? void 0 : labels.wizard) == null ? void 0 : _Q.paymentMethods) == null ? void 0 : _R.bankTransfer) == null ? void 0 : _S.description) != null ? _T : "Wire / TED / DOC"
|
|
2167
|
+
}
|
|
2145
2168
|
],
|
|
2146
2169
|
value: payMethod,
|
|
2147
2170
|
onChange: (v) => setPayMethod(v)
|
|
@@ -2367,6 +2390,8 @@ function WideAgentCard({
|
|
|
2367
2390
|
label,
|
|
2368
2391
|
nameFallback,
|
|
2369
2392
|
helperText,
|
|
2393
|
+
whatsappLabel,
|
|
2394
|
+
emailLabel,
|
|
2370
2395
|
className
|
|
2371
2396
|
}) {
|
|
2372
2397
|
const hasAgent = !!name;
|
|
@@ -2414,7 +2439,7 @@ function WideAgentCard({
|
|
|
2414
2439
|
className: "flex items-center gap-2.5 rounded-lg border border-border px-4 py-2.5 text-sm font-sans text-foreground hover:bg-muted/50 transition-colors",
|
|
2415
2440
|
children: [
|
|
2416
2441
|
/* @__PURE__ */ jsx("svg", { className: "w-4 h-4 shrink-0 text-[#25D366]", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ jsx("path", { d: "M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413z" }) }),
|
|
2417
|
-
"WhatsApp"
|
|
2442
|
+
whatsappLabel != null ? whatsappLabel : "WhatsApp"
|
|
2418
2443
|
]
|
|
2419
2444
|
}
|
|
2420
2445
|
),
|
|
@@ -2425,7 +2450,7 @@ function WideAgentCard({
|
|
|
2425
2450
|
className: "flex items-center gap-2.5 rounded-lg border border-border px-4 py-2.5 text-sm font-sans text-foreground hover:bg-muted/50 transition-colors",
|
|
2426
2451
|
children: [
|
|
2427
2452
|
/* @__PURE__ */ jsx(MailIcon, { className: "w-4 h-4 shrink-0 text-primary" }),
|
|
2428
|
-
"Email"
|
|
2453
|
+
emailLabel != null ? emailLabel : "Email"
|
|
2429
2454
|
]
|
|
2430
2455
|
}
|
|
2431
2456
|
)
|
|
@@ -2524,7 +2549,7 @@ function AdventureSection({
|
|
|
2524
2549
|
cannotRemoveLastTravellerLabel,
|
|
2525
2550
|
labels
|
|
2526
2551
|
}) {
|
|
2527
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l;
|
|
2552
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r;
|
|
2528
2553
|
const [detailsOpen, setDetailsOpen] = React23.useState(false);
|
|
2529
2554
|
const handleCopyUrl = (url) => {
|
|
2530
2555
|
if (onCopyFormLink) {
|
|
@@ -2617,7 +2642,7 @@ function AdventureSection({
|
|
|
2617
2642
|
) : /* @__PURE__ */ jsx("p", { className: "text-sm text-foreground/80 leading-snug font-sans", children: adventure.description })
|
|
2618
2643
|
] }),
|
|
2619
2644
|
adventure.included && adventure.included.length > 0 && /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-2", children: [
|
|
2620
|
-
/* @__PURE__ */ jsx("h4", { className: "text-xs font-bold text-muted-foreground font-heading uppercase tracking-widest", children:
|
|
2645
|
+
/* @__PURE__ */ jsx("h4", { className: "text-xs font-bold text-muted-foreground font-heading uppercase tracking-widest", children: (_g = (_f = labels == null ? void 0 : labels.adventureSections) == null ? void 0 : _f.included) != null ? _g : "What's included" }),
|
|
2621
2646
|
/* @__PURE__ */ jsx("ul", { className: "flex flex-col gap-1.5", children: adventure.included.map((item, i) => /* @__PURE__ */ jsxs(
|
|
2622
2647
|
"li",
|
|
2623
2648
|
{
|
|
@@ -2631,7 +2656,7 @@ function AdventureSection({
|
|
|
2631
2656
|
)) })
|
|
2632
2657
|
] }),
|
|
2633
2658
|
adventure.notIncluded && adventure.notIncluded.length > 0 && /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-2", children: [
|
|
2634
|
-
/* @__PURE__ */ jsx("h4", { className: "text-xs font-bold text-muted-foreground font-heading uppercase tracking-widest", children:
|
|
2659
|
+
/* @__PURE__ */ jsx("h4", { className: "text-xs font-bold text-muted-foreground font-heading uppercase tracking-widest", children: (_i = (_h = labels == null ? void 0 : labels.adventureSections) == null ? void 0 : _h.notIncluded) != null ? _i : "What's not included" }),
|
|
2635
2660
|
/* @__PURE__ */ jsx("ul", { className: "flex flex-col gap-1.5", children: adventure.notIncluded.map((item, i) => /* @__PURE__ */ jsxs(
|
|
2636
2661
|
"li",
|
|
2637
2662
|
{
|
|
@@ -2645,7 +2670,7 @@ function AdventureSection({
|
|
|
2645
2670
|
)) })
|
|
2646
2671
|
] }),
|
|
2647
2672
|
adventure.cancellationPolicy && adventure.cancellationPolicy.length > 0 && /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-2", children: [
|
|
2648
|
-
/* @__PURE__ */ jsx("h4", { className: "text-xs font-bold text-muted-foreground font-heading uppercase tracking-widest", children:
|
|
2673
|
+
/* @__PURE__ */ jsx("h4", { className: "text-xs font-bold text-muted-foreground font-heading uppercase tracking-widest", children: (_k = (_j = labels == null ? void 0 : labels.adventureSections) == null ? void 0 : _j.cancellationPolicy) != null ? _k : "Cancellation policy" }),
|
|
2649
2674
|
/* @__PURE__ */ jsx("ul", { className: "flex flex-col gap-1.5", children: adventure.cancellationPolicy.map((item, i) => /* @__PURE__ */ jsxs(
|
|
2650
2675
|
"li",
|
|
2651
2676
|
{
|
|
@@ -2662,7 +2687,7 @@ function AdventureSection({
|
|
|
2662
2687
|
/* @__PURE__ */ jsxs("div", { className: "border-t border-border px-5 lg:px-6 py-5 flex flex-col gap-4", children: [
|
|
2663
2688
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between gap-3 flex-wrap", children: [
|
|
2664
2689
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
2665
|
-
/* @__PURE__ */ jsx("h4", { className: "text-xs font-bold text-muted-foreground font-heading uppercase tracking-widest", children: (
|
|
2690
|
+
/* @__PURE__ */ jsx("h4", { className: "text-xs font-bold text-muted-foreground font-heading uppercase tracking-widest", children: (_l = labels == null ? void 0 : labels.travellersSection) != null ? _l : "Travellers" }),
|
|
2666
2691
|
adventure.formName && /* @__PURE__ */ jsxs("span", { className: "text-xs font-semibold text-muted-foreground/50 font-heading tracking-wide", children: [
|
|
2667
2692
|
"\xB7 ",
|
|
2668
2693
|
adventure.formName
|
|
@@ -2682,8 +2707,8 @@ function AdventureSection({
|
|
|
2682
2707
|
),
|
|
2683
2708
|
children: [
|
|
2684
2709
|
/* @__PURE__ */ jsx(UserPlusIcon, { className: "w-3 h-3" }),
|
|
2685
|
-
/* @__PURE__ */ jsx("span", { className: "hidden sm:inline", children: (
|
|
2686
|
-
/* @__PURE__ */ jsx("span", { className: "sm:hidden", children: (
|
|
2710
|
+
/* @__PURE__ */ jsx("span", { className: "hidden sm:inline", children: (_m = labels == null ? void 0 : labels.addContactAsTraveller) != null ? _m : "Add contact as traveller" }),
|
|
2711
|
+
/* @__PURE__ */ jsx("span", { className: "sm:hidden", children: (_n = labels == null ? void 0 : labels.addContactAsTravellerShort) != null ? _n : "Add contact" })
|
|
2687
2712
|
]
|
|
2688
2713
|
}
|
|
2689
2714
|
),
|
|
@@ -2701,8 +2726,8 @@ function AdventureSection({
|
|
|
2701
2726
|
className: "flex items-center gap-1.5 rounded-full border border-border px-3 py-1.5 text-xs font-ui text-primary hover:border-primary hover:bg-primary/5 transition-colors",
|
|
2702
2727
|
children: [
|
|
2703
2728
|
/* @__PURE__ */ jsx(PlusIcon, { className: "w-3 h-3" }),
|
|
2704
|
-
/* @__PURE__ */ jsx("span", { className: "hidden sm:inline", children: (
|
|
2705
|
-
/* @__PURE__ */ jsx("span", { className: "sm:hidden", children: (
|
|
2729
|
+
/* @__PURE__ */ jsx("span", { className: "hidden sm:inline", children: (_o = adventure.addTravellerLabel) != null ? _o : "More travellers" }),
|
|
2730
|
+
/* @__PURE__ */ jsx("span", { className: "sm:hidden", children: (_q = (_p = adventure.addTravellerShortLabel) != null ? _p : adventure.addTravellerLabel) != null ? _q : "Add" })
|
|
2706
2731
|
]
|
|
2707
2732
|
}
|
|
2708
2733
|
)
|
|
@@ -2867,7 +2892,7 @@ function AdventureSection({
|
|
|
2867
2892
|
)) })
|
|
2868
2893
|
] });
|
|
2869
2894
|
})(),
|
|
2870
|
-
adventure.registrationNotRequired ? /* @__PURE__ */ jsx("div", { className: "flex items-center gap-2 mt-1", children: /* @__PURE__ */ jsx("span", { className: "text-xs font-ui text-muted-foreground", children: (
|
|
2895
|
+
adventure.registrationNotRequired ? /* @__PURE__ */ jsx("div", { className: "flex items-center gap-2 mt-1", children: /* @__PURE__ */ jsx("span", { className: "text-xs font-ui text-muted-foreground", children: (_r = adventure.noRegistrationRequiredLabel) != null ? _r : "No registration required" }) }) : adventure.travellers.length > 0 && totalSlots > 0 && (() => {
|
|
2871
2896
|
var _a2, _b2;
|
|
2872
2897
|
const completed = adventure.travellers.filter((t) => t.status === "completed").length;
|
|
2873
2898
|
const percent = Math.round(completed / totalSlots * 100);
|
|
@@ -3355,7 +3380,7 @@ function BookingDetails({
|
|
|
3355
3380
|
labels,
|
|
3356
3381
|
className
|
|
3357
3382
|
}) {
|
|
3358
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u;
|
|
3383
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D, _E, _F;
|
|
3359
3384
|
const people = totalPeople(adventures);
|
|
3360
3385
|
const hasSubmitAddTraveller = !!onSubmitAddTraveller;
|
|
3361
3386
|
const hasSubmitEditTraveller = !!onSubmitEditTraveller;
|
|
@@ -3542,23 +3567,23 @@ function BookingDetails({
|
|
|
3542
3567
|
/* @__PURE__ */ jsx("h3", { className: "text-xs font-bold text-muted-foreground font-heading uppercase tracking-widest", children: contactSectionLabel != null ? contactSectionLabel : "Responsible Person" }),
|
|
3543
3568
|
/* @__PURE__ */ jsxs("div", { className: "grid grid-cols-2 sm:grid-cols-3 gap-x-6 gap-y-3", children: [
|
|
3544
3569
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
3545
|
-
/* @__PURE__ */ jsx("p", { className: "text-xs font-bold text-muted-foreground/60 font-heading uppercase tracking-widest mb-0.5", children: "Name" }),
|
|
3570
|
+
/* @__PURE__ */ jsx("p", { className: "text-xs font-bold text-muted-foreground/60 font-heading uppercase tracking-widest mb-0.5", children: (_t = (_s = labels == null ? void 0 : labels.contactDetailsFields) == null ? void 0 : _s.name) != null ? _t : "Name" }),
|
|
3546
3571
|
/* @__PURE__ */ jsx("p", { className: "text-sm font-semibold text-foreground font-sans", children: contact.name })
|
|
3547
3572
|
] }),
|
|
3548
3573
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
3549
|
-
/* @__PURE__ */ jsx("p", { className: "text-xs font-bold text-muted-foreground/60 font-heading uppercase tracking-widest mb-0.5", children: "Email" }),
|
|
3550
|
-
/* @__PURE__ */ jsx("p", { className: "text-sm text-foreground font-sans truncate", children: (
|
|
3574
|
+
/* @__PURE__ */ jsx("p", { className: "text-xs font-bold text-muted-foreground/60 font-heading uppercase tracking-widest mb-0.5", children: (_v = (_u = labels == null ? void 0 : labels.contactDetailsFields) == null ? void 0 : _u.email) != null ? _v : "Email" }),
|
|
3575
|
+
/* @__PURE__ */ jsx("p", { className: "text-sm text-foreground font-sans truncate", children: (_w = contact.email) != null ? _w : "\u2014" })
|
|
3551
3576
|
] }),
|
|
3552
3577
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
3553
|
-
/* @__PURE__ */ jsx("p", { className: "text-xs font-bold text-muted-foreground/60 font-heading uppercase tracking-widest mb-0.5", children: "Phone" }),
|
|
3554
|
-
/* @__PURE__ */ jsx("p", { className: "text-sm text-foreground font-sans", children: (
|
|
3578
|
+
/* @__PURE__ */ jsx("p", { className: "text-xs font-bold text-muted-foreground/60 font-heading uppercase tracking-widest mb-0.5", children: (_y = (_x = labels == null ? void 0 : labels.contactDetailsFields) == null ? void 0 : _x.phone) != null ? _y : "Phone" }),
|
|
3579
|
+
/* @__PURE__ */ jsx("p", { className: "text-sm text-foreground font-sans", children: (_z = contact.phone) != null ? _z : "\u2014" })
|
|
3555
3580
|
] }),
|
|
3556
3581
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
3557
|
-
/* @__PURE__ */ jsx("p", { className: "text-xs font-bold text-muted-foreground/60 font-heading uppercase tracking-widest mb-0.5", children: "Country" }),
|
|
3558
|
-
/* @__PURE__ */ jsx("p", { className: "text-sm text-foreground font-sans", children: (
|
|
3582
|
+
/* @__PURE__ */ jsx("p", { className: "text-xs font-bold text-muted-foreground/60 font-heading uppercase tracking-widest mb-0.5", children: (_B = (_A = labels == null ? void 0 : labels.contactDetailsFields) == null ? void 0 : _A.country) != null ? _B : "Country" }),
|
|
3583
|
+
/* @__PURE__ */ jsx("p", { className: "text-sm text-foreground font-sans", children: (_C = contact.country) != null ? _C : "\u2014" })
|
|
3559
3584
|
] }),
|
|
3560
3585
|
contact.passport && /* @__PURE__ */ jsxs("div", { children: [
|
|
3561
|
-
/* @__PURE__ */ jsx("p", { className: "text-xs font-bold text-muted-foreground/60 font-heading uppercase tracking-widest mb-0.5", children: "Passport /
|
|
3586
|
+
/* @__PURE__ */ jsx("p", { className: "text-xs font-bold text-muted-foreground/60 font-heading uppercase tracking-widest mb-0.5", children: (_E = (_D = labels == null ? void 0 : labels.contactDetailsFields) == null ? void 0 : _D.document) != null ? _E : "Passport / ID" }),
|
|
3562
3587
|
/* @__PURE__ */ jsx("p", { className: "text-sm text-foreground font-sans", children: contact.passport })
|
|
3563
3588
|
] })
|
|
3564
3589
|
] })
|
|
@@ -3606,7 +3631,7 @@ function BookingDetails({
|
|
|
3606
3631
|
className: "flex items-center gap-1.5 text-xs font-ui text-muted-foreground hover:text-destructive transition-colors underline underline-offset-2",
|
|
3607
3632
|
children: [
|
|
3608
3633
|
/* @__PURE__ */ jsx(AlertCircleIcon, { className: "w-3 h-3" }),
|
|
3609
|
-
"Request cancellation"
|
|
3634
|
+
(_F = labels == null ? void 0 : labels.cancelRequestLabel) != null ? _F : "Request cancellation"
|
|
3610
3635
|
]
|
|
3611
3636
|
}
|
|
3612
3637
|
)
|
|
@@ -4865,7 +4890,11 @@ var DEFAULT_LABELS3 = {
|
|
|
4865
4890
|
nationalityLabel: "Nationality",
|
|
4866
4891
|
selectPlaceholder: "Select an option\u2026",
|
|
4867
4892
|
optionalLabel: "(optional)",
|
|
4868
|
-
requiredFieldError: "Required"
|
|
4893
|
+
requiredFieldError: "Required",
|
|
4894
|
+
dateLabel: "Date",
|
|
4895
|
+
datesLabel: "Dates",
|
|
4896
|
+
yesLabel: "Yes",
|
|
4897
|
+
noLabel: "No"
|
|
4869
4898
|
};
|
|
4870
4899
|
var TERMS_ACCEPT_KEY = "__registrationTermsAccepted";
|
|
4871
4900
|
function emptyName() {
|
|
@@ -5646,7 +5675,7 @@ function RegistrationForm({
|
|
|
5646
5675
|
/* @__PURE__ */ jsx("dd", { className: "text-foreground font-medium text-right min-w-0 break-words", children: adventure.name })
|
|
5647
5676
|
] }),
|
|
5648
5677
|
dateRange && /* @__PURE__ */ jsxs("div", { className: "flex items-start justify-between gap-x-4", children: [
|
|
5649
|
-
/* @__PURE__ */ jsx("dt", { className: "text-muted-foreground", children: (adventure == null ? void 0 : adventure.startDate) && (adventure == null ? void 0 : adventure.endDate) ?
|
|
5678
|
+
/* @__PURE__ */ jsx("dt", { className: "text-muted-foreground", children: (adventure == null ? void 0 : adventure.startDate) && (adventure == null ? void 0 : adventure.endDate) ? L.datesLabel : L.dateLabel }),
|
|
5650
5679
|
/* @__PURE__ */ jsx("dd", { className: "text-foreground text-right min-w-0", children: dateRange })
|
|
5651
5680
|
] }),
|
|
5652
5681
|
(adventure == null ? void 0 : adventure.partnerName) && /* @__PURE__ */ jsxs("div", { className: "flex items-start justify-between gap-x-4", children: [
|
|
@@ -5830,8 +5859,8 @@ function phoneCountryDial(code) {
|
|
|
5830
5859
|
var _a, _b;
|
|
5831
5860
|
return (_b = (_a = PHONE_COUNTRIES.find((c) => c.code === code)) == null ? void 0 : _a.dial) != null ? _b : code;
|
|
5832
5861
|
}
|
|
5833
|
-
function defaultFormatAnswer(field, value, fmtDate) {
|
|
5834
|
-
var _a, _b, _c, _d, _e, _f;
|
|
5862
|
+
function defaultFormatAnswer(field, value, fmtDate, yesNoLabels) {
|
|
5863
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
5835
5864
|
if (value == null || value === "") return "\u2014";
|
|
5836
5865
|
if (value instanceof Date) return fmtDate(value);
|
|
5837
5866
|
if (Array.isArray(value)) {
|
|
@@ -5840,7 +5869,8 @@ function defaultFormatAnswer(field, value, fmtDate) {
|
|
|
5840
5869
|
}
|
|
5841
5870
|
return value.filter(Boolean).join(", ") || "\u2014";
|
|
5842
5871
|
}
|
|
5843
|
-
if (typeof value === "boolean")
|
|
5872
|
+
if (typeof value === "boolean")
|
|
5873
|
+
return value ? (_a = yesNoLabels == null ? void 0 : yesNoLabels.yesLabel) != null ? _a : "Yes" : (_b = yesNoLabels == null ? void 0 : yesNoLabels.noLabel) != null ? _b : "No";
|
|
5844
5874
|
if (typeof value === "object") {
|
|
5845
5875
|
if ("contactName" in value) {
|
|
5846
5876
|
const ec = value;
|
|
@@ -5858,13 +5888,13 @@ function defaultFormatAnswer(field, value, fmtDate) {
|
|
|
5858
5888
|
}
|
|
5859
5889
|
}
|
|
5860
5890
|
if (field.type === "nationality" && typeof value === "string") {
|
|
5861
|
-
return (
|
|
5891
|
+
return (_d = (_c = COUNTRIES.find((c) => c.code === value)) == null ? void 0 : _c.name) != null ? _d : value;
|
|
5862
5892
|
}
|
|
5863
5893
|
if (field.type === "select" && field.options) {
|
|
5864
|
-
return (
|
|
5894
|
+
return (_f = (_e = field.options.find((o) => o.value === value)) == null ? void 0 : _e.label) != null ? _f : String(value);
|
|
5865
5895
|
}
|
|
5866
5896
|
if (field.type === "radio" && field.options) {
|
|
5867
|
-
return (
|
|
5897
|
+
return (_h = (_g = field.options.find((o) => o.value === value)) == null ? void 0 : _g.label) != null ? _h : String(value);
|
|
5868
5898
|
}
|
|
5869
5899
|
if (field.type === "date" && typeof value === "string") return fmtDate(value);
|
|
5870
5900
|
return String(value);
|
|
@@ -5897,9 +5927,10 @@ function RegistrationSuccessCard({
|
|
|
5897
5927
|
tripInfoLabels,
|
|
5898
5928
|
density = "comfortable",
|
|
5899
5929
|
submissionTimestamps,
|
|
5900
|
-
submissionTimestampsLabels
|
|
5930
|
+
submissionTimestampsLabels,
|
|
5931
|
+
labels: scLabels
|
|
5901
5932
|
}) {
|
|
5902
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
|
|
5933
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l;
|
|
5903
5934
|
const isMinimal = variant === "minimal";
|
|
5904
5935
|
const isCompact = density === "compact";
|
|
5905
5936
|
const sorted = isMinimal ? [] : [...fields].sort((a, b) => {
|
|
@@ -5968,7 +5999,7 @@ function RegistrationSuccessCard({
|
|
|
5968
5999
|
/* @__PURE__ */ jsx("dd", { className: "w-1/2 text-foreground font-medium text-right min-w-0 break-words", children: adventure.name })
|
|
5969
6000
|
] }),
|
|
5970
6001
|
dateRange && /* @__PURE__ */ jsxs("div", { className: "flex items-start gap-x-4", children: [
|
|
5971
|
-
/* @__PURE__ */ jsx("dt", { className: "w-1/2 text-muted-foreground break-words", children: (adventure == null ? void 0 : adventure.startDate) && (adventure == null ? void 0 : adventure.endDate) ? "Dates" : "Date" }),
|
|
6002
|
+
/* @__PURE__ */ jsx("dt", { className: "w-1/2 text-muted-foreground break-words", children: (adventure == null ? void 0 : adventure.startDate) && (adventure == null ? void 0 : adventure.endDate) ? (_h = scLabels == null ? void 0 : scLabels.datesLabel) != null ? _h : "Dates" : (_i = scLabels == null ? void 0 : scLabels.dateLabel) != null ? _i : "Date" }),
|
|
5972
6003
|
/* @__PURE__ */ jsx("dd", { className: "w-1/2 text-foreground text-right min-w-0 break-words", children: dateRange })
|
|
5973
6004
|
] }),
|
|
5974
6005
|
(adventure == null ? void 0 : adventure.partnerName) && /* @__PURE__ */ jsxs("div", { className: "flex items-start gap-x-4", children: [
|
|
@@ -5986,18 +6017,21 @@ function RegistrationSuccessCard({
|
|
|
5986
6017
|
] }) }),
|
|
5987
6018
|
sorted.length > 0 && /* @__PURE__ */ jsx(FormSection2, { title: answersTitle, children: /* @__PURE__ */ jsx("dl", { className: "flex flex-col gap-y-3 text-sm font-ui", children: sorted.map((f) => /* @__PURE__ */ jsxs("div", { className: "flex items-start gap-x-4", children: [
|
|
5988
6019
|
/* @__PURE__ */ jsx("dt", { className: "w-1/2 text-muted-foreground break-words", children: f.label }),
|
|
5989
|
-
/* @__PURE__ */ jsx("dd", { className: "w-1/2 text-foreground text-right min-w-0 break-words", children: (formatAnswer != null ? formatAnswer : ((field, v) => defaultFormatAnswer(field, v, dateFormatter
|
|
6020
|
+
/* @__PURE__ */ jsx("dd", { className: "w-1/2 text-foreground text-right min-w-0 break-words", children: (formatAnswer != null ? formatAnswer : ((field, v) => defaultFormatAnswer(field, v, dateFormatter, {
|
|
6021
|
+
yesLabel: scLabels == null ? void 0 : scLabels.yesLabel,
|
|
6022
|
+
noLabel: scLabels == null ? void 0 : scLabels.noLabel
|
|
6023
|
+
})))(
|
|
5990
6024
|
f,
|
|
5991
6025
|
answers[f.id]
|
|
5992
6026
|
) })
|
|
5993
6027
|
] }, f.id)) }) }),
|
|
5994
|
-
!isMinimal && terms && /* @__PURE__ */ jsx(FormSection2, { title: (
|
|
6028
|
+
!isMinimal && terms && /* @__PURE__ */ jsx(FormSection2, { title: (_j = termsLabels == null ? void 0 : termsLabels.title) != null ? _j : "Terms & Conditions", children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-3 text-sm font-ui", children: [
|
|
5995
6029
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
5996
6030
|
/* @__PURE__ */ jsx("div", { className: cn(
|
|
5997
6031
|
"inline-flex h-5 w-5 items-center justify-center rounded-full text-white text-xs font-bold",
|
|
5998
6032
|
terms.accepted ? "bg-primary" : "bg-destructive"
|
|
5999
6033
|
), children: terms.accepted ? "\u2713" : "\u2717" }),
|
|
6000
|
-
/* @__PURE__ */ jsx("span", { className: terms.accepted ? "text-primary font-medium" : "text-destructive font-medium", children: terms.accepted ? (
|
|
6034
|
+
/* @__PURE__ */ jsx("span", { className: terms.accepted ? "text-primary font-medium" : "text-destructive font-medium", children: terms.accepted ? (_k = termsLabels == null ? void 0 : termsLabels.accepted) != null ? _k : "Accepted" : (_l = termsLabels == null ? void 0 : termsLabels.notAccepted) != null ? _l : "Not accepted" })
|
|
6001
6035
|
] }),
|
|
6002
6036
|
termsLayout === "full" && terms.markdown.trim().length > 0 && /* @__PURE__ */ jsx(
|
|
6003
6037
|
"div",
|