@nerdjs/sales-kit 2.2.1 → 2.2.3

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.
Files changed (83) hide show
  1. package/dist/hooks/lep/checkList.js +2 -1
  2. package/dist/hooks/lep/checkList.js.map +1 -1
  3. package/dist/hooks/lep/lepAccessorials.js +6 -5
  4. package/dist/hooks/lep/lepAccessorials.js.map +1 -1
  5. package/dist/hooks/lep/lepActionBar.js +6 -5
  6. package/dist/hooks/lep/lepActionBar.js.map +1 -1
  7. package/dist/hooks/lep/lepAdjustments.js +6 -5
  8. package/dist/hooks/lep/lepAdjustments.js.map +1 -1
  9. package/dist/hooks/lep/lepClaims.js +7 -6
  10. package/dist/hooks/lep/lepClaims.js.map +1 -1
  11. package/dist/hooks/lep/lepCommodities.js +3 -2
  12. package/dist/hooks/lep/lepCommodities.js.map +1 -1
  13. package/dist/hooks/lep/lepCustomerContacts.js +6 -5
  14. package/dist/hooks/lep/lepCustomerContacts.js.map +1 -1
  15. package/dist/hooks/lep/lepCustomerInfo.js +3 -2
  16. package/dist/hooks/lep/lepCustomerInfo.js.map +1 -1
  17. package/dist/hooks/lep/lepCustomerPeople.js +6 -5
  18. package/dist/hooks/lep/lepCustomerPeople.js.map +1 -1
  19. package/dist/hooks/lep/lepDocuments.js +5 -4
  20. package/dist/hooks/lep/lepDocuments.js.map +1 -1
  21. package/dist/hooks/lep/lepEDI.js +3 -2
  22. package/dist/hooks/lep/lepEDI.js.map +1 -1
  23. package/dist/hooks/lep/lepInvoiceDetails.js +3 -2
  24. package/dist/hooks/lep/lepInvoiceDetails.js.map +1 -1
  25. package/dist/hooks/lep/lepKickbacks.js +5 -4
  26. package/dist/hooks/lep/lepKickbacks.js.map +1 -1
  27. package/dist/hooks/lep/lepLoadInfo.js +11 -10
  28. package/dist/hooks/lep/lepLoadInfo.js.map +1 -1
  29. package/dist/hooks/lep/lepLoadLocation.js +3 -2
  30. package/dist/hooks/lep/lepLoadLocation.js.map +1 -1
  31. package/dist/hooks/lep/lepLoadNotes.js +2 -1
  32. package/dist/hooks/lep/lepLoadNotes.js.map +1 -1
  33. package/dist/hooks/lep/lepQuoteResult.js +2 -1
  34. package/dist/hooks/lep/lepQuoteResult.js.map +1 -1
  35. package/dist/hooks/lep/lepRateReviews.js +5 -4
  36. package/dist/hooks/lep/lepRateReviews.js.map +1 -1
  37. package/dist/hooks/lep/lepShipcons.js +36 -34
  38. package/dist/hooks/lep/lepShipcons.js.map +1 -1
  39. package/dist/hooks/lep/lepUserNotes.js +6 -5
  40. package/dist/hooks/lep/lepUserNotes.js.map +1 -1
  41. package/dist/hooks/lep/loadEditPanel.js +5 -4
  42. package/dist/hooks/lep/loadEditPanel.js.map +1 -1
  43. package/dist/hooks/load/loadDetailsStatus.js +3 -2
  44. package/dist/hooks/load/loadDetailsStatus.js.map +1 -1
  45. package/dist/hooks/load/loadDrawer.js +4 -3
  46. package/dist/hooks/load/loadDrawer.js.map +1 -1
  47. package/dist/hooks/load/loadLastLocation.js +2 -1
  48. package/dist/hooks/load/loadLastLocation.js.map +1 -1
  49. package/dist/hooks/load/loadsSearchInput.js +3 -2
  50. package/dist/hooks/load/loadsSearchInput.js.map +1 -1
  51. package/dist/hooks/locationsForm/locationsForm.js +2 -1
  52. package/dist/hooks/locationsForm/locationsForm.js.map +1 -1
  53. package/dist/hooks/locationsForm/locationsFormSales.d.ts +1 -1
  54. package/dist/hooks/locationsForm/locationsFormSales.js +16 -6
  55. package/dist/hooks/locationsForm/locationsFormSales.js.map +1 -1
  56. package/dist/hooks/quote/form.js +35 -28
  57. package/dist/hooks/quote/form.js.map +1 -1
  58. package/dist/hooks/quote/helpers.js +34 -23
  59. package/dist/hooks/quote/helpers.js.map +1 -1
  60. package/dist/hooks/quote/result.js +42 -41
  61. package/dist/hooks/quote/result.js.map +1 -1
  62. package/dist/hooks/quote/template.js +3 -2
  63. package/dist/hooks/quote/template.js.map +1 -1
  64. package/dist/hooks/tender/form.js +76 -70
  65. package/dist/hooks/tender/form.js.map +1 -1
  66. package/dist/hooks/tender/helpers.js +18 -17
  67. package/dist/hooks/tender/helpers.js.map +1 -1
  68. package/dist/i18n.d.ts +2 -0
  69. package/dist/i18n.js +17 -0
  70. package/dist/i18n.js.map +1 -0
  71. package/dist/index.d.ts +1 -1
  72. package/dist/index.js +1 -1
  73. package/dist/index.js.map +1 -1
  74. package/dist/locales/en/common.json +175 -0
  75. package/dist/locales/en/components.json +90 -0
  76. package/dist/locales/en/entities.json +191 -0
  77. package/dist/locales/index.d.ts +461 -1
  78. package/dist/locales/index.js +11 -1
  79. package/dist/locales/index.js.map +1 -1
  80. package/package.json +1 -1
  81. package/dist/locales/salesKitEn.d.ts +0 -152
  82. package/dist/locales/salesKitEn.js +0 -153
  83. package/dist/locales/salesKitEn.js.map +0 -1
@@ -2,6 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { Sheet, Box, Tabs, TabPanel, TabList, Tab, useTheme } from "@mui/joy";
3
3
  import { useEffect } from "react";
4
4
  import { useHotkeys } from "react-hotkeys-hook";
5
+ import salesKitI18n from "../../i18n";
5
6
  import { useTranslation } from "react-i18next";
6
7
  import { Allotment } from "allotment";
7
8
  import { useDispatch, useSelector } from "react-redux";
@@ -162,12 +163,12 @@ function Debugger() {
162
163
  getCustomerAccessorials(body.customerId, true);
163
164
  }
164
165
  }, [body.customerId]);
165
- const { t } = useTranslation("salesKit");
166
+ const { t } = useTranslation("common", { i18n: salesKitI18n });
166
167
  return (_jsx(Sheet, { sx: { flex: 1 }, variant: "solid", children: _jsxs(Tabs, { defaultValue: 0, variant: "solid", children: [_jsxs(TabList, { sx: {
167
168
  overflow: "auto",
168
169
  scrollSnapType: "x mandatory",
169
170
  "&::-webkit-scrollbar": { display: "none" },
170
- }, children: [_jsx(Tab, { sx: { flex: "none", scrollSnapAlign: "start" }, children: t("Body") }), _jsx(Tab, { sx: { flex: "none", scrollSnapAlign: "start" }, children: t("Quote Accessorials") }), _jsx(Tab, { sx: { flex: "none", scrollSnapAlign: "start" }, children: t("Customer Accessorials") }), _jsx(Tab, { sx: { flex: "none", scrollSnapAlign: "start" }, children: t("Holidays") }), _jsx(Tab, { sx: { flex: "none", scrollSnapAlign: "start" }, children: t("Response") })] }), [0, 1, 2, 3, 4].map((i) => (_jsx(TabPanel, { value: i, sx: {
171
+ }, children: [_jsx(Tab, { sx: { flex: "none", scrollSnapAlign: "start" }, children: t("global.Body") }), _jsx(Tab, { sx: { flex: "none", scrollSnapAlign: "start" }, children: t("global.Quote Accessorials") }), _jsx(Tab, { sx: { flex: "none", scrollSnapAlign: "start" }, children: t("global.Customer Accessorials") }), _jsx(Tab, { sx: { flex: "none", scrollSnapAlign: "start" }, children: t("global.Holidays") }), _jsx(Tab, { sx: { flex: "none", scrollSnapAlign: "start" }, children: t("global.Response") })] }), [0, 1, 2, 3, 4].map((i) => (_jsx(TabPanel, { value: i, sx: {
171
172
  color: "white",
172
173
  overflow: "auto",
173
174
  fontSize: 10,
@@ -1 +1 @@
1
- {"version":3,"file":"template.js","sourceRoot":"","sources":["../../../src/hooks/quote/template.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAC9E,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AACvD,OAAO,EACL,iBAAiB,EACjB,iBAAiB,EACjB,mBAAmB,EACnB,YAAY,EACZ,iBAAiB,EACjB,YAAY,EACZ,cAAc,EACd,eAAe,EACf,uBAAuB,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CAAC;wCACT,CAAC,CAAC,iBAAiB;wCACnB,CAAC,CAAC,CAAC,KAAK,CAAC;4CACT,CAAC,CAAC,oBAAoB;4CACtB,CAAC,CAAC,CAAC,KAAK,CAAC;gDACT,CAAC,CAAC,QAAQ;gDACV,CAAC,CAAC,QAAQ,EACZ,IAAI,EACJ,CAAC,CACF,GACI,GACH,GACF,IA1BD,CAAC,CA2BG,CACZ,CAAC,IACG,GACD,CACT,CAAC;AACJ,CAAC"}
@@ -4,6 +4,7 @@ import { Button, Chip, FormControl, FormLabel, Grid, IconButton, Input, Textarea
4
4
  import { DataGridPremium, useGridApiRef, } from "@mui/x-data-grid-premium";
5
5
  import { NerdFileUpload, showNotification, useNerdConfirm, } from "@nerdjs/nerd-ui";
6
6
  import { Fragment, useCallback, useEffect, useLayoutEffect, useMemo, useRef, useState, } from "react";
7
+ import salesKitI18n from "../../i18n";
7
8
  import { useTranslation } from "react-i18next";
8
9
  import { useDispatch, useSelector } from "react-redux";
9
10
  import { useParams, useSearchParams } from "react-router-dom";
@@ -47,7 +48,7 @@ export function TenderForm(props) {
47
48
  const [getCommodities, { data: verifiedPalletCommodities }] = useGenerateCommoditiesMutation();
48
49
  const [deleteTender] = useDeleteTenderMutation();
49
50
  const confirm = useNerdConfirm();
50
- const { t } = useTranslation("salesKit");
51
+ const { t } = useTranslation("common", { i18n: salesKitI18n });
51
52
  useEffect(() => {
52
53
  return () => {
53
54
  restartTender();
@@ -294,7 +295,7 @@ export function TenderForm(props) {
294
295
  }, children: _jsxs(Box, { sx: {
295
296
  maxWidth: 900,
296
297
  width: "100%",
297
- }, children: [_jsx(Typography, { display: "inline", color: "danger", children: "*" }), " ", _jsx(Typography, { display: "inline", level: "body-sm", children: t("requiredField") })] }) }), errors && errors.length > 0 ? (_jsx(Box, { sx: {
298
+ }, children: [_jsx(Typography, { display: "inline", color: "danger", children: "*" }), " ", _jsx(Typography, { display: "inline", level: "body-sm", children: t("global.requiredField") })] }) }), errors && errors.length > 0 ? (_jsx(Box, { sx: {
298
299
  display: "flex",
299
300
  justifyContent: "center",
300
301
  marginTop: 1,
@@ -340,7 +341,7 @@ export function TenderForm(props) {
340
341
  textAlign: "center",
341
342
  }, children: [_jsx(Typography, { display: "inline", children: _jsx(Box, { className: "fa-duotone fa-circle-info pright", component: "i", sx: {
342
343
  color: (theme) => theme.palette.warning[400],
343
- } }) }), _jsx(Typography, { level: "body-sm", display: "inline", sx: { opacity: 0.5 }, children: t("inaccurateTenderWarning") })] }) }), tenderResponse ? (_jsxs(_Fragment, { children: [_jsx(Box, { sx: {
344
+ } }) }), _jsx(Typography, { level: "body-sm", display: "inline", sx: { opacity: 0.5 }, children: t("global.inaccurateTenderWarning") })] }) }), tenderResponse ? (_jsxs(_Fragment, { children: [_jsx(Box, { sx: {
344
345
  display: "flex",
345
346
  justifyContent: "center",
346
347
  marginTop: 2,
@@ -369,22 +370,22 @@ export function TenderForm(props) {
369
370
  });
370
371
  newQuote();
371
372
  },
372
- }), children: t("Cancel Load") }), _jsx(Button, { sx: {
373
+ }), children: t("global.Cancel Load") }), _jsx(Button, { sx: {
373
374
  ml: 1,
374
375
  }, color: "neutral", variant: "outlined", startDecorator: _jsx("i", { className: "fa-solid fa-dollar-sign" }), onClick: () => {
375
376
  newQuote();
376
- }, children: t("New Quote") }), _jsx(Button, { variant: "soft", startDecorator: _jsx("i", { className: "fa-solid fa-box" }), sx: {
377
+ }, children: t("global.New Quote") }), _jsx(Button, { variant: "soft", startDecorator: _jsx("i", { className: "fa-solid fa-box" }), sx: {
377
378
  ml: 1,
378
379
  }, onClick: () => {
379
380
  openLoad(tenderResponse.loadId);
380
- }, children: t("Open Load") })] })] })) : (_jsx(Box, { sx: {
381
+ }, children: t("global.Open Load") })] })] })) : (_jsx(Box, { sx: {
381
382
  display: "flex",
382
383
  justifyContent: "center",
383
384
  marginTop: 2,
384
385
  marginBottom: 2,
385
386
  }, children: _jsx(Button, { variant: "soft", onClick: () => {
386
387
  setTimeout(() => handleNextStep(), 100);
387
- }, loading: isLoading, children: step > 2 ? t("Tender") : t("Next") }) }))] }));
388
+ }, loading: isLoading, children: step > 2 ? t("global.Tender") : t("global.Next") }) }))] }));
388
389
  }
389
390
  /**
390
391
  *
@@ -394,7 +395,7 @@ export function TenderForm(props) {
394
395
  * @returns {ReactElement} PickUp
395
396
  */
396
397
  function PickUp(props) {
397
- const { t } = useTranslation("salesKit");
398
+ const { t } = useTranslation("common", { i18n: salesKitI18n });
398
399
  const dispatch = useDispatch();
399
400
  const apiRef = useGridApiRef();
400
401
  const { id: quoteID } = useParams();
@@ -409,6 +410,27 @@ function PickUp(props) {
409
410
  const selectedServiceLevel = quote?.serviceLevels?.find((sl) => sl.id === selectedPlan);
410
411
  const rows = useSelector(selectPickups);
411
412
  const columns = getTenderStopsColumns(errors, props.customerPortal, (location, id, field) => setLocationFormOpen({ open: true, place: location, field, id }), selectedServiceLevel);
413
+ const handleSaveLocation = (value) => {
414
+ if (locationFormOpen.field && locationFormOpen.id) {
415
+ const row = apiRef.current.getRow(locationFormOpen.id);
416
+ if (row)
417
+ if (row)
418
+ dispatch(updateStop({
419
+ id: row.shipConId,
420
+ stop: {
421
+ ...row,
422
+ city: value.city,
423
+ contactName: value.contact,
424
+ line1: value.line1,
425
+ locationId: value.id,
426
+ name: value.name,
427
+ phone: value.phone,
428
+ state: value.state,
429
+ zip: value.zip,
430
+ },
431
+ }));
432
+ }
433
+ };
412
434
  useEffect(() => {
413
435
  if (props.step == 1 && rows)
414
436
  setTimeout(() => {
@@ -421,7 +443,7 @@ function PickUp(props) {
421
443
  width: "100%",
422
444
  borderRadius: "sm",
423
445
  boxShadow: "md",
424
- }, children: [_jsxs(Grid, { container: true, spacing: 2, children: [_jsx(Grid, { xs: 12, children: _jsxs(Typography, { level: "title-md", children: [_jsx("i", { className: "fa-sharp fa-solid fa-arrow-up pright" }), " ", t("Pick-ups")] }) }), _jsx(Grid, { xs: 12, children: _jsx(DataGridPremium, { processRowUpdate: (newRow) => {
446
+ }, children: [_jsxs(Grid, { container: true, spacing: 2, children: [_jsx(Grid, { xs: 12, children: _jsxs(Typography, { level: "title-md", children: [_jsx("i", { className: "fa-sharp fa-solid fa-arrow-up pright" }), " ", t("global.Pick-ups")] }) }), _jsx(Grid, { xs: 12, children: _jsx(DataGridPremium, { processRowUpdate: (newRow) => {
425
447
  dispatch(updateStop({ id: newRow.shipConId, stop: newRow }));
426
448
  return newRow;
427
449
  }, onProcessRowUpdateError: (error) => {
@@ -442,7 +464,7 @@ function PickUp(props) {
442
464
  }) })) : null }), rows?.map((r, i) => {
443
465
  const quoteStops = quote?.stops.filter((s) => s.type == r.type);
444
466
  if (quoteStops?.[i].zip != r.zip)
445
- return (_jsx(Grid, { xs: 12, children: _jsx(Alert, { color: "danger", startDecorator: _jsx("i", { className: "fa-solid fa-circle-exclamation" }), children: t("price warning", {
467
+ return (_jsx(Grid, { xs: 12, children: _jsx(Alert, { color: "danger", startDecorator: _jsx("i", { className: "fa-solid fa-circle-exclamation" }), children: t("global.price warning", {
446
468
  quoteZipCode: quoteStops?.[i].zip,
447
469
  tenderZipCode: r.zip,
448
470
  }) }) }, i));
@@ -467,27 +489,7 @@ function PickUp(props) {
467
489
  },
468
490
  }));
469
491
  }
470
- } })) : (_jsx(LocationFormSales, { open: locationFormOpen.open, place: locationFormOpen.place, onClose: () => setLocationFormOpen({ open: false, place: undefined }), onCreateLocation: (value) => {
471
- if (locationFormOpen.field && locationFormOpen.id) {
472
- const row = apiRef.current.getRow(locationFormOpen.id);
473
- if (row)
474
- if (row)
475
- dispatch(updateStop({
476
- id: row.shipConId,
477
- stop: {
478
- ...row,
479
- city: value.city,
480
- contactName: value.contact,
481
- line1: value.line1,
482
- locationId: value.id,
483
- name: value.name,
484
- phone: value.phone,
485
- state: value.state,
486
- zip: value.zip,
487
- },
488
- }));
489
- }
490
- } }))] }));
492
+ } })) : (_jsx(LocationFormSales, { open: locationFormOpen.open, place: locationFormOpen.place, onClose: () => setLocationFormOpen({ open: false, place: undefined }), onCreateLocation: handleSaveLocation, onSaveLocation: handleSaveLocation }))] }));
491
493
  }
492
494
  /**
493
495
  *
@@ -497,7 +499,7 @@ function PickUp(props) {
497
499
  * @returns {ReactElement} Dropoff
498
500
  */
499
501
  function Dropoff(props) {
500
- const { t } = useTranslation("salesKit");
502
+ const { t } = useTranslation("common", { i18n: salesKitI18n });
501
503
  const [locationFormOpen, setLocationFormOpen] = useState({
502
504
  open: false,
503
505
  place: undefined,
@@ -512,6 +514,26 @@ function Dropoff(props) {
512
514
  const errors = useSelector(selectTenderErrors);
513
515
  const columns = getTenderStopsColumns(errors, props.customerPortal, (location, id, field) => setLocationFormOpen({ open: true, place: location, field, id }), selectedServiceLevel);
514
516
  const rows = useSelector(selectDropoffs);
517
+ const handleSaveLocation = (value) => {
518
+ if (locationFormOpen.field && locationFormOpen.id) {
519
+ const row = apiRef.current.getRow(locationFormOpen.id);
520
+ if (row)
521
+ dispatch(updateStop({
522
+ id: row.shipConId,
523
+ stop: {
524
+ ...row,
525
+ city: value.city,
526
+ contactName: value.contact,
527
+ line1: value.line1,
528
+ locationId: value.id,
529
+ name: value.name,
530
+ phone: value.phone,
531
+ state: value.state,
532
+ zip: value.zip,
533
+ },
534
+ }));
535
+ }
536
+ };
515
537
  useEffect(() => {
516
538
  if (props.step == 2 && rows)
517
539
  setTimeout(() => {
@@ -524,7 +546,7 @@ function Dropoff(props) {
524
546
  width: "100%",
525
547
  borderRadius: "sm",
526
548
  boxShadow: "md",
527
- }, children: [_jsxs(Grid, { container: true, spacing: 2, children: [_jsx(Grid, { xs: 12, children: _jsxs(Typography, { level: "title-md", children: [_jsx("i", { className: "fa-sharp fa-solid fa-arrow-down pright" }), " ", t("Drop-offs")] }) }), _jsx(Grid, { xs: 12, children: _jsx(DataGridPremium, { processRowUpdate: (newRow) => {
549
+ }, children: [_jsxs(Grid, { container: true, spacing: 2, children: [_jsx(Grid, { xs: 12, children: _jsxs(Typography, { level: "title-md", children: [_jsx("i", { className: "fa-sharp fa-solid fa-arrow-down pright" }), " ", t("global.Drop-offs")] }) }), _jsx(Grid, { xs: 12, children: _jsx(DataGridPremium, { processRowUpdate: (newRow) => {
528
550
  dispatch(updateStop({ id: newRow.shipConId, stop: newRow }));
529
551
  return newRow;
530
552
  }, onProcessRowUpdateError: (error) => {
@@ -545,7 +567,7 @@ function Dropoff(props) {
545
567
  }) }) })) : null }), rows?.map((r, i) => {
546
568
  const quoteStops = quote?.stops.filter((s) => s.type == r.type);
547
569
  if (quoteStops?.[i].zip != r.zip)
548
- return (_jsx(Grid, { xs: 12, children: _jsx(Alert, { color: "danger", startDecorator: _jsx("i", { className: "fa-solid fa-circle-exclamation" }), children: t("price warning", {
570
+ return (_jsx(Grid, { xs: 12, children: _jsx(Alert, { color: "danger", startDecorator: _jsx("i", { className: "fa-solid fa-circle-exclamation" }), children: t("global.price warning", {
549
571
  quoteZipCode: quoteStops?.[i].zip,
550
572
  tenderZipCode: r.zip,
551
573
  }) }) }, i));
@@ -570,27 +592,7 @@ function Dropoff(props) {
570
592
  },
571
593
  }));
572
594
  }
573
- } })) : (_jsx(LocationFormSales, { open: locationFormOpen.open, place: locationFormOpen.place, onClose: () => setLocationFormOpen({ open: false, place: undefined }), onCreateLocation: (value) => {
574
- if (locationFormOpen.field && locationFormOpen.id) {
575
- const row = apiRef.current.getRow(locationFormOpen.id);
576
- if (row)
577
- if (row)
578
- dispatch(updateStop({
579
- id: row.shipConId,
580
- stop: {
581
- ...row,
582
- city: value.city,
583
- contactName: value.contact,
584
- line1: value.line1,
585
- locationId: value.id,
586
- name: value.name,
587
- phone: value.phone,
588
- state: value.state,
589
- zip: value.zip,
590
- },
591
- }));
592
- }
593
- } }))] }));
595
+ } })) : (_jsx(LocationFormSales, { open: locationFormOpen.open, place: locationFormOpen.place, onClose: () => setLocationFormOpen({ open: false, place: undefined }), onCreateLocation: handleSaveLocation, onSaveLocation: handleSaveLocation }))] }));
594
596
  }
595
597
  /**
596
598
  *
@@ -600,7 +602,7 @@ function Dropoff(props) {
600
602
  */
601
603
  function AboutTheLoad(props) {
602
604
  const { customerPortal } = props;
603
- const { t } = useTranslation("salesKit");
605
+ const { t } = useTranslation("common", { i18n: salesKitI18n });
604
606
  const dispatch = useDispatch();
605
607
  const body = useSelector(selectTenderBody);
606
608
  const [getCustomer, { data: _customer, isFetching }] = useLazyGetCustomerQuery();
@@ -626,7 +628,7 @@ function AboutTheLoad(props) {
626
628
  width: "100%",
627
629
  borderRadius: "sm",
628
630
  boxShadow: "md",
629
- }, children: _jsxs(Grid, { container: true, spacing: 1, children: [_jsx(Grid, { xs: 12, children: _jsxs(Typography, { level: "title-md", children: [_jsx("i", { className: "fa-duotone fa-truck-ramp-box pright" }), " ", t("aboutTheLoad")] }) }), !customerPortal && (_jsx(Grid, { xs: 12, md: 8, children: _jsxs(FormControl, { required: true, error: errors && !customer, children: [_jsx(FormLabel, { children: "Customer" }), _jsx(CustomerAutocomplete, { value: customer, isLoading: isFetching, onChange: (v) => {
631
+ }, children: _jsxs(Grid, { container: true, spacing: 1, children: [_jsx(Grid, { xs: 12, children: _jsxs(Typography, { level: "title-md", children: [_jsx("i", { className: "fa-duotone fa-truck-ramp-box pright" }), " ", t("global.aboutTheLoad")] }) }), !customerPortal && (_jsx(Grid, { xs: 12, md: 8, children: _jsxs(FormControl, { required: true, error: errors && !customer, children: [_jsx(FormLabel, { children: "Customer" }), _jsx(CustomerAutocomplete, { value: customer, isLoading: isFetching, onChange: (v) => {
630
632
  setCustomer(v);
631
633
  dispatch(updateBody({
632
634
  ...body,
@@ -638,7 +640,11 @@ function AboutTheLoad(props) {
638
640
  color: (theme) => theme.palette.danger[400],
639
641
  },
640
642
  },
641
- }, children: customerPortal ? t("Reference / BOL number") : t("Prop Number") }), _jsx(Input, { placeholder: customerPortal ? t("Reference / BOL number") : t("Prop Number"), autoComplete: "off", variant: "outlined", value: body.referenceNumber || "", onChange: (e) => dispatch(updateBody({ ...body, referenceNumber: e.target.value })), error: errors && !body.referenceNumber })] }) }), _jsx(Grid, { xs: 12, mt: 2, children: _jsx(Textarea, { variant: "soft", color: "warning", maxRows: 4, minRows: 2, placeholder: t("Enter Some relevant notes"), value: body.notes || "", onChange: (e) => dispatch(updateBody({ ...body, notes: e.target.value })) }) })] }) }));
643
+ }, children: customerPortal
644
+ ? t("global.Reference / BOL number")
645
+ : t("global.Prop Number") }), _jsx(Input, { placeholder: customerPortal
646
+ ? t("global.Reference / BOL number")
647
+ : t("global.Prop Number"), autoComplete: "off", variant: "outlined", value: body.referenceNumber || "", onChange: (e) => dispatch(updateBody({ ...body, referenceNumber: e.target.value })), error: errors && !body.referenceNumber })] }) }), _jsx(Grid, { xs: 12, mt: 2, children: _jsx(Textarea, { variant: "soft", color: "warning", maxRows: 4, minRows: 2, placeholder: t("global.Enter Some relevant notes"), value: body.notes || "", onChange: (e) => dispatch(updateBody({ ...body, notes: e.target.value })) }) })] }) }));
642
648
  }
643
649
  /**
644
650
  * Tender toolbar.
@@ -653,7 +659,7 @@ function Toolbar() {
653
659
  const selectedPlan = params.get("selected");
654
660
  const { quote } = useQuote(quoteID);
655
661
  const selectedServiceLevel = quote?.serviceLevels?.find((sl) => sl.id === selectedPlan);
656
- const { t } = useTranslation("salesKit");
662
+ const { t } = useTranslation("common", { i18n: salesKitI18n });
657
663
  useLayoutEffect(() => {
658
664
  const updatePosition = () => {
659
665
  setOffsetTop(window.pageYOffset);
@@ -683,11 +689,11 @@ function Toolbar() {
683
689
  justifyContent: "space-between",
684
690
  flex: 1,
685
691
  maxWidth: 900,
686
- }, children: [_jsxs(Box, { children: [_jsx(Typography, { level: "title-md", sx: { fontWeight: 800 }, children: t("Tender Load") }), _jsx(Typography, { level: "body-sm", children: t("From Quote", { id: quote?.id }) })] }), selectedServiceLevel && (_jsxs(Grid, { container: true, direction: "column", alignItems: "end", children: [_jsx(Grid, { children: _jsx("img", { src: selectedServiceLevel.serviceLevel == "guaranteed"
692
+ }, children: [_jsxs(Box, { children: [_jsx(Typography, { level: "title-md", sx: { fontWeight: 800 }, children: t("global.Tender Load") }), _jsx(Typography, { level: "body-sm", children: t("global.From Quote", { id: quote?.id }) })] }), selectedServiceLevel && (_jsxs(Grid, { container: true, direction: "column", alignItems: "end", children: [_jsx(Grid, { children: _jsx("img", { src: selectedServiceLevel.serviceLevel == "guaranteed"
687
693
  ? quote?.getGuaranteedIcon()
688
694
  : selectedServiceLevel.serviceLevel == "premium"
689
695
  ? quote?.getPremiumIcon()
690
- : quote?.getEconomyIcon(), alt: t("Service Level"), height: 20 }) }), _jsx(Grid, { children: _jsx(Typography, { level: "body-sm", children: selectedServiceLevel.name }) })] }))] }) }));
696
+ : quote?.getEconomyIcon(), alt: t("global.Service Level"), height: 20 }) }), _jsx(Grid, { children: _jsx(Typography, { level: "body-sm", children: selectedServiceLevel.name }) })] }))] }) }));
691
697
  }
692
698
  /**
693
699
  *
@@ -696,7 +702,7 @@ function Toolbar() {
696
702
  * @returns {ReactElement} Commodities
697
703
  */
698
704
  function Commodities(props) {
699
- const { t } = useTranslation("salesKit");
705
+ const { t } = useTranslation("common", { i18n: salesKitI18n });
700
706
  const apiRef = useGridApiRef();
701
707
  const { id: quoteID } = useParams();
702
708
  const { quote } = useQuote(quoteID);
@@ -777,9 +783,9 @@ function Commodities(props) {
777
783
  width: "100%",
778
784
  borderRadius: "sm",
779
785
  boxShadow: "md",
780
- }, children: _jsxs(Grid, { container: true, spacing: 2, children: [_jsx(Grid, { xs: 12, children: _jsxs(Typography, { level: "title-md", children: [_jsx("i", { className: "fa-sharp fa-solid fa-pallet-boxes pright" }), " ", t("Commodities")] }) }), _jsx(Grid, { xs: 12, children: _jsx(DataGridPremium, { getRowId: (row) => `${row.from.shipConId} ${row.to.shipConId}`, disableRowSelectionOnClick: true, apiRef: apiRef, autoHeight: true, getRowHeight: () => "auto", hideFooter: true, slotProps: {
786
+ }, children: _jsxs(Grid, { container: true, spacing: 2, children: [_jsx(Grid, { xs: 12, children: _jsxs(Typography, { level: "title-md", children: [_jsx("i", { className: "fa-sharp fa-solid fa-pallet-boxes pright" }), " ", t("global.Commodities")] }) }), _jsx(Grid, { xs: 12, children: _jsx(DataGridPremium, { getRowId: (row) => `${row.from.shipConId} ${row.to.shipConId}`, disableRowSelectionOnClick: true, apiRef: apiRef, autoHeight: true, getRowHeight: () => "auto", hideFooter: true, slotProps: {
781
787
  cell: { tabIndex: 0 },
782
- }, rows: rows || [], columns: columns }) }), remainingPalletsCount > 0 ? (_jsx(Grid, { xs: 12, children: _jsxs(Alert, { color: "warning", children: [_jsx(Typography, { level: "body-sm", color: "warning", children: t("You need to dispatch these remaning pallets in a lane:") }), _jsx(Grid, { container: true, spacing: 1, children: remainingPallets.map((pallet, i) => {
788
+ }, rows: rows || [], columns: columns }) }), remainingPalletsCount > 0 ? (_jsx(Grid, { xs: 12, children: _jsxs(Alert, { color: "warning", children: [_jsx(Typography, { level: "body-sm", color: "warning", children: t("global.You need to dispatch these remaning pallets in a lane:") }), _jsx(Grid, { container: true, spacing: 1, children: remainingPallets.map((pallet, i) => {
783
789
  const unitsSymbol = pallet.units == "inches" ? '"' : "'";
784
790
  if (pallet.count > 0)
785
791
  return (_jsx(Grid, { children: _jsx(Chip, { size: "sm", variant: "soft", startDecorator: _jsx(Box, { sx: {
@@ -810,7 +816,7 @@ function Result(props) {
810
816
  const PICKUP_DOCUMENT = "Pickup document";
811
817
  const MISCELLANEOUS = "Miscellaneous";
812
818
  const { customerPortal, response } = props;
813
- const { t } = useTranslation("salesKit");
819
+ const { t } = useTranslation("common", { i18n: salesKitI18n });
814
820
  const { id: quoteID } = useParams();
815
821
  const { quote } = useQuote(quoteID);
816
822
  const [params] = useSearchParams();
@@ -878,7 +884,7 @@ function Result(props) {
878
884
  setFile(undefined);
879
885
  setDescription(null);
880
886
  };
881
- return (_jsxs(Box, { sx: { maxWidth: { xs: undefined, md: 900 }, p: 2, width: "100%" }, children: [_jsxs(Grid, { container: true, spacing: 2, children: [_jsxs(Grid, { xs: 12, children: [_jsx(Typography, { level: "title-md", children: t("You are all set!") }), customerPortal ? (_jsx(Typography, { level: "body-sm", children: t("load tendered", { id: response.loadId }) })) : (_jsx(Typography, { level: "body-sm", children: `Load #${response.loadId} (${response.referenceNumber}) has been created.` }))] }), _jsx(Grid, { xs: 6, children: _jsxs(Sheet, { sx: { p: 2, borderRadius: "sm", boxShadow: "md" }, children: [_jsxs(Typography, { level: "title-md", children: [_jsx("i", { className: "fa-sharp fa-solid fa-dollar-sign" }), "\u00A0\u00A0", t("Initial Quote")] }), _jsxs(Grid, { container: true, children: [_jsx(Grid, { xs: 6, children: _jsx(Typography, { level: "body-sm", children: t("Base Rate") }) }), _jsx(Grid, { xs: 6, textAlign: "right", children: _jsx(Typography, { level: "body-sm", children: usdFormatter.format(selectedServiceLevel?.baseRate || NaN) }) }), _jsx(Grid, { xs: 6, children: _jsx(Typography, { level: "body-sm", children: t("Fuel Rate") }) }), _jsx(Grid, { xs: 6, textAlign: "right", children: _jsx(Typography, { level: "body-sm", children: usdFormatter.format(selectedServiceLevel?.fuelRate || NaN) }) }), customerPortal && response.accessorials.length > 0 ? (_jsxs(_Fragment, { children: [_jsx(Grid, { xs: 12, children: _jsx(Divider, {}) }), quote?.accessorials.map((accessorial, i) => (_jsxs(Fragment, { children: [_jsx(Grid, { xs: 6, children: _jsx(Typography, { level: "body-sm", children: accessorial.name }) }), _jsx(Grid, { xs: 6, textAlign: "right", children: _jsx(Typography, { level: "body-sm", children: usdFormatter.format(accessorial.costAmount) }) })] }, i)))] })) : null, _jsx(Grid, { xs: 12, children: _jsx(Divider, {}) }), _jsx(Grid, { xs: 6, children: _jsx(Typography, { level: "body-sm", children: t("Total Rate") }) }), _jsx(Grid, { xs: 6, textAlign: "right", children: _jsx(Typography, { level: "body-sm", children: usdFormatter.format(selectedServiceLevel?.totalRate || NaN) }) })] })] }) }), _jsx(Grid, { xs: 6, children: _jsxs(Sheet, { sx: { p: 2, borderRadius: "sm", boxShadow: "md" }, children: [_jsxs(Typography, { level: "title-md", children: [_jsx("i", { className: "fa-sharp fa-solid fa-receipt" }), "\u00A0\u00A0", t("Tender")] }), _jsxs(Grid, { container: true, children: [_jsx(Grid, { xs: 6, children: _jsx(Typography, { level: "body-sm", children: t("Base Rate") }) }), _jsx(Grid, { xs: 6, textAlign: "right", children: _jsx(Typography, { level: "body-sm", children: usdFormatter.format(response.baseRate) }) }), _jsx(Grid, { xs: 6, children: _jsx(Typography, { level: "body-sm", children: t("Fuel Rate") }) }), _jsx(Grid, { xs: 6, textAlign: "right", children: _jsx(Typography, { level: "body-sm", children: usdFormatter.format(response.fuelRate) }) }), customerPortal && response.accessorials.length > 0 ? (_jsxs(_Fragment, { children: [_jsx(Grid, { xs: 12, children: _jsx(Divider, {}) }), response.accessorials.map((accessorial, i) => (_jsxs(Fragment, { children: [_jsx(Grid, { xs: 6, children: _jsx(Typography, { level: "body-sm", children: accessorial.name }) }), _jsx(Grid, { xs: 6, textAlign: "right", children: _jsx(Typography, { level: "body-sm", children: usdFormatter.format(accessorial.costAmount) }) })] }, i)))] })) : null, _jsx(Grid, { xs: 12, children: _jsx(Divider, {}) }), _jsx(Grid, { xs: 6, children: _jsx(Typography, { level: "body-sm", children: t("Total Rate") }) }), _jsx(Grid, { xs: 6, textAlign: "right", children: _jsx(Typography, { level: "body-sm", children: usdFormatter.format(response.totalRate) }) })] })] }) }), uploadedFiles.length > 0 ? (_jsx(Grid, { xs: 12, children: _jsx(Sheet, { sx: { p: 2, borderRadius: "sm", boxShadow: "md" }, children: _jsxs(Grid, { container: true, children: [_jsxs(Typography, { level: "title-md", children: [_jsx("i", { className: "fa-solid fa-paperclip-vertical" }), "\u00A0\u00A0", t("Uploaded Files")] }), _jsxs(Grid, { container: true, xs: 12, children: [_jsx(Grid, { xs: 6, children: _jsx(Typography, { level: "body-sm", children: t("Name") }) }), _jsx(Grid, { xs: 6, textAlign: "right", children: _jsx(Typography, { level: "body-sm", children: t("Description") }) })] }), uploadedFiles.map((file) => (_jsxs(Grid, { container: true, xs: 12, children: [_jsx(Grid, { xs: 6, children: _jsx(Typography, { level: "body-sm", children: file.name }) }), _jsx(Grid, { xs: 6, textAlign: "right", children: _jsx(Typography, { level: "body-sm", children: file.description }) }), uploadedFiles.length > 1 && (_jsx(Grid, { xs: 12, children: _jsx(Divider, {}) }))] }, file.id)))] }) }) })) : null, customerPortal ? (_jsx(Grid, { ml: "auto", mr: "auto", children: _jsx(Button, { variant: "outlined", color: "neutral", onClick: () => setOpenUploadFile(true), children: t("Upload Document") }) })) : (_jsxs(Grid, { container: true, justifyContent: "center", alignItems: "center", p: 5, textAlign: "center", ml: "auto", mr: "auto", children: [_jsxs(Grid, { xs: 12, children: [_jsx(Typography, { level: "title-md", children: t("Having files to send ?") }), _jsx(Typography, { level: "body-sm", children: t("Drag and drop them on the page.") })] }), _jsx(Grid, { children: _jsx(NerdFileUpload, { uploadFile: (file) => setFiles(file), multiple: true }) })] }))] }), customerPortal ? (_jsx(Modal, { open: openUploadFile, onClose: handleCloseUploadDialog, children: _jsxs(ModalDialog, { children: [_jsx(DialogTitle, { children: t("Upload Document") }), _jsxs(DialogContent, { children: [_jsx(Box, { sx: {
887
+ return (_jsxs(Box, { sx: { maxWidth: { xs: undefined, md: 900 }, p: 2, width: "100%" }, children: [_jsxs(Grid, { container: true, spacing: 2, children: [_jsxs(Grid, { xs: 12, children: [_jsx(Typography, { level: "title-md", children: t("global.You are all set!") }), customerPortal ? (_jsx(Typography, { level: "body-sm", children: t("global.load tendered", { id: response.loadId }) })) : (_jsx(Typography, { level: "body-sm", children: `Load #${response.loadId} (${response.referenceNumber}) has been created.` }))] }), _jsx(Grid, { xs: 6, children: _jsxs(Sheet, { sx: { p: 2, borderRadius: "sm", boxShadow: "md" }, children: [_jsxs(Typography, { level: "title-md", children: [_jsx("i", { className: "fa-sharp fa-solid fa-dollar-sign" }), "\u00A0\u00A0", t("global.Initial Quote")] }), _jsxs(Grid, { container: true, children: [_jsx(Grid, { xs: 6, children: _jsx(Typography, { level: "body-sm", children: t("global.Base Rate") }) }), _jsx(Grid, { xs: 6, textAlign: "right", children: _jsx(Typography, { level: "body-sm", children: usdFormatter.format(selectedServiceLevel?.baseRate || NaN) }) }), _jsx(Grid, { xs: 6, children: _jsx(Typography, { level: "body-sm", children: t("global.Fuel Rate") }) }), _jsx(Grid, { xs: 6, textAlign: "right", children: _jsx(Typography, { level: "body-sm", children: usdFormatter.format(selectedServiceLevel?.fuelRate || NaN) }) }), customerPortal && response.accessorials.length > 0 ? (_jsxs(_Fragment, { children: [_jsx(Grid, { xs: 12, children: _jsx(Divider, {}) }), quote?.accessorials.map((accessorial, i) => (_jsxs(Fragment, { children: [_jsx(Grid, { xs: 6, children: _jsx(Typography, { level: "body-sm", children: accessorial.name }) }), _jsx(Grid, { xs: 6, textAlign: "right", children: _jsx(Typography, { level: "body-sm", children: usdFormatter.format(accessorial.costAmount) }) })] }, i)))] })) : null, _jsx(Grid, { xs: 12, children: _jsx(Divider, {}) }), _jsx(Grid, { xs: 6, children: _jsx(Typography, { level: "body-sm", children: t("global.Total Rate") }) }), _jsx(Grid, { xs: 6, textAlign: "right", children: _jsx(Typography, { level: "body-sm", children: usdFormatter.format(selectedServiceLevel?.totalRate || NaN) }) })] })] }) }), _jsx(Grid, { xs: 6, children: _jsxs(Sheet, { sx: { p: 2, borderRadius: "sm", boxShadow: "md" }, children: [_jsxs(Typography, { level: "title-md", children: [_jsx("i", { className: "fa-sharp fa-solid fa-receipt" }), "\u00A0\u00A0", t("global.Tender")] }), _jsxs(Grid, { container: true, children: [_jsx(Grid, { xs: 6, children: _jsx(Typography, { level: "body-sm", children: t("global.Base Rate") }) }), _jsx(Grid, { xs: 6, textAlign: "right", children: _jsx(Typography, { level: "body-sm", children: usdFormatter.format(response.baseRate) }) }), _jsx(Grid, { xs: 6, children: _jsx(Typography, { level: "body-sm", children: t("global.Fuel Rate") }) }), _jsx(Grid, { xs: 6, textAlign: "right", children: _jsx(Typography, { level: "body-sm", children: usdFormatter.format(response.fuelRate) }) }), customerPortal && response.accessorials.length > 0 ? (_jsxs(_Fragment, { children: [_jsx(Grid, { xs: 12, children: _jsx(Divider, {}) }), response.accessorials.map((accessorial, i) => (_jsxs(Fragment, { children: [_jsx(Grid, { xs: 6, children: _jsx(Typography, { level: "body-sm", children: accessorial.name }) }), _jsx(Grid, { xs: 6, textAlign: "right", children: _jsx(Typography, { level: "body-sm", children: usdFormatter.format(accessorial.costAmount) }) })] }, i)))] })) : null, _jsx(Grid, { xs: 12, children: _jsx(Divider, {}) }), _jsx(Grid, { xs: 6, children: _jsx(Typography, { level: "body-sm", children: t("global.Total Rate") }) }), _jsx(Grid, { xs: 6, textAlign: "right", children: _jsx(Typography, { level: "body-sm", children: usdFormatter.format(response.totalRate) }) })] })] }) }), uploadedFiles.length > 0 ? (_jsx(Grid, { xs: 12, children: _jsx(Sheet, { sx: { p: 2, borderRadius: "sm", boxShadow: "md" }, children: _jsxs(Grid, { container: true, children: [_jsxs(Typography, { level: "title-md", children: [_jsx("i", { className: "fa-solid fa-paperclip-vertical" }), "\u00A0\u00A0", t("global.Uploaded Files")] }), _jsxs(Grid, { container: true, xs: 12, children: [_jsx(Grid, { xs: 6, children: _jsx(Typography, { level: "body-sm", children: t("global.Name") }) }), _jsx(Grid, { xs: 6, textAlign: "right", children: _jsx(Typography, { level: "body-sm", children: t("global.Description") }) })] }), uploadedFiles.map((file) => (_jsxs(Grid, { container: true, xs: 12, children: [_jsx(Grid, { xs: 6, children: _jsx(Typography, { level: "body-sm", children: file.name }) }), _jsx(Grid, { xs: 6, textAlign: "right", children: _jsx(Typography, { level: "body-sm", children: file.description }) }), uploadedFiles.length > 1 && (_jsx(Grid, { xs: 12, children: _jsx(Divider, {}) }))] }, file.id)))] }) }) })) : null, customerPortal ? (_jsx(Grid, { ml: "auto", mr: "auto", children: _jsx(Button, { variant: "outlined", color: "neutral", onClick: () => setOpenUploadFile(true), children: t("global.Upload Document") }) })) : (_jsxs(Grid, { container: true, justifyContent: "center", alignItems: "center", p: 5, textAlign: "center", ml: "auto", mr: "auto", children: [_jsxs(Grid, { xs: 12, children: [_jsx(Typography, { level: "title-md", children: t("global.Having files to send ?") }), _jsx(Typography, { level: "body-sm", children: t("global.Drag and drop them on the page.") })] }), _jsx(Grid, { children: _jsx(NerdFileUpload, { uploadFile: (file) => setFiles(file), multiple: true }) })] }))] }), customerPortal ? (_jsx(Modal, { open: openUploadFile, onClose: handleCloseUploadDialog, children: _jsxs(ModalDialog, { children: [_jsx(DialogTitle, { children: t("global.Upload Document") }), _jsxs(DialogContent, { children: [_jsx(Box, { sx: {
882
888
  display: "flex",
883
889
  justifyContent: "center",
884
890
  alignItems: "center",
@@ -892,15 +898,15 @@ function Result(props) {
892
898
  title: error.message,
893
899
  autohide: true,
894
900
  variant: "non-intrusive",
895
- })) }), _jsx(Typography, { textAlign: "center", level: "body-sm", children: t("or drag and drop") })] })) }) }), _jsxs(ToggleButtonGroup, { value: description, onChange: (_event, newValue) => {
901
+ })) }), _jsx(Typography, { textAlign: "center", level: "body-sm", children: t("global.or drag and drop") })] })) }) }), _jsxs(ToggleButtonGroup, { value: description, onChange: (_event, newValue) => {
896
902
  setDescription(newValue);
897
903
  }, sx: {
898
904
  mt: 1,
899
- }, children: [_jsx(Button, { value: RATE_CONFIRMATION, children: t("rate confirmation") }), _jsx(Button, { value: PICKUP_DOCUMENT, children: t("pickup document bol") }), _jsxs(Button, { value: MISCELLANEOUS, children: [" ", t("miscellaneous")] })] })] }), _jsxs(DialogActions, { children: [_jsx(Button, { disabled: description === null || file === undefined, onClick: handleUploadCustomerPortal, children: t("Upload") }), _jsx(Button, { variant: "outlined", onClick: handleCloseUploadDialog, children: t("Cancel") })] })] }) })) : (_jsx(Modal, { open: files.length > 0, onClose: handleClose, children: _jsxs(ModalDialog, { children: [_jsx(DialogTitle, { children: t("uploading_file", {
905
+ }, children: [_jsx(Button, { value: RATE_CONFIRMATION, children: t("global.rate confirmation") }), _jsx(Button, { value: PICKUP_DOCUMENT, children: t("global.pickup document bol") }), _jsxs(Button, { value: MISCELLANEOUS, children: [" ", t("global.miscellaneous")] })] })] }), _jsxs(DialogActions, { children: [_jsx(Button, { disabled: description === null || file === undefined, onClick: handleUploadCustomerPortal, children: t("global.Upload") }), _jsx(Button, { variant: "outlined", onClick: handleCloseUploadDialog, children: t("global.Cancel") })] })] }) })) : (_jsx(Modal, { open: files.length > 0, onClose: handleClose, children: _jsxs(ModalDialog, { children: [_jsx(DialogTitle, { children: t("global.uploading_file", {
900
906
  count: files.length,
901
- }) }), _jsxs(DialogContent, { children: [_jsx(Typography, { level: "body-sm", mb: 1, children: t("For each file, please specify the document type:") }), files.map((file, i) => (_jsxs(Sheet, { sx: { p: 2, mb: 1 }, variant: "outlined", children: [_jsx(Typography, { children: file.name }), _jsxs(FormControl, { children: [_jsx(FormLabel, { children: t("Document Type") }), _jsx(Select, { value: types[file.name] || "", onChange: (_e, v) => {
907
+ }) }), _jsxs(DialogContent, { children: [_jsx(Typography, { level: "body-sm", mb: 1, children: t("global.For each file, please specify the document type:") }), files.map((file, i) => (_jsxs(Sheet, { sx: { p: 2, mb: 1 }, variant: "outlined", children: [_jsx(Typography, { children: file.name }), _jsxs(FormControl, { children: [_jsx(FormLabel, { children: t("global.Document Type") }), _jsx(Select, { value: types[file.name] || "", onChange: (_e, v) => {
902
908
  if (v)
903
909
  setTypes({ ...types, [file.name]: v });
904
- }, placeholder: t("Choose one..."), children: documentDescriptions.map((d, i) => (_jsx(Option, { value: d, children: d }, i))) })] })] }, i)))] }), _jsxs(DialogActions, { children: [_jsx(Button, { variant: "soft", disabled: Object.entries(types).length != files.length ? true : false, onClick: handleUpload, children: t("Upload") }), _jsx(Button, { onClick: handleClose, color: "neutral", variant: "plain", children: t("Cancel") })] })] }) }))] }));
910
+ }, placeholder: t("global.Choose one..."), children: documentDescriptions.map((d, i) => (_jsx(Option, { value: d, children: d }, i))) })] })] }, i)))] }), _jsxs(DialogActions, { children: [_jsx(Button, { variant: "soft", disabled: Object.entries(types).length != files.length ? true : false, onClick: handleUpload, children: t("global.Upload") }), _jsx(Button, { onClick: handleClose, color: "neutral", variant: "plain", children: t("global.Cancel") })] })] }) }))] }));
905
911
  }
906
912
  //# sourceMappingURL=form.js.map