@asdp/ferryui 0.1.22-dev.10281 → 0.1.22-dev.10302
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 +10 -7
- package/dist/index.d.ts +10 -7
- package/dist/index.js +16 -21
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +16 -21
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1328,7 +1328,8 @@ var CardTicket = ({
|
|
|
1328
1328
|
onPolicyClick,
|
|
1329
1329
|
onSelectTicket,
|
|
1330
1330
|
isLoading = false,
|
|
1331
|
-
isVerifyingTicket = false
|
|
1331
|
+
isVerifyingTicket = false,
|
|
1332
|
+
loadType = 1
|
|
1332
1333
|
}) => {
|
|
1333
1334
|
const styles = useStyles5();
|
|
1334
1335
|
const { width } = useWindowSize();
|
|
@@ -1821,18 +1822,7 @@ var CardTicket = ({
|
|
|
1821
1822
|
},
|
|
1822
1823
|
children: [
|
|
1823
1824
|
/* @__PURE__ */ jsx(Subtitle2, { children: mergedLabels.totalPriceLabel }),
|
|
1824
|
-
|
|
1825
|
-
Title3,
|
|
1826
|
-
{
|
|
1827
|
-
children: departureItem?.billingDetail?.total?.formatted
|
|
1828
|
-
}
|
|
1829
|
-
) : /* @__PURE__ */ jsx(
|
|
1830
|
-
Body1Strong,
|
|
1831
|
-
{
|
|
1832
|
-
style: { wordBreak: "break-word" },
|
|
1833
|
-
children: mergedLabels.totalPriceMissing
|
|
1834
|
-
}
|
|
1835
|
-
)
|
|
1825
|
+
loadType === 6 ? /* @__PURE__ */ jsx(Body1Strong, { style: { wordBreak: "break-word" }, children: mergedLabels.totalPriceMissing }) : /* @__PURE__ */ jsx(Title3, { children: departureItem?.billingDetail?.total?.formatted })
|
|
1836
1826
|
]
|
|
1837
1827
|
}
|
|
1838
1828
|
),
|
|
@@ -12617,7 +12607,9 @@ var DEFAULT_LABELS26 = {
|
|
|
12617
12607
|
entityTypeIndividual: "Perseorangan",
|
|
12618
12608
|
selectCompanyPlaceholder: "Pilih Nama Perusahaan",
|
|
12619
12609
|
inputSenderNamePlaceholder: "Masukkan Nama Pengirim",
|
|
12620
|
-
|
|
12610
|
+
estimatedVehicleWeightLabel: "Estimasi Berat Kendaraan (Ton)",
|
|
12611
|
+
estimatedCargoWeightLabel: "Estimasi Berat Muatan (Ton)",
|
|
12612
|
+
estimatedVehicleAndCargoWeightLabel: "Estimasi Berat Kendaraan dan Muatan (Ton)",
|
|
12621
12613
|
inputNumberPlaceholder: "Masukkan Angka",
|
|
12622
12614
|
originCityLabel: "Kota Asal",
|
|
12623
12615
|
destinationCityLabel: "Kota Tujuan",
|
|
@@ -12667,7 +12659,9 @@ var DEFAULT_LABELS26 = {
|
|
|
12667
12659
|
entityTypeIndividual: "Individual",
|
|
12668
12660
|
selectCompanyPlaceholder: "Select Company Name",
|
|
12669
12661
|
inputSenderNamePlaceholder: "Enter Sender Name",
|
|
12670
|
-
|
|
12662
|
+
estimatedVehicleWeightLabel: "Estimated Vehicle Weight (Ton)",
|
|
12663
|
+
estimatedCargoWeightLabel: "Estimated Cargo Weight (Ton)",
|
|
12664
|
+
estimatedVehicleAndCargoWeightLabel: "Estimated Vehicle and Cargo Weight (Ton)",
|
|
12671
12665
|
inputNumberPlaceholder: "Enter Number",
|
|
12672
12666
|
originCityLabel: "Origin City",
|
|
12673
12667
|
destinationCityLabel: "Destination City",
|
|
@@ -12773,6 +12767,7 @@ var CardVehicleOwnerForm = ({
|
|
|
12773
12767
|
commodityOptions = [],
|
|
12774
12768
|
loadTypeOptions = [],
|
|
12775
12769
|
loadTypes = [],
|
|
12770
|
+
selectedLoadType,
|
|
12776
12771
|
loadTypeOptionsByCommodityId = {},
|
|
12777
12772
|
industryOptions = [],
|
|
12778
12773
|
loadCategoryOptions = [],
|
|
@@ -12966,7 +12961,7 @@ var CardVehicleOwnerForm = ({
|
|
|
12966
12961
|
/* @__PURE__ */ jsxs(Col, { lg: 6, children: [
|
|
12967
12962
|
/* @__PURE__ */ jsx("div", { style: { height: "1rem" } }),
|
|
12968
12963
|
/* @__PURE__ */ jsxs(Body1, { className: styles.label, children: [
|
|
12969
|
-
mergedLabels.
|
|
12964
|
+
mergedLabels.estimatedVehicleWeightLabel,
|
|
12970
12965
|
" ",
|
|
12971
12966
|
/* @__PURE__ */ jsx("span", { style: { color: "red" }, children: "*" })
|
|
12972
12967
|
] }),
|
|
@@ -13409,10 +13404,10 @@ var CardVehicleOwnerForm = ({
|
|
|
13409
13404
|
const type = watch(
|
|
13410
13405
|
`owners.${index}.cargo.${cargoIndex}.cargoType`
|
|
13411
13406
|
);
|
|
13412
|
-
const
|
|
13407
|
+
const selectedLoadType2 = loadTypes.find(
|
|
13413
13408
|
(loadType) => loadType.id.toString() === type
|
|
13414
13409
|
);
|
|
13415
|
-
if (!
|
|
13410
|
+
if (!selectedLoadType2) {
|
|
13416
13411
|
return /* @__PURE__ */ jsxs(Col, { md: 3, children: [
|
|
13417
13412
|
/* @__PURE__ */ jsx(Body1, { className: styles.label, children: mergedLabels.priceLabel }),
|
|
13418
13413
|
/* @__PURE__ */ jsx(
|
|
@@ -13619,10 +13614,10 @@ var CardVehicleOwnerForm = ({
|
|
|
13619
13614
|
const type2 = watch(
|
|
13620
13615
|
`owners.${index}.cargo.${cargoIndex}.cargoType`
|
|
13621
13616
|
);
|
|
13622
|
-
const
|
|
13617
|
+
const selectedLoadType3 = loadTypes.find(
|
|
13623
13618
|
(loadType) => loadType.id.toString() === type2
|
|
13624
13619
|
);
|
|
13625
|
-
return
|
|
13620
|
+
return selectedLoadType3?.unit?.name;
|
|
13626
13621
|
})()
|
|
13627
13622
|
}
|
|
13628
13623
|
)
|
|
@@ -13650,7 +13645,7 @@ var CardVehicleOwnerForm = ({
|
|
|
13650
13645
|
getValues(
|
|
13651
13646
|
`owners.${index}.cargo.${cargoIndex}.quantity`
|
|
13652
13647
|
) || 0
|
|
13653
|
-
) * (
|
|
13648
|
+
) * (selectedLoadType2?.price || 0)
|
|
13654
13649
|
);
|
|
13655
13650
|
})()
|
|
13656
13651
|
}
|