@asdp/ferryui 0.1.22-dev.10229 → 0.1.22-dev.10231
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.d.mts +53 -21
- package/dist/index.d.ts +53 -21
- package/dist/index.js +257 -69
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +257 -69
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -275,7 +275,10 @@ var sharedColors = {
|
|
|
275
275
|
"Shared_Red_Primary": "#d13438",
|
|
276
276
|
"Shared_Orange_Shade_20": "#bc4b09",
|
|
277
277
|
"Shared_Orange_Tint_60": "#fff9f5",
|
|
278
|
-
"Shared_Green_Primary": "#107c10"
|
|
278
|
+
"Shared_Green_Primary": "#107c10",
|
|
279
|
+
"Shared_Lilac_Primary": "#b146c2",
|
|
280
|
+
"Shared_Lilac_Tint_40": "#e6bfed",
|
|
281
|
+
"Shared_Lilac_Tint_60": "#fcf6fd"};
|
|
279
282
|
var foundationColors = {
|
|
280
283
|
"Foundation_Danger_error": "#FD3A3A"
|
|
281
284
|
};
|
|
@@ -14859,7 +14862,7 @@ var CardAddon = ({
|
|
|
14859
14862
|
/* @__PURE__ */ jsxs(Caption1Stronger, { children: [
|
|
14860
14863
|
mergedLabels.currencySymbol,
|
|
14861
14864
|
" ",
|
|
14862
|
-
footerData.price
|
|
14865
|
+
footerData.price?.toLocaleString(
|
|
14863
14866
|
language === "id" ? "id-ID" : "en-US"
|
|
14864
14867
|
),
|
|
14865
14868
|
footerData.priceUnit
|
|
@@ -15010,7 +15013,7 @@ var CardAddon = ({
|
|
|
15010
15013
|
/* @__PURE__ */ jsxs(Subtitle1, { style: { fontSize: tokens.fontSizeBase600 }, children: [
|
|
15011
15014
|
mergedLabels.currencySymbol,
|
|
15012
15015
|
" ",
|
|
15013
|
-
footerData.price
|
|
15016
|
+
footerData.price?.toLocaleString(
|
|
15014
15017
|
language === "id" ? "id-ID" : "en-US"
|
|
15015
15018
|
)
|
|
15016
15019
|
] })
|
|
@@ -15360,7 +15363,8 @@ var CardReview = ({
|
|
|
15360
15363
|
items,
|
|
15361
15364
|
children,
|
|
15362
15365
|
className,
|
|
15363
|
-
headerAction
|
|
15366
|
+
headerAction,
|
|
15367
|
+
isLoading = false
|
|
15364
15368
|
}) => {
|
|
15365
15369
|
const styles = useStyles33();
|
|
15366
15370
|
const mergedLabels = { ...DEFAULT_LABELS32[language], ...labels };
|
|
@@ -15371,39 +15375,60 @@ var CardReview = ({
|
|
|
15371
15375
|
headerAction && /* @__PURE__ */ jsx("div", { children: headerAction })
|
|
15372
15376
|
] }),
|
|
15373
15377
|
/* @__PURE__ */ jsxs("div", { className: styles.contentContainer, children: [
|
|
15374
|
-
|
|
15375
|
-
|
|
15376
|
-
|
|
15377
|
-
{
|
|
15378
|
-
|
|
15379
|
-
|
|
15380
|
-
|
|
15381
|
-
|
|
15382
|
-
|
|
15383
|
-
|
|
15384
|
-
|
|
15385
|
-
|
|
15386
|
-
|
|
15387
|
-
|
|
15388
|
-
|
|
15389
|
-
|
|
15390
|
-
|
|
15391
|
-
|
|
15392
|
-
|
|
15393
|
-
|
|
15394
|
-
|
|
15395
|
-
|
|
15396
|
-
|
|
15397
|
-
|
|
15398
|
-
|
|
15399
|
-
|
|
15400
|
-
|
|
15401
|
-
|
|
15402
|
-
|
|
15403
|
-
|
|
15404
|
-
|
|
15405
|
-
|
|
15406
|
-
|
|
15378
|
+
isLoading ? /* @__PURE__ */ jsx(Fragment, { children: Array.from({ length: 4 }).map((_, index) => /* @__PURE__ */ jsx("div", { className: styles.row, children: /* @__PURE__ */ jsxs(
|
|
15379
|
+
Skeleton,
|
|
15380
|
+
{
|
|
15381
|
+
style: { width: "100%", display: "flex", gap: "1rem" },
|
|
15382
|
+
children: [
|
|
15383
|
+
/* @__PURE__ */ jsx(SkeletonItem, { style: { width: "40%", height: "16px" } }),
|
|
15384
|
+
/* @__PURE__ */ jsx(
|
|
15385
|
+
SkeletonItem,
|
|
15386
|
+
{
|
|
15387
|
+
style: { width: "30%", height: "16px", marginLeft: "auto" }
|
|
15388
|
+
}
|
|
15389
|
+
)
|
|
15390
|
+
]
|
|
15391
|
+
}
|
|
15392
|
+
) }, index)) }) : /* @__PURE__ */ jsx(Fragment, { children: items?.map((item, index) => /* @__PURE__ */ jsxs(
|
|
15393
|
+
"div",
|
|
15394
|
+
{
|
|
15395
|
+
className: `${styles.row} ${item.className || ""}`,
|
|
15396
|
+
children: [
|
|
15397
|
+
typeof item.label === "string" ? /* @__PURE__ */ jsx(
|
|
15398
|
+
Caption1,
|
|
15399
|
+
{
|
|
15400
|
+
className: `${styles.defaultLabel} ${item.labelClassName || ""}`,
|
|
15401
|
+
children: item.label
|
|
15402
|
+
}
|
|
15403
|
+
) : (
|
|
15404
|
+
// Clone element to append className if it's a valid React element
|
|
15405
|
+
React.isValidElement(item.label) ? React.cloneElement(item.label, {
|
|
15406
|
+
className: `${styles.defaultLabel} ${item.labelClassName || ""}${item.label.props.className ? " " + item.label.props.className : ""}`
|
|
15407
|
+
}) : /* @__PURE__ */ jsx(
|
|
15408
|
+
"div",
|
|
15409
|
+
{
|
|
15410
|
+
className: `${styles.defaultLabel} ${item.labelClassName || ""}`,
|
|
15411
|
+
children: item.label
|
|
15412
|
+
}
|
|
15413
|
+
)
|
|
15414
|
+
),
|
|
15415
|
+
typeof item.value === "string" || typeof item.value === "number" ? /* @__PURE__ */ jsx(
|
|
15416
|
+
Body1,
|
|
15417
|
+
{
|
|
15418
|
+
className: `${styles.defaultValue} ${item.valueClassName || ""}`,
|
|
15419
|
+
children: item.value
|
|
15420
|
+
}
|
|
15421
|
+
) : /* @__PURE__ */ jsx(
|
|
15422
|
+
"div",
|
|
15423
|
+
{
|
|
15424
|
+
className: `${styles.defaultValue} ${item.valueClassName || ""}`,
|
|
15425
|
+
children: item.value
|
|
15426
|
+
}
|
|
15427
|
+
)
|
|
15428
|
+
]
|
|
15429
|
+
},
|
|
15430
|
+
index
|
|
15431
|
+
)) }),
|
|
15407
15432
|
children
|
|
15408
15433
|
] })
|
|
15409
15434
|
] });
|
|
@@ -15492,7 +15517,8 @@ var CardReviewPassenger = ({
|
|
|
15492
15517
|
labels,
|
|
15493
15518
|
title,
|
|
15494
15519
|
passengers,
|
|
15495
|
-
className
|
|
15520
|
+
className,
|
|
15521
|
+
isLoading = false
|
|
15496
15522
|
}) => {
|
|
15497
15523
|
const styles = useStyles34();
|
|
15498
15524
|
const mergedLabels = { ...DEFAULT_LABELS33[language], ...labels };
|
|
@@ -15502,7 +15528,13 @@ var CardReviewPassenger = ({
|
|
|
15502
15528
|
/* @__PURE__ */ jsx(Subtitle1, { children: displayTitle }),
|
|
15503
15529
|
/* @__PURE__ */ jsx(Divider, { className: styles.titleDivider })
|
|
15504
15530
|
] }) }),
|
|
15505
|
-
|
|
15531
|
+
isLoading ? Array.from({ length: 2 }).map((_, index) => /* @__PURE__ */ jsx(Col, { xs: 12, children: /* @__PURE__ */ jsx(Card, { className: styles.passengerCard, children: /* @__PURE__ */ jsxs(Row, { nogutter: true, className: styles.passengerRow, children: [
|
|
15532
|
+
/* @__PURE__ */ jsx(Col, { children: /* @__PURE__ */ jsxs(Skeleton, { children: [
|
|
15533
|
+
/* @__PURE__ */ jsx(SkeletonItem, { style: { width: "180px", height: "18px", marginBottom: "8px" } }),
|
|
15534
|
+
/* @__PURE__ */ jsx(SkeletonItem, { style: { width: "220px", height: "16px" } })
|
|
15535
|
+
] }) }),
|
|
15536
|
+
/* @__PURE__ */ jsx(Col, { xs: "content", children: /* @__PURE__ */ jsx(Skeleton, { children: /* @__PURE__ */ jsx(SkeletonItem, { style: { width: "90px", height: "32px" } }) }) })
|
|
15537
|
+
] }) }) }, index)) : passengers.map((passenger, index) => {
|
|
15506
15538
|
const badgeConfig = getBadgeConfig(passenger.serviceClass);
|
|
15507
15539
|
const passengerMeta = `${passenger.ageLabel} \xB7 ${mergedLabels.idNumber} ${passenger.identityNumber}`;
|
|
15508
15540
|
return /* @__PURE__ */ jsx(Col, { xs: 12, children: /* @__PURE__ */ jsx(Card, { className: styles.passengerCard, children: /* @__PURE__ */ jsxs(Row, { nogutter: true, className: styles.passengerRow, children: [
|
|
@@ -15545,7 +15577,9 @@ var DEFAULT_LABELS34 = {
|
|
|
15545
15577
|
addOnLabel: "Add On",
|
|
15546
15578
|
viewDetail: "Lihat Detail",
|
|
15547
15579
|
noAddOnsLabel: "Tidak ada layanan",
|
|
15548
|
-
serviceLabel: "Layanan"
|
|
15580
|
+
serviceLabel: "Layanan",
|
|
15581
|
+
departureLabel: "Pulang Pergi (Keberangkatan)",
|
|
15582
|
+
returnLabel: "Pulang Pergi (Kepulangan)"
|
|
15549
15583
|
},
|
|
15550
15584
|
en: {
|
|
15551
15585
|
title: "Booking Details",
|
|
@@ -15557,7 +15591,9 @@ var DEFAULT_LABELS34 = {
|
|
|
15557
15591
|
addOnLabel: "Add On",
|
|
15558
15592
|
viewDetail: "View Details",
|
|
15559
15593
|
noAddOnsLabel: "No services",
|
|
15560
|
-
serviceLabel: "Service"
|
|
15594
|
+
serviceLabel: "Service",
|
|
15595
|
+
departureLabel: "Round Trip (Departure)",
|
|
15596
|
+
returnLabel: "Round Trip (Return)"
|
|
15561
15597
|
}
|
|
15562
15598
|
};
|
|
15563
15599
|
var useStyles35 = makeStyles({
|
|
@@ -15580,59 +15616,211 @@ var useStyles35 = makeStyles({
|
|
|
15580
15616
|
alignItems: "center",
|
|
15581
15617
|
justifyContent: "space-between",
|
|
15582
15618
|
width: "100%"
|
|
15619
|
+
},
|
|
15620
|
+
badgeLilac: {
|
|
15621
|
+
borderRadius: tokens.borderRadiusXLarge,
|
|
15622
|
+
border: `0px solid ${sharedColors.Shared_Lilac_Tint_40}`,
|
|
15623
|
+
color: sharedColors.Shared_Lilac_Primary,
|
|
15624
|
+
backgroundColor: sharedColors.Shared_Lilac_Tint_60
|
|
15625
|
+
},
|
|
15626
|
+
badgeOrange: {
|
|
15627
|
+
borderRadius: tokens.borderRadiusXLarge,
|
|
15628
|
+
border: `0px solid ${tokens.colorStatusWarningForeground2}`,
|
|
15629
|
+
color: tokens.colorStatusWarningForeground2,
|
|
15630
|
+
backgroundColor: sharedColors.Shared_Orange_Tint_60
|
|
15583
15631
|
}
|
|
15584
15632
|
});
|
|
15633
|
+
var TripSection = ({ data, label, badgeClassName, mergedLabels, onViewAddOns }) => {
|
|
15634
|
+
const styles = useStyles35();
|
|
15635
|
+
return /* @__PURE__ */ jsxs(Row, { nogutter: true, direction: "column", style: { gap: tokens.spacingHorizontalL }, children: [
|
|
15636
|
+
label && /* @__PURE__ */ jsx(Col, { xs: 12, children: /* @__PURE__ */ jsx(
|
|
15637
|
+
Badge,
|
|
15638
|
+
{
|
|
15639
|
+
size: "extra-large",
|
|
15640
|
+
appearance: "tint",
|
|
15641
|
+
shape: "circular",
|
|
15642
|
+
className: badgeClassName,
|
|
15643
|
+
children: label
|
|
15644
|
+
}
|
|
15645
|
+
) }),
|
|
15646
|
+
/* @__PURE__ */ jsx(Col, { xs: 12, children: /* @__PURE__ */ jsxs(Row, { className: styles.fieldRow, children: [
|
|
15647
|
+
/* @__PURE__ */ jsx(Col, { xs: 12, sm: 12, md: 6, children: /* @__PURE__ */ jsx(Field, { label: mergedLabels.fromLabel, children: /* @__PURE__ */ jsx(Body1Strong, { children: data.from }) }) }),
|
|
15648
|
+
/* @__PURE__ */ jsx(Col, { xs: 12, sm: 12, md: 6, children: /* @__PURE__ */ jsx(Field, { label: mergedLabels.toLabel, children: /* @__PURE__ */ jsx(Body1Strong, { children: data.to }) }) })
|
|
15649
|
+
] }) }),
|
|
15650
|
+
/* @__PURE__ */ jsx(Col, { xs: 12, children: /* @__PURE__ */ jsxs(Row, { className: styles.fieldRow, children: [
|
|
15651
|
+
/* @__PURE__ */ jsx(Col, { xs: 12, sm: 12, md: 6, children: /* @__PURE__ */ jsx(Field, { label: mergedLabels.scheduleLabel, children: /* @__PURE__ */ jsx(Body1Strong, { children: data.scheduleTime }) }) }),
|
|
15652
|
+
/* @__PURE__ */ jsx(Col, { xs: 12, sm: 12, md: 6, children: /* @__PURE__ */ jsx(Field, { label: mergedLabels.bookingNameLabel, children: /* @__PURE__ */ jsx(Body1Strong, { children: data.bookingName }) }) })
|
|
15653
|
+
] }) }),
|
|
15654
|
+
/* @__PURE__ */ jsx(Col, { xs: 12, children: /* @__PURE__ */ jsxs(Row, { className: styles.fieldRow, children: [
|
|
15655
|
+
/* @__PURE__ */ jsx(Col, { xs: 12, sm: 12, md: 6, children: /* @__PURE__ */ jsx(Field, { label: mergedLabels.passengerTypeLabel, children: /* @__PURE__ */ jsx(Body1Strong, { children: data.passengerType }) }) }),
|
|
15656
|
+
/* @__PURE__ */ jsx(Col, { xs: 12, sm: 12, md: 6, children: /* @__PURE__ */ jsx(Field, { label: mergedLabels.addOnLabel, children: /* @__PURE__ */ jsxs("div", { className: styles.addOnRow, children: [
|
|
15657
|
+
/* @__PURE__ */ jsx(Body1Strong, { children: data.addOnsCount === 0 ? mergedLabels.noAddOnsLabel : `${data.addOnsCount} ${data.addOnsCount === 1 ? mergedLabels.serviceLabel : mergedLabels.serviceLabel}` }),
|
|
15658
|
+
data.addOnsCount > 0 && /* @__PURE__ */ jsx(
|
|
15659
|
+
Button,
|
|
15660
|
+
{
|
|
15661
|
+
appearance: "transparent",
|
|
15662
|
+
onClick: onViewAddOns,
|
|
15663
|
+
style: { color: brandColors[80] },
|
|
15664
|
+
children: mergedLabels.viewDetail
|
|
15665
|
+
}
|
|
15666
|
+
)
|
|
15667
|
+
] }) }) })
|
|
15668
|
+
] }) })
|
|
15669
|
+
] });
|
|
15670
|
+
};
|
|
15585
15671
|
var CardReviewDetail = ({
|
|
15586
15672
|
language = "id",
|
|
15587
15673
|
labels,
|
|
15588
|
-
|
|
15589
|
-
|
|
15590
|
-
scheduleTime,
|
|
15591
|
-
bookingName,
|
|
15592
|
-
passengerType,
|
|
15593
|
-
addOnsCount,
|
|
15674
|
+
departureData,
|
|
15675
|
+
returnData,
|
|
15594
15676
|
onViewAddOns,
|
|
15595
|
-
className
|
|
15677
|
+
className,
|
|
15678
|
+
isLoading = false,
|
|
15679
|
+
isRoundTrip = false
|
|
15596
15680
|
}) => {
|
|
15597
15681
|
const styles = useStyles35();
|
|
15598
15682
|
const mergedLabels = { ...DEFAULT_LABELS34[language], ...labels };
|
|
15599
|
-
return /* @__PURE__ */ jsx(Card, { className: `${styles.card} ${className || ""}`, children: /* @__PURE__ */ jsxs(
|
|
15683
|
+
return /* @__PURE__ */ jsx(Card, { className: `${styles.card} ${className || ""}`, children: isLoading ? /* @__PURE__ */ jsxs(
|
|
15600
15684
|
Row,
|
|
15601
15685
|
{
|
|
15602
15686
|
nogutter: true,
|
|
15603
15687
|
direction: "column",
|
|
15604
15688
|
style: { gap: tokens.spacingHorizontalL },
|
|
15605
15689
|
children: [
|
|
15606
|
-
/* @__PURE__ */ jsx(Col, { xs: 12, children: /* @__PURE__ */
|
|
15607
|
-
/* @__PURE__ */ jsx(Subtitle1, { children: mergedLabels.title }),
|
|
15608
|
-
/* @__PURE__ */ jsx(Divider, { style: { width: 0 } })
|
|
15609
|
-
] }) }),
|
|
15690
|
+
/* @__PURE__ */ jsx(Col, { xs: 12, children: /* @__PURE__ */ jsx(Skeleton, { children: /* @__PURE__ */ jsx(SkeletonItem, { style: { width: "30%", height: "24px" } }) }) }),
|
|
15610
15691
|
/* @__PURE__ */ jsx(Col, { xs: 12, children: /* @__PURE__ */ jsxs(Row, { className: styles.fieldRow, children: [
|
|
15611
|
-
/* @__PURE__ */ jsx(Col, { xs: 12, sm: 12, md: 6, children: /* @__PURE__ */
|
|
15612
|
-
|
|
15692
|
+
/* @__PURE__ */ jsx(Col, { xs: 12, sm: 12, md: 6, children: /* @__PURE__ */ jsxs(Skeleton, { children: [
|
|
15693
|
+
/* @__PURE__ */ jsx(
|
|
15694
|
+
SkeletonItem,
|
|
15695
|
+
{
|
|
15696
|
+
style: {
|
|
15697
|
+
width: "100%",
|
|
15698
|
+
height: "20px",
|
|
15699
|
+
marginBottom: "8px"
|
|
15700
|
+
}
|
|
15701
|
+
}
|
|
15702
|
+
),
|
|
15703
|
+
/* @__PURE__ */ jsx(SkeletonItem, { style: { width: "80%", height: "20px" } })
|
|
15704
|
+
] }) }),
|
|
15705
|
+
/* @__PURE__ */ jsx(Col, { xs: 12, sm: 12, md: 6, children: /* @__PURE__ */ jsxs(Skeleton, { children: [
|
|
15706
|
+
/* @__PURE__ */ jsx(
|
|
15707
|
+
SkeletonItem,
|
|
15708
|
+
{
|
|
15709
|
+
style: {
|
|
15710
|
+
width: "100%",
|
|
15711
|
+
height: "20px",
|
|
15712
|
+
marginBottom: "8px"
|
|
15713
|
+
}
|
|
15714
|
+
}
|
|
15715
|
+
),
|
|
15716
|
+
/* @__PURE__ */ jsx(SkeletonItem, { style: { width: "80%", height: "20px" } })
|
|
15717
|
+
] }) })
|
|
15613
15718
|
] }) }),
|
|
15614
15719
|
/* @__PURE__ */ jsx(Col, { xs: 12, children: /* @__PURE__ */ jsxs(Row, { className: styles.fieldRow, children: [
|
|
15615
|
-
/* @__PURE__ */ jsx(Col, { xs: 12, sm: 12, md: 6, children: /* @__PURE__ */
|
|
15616
|
-
|
|
15720
|
+
/* @__PURE__ */ jsx(Col, { xs: 12, sm: 12, md: 6, children: /* @__PURE__ */ jsxs(Skeleton, { children: [
|
|
15721
|
+
/* @__PURE__ */ jsx(
|
|
15722
|
+
SkeletonItem,
|
|
15723
|
+
{
|
|
15724
|
+
style: {
|
|
15725
|
+
width: "100%",
|
|
15726
|
+
height: "20px",
|
|
15727
|
+
marginBottom: "8px"
|
|
15728
|
+
}
|
|
15729
|
+
}
|
|
15730
|
+
),
|
|
15731
|
+
/* @__PURE__ */ jsx(SkeletonItem, { style: { width: "80%", height: "20px" } })
|
|
15732
|
+
] }) }),
|
|
15733
|
+
/* @__PURE__ */ jsx(Col, { xs: 12, sm: 12, md: 6, children: /* @__PURE__ */ jsxs(Skeleton, { children: [
|
|
15734
|
+
/* @__PURE__ */ jsx(
|
|
15735
|
+
SkeletonItem,
|
|
15736
|
+
{
|
|
15737
|
+
style: {
|
|
15738
|
+
width: "100%",
|
|
15739
|
+
height: "20px",
|
|
15740
|
+
marginBottom: "8px"
|
|
15741
|
+
}
|
|
15742
|
+
}
|
|
15743
|
+
),
|
|
15744
|
+
/* @__PURE__ */ jsx(SkeletonItem, { style: { width: "80%", height: "20px" } })
|
|
15745
|
+
] }) })
|
|
15617
15746
|
] }) }),
|
|
15618
15747
|
/* @__PURE__ */ jsx(Col, { xs: 12, children: /* @__PURE__ */ jsxs(Row, { className: styles.fieldRow, children: [
|
|
15619
|
-
/* @__PURE__ */ jsx(Col, { xs: 12, sm: 12, md: 6, children: /* @__PURE__ */
|
|
15620
|
-
|
|
15621
|
-
|
|
15622
|
-
addOnsCount > 0 && /* @__PURE__ */ jsx(
|
|
15623
|
-
Button,
|
|
15748
|
+
/* @__PURE__ */ jsx(Col, { xs: 12, sm: 12, md: 6, children: /* @__PURE__ */ jsxs(Skeleton, { children: [
|
|
15749
|
+
/* @__PURE__ */ jsx(
|
|
15750
|
+
SkeletonItem,
|
|
15624
15751
|
{
|
|
15625
|
-
|
|
15626
|
-
|
|
15627
|
-
|
|
15628
|
-
|
|
15752
|
+
style: {
|
|
15753
|
+
width: "100%",
|
|
15754
|
+
height: "20px",
|
|
15755
|
+
marginBottom: "8px"
|
|
15756
|
+
}
|
|
15629
15757
|
}
|
|
15630
|
-
)
|
|
15631
|
-
|
|
15758
|
+
),
|
|
15759
|
+
/* @__PURE__ */ jsx(SkeletonItem, { style: { width: "80%", height: "20px" } })
|
|
15760
|
+
] }) }),
|
|
15761
|
+
/* @__PURE__ */ jsx(Col, { xs: 12, sm: 12, md: 6, children: /* @__PURE__ */ jsxs(Skeleton, { children: [
|
|
15762
|
+
/* @__PURE__ */ jsx(
|
|
15763
|
+
SkeletonItem,
|
|
15764
|
+
{
|
|
15765
|
+
style: {
|
|
15766
|
+
width: "100%",
|
|
15767
|
+
height: "20px",
|
|
15768
|
+
marginBottom: "8px"
|
|
15769
|
+
}
|
|
15770
|
+
}
|
|
15771
|
+
),
|
|
15772
|
+
/* @__PURE__ */ jsx(SkeletonItem, { style: { width: "80%", height: "20px" } })
|
|
15773
|
+
] }) })
|
|
15632
15774
|
] }) })
|
|
15633
15775
|
]
|
|
15634
15776
|
}
|
|
15635
|
-
)
|
|
15777
|
+
) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
15778
|
+
/* @__PURE__ */ jsxs(
|
|
15779
|
+
Row,
|
|
15780
|
+
{
|
|
15781
|
+
nogutter: true,
|
|
15782
|
+
direction: "column",
|
|
15783
|
+
style: { gap: tokens.spacingHorizontalL },
|
|
15784
|
+
children: [
|
|
15785
|
+
/* @__PURE__ */ jsx(Col, { xs: 12, children: /* @__PURE__ */ jsxs(Row, { nogutter: true, className: styles.titleRow, children: [
|
|
15786
|
+
/* @__PURE__ */ jsx(Subtitle1, { children: mergedLabels.title }),
|
|
15787
|
+
/* @__PURE__ */ jsx(Divider, { style: { width: 0 } })
|
|
15788
|
+
] }) }),
|
|
15789
|
+
/* @__PURE__ */ jsx(Col, { xs: 12, children: /* @__PURE__ */ jsx(
|
|
15790
|
+
TripSection,
|
|
15791
|
+
{
|
|
15792
|
+
data: departureData,
|
|
15793
|
+
label: isRoundTrip ? mergedLabels.departureLabel : void 0,
|
|
15794
|
+
badgeClassName: isRoundTrip ? styles.badgeLilac : void 0,
|
|
15795
|
+
mergedLabels,
|
|
15796
|
+
onViewAddOns
|
|
15797
|
+
}
|
|
15798
|
+
) })
|
|
15799
|
+
]
|
|
15800
|
+
}
|
|
15801
|
+
),
|
|
15802
|
+
isRoundTrip && returnData && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
15803
|
+
/* @__PURE__ */ jsx(Divider, { style: { margin: `${tokens.spacingHorizontalL} 0` } }),
|
|
15804
|
+
/* @__PURE__ */ jsx(
|
|
15805
|
+
Row,
|
|
15806
|
+
{
|
|
15807
|
+
nogutter: true,
|
|
15808
|
+
direction: "column",
|
|
15809
|
+
style: { gap: tokens.spacingHorizontalL },
|
|
15810
|
+
children: /* @__PURE__ */ jsx(Col, { xs: 12, children: /* @__PURE__ */ jsx(
|
|
15811
|
+
TripSection,
|
|
15812
|
+
{
|
|
15813
|
+
data: returnData,
|
|
15814
|
+
label: mergedLabels.returnLabel,
|
|
15815
|
+
badgeClassName: styles.badgeOrange,
|
|
15816
|
+
mergedLabels,
|
|
15817
|
+
onViewAddOns
|
|
15818
|
+
}
|
|
15819
|
+
) })
|
|
15820
|
+
}
|
|
15821
|
+
)
|
|
15822
|
+
] })
|
|
15823
|
+
] }) });
|
|
15636
15824
|
};
|
|
15637
15825
|
|
|
15638
15826
|
// src/components/CardPriceDetails/CardPriceDetails.constants.ts
|