@bjsdistribution/dms-client-return 0.2.2-prod → 0.2.3-prod
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/common/expand-collapse/index.js +44 -26
- package/dist/common/expand-collapse/index.js.map +1 -1
- package/dist/common/modals/order-action-modal/OrderActionModal.js.map +1 -1
- package/dist/common/modals/order-action-modal/footer/OrderActionFooter.js.map +1 -1
- package/dist/components/client-portal/ClientPortalResponsive.js +148 -0
- package/dist/components/client-portal/ClientPortalResponsive.js.map +1 -0
- package/dist/components/client-portal/OutstandingTable.js +112 -118
- package/dist/components/client-portal/OutstandingTable.js.map +1 -1
- package/dist/components/client-portal/ReturnOverview.js +38 -37
- package/dist/components/client-portal/ReturnOverview.js.map +1 -1
- package/dist/components/client-portal/return-confirm/ConfirmedMain.js +4 -4
- package/dist/components/client-portal/return-confirm/ConfirmedMain.js.map +1 -1
- package/dist/components/client-portal/return-confirm/ReturnConfirmedTable.js +445 -185
- package/dist/components/client-portal/return-confirm/ReturnConfirmedTable.js.map +1 -1
- package/dist/components/fakeData.js.map +1 -1
- package/dist/components/order-daily-overview/common/fakedata.js.map +1 -1
- package/dist/components/order-daily-overview/common/mediaQuery.js +17 -0
- package/dist/components/order-daily-overview/common/mediaQuery.js.map +1 -0
- package/dist/components/order-daily-overview/filters/FilterStyle.js +174 -11
- package/dist/components/order-daily-overview/filters/FilterStyle.js.map +1 -1
- package/dist/components/order-daily-overview/header/route-header/RouterHeaderStyle.js +9 -4
- package/dist/components/order-daily-overview/header/route-header/RouterHeaderStyle.js.map +1 -1
- package/dist/components/order-daily-overview/header/route-header/title/HeaderTitle.js +11 -1
- package/dist/components/order-daily-overview/header/route-header/title/HeaderTitle.js.map +1 -1
- package/dist/components/order-daily-overview/header-filters/Styledfilters.js +46 -17
- package/dist/components/order-daily-overview/header-filters/Styledfilters.js.map +1 -1
- package/dist/components/order-daily-overview/index.js +76 -53
- package/dist/components/order-daily-overview/index.js.map +1 -1
- package/dist/components/order-daily-overview/return-after-table/table/OrderTable.js +101 -103
- package/dist/components/order-daily-overview/return-after-table/table/OrderTable.js.map +1 -1
- package/dist/components/order-daily-overview/return-after-table/table-filters/ReturnOrderFilter.js +135 -134
- package/dist/components/order-daily-overview/return-after-table/table-filters/ReturnOrderFilter.js.map +1 -1
- package/dist/components/order-daily-overview/return-after-table/table-filters/TableFilters.js +17 -11
- package/dist/components/order-daily-overview/return-after-table/table-filters/TableFilters.js.map +1 -1
- package/dist/components/order-daily-overview/return-order-table/return-orders-filters/ReturnFilter.js +5 -5
- package/dist/components/order-daily-overview/return-order-table/return-orders-filters/ReturnFilter.js.map +1 -1
- package/dist/components/order-daily-overview/return-order-table/return-orders-filters/ReturnOrderTable.js +129 -135
- package/dist/components/order-daily-overview/return-order-table/return-orders-filters/ReturnOrderTable.js.map +1 -1
- package/dist/components/order-daily-overview/return-order-table/return-orders-filters/returnstyles.js +346 -27
- package/dist/components/order-daily-overview/return-order-table/return-orders-filters/returnstyles.js.map +1 -1
- package/dist/components/order-daily-overview/table/ReturnTable.js +199 -183
- package/dist/components/order-daily-overview/table/ReturnTable.js.map +1 -1
- package/dist/components/order-daily-overview/table/table-data/styles.js +159 -38
- package/dist/components/order-daily-overview/table/table-data/styles.js.map +1 -1
- package/dist/components/order-daily-overview/table-view/PaginationStyle.js +21 -6
- package/dist/components/order-daily-overview/table-view/PaginationStyle.js.map +1 -1
- package/dist/components/order-view/DynamicTable.js +136 -35
- package/dist/components/order-view/DynamicTable.js.map +1 -1
- package/dist/components/order-view/details-filters/DetailsFilters.js +33 -8
- package/dist/components/order-view/details-filters/DetailsFilters.js.map +1 -1
- package/dist/components/order-view/details-filters/left-side-filters/ActionsMenu.js +23 -5
- package/dist/components/order-view/details-filters/left-side-filters/ActionsMenu.js.map +1 -1
- package/dist/components/order-view/details-filters/left-side-filters/dropdowns/DropDowns.js +39 -22
- package/dist/components/order-view/details-filters/left-side-filters/dropdowns/DropDowns.js.map +1 -1
- package/dist/components/order-view/details-filters/right-side-filters/Details.js +25 -12
- package/dist/components/order-view/details-filters/right-side-filters/Details.js.map +1 -1
- package/dist/components/order-view/general-information/Status.js +58 -28
- package/dist/components/order-view/general-information/Status.js.map +1 -1
- package/dist/components/order-view/generic-table/AuditLogs.js +129 -24
- package/dist/components/order-view/generic-table/AuditLogs.js.map +1 -1
- package/dist/components/order-view/notes/logs/index.js +15 -7
- package/dist/components/order-view/notes/logs/index.js.map +1 -1
- package/dist/components/order-view/notes/order-dropdown/NewReturnDropdown.js +7 -7
- package/dist/components/order-view/notes/order-dropdown/NewReturnDropdown.js.map +1 -1
- package/dist/components/order-view/notification/index.js +68 -55
- package/dist/components/order-view/notification/index.js.map +1 -1
- package/dist/components/order-view/order-actions/Dropdown.js +3 -3
- package/dist/components/order-view/order-actions/Dropdown.js.map +1 -1
- package/dist/components/order-view/order-actions/actions/cancel-order/CancelOrderTable.js +45 -47
- package/dist/components/order-view/order-actions/actions/cancel-order/CancelOrderTable.js.map +1 -1
- package/dist/components/order-view/order-actions/actions/cancel-order/ReturnReason.js +23 -36
- package/dist/components/order-view/order-actions/actions/cancel-order/ReturnReason.js.map +1 -1
- package/dist/components/order-view/order-actions/actions/confirm-order/tables/ProductTable.js +23 -25
- package/dist/components/order-view/order-actions/actions/confirm-order/tables/ProductTable.js.map +1 -1
- package/dist/components/order-view/order-actions/actions/force-debrief/ForceDebriefModal.js +88 -89
- package/dist/components/order-view/order-actions/actions/force-debrief/ForceDebriefModal.js.map +1 -1
- package/dist/components/order-view/order-actions/actions/force-debrief/charges/collection-add-ons/index.js +16 -16
- package/dist/components/order-view/order-actions/actions/force-debrief/charges/collection-add-ons/index.js.map +1 -1
- package/dist/components/order-view/order-actions/actions/force-debrief/escalation/EscalationReason.js +22 -23
- package/dist/components/order-view/order-actions/actions/force-debrief/escalation/EscalationReason.js.map +1 -1
- package/dist/components/order-view/order-actions/actions/force-debrief/order-info/RadioButtons.js +52 -56
- package/dist/components/order-view/order-actions/actions/force-debrief/order-info/RadioButtons.js.map +1 -1
- package/dist/components/order-view/order-actions/actions/force-debrief/order-info/dropdowns/FailureReasonDropdown.js +26 -27
- package/dist/components/order-view/order-actions/actions/force-debrief/order-info/dropdowns/FailureReasonDropdown.js.map +1 -1
- package/dist/components/order-view/order-actions/actions/hold-order/HoldOrderModal.js +29 -29
- package/dist/components/order-view/order-actions/actions/hold-order/HoldOrderModal.js.map +1 -1
- package/dist/components/order-view/order-actions/actions/split-order/SplitOrderTable.js +54 -222
- package/dist/components/order-view/order-actions/actions/split-order/SplitOrderTable.js.map +1 -1
- package/dist/components/order-view/order-actions/actions/split-order/index.js +37 -50
- package/dist/components/order-view/order-actions/actions/split-order/index.js.map +1 -1
- package/dist/components/order-view/order-actions/actions/uncancel-order/UncancelOrderTable.js +35 -37
- package/dist/components/order-view/order-actions/actions/uncancel-order/UncancelOrderTable.js.map +1 -1
- package/dist/components/order-view/order-actions/actions/what3words/What3WordsModal.tsx.js +85 -85
- package/dist/components/order-view/order-actions/actions/what3words/What3WordsModal.tsx.js.map +1 -1
- package/dist/components/order-view/order-details/expanded-content/customer-section/contact-info/ContactHome.js +12 -8
- package/dist/components/order-view/order-details/expanded-content/customer-section/contact-info/ContactHome.js.map +1 -1
- package/dist/components/order-view/order-details/expanded-content/customer-section/contact-info/ContactMobile.js +22 -18
- package/dist/components/order-view/order-details/expanded-content/customer-section/contact-info/ContactMobile.js.map +1 -1
- package/dist/components/order-view/order-details/expanded-content/customer-section/contact-info/index.js +14 -8
- package/dist/components/order-view/order-details/expanded-content/customer-section/contact-info/index.js.map +1 -1
- package/dist/components/order-view/order-details/expanded-content/customer-section/index.js +19 -13
- package/dist/components/order-view/order-details/expanded-content/customer-section/index.js.map +1 -1
- package/dist/components/order-view/order-details/expanded-content/customer-section/location-info/Address.js +11 -6
- package/dist/components/order-view/order-details/expanded-content/customer-section/location-info/Address.js.map +1 -1
- package/dist/components/order-view/order-details/expanded-content/customer-section/location-info/Latitude.js +23 -21
- package/dist/components/order-view/order-details/expanded-content/customer-section/location-info/Latitude.js.map +1 -1
- package/dist/components/order-view/order-details/expanded-content/customer-section/location-info/Longitude.js +23 -21
- package/dist/components/order-view/order-details/expanded-content/customer-section/location-info/Longitude.js.map +1 -1
- package/dist/components/order-view/order-details/expanded-content/customer-section/location-info/index.js +39 -21
- package/dist/components/order-view/order-details/expanded-content/customer-section/location-info/index.js.map +1 -1
- package/dist/components/order-view/order-details/expanded-content/footer/index.js +28 -14
- package/dist/components/order-view/order-details/expanded-content/footer/index.js.map +1 -1
- package/dist/components/order-view/order-details/expanded-content/orders-section/index.js +44 -28
- package/dist/components/order-view/order-details/expanded-content/orders-section/index.js.map +1 -1
- package/dist/components/order-view/order-details/expanded-content/services-section/OrderServices.js +28 -20
- package/dist/components/order-view/order-details/expanded-content/services-section/OrderServices.js.map +1 -1
- package/dist/components/order-view/order-details/expanded-content/services-section/ServiceLevel.js +17 -18
- package/dist/components/order-view/order-details/expanded-content/services-section/ServiceLevel.js.map +1 -1
- package/dist/components/order-view/order-details/expanded-content/services-section/ServiceType.js +22 -26
- package/dist/components/order-view/order-details/expanded-content/services-section/ServiceType.js.map +1 -1
- package/dist/components/order-view/order-details/expanded-content/services-section/index.js +79 -25
- package/dist/components/order-view/order-details/expanded-content/services-section/index.js.map +1 -1
- package/dist/components/order-view/order-details/helper.js.map +1 -1
- package/dist/components/order-view/products-info/collapsed-content/index.js +21 -15
- package/dist/components/order-view/products-info/collapsed-content/index.js.map +1 -1
- package/dist/components/order-view/products-info/index.js +36 -36
- package/dist/components/order-view/products-info/index.js.map +1 -1
- package/dist/components/order-view/return-client-products/product-table/ReturnProductTable.js +265 -334
- package/dist/components/order-view/return-client-products/product-table/ReturnProductTable.js.map +1 -1
- package/dist/components/order-view/store.js +155 -162
- package/dist/components/order-view/store.js.map +1 -1
- package/dist/components/order-view/toolbox-resources/expanded-content/index.js +281 -173
- package/dist/components/order-view/toolbox-resources/expanded-content/index.js.map +1 -1
- package/dist/components/utils.js +5 -4
- package/dist/components/utils.js.map +1 -1
- package/dist/types/common/modals/order-action-modal/OrderActionModal.d.ts +1 -2
- package/dist/types/common/modals/order-action-modal/footer/OrderActionFooter.d.ts +1 -1
- package/dist/types/components/client-portal/ClientPortalResponsive.d.ts +15 -0
- package/dist/types/components/order-daily-overview/common/mediaQuery.d.ts +4 -0
- package/dist/types/components/order-daily-overview/filters/FilterStyle.d.ts +1 -0
- package/dist/types/components/order-view/order-actions/Dropdown.d.ts +0 -1
- package/dist/types/components/order-view/return-client-products/product-table/ReturnProductTable.d.ts +1 -0
- package/dist/types/components/order-view/store.d.ts +0 -1
- package/dist/types/components/order-view/types.d.ts +1 -1
- package/dist/types/components/utils.d.ts +1 -0
- package/package.json +2 -2
- package/dist/assets/icons/ChevronDownIcon.js +0 -26
- package/dist/assets/icons/ChevronDownIcon.js.map +0 -1
- package/dist/components/order-view/return-client-products/product-table/palletGrouping.js +0 -47
- package/dist/components/order-view/return-client-products/product-table/palletGrouping.js.map +0 -1
- package/dist/types/components/order-view/return-client-products/product-table/palletGrouping.d.ts +0 -23
package/dist/components/order-view/return-client-products/product-table/ReturnProductTable.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReturnProductTable.js","sources":["../../../../../src/components/order-view/return-client-products/product-table/ReturnProductTable.tsx"],"sourcesContent":["import React, { useEffect, useMemo, useState } from 'react';\nimport {\n StyledTable,\n StyledTableWrapper,\n} from '../../../order-daily-overview/return-order-table/return-orders-filters/returnstyles';\nimport {\n CancelAndCompleteAction,\n CancelationModal,\n Checkbox,\n displayValueOrNA,\n toReverseDeliveryLabel,\n useAxios,\n} from '@bjsdistribution/dms-component-library';\nimport ActionIcon from '../../../../assets/icons/ActionIcon';\nimport { useOrderId, useReturnProductDetails } from '../../store';\nimport { ApiResponse } from '../../types';\nimport { Empty, notification, Skeleton, Spin } from 'antd';\nimport {\n useIsShowNorthSouth,\n useNewReturnOrderData,\n useSelectedProducts,\n useClientPortal,\n} from '../../../store';\nimport styled from 'styled-components';\nimport { NavLink } from 'react-router-dom';\nimport { EmptyDataContainer } from '../../order-actions/actions/charge-log';\nimport CustomInput from '../../northern-southern-info/CustomInput';\nimport ChevronDownIcon from '../../../../assets/icons/ChevronDownIcon';\nimport {\n groupProductsByPallet,\n hasAnyPallet,\n PalletGroup,\n toggleGroupSelectionIds,\n} from './palletGrouping';\n\ninterface IPROS {\n callReturnProducts: any;\n loading: boolean;\n locationloading: boolean;\n}\n\nconst ReturnProductTable = (props: IPROS) => {\n const [selectedProducts, setSelectedProducts] = useSelectedProducts();\n const [selectAll, setSelectAll] = useState(false);\n const [productData] = useReturnProductDetails();\n const [orderId] = useOrderId();\n const [returnOrderData] = useNewReturnOrderData();\n const [isNorthSouth] = useIsShowNorthSouth();\n const [isClientPortal] = useClientPortal();\n\n const [productToDelete, setProductToDelete] = useState<number | null>(null);\n const [isDeleteModalOpen, setIsDeleteModalOpen] = useState<boolean>(false);\n\n const { loading: deleteLoading, fetchData: callDeleteProduct } = useAxios<{\n data: ApiResponse[];\n }>({\n endpoint: `v1/return/product/remove/`,\n method: 'POST',\n });\n\n const handleOpenDeleteModal = (id: number) => {\n setProductToDelete(id);\n setIsDeleteModalOpen(true);\n };\n\n const handleConfirmDelete = async () => {\n if (productToDelete === null) return;\n const targetId = productToDelete;\n try {\n const response = (await callDeleteProduct({\n payload: {\n return_order_product_id: targetId,\n return_order_id: +orderId,\n },\n })) as {\n code: number | null;\n error?: string | null;\n data?: any[];\n message?: string;\n };\n\n if (response?.code === 200) {\n notification.success({\n message: 'Success',\n description: response?.message || 'Product deleted successfully.',\n });\n props?.callReturnProducts();\n } else {\n notification.error({\n message: 'Deletion Failed',\n description: response?.message || 'Could not delete the product.',\n });\n }\n } catch (error) {\n console.error('Error deleting product:', error);\n notification.error({\n message: 'Error',\n //@ts-ignore\n description: error?.message || 'An unexpected error occurred.',\n });\n } finally {\n setProductToDelete(null);\n setIsDeleteModalOpen(false);\n }\n };\n\n const handleCancelDelete = () => {\n if (deleteLoading) return;\n setProductToDelete(null);\n setIsDeleteModalOpen(false);\n };\n\n const handleSelectAll = () => {\n if (selectAll) {\n setSelectedProducts([]);\n } else {\n const allProductIds = productData?.map((product: any) => product.id);\n setSelectedProducts(allProductIds);\n }\n setSelectAll(!selectAll);\n };\n\n const handleSelectProduct = (id: number) => {\n setSelectedProducts((prevSelected: any) =>\n prevSelected.includes(id)\n ? prevSelected.filter((selectedId: any) => selectedId !== id)\n : [...prevSelected, id]\n );\n };\n\n const disableCheckbox =\n productData?.length == 0 || returnOrderData?.length == 0;\n\n const columnCount = isClientPortal ? 8 : 9;\n\n const palletGroups = useMemo(() => groupProductsByPallet(productData), [\n productData,\n ]);\n\n /**\n * Orders picked before pallet scanning existed have no pallet IDs at all. Grouping\n * those would render every item under \"re-scan required\", so they keep the flat\n * list — matching the spec's \"one group per distinct pallet ID scanned\".\n */\n const isGrouped = useMemo(() => hasAnyPallet(productData), [productData]);\n\n /** Pallet groups default to collapsed; the No Pallet ID group is always open. */\n const [expandedPallets, setExpandedPallets] = useState<\n Record<string, boolean>\n >({});\n\n /**\n * Moving between return orders re-uses this component (route `/:id`, so no\n * remount), and a pallet_id can legitimately appear on two orders — a whole-pallet\n * split carries it to the new B number. Without this reset, a pallet the user had\n * expanded on the previous order would open expanded on the next one, breaking\n * \"default state: all groups collapsed\".\n */\n useEffect(() => {\n setExpandedPallets({});\n }, [orderId]);\n\n const isGroupExpanded = (group: PalletGroup) =>\n group.isNoPallet || !!expandedPallets[group.key];\n\n const togglePallet = (key: string) =>\n setExpandedPallets(prev => ({ ...prev, [key]: !prev[key] }));\n\n const renderProductRow = (product: any) => (\n <React.Fragment key={product.id}>\n {/* MAIN ROW */}\n <tr className=\"product-row\">\n <td>\n <StyleCheckbox\n checked={selectedProducts?.includes(product?.id)}\n onChange={() => handleSelectProduct(product?.id)}\n disabled={disableCheckbox}\n />\n </td>\n <td>{product?.location || 'N/A'}</td>\n <td>\n <ul style={{ listStyleType: 'none', padding: 0 }}>\n <li\n style={{\n color: '#0099ff',\n fontWeight: 600,\n }}\n >\n <NavLink to={`/orders/view/${product?.order_id}`}>\n {displayValueOrNA(product?.recipient_name)}\n </NavLink>\n </li>\n <li style={{ color: '#888075' }}>\n {displayValueOrNA(product?.postcode)}\n </li>\n </ul>\n </td>\n <td>{product?.code}</td>\n <td>{product?.description}</td>\n <td>{isClientPortal\n ? product?.return_reason\n : toReverseDeliveryLabel(product?.return_reason)}</td>\n {!isClientPortal && (\n <td>\n {Array.isArray(product?.product_addon_services) && product?.product_addon_services?.length > 0\n ? product.product_addon_services\n .map((service: any) => service?.service_code || service?.name || service)\n .filter(Boolean)\n .join(', ')\n : Array.isArray(product?.addon_services) && product?.addon_services?.length > 0\n ? product.addon_services\n .map((service: any) => service?.service_code || service?.name || service)\n .filter(Boolean)\n .join(', ')\n : Array.isArray(product?.addon_services_list) && product?.addon_services_list?.length > 0\n ? product.addon_services_list.join(', ')\n : typeof product?.addon_services === 'string' && product?.addon_services.trim() !== ''\n ? product.addon_services\n : 'NA'}\n </td>\n )}\n <td>{product?.part}</td>\n <td>\n <div\n onClick={(e) => {\n e.stopPropagation();\n e.preventDefault();\n handleOpenDeleteModal(product?.id);\n }}\n style={{ cursor: 'pointer' }}\n >\n <ActionIcon />\n </div>\n </td>\n </tr>\n\n {/* EXPANDED ROW */}\n {/*\n NOTE: this <td> is not wrapped in a <tr>, which is invalid DOM nesting and\n logs a React validateDOMNesting warning. Left exactly as it was — it only\n affects Northern/Southern Ireland orders and is unrelated to pallet\n grouping, so it belongs in its own ticket rather than this change.\n */}\n {isNorthSouth === true && (\n <td colSpan={columnCount}>\n <NSWrapper>\n <div className=\"left\">Northern/Southern Ireland</div>\n <div className=\"left-end\"></div>\n\n <div className=\"section\">\n <CustomInput\n label=\"Commodity Code\"\n type=\"text\"\n direction=\"row\"\n placeholder=\"Enter Commodity Code\"\n value={\n product?.product_customs_details?.commodity_code || 'NA'\n }\n disabled\n />\n\n <CustomInput\n label=\"Country of Origin\"\n type=\"text\"\n direction=\"row\"\n placeholder=\"Enter Country of Origin\"\n value={\n product?.product_customs_details?.country_of_origin || 'NA'\n }\n disabled\n />\n\n <CustomInput\n label=\"Item Invoice Amount\"\n type=\"number\"\n direction=\"row\"\n placeholder=\"Enter Item Invoice Amount\"\n value={\n product?.product_customs_details?.item_invoice_amount || 0\n }\n disabled\n />\n\n <CustomInput\n label=\"NI Additional Info Codes\"\n type=\"text\"\n direction=\"row\"\n placeholder=\"Enter NI Add Info Codes\"\n value={\n product?.product_customs_details\n ?.ni_additional_information_codes || 'NA'\n }\n disabled\n />\n </div>\n </NSWrapper>\n </td>\n )}\n </React.Fragment>\n );\n\n /**\n * Group-level selection is purely a shortcut for ticking each row in the group —\n * it writes the same `selectedProducts` state and adds no whole-pallet semantics.\n * The pallet_id rules for whole vs partial moves land with Part 2.\n */\n const toggleGroupSelection = (group: PalletGroup, allSelected: boolean) => {\n const groupIds = group.items.map((item: any) => item?.id);\n const nextSelection = toggleGroupSelectionIds(\n selectedProducts,\n groupIds,\n allSelected\n );\n\n setSelectedProducts(nextSelection);\n // Keep the header select-all in step, or ticking every group leaves it unchecked.\n setSelectAll(nextSelection.length === productData?.length);\n };\n\n const renderPalletGroup = (group: PalletGroup) => {\n const expanded = isGroupExpanded(group);\n const selectedInGroup = group.items.filter((item: any) =>\n selectedProducts?.includes(item?.id)\n ).length;\n const allSelectedInGroup =\n group.items.length > 0 && selectedInGroup === group.items.length;\n const itemLabel = `${group.items.length} ${group.items.length === 1 ? 'item' : 'items'\n }`;\n\n return (\n <React.Fragment key={group.key}>\n <PalletHeaderRow className={group.isNoPallet ? 'no-pallet' : undefined}>\n <td colSpan={columnCount}>\n <PalletHeaderBar>\n {/*\n Sibling of the toggle, not a child of it — a checkbox nested inside\n a <button> is invalid HTML and swallows the click.\n */}\n <StyleCheckbox\n checked={allSelectedInGroup}\n onChange={() => toggleGroupSelection(group, allSelectedInGroup)}\n disabled={disableCheckbox}\n aria-label={\n group.isNoPallet\n ? 'Select all items with no pallet ID'\n : `Select all items on pallet ${group.label}`\n }\n />\n\n <PalletHeaderToggle\n type=\"button\"\n /* The No Pallet ID group is always open, so its toggle is inert. */\n disabled={group.isNoPallet}\n onClick={\n group.isNoPallet ? undefined : () => togglePallet(group.key)\n }\n aria-expanded={group.isNoPallet ? undefined : expanded}\n >\n {!group.isNoPallet && (\n <Chevron $isExpanded={expanded}>\n <ChevronDownIcon />\n </Chevron>\n )}\n\n <span className=\"title\">\n {group.isNoPallet ? (\n <span>No Pallet ID</span>\n ) : (\n <>\n <span>Pallet ID:</span>\n <strong>{group.label}</strong>\n </>\n )}\n </span>\n\n <span className=\"count\">({itemLabel})</span>\n\n {group.depotLocation && (\n <span className=\"depot\">{group.depotLocation}</span>\n )}\n\n {selectedInGroup > 0 && (\n <span className=\"selected\">{selectedInGroup} selected</span>\n )}\n\n {!group.isNoPallet && (\n <ToggleGlyph aria-hidden=\"true\">\n {expanded ? '−' : '+'}\n </ToggleGlyph>\n )}\n </PalletHeaderToggle>\n </PalletHeaderBar>\n </td>\n </PalletHeaderRow>\n\n {expanded && group.items.map((item: any) => renderProductRow(item))}\n </React.Fragment>\n );\n };\n\n return (\n <div>\n <StyledTableWrapper id=\"tableScrolling\" className=\"orderProductTable\">\n <StyledTable>\n <thead>\n <tr>\n <th className=\"emailproductsCheckbox\">\n <StyleCheckbox\n disabled={disableCheckbox}\n checked={selectAll}\n onChange={handleSelectAll}\n />\n </th>\n <th>Location</th>\n <th>Sender</th>\n <th>Code</th>\n <th>Description</th>\n <th>Return Reason</th>\n {!isClientPortal && <th>Additional Services</th>}\n <th>Part</th>\n <th>Action</th>\n </tr>\n </thead>\n <tbody>\n {props?.loading || props?.locationloading ? (\n <tr>\n <td colSpan={columnCount}>\n <Skeleton active />\n </td>\n </tr>\n ) : productData?.length === 0 ? (\n <tr>\n <td colSpan={columnCount}>\n <EmptyDataContainer>\n <Empty />\n </EmptyDataContainer>\n </td>\n </tr>\n ) : isGrouped ? (\n palletGroups.map(renderPalletGroup)\n ) : (\n /* Called explicitly so `map`'s index is not passed as `isNoPallet`. */\n productData?.map((product: any) => renderProductRow(product))\n )}\n </tbody>\n </StyledTable>\n </StyledTableWrapper>\n\n {isDeleteModalOpen && (\n <Spin spinning={deleteLoading}>\n <StyledCancelationModal\n title=\"Remove Product\"\n description=\"Are you sure, you want to remove this order product for returns?\"\n actions={\n <CustomCancelAndCompleteAction\n cancelLabel=\"Cancel\"\n onCancel={handleCancelDelete}\n completeLabel={deleteLoading ? 'REMOVING...' : 'Confirm'}\n isDisabled={deleteLoading}\n onComplete={handleConfirmDelete}\n />\n }\n />\n </Spin>\n )}\n </div>\n );\n};\n\nexport const NSWrapper = styled.div`\n display: flex;\n width: 100%;\n padding: 5px 10px;\n align-items: center;\n gap: 10px;\n // position: absolute;\n // right: 84px;\n // top: 181px;\n border-radius: 6px;\n border: 1px solid rgb(237, 235, 232);\n background: rgb(248, 250, 252);\n margin-bottom: 14px;\n\n .left {\n display: flex;\n padding-right: 10px;\n align-items: center;\n gap: 5px;\n align-self: stretch;\n color: #3a3630;\n font-feature-settings: 'liga' off, 'clig' off;\n font-family: Roboto;\n font-size: 13px;\n font-style: normal;\n font-weight: 500;\n line-height: normal;\n text-transform: uppercase;\n }\n\n .left-end {\n display: flex;\n padding-right: 10px;\n align-items: center;\n gap: 5px;\n align-self: stretch;\n border-right: 1px solid #e2e0db;\n }\n\n .section {\n display: flex;\n align-items: center;\n gap: 30px;\n flex: 1 0 0;\n\n input {\n display: flex;\n height: 28px;\n padding: 3px 10px;\n align-items: center;\n gap: 8px;\n flex: 1 0 0;\n border-radius: 30px;\n border: 1px solid #ccc;\n background: #fff;\n }\n }\n`;\n\nconst PalletHeaderRow = styled.tr`\n > td {\n padding: 0;\n border: none;\n }\n\n /*\n Spec: the No Pallet ID group must be separated from the palletised groups by\n a divider line. Neutral rule only — the rows themselves keep their normal\n background, and the header keeps the same design as the pallet headers.\n */\n &.no-pallet > td {\n border-top: 1px solid #c9c6c1;\n padding-top: 10px;\n }\n`;\n\n/** Carries the header's frame so the checkbox can sit outside the toggle button. */\nconst PalletHeaderBar = styled.div`\n /*\n The library Checkbox renders its real <input> as position:absolute with no\n offsets, so it needs a positioned ancestor or the click target drifts away\n from the visible box as the table scrolls. The shared table CSS happens to\n position td already; pinning it here too so this does not depend on that.\n */\n position: relative;\n display: flex;\n align-items: center;\n gap: 8px;\n width: 100%;\n padding: 8px 12px;\n border: 1px solid #e2e0db;\n border-radius: 6px;\n background: #f1f5f9;\n font-family: 'Roboto', sans-serif;\n font-size: 13px;\n font-weight: 500;\n color: #3a3630;\n\n &:hover {\n background: #e7edf4;\n }\n\n`;\n\nconst PalletHeaderToggle = styled.button`\n display: flex;\n align-items: center;\n gap: 8px;\n flex: 1;\n padding: 0;\n border: none;\n background: transparent;\n cursor: pointer;\n text-align: left;\n font: inherit;\n color: inherit;\n\n &:disabled {\n cursor: default;\n /* Inert, but must not read as a greyed-out disabled control. */\n opacity: 1;\n }\n\n .title {\n display: flex;\n align-items: center;\n gap: 6px;\n text-transform: uppercase;\n letter-spacing: 0.3px;\n\n strong {\n font-weight: 700;\n text-transform: none;\n letter-spacing: 0;\n }\n }\n\n .count {\n color: #6a7378;\n font-weight: 400;\n }\n\n .depot {\n color: #888075;\n font-weight: 400;\n font-size: 12px;\n }\n\n .selected {\n color: #0099ff;\n font-weight: 600;\n font-size: 12px;\n }\n\n`;\n\nconst Chevron = styled.span<{ $isExpanded: boolean }>`\n display: inline-flex;\n align-items: center;\n transition: transform 0.15s ease-in-out;\n transform: rotate(${props => (props.$isExpanded ? '0deg' : '-90deg')});\n`;\n\nconst ToggleGlyph = styled.span`\n margin-left: auto;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 20px;\n height: 20px;\n border: 1px solid #cbd5e1;\n border-radius: 4px;\n background: #fff;\n font-size: 14px;\n line-height: 1;\n color: #475569;\n`;\n\nconst StyleCheckbox = styled(Checkbox)`\n &:disabled {\n background-color: gray;\n cursor: not-allowed;\n opacity: -0.4;\n }\n`;\n\nconst StyledCancelationModal = styled(CancelationModal)`\n div {\n & > div > div:first-child {\n padding: 8px !important;\n }\n }\n svg {\n width: 28px !important;\n height: 28px !important;\n }\n`;\n\nconst CustomCancelAndCompleteAction = styled(CancelAndCompleteAction)`\n justify-content: center;\n`;\n\nexport default ReturnProductTable;\n"],"names":["ReturnProductTable","props","selectedProducts","setSelectedProducts","useSelectedProducts","selectAll","setSelectAll","useState","productData","useReturnProductDetails","orderId","useOrderId","returnOrderData","useNewReturnOrderData","isNorthSouth","useIsShowNorthSouth","isClientPortal","useClientPortal","productToDelete","setProductToDelete","isDeleteModalOpen","setIsDeleteModalOpen","deleteLoading","callDeleteProduct","useAxios","handleOpenDeleteModal","id","handleConfirmDelete","targetId","response","notification","error","handleCancelDelete","handleSelectAll","allProductIds","product","handleSelectProduct","prevSelected","selectedId","disableCheckbox","columnCount","palletGroups","useMemo","groupProductsByPallet","isGrouped","hasAnyPallet","expandedPallets","setExpandedPallets","useEffect","isGroupExpanded","group","togglePallet","key","prev","renderProductRow","jsxs","React","jsx","StyleCheckbox","NavLink","displayValueOrNA","toReverseDeliveryLabel","service","e","ActionIcon","NSWrapper","CustomInput","toggleGroupSelection","allSelected","groupIds","item","nextSelection","toggleGroupSelectionIds","renderPalletGroup","expanded","selectedInGroup","allSelectedInGroup","itemLabel","PalletHeaderRow","PalletHeaderBar","PalletHeaderToggle","Chevron","ChevronDownIcon","Fragment","ToggleGlyph","StyledTableWrapper","StyledTable","Skeleton","EmptyDataContainer","Empty","Spin","StyledCancelationModal","CustomCancelAndCompleteAction","styled","Checkbox","CancelationModal","CancelAndCompleteAction"],"mappings":";;;;;;;;;;;;;;AAyCA,MAAMA,KAAqB,CAACC,MAAiB;AAC3C,QAAM,CAACC,GAAkBC,CAAmB,IAAIC,GAAA,GAC1C,CAACC,GAAWC,CAAY,IAAIC,EAAS,EAAK,GAC1C,CAACC,CAAW,IAAIC,GAAA,GA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AAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAkBzBd,KAAkBc,EAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GA2BzBb,KAAqBa,EAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAoD5BZ,KAAUY,EAAO;AAAA;AAAA;AAAA;AAAA,sBAID,CAAA5F,MAAUA,EAAM,cAAc,SAAS,QAAS;AAAA,GAGhEmF,KAAcS,EAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAerBnC,IAAgBmC,EAAOC,CAAQ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAQ/BH,KAAyBE,EAAOE,CAAgB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAYhDH,KAAgCC,EAAOG,EAAuB;AAAA;AAAA;"}
|
|
1
|
+
{"version":3,"file":"ReturnProductTable.js","sources":["../../../../../src/components/order-view/return-client-products/product-table/ReturnProductTable.tsx"],"sourcesContent":["import React, { useEffect, useState } from 'react';\nimport {\n StyledTable,\n StyledTableWrapper,\n} from '../../../order-daily-overview/return-order-table/return-orders-filters/returnstyles';\nimport {\n CancelAndCompleteAction,\n CancelationModal,\n Checkbox,\n displayValueOrNA,\n useAxios,\n} from '@bjsdistribution/dms-component-library';\nimport ActionIcon from '../../../../assets/icons/ActionIcon';\nimport { useOrderId, useProductDetails } from '../../store';\nimport { ApiResponse } from '../../types';\nimport { Empty, notification, Skeleton, Spin } from 'antd';\nimport {\n useIsShowNorthSouth,\n useNewReturnOrderData,\n useSelectedProducts,\n useClientPortal,\n} from '../../../store';\nimport styled from 'styled-components';\nimport { NavLink } from 'react-router-dom';\nimport { EmptyDataContainer } from '../../order-actions/actions/charge-log';\nimport CustomInput from '../../northern-southern-info/CustomInput';\n\ninterface IPROS {\n callReturnProducts: any;\n loading: boolean;\n locationloading: boolean;\n}\n\nconst ReturnProductTable = (props: IPROS) => {\n const [selectedProducts, setSelectedProducts] = useSelectedProducts();\n const [selectAll, setSelectAll] = useState(false);\n const [productData, setProductData] = useProductDetails();\n const [selectedRowId, setSelectedRowId] = useState<number | null>(null);\n const [orderId] = useOrderId();\n const [returnOrderData] = useNewReturnOrderData();\n const [isNorthSouth] = useIsShowNorthSouth();\n const [isClientPortal] = useClientPortal();\n\n const [productToDelete, setProductToDelete] = useState<number | null>(null);\n const [isDeleteModalOpen, setIsDeleteModalOpen] = useState<boolean>(false);\n\n const { loading: deleteLoading, fetchData: callDeleteProduct } = useAxios<{\n data: ApiResponse[];\n }>({\n endpoint: `v1/return/product/remove/`,\n method: 'POST',\n });\n\n const handleOpenDeleteModal = (id: number) => {\n setProductToDelete(id);\n setIsDeleteModalOpen(true);\n };\n\n const handleConfirmDelete = async () => {\n if (productToDelete === null) return;\n const targetId = productToDelete;\n try {\n const response = (await callDeleteProduct({\n payload: {\n return_order_product_id: targetId,\n return_order_id: +orderId,\n },\n })) as {\n code: number | null;\n error?: string | null;\n data?: any[];\n message?: string;\n };\n\n if (response?.code === 200) {\n notification.success({\n message: 'Success',\n description: response?.message || 'Product deleted successfully.',\n });\n props?.callReturnProducts();\n } else {\n notification.error({\n message: 'Deletion Failed',\n description: response?.message || 'Could not delete the product.',\n });\n }\n } catch (error) {\n console.error('Error deleting product:', error);\n notification.error({\n message: 'Error',\n //@ts-ignore\n description: error?.message || 'An unexpected error occurred.',\n });\n } finally {\n setProductToDelete(null);\n setIsDeleteModalOpen(false);\n }\n };\n\n const handleCancelDelete = () => {\n if (deleteLoading) return;\n setProductToDelete(null);\n setIsDeleteModalOpen(false);\n };\n\n const handleSelectAll = () => {\n if (selectAll) {\n setSelectedProducts([]);\n } else {\n const allProductIds = productData?.map((product: any) => product.id);\n setSelectedProducts(allProductIds);\n }\n setSelectAll(!selectAll);\n };\n\n const handleSelectProduct = (id: number) => {\n setSelectedProducts((prevSelected: any) =>\n prevSelected.includes(id)\n ? prevSelected.filter((selectedId: any) => selectedId !== id)\n : [...prevSelected, id]\n );\n };\n\n const disableCheckbox =\n productData?.length == 0 || returnOrderData?.length == 0;\n return (\n <MobileTableRoot>\n <StyledTableWrapper id=\"tableScrolling\" className=\"orderProductTable\">\n <StyledTable>\n <thead>\n <tr>\n <th className=\"emailproductsCheckbox\">\n <StyleCheckbox\n disabled={disableCheckbox}\n checked={selectAll}\n onChange={handleSelectAll}\n />\n </th>\n <th>Location</th>\n <th>Sender</th>\n <th>Code</th>\n <th>Description</th>\n <th>Return Reason</th>\n {!isClientPortal && <th>Additional Services</th>}\n <th>Part</th>\n <th>Action</th>\n </tr>\n </thead>\n <tbody>\n {props?.loading || props?.locationloading ? (\n <tr>\n <td colSpan={14}>\n <Skeleton active />\n </td>\n </tr>\n ) : productData?.length === 0 ? (\n <tr>\n <td colSpan={14}>\n <EmptyDataContainer>\n <Empty />\n </EmptyDataContainer>\n </td>\n </tr>\n ) : (\n productData?.map((product: any) => (\n <React.Fragment key={product.id}>\n {/* MAIN ROW */}\n <tr className=\"product-row\">\n <td>\n <StyleCheckbox\n checked={selectedProducts?.includes(product?.id)}\n onChange={() => handleSelectProduct(product?.id)}\n disabled={disableCheckbox}\n />\n </td>\n <td data-label=\"Location\">{product?.location || 'N/A'}</td>\n <td data-label=\"Sender\">\n <ul style={{ listStyleType: 'none', padding: 0 }}>\n <li\n style={{\n color: '#0099ff',\n fontWeight: 600,\n }}\n >\n <NavLink to={`/orders/view/${product?.order_id}`}>\n {displayValueOrNA(product?.recipient_name)}\n </NavLink>\n </li>\n <li style={{ color: '#888075' }}>\n {displayValueOrNA(product?.postcode)}\n </li>\n </ul>\n </td>\n <td data-label=\"Code\">{product?.code}</td>\n <td data-label=\"Description\">{product?.description}</td>\n <td data-label=\"Return Reason\">{product?.return_reason}</td>\n {!isClientPortal && (\n <td data-label=\"Additional Services\">\n {Array.isArray(product?.product_addon_services) && product?.product_addon_services?.length > 0\n ? product.product_addon_services\n .map((service: any) => service?.service_code || service?.name || service)\n .filter(Boolean)\n .join(', ')\n : Array.isArray(product?.addon_services) && product?.addon_services?.length > 0\n ? product.addon_services\n .map((service: any) => service?.service_code || service?.name || service)\n .filter(Boolean)\n .join(', ')\n : Array.isArray(product?.addon_services_list) && product?.addon_services_list?.length > 0\n ? product.addon_services_list.join(', ')\n : typeof product?.addon_services === 'string' && product?.addon_services.trim() !== ''\n ? product.addon_services\n : 'NA'}\n </td>\n )}\n <td data-label=\"Part\">{product?.part}</td>\n <td data-label=\"Action\">\n <div\n onClick={(e) => {\n e.stopPropagation();\n e.preventDefault();\n handleOpenDeleteModal(product?.id);\n }}\n style={{ cursor: 'pointer' }}\n >\n <ActionIcon />\n </div>\n </td>\n </tr>\n\n {/* EXPANDED ROW */}\n {isNorthSouth === true && (\n <td colSpan={isClientPortal ? 8 : 9}>\n <NSWrapper>\n <div className=\"left\">Northern/Southern Ireland</div>\n <div className=\"left-end\"></div>\n\n <div className=\"section\">\n <CustomInput\n label=\"Commodity Code\"\n type=\"text\"\n direction=\"row\"\n placeholder=\"Enter Commodity Code\"\n value={\n product?.product_customs_details\n ?.commodity_code || 'NA'\n }\n disabled\n />\n\n <CustomInput\n label=\"Country of Origin\"\n type=\"text\"\n direction=\"row\"\n placeholder=\"Enter Country of Origin\"\n value={\n product?.product_customs_details\n ?.country_of_origin || 'NA'\n }\n disabled\n />\n\n <CustomInput\n label=\"Item Invoice Amount\"\n type=\"number\"\n direction=\"row\"\n placeholder=\"Enter Item Invoice Amount\"\n value={\n product?.product_customs_details\n ?.item_invoice_amount || 0\n }\n disabled\n />\n\n <CustomInput\n label=\"NI Additional Info Codes\"\n type=\"text\"\n direction=\"row\"\n placeholder=\"Enter NI Add Info Codes\"\n value={\n product?.product_customs_details\n ?.ni_additional_information_codes || 'NA'\n }\n disabled\n />\n </div>\n </NSWrapper>\n </td>\n )}\n </React.Fragment>\n ))\n )}\n </tbody>\n </StyledTable>\n </StyledTableWrapper>\n\n {isDeleteModalOpen && (\n <Spin spinning={deleteLoading}>\n <StyledCancelationModal\n title=\"Remove Product\"\n description=\"Are you sure, you want to remove this order product for returns?\"\n actions={\n <CustomCancelAndCompleteAction\n cancelLabel=\"Cancel\"\n onCancel={handleCancelDelete}\n completeLabel={deleteLoading ? 'REMOVING...' : 'Confirm'}\n isDisabled={deleteLoading}\n onComplete={handleConfirmDelete}\n />\n }\n />\n </Spin>\n )}\n </MobileTableRoot>\n );\n};\n\nexport const MobileTableRoot = styled.div`\n @media screen and (max-width: 768px) {\n .orderProductTable {\n overflow: visible;\n max-width: 100%;\n\n table,\n thead,\n tbody {\n display: block;\n width: 100%;\n min-width: 0;\n }\n\n thead tr {\n display: flex;\n align-items: center;\n margin-bottom: 8px;\n }\n thead th {\n display: none;\n }\n thead th.emailproductsCheckbox {\n display: flex;\n align-items: center;\n gap: 8px;\n width: auto;\n &::after {\n content: 'Select all';\n font-size: 13px;\n font-weight: 600;\n color: #3a3630;\n }\n }\n\n tr.product-row {\n display: block;\n margin-bottom: 12px;\n padding: 10px 12px;\n border: 1px solid #e3e3e3;\n border-radius: 12px;\n background: #fff;\n box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);\n }\n\n tr.product-row td {\n display: flex;\n align-items: flex-start;\n justify-content: space-between;\n gap: 12px;\n width: 100%;\n box-sizing: border-box;\n padding: 8px 0;\n border: 0;\n border-bottom: 1px solid #f0f2f2;\n text-align: right;\n word-break: break-word;\n }\n tr.product-row td:last-child {\n border-bottom: 0;\n justify-content: flex-end;\n }\n tr.product-row td[data-label]::before {\n content: attr(data-label);\n flex: 0 0 38%;\n text-align: left;\n font-size: 12px;\n font-weight: 600;\n text-transform: uppercase;\n color: #6a7378;\n }\n tr.product-row td ul {\n margin: 0;\n text-align: right;\n }\n\n /* loading / empty rows and the N/S expanded row */\n tbody > tr:not(.product-row),\n tbody > tr:not(.product-row) td,\n tbody > td {\n display: block;\n width: 100%;\n box-sizing: border-box;\n }\n }\n }\n`;\n\nexport const NSWrapper = styled.div`\n display: flex;\n width: 100%;\n padding: 5px 10px;\n align-items: center;\n gap: 10px;\n // position: absolute;\n // right: 84px;\n // top: 181px;\n border-radius: 6px;\n border: 1px solid rgb(237, 235, 232);\n background: rgb(248, 250, 252);\n margin-bottom: 14px;\n\n @media screen and (max-width: 768px) {\n flex-direction: column;\n align-items: stretch;\n box-sizing: border-box;\n .left-end {\n display: none;\n }\n }\n\n .left {\n display: flex;\n padding-right: 10px;\n align-items: center;\n gap: 5px;\n align-self: stretch;\n color: #3a3630;\n font-feature-settings: 'liga' off, 'clig' off;\n font-family: Roboto;\n font-size: 13px;\n font-style: normal;\n font-weight: 500;\n line-height: normal;\n text-transform: uppercase;\n }\n\n .left-end {\n display: flex;\n padding-right: 10px;\n align-items: center;\n gap: 5px;\n align-self: stretch;\n border-right: 1px solid #e2e0db;\n }\n\n .section {\n display: flex;\n align-items: center;\n gap: 30px;\n flex: 1 0 0;\n\n @media screen and (max-width: 768px) {\n flex-direction: column;\n align-items: stretch;\n gap: 10px;\n }\n\n input {\n display: flex;\n height: 28px;\n padding: 3px 10px;\n align-items: center;\n gap: 8px;\n flex: 1 0 0;\n border-radius: 30px;\n border: 1px solid #ccc;\n background: #fff;\n }\n }\n`;\n\nconst StyleCheckbox = styled(Checkbox)`\n &:disabled {\n background-color: gray;\n cursor: not-allowed;\n opacity: -0.4;\n }\n`;\n\nconst StyledCancelationModal = styled(CancelationModal)`\n div {\n & > div > div:first-child {\n padding: 8px !important;\n }\n }\n svg {\n width: 28px !important;\n height: 28px !important;\n }\n`;\n\nconst CustomCancelAndCompleteAction = styled(CancelAndCompleteAction)`\n justify-content: center;\n`;\n\nexport default ReturnProductTable;\n"],"names":["ReturnProductTable","props","selectedProducts","setSelectedProducts","useSelectedProducts","selectAll","setSelectAll","useState","productData","setProductData","useProductDetails","selectedRowId","setSelectedRowId","orderId","useOrderId","returnOrderData","useNewReturnOrderData","isNorthSouth","useIsShowNorthSouth","isClientPortal","useClientPortal","productToDelete","setProductToDelete","isDeleteModalOpen","setIsDeleteModalOpen","deleteLoading","callDeleteProduct","useAxios","handleOpenDeleteModal","id","handleConfirmDelete","targetId","response","notification","error","handleCancelDelete","handleSelectAll","allProductIds","product","handleSelectProduct","prevSelected","selectedId","disableCheckbox","MobileTableRoot","jsx","StyledTableWrapper","StyledTable","StyleCheckbox","Skeleton","EmptyDataContainer","Empty","jsxs","React","NavLink","displayValueOrNA","service","e","ActionIcon","NSWrapper","CustomInput","Spin","StyledCancelationModal","CustomCancelAndCompleteAction","styled","Checkbox","CancelationModal","CancelAndCompleteAction"],"mappings":";;;;;;;;;;;;AAiCA,MAAMA,KAAqB,CAACC,MAAiB;AAC3C,QAAM,CAACC,GAAkBC,CAAmB,IAAIC,EAAA,GAC1C,CAACC,GAAWC,CAAY,IAAIC,EAAS,EAAK,GAC1C,CAACC,GAAaC,EAAc,IAAIC,EAAA,GAChC,CAACC,IAAeC,EAAgB,IAAIL,EAAwB,IAAI,GAChE,CAACM,CAAO,IAAIC,EAAA,GACZ,CAACC,CAAe,IAAIC,EAAA,GACpB,CAACC,CAAY,IAAIC,EAAA,GACjB,CAACC,CAAc,IAAIC,EAAA,GAEnB,CAACC,GAAiBC,CAAkB,IAAIf,EAAwB,IAAI,GACpE,CAACgB,GAAmBC,CAAoB,IAAIjB,EAAkB,EAAK,GAEnE,EAAE,SAASkB,GAAe,WAAWC,EAAA,IAAsBC,EAE9D;AA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AA;AAAA;AAAA;AAAA,GAYhDH,KAAgCC,EAAOG,CAAuB;AAAA;AAAA;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { atom as e, useAtom as r } from "jotai";
|
|
2
|
-
import { useAtom as
|
|
2
|
+
import { useAtom as hr } from "jotai";
|
|
3
3
|
import { atomWithReducer as u } from "jotai/utils";
|
|
4
4
|
const l = e("active"), s = e(!1);
|
|
5
5
|
e([]);
|
|
@@ -34,8 +34,6 @@ const c = e({}), d = e({
|
|
|
34
34
|
other_instructions: null,
|
|
35
35
|
schedule_after: null,
|
|
36
36
|
vehicle_type: null,
|
|
37
|
-
latitude: null,
|
|
38
|
-
longitude: null,
|
|
39
37
|
order_locked_by: null,
|
|
40
38
|
delivery_instructions: null,
|
|
41
39
|
drop_time: null,
|
|
@@ -160,22 +158,22 @@ const c = e({}), d = e({
|
|
|
160
158
|
new_order_status: "",
|
|
161
159
|
adhoc_charges: []
|
|
162
160
|
};
|
|
163
|
-
function
|
|
161
|
+
function ye() {
|
|
164
162
|
return r(l);
|
|
165
163
|
}
|
|
166
|
-
function
|
|
164
|
+
function be() {
|
|
167
165
|
return r(s);
|
|
168
166
|
}
|
|
169
|
-
function
|
|
167
|
+
function ve() {
|
|
170
168
|
return r(i);
|
|
171
169
|
}
|
|
172
170
|
function Ae() {
|
|
173
171
|
return r(c);
|
|
174
172
|
}
|
|
175
|
-
function
|
|
173
|
+
function De() {
|
|
176
174
|
return r(d);
|
|
177
175
|
}
|
|
178
|
-
const m = e(void 0),
|
|
176
|
+
const m = e(void 0), Ce = () => r(m);
|
|
179
177
|
e([]);
|
|
180
178
|
e([]);
|
|
181
179
|
const p = {
|
|
@@ -184,29 +182,29 @@ const p = {
|
|
|
184
182
|
mobileError: "",
|
|
185
183
|
emailError: ""
|
|
186
184
|
}, g = e(p);
|
|
187
|
-
function
|
|
185
|
+
function Oe() {
|
|
188
186
|
return r(g);
|
|
189
187
|
}
|
|
190
188
|
const y = e(o);
|
|
191
|
-
function
|
|
189
|
+
function he() {
|
|
192
190
|
return r(y);
|
|
193
191
|
}
|
|
194
192
|
const b = e("");
|
|
195
|
-
function
|
|
193
|
+
function ke() {
|
|
196
194
|
return r(b);
|
|
197
195
|
}
|
|
198
196
|
const v = e({
|
|
199
197
|
previousDate: null,
|
|
200
198
|
currentDate: null
|
|
201
199
|
});
|
|
202
|
-
function
|
|
200
|
+
function Ie() {
|
|
203
201
|
return r(v);
|
|
204
202
|
}
|
|
205
|
-
const
|
|
206
|
-
function
|
|
207
|
-
return r(
|
|
203
|
+
const A = e([]);
|
|
204
|
+
function Re() {
|
|
205
|
+
return r(A);
|
|
208
206
|
}
|
|
209
|
-
const
|
|
207
|
+
const D = e([]), we = () => r(D), C = e({});
|
|
210
208
|
function Le() {
|
|
211
209
|
return r(C);
|
|
212
210
|
}
|
|
@@ -215,46 +213,42 @@ function Ee() {
|
|
|
215
213
|
return r(O);
|
|
216
214
|
}
|
|
217
215
|
const h = e(o);
|
|
218
|
-
function
|
|
216
|
+
function Pe() {
|
|
219
217
|
return r(h);
|
|
220
218
|
}
|
|
221
219
|
const k = e(o);
|
|
222
|
-
function
|
|
220
|
+
function Se() {
|
|
223
221
|
return r(k);
|
|
224
222
|
}
|
|
225
223
|
const I = e({});
|
|
226
|
-
function
|
|
224
|
+
function Te() {
|
|
227
225
|
return r(I);
|
|
228
226
|
}
|
|
229
227
|
e(0);
|
|
230
228
|
const R = e([]);
|
|
231
|
-
function
|
|
229
|
+
function qe() {
|
|
232
230
|
return r(R);
|
|
233
231
|
}
|
|
234
|
-
const w = e(
|
|
235
|
-
function
|
|
232
|
+
const w = e(!1);
|
|
233
|
+
function xe() {
|
|
236
234
|
return r(w);
|
|
237
235
|
}
|
|
238
|
-
const P = e(!1);
|
|
239
|
-
function Ue() {
|
|
240
|
-
return r(P);
|
|
241
|
-
}
|
|
242
236
|
const L = e([]);
|
|
243
|
-
function
|
|
237
|
+
function Ge() {
|
|
244
238
|
return r(L);
|
|
245
239
|
}
|
|
246
240
|
const E = e(0);
|
|
247
|
-
function
|
|
241
|
+
function Ue() {
|
|
248
242
|
return r(E);
|
|
249
243
|
}
|
|
250
|
-
const
|
|
251
|
-
function
|
|
252
|
-
return r(
|
|
244
|
+
const P = e([]);
|
|
245
|
+
function He() {
|
|
246
|
+
return r(P);
|
|
253
247
|
}
|
|
254
248
|
e([]);
|
|
255
|
-
const
|
|
256
|
-
function
|
|
257
|
-
return r(
|
|
249
|
+
const S = e([]);
|
|
250
|
+
function Me() {
|
|
251
|
+
return r(S);
|
|
258
252
|
}
|
|
259
253
|
e([]);
|
|
260
254
|
e(
|
|
@@ -265,168 +259,168 @@ e(!1);
|
|
|
265
259
|
e(
|
|
266
260
|
"update_product_type_tab"
|
|
267
261
|
);
|
|
268
|
-
const
|
|
262
|
+
const Ve = e({
|
|
269
263
|
homeContactError: "",
|
|
270
264
|
workCOntanctError: "",
|
|
271
265
|
mobileError: "",
|
|
272
266
|
emailError: "",
|
|
273
267
|
w3wError: "",
|
|
274
268
|
postCodeError: ""
|
|
275
|
-
}),
|
|
276
|
-
function
|
|
277
|
-
return r(
|
|
269
|
+
}), T = e([]);
|
|
270
|
+
function ze() {
|
|
271
|
+
return r(T);
|
|
278
272
|
}
|
|
279
273
|
e([]);
|
|
280
|
-
const
|
|
274
|
+
const q = {
|
|
281
275
|
collection_reason_id: 0,
|
|
282
276
|
return_reason_id: 0,
|
|
283
277
|
product_return_action_id: 0,
|
|
284
278
|
return_location: ""
|
|
285
279
|
};
|
|
286
|
-
e(
|
|
280
|
+
e(q);
|
|
287
281
|
e([]);
|
|
288
282
|
e({
|
|
289
283
|
order_product_type_id: 0,
|
|
290
284
|
order_product_type: ""
|
|
291
285
|
});
|
|
286
|
+
const x = e([]);
|
|
287
|
+
function Fe() {
|
|
288
|
+
return r(x);
|
|
289
|
+
}
|
|
292
290
|
const G = e([]);
|
|
293
|
-
function
|
|
291
|
+
function Ne() {
|
|
294
292
|
return r(G);
|
|
295
293
|
}
|
|
294
|
+
e([]);
|
|
295
|
+
e(void 0);
|
|
296
296
|
const U = e([]);
|
|
297
|
-
function
|
|
297
|
+
function Ze() {
|
|
298
298
|
return r(U);
|
|
299
299
|
}
|
|
300
|
-
e([]);
|
|
301
|
-
e(void 0);
|
|
302
300
|
const H = e([]);
|
|
303
|
-
function
|
|
301
|
+
function Be() {
|
|
304
302
|
return r(H);
|
|
305
303
|
}
|
|
306
304
|
const M = e([]);
|
|
307
|
-
function
|
|
305
|
+
function We() {
|
|
308
306
|
return r(M);
|
|
309
307
|
}
|
|
310
|
-
const V = e(
|
|
311
|
-
function
|
|
308
|
+
const V = e("");
|
|
309
|
+
function je() {
|
|
312
310
|
return r(V);
|
|
313
311
|
}
|
|
314
|
-
const z = e(
|
|
315
|
-
function
|
|
312
|
+
const z = e([]);
|
|
313
|
+
function Je() {
|
|
316
314
|
return r(z);
|
|
317
315
|
}
|
|
318
|
-
const F = e(
|
|
319
|
-
function
|
|
316
|
+
const F = e(null);
|
|
317
|
+
function Ke() {
|
|
320
318
|
return r(F);
|
|
321
319
|
}
|
|
322
|
-
const N = e(null);
|
|
323
|
-
function Xe() {
|
|
324
|
-
return r(N);
|
|
325
|
-
}
|
|
326
320
|
e(!1);
|
|
327
321
|
e(!1);
|
|
328
322
|
e([]);
|
|
329
|
-
const
|
|
330
|
-
function
|
|
323
|
+
const N = e({});
|
|
324
|
+
function Qe() {
|
|
325
|
+
return r(N);
|
|
326
|
+
}
|
|
327
|
+
const Z = e(void 0);
|
|
328
|
+
function Xe() {
|
|
331
329
|
return r(Z);
|
|
332
330
|
}
|
|
333
|
-
const B = e(
|
|
334
|
-
function
|
|
331
|
+
const B = e(null);
|
|
332
|
+
function Ye() {
|
|
335
333
|
return r(B);
|
|
336
334
|
}
|
|
337
|
-
const W = e(
|
|
338
|
-
function
|
|
335
|
+
const W = e(void 0);
|
|
336
|
+
function $e() {
|
|
339
337
|
return r(W);
|
|
340
338
|
}
|
|
341
339
|
const j = e(void 0);
|
|
342
|
-
function
|
|
340
|
+
function er() {
|
|
343
341
|
return r(j);
|
|
344
342
|
}
|
|
345
|
-
const J = e(
|
|
346
|
-
function
|
|
343
|
+
const J = e([]);
|
|
344
|
+
function rr() {
|
|
347
345
|
return r(J);
|
|
348
346
|
}
|
|
349
|
-
const K = e([]);
|
|
350
|
-
function nr() {
|
|
351
|
-
return r(K);
|
|
352
|
-
}
|
|
353
347
|
e(!1);
|
|
354
|
-
const
|
|
355
|
-
function
|
|
356
|
-
return r(
|
|
348
|
+
const K = e(!1);
|
|
349
|
+
function tr() {
|
|
350
|
+
return r(K);
|
|
357
351
|
}
|
|
358
352
|
e(!1);
|
|
359
353
|
e("1");
|
|
360
354
|
e(null);
|
|
361
|
-
const
|
|
362
|
-
function
|
|
355
|
+
const Q = e(!0);
|
|
356
|
+
function nr() {
|
|
357
|
+
return r(Q);
|
|
358
|
+
}
|
|
359
|
+
const X = e(!1);
|
|
360
|
+
function or() {
|
|
363
361
|
return r(X);
|
|
364
362
|
}
|
|
365
|
-
const Y = e(!
|
|
366
|
-
function
|
|
363
|
+
const Y = e(!0);
|
|
364
|
+
function ur() {
|
|
367
365
|
return r(Y);
|
|
368
366
|
}
|
|
369
|
-
const $ = e(
|
|
370
|
-
function
|
|
367
|
+
const $ = e([]);
|
|
368
|
+
function lr() {
|
|
371
369
|
return r($);
|
|
372
370
|
}
|
|
373
|
-
const ee = e(
|
|
374
|
-
function
|
|
371
|
+
const ee = e("success");
|
|
372
|
+
function sr() {
|
|
375
373
|
return r(ee);
|
|
376
374
|
}
|
|
377
|
-
const re = e(
|
|
378
|
-
function
|
|
375
|
+
const re = e(f);
|
|
376
|
+
function ir() {
|
|
379
377
|
return r(re);
|
|
380
378
|
}
|
|
381
|
-
const te = e(
|
|
382
|
-
function
|
|
379
|
+
const te = e("");
|
|
380
|
+
function cr() {
|
|
383
381
|
return r(te);
|
|
384
382
|
}
|
|
385
383
|
const ne = e("");
|
|
386
|
-
function
|
|
384
|
+
function dr() {
|
|
387
385
|
return r(ne);
|
|
388
386
|
}
|
|
389
387
|
const oe = e("");
|
|
390
|
-
function
|
|
388
|
+
function ar() {
|
|
391
389
|
return r(oe);
|
|
392
390
|
}
|
|
393
391
|
const ue = e("");
|
|
394
|
-
function
|
|
392
|
+
function _r() {
|
|
395
393
|
return r(ue);
|
|
396
394
|
}
|
|
397
395
|
const le = e("");
|
|
398
|
-
function
|
|
396
|
+
function fr() {
|
|
399
397
|
return r(le);
|
|
400
398
|
}
|
|
401
399
|
const se = e("");
|
|
402
|
-
function
|
|
400
|
+
function mr() {
|
|
403
401
|
return r(se);
|
|
404
402
|
}
|
|
405
403
|
const ie = e("");
|
|
406
|
-
function
|
|
404
|
+
function pr() {
|
|
407
405
|
return r(ie);
|
|
408
406
|
}
|
|
409
|
-
const ce = e(
|
|
410
|
-
function
|
|
407
|
+
const ce = e(!1);
|
|
408
|
+
function gr() {
|
|
411
409
|
return r(ce);
|
|
412
410
|
}
|
|
413
|
-
const de = e(!
|
|
414
|
-
function
|
|
411
|
+
const de = e(!0);
|
|
412
|
+
function yr() {
|
|
415
413
|
return r(de);
|
|
416
414
|
}
|
|
417
|
-
const ae = e(
|
|
418
|
-
function
|
|
415
|
+
const ae = e([]);
|
|
416
|
+
function br() {
|
|
419
417
|
return r(ae);
|
|
420
418
|
}
|
|
421
419
|
const _e = e([]);
|
|
422
|
-
function
|
|
420
|
+
function vr() {
|
|
423
421
|
return r(_e);
|
|
424
422
|
}
|
|
425
|
-
const
|
|
426
|
-
function Ar() {
|
|
427
|
-
return r(fe);
|
|
428
|
-
}
|
|
429
|
-
const Cr = e(!0), me = null, pe = (t, n) => {
|
|
423
|
+
const Ar = e(!0), fe = null, me = (t, n) => {
|
|
430
424
|
if (n.type === "create-return")
|
|
431
425
|
return t = "create-return", { state: t };
|
|
432
426
|
if (n.type === "bulkUpdate")
|
|
@@ -450,73 +444,72 @@ const Cr = e(!0), me = null, pe = (t, n) => {
|
|
|
450
444
|
if (n.type === "close")
|
|
451
445
|
return t = null, { state: t };
|
|
452
446
|
throw new Error("unknown action type");
|
|
453
|
-
},
|
|
447
|
+
}, Dr = u(fe, me);
|
|
454
448
|
export {
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
449
|
+
Dr as countReducerAtom,
|
|
450
|
+
Ve as errorAtom,
|
|
451
|
+
q as initialBulkReasonValues,
|
|
458
452
|
p as initialConfirmOrderErrValues,
|
|
459
453
|
o as ordersInitialValue,
|
|
460
|
-
|
|
454
|
+
Ar as skeletonTomTom,
|
|
461
455
|
a as unrecieveOrderProducts,
|
|
462
456
|
_ as updateOrderProducts,
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
457
|
+
sr as useActiveTab,
|
|
458
|
+
hr as useAtom,
|
|
459
|
+
nr as useAuditLogLoadingState,
|
|
460
|
+
Xe as useCUstomerId,
|
|
461
|
+
Re as useCancelOrderProducts,
|
|
462
|
+
ir as useChargesState,
|
|
463
|
+
Be as useClientData,
|
|
464
|
+
ve as useCurrentAction,
|
|
465
|
+
we as useCustomerData,
|
|
466
|
+
Te as useCustomerDetails,
|
|
467
|
+
De as useCustomerInfo,
|
|
468
|
+
Me as useDeleteProdsID,
|
|
469
|
+
He as useDepotOptions,
|
|
470
|
+
vr as useEpodImages,
|
|
471
|
+
Oe as useErrorConfirmOrder,
|
|
472
|
+
dr as useEscalationCategory,
|
|
473
|
+
ar as useEscalationLevel,
|
|
474
|
+
_r as useEscalationReason,
|
|
475
|
+
cr as useFailureReason,
|
|
476
|
+
lr as useGlobalEscData,
|
|
477
|
+
or as useGlobalStateHitAuditLog,
|
|
478
|
+
ur as useGlobalStateHitOrder,
|
|
479
|
+
Qe as useGsitCUstomerId,
|
|
480
|
+
$e as useGsitOrderId,
|
|
481
|
+
be as useInfoType,
|
|
482
|
+
je as useInternalSearchText,
|
|
483
|
+
gr as useIsFailureReasonChanged,
|
|
484
|
+
tr as useLiveRecalling,
|
|
485
|
+
Fe as useLocationOptions,
|
|
486
|
+
fr as useNewStatus,
|
|
487
|
+
Ie as useNotificationConfirmedDate,
|
|
494
488
|
Le as useOrderAlertsData,
|
|
495
|
-
|
|
489
|
+
mr as useOrderCancelReason,
|
|
496
490
|
Ee as useOrderCustomersList,
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
491
|
+
Pe as useOrderDetails,
|
|
492
|
+
he as useOrderDetailsConfirmOrder,
|
|
493
|
+
pr as useOrderHoldReason,
|
|
494
|
+
Ce as useOrderId,
|
|
495
|
+
er as useOrderProductId,
|
|
496
|
+
Ne as useOrderProductSystemLogs,
|
|
497
|
+
ze as useOrderProductsResources,
|
|
504
498
|
Ae as useOrderStaticData,
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
Je as
|
|
519
|
-
|
|
520
|
-
Xe as usemoduleIds
|
|
499
|
+
Se as usePrevOrderDetails,
|
|
500
|
+
qe as useProductDetails,
|
|
501
|
+
Ge as useProductDetailsCopy,
|
|
502
|
+
Ze as useReturnAfterOrderData,
|
|
503
|
+
rr as useReturnData,
|
|
504
|
+
Ye as useRouteId,
|
|
505
|
+
ke as useSelectionAction,
|
|
506
|
+
Ue as useStatusDetails,
|
|
507
|
+
ye as useTabType,
|
|
508
|
+
br as useZoomCallLogs,
|
|
509
|
+
yr as useZoomCallLogsLoader,
|
|
510
|
+
xe as usefetchAgain,
|
|
511
|
+
We as usegetClientData,
|
|
512
|
+
Je as usegetNotes,
|
|
513
|
+
Ke as usemoduleIds
|
|
521
514
|
};
|
|
522
515
|
//# sourceMappingURL=store.js.map
|