@asdp/ferryui 0.1.22-dev.10231 → 0.1.22-dev.10301

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.mjs CHANGED
@@ -357,67 +357,6 @@ var extendedTokens = {
357
357
  colorBrandForegroundLinkSelected: customBrand[110]});
358
358
 
359
359
  // src/constants/api.ts
360
- var API_ENDPOINTS = {
361
- PORTS: {
362
- ORIGIN: "/v1/surrounding/catalog/ports/list/origin",
363
- DESTINATION: "/v1/surrounding/catalog/ports/list/destination"
364
- },
365
- SERVICES: {
366
- LIST: "/v1/surrounding/catalog/service-types"
367
- },
368
- PASSENGERS: {
369
- LIST: "/v1/surrounding/catalog/passenger-types"
370
- },
371
- // Authentication endpoints
372
- AUTH: {
373
- LOGIN: "/v1/surrounding/auth/login",
374
- REGISTER: "/auth/register",
375
- LOGOUT: "/auth/logout",
376
- REFRESH: "/auth/refresh",
377
- PROFILE: "/auth/profile",
378
- UPDATE_PROFILE: "/auth/profile",
379
- CHANGE_PASSWORD: "/auth/change-password",
380
- FORGOT_PASSWORD: "/auth/forgot-password",
381
- RESET_PASSWORD: "/auth/reset-password",
382
- VERIFY_EMAIL: "/auth/verify-email"
383
- },
384
- // User management
385
- USERS: {
386
- LIST: "/users",
387
- CREATE: "/users",
388
- DETAIL: (id) => `/users/${id}`,
389
- UPDATE: (id) => `/users/${id}`,
390
- DELETE: (id) => `/users/${id}`,
391
- AVATAR: (id) => `/users/${id}/avatar`
392
- },
393
- // File management
394
- FILES: {
395
- UPLOAD: "/files/upload",
396
- DOWNLOAD: (id) => `/files/${id}/download`,
397
- DELETE: (id) => `/files/${id}`,
398
- LIST: "/files"
399
- },
400
- // Dashboard/Analytics
401
- DASHBOARD: {
402
- STATS: "/dashboard/stats",
403
- CHART_DATA: "/dashboard/chart-data",
404
- RECENT_ACTIVITIES: "/dashboard/recent-activities"
405
- },
406
- // Notifications
407
- NOTIFICATIONS: {
408
- LIST: "/notifications",
409
- MARK_READ: (id) => `/notifications/${id}/read`,
410
- MARK_ALL_READ: "/notifications/read-all",
411
- DELETE: (id) => `/notifications/${id}`,
412
- SETTINGS: "/notifications/settings"
413
- },
414
- // Settings
415
- SETTINGS: {
416
- GENERAL: "/settings/general",
417
- SECURITY: "/settings/security",
418
- PREFERENCES: "/settings/preferences"
419
- }
420
- };
421
360
  var API_CONFIG = {
422
361
  TIMEOUT: 3e4,
423
362
  RETRY_ATTEMPTS: 3,
@@ -12678,7 +12617,9 @@ var DEFAULT_LABELS26 = {
12678
12617
  entityTypeIndividual: "Perseorangan",
12679
12618
  selectCompanyPlaceholder: "Pilih Nama Perusahaan",
12680
12619
  inputSenderNamePlaceholder: "Masukkan Nama Pengirim",
12681
- estimatedWeightLabel: "Estimasi Berat Muatan dan Kendaraan (Ton)",
12620
+ estimatedVehicleWeightLabel: "Estimasi Berat Kendaraan (Ton)",
12621
+ estimatedCargoWeightLabel: "Estimasi Berat Muatan (Ton)",
12622
+ estimatedVehicleAndCargoWeightLabel: "Estimasi Berat Kendaraan dan Muatan (Ton)",
12682
12623
  inputNumberPlaceholder: "Masukkan Angka",
12683
12624
  originCityLabel: "Kota Asal",
12684
12625
  destinationCityLabel: "Kota Tujuan",
@@ -12728,7 +12669,9 @@ var DEFAULT_LABELS26 = {
12728
12669
  entityTypeIndividual: "Individual",
12729
12670
  selectCompanyPlaceholder: "Select Company Name",
12730
12671
  inputSenderNamePlaceholder: "Enter Sender Name",
12731
- estimatedWeightLabel: "Estimated Cargo & Vehicle Weight (Ton)",
12672
+ estimatedVehicleWeightLabel: "Estimated Vehicle Weight (Ton)",
12673
+ estimatedCargoWeightLabel: "Estimated Cargo Weight (Ton)",
12674
+ estimatedVehicleAndCargoWeightLabel: "Estimated Vehicle and Cargo Weight (Ton)",
12732
12675
  inputNumberPlaceholder: "Enter Number",
12733
12676
  originCityLabel: "Origin City",
12734
12677
  destinationCityLabel: "Destination City",
@@ -12834,6 +12777,7 @@ var CardVehicleOwnerForm = ({
12834
12777
  commodityOptions = [],
12835
12778
  loadTypeOptions = [],
12836
12779
  loadTypes = [],
12780
+ selectedLoadType,
12837
12781
  loadTypeOptionsByCommodityId = {},
12838
12782
  industryOptions = [],
12839
12783
  loadCategoryOptions = [],
@@ -13027,7 +12971,7 @@ var CardVehicleOwnerForm = ({
13027
12971
  /* @__PURE__ */ jsxs(Col, { lg: 6, children: [
13028
12972
  /* @__PURE__ */ jsx("div", { style: { height: "1rem" } }),
13029
12973
  /* @__PURE__ */ jsxs(Body1, { className: styles.label, children: [
13030
- mergedLabels.estimatedWeightLabel,
12974
+ mergedLabels.estimatedVehicleWeightLabel,
13031
12975
  " ",
13032
12976
  /* @__PURE__ */ jsx("span", { style: { color: "red" }, children: "*" })
13033
12977
  ] }),
@@ -13470,10 +13414,10 @@ var CardVehicleOwnerForm = ({
13470
13414
  const type = watch(
13471
13415
  `owners.${index}.cargo.${cargoIndex}.cargoType`
13472
13416
  );
13473
- const selectedLoadType = loadTypes.find(
13417
+ const selectedLoadType2 = loadTypes.find(
13474
13418
  (loadType) => loadType.id.toString() === type
13475
13419
  );
13476
- if (!selectedLoadType) {
13420
+ if (!selectedLoadType2) {
13477
13421
  return /* @__PURE__ */ jsxs(Col, { md: 3, children: [
13478
13422
  /* @__PURE__ */ jsx(Body1, { className: styles.label, children: mergedLabels.priceLabel }),
13479
13423
  /* @__PURE__ */ jsx(
@@ -13680,10 +13624,10 @@ var CardVehicleOwnerForm = ({
13680
13624
  const type2 = watch(
13681
13625
  `owners.${index}.cargo.${cargoIndex}.cargoType`
13682
13626
  );
13683
- const selectedLoadType2 = loadTypes.find(
13627
+ const selectedLoadType3 = loadTypes.find(
13684
13628
  (loadType) => loadType.id.toString() === type2
13685
13629
  );
13686
- return selectedLoadType2?.unit?.name;
13630
+ return selectedLoadType3?.unit?.name;
13687
13631
  })()
13688
13632
  }
13689
13633
  )
@@ -13711,7 +13655,7 @@ var CardVehicleOwnerForm = ({
13711
13655
  getValues(
13712
13656
  `owners.${index}.cargo.${cargoIndex}.quantity`
13713
13657
  ) || 0
13714
- ) * (selectedLoadType?.price || 0)
13658
+ ) * (selectedLoadType2?.price || 0)
13715
13659
  );
13716
13660
  })()
13717
13661
  }
@@ -17602,6 +17546,6 @@ var CardProfileMenu = ({
17602
17546
  ) });
17603
17547
  };
17604
17548
 
17605
- export { API_CONFIG, API_ENDPOINTS, API_ERROR_MESSAGES, BackgroundTicketCard_default as BackgroundTicketCard, BackgroundTicketCardVertical_default as BackgroundTicketCardVertical, COUNTRIES, CardAddon, CardBanner, CardBookingAddOn, CardBookingTicket, CardFAQ, CardMealCatalog, CardOrdererInfo, CardPassengerList, CardPaymentGuide, CardPaymentInfo, CardPaymentMethodList, CardPriceDetails, CardProfileMenu, CardPromo, CardReview, CardReviewDetail, CardReviewPassenger, CardServiceMenu, CardStatusOrder, CardTicket, CardTicketSearch, DEFAULT_LABELS8 as CardTicketSearchDefaultLabels, CardTicketSearchSummary, DEFAULT_LABELS9 as CardTicketSearchSummaryDefaultLabels, CardVehicleDetail, CardVehicleOwnerForm, CarouselWithCustomNav, DEFAULT_DURATION_RANGE, DEFAULT_PRICE_RANGE, DEFAULT_SCROLL_AMOUNT, DEFAULT_SERVICE_TYPES, DEFAULT_SORT_OPTIONS, DEFAULT_TIME_SLOTS, DEFAULT_VEHICLE_ICONS, DateFilter, DEFAULT_LABELS18 as DateFilterDefaultLabels, EmptyContent, DEFAULT_LABELS11 as EmptyContentDefaultLabels, FileUpload_default as FileUpload, GENDER, HARDCODED_ID, HTTP_STATUS, IDENTITY_TYPE, InputDynamic_default as InputDynamic, LOAD_TYPE, MANIFEST_ENTITY, MODAL_PRESETS, MY_TICKET_STATUS, MY_TICKET_TAB, ModalFilterTicket, DEFAULT_LABELS17 as ModalFilterTicketDefaultLabels, ModalIllustration, ModalListMenuService, ModalListPassenger, ModalPassengerForm, ModalPreviewImage, ModalPriceDetail, ModalSearchHarbor, ModalSearchTicket, ModalSelectDate, ModalService, ModalTotalPassengers, ModalTypeOfService, PASSENGER_TYPE, SortMenu, Stepper, calculateAge, getBadgeConfig, getModalPreset, getSortLabel, hexToRgba };
17549
+ export { API_CONFIG, API_ERROR_MESSAGES, BackgroundTicketCard_default as BackgroundTicketCard, BackgroundTicketCardVertical_default as BackgroundTicketCardVertical, COUNTRIES, CardAddon, CardBanner, CardBookingAddOn, CardBookingTicket, CardFAQ, CardMealCatalog, CardOrdererInfo, CardPassengerList, CardPaymentGuide, CardPaymentInfo, CardPaymentMethodList, CardPriceDetails, CardProfileMenu, CardPromo, CardReview, CardReviewDetail, CardReviewPassenger, CardServiceMenu, CardStatusOrder, CardTicket, CardTicketSearch, DEFAULT_LABELS8 as CardTicketSearchDefaultLabels, CardTicketSearchSummary, DEFAULT_LABELS9 as CardTicketSearchSummaryDefaultLabels, CardVehicleDetail, CardVehicleOwnerForm, CarouselWithCustomNav, DEFAULT_DURATION_RANGE, DEFAULT_PRICE_RANGE, DEFAULT_SCROLL_AMOUNT, DEFAULT_SERVICE_TYPES, DEFAULT_SORT_OPTIONS, DEFAULT_TIME_SLOTS, DEFAULT_VEHICLE_ICONS, DateFilter, DEFAULT_LABELS18 as DateFilterDefaultLabels, EmptyContent, DEFAULT_LABELS11 as EmptyContentDefaultLabels, FileUpload_default as FileUpload, GENDER, HARDCODED_ID, HTTP_STATUS, IDENTITY_TYPE, InputDynamic_default as InputDynamic, LOAD_TYPE, MANIFEST_ENTITY, MODAL_PRESETS, MY_TICKET_STATUS, MY_TICKET_TAB, ModalFilterTicket, DEFAULT_LABELS17 as ModalFilterTicketDefaultLabels, ModalIllustration, ModalListMenuService, ModalListPassenger, ModalPassengerForm, ModalPreviewImage, ModalPriceDetail, ModalSearchHarbor, ModalSearchTicket, ModalSelectDate, ModalService, ModalTotalPassengers, ModalTypeOfService, PASSENGER_TYPE, SortMenu, Stepper, calculateAge, getBadgeConfig, getModalPreset, getSortLabel, hexToRgba };
17606
17550
  //# sourceMappingURL=index.mjs.map
17607
17551
  //# sourceMappingURL=index.mjs.map