@asdp/ferryui 0.1.22-dev.9549 → 0.1.22-dev.9569
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 +11 -15
- package/dist/index.d.ts +11 -15
- package/dist/index.js +87 -64
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +88 -66
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1738,6 +1738,10 @@ interface LoadType {
|
|
|
1738
1738
|
name: string;
|
|
1739
1739
|
};
|
|
1740
1740
|
}
|
|
1741
|
+
declare const HARDCODED_ID: {
|
|
1742
|
+
readonly FAQ_ID_PEMESANAN_TIKET: 1;
|
|
1743
|
+
readonly COMPANY_ID_LAINNYA: "999999";
|
|
1744
|
+
};
|
|
1741
1745
|
|
|
1742
1746
|
interface TypeOfServiceChild {
|
|
1743
1747
|
id: number;
|
|
@@ -2938,13 +2942,6 @@ interface CargoItem {
|
|
|
2938
2942
|
}
|
|
2939
2943
|
interface VehicleOwner {
|
|
2940
2944
|
id: number;
|
|
2941
|
-
senderEntityType: MANIFEST_ENTITY_TYPE;
|
|
2942
|
-
senderEntity: string;
|
|
2943
|
-
senderEntityOther: string;
|
|
2944
|
-
estimatedWeight: string;
|
|
2945
|
-
originCity: string;
|
|
2946
|
-
destinationCity: string;
|
|
2947
|
-
cargoItems: CargoItem[];
|
|
2948
2945
|
cargoOwnerEntityType: MANIFEST_ENTITY_TYPE;
|
|
2949
2946
|
cargoOwnerEntity: string;
|
|
2950
2947
|
cargoOwnerEntityOther: string;
|
|
@@ -2955,6 +2952,10 @@ interface VehicleOwner {
|
|
|
2955
2952
|
cargoReceiverEntity: string;
|
|
2956
2953
|
cargoReceiverEntityOther: string;
|
|
2957
2954
|
cargoWeight: string;
|
|
2955
|
+
estimatedWeight: string;
|
|
2956
|
+
originCity: string;
|
|
2957
|
+
destinationCity: string;
|
|
2958
|
+
cargoItems: CargoItem[];
|
|
2958
2959
|
}
|
|
2959
2960
|
interface CardVehicleOwnerFormProps {
|
|
2960
2961
|
/**
|
|
@@ -3009,10 +3010,6 @@ interface CardVehicleOwnerFormProps {
|
|
|
3009
3010
|
* Callback to update cargo quantity
|
|
3010
3011
|
*/
|
|
3011
3012
|
onUpdateCargoQuantity: (ownerId: number, cargoId: number, quantity: number) => void;
|
|
3012
|
-
/**
|
|
3013
|
-
* Options for company sender select inputs
|
|
3014
|
-
*/
|
|
3015
|
-
companySenderOptions?: SelectOption[];
|
|
3016
3013
|
/**
|
|
3017
3014
|
* Options for company owner select inputs
|
|
3018
3015
|
*/
|
|
@@ -3064,9 +3061,8 @@ interface CardVehicleOwnerFormLabels {
|
|
|
3064
3061
|
title: string;
|
|
3065
3062
|
addOwnerButton: string;
|
|
3066
3063
|
ownerInfoTitle: string;
|
|
3067
|
-
|
|
3068
|
-
|
|
3069
|
-
senderTypeIndividual: string;
|
|
3064
|
+
entityTypeCompany: string;
|
|
3065
|
+
entityTypeIndividual: string;
|
|
3070
3066
|
selectCompanyPlaceholder: string;
|
|
3071
3067
|
inputSenderNamePlaceholder: string;
|
|
3072
3068
|
estimatedWeightLabel: string;
|
|
@@ -3870,4 +3866,4 @@ interface ModalListMenuServiceProps {
|
|
|
3870
3866
|
|
|
3871
3867
|
declare const ModalListMenuService: React$1.FC<ModalListMenuServiceProps>;
|
|
3872
3868
|
|
|
3873
|
-
export { API_CONFIG, API_ENDPOINTS, API_ERROR_MESSAGES, BackgroundTicketCard, BackgroundTicketCardVertical, type BadgeConfig, type BillingDetail, COUNTRIES, CardAddon, type CardAddonProps, CardBanner, type CardBannerProps, CardBookingTicket, type CardBookingTicketProps, CardFAQ, type CardFAQProps, CardMealCatalog, type CardMealCatalogProps, CardOrdererInfo, type CardOrdererInfoProps, CardPassengerList, type CardPassengerListProps, CardPaymentGuide, type CardPaymentGuideProps, CardPaymentInfo, type CardPaymentInfoProps, CardPaymentMethodList, type CardPaymentMethodListProps, CardPriceDetails, type CardPriceDetailsProps, CardProfileMenu, type CardProfileMenuLabels, type CardProfileMenuProps, CardPromo, type CardPromoProps, CardReview, CardReviewPassenger, type CardReviewPassengerProps, type CardReviewProps, CardServiceMenu, type CardServiceMenuProps, CardStatusOrder, type CardStatusOrderProps, CardTicket, type CardTicketProps, CardTicketSearch, DEFAULT_LABELS$4 as CardTicketSearchDefaultLabels, type CardTicketSearchFormData, type CardTicketSearchLabels, type CardTicketSearchProps, type ServiceMenuItem as CardTicketSearchServiceMenuItem, CardTicketSearchSummary, DEFAULT_LABELS$3 as CardTicketSearchSummaryDefaultLabels, type CardTicketSearchSummaryProps, CardVehicleDetail, type CardVehicleDetailProps, CardVehicleOwnerForm, type CardVehicleOwnerFormProps, type CargoItem, CarouselWithCustomNav, type CarouselWithCustomNavProps, type CountryOption, DEFAULT_DURATION_RANGE, DEFAULT_PRICE_RANGE, DEFAULT_SCROLL_AMOUNT, DEFAULT_SERVICE_TYPES, DEFAULT_SORT_OPTIONS, DEFAULT_TIME_SLOTS, DEFAULT_VEHICLE_ICONS, DateFilter, DEFAULT_LABELS as DateFilterDefaultLabels, type DateFilterLabels, type DateFilterProps, type DateItem, type DepartureItem, EmptyContent, type EmptyContentButton, DEFAULT_LABELS$2 as EmptyContentDefaultLabels, type EmptyContentLabels, type EmptyContentProps, FileUpload, type FileUploadProps, type FilterCount, GENDER, type GENDER_TYPE, HTTP_STATUS, type HarborItem, IDENTITY_TYPE, type IDENTITY_TYPE_TYPE, InputDynamic, type InputDynamicProps, type InputType, LOAD_TYPE, type LOAD_TYPE_TYPE, type LoadType, MANIFEST_ENTITY, type MANIFEST_ENTITY_TYPE, MODAL_PRESETS, MY_TICKET_STATUS, type MY_TICKET_STATUS_TYPE, MY_TICKET_TAB, type MY_TICKET_TAB_TYPE, type MealCategory, type MealItem, ModalFilterTicket, DEFAULT_LABELS$1 as ModalFilterTicketDefaultLabels, type ModalFilterTicketLabels, type ModalFilterTicketProps, ModalIllustration, type ModalIllustrationButton, type ModalIllustrationProps, ModalListMenuService, type ModalListMenuServiceProps, ModalListPassenger, type PassengerItem as ModalListPassengerItem, type ModalListPassengerProps, ModalPassengerForm, type ModalPassengerFormProps, type ModalPresetKey, ModalPreviewImage, type ModalPreviewImageProps, ModalPriceDetail, type ModalPriceDetailProps, ModalSearchHarbor, type ModalSearchHarborProps, ModalSearchTicket, type ModalSearchTicketProps, ModalSelectDate, type ModalSelectDateProps, ModalService, type CardServiceMenuItem as ModalServiceItem, type ModalServiceProps, ModalTotalPassengers, type ModalTotalPassengersProps, ModalTypeOfService, type ModalTypeOfServiceProps, PASSENGER_TYPE, type PASSENGER_TYPE_TYPE, type Passenger, type PassengerClass, type PassengerFormData, type PassengerListItem, type PassengerService, type PassengerType, type PaymentGuideStep, type PaymentMethodCategory, type PaymentStep, type PriceDetailItem, type ProfileMenuSection, type ProfileMenuTab, type Provider, type RadioOption, type ReservationStep, type ReviewPassengerItem, type RouteItem, type SearchSummaryField, type SearchTicketFormData, type SelectOption, type SelectedPassengerItem, type ServiceId, type ServiceItem, SortMenu, type SortMenuProps, type SortOption, type StepStatus, Stepper, type StepperProps, type StepperStep, type TabType, type TypeOfService, type VehicleOwner, calculateAge, getBadgeConfig, getModalPreset, getSortLabel, hexToRgba };
|
|
3869
|
+
export { API_CONFIG, API_ENDPOINTS, API_ERROR_MESSAGES, BackgroundTicketCard, BackgroundTicketCardVertical, type BadgeConfig, type BillingDetail, COUNTRIES, CardAddon, type CardAddonProps, CardBanner, type CardBannerProps, CardBookingTicket, type CardBookingTicketProps, CardFAQ, type CardFAQProps, CardMealCatalog, type CardMealCatalogProps, CardOrdererInfo, type CardOrdererInfoProps, CardPassengerList, type CardPassengerListProps, CardPaymentGuide, type CardPaymentGuideProps, CardPaymentInfo, type CardPaymentInfoProps, CardPaymentMethodList, type CardPaymentMethodListProps, CardPriceDetails, type CardPriceDetailsProps, CardProfileMenu, type CardProfileMenuLabels, type CardProfileMenuProps, CardPromo, type CardPromoProps, CardReview, CardReviewPassenger, type CardReviewPassengerProps, type CardReviewProps, CardServiceMenu, type CardServiceMenuProps, CardStatusOrder, type CardStatusOrderProps, CardTicket, type CardTicketProps, CardTicketSearch, DEFAULT_LABELS$4 as CardTicketSearchDefaultLabels, type CardTicketSearchFormData, type CardTicketSearchLabels, type CardTicketSearchProps, type ServiceMenuItem as CardTicketSearchServiceMenuItem, CardTicketSearchSummary, DEFAULT_LABELS$3 as CardTicketSearchSummaryDefaultLabels, type CardTicketSearchSummaryProps, CardVehicleDetail, type CardVehicleDetailProps, CardVehicleOwnerForm, type CardVehicleOwnerFormProps, type CargoItem, CarouselWithCustomNav, type CarouselWithCustomNavProps, type CountryOption, DEFAULT_DURATION_RANGE, DEFAULT_PRICE_RANGE, DEFAULT_SCROLL_AMOUNT, DEFAULT_SERVICE_TYPES, DEFAULT_SORT_OPTIONS, DEFAULT_TIME_SLOTS, DEFAULT_VEHICLE_ICONS, DateFilter, DEFAULT_LABELS as DateFilterDefaultLabels, type DateFilterLabels, type DateFilterProps, type DateItem, type DepartureItem, EmptyContent, type EmptyContentButton, DEFAULT_LABELS$2 as EmptyContentDefaultLabels, type EmptyContentLabels, type EmptyContentProps, FileUpload, type FileUploadProps, type FilterCount, GENDER, type GENDER_TYPE, HARDCODED_ID, HTTP_STATUS, type HarborItem, IDENTITY_TYPE, type IDENTITY_TYPE_TYPE, InputDynamic, type InputDynamicProps, type InputType, LOAD_TYPE, type LOAD_TYPE_TYPE, type LoadType, MANIFEST_ENTITY, type MANIFEST_ENTITY_TYPE, MODAL_PRESETS, MY_TICKET_STATUS, type MY_TICKET_STATUS_TYPE, MY_TICKET_TAB, type MY_TICKET_TAB_TYPE, type MealCategory, type MealItem, ModalFilterTicket, DEFAULT_LABELS$1 as ModalFilterTicketDefaultLabels, type ModalFilterTicketLabels, type ModalFilterTicketProps, ModalIllustration, type ModalIllustrationButton, type ModalIllustrationProps, ModalListMenuService, type ModalListMenuServiceProps, ModalListPassenger, type PassengerItem as ModalListPassengerItem, type ModalListPassengerProps, ModalPassengerForm, type ModalPassengerFormProps, type ModalPresetKey, ModalPreviewImage, type ModalPreviewImageProps, ModalPriceDetail, type ModalPriceDetailProps, ModalSearchHarbor, type ModalSearchHarborProps, ModalSearchTicket, type ModalSearchTicketProps, ModalSelectDate, type ModalSelectDateProps, ModalService, type CardServiceMenuItem as ModalServiceItem, type ModalServiceProps, ModalTotalPassengers, type ModalTotalPassengersProps, ModalTypeOfService, type ModalTypeOfServiceProps, PASSENGER_TYPE, type PASSENGER_TYPE_TYPE, type Passenger, type PassengerClass, type PassengerFormData, type PassengerListItem, type PassengerService, type PassengerType, type PaymentGuideStep, type PaymentMethodCategory, type PaymentStep, type PriceDetailItem, type ProfileMenuSection, type ProfileMenuTab, type Provider, type RadioOption, type ReservationStep, type ReviewPassengerItem, type RouteItem, type SearchSummaryField, type SearchTicketFormData, type SelectOption, type SelectedPassengerItem, type ServiceId, type ServiceItem, SortMenu, type SortMenuProps, type SortOption, type StepStatus, Stepper, type StepperProps, type StepperStep, type TabType, type TypeOfService, type VehicleOwner, calculateAge, getBadgeConfig, getModalPreset, getSortLabel, hexToRgba };
|
package/dist/index.d.ts
CHANGED
|
@@ -1738,6 +1738,10 @@ interface LoadType {
|
|
|
1738
1738
|
name: string;
|
|
1739
1739
|
};
|
|
1740
1740
|
}
|
|
1741
|
+
declare const HARDCODED_ID: {
|
|
1742
|
+
readonly FAQ_ID_PEMESANAN_TIKET: 1;
|
|
1743
|
+
readonly COMPANY_ID_LAINNYA: "999999";
|
|
1744
|
+
};
|
|
1741
1745
|
|
|
1742
1746
|
interface TypeOfServiceChild {
|
|
1743
1747
|
id: number;
|
|
@@ -2938,13 +2942,6 @@ interface CargoItem {
|
|
|
2938
2942
|
}
|
|
2939
2943
|
interface VehicleOwner {
|
|
2940
2944
|
id: number;
|
|
2941
|
-
senderEntityType: MANIFEST_ENTITY_TYPE;
|
|
2942
|
-
senderEntity: string;
|
|
2943
|
-
senderEntityOther: string;
|
|
2944
|
-
estimatedWeight: string;
|
|
2945
|
-
originCity: string;
|
|
2946
|
-
destinationCity: string;
|
|
2947
|
-
cargoItems: CargoItem[];
|
|
2948
2945
|
cargoOwnerEntityType: MANIFEST_ENTITY_TYPE;
|
|
2949
2946
|
cargoOwnerEntity: string;
|
|
2950
2947
|
cargoOwnerEntityOther: string;
|
|
@@ -2955,6 +2952,10 @@ interface VehicleOwner {
|
|
|
2955
2952
|
cargoReceiverEntity: string;
|
|
2956
2953
|
cargoReceiverEntityOther: string;
|
|
2957
2954
|
cargoWeight: string;
|
|
2955
|
+
estimatedWeight: string;
|
|
2956
|
+
originCity: string;
|
|
2957
|
+
destinationCity: string;
|
|
2958
|
+
cargoItems: CargoItem[];
|
|
2958
2959
|
}
|
|
2959
2960
|
interface CardVehicleOwnerFormProps {
|
|
2960
2961
|
/**
|
|
@@ -3009,10 +3010,6 @@ interface CardVehicleOwnerFormProps {
|
|
|
3009
3010
|
* Callback to update cargo quantity
|
|
3010
3011
|
*/
|
|
3011
3012
|
onUpdateCargoQuantity: (ownerId: number, cargoId: number, quantity: number) => void;
|
|
3012
|
-
/**
|
|
3013
|
-
* Options for company sender select inputs
|
|
3014
|
-
*/
|
|
3015
|
-
companySenderOptions?: SelectOption[];
|
|
3016
3013
|
/**
|
|
3017
3014
|
* Options for company owner select inputs
|
|
3018
3015
|
*/
|
|
@@ -3064,9 +3061,8 @@ interface CardVehicleOwnerFormLabels {
|
|
|
3064
3061
|
title: string;
|
|
3065
3062
|
addOwnerButton: string;
|
|
3066
3063
|
ownerInfoTitle: string;
|
|
3067
|
-
|
|
3068
|
-
|
|
3069
|
-
senderTypeIndividual: string;
|
|
3064
|
+
entityTypeCompany: string;
|
|
3065
|
+
entityTypeIndividual: string;
|
|
3070
3066
|
selectCompanyPlaceholder: string;
|
|
3071
3067
|
inputSenderNamePlaceholder: string;
|
|
3072
3068
|
estimatedWeightLabel: string;
|
|
@@ -3870,4 +3866,4 @@ interface ModalListMenuServiceProps {
|
|
|
3870
3866
|
|
|
3871
3867
|
declare const ModalListMenuService: React$1.FC<ModalListMenuServiceProps>;
|
|
3872
3868
|
|
|
3873
|
-
export { API_CONFIG, API_ENDPOINTS, API_ERROR_MESSAGES, BackgroundTicketCard, BackgroundTicketCardVertical, type BadgeConfig, type BillingDetail, COUNTRIES, CardAddon, type CardAddonProps, CardBanner, type CardBannerProps, CardBookingTicket, type CardBookingTicketProps, CardFAQ, type CardFAQProps, CardMealCatalog, type CardMealCatalogProps, CardOrdererInfo, type CardOrdererInfoProps, CardPassengerList, type CardPassengerListProps, CardPaymentGuide, type CardPaymentGuideProps, CardPaymentInfo, type CardPaymentInfoProps, CardPaymentMethodList, type CardPaymentMethodListProps, CardPriceDetails, type CardPriceDetailsProps, CardProfileMenu, type CardProfileMenuLabels, type CardProfileMenuProps, CardPromo, type CardPromoProps, CardReview, CardReviewPassenger, type CardReviewPassengerProps, type CardReviewProps, CardServiceMenu, type CardServiceMenuProps, CardStatusOrder, type CardStatusOrderProps, CardTicket, type CardTicketProps, CardTicketSearch, DEFAULT_LABELS$4 as CardTicketSearchDefaultLabels, type CardTicketSearchFormData, type CardTicketSearchLabels, type CardTicketSearchProps, type ServiceMenuItem as CardTicketSearchServiceMenuItem, CardTicketSearchSummary, DEFAULT_LABELS$3 as CardTicketSearchSummaryDefaultLabels, type CardTicketSearchSummaryProps, CardVehicleDetail, type CardVehicleDetailProps, CardVehicleOwnerForm, type CardVehicleOwnerFormProps, type CargoItem, CarouselWithCustomNav, type CarouselWithCustomNavProps, type CountryOption, DEFAULT_DURATION_RANGE, DEFAULT_PRICE_RANGE, DEFAULT_SCROLL_AMOUNT, DEFAULT_SERVICE_TYPES, DEFAULT_SORT_OPTIONS, DEFAULT_TIME_SLOTS, DEFAULT_VEHICLE_ICONS, DateFilter, DEFAULT_LABELS as DateFilterDefaultLabels, type DateFilterLabels, type DateFilterProps, type DateItem, type DepartureItem, EmptyContent, type EmptyContentButton, DEFAULT_LABELS$2 as EmptyContentDefaultLabels, type EmptyContentLabels, type EmptyContentProps, FileUpload, type FileUploadProps, type FilterCount, GENDER, type GENDER_TYPE, HTTP_STATUS, type HarborItem, IDENTITY_TYPE, type IDENTITY_TYPE_TYPE, InputDynamic, type InputDynamicProps, type InputType, LOAD_TYPE, type LOAD_TYPE_TYPE, type LoadType, MANIFEST_ENTITY, type MANIFEST_ENTITY_TYPE, MODAL_PRESETS, MY_TICKET_STATUS, type MY_TICKET_STATUS_TYPE, MY_TICKET_TAB, type MY_TICKET_TAB_TYPE, type MealCategory, type MealItem, ModalFilterTicket, DEFAULT_LABELS$1 as ModalFilterTicketDefaultLabels, type ModalFilterTicketLabels, type ModalFilterTicketProps, ModalIllustration, type ModalIllustrationButton, type ModalIllustrationProps, ModalListMenuService, type ModalListMenuServiceProps, ModalListPassenger, type PassengerItem as ModalListPassengerItem, type ModalListPassengerProps, ModalPassengerForm, type ModalPassengerFormProps, type ModalPresetKey, ModalPreviewImage, type ModalPreviewImageProps, ModalPriceDetail, type ModalPriceDetailProps, ModalSearchHarbor, type ModalSearchHarborProps, ModalSearchTicket, type ModalSearchTicketProps, ModalSelectDate, type ModalSelectDateProps, ModalService, type CardServiceMenuItem as ModalServiceItem, type ModalServiceProps, ModalTotalPassengers, type ModalTotalPassengersProps, ModalTypeOfService, type ModalTypeOfServiceProps, PASSENGER_TYPE, type PASSENGER_TYPE_TYPE, type Passenger, type PassengerClass, type PassengerFormData, type PassengerListItem, type PassengerService, type PassengerType, type PaymentGuideStep, type PaymentMethodCategory, type PaymentStep, type PriceDetailItem, type ProfileMenuSection, type ProfileMenuTab, type Provider, type RadioOption, type ReservationStep, type ReviewPassengerItem, type RouteItem, type SearchSummaryField, type SearchTicketFormData, type SelectOption, type SelectedPassengerItem, type ServiceId, type ServiceItem, SortMenu, type SortMenuProps, type SortOption, type StepStatus, Stepper, type StepperProps, type StepperStep, type TabType, type TypeOfService, type VehicleOwner, calculateAge, getBadgeConfig, getModalPreset, getSortLabel, hexToRgba };
|
|
3869
|
+
export { API_CONFIG, API_ENDPOINTS, API_ERROR_MESSAGES, BackgroundTicketCard, BackgroundTicketCardVertical, type BadgeConfig, type BillingDetail, COUNTRIES, CardAddon, type CardAddonProps, CardBanner, type CardBannerProps, CardBookingTicket, type CardBookingTicketProps, CardFAQ, type CardFAQProps, CardMealCatalog, type CardMealCatalogProps, CardOrdererInfo, type CardOrdererInfoProps, CardPassengerList, type CardPassengerListProps, CardPaymentGuide, type CardPaymentGuideProps, CardPaymentInfo, type CardPaymentInfoProps, CardPaymentMethodList, type CardPaymentMethodListProps, CardPriceDetails, type CardPriceDetailsProps, CardProfileMenu, type CardProfileMenuLabels, type CardProfileMenuProps, CardPromo, type CardPromoProps, CardReview, CardReviewPassenger, type CardReviewPassengerProps, type CardReviewProps, CardServiceMenu, type CardServiceMenuProps, CardStatusOrder, type CardStatusOrderProps, CardTicket, type CardTicketProps, CardTicketSearch, DEFAULT_LABELS$4 as CardTicketSearchDefaultLabels, type CardTicketSearchFormData, type CardTicketSearchLabels, type CardTicketSearchProps, type ServiceMenuItem as CardTicketSearchServiceMenuItem, CardTicketSearchSummary, DEFAULT_LABELS$3 as CardTicketSearchSummaryDefaultLabels, type CardTicketSearchSummaryProps, CardVehicleDetail, type CardVehicleDetailProps, CardVehicleOwnerForm, type CardVehicleOwnerFormProps, type CargoItem, CarouselWithCustomNav, type CarouselWithCustomNavProps, type CountryOption, DEFAULT_DURATION_RANGE, DEFAULT_PRICE_RANGE, DEFAULT_SCROLL_AMOUNT, DEFAULT_SERVICE_TYPES, DEFAULT_SORT_OPTIONS, DEFAULT_TIME_SLOTS, DEFAULT_VEHICLE_ICONS, DateFilter, DEFAULT_LABELS as DateFilterDefaultLabels, type DateFilterLabels, type DateFilterProps, type DateItem, type DepartureItem, EmptyContent, type EmptyContentButton, DEFAULT_LABELS$2 as EmptyContentDefaultLabels, type EmptyContentLabels, type EmptyContentProps, FileUpload, type FileUploadProps, type FilterCount, GENDER, type GENDER_TYPE, HARDCODED_ID, HTTP_STATUS, type HarborItem, IDENTITY_TYPE, type IDENTITY_TYPE_TYPE, InputDynamic, type InputDynamicProps, type InputType, LOAD_TYPE, type LOAD_TYPE_TYPE, type LoadType, MANIFEST_ENTITY, type MANIFEST_ENTITY_TYPE, MODAL_PRESETS, MY_TICKET_STATUS, type MY_TICKET_STATUS_TYPE, MY_TICKET_TAB, type MY_TICKET_TAB_TYPE, type MealCategory, type MealItem, ModalFilterTicket, DEFAULT_LABELS$1 as ModalFilterTicketDefaultLabels, type ModalFilterTicketLabels, type ModalFilterTicketProps, ModalIllustration, type ModalIllustrationButton, type ModalIllustrationProps, ModalListMenuService, type ModalListMenuServiceProps, ModalListPassenger, type PassengerItem as ModalListPassengerItem, type ModalListPassengerProps, ModalPassengerForm, type ModalPassengerFormProps, type ModalPresetKey, ModalPreviewImage, type ModalPreviewImageProps, ModalPriceDetail, type ModalPriceDetailProps, ModalSearchHarbor, type ModalSearchHarborProps, ModalSearchTicket, type ModalSearchTicketProps, ModalSelectDate, type ModalSelectDateProps, ModalService, type CardServiceMenuItem as ModalServiceItem, type ModalServiceProps, ModalTotalPassengers, type ModalTotalPassengersProps, ModalTypeOfService, type ModalTypeOfServiceProps, PASSENGER_TYPE, type PASSENGER_TYPE_TYPE, type Passenger, type PassengerClass, type PassengerFormData, type PassengerListItem, type PassengerService, type PassengerType, type PaymentGuideStep, type PaymentMethodCategory, type PaymentStep, type PriceDetailItem, type ProfileMenuSection, type ProfileMenuTab, type Provider, type RadioOption, type ReservationStep, type ReviewPassengerItem, type RouteItem, type SearchSummaryField, type SearchTicketFormData, type SelectOption, type SelectedPassengerItem, type ServiceId, type ServiceItem, SortMenu, type SortMenuProps, type SortOption, type StepStatus, Stepper, type StepperProps, type StepperStep, type TabType, type TypeOfService, type VehicleOwner, calculateAge, getBadgeConfig, getModalPreset, getSortLabel, hexToRgba };
|
package/dist/index.js
CHANGED
|
@@ -467,6 +467,10 @@ var MANIFEST_ENTITY = {
|
|
|
467
467
|
COMPANY: "company",
|
|
468
468
|
INDIVIDUAL: "individual"
|
|
469
469
|
};
|
|
470
|
+
var HARDCODED_ID = {
|
|
471
|
+
FAQ_ID_PEMESANAN_TIKET: 1,
|
|
472
|
+
COMPANY_ID_LAINNYA: "999999"
|
|
473
|
+
};
|
|
470
474
|
var useStyles2 = reactComponents.makeStyles({
|
|
471
475
|
carousel: {},
|
|
472
476
|
carouselContainer: {
|
|
@@ -12005,9 +12009,8 @@ var DEFAULT_LABELS26 = {
|
|
|
12005
12009
|
title: "Informasi Pemilik & Muatan",
|
|
12006
12010
|
addOwnerButton: "Tambah Pemilik",
|
|
12007
12011
|
ownerInfoTitle: "Informasi Pemilik {index}",
|
|
12008
|
-
|
|
12009
|
-
|
|
12010
|
-
senderTypeIndividual: "Perseorangan",
|
|
12012
|
+
entityTypeCompany: "Perusahaan",
|
|
12013
|
+
entityTypeIndividual: "Perseorangan",
|
|
12011
12014
|
selectCompanyPlaceholder: "Pilih Nama Perusahaan",
|
|
12012
12015
|
inputSenderNamePlaceholder: "Masukkan Nama Pengirim",
|
|
12013
12016
|
estimatedWeightLabel: "Data Estimasi Berat Muatan dan Kendaraan (Ton)",
|
|
@@ -12058,9 +12061,8 @@ var DEFAULT_LABELS26 = {
|
|
|
12058
12061
|
title: "Owner & Cargo Information",
|
|
12059
12062
|
addOwnerButton: "Add Owner",
|
|
12060
12063
|
ownerInfoTitle: "Owner Information {index}",
|
|
12061
|
-
|
|
12062
|
-
|
|
12063
|
-
senderTypeIndividual: "Individual",
|
|
12064
|
+
entityTypeCompany: "Company",
|
|
12065
|
+
entityTypeIndividual: "Individual",
|
|
12064
12066
|
selectCompanyPlaceholder: "Select Company Name",
|
|
12065
12067
|
inputSenderNamePlaceholder: "Enter Sender Name",
|
|
12066
12068
|
estimatedWeightLabel: "Estimated Cargo & Vehicle Weight (Ton)",
|
|
@@ -12163,7 +12165,6 @@ var CardVehicleOwnerForm = ({
|
|
|
12163
12165
|
onAddCargo,
|
|
12164
12166
|
onDeleteCargo,
|
|
12165
12167
|
onUpdateCargoQuantity,
|
|
12166
|
-
companySenderOptions = [],
|
|
12167
12168
|
companyOwnerOptions = [],
|
|
12168
12169
|
companyLogisticsOptions = [],
|
|
12169
12170
|
companyReceiverOptions = [],
|
|
@@ -12271,7 +12272,6 @@ var CardVehicleOwnerForm = ({
|
|
|
12271
12272
|
{
|
|
12272
12273
|
disabled,
|
|
12273
12274
|
layout: "horizontal",
|
|
12274
|
-
value: owner.cargoOwnerEntityType || MANIFEST_ENTITY.COMPANY,
|
|
12275
12275
|
onChange: (_, data) => {
|
|
12276
12276
|
onUpdateOwner(owner.id, {
|
|
12277
12277
|
cargoOwnerEntityType: data.value,
|
|
@@ -12281,19 +12281,21 @@ var CardVehicleOwnerForm = ({
|
|
|
12281
12281
|
setValue(`owners.${index}.cargoOwnerEntity`, "");
|
|
12282
12282
|
setValue(`owners.${index}.cargoOwnerEntityOther`, "");
|
|
12283
12283
|
},
|
|
12284
|
+
required: true,
|
|
12285
|
+
value: owner.cargoOwnerEntityType || MANIFEST_ENTITY.COMPANY,
|
|
12284
12286
|
children: [
|
|
12285
12287
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
12286
12288
|
reactComponents.Radio,
|
|
12287
12289
|
{
|
|
12288
12290
|
value: MANIFEST_ENTITY.COMPANY,
|
|
12289
|
-
label:
|
|
12291
|
+
label: MANIFEST_ENTITY.COMPANY
|
|
12290
12292
|
}
|
|
12291
12293
|
),
|
|
12292
12294
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
12293
12295
|
reactComponents.Radio,
|
|
12294
12296
|
{
|
|
12295
12297
|
value: MANIFEST_ENTITY.INDIVIDUAL,
|
|
12296
|
-
label:
|
|
12298
|
+
label: MANIFEST_ENTITY.INDIVIDUAL
|
|
12297
12299
|
}
|
|
12298
12300
|
)
|
|
12299
12301
|
]
|
|
@@ -12305,34 +12307,36 @@ var CardVehicleOwnerForm = ({
|
|
|
12305
12307
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
12306
12308
|
reactGridSystem.Col,
|
|
12307
12309
|
{
|
|
12308
|
-
lg: owner.cargoOwnerEntityType === MANIFEST_ENTITY.COMPANY && owner.cargoOwnerEntity ===
|
|
12310
|
+
lg: owner.cargoOwnerEntityType === MANIFEST_ENTITY.COMPANY && owner.cargoOwnerEntity === HARDCODED_ID.COMPANY_ID_LAINNYA ? 6 : 12,
|
|
12309
12311
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
12310
12312
|
InputDynamic_default,
|
|
12311
12313
|
{
|
|
12312
12314
|
disabled,
|
|
12313
12315
|
control,
|
|
12314
12316
|
name: `owners.${index}.cargoOwnerEntity`,
|
|
12315
|
-
placeholder: owner.cargoOwnerEntityType === MANIFEST_ENTITY.COMPANY ? mergedLabels.cargoOwnerCompanyPlaceholder : mergedLabels.cargoOwnerIndividualPlaceholder,
|
|
12316
|
-
size: "large",
|
|
12317
|
-
type: owner.cargoOwnerEntityType === MANIFEST_ENTITY.COMPANY ? "select" : "text",
|
|
12318
12317
|
options: owner.cargoOwnerEntityType === MANIFEST_ENTITY.COMPANY ? companyOwnerOptions : [],
|
|
12319
12318
|
onChange: (val) => {
|
|
12320
12319
|
setValue(`owners.${index}.cargoOwnerEntity`, val);
|
|
12321
12320
|
onUpdateOwner(owner.id, {
|
|
12322
12321
|
cargoOwnerEntity: val
|
|
12323
12322
|
});
|
|
12324
|
-
}
|
|
12323
|
+
},
|
|
12324
|
+
placeholder: owner.cargoOwnerEntityType === MANIFEST_ENTITY.COMPANY ? mergedLabels.cargoOwnerCompanyPlaceholder : mergedLabels.cargoOwnerIndividualPlaceholder,
|
|
12325
|
+
required: true,
|
|
12326
|
+
size: "large",
|
|
12327
|
+
type: owner.cargoOwnerEntityType === MANIFEST_ENTITY.COMPANY ? "select" : "text"
|
|
12325
12328
|
}
|
|
12326
12329
|
)
|
|
12327
12330
|
}
|
|
12328
12331
|
),
|
|
12329
|
-
owner.cargoOwnerEntityType === MANIFEST_ENTITY.COMPANY && owner.cargoOwnerEntity ===
|
|
12332
|
+
owner.cargoOwnerEntityType === MANIFEST_ENTITY.COMPANY && owner.cargoOwnerEntity === HARDCODED_ID.COMPANY_ID_LAINNYA && /* @__PURE__ */ jsxRuntime.jsx(reactGridSystem.Col, { xl: 6, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
12330
12333
|
InputDynamic_default,
|
|
12331
12334
|
{
|
|
12332
12335
|
control,
|
|
12333
12336
|
disabled,
|
|
12334
12337
|
name: `owners.${index}.cargoOwnerEntityOther`,
|
|
12335
12338
|
placeholder: owner.cargoOwnerEntityType === MANIFEST_ENTITY.COMPANY ? mergedLabels.selectCompanyPlaceholder : mergedLabels.inputSenderNamePlaceholder,
|
|
12339
|
+
required: true,
|
|
12336
12340
|
size: "large",
|
|
12337
12341
|
type: "text",
|
|
12338
12342
|
onChange: (val) => {
|
|
@@ -12372,6 +12376,7 @@ var CardVehicleOwnerForm = ({
|
|
|
12372
12376
|
disabled,
|
|
12373
12377
|
name: `owners.${index}.estimatedWeight`,
|
|
12374
12378
|
placeholder: mergedLabels.inputNumberPlaceholder,
|
|
12379
|
+
required: true,
|
|
12375
12380
|
size: "large",
|
|
12376
12381
|
type: "number",
|
|
12377
12382
|
onChange: (val) => {
|
|
@@ -12401,7 +12406,6 @@ var CardVehicleOwnerForm = ({
|
|
|
12401
12406
|
{
|
|
12402
12407
|
disabled,
|
|
12403
12408
|
layout: "horizontal",
|
|
12404
|
-
value: owner.cargoReceiverEntityType || MANIFEST_ENTITY.COMPANY,
|
|
12405
12409
|
onChange: (_, data) => {
|
|
12406
12410
|
onUpdateOwner(owner.id, {
|
|
12407
12411
|
cargoReceiverEntityType: data.value,
|
|
@@ -12417,19 +12421,21 @@ var CardVehicleOwnerForm = ({
|
|
|
12417
12421
|
""
|
|
12418
12422
|
);
|
|
12419
12423
|
},
|
|
12424
|
+
required: true,
|
|
12425
|
+
value: owner.cargoReceiverEntityType || MANIFEST_ENTITY.COMPANY,
|
|
12420
12426
|
children: [
|
|
12421
12427
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
12422
12428
|
reactComponents.Radio,
|
|
12423
12429
|
{
|
|
12424
12430
|
value: MANIFEST_ENTITY.COMPANY,
|
|
12425
|
-
label: mergedLabels.
|
|
12431
|
+
label: mergedLabels.entityTypeCompany
|
|
12426
12432
|
}
|
|
12427
12433
|
),
|
|
12428
12434
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
12429
12435
|
reactComponents.Radio,
|
|
12430
12436
|
{
|
|
12431
12437
|
value: MANIFEST_ENTITY.INDIVIDUAL,
|
|
12432
|
-
label: mergedLabels.
|
|
12438
|
+
label: mergedLabels.entityTypeIndividual
|
|
12433
12439
|
}
|
|
12434
12440
|
)
|
|
12435
12441
|
]
|
|
@@ -12441,7 +12447,7 @@ var CardVehicleOwnerForm = ({
|
|
|
12441
12447
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
12442
12448
|
reactGridSystem.Col,
|
|
12443
12449
|
{
|
|
12444
|
-
lg: owner.cargoReceiverEntityType === MANIFEST_ENTITY.COMPANY && owner.cargoReceiverEntity ===
|
|
12450
|
+
lg: owner.cargoReceiverEntityType === MANIFEST_ENTITY.COMPANY && owner.cargoReceiverEntity === HARDCODED_ID.COMPANY_ID_LAINNYA ? 6 : 12,
|
|
12445
12451
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
12446
12452
|
InputDynamic_default,
|
|
12447
12453
|
{
|
|
@@ -12449,6 +12455,7 @@ var CardVehicleOwnerForm = ({
|
|
|
12449
12455
|
disabled,
|
|
12450
12456
|
name: `owners.${index}.cargoReceiverEntity`,
|
|
12451
12457
|
placeholder: owner.cargoReceiverEntityType === MANIFEST_ENTITY.COMPANY ? mergedLabels.cargoReceiverCompanyPlaceholder : mergedLabels.cargoReceiverIndividualPlaceholder,
|
|
12458
|
+
required: true,
|
|
12452
12459
|
size: "large",
|
|
12453
12460
|
type: owner.cargoReceiverEntityType === MANIFEST_ENTITY.COMPANY ? "select" : "text",
|
|
12454
12461
|
options: owner.cargoReceiverEntityType === MANIFEST_ENTITY.COMPANY ? companyReceiverOptions : [],
|
|
@@ -12465,13 +12472,14 @@ var CardVehicleOwnerForm = ({
|
|
|
12465
12472
|
)
|
|
12466
12473
|
}
|
|
12467
12474
|
),
|
|
12468
|
-
owner.cargoReceiverEntityType === MANIFEST_ENTITY.COMPANY && owner.cargoReceiverEntity ===
|
|
12475
|
+
owner.cargoReceiverEntityType === MANIFEST_ENTITY.COMPANY && owner.cargoReceiverEntity === HARDCODED_ID.COMPANY_ID_LAINNYA && /* @__PURE__ */ jsxRuntime.jsx(reactGridSystem.Col, { lg: 6, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
12469
12476
|
InputDynamic_default,
|
|
12470
12477
|
{
|
|
12471
12478
|
control,
|
|
12472
12479
|
disabled,
|
|
12473
12480
|
name: `owners.${index}.cargoReceiverEntityOther`,
|
|
12474
12481
|
placeholder: owner.cargoReceiverEntityType === MANIFEST_ENTITY.COMPANY ? mergedLabels.selectCompanyPlaceholder : mergedLabels.inputSenderNamePlaceholder,
|
|
12482
|
+
required: true,
|
|
12475
12483
|
size: "large",
|
|
12476
12484
|
type: "text",
|
|
12477
12485
|
onChange: (val) => {
|
|
@@ -12518,7 +12526,6 @@ var CardVehicleOwnerForm = ({
|
|
|
12518
12526
|
{
|
|
12519
12527
|
disabled,
|
|
12520
12528
|
layout: "horizontal",
|
|
12521
|
-
value: owner.logisticsEntityType || "Perseorangan",
|
|
12522
12529
|
onChange: (_, data) => {
|
|
12523
12530
|
onUpdateOwner(owner.id, {
|
|
12524
12531
|
logisticsEntityType: data.value,
|
|
@@ -12531,19 +12538,21 @@ var CardVehicleOwnerForm = ({
|
|
|
12531
12538
|
""
|
|
12532
12539
|
);
|
|
12533
12540
|
},
|
|
12541
|
+
required: true,
|
|
12542
|
+
value: owner.logisticsEntityType || MANIFEST_ENTITY.COMPANY,
|
|
12534
12543
|
children: [
|
|
12535
12544
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
12536
12545
|
reactComponents.Radio,
|
|
12537
12546
|
{
|
|
12538
12547
|
value: MANIFEST_ENTITY.COMPANY,
|
|
12539
|
-
label: mergedLabels.
|
|
12548
|
+
label: mergedLabels.entityTypeCompany
|
|
12540
12549
|
}
|
|
12541
12550
|
),
|
|
12542
12551
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
12543
12552
|
reactComponents.Radio,
|
|
12544
12553
|
{
|
|
12545
12554
|
value: MANIFEST_ENTITY.INDIVIDUAL,
|
|
12546
|
-
label: mergedLabels.
|
|
12555
|
+
label: mergedLabels.entityTypeIndividual
|
|
12547
12556
|
}
|
|
12548
12557
|
)
|
|
12549
12558
|
]
|
|
@@ -12555,7 +12564,7 @@ var CardVehicleOwnerForm = ({
|
|
|
12555
12564
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
12556
12565
|
reactGridSystem.Col,
|
|
12557
12566
|
{
|
|
12558
|
-
xl: owner.logisticsEntityType === MANIFEST_ENTITY.COMPANY && owner.logisticsEntity ===
|
|
12567
|
+
xl: owner.logisticsEntityType === MANIFEST_ENTITY.COMPANY && owner.logisticsEntity === HARDCODED_ID.COMPANY_ID_LAINNYA ? 6 : 12,
|
|
12559
12568
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
12560
12569
|
InputDynamic_default,
|
|
12561
12570
|
{
|
|
@@ -12563,6 +12572,7 @@ var CardVehicleOwnerForm = ({
|
|
|
12563
12572
|
disabled,
|
|
12564
12573
|
name: `owners.${index}.logisticsEntity`,
|
|
12565
12574
|
placeholder: owner.logisticsEntityType === MANIFEST_ENTITY.COMPANY ? mergedLabels.logisticsCompanyPlaceholder : mergedLabels.logisticsIndividualPlaceholder,
|
|
12575
|
+
required: true,
|
|
12566
12576
|
size: "large",
|
|
12567
12577
|
type: owner.logisticsEntityType === MANIFEST_ENTITY.COMPANY ? "select" : "text",
|
|
12568
12578
|
options: owner.logisticsEntityType === MANIFEST_ENTITY.COMPANY ? companyLogisticsOptions : [],
|
|
@@ -12579,13 +12589,14 @@ var CardVehicleOwnerForm = ({
|
|
|
12579
12589
|
)
|
|
12580
12590
|
}
|
|
12581
12591
|
),
|
|
12582
|
-
owner.logisticsEntityType === MANIFEST_ENTITY.COMPANY && owner.logisticsEntity ===
|
|
12592
|
+
owner.logisticsEntityType === MANIFEST_ENTITY.COMPANY && owner.logisticsEntity === HARDCODED_ID.COMPANY_ID_LAINNYA && /* @__PURE__ */ jsxRuntime.jsx(reactGridSystem.Col, { xl: 6, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
12583
12593
|
InputDynamic_default,
|
|
12584
12594
|
{
|
|
12585
12595
|
control,
|
|
12586
12596
|
disabled,
|
|
12587
12597
|
name: `owners.${index}.logisticsEntityOther`,
|
|
12588
12598
|
placeholder: owner.logisticsEntityType === MANIFEST_ENTITY.COMPANY ? mergedLabels.selectCompanyPlaceholder : mergedLabels.inputSenderNamePlaceholder,
|
|
12599
|
+
required: true,
|
|
12589
12600
|
size: "large",
|
|
12590
12601
|
type: "text",
|
|
12591
12602
|
onChange: (val) => {
|
|
@@ -12622,16 +12633,17 @@ var CardVehicleOwnerForm = ({
|
|
|
12622
12633
|
control,
|
|
12623
12634
|
disabled,
|
|
12624
12635
|
name: `owners.${index}.originCity`,
|
|
12625
|
-
placeholder: mergedLabels.selectPlaceholder,
|
|
12626
|
-
type: "select",
|
|
12627
|
-
options: cityOriginOptions,
|
|
12628
|
-
size: "large",
|
|
12629
12636
|
onChange: (val) => {
|
|
12630
12637
|
setValue(`owners.${index}.originCity`, val);
|
|
12631
12638
|
onUpdateOwner(owner.id, {
|
|
12632
12639
|
originCity: val
|
|
12633
12640
|
});
|
|
12634
|
-
}
|
|
12641
|
+
},
|
|
12642
|
+
options: cityOriginOptions,
|
|
12643
|
+
placeholder: mergedLabels.selectPlaceholder,
|
|
12644
|
+
required: true,
|
|
12645
|
+
size: "large",
|
|
12646
|
+
type: "select"
|
|
12635
12647
|
}
|
|
12636
12648
|
)
|
|
12637
12649
|
] }),
|
|
@@ -12643,16 +12655,17 @@ var CardVehicleOwnerForm = ({
|
|
|
12643
12655
|
control,
|
|
12644
12656
|
disabled,
|
|
12645
12657
|
name: `owners.${index}.destinationCity`,
|
|
12646
|
-
placeholder: mergedLabels.selectPlaceholder,
|
|
12647
|
-
type: "select",
|
|
12648
12658
|
options: cityDestinationOptions,
|
|
12649
|
-
size: "large",
|
|
12650
12659
|
onChange: (val) => {
|
|
12651
12660
|
setValue(`owners.${index}.destinationCity`, val);
|
|
12652
12661
|
onUpdateOwner(owner.id, {
|
|
12653
12662
|
destinationCity: val
|
|
12654
12663
|
});
|
|
12655
|
-
}
|
|
12664
|
+
},
|
|
12665
|
+
placeholder: mergedLabels.selectPlaceholder,
|
|
12666
|
+
required: true,
|
|
12667
|
+
size: "large",
|
|
12668
|
+
type: "select"
|
|
12656
12669
|
}
|
|
12657
12670
|
)
|
|
12658
12671
|
] })
|
|
@@ -12710,10 +12723,6 @@ var CardVehicleOwnerForm = ({
|
|
|
12710
12723
|
control,
|
|
12711
12724
|
disabled,
|
|
12712
12725
|
name: `owners.${index}.cargo.${cargoIndex}.commodity`,
|
|
12713
|
-
placeholder: mergedLabels.selectPlaceholder,
|
|
12714
|
-
type: "select",
|
|
12715
|
-
options: commodityOptions,
|
|
12716
|
-
size: "large",
|
|
12717
12726
|
onChange: (val) => {
|
|
12718
12727
|
const name = `owners.${index}.cargo.${cargoIndex}.commodity`;
|
|
12719
12728
|
setValue(name, val);
|
|
@@ -12726,7 +12735,12 @@ var CardVehicleOwnerForm = ({
|
|
|
12726
12735
|
onUpdateOwner(owner.id, {
|
|
12727
12736
|
cargoItems: updatedCargoItems
|
|
12728
12737
|
});
|
|
12729
|
-
}
|
|
12738
|
+
},
|
|
12739
|
+
options: commodityOptions,
|
|
12740
|
+
placeholder: mergedLabels.selectPlaceholder,
|
|
12741
|
+
required: true,
|
|
12742
|
+
type: "select",
|
|
12743
|
+
size: "large"
|
|
12730
12744
|
}
|
|
12731
12745
|
),
|
|
12732
12746
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -12756,10 +12770,6 @@ var CardVehicleOwnerForm = ({
|
|
|
12756
12770
|
control,
|
|
12757
12771
|
disabled,
|
|
12758
12772
|
name: `owners.${index}.cargo.${cargoIndex}.cargoType`,
|
|
12759
|
-
placeholder: mergedLabels.selectPlaceholder,
|
|
12760
|
-
type: "select",
|
|
12761
|
-
options: loadTypeOptions,
|
|
12762
|
-
size: "large",
|
|
12763
12773
|
onChange: (val) => {
|
|
12764
12774
|
const name = `owners.${index}.cargo.${cargoIndex}.cargoType`;
|
|
12765
12775
|
setValue(name, val);
|
|
@@ -12772,7 +12782,12 @@ var CardVehicleOwnerForm = ({
|
|
|
12772
12782
|
onUpdateOwner(owner.id, {
|
|
12773
12783
|
cargoItems: updatedCargoItems
|
|
12774
12784
|
});
|
|
12775
|
-
}
|
|
12785
|
+
},
|
|
12786
|
+
options: loadTypeOptions,
|
|
12787
|
+
placeholder: mergedLabels.selectPlaceholder,
|
|
12788
|
+
required: true,
|
|
12789
|
+
size: "large",
|
|
12790
|
+
type: "select"
|
|
12776
12791
|
}
|
|
12777
12792
|
),
|
|
12778
12793
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -12959,17 +12974,22 @@ var CardVehicleOwnerForm = ({
|
|
|
12959
12974
|
})(),
|
|
12960
12975
|
/* @__PURE__ */ jsxRuntime.jsxs(reactGridSystem.Col, { md: 3, children: [
|
|
12961
12976
|
/* @__PURE__ */ jsxRuntime.jsx(reactComponents.Body1, { className: styles.label, children: mergedLabels.priceLabel }),
|
|
12962
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
12963
|
-
|
|
12964
|
-
|
|
12965
|
-
|
|
12966
|
-
|
|
12967
|
-
|
|
12968
|
-
|
|
12969
|
-
|
|
12970
|
-
|
|
12971
|
-
|
|
12972
|
-
|
|
12977
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactComponents.Body2, { style: { marginTop: "0.5rem" }, children: (() => {
|
|
12978
|
+
return new Intl.NumberFormat(
|
|
12979
|
+
language === "id" ? "id-ID" : "en-US",
|
|
12980
|
+
{
|
|
12981
|
+
style: "currency",
|
|
12982
|
+
currency: language === "id" ? "IDR" : "USD",
|
|
12983
|
+
minimumFractionDigits: 0
|
|
12984
|
+
}
|
|
12985
|
+
).format(
|
|
12986
|
+
Number(
|
|
12987
|
+
getValues(
|
|
12988
|
+
`owners.${index}.cargo.${cargoIndex}.price`
|
|
12989
|
+
) || 1234567890
|
|
12990
|
+
)
|
|
12991
|
+
);
|
|
12992
|
+
})() })
|
|
12973
12993
|
] })
|
|
12974
12994
|
] }),
|
|
12975
12995
|
/* @__PURE__ */ jsxRuntime.jsxs(reactGridSystem.Row, { children: [
|
|
@@ -12985,10 +13005,7 @@ var CardVehicleOwnerForm = ({
|
|
|
12985
13005
|
control,
|
|
12986
13006
|
disabled,
|
|
12987
13007
|
name: `owners.${index}.cargo.${cargoIndex}.industryType`,
|
|
12988
|
-
placeholder: mergedLabels.selectPlaceholder,
|
|
12989
|
-
type: "select",
|
|
12990
13008
|
options: industryOptions,
|
|
12991
|
-
size: "large",
|
|
12992
13009
|
onChange: (val) => {
|
|
12993
13010
|
const name = `owners.${index}.cargo.${cargoIndex}.industryType`;
|
|
12994
13011
|
setValue(name, val);
|
|
@@ -13001,7 +13018,11 @@ var CardVehicleOwnerForm = ({
|
|
|
13001
13018
|
onUpdateOwner(owner.id, {
|
|
13002
13019
|
cargoItems: updatedCargoItems
|
|
13003
13020
|
});
|
|
13004
|
-
}
|
|
13021
|
+
},
|
|
13022
|
+
placeholder: mergedLabels.selectPlaceholder,
|
|
13023
|
+
required: true,
|
|
13024
|
+
size: "large",
|
|
13025
|
+
type: "select"
|
|
13005
13026
|
}
|
|
13006
13027
|
),
|
|
13007
13028
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -13027,10 +13048,7 @@ var CardVehicleOwnerForm = ({
|
|
|
13027
13048
|
control,
|
|
13028
13049
|
disabled,
|
|
13029
13050
|
name: `owners.${index}.cargo.${cargoIndex}.cargoCategory`,
|
|
13030
|
-
placeholder: mergedLabels.selectPlaceholder,
|
|
13031
|
-
type: "select",
|
|
13032
13051
|
options: loadCategoryOptions,
|
|
13033
|
-
size: "large",
|
|
13034
13052
|
onChange: (val) => {
|
|
13035
13053
|
const name = `owners.${index}.cargo.${cargoIndex}.cargoCategory`;
|
|
13036
13054
|
setValue(name, val);
|
|
@@ -13043,7 +13061,11 @@ var CardVehicleOwnerForm = ({
|
|
|
13043
13061
|
onUpdateOwner(owner.id, {
|
|
13044
13062
|
cargoItems: updatedCargoItems
|
|
13045
13063
|
});
|
|
13046
|
-
}
|
|
13064
|
+
},
|
|
13065
|
+
placeholder: mergedLabels.selectPlaceholder,
|
|
13066
|
+
required: true,
|
|
13067
|
+
size: "large",
|
|
13068
|
+
type: "select"
|
|
13047
13069
|
}
|
|
13048
13070
|
),
|
|
13049
13071
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -16369,6 +16391,7 @@ exports.EmptyContent = EmptyContent;
|
|
|
16369
16391
|
exports.EmptyContentDefaultLabels = DEFAULT_LABELS11;
|
|
16370
16392
|
exports.FileUpload = FileUpload_default;
|
|
16371
16393
|
exports.GENDER = GENDER;
|
|
16394
|
+
exports.HARDCODED_ID = HARDCODED_ID;
|
|
16372
16395
|
exports.HTTP_STATUS = HTTP_STATUS;
|
|
16373
16396
|
exports.IDENTITY_TYPE = IDENTITY_TYPE;
|
|
16374
16397
|
exports.InputDynamic = InputDynamic_default;
|