{"version":3,"sources":["utils/index.js","components/agent/orderEscalation/components/Confirmation.js","components/agent/orderEscalation/components/LeaveNote.js","components/agent/orderEscalation/components/EscalationSuccess.js","components/agent/orderEscalation/components/ChooseEscalationMethod.js","components/agent/orderEscalation/components/UnableEscalate.js","components/agent/orderEscalation/constants.js","components/agent/postalCodeAllocation/postalCodeAllocations.action.js","components/agent/orderEscalation/OrderEscalation.context.js","components/common/ErrorPopup.js","components/app.js","components/common/doRedirect/DoRedirect.js","components/agent/viewOrders/constants.js","components/agent/viewOrders/utils.js","components/agent/viewOrders/hooks/useOrders.js","components/agent/viewOrders/ViewOrders.context.js","components/agent/viewOrders/components/ReturnIcon.js","components/agent/viewOrders/components/SingleOrderAction.js","components/agent/viewOrders/components/MPSIcon.js","components/agent/viewOrders/components/Columns.js","components/agent/viewOrders/components/filters/ConsigneeFilter.js","components/agent/viewOrders/components/filters/CountryFilter.js","components/agent/viewOrders/components/filters/DateFilter.js","components/agent/viewOrders/hooks/useOrderExceptions.js","components/agent/viewOrders/components/filters/ExceptionFilter.js","hooks/useHubs.js","components/common/SelectHub.js","components/agent/viewOrders/components/filters/HMSFilter.js","components/agent/viewOrders/components/filters/OrderNumberFilter.js","hooks/useServices.js","components/common/SelectService.js","components/agent/viewOrders/components/filters/ServiceFilter.js","hooks/usePublicStatuses.js","components/common/SelectPublicStatus.js","hooks/usePrivateStatuses.js","components/common/SelectPrivateStatus.js","components/agent/viewOrders/components/filters/StatusFilter.js","components/agent/viewOrders/components/filters/index.js","components/agent/viewOrders/api.js","components/agent/viewOrders/actionButtons/RegenerateLabels.js","components/agent/viewOrders/components/SelectedOrdersActions.js","components/agent/viewOrders/components/Modals.js","components/agent/viewOrders/components/ViewOrdersTable.js","components/agent/viewOrders/components/ViewOrders.js","components/agent/viewOrders/ViewOrders.page.js","components/common/auth/RequireAuth.js","routes/agentRoutes/agentRoutes.js","routes/routes.js","config/axiosConfig.js","index.js","reducers/agentReducers/agentServiceReducer.js","reducers/agentReducers/hmsReducer.js","reducers/agentReducers/lspUsersReducer.js","components/agent/zoneLocations/zone.reducer.js","components/agent/postalCodeAllocation/postalCodeAllocations.reducer.js","components/common/reducers/index.js","reducers/agentReducers/orderExceptionsReducer.js","reducers/index.js","reducers/commonReducers/authReducer.js","reducers/commonReducers/dataReducer.js","reducers/agentReducers/agentStatsReducer.js","reducers/agentReducers/agentApplicationsReducer.js","reducers/agentReducers/changeTrackerStatusesReducer.js","reducers/agentReducers/agentViewOrdersReducer.js","reducers/agentReducers/trackerUpdateReducer.js","reducers/agentReducers/notesReducer.js","reducers/agentReducers/billsReducer.js","reducers/agentReducers/billRecordReducer.js","reducers/agentReducers/deleteOrderByUploadBatchNoReducer.js","reducers/agentReducers/reportsReducer.js","reducers/agentReducers/pricingReducer.js","reducers/agentReducers/weightReconciliationReducer.js","reducers/agentReducers/uploadAdhocCSVReducer.js","reducers/agentReducers/networkPartnerReducer.js","reducers/agentReducers/codManagementReducer.js","reducers/commonReducers/errorPopUpReducer.js","reducers/agentReducers/consigneeDocumentsReducer.js","reducers/agentReducers/correctOrderAddressReducer.js","reducers/agentReducers/mawbReducer.js","reducers/agentReducers/midmileAwbReducer.js","reducers/agentReducers/missedSlasLastMileReducer.js","reducers/agentReducers/npDelayReasonReducer.js","store.js","utils/historyUtils.js","components/agent/zoneLocations/zone.action.js","components/agent/orderEscalation/api.js","utils/ObjectUtils.js","actions/commonActions/authActions.js","components/agent/midMileAwb/constants.js","actions/types.js","components/common/actions/index.js","icons.js","components/agent/NavbarTitle.js","components/agent/AgentDashboard.js","components/agent/customsDocuments/utils.js","hooks/useCountries.js","components/agent/confirmAction/ConfirmationModal.js","components/agent/confirmAction/confirm.context.js","components/common/hooks/useStates.js","components/common/hooks/useCities.js","components/agent/orderEscalation/OrderEscalation.js","components/agent/resolveOrderException/api.js","components/agent/resolveOrderException/components/ChooseExceptions.js","components/agent/resolveOrderException/components/ChooseResolutionMethod.js","components/common/SelectStates.js","components/common/SelectCities.js","components/agent/resolveOrderException/components/ConsigneeDetailsForm.js","components/agent/resolveOrderException/components/LeaveNote.js","components/agent/resolveOrderException/components/PickupDetailsForm.js","components/agent/resolveOrderException/components/ResolutionSuccess.js","components/agent/resolveOrderException/constants.js","components/agent/resolveOrderException/utils.js","components/agent/resolveOrderException/ResolveOrderException.context.js","components/agent/resolveOrderException/ResolveOrderException.js","recoil/atoms/agentApplicationListAtom.js","hooks/useAgentApplications.js","components/Loading.js","components/agent/orderEscalation/components/EscalationStatusOptions.js","components/AgentApplicationsDropdown.js","components/common/OptimzedSelect/OptimizedSelect.jsx","images/janio-favicon.png","components/common/auth/FeatureRequired.js"],"names":["cleanTrackingNumbers","trackingNumbers","type","result","Set","split","filter","item","join","getDateTimeArray","string","dateTime","Date","getDate","getMonth","getFullYear","toLocaleString","hour","minute","hour12","toLowerCase","cleanFieldName","field","cleanedKey","includes","substring","indexOf","trim","test","checkIsAdmin","user","id","email","capitalizeUnderscore","str","TypeError","replace","x","toUpperCase","titleize","ChooseResolutionMethod","title","body","useContext","OrderEscalationContext","handleCloseModal","setCurrentStep","selectedEscalationType","ESCALATION_TYPES","LASTMILE","RTS_FIRSTMILE","className","onClick","steps","leaveNote","LeaveNote","submitData","initialValues","reason","undefined","validationSchema","yup","shape","nullable","onSubmit","values","a","setSubmitting","setErrors","submitResponse","isError","success","formik","useFormik","handleSubmit","TextArea","placeholder","name","onChange","handleChange","disabled","isSubmitting","errors","htmlType","EscalationSuccess","handleEscalateSuccess","numberOrders","escalated_orders","setTimeout","ChooseEscalationMethod","setSelectedEscalationType","useState","escalationType","setEscalationType","style","marginTop","Group","e","target","value","confirmation","UnableEscalate","chooseEscalationMethod","unableEscalate","componentStep","Confirmation","Success","escalationStatuses","LASTMILE_FIRST_MERCHANT_EMAIL_SENT","bgColor","LASTMILE_SECOND_MERCHANT_EMAIL_SENT","ESCALATION_CREATED","LASTMILE_RTV_COMPLETED","FETCH_NETWORk_PARTNER_SERVICES_LOADING","FETCH_NETWORk_PARTNER_SERVICES","FETCH_NETWORk_PARTNER_SERVICES_ERROR","FETCH_NETWORk_PARTNER_POSTAL_CODES_LOADING","FETCH_NETWORk_PARTNER_POSTAL_CODES","FETCH_NETWORk_PARTNER_POSTAL_CODES_ERROR","ADD_NEW_POSTAL_CODE_LOADING","ADD_NEW_POSTAL_CODE","ADD_NEW_POSTAL_CODE_ERROR","NETWORK_PARTNER_REASSIGN_SUCCESS","NETWORK_PARTNER_REASSIGN_ERROR","RESET_NETWORK_PARTNER_REASSIGN_STATE","RESET_ADD_POSTAL_CODE_STATE","fetchNetworkPartnerPostalCodes","params","dispatch","axios","get","res","payload","data","submitNetworkPartnerAssignAction","postalCodePayload","post","addNewPostalCode","response","message","addNewPostalCodeViaCsv","failedData","p","catch","error","push","JSON","parse","config","error_message","length","stringifyError","stringify","formattedError","resetNetworkPartnerReassignState","resetAddPostalCodeState","React","createContext","OrderEscalationProvider","orderData","singleException","escalationTypes","children","escalation","exception","collectedData","setCollectedData","setSubmitResponse","orderIds","useCallback","map","order","order_id","getOrderEscalationTypes","resultTypes","Object","entries","forEach","exceptions","order_exceptions","some","orderException","initialStep","getInitialStep","currentStep","OrderEscalationAPI","escalateOrders","order_ids","escalation_type","Provider","Transition","props","direction","connect","state","isOpen","errorPopup","open","togglePopup","CLOSE_ERROR_POPUP","history","useHistory","TransitionComponent","keepMounted","onClose","aria-labelledby","aria-describedby","preventDefault","goBack","handleOkButton","color","App","this","Component","DoRedirect","process","REACT_APP_IS_LOCAL","REACT_APP_IS_STAGING","REACT_APP_IS_INTEGRATION","PAGE_SIZE_OPTIONS","defaultSelectedColumns","columnsOrdering","MPS_ORDER_TYPES","fieldsValueToRemove","page","page_size","date_to","moment","endOf","format","order_type","is_processing","parseQueryFunctions","date_from","startOf","pickup_date_from","pickup_date_to","Array","escalation_status","service_id","agent_application_id","public_status","private_status","v","requestParamFunctions","isArray","filtersToParams","filters","q","fieldsToClean","arrayFields","k","keys","status","cleanedValue","f","hub_id","hub_group_id","public_status_v2_shipper","agent_application_id_filter","getTrackerUrl","trackingNo","URL","useOrders","paramsObj","app","token","localStorage","getItem","setData","useMutation","_url","window","location","pathname","queryString","headers","Authorization","onSuccess","onError","err","mutate","isLoading","ViewOrdersContext","ViewOrdersContextProvider","initialFilters","query","hasOwnProperty","queryToFilters","search","subtract","setFilters","useAgentApplications","agentApplications","agentApplicationsLoading","orderToCancel","setOrderToCancel","ordersToResolve","setOrdersToResolve","ordersToEscalate","setOrdersToEscalate","showErrorMessage","setShowErrorMessage","selectedOrders","setSelectedOrders","ordersResponse","ordersFetching","selectedColumns","setSelectedColumns","useEffect","parsedFilter","stringified","url","replaceState","toString","handleChangeFilter","rest","handleChangeFiltersValues","key","selectColumn","columnName","unselectColumn","c","removeFilterField","fieldName","onSearchHandler","resetPageSearch","filterObj","tracking_no","external_tracking_no","shipper_order_id","upload_batch_no","shipping_batch_no","mawb_no","ReturnIcon","height","width","verticalAlign","marginRight","src","alt","View","href","rel","Track","Print","order_label_url","classNames","Cancel","cancelable","tracker_status_code","FeatureRequired","feature","disable","Resolve","isResolveBtnEnabled","backgroundColor","Escalate","isEscalateBtnEnabled","is_escalatable","SingleOrderAction","memo","MPSIcon","orderType","ColumnSelection","column","i","checked","columnDefintions","dataIndex","fixed","render","text","record","is_return_order","external_tracking_nos","agent_application_name","private_tracker_status_code","pickup_date","forward_order_id","_","forward_tracking_no","return_tracking_no","return_order_id","created_on","escalationStatus","consignee_name","consignee_email","pickup_country","consignee_country","consignee_address","consignee_number","shipping_batch_nos","getColumns","columns","actionColumn","orderId","ConsigneeFilter","defaultValue","Option","SelectCountry","countries","showSearch","allowClear","getPopupContainer","trigger","parentNode","country","country_id","country_name","CountryFilter","useCountries","countriesLoading","loading","RangePicker","DateFilter","days_since_last_update","setValues","handleTextChange","newValues","dateField","index","onKeyDown","locale","disabledDate","current","date","handleDateChange","todayButton","dates","handleDateRangeChange","ranges","Today","useOrderExceptions","useQuery","r","staleTime","Infinity","refetchInterval","ExceptionFilter","orderExceptions","orderExceptionsLoading","mode","useHubs","hubs","setHubs","SelectHubs","options","hub","hub_name","getHubOptions","HMSFilter","SelectHub","console","dateFromField","dateToField","hms_scan_from","hms_scan_to","OrderNumberFilter","handleKeyDown","keyCode","which","inputField","useServices","services","setServices","SelectService","servicesLoading","size","isDisabled","filterOption","input","option","service","service_name","renderOptions","ServiceFilter","usePublicStatuses","publicStatuses","setPublicStatuses","OptGroup","SelectPublicStatus","public_statuses","public_statuses_v2","statusGroup","s","label","getPubliStatusCodeOptions","usePrivateStatuses","privateStatuses","setPrivateStatuses","SelectPrivateStatus","groupedStatuses","grouped_by_public_status_v2","obj","groupedByPublicStatus","public_status_v2","private_statuses","getPrivateStatusCodeOptions","StatusFilter","Panel","Filters","onResetPage","header","cancelOrder","resubmitToExternalService","orders","printOrdersLabel","responseType","urlResult","createObjectURL","Blob","isSuccess","pdfUrl","decodedString","String","fromCharCode","apply","Uint8Array","msg","downloadManifset","then","RegenerateLabels","setLoading","handleClick","info","ResubmitExternalService","handleResult","submitting","handleResubmitToExternalService","handlePrint","has_olu","olus","tracking_nos","PrintSorted","trackerUrl","DownloadCustomsDocument","handleBulkDownload","bulkDownloadDocuments","DownloadDeliveryManifset","enabled","handleDownloadManifest","hms_hub_group_id","link","document","createElement","setAttribute","appendChild","click","remove","EscalateOrders","ResolveExceptions","SelectedOrdersActions","setMessage","setStatus","role","CancelModal","cancelling","setCancelling","handleCancel","slice","defaultMsg","detail","visible","maskClosable","onCancel","onOk","okButtonProps","cancelButtonProps","ResolveOrderModal","afterClose","footer","centered","destroyOnClose","ResolveOrderException","EscalateOrderModal","OrderEscalation","Modals","ViewOrdersTableInner","emptyText","rowKey","scroll","pagination","parseInt","pageSize","total","count","showTotal","marginBottom","pageSizeOptions","defaultPageSize","showSizeChanger","showLessItems","position","onShowSizeChange","currentPage","rowSelection","selectedKeys","dataSource","results","ViewOrdersTable","ViewOrders","isEmpty","ViewOrdersPage","AgentDashboard","ComposedComponent","Authentication","authenticated","nextProps","auth","CreatePartnerDelays","lazy","ViewPartnerDelays","User","ChangePassword","AddAgentApplications","EditAgentApplications","AgentApplications","ChangeTrackerStatusSuccess","ChangeTrackerStatusCSV","AgentViewOrderDetails","ViewTrackerUpdateDetails","ViewTrackerUpdate","CreateTrackerUpdate","CreateAwb","CreateNpDelayReason","CreateBillsSuccess","CreateBills","DeleteOrderByUploadBatchNoSuccess","Reports","ViewPricingDetails","UploadPricingCSV","WeightReconciliation","UploadAdhocCSV","AgentStats","MerchantRemittance","PartnerRemittance","AgentViewOrders","CorrectOrderAddress","DonwloadPODs","DownloadShopeeOrders","SubmitReturnOrderPage","ViewOrderDetails","ManageMidmile","ViewMidmileAwb","Zones","ZoneLocations","NetworkPartnerAllocations","agentRoutes","path","component","RequireAuth","exact","useLocation","mawbClient","URLSearchParams","AuthenticatedManageMidmile","Signin","PasswordSent","ResetPasswordSuccess","ResetPassword","store","AUTH_USER","fetchSignedInUser","fetchUserFeatures","routes","img","ReactRouterRoute","Route","fallback","Loading","to","interceptors","use","UNAUTH_USER","OPEN_ERROR_POPUP","Promise","reject","Sentry","dsn","ReactDOM","querySelector","initialState","networkPartnerServicesLoading","networkPartnerServices","networkPartnerPostalCodes","networkPartnerPostalCodesLoading","networkPartnerPostalCodesError","networkPartnerReassignError","networkPartnerReassignSuccess","addingPostalCodeSuccess","addingPostalCode","addingPostalCodeError","networkPartners","submissionMethods","appReducer","combineReducers","action","request","defaultToken","AUTH_ERROR","FETCH_SIGNED_IN_USER","EDIT_SIGNED_IN_USER","CHANGE_PASSWORD","errorData","RESET_PASSWORD","PASSWORD_SENT","CLEAR_AUTH_ERRORS","FETCH_USER_FEATURES","featuresObj","createObjPath","features","FETCH_ALL_COUNTRIES","FETCH_ALL_CURRENCIES","currencies","FETCH_AGENT_STATUSES","agentStatuses","FETCH_TRACKER_STATUSES","FETCH_PRIVATE_TRACKER_STATUSES","FETCH_FIRSTMILE_STATUSES","firstmileStatuses","FETCH_WAREHOUSE_STATUSES","warehouseStatuses","FETCH_PORTS","ports","FETCH_SLA_DESTINATIONS","slaDestinations","FETCH_SLA_NPS","slaNPs","agentStats","FETCH_AGENT_STATS","stats","ADD_AGENT_APPLICATIONS","EDIT_AGENT_APPLICATIONS_SECRET_KEY","editSecreyKeyError","EDIT_AGENT_APPLICATIONS","FETCH_AGENT_APPLICATIONS","FETCH_AGENT_APPLICATION_BY_ID","agentApplication","CLEAR_AGENT_APPLICATIONS_ERRORS","FETCH_PAGINATED_AGENT_APPLICATIONS","paginatedAgentApps","FETCH_PAGINATED_AGENT_APPLICATION_BY_ID","paginatedAgentApp","EDIT_PAGINATED_AGENT_APPLICATION_ERROR","CLEAR_PAGINATED_AGENT_APPLICATION_DATA","ADD_SUB_ACCOUNTS_AGENT_APPLICATION","subAccountMessage","subAccountError","ADD_SUB_ACCOUNTS_AGENT_APPLICATION_ERROR","CLEAR_SUB_ACCOUNTS_AGENT_APPLICATION_ERROR","FETCH_AGENT_SERVICES","FETCH_AGENT_SERVICE_BY_ID","EDIT_AGENT_SERVICE","changeTrackerStatuses","CHANGE_TRACKER_STATUSES","successMessage","lastUpdated","CLEAR_CHANGE_TRACKER_STATUSES_ACTION_ERROR","agentOrders","FETCH_ORDERS_BY_FILTER_LOADING","ordersFilterLoading","FETCH_ORDERS_BY_FILTER","totalOrders","totalPages","Math","ceil","queryId","DELETE_ORDER","CHANGE_AGENT_ORDERS_STATUSES","SUBMIT_ORDERS","RE_SUBMIT_TO_EXTERNAL_SERVICE","RE_SUBMIT_TO_EXTERNAL_SERVICE_ERROR","EDIT_ORDER","FETCH_ORDER_DETAILS","orderDetails","FETCH_SERVICE_DETAILS","serviceDetails","ORDERS_ACTION_ERROR","CLEAR_ORDERS_ACTION_ERROR","FETCH_ORDER_PARTNER_UPDATES","partnerUpdates","FETCH_ORDER_REMITTANCE_DATA","remittanceData","CLEAR_ORDERS_DATA","trackerUpdate","FETCH_TRACKER_UPDATE","trackerUpdates","totalTrackerUpdates","FETCH_TRACKER_UPDATE_BY_IDS","FETCH_TRACKER_UPDATE_BY_FILTER","FETCH_TRACKER_UPDATE_BY_ID","CREATE_TRACKER_UPDATE","EDIT_TRACKER_UPDATE","DELETE_TRACKER_UPDATE_BY_ID","updatedState","update","update_id","updateId","DELETE_MULTIPLE_TRACKER_UPDATE","newState","deletedIds","deleteSuccessStatus","TRACKER_UPDATE_ERROR","CLEAR_TRACKER_UPDATE_ERRORS","notes","GET_NOTES_HEADER","notesHeader","ADD_NOTES","FETCH_NOTES_BY_FILTER","totalNotes","FETCH_NOTE_BY_TRACKING_NUMBER","noteDetails","FETCH_NOTES_REPORT","notesReport","emailsMessage","DELETE_NOTES","CLEAR_NOTES_ERRORS","bills","ADD_BILLS","addBillsData","UPDATE_BILLS","FETCH_BILLS_PARAMS","billsParams","FETCH_BILLS_BY_FILTER","totalBills","FETCH_BILL_BY_ID","billDetails","CLEAR_BILLS_ERRORS","billRecord","CREATE_BULK_BILL_RECORD","CREATE_BULK_BILL_RECORD_RESOLVE","FETCH_BILL_RECORD_PARAMS","billRecordParams","FETCH_BILL_RECORD_BY_FILTER","totalBillRecord","FETCH_BILL_RECORD_BY_ID","billRecordDetails","FETCH_BILL_RECORD_BY_BILL_ID","FETCH_BILL_RECORD_BY_TRACKING_NO","CLEAR_BILL_RECORD_ERRORS","deleteOrderByUploadBatchNo","DELETE_ORDER_BY_UPLOAD_BATCH_NO","CLEAR_DELETE_ORDER_BY_UPLOAD_BATCH_NO_ERROR","reports","FETCH_ORDERS_IN_CSV","ordersInCSV","lastUpdatedFetchOrdersDetails","FETCH_TRACKER_UPDATES_IN_CSV","trackerUpdatesInCSV","lastUpdatedFetchTrackerUpdates","CLEAR_REPORT_ERRORS","pricing","GET_ORDER_PRICING_PARAMS","orderPricingParams","GET_ORDER_PRICING","orderPricing","totalPricing","ADD_ORDER_PRICING","GET_ORDER_PRICING_DETAILS","orderPricingDetails","CLEAR_PRICING_ERRORS","weightReconciliation","ADD_ORDER_WEIGHT_RECONCILIATION","lastSubmitted","uploadAdhocCSV","UPLOAD_ADHOC_CSV","CLEAR_UPLOAD_ADHOC_CSV_ERRORS","networkPartner","partners","FETCH_NETWORK_PARTNER_LOADING","FETCH_NETWORK_PARTNER_SUCCESS","FETCH_NETWORK_PARTNER_FAIL","codManagement","FETCH_PARTNER_DUES_BY_FILTER","partnerDuesData","totalPartnerDuesData","FETCH_MERCHANT_DUES_BY_FILTER","merchantDuesData","totalMerchantDuesData","FETCH_PARTNER_REMITTANCE_BY_FILTER","partnerRemittanceData","totalPartnerRemittanceData","FETCH_MERCHANT_REMITTANCE_BY_FILTER","merchantRemittanceData","totalMerchantRemittanceData","UPLOAD_COD_REMITTANCE","FETCH_ALL_PARTNERS","CLEAR_COD_MANAGEMENT_ERRORS","CLEAR_PARTNER_DUES","CLEAR_MERCHANT_DUES","CLEAR_PARTNER_REMITTANCE","CLEAR_MERCHANT_REMITTANCE","requestConsigneeDocs","EMAIL_CONSIGNEE","FETCH_CONSIGNEE_DOC_TYPES","documentTypes","ADD_CORRECT_ORDER_ADDRESS","hms","FETCH_ALL_HUBS","mawb","create","mawbs","MAWB_FILE_RESET","allSelected","actionable","report","raw","m","isSelected","MAWB_FILE_LOADING","MAWB_FILE_FETCHED","MAWB_SELECT_ALL","MAWB_SELECT_TOGGLE","newArr","MAWB_FETCHED","MAWB_FETCH_LOADING","MAWB_FETCHED_ERROR","MAWB_CREATE_RESET","MAWB_CREATE_LOADING","MAWB_CREATED","MAWB_CREATE_ERROR","midmileAwb","awbs","MIDMILE_AWB_SELECT_ALL","MIDMILE_AWB_SELECT_TOGGLE","MIDMILE_AWB_FETCHED","MIDMILE_AWB_FETCH_LOADING","MIDMILE_AWB_FETCHED_ERROR","MIDMILE_AWB_FETCH_DETAILS_LOADING","awbDetails","MIDMILE_AWB_FETCH_DETAILS","MIDMILE_AWB_DOCUMENT_UPLOAD","document_urls","MIDMILE_AWB_DOCUMENT_DELETE","docs","doc","MIDMILE_AWB_UPDATE_TRACKING_STATUS","details","latest_status_airway_bill_level","remarks","hawbs","hawb","hawbUpdateData","hawbObj","hawb_id","MIDMILE_AWB_FETCH_ACTIVITY_LOGS","activityLogs","FETCH_EXCHANGE_RATES","exchangeRates","MIDMILE_AWB_FETCH_COST","costDetails","missedSlasLastMile","MISSED_SLAS_LOADING","MISSED_SLAS_ERROR","slas","MISSED_SLAS_SUCCESS","MISSED_SLAS_SELECT_ALL","MISSED_SLAS_SELECT_TOGGLE","MISSED_SLAS_VIEW_RESET_SELECTION","MISSED_SLAS_VIEW_FILE_SUCCESS","file","npDelayReason","NP_DELAY_REASON_CREATE_LOADING","NP_DELAY_REASON_CREATED","NP_DELAY_REASON_CREATE_ERROR","FETCH_ORDER_EXCEPTIONS","lspUsers","lspUsersLoading","lspUserError","LSP_USER_FETCHED","LSP_USER_FETCH_LOADING","LSP_USER_FETCHED_ERROR","zones","FETCH_ZONE_LIST_LOADING","zonesLoading","FETCH_ZONE_LIST","FETCH_ZONE_LIST_ERROR","FETCH_ZONE_LOCATIONS_LOADING","zoneLocationsLoading","zoneLocations","FETCH_ZONE_LOCATIONS","FETCH_ZONE_LOCATIONS_ERROR","networkPartnerAllocations","common","FETCH_NETWORk_PARTNERS","FETCH_SUBMISSION_METHOD","rootReducer","applyMiddleware","reduxThunk","createStore","createStoreWithMiddleware","reducers","__REDUX_DEVTOOLS_EXTENSION__","createHistory","fetchZoneList","fetchZoneLocations","getEscalationStatuses","order_activity_reason","fetchEscalationTypes","root","segment","segments","cursor","getObjectValueByPath","paths","fetchUserDataAndFeatures","userId","urls","profile","signinUser","username","password","user_id","setItem","all","signedInUserResponse","userFeatureResponse","signoutUser","clear","editSignedInUser","emailValue","nameValue","patch","changePassword","currentPassword","newPasswordValue","resetPassword","emailAddress","passwordSent","newPassword","resetToken","clearAuthErrors","SelectFields","DateFields","AWB_TYPES","FREIGHT_ARRANGE_BY","HAWB_TYPES","MAWB_STATUS","MAWB_STATUS_MAPPING","HAWB_STATUS","HAWB_STATUS_MAPPING","MAWB_LEVELS","SERVICE_LEVELS","ALLOW_TRACKING_NO_FOR_STATUS","FEE_NAMES","FEE_TYPES","INVOICE_CURRENCIES","COST_TYPES","COST_TYPES_MAPPING","DateTimeFormat","Date2","Time","DateTime","DateTime2","APIDate","COST_DETAILS_COLUMS","RESCHEDULED_STATUSES_ON","MAWB_CLIENTS","shopee_asia","shopee_china","fetchNetworkPartners","fetchSubmissionMethod","changeNavBarTitle","additionalText","NavbarTitle","handleDrawerToggle","useSelector","navTitle","navbarTitle","innerWidth","drawerWidth","setSideBar","navBarTitle","innerHeight","parentElement","getAttribute","nextSibling","display","selectedClasses","mawb_client","searchParams","mawbClientParam","endsWith","setState","mobileOpen","handleLogout","anchorEl","handleMenuClick","event","currentTarget","handleMenuClose","renderSideBar","aria-owns","aria-haspopup","round","Boolean","Link","hide","listen","classes","theme","drawer","appBar","aria-label","navIconHide","mdUp","variant","anchor","onOpen","paper","drawerPaper","ModalProps","smDown","implementation","content","toolbar","withRouter","compose","withStyles","flexGrow","zIndex","overflow","background","marginLeft","breakpoints","up","mixins","padding","spacing","unit","withTheme","createFormData","formData","FormData","append","documentTypeLabels","personal_identification_front","personal_identification_back","website_link","help","commercial_invoice","personal_use_form","validateUrl","responseUrl","ConfirmationModal","setVisible","isRequired","okText","okTextLoading","cancelText","onConfirm","setText","closable","required","DEAFAULT_OPTIONS","ConfirmContext","ConfirmContextProvider","setOptions","Fragment","confirmReason","statesAPI","additionalParams","getstates","useStates","states","cityAPI","getCities","useCities","cities","EscalateStep","retry","ResolveOrderExceptionAPI","getReolutionTypes","getExceptions","disposeException","rtvException","resolveException","validateResolutionType","resolution_type","requestBody","redeliver","redeliver_exceptions","recollectNewTN","recollection_exceptions","recollectExistingTN","cancelRTS","ChooseExceptions","ResolveOrderExceptionContext","saveData","orderDataExceptions","exceptionLoading","of","exceptionOptions","setFieldValue","getNextStep","resolutionTypes","resolutionTypeLoading","resolutionTypeOptions","resolutionExceptions","resolutionType","validationResponse","nextStep","SelectStates","otherProps","statesOptions","state_id","state_name","is_available","useMemo","SelectCities","cityOptions","city","city_id","city_name","ConsigneeDetailsForms","consigneeDetails","consignee_postal","consignee_state","consignee_city","payment_type","cod_amt_to_collect","initialErrors","initialTouched","enableReinitialize","getErrorsProps","touched","validateStatus","hasFeedback","getFieldProps","forceDisabled","autoComplete","Item","colon","non_field_errors","BulkCheckConsignee","ConsigneeDetails","pickupDetails","PickupDetailsForms","pickup_contact_name","pickup_address","pickup_postal","pickup_state","pickup_city","pickup_contact_number","pickup_contact_email","BulkCheckPickup","resolution","Redeliver","Dispose","chooseResolutionMethod","chooseExceptions","resolvedCount","resolved_orders","exceptionId","updatedExceptions","queryCache","getQueryData","setQueryData","invalidateQueryException","RESOLUTION_TYPES","ResolveOrderExceptionContextProvider","api","getParams","redeliverExceptions","recollectionExceptions","defaultParams","apiFunc","resolutionTypeApi","ResolveStep","AgentApplicationsAtom","atom","default","useRecoilState","setAgentApplications","refetchOnWindowFocus","textAlign","EscaltionStatusOptions","statusLabel","AgentApplicationDropdown","isMulti","getOptionLabel","getOptionValue","clearable","concat","maxMenuHeight","menuHeight","debounceInterval","createFilter","ignoreAccents","rowCount","MenuList","rows","containerStyle","maxWidth","rowHeight","rowRenderer","isScrolling","isVisible","noRowsRenderer","fontSize","FastSelect","containerRef","useRef","ref","components","styles","menuPortal","base","closeMenuOnScroll","contains","menuPortalTarget","module","exports","hasPermission","permissionNames","getState","matchAll","disabledProps","greyed","cloneElement","permissions","b"],"mappings":"ySAAaA,EAAuB,SAACC,GAAmC,IAAlBC,EAAiB,uDAAZ,QACnDC,EAAS,YAAI,IAAIC,IAAIH,EAAgBI,MAAM,aAAaC,QAAO,SAAAC,GAAI,QAAMA,KAC/E,MAAY,UAATL,EACMC,EAEG,WAATD,EACMC,EAAOK,YADhB,GAIWC,EAAmB,SAACC,GAC/B,IAAMC,EAAW,IAAIC,KAAKF,GAK1B,MAAO,CAFG,UAAMC,EAASE,UAAf,YAFK,CAAC,UAAW,WAAY,QAAS,QAAS,MAAO,OAAQ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,SAAS,OAGZW,OAAM,SAACC,GACNhB,EAAS,CACP9H,KAAMgsB,KACN9jB,SAAS,QAMZ,SAASo4B,IAEd,MAAO,CACLtgC,KAAMisB,O,iCC1OV,0sBAAO,IAAMsU,EAAe,CAAC,cAAe,oBAC/BC,EAAa,CACxB,YAAa,UACb,kBAAmB,gBACnB,kBAAmB,iBAERC,EAAY,CACvB,CACEriB,MAAO,4BACPnY,MAAO,QAET,CACEmY,MAAO,4BACPnY,MAAO,SAGEy6B,EAAqB,CAChC,CACEtiB,MAAO,QACPnY,MAAO,SAET,CACEmY,MAAO,SACPnY,MAAO,WAGE06B,EAAa,CACxB,CACEviB,MAAO,SACPnY,MAAO,UAET,CACEmY,MAAO,OACPnY,MAAO,QAET,CACEmY,MAAO,MACPnY,MAAO,OAET,CACEmY,MAAO,UACPnY,MAAO,WAET,CACEmY,MAAO,OACPnY,MAAO,QAET,CACEmY,MAAO,SACPnY,MAAO,UAET,CACEmY,MAAO,MACPnY,MAAO,OAET,CACEmY,MAAO,OACPnY,MAAO,QAET,CACEmY,MAAO,SACPnY,MAAO,UAET,CACEmY,MAAO,QACPnY,MAAO,SAET,CACEmY,MAAO,SACPnY,MAAO,WAGE26B,EAAc,CACzB,CACExiB,MAAO,qCACPnY,MAAO,sCAET,CACEmY,MAAO,0CACPnY,MAAO,2CAET,CACEmY,MAAO,2BACPnY,MAAO,2BAET,CACEmY,MAAO,8BACPnY,MAAO,2BAET,CACEmY,MAAO,+BACPnY,MAAO,wBAET,CACEmY,MAAO,kBACPnY,MAAO,mBAET,CACEmY,MAAO,iBACPnY,MAAO,kBAET,CACEmY,MAAO,qBACPnY,MAAO,sBAET,CACEmY,MAAO,mBACPnY,MAAO,oBAET,CACEmY,MAAO,8CACPnY,MAAO,8CAET,CACEmY,MAAO,4BACPnY,MAAO,2BAET,CACEmY,MAAO,6BACPnY,MAAO,4BAET,CACEmY,MAAO,4BACPnY,MAAO,6BAET,CACEmY,MAAO,0CACPnY,MAAO,2CAET,C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C,EAAM7B,SAAUooC,GAK9C,GAAIzjC,MAAMQ,QAAQ2G,GAAU,CAC1B,IAAMy8B,EAAcz8B,EAAQtL,KAAI,SAAAqF,GAAC,OAAI6uB,YAAqB7yB,EAAMsgB,YAAatc,MAG3EmiC,EADEG,GACeI,EAAYrnC,MAAK,SAAAsnC,GAAC,OAAU,IAANA,KAEvBD,EAAYrnC,MAAK,SAAAsnC,GAAC,OAAU,IAANA,UAGxCR,EAAgBtT,YAAqB7yB,EAAMsgB,YAAarW,GAG1D,OAAKk8B,EAMIhoC,EALDw6B,EAAa,GACbzuB,EACGrM,IAAM4oC,aAAazmC,EAAM7B,SAAUooC,QAD5C,M","file":"static/js/main.81a5fcce.chunk.js","sourcesContent":["export const cleanTrackingNumbers = (trackingNumbers, type='array') => {\n const result = [...new Set(trackingNumbers.split(/[ ,\\n]+/))].filter(item => !!item)\n if(type === 'array')\n return result\n\n if(type === 'string')\n return result.join()\n}\n\nexport const getDateTimeArray = (string) => {\n const dateTime = new Date(string)\n const months = [\"January\", \"February\", \"March\", \"April\", \"May\", \"June\", \"July\", \"August\", \"September\", \"October\", \"November\", \"December\"]\n // const date = `${months[dateTime.getMonth()]} ${dateTime.getDate()}, ${dateTime.getFullYear()}`\n const date = `${dateTime.getDate()} ${months[dateTime.getMonth()]} ${dateTime.getFullYear()}`\n const time = dateTime.toLocaleString('en-US', { hour: 'numeric', minute: 'numeric', hour12: true }).toLowerCase()\n return [date, time]\n}\n\nexport const cleanFieldName = field => {\n let cleanedKey = field;\n if (field.includes(\"(\")) {\n cleanedKey = field.substring(0, field.indexOf(\"(\")).trim();\n }\n if (/[\\s]+/g.test(field)) {\n cleanedKey = field.substring(0, field.indexOf(\" \")).trim();\n }\n return cleanedKey;\n};\n\nexport function checkIsAdmin(user) {\n if (process.env.REACT_APP_IS_PRODUCTION) {\n return user.id === 3 && user.email === 'admin@janio.asia'\n } else if (process.env.REACT_APP_IS_STAGING || process.env.REACT_APP_IS_LOCAL) {\n return user.id === 421 && user.email === 'admin@email.com'\n }\n}\n\nexport const titleize = (str) => {\n if (typeof str !== 'string') {\n\t\tthrow new TypeError('Expected a string');\n\t}\n\n\treturn str.toLowerCase().replace(/(?:^|\\s|-)\\S/g, x => x.toUpperCase());\n}\n\nexport const capitalizeUnderscore = (string) => {\n if (!string) {\n return \"\"\n }\n const removeUndercore = string.split('_').join(' ')\n return titleize(removeUndercore)\n}\n\nexport const debounceFunc = (func, wait) => {\n let timeout;\n return function(...args) {\n const context = this;\n if (timeout) clearTimeout(timeout);\n timeout = setTimeout(() => {\n timeout = null;\n func.apply(context, args);\n }, wait);\n };\n}","import React, { useContext } from \"react\"\nimport { Button } from \"antd\"\n// import { useFormik } from \"formik\"\n// import { useQuery } from \"react-query\"\n// import * as yup from \"yup\"\n\n// import { ResolveOrderExceptionAPI } from \"../api\"\nimport { OrderEscalationContext } from \"../OrderEscalation.context\"\nimport { ESCALATION_TYPES, steps } from \"../constants\"\n\n// const { Option } = Select\n\nconst ChooseResolutionMethod = () => {\n const {\n handleCloseModal,\n setCurrentStep,\n selectedEscalationType\n } = useContext(OrderEscalationContext)\n\n const handleNext = () => {\n setCurrentStep(steps.leaveNote)\n }\n\n let title, body\n if (selectedEscalationType === ESCALATION_TYPES.LASTMILE) {\n title = 'Escalate order to merchant for resolution of last mile exception'\n body = `When this order is escalated, an email will be automatically sent to the merchant at the end of the day asking them to provide us with the next instructions for a consolidated list of tracking numbers.\n If these orders are still unresolved after 14 calendar days, a follow up email will be automatically sent.\n If these orders are still unresolved after another 7 calendar days, the system will automatically trigger RTV.\n `\n } else if (selectedEscalationType === ESCALATION_TYPES.RTS_FIRSTMILE) {\n title = 'Escalate order to merchant for resolution to RTS First Mile Exception'\n body = `When this order is escalated, an email will be automatically sent to the merchant at the end of the day asking them to provide us with the next instructions for a consolidated list of tracking numbers. If these orders are still unresolved after 14 calendar days, a follow up email will be automatically sent. If these orders are still unresolved after another 7 calendar days, the system will automatically cancel the order.`\n }\n\n return (\n
\n
{title}
\n
\n

{body}

\n

Would you like to continue?

\n
\n
\n
\n
\n \n \n
\n
\n
\n )\n}\n\nexport default ChooseResolutionMethod","import React, { useContext } from \"react\"\nimport { Input, Button } from \"antd\"\nimport { OrderEscalationContext } from \"../OrderEscalation.context\"\nimport { useFormik } from \"formik\"\nimport * as yup from \"yup\"\nimport { steps } from \"../constants\"\n\nconst LeaveNote = () => {\n const {\n handleCloseModal,\n submitData,\n setCurrentStep,\n } = useContext(OrderEscalationContext)\n\n const initialValues = {\n reason: undefined\n }\n const validationSchema = yup.object().shape({\n reason: yup.string().nullable()\n })\n const onSubmit = async (values, { setSubmitting, setErrors }) => {\n setSubmitting(true)\n const submitResponse = await submitData(values.reason)\n setSubmitting(false)\n\n if (!submitResponse.isError) {\n setCurrentStep(steps.success)\n }\n }\n const formik = useFormik({\n initialValues,\n validationSchema,\n onSubmit\n })\n \n return (\n
\n
Leave a note
\n\n
\n
\n \n {\n formik.errors.reason &&\n {formik.errors.reason}\n }\n
\n\n
\n
\n
\n \n \n
\n
\n
\n
\n )\n}\n\nexport default LeaveNote","import React, { useContext } from \"react\"\nimport { OrderEscalationContext } from \"../OrderEscalation.context\"\nimport { Button } from \"antd\"\n\nconst EscalationSuccess = () => {\n const {\n handleCloseModal,\n submitResponse,\n handleEscalateSuccess\n } = useContext(OrderEscalationContext)\n\n const handleOK = () => {\n handleCloseModal()\n if (!!submitResponse?.escalated_orders && handleEscalateSuccess) {\n setTimeout(() => {\n handleEscalateSuccess()\n }, 550)\n }\n }\n const numberOrders = (submitResponse?.escalated_orders || 0) === 1\n ? \"1 order\"\n : `${submitResponse?.escalated_orders} orders`\n\n return (\n
\n
Escalation to merchant successful
\n
\n

The escalation to merhcant for {numberOrders} has been made successfully.

\n
\n\n
\n
\n
\n \n
\n
\n
\n )\n}\n\nexport default EscalationSuccess\n","import React, { useContext, useState } from \"react\"\nimport { Button, Radio } from \"antd\"\n// import { useFormik } from \"formik\"\n// import { useQuery } from \"react-query\"\n// import * as yup from \"yup\"\n\n// import { ResolveOrderExceptionAPI } from \"../api\"\nimport { OrderEscalationContext } from \"../OrderEscalation.context\"\nimport { ESCALATION_TYPES, steps } from \"../constants\"\n\n// const { Option } = Select\n\nconst ChooseEscalationMethod = () => {\n const {\n handleCloseModal,\n setCurrentStep,\n setSelectedEscalationType\n } = useContext(OrderEscalationContext)\n const [escalationType, setEscalationType] = useState()\n\n const handleNext = () => {\n setSelectedEscalationType(escalationType)\n setCurrentStep(steps.confirmation)\n }\n\n return (\n
\n
Which exceptions should be escalated to the merchant
\n
\n

\n The selected orders have multiple exception types. Please select the exception type that you are escalating to th merchant.\n

\n
\n setEscalationType(e.target.value)} value={escalationType}>\n \n RTS First mile collection failures\n \n \n Forward order Last mile delivery failures\n \n \n
\n
\n
\n
\n
\n \n \n
\n
\n
\n )\n}\n\nexport default ChooseEscalationMethod","import React, { useContext } from \"react\"\nimport { Button } from \"antd\"\n// import { useFormik } from \"formik\"\n// import { useQuery } from \"react-query\"\n// import * as yup from \"yup\"\n\n// import { ResolveOrderExceptionAPI } from \"../api\"\nimport { OrderEscalationContext } from \"../OrderEscalation.context\"\n\n// const { Option } = Select\n\nconst UnableEscalate = () => {\n const {\n handleCloseModal,\n } = useContext(OrderEscalationContext)\n\n return (\n
\n
Unable to escalate the orders
\n
\n

\n The selected orders don't have exception types.\n

\n
\n
\n
\n
\n \n
\n
\n
\n )\n}\n\nexport default UnableEscalate","import Confirmation from \"./components/Confirmation\"\nimport LeaveNote from \"./components/LeaveNote\"\nimport Success from \"./components/EscalationSuccess\"\nimport ChooseEscalationMethod from \"./components/ChooseEscalationMethod\"\nimport UnableEscalate from \"./components/UnableEscalate\"\n\nexport const steps = {\n confirmation: \"confirmation\",\n chooseEscalationMethod: \"chooseEscalationMethod\",\n leaveNote: \"leaveNote\",\n success: \"success\",\n unableEscalate: 'unableEscalate'\n}\n\nexport const componentStep = {\n confirmation: Confirmation,\n chooseEscalationMethod: ChooseEscalationMethod,\n leaveNote: LeaveNote,\n success: Success,\n unableEscalate: UnableEscalate\n}\n\nexport const escalationStatuses = {\n LASTMILE_FIRST_MERCHANT_EMAIL_SENT: {\n value: \"LASTMILE_FIRST_MERCHANT_EMAIL_SENT\",\n title: \"1/2 emails sent\",\n bgColor: \"#EABC43\"\n },\n LASTMILE_SECOND_MERCHANT_EMAIL_SENT: {\n value: \"LASTMILE_SECOND_MERCHANT_EMAIL_SENT\",\n title: \"2/2 emails sent\",\n bgColor: \"#EABC43\"\n },\n ESCALATION_CREATED: {\n value: \"ESCALATION_CREATED\",\n title: \"Triggered\",\n bgColor: \"#E5E5E5\"\n },\n LASTMILE_RTV_COMPLETED: {\n value: \"LASTMILE_RTV_COMPLETED\",\n title: \"Auto-RTV'ed\",\n bgColor: \"#7BD435\"\n }\n}\n\nexport const ESCALATION_TYPES = {\n LASTMILE: 'LASTMILE',\n RTS_FIRSTMILE: 'RTS_FIRSTMILE'\n}","import axios from \"axios\";\n\nexport const FETCH_NETWORk_PARTNER_SERVICES_LOADING = \"fetch_networK_partner_services_loading\";\nexport const FETCH_NETWORk_PARTNER_SERVICES = \"fetch_networK_partner_services\";\nexport const FETCH_NETWORk_PARTNER_SERVICES_ERROR = \"fetch_networK_partner_services_error\";\nexport const FETCH_NETWORk_PARTNER_POSTAL_CODES_LOADING = \"fetch_networK_partner_postal_codes_loading\";\nexport const FETCH_NETWORk_PARTNER_POSTAL_CODES = \"fetch_networK_partner_postal_codes\";\nexport const FETCH_NETWORk_PARTNER_POSTAL_CODES_ERROR = \"fetch_networK_partner_postal_codes_error\";\nexport const ADD_NEW_POSTAL_CODE_LOADING = \"add_new_postal_code_loading\";\nexport const ADD_NEW_POSTAL_CODE = \"add_new_postal_code\";\nexport const ADD_NEW_POSTAL_CODE_ERROR = \"add_new_postal_code_error\";\nexport const NETWORK_PARTNER_REASSIGN_SUCCESS = \"network_partner_reassign_success\";\nexport const NETWORK_PARTNER_REASSIGN_ERROR = \"network_partner_reassign_error\";\nexport const RESET_NETWORK_PARTNER_REASSIGN_STATE = \"reset_network_partner_reassign_state\";\nexport const RESET_ADD_POSTAL_CODE_STATE = \"reset_add_postal_code_state\";\n\n// *Include when services are introduced in the network partner allocation\n// export function fetchNetworkPartnerServices(params) {\n// return async function (dispatch) {\n// try {\n// dispatch({ type: FETCH_NETWORk_PARTNER_SERVICES_LOADING });\n// // todo: remove setTimeout\n// setTimeout(2000);\n// // todo: add api call\n// const res = {\n// data: [\n// {\n// id: 123,\n// pickup_country: \"Singapore\",\n// destination_country: \"Indonesia\",\n// service: \"First Mile\",\n// },\n// ],\n// };\n// dispatch({ type: FETCH_NETWORk_PARTNER_SERVICES, payload: res.data });\n// } catch (err) {\n// dispatch({ type: FETCH_NETWORk_PARTNER_SERVICES_ERROR });\n// console.log(err);\n// }\n// };\n// }\n\nexport function fetchNetworkPartnerPostalCodes(params) {\n return async function (dispatch) {\n try {\n dispatch({\n type: FETCH_NETWORk_PARTNER_POSTAL_CODES_LOADING,\n });\n const res = await axios.get(\"/api/partner/postal-prefix-allocation-mapping-data/\", { params });\n dispatch({ type: FETCH_NETWORk_PARTNER_POSTAL_CODES, payload: res.data });\n } catch (err) {\n dispatch({ type: FETCH_NETWORk_PARTNER_POSTAL_CODES_ERROR });\n console.log(err);\n }\n };\n}\n\nexport function submitNetworkPartnerAssignAction(payload, postalCodePayload) {\n return async function (dispatch) {\n try {\n await axios.post(\"/api/partner/postal-prefix-allocation-mapping/update_partner/\", payload);\n dispatch({\n type: NETWORK_PARTNER_REASSIGN_SUCCESS,\n });\n dispatch(fetchNetworkPartnerPostalCodes(postalCodePayload));\n } catch (err) {\n dispatch({\n type: NETWORK_PARTNER_REASSIGN_ERROR,\n });\n console.log(err);\n }\n };\n}\n\nexport function addNewPostalCode(payload) {\n return async function (dispatch) {\n try {\n dispatch({\n type: ADD_NEW_POSTAL_CODE_LOADING,\n });\n await axios.post(\"/api/partner/postal-prefix-allocation-mapping/\", payload);\n dispatch({\n type: ADD_NEW_POSTAL_CODE,\n payload: \"Error\",\n });\n } catch (err) {\n console.log(err.response.data);\n dispatch({\n type: ADD_NEW_POSTAL_CODE_ERROR,\n payload: err.response.data.message ? err.response.data.message : \"record already exists with this data combination\",\n });\n }\n };\n}\n\nexport const addNewPostalCodeViaCsv = (payload) => async (dispatch) => {\n dispatch({ type: ADD_NEW_POSTAL_CODE_LOADING });\n\n const failedData = [];\n for (const p of payload) {\n await axios.post('/api/partner/postal-prefix-allocation-mapping/', p).catch((error) => {\n failedData.push({ ...JSON.parse(error.response.config.data), error_message: error.response.data.message });\n });\n }\n\n if (failedData.length) {\n const stringifyError = JSON.stringify(failedData, null, '\\t');\n const formattedError = stringifyError.replace(/[[\\]{}\",\\t\\\\]/g, '').trim();\n dispatch({\n type: ADD_NEW_POSTAL_CODE_ERROR,\n payload: formattedError,\n });\n } else {\n dispatch({\n type: ADD_NEW_POSTAL_CODE,\n payload: 'success',\n });\n }\n}\n\nexport function resetNetworkPartnerReassignState() {\n return function (dispatch) {\n dispatch({\n type: RESET_NETWORK_PARTNER_REASSIGN_STATE,\n });\n };\n}\n\nexport function resetAddPostalCodeState() {\n return function (dispatch) {\n dispatch({\n type: RESET_ADD_POSTAL_CODE_STATE,\n });\n };\n}\n","import React, { useState, useCallback } from \"react\"\nimport { OrderEscalationAPI } from \"./api\"\nimport { steps } from \"./constants\"\n\nexport const OrderEscalationContext = React.createContext()\nconst OrderEscalationProvider = ({\n orderData, handleCloseModal, singleException,\n handleEscalateSuccess, escalationTypes,\n children\n}) => {\n const [collectedData, setCollectedData] = useState(\n singleException\n ? {escalation: [singleException.exception]}\n : {}\n )\n const [submitResponse, setSubmitResponse] = useState()\n const orderIds = useCallback(orderData.map(order => order.order_id), [orderData])\n\n const getOrderEscalationTypes = useCallback(() => {\n let resultTypes = []\n if (orderData.length === 1) { // single order\n const order = orderData[0]\n Object.entries(escalationTypes).forEach(([type, exceptions]) => {\n if (order.order_exceptions.some(orderException => exceptions.includes(orderException))) {\n resultTypes.push(type)\n }\n })\n } else { // multiple orders\n Object.entries(escalationTypes).forEach(([type, exceptions]) => {\n orderData.forEach(({ order_exceptions }) => {\n if (order_exceptions.some(orderException => exceptions.includes(orderException))) {\n resultTypes.push(type)\n }\n })\n })\n resultTypes = [...new Set(resultTypes)]\n }\n return resultTypes\n }, [orderData])\n\n let escalationType\n const getInitialStep = () => {\n const resultTypes = getOrderEscalationTypes()\n if (!resultTypes.length) {\n return steps.unableEscalate\n }\n\n if (orderData.length === 1) {\n if (resultTypes.length > 1) {\n return steps.chooseEscalationMethod\n } else {\n escalationType = resultTypes[0]\n return steps.confirmation\n }\n } else { // multiple selected orders\n if (resultTypes.length > 1) {\n return steps.unableEscalate\n }\n escalationType = resultTypes[0]\n }\n return steps.confirmation\n }\n\n const initialStep = getInitialStep()\n const [currentStep, setCurrentStep] = useState(initialStep)\n\n const [selectedEscalationType, setSelectedEscalationType] = useState(escalationType)\n\n const submitData = async (reason=undefined) => {\n const response = await OrderEscalationAPI.escalateOrders({\n order_ids: orderIds,\n reason,\n escalation_type: selectedEscalationType\n })\n setSubmitResponse(response)\n return response\n }\n\n const value = {\n orderIds,\n orderData, handleCloseModal,\n currentStep, setCurrentStep,\n collectedData, setCollectedData,\n submitData,\n submitResponse,\n singleException,\n handleEscalateSuccess,\n selectedEscalationType, setSelectedEscalationType\n }\n return (\n \n {children}\n \n )\n}\n\nexport default OrderEscalationProvider\n","import React from \"react\";\nimport { connect } from \"react-redux\";\nimport Button from \"@material-ui/core/Button\";\nimport Dialog from \"@material-ui/core/Dialog\";\nimport { useHistory } from \"react-router-dom\";\nimport DialogActions from \"@material-ui/core/DialogActions\";\nimport DialogContent from \"@material-ui/core/DialogContent\";\nimport DialogContentText from \"@material-ui/core/DialogContentText\";\nimport DialogTitle from \"@material-ui/core/DialogTitle\";\nimport Slide from \"@material-ui/core/Slide\";\n\nimport { CLOSE_ERROR_POPUP } from \"../../actions/types\";\n\nfunction Transition(props) {\n return ;\n}\n\nfunction ErrorPopup(props) {\n console.log(props);\n const history = useHistory();\n\n const handleOkButton = (e) => {\n e.preventDefault();\n props.togglePopup();\n history.goBack();\n };\n\n return (\n
\n \n {\"Hmm, we have encountered an error.\"}\n \n Redirecting you back to the previous page\n \n \n \n \n \n
\n );\n}\n\nconst mapStateToProps = (state) => {\n return {\n isOpen: state.errorPopup.open,\n };\n};\n\nconst mapDispatchToProps = (dispatch) => {\n return {\n togglePopup: () => {\n dispatch({ type: CLOSE_ERROR_POPUP });\n },\n };\n};\n\nexport default connect(mapStateToProps, mapDispatchToProps)(ErrorPopup);\n","import React, { Component } from 'react';\nimport ErrorPopup from './common/ErrorPopup';\nimport ConfirmContextProvider from './agent/confirmAction/confirm.context';\n\nclass App extends Component {\n \n\trender() {\n\t\treturn (\n\t\t\t\n\t\t\t\t
\n\t\t\t\t\t{this.props.children}\n\t\t\t\t\t\n\t\t\t\t
\n\t\t\t
\n\t\t);\n\t}\n}\n\nexport default App\n\n\n","import React, { Component } from \"react\";\nimport HttpsRedirect from 'react-https-redirect';\nimport {connect} from \"react-redux\";\n\nclass DoRedirect extends Component {\n render() {\n if (process.env.REACT_APP_IS_LOCAL || process.env.REACT_APP_IS_STAGING || process.env.REACT_APP_IS_INTEGRATION || process.env.REACT_APP_IS_PRODUCTION) {\n return(\n
{this.props.children}
\n );\n } else {\n return(\n {this.props.children}\n );\n }\n }\n}\n\nfunction mapStateToProps() {\n return ({});\n}\n\nexport default connect(mapStateToProps, {})(DoRedirect);\n","export const DEFAULT_PAGE_SIZE = 50;\nexport const PAGE_SIZE_OPTIONS = [\"30\", \"50\", \"100\", \"500\"];\nexport const DEFAULT_SELECTED_COLUMNS = [\n \"tracking_no\",\n \"external_tracking_nos\",\n \"public_status\",\n \"private_status\",\n \"agent_application_name\",\n \"created_on\",\n \"scheduled_pickup_date\",\n \"forward_return\",\n \"partner_submission\",\n];\n\nexport const CANCELABLE_ORDER_STATUS = \"ORDER_INFO_RECEIVED\";\n\nexport const defaultSelectedColumns = [\n \"tracking_no\",\n \"external_tracking_nos\",\n \"agent_application_name\",\n \"tracker_status_code\",\n \"private_tracker_status_code\",\n \"pickup_date\",\n \"forward_order_id\",\n //'partner_submission_status',\n \"created_on\",\n];\nexport const columnsOrdering = [\n \"tracking_no\",\n \"shipper_order_id\",\n \"escalation_status\",\n \"external_tracking_nos\",\n \"agent_application_name\",\n \"tracker_status_code\",\n \"private_tracker_status_code\",\n \"order_type\",\n \"pickup_date\",\n \"forward_order_id\",\n \"upload_batch_no\",\n \"consignee_name\",\n \"consignee_email\",\n \"pickup_country\",\n \"consignee_country\",\n \"consignee_address\",\n \"consignee_number\",\n \"shipping_batch_nos\",\n // \"customs_documents_status\",\n // 'partner_submission_status',\n \"order_exceptions\",\n \"created_on\",\n // \"identification_document_name\",\n // \"consignee_identifcation_number\",\n];\n\nexport const MPS_ORDER_TYPES = [\"MPS\", \"PACKAGE\"];\n","import moment from 'moment'\nimport { cleanTrackingNumbers } from '../../../utils'\nimport { DEFAULT_PAGE_SIZE } from './constants'\n\n// field name: default value\nconst fieldsValueToRemove = {\n page: 1,\n page_size: DEFAULT_PAGE_SIZE,\n date_to: moment().endOf('day').format('YYYY-MM-DD'),\n order_type: \"both\",\n is_processing: \"both\",\n}\n\nconst transformValueToQuery = {\n agent_application_id: values => {\n return values.join(',')\n }\n}\n\nexport function filtersToQuery(filters) {\n const f = {}\n for (let [k, v] of Object.entries(filters)) {\n if (!!v) {\n if (Object.keys(fieldsValueToRemove).includes(k) && v === fieldsValueToRemove[k] ) {\n delete f[k]\n } if (transformValueToQuery[k]) {\n f[k] = transformValueToQuery[k](v)\n } else {\n f[k] = v\n }\n }\n }\n return f\n}\n\nconst parseQueryFunctions = {\n date_from: value => value\n ? moment(value).startOf('day').format('YYYY-MM-DD')\n : null,\n\n date_to: value => value\n ? moment(value).endOf('day').format('YYYY-MM-DD')\n : moment().endOf('day').format('YYYY-MM-DD'),\n \n pickup_date_from: value => value\n ? moment(value).startOf('day').format('YYYY-MM-DD')\n : null,\n \n pickup_date_to: value => value\n ? moment(value).endOf('day').format('YYYY-MM-DD')\n : null,\n\n order_exceptions: value => {\n if (!!value) {\n if (value instanceof Array ) {\n return value\n }\n return [value]\n }\n },\n\n escalation_status: value => {\n if (!!value) {\n if (value instanceof Array ) {\n return value\n }\n return [value]\n }\n },\n service_id: value => value || \"\",\n agent_application_id: value => value || \"\",\n public_status: value => value || \"\",\n private_status: v => v || \"\",\n page: v => v || 1,\n page_size: v => v || DEFAULT_PAGE_SIZE,\n order_type: v => v || \"both\",\n is_processing: v => v || \"both\",\n}\nexport function queryToFilters(query) {\n const f = {}\n for (let [k, v] of Object.entries(query)) {\n if (parseQueryFunctions.hasOwnProperty(k)) {\n f[k] = parseQueryFunctions[k](v)\n } else if (!!v) {\n f[k] = v\n }\n }\n return f\n}\n\n// const dateTimeFormat = 'YYYY-MM-DDThh:mmZ'\nconst dateTimeFormat = 'YYYY-MM-DD'\nconst requestParamFunctions = {\n date_to: v => moment(v).endOf('day').format(dateTimeFormat),\n date_from: v => moment(v).startOf('day').format(dateTimeFormat),\n pickup_date_from: v => moment(v).startOf('day').format(dateTimeFormat),\n pickup_date_to: v => moment(v).endOf('day').format(dateTimeFormat),\n agent_application_id: v => Array.isArray(v) ? v.join(',') : v\n}\nexport function filtersToParams(filters) {\n const q = {}\n const fieldsToClean = [\n \"tracking_no\", \"external_tracking_no\", \"shipper_order_id\",\n \"upload_batch_no\", \"shipping_batch_no\", \"mawb_no\"\n ]\n const arrayFields = [\n 'order_exceptions', 'escalation_status'\n ]\n for (let [k, v] of Object.entries(filters)) {\n if (!!v) {\n if (Object.keys(fieldsValueToRemove).includes(k) && v === fieldsValueToRemove[k] ) {\n delete q[k]\n } else if (k === \"public_status\") {\n const [status, version] = v.split('-')\n if (version === \"v2\") {\n q['public_status_v2_shipper'] = status\n } else {\n q[k] = status\n }\n } else if (fieldsToClean.includes(k)) {\n const cleanedValue = cleanTrackingNumbers(v).join(',')\n q[k] = cleanedValue\n } else if (arrayFields.includes(k)) {\n q[k] = v.join(',')\n } else {\n q[k] = v\n }\n\n if (requestParamFunctions[k] && q[k]) {\n const f = requestParamFunctions[k]\n q[k] = f(v)\n }\n }\n }\n \n if (!!q.hub_id && !!q.hub_group_id) {\n q['hms_hub_group_id'] = `${q.hub_id}#${q.hub_group_id}`\n }\n\n if (q.public_status_v2_shipper) {\n delete q.public_status\n }\n\n if (q.agent_application_id && q.agent_application_id_filter === 'filter_away') {\n q['exclude_agent_application_id'] = q.agent_application_id\n delete q.agent_application_id\n }\n\n return q\n}\n\nexport function getTrackerUrl(trackingNo) {\n return process.env.REACT_APP_IS_PRODUCTION\n ? `https://tracker.janio.asia/${trackingNo}`\n : `http://tracker.staging.janio.asia/${trackingNo}`\n}\n","import { useState } from \"react\";\nimport { filtersToParams } from \"../utils\";\nimport axios from \"axios\";\nimport { useMutation } from \"react-query\";\nimport queryString from \"query-string\";\n\nconst URL = \"/api/order/order-ops/\";\n\nconst useOrders = (filters = {}) => {\n const paramsObj = { ...filters };\n if (\n paramsObj.agent_application_id &&\n paramsObj.agent_application_id.length > 0 &&\n Array.isArray(paramsObj.agent_application_id)\n ) {\n paramsObj.agent_application_id = paramsObj.agent_application_id.map(\n (app) => app.agent_application_id\n );\n }\n const params = filtersToParams(paramsObj);\n const token = localStorage.getItem(\"token\");\n const [data, setData] = useState({});\n // const [loading, setLoading] = useState(false);\n\n const [mutate, { isLoading }] = useMutation(\n () => {\n const _url = `${window.location.pathname}?${queryString.stringify(\n filters\n )}`;\n\n const headers = {\n Authorization: `Token ${token}`,\n }\n if (_url.length >= 2000) {\n return axios.post(URL, {\n ...filters,\n }, {\n headers\n })\n }\n return axios.get(URL, {\n headers,\n params,\n });\n },\n {\n onSuccess: (response) => {\n setData(response.data);\n },\n onError: (err) => {\n console.log(err);\n },\n }\n );\n\n // const fetchOrders = async () => {\n // setLoading(true);\n // try {\n // const r = await axios.get(URL, {\n // headers: {\n // Authorization: `Token ${token}`,\n // },\n // params,\n // });\n // setData(r.data);\n // setLoading(false);\n // } catch (err) {\n // console.log(err);\n // }\n // setLoading(false);\n // };\n\n return [mutate, data, isLoading];\n};\n\nexport default useOrders;\n","import moment from \"moment\";\nimport queryString from \"query-string\";\nimport React, { createContext, useEffect, useState } from \"react\";\nimport { defaultSelectedColumns } from \"./constants\";\nimport useOrders from \"./hooks/useOrders\";\nimport { queryToFilters } from \"./utils\";\nimport useAgentApplications from \"../../../hooks/useAgentApplications\";\n\nexport const ViewOrdersContext = createContext();\nexport function ViewOrdersContextProvider({ children }) {\n const queryParams = queryString.parse(window.location.search);\n const initialFilters = queryToFilters(queryParams);\n const [filters, setFilters] = useState({\n ...initialFilters,\n date_from: moment().subtract(1, \"Y\").format(\"YYYY-MM-DD\"),\n });\n const [agentApplications, agentApplicationsLoading] = useAgentApplications();\n const [orderToCancel, setOrderToCancel] = useState();\n const [ordersToResolve, setOrdersToResolve] = useState([]);\n const [ordersToEscalate, setOrdersToEscalate] = useState([]);\n const [showErrorMessage, setShowErrorMessage] = useState(false);\n const [selectedOrders, setSelectedOrders] = useState([]);\n\n const [mutate, ordersResponse, ordersFetching] = useOrders(filters);\n\n const onSearchHandler = () => {\n mutate();\n };\n\n const resetPageSearch = () => {\n const filterObj = { ...filters };\n delete filterObj.page;\n setFilters(filterObj);\n\n if (\n filterObj.agent_application_id?.length ||\n filterObj.service_id ||\n filterObj.tracking_no ||\n filterObj.external_tracking_no ||\n filterObj.shipper_order_id ||\n filterObj.upload_batch_no ||\n filterObj.shipping_batch_no ||\n filterObj.mawb_no\n ) {\n setShowErrorMessage(false);\n mutate();\n } else {\n setShowErrorMessage(true);\n }\n };\n\n const handleChangeFilter = (f, v) => {\n if (!!v) {\n setFilters({\n ...filters,\n [f]: v,\n });\n } else {\n const { [f]: fieldname, ...rest } = filters;\n setFilters({ ...rest });\n }\n };\n\n const handleChangeFiltersValues = (values) => {\n const [key] = Object.entries(values)[0];\n if (!!key) {\n setFilters({ ...filters, ...values });\n } else {\n const { [key]: f, ...rest } = filters;\n setFilters({ ...rest });\n }\n };\n const removeFilterField = (fieldName) => {\n const { [fieldName]: f, ...rest } = filters;\n setFilters({ ...rest });\n };\n\n const [selectedColumns, setSelectedColumns] = useState(\n defaultSelectedColumns\n );\n const selectColumn = (columnName) => {\n setSelectedColumns([...selectedColumns, columnName]);\n };\n const unselectColumn = (columnName) => {\n setSelectedColumns(selectedColumns.filter((c) => c !== columnName));\n };\n\n useEffect(\n function syncBrowserUrl() {\n const _url = `${window.location.pathname}?${queryString.stringify(\n filters\n )}`;\n if (_url.length >= 2000) {\n return;\n }\n\n const parsedFilter = {\n ...filters,\n };\n if (\n parsedFilter.agent_application_id &&\n Array.isArray(parsedFilter.agent_application_id) &&\n parsedFilter.agent_application_id.length > 0\n ) {\n parsedFilter.agent_application_id =\n parsedFilter.agent_application_id.map(\n (app) => app.agent_application_id\n );\n }\n\n const stringified = queryString.stringify(parsedFilter);\n const url = `${window.location.pathname}?${stringified}`;\n window.history.replaceState({}, \"\", url);\n },\n [filters]\n );\n\n useEffect(() => {\n if (\n filters.agent_application_id &&\n agentApplications &&\n agentApplications.length > 0\n ) {\n if (Array.isArray(filters.agent_application_id)) {\n filters.agent_application_id = agentApplications.filter((app) =>\n filters.agent_application_id.includes(\n app.agent_application_id.toString()\n )\n );\n } else {\n filters.agent_application_id = agentApplications.filter(\n (app) => filters.agent_application_id === app.agent_application_id\n );\n }\n setFilters({\n ...filters,\n date_from: moment().subtract(1, \"Y\").format(\"YYYY-MM-DD\"),\n });\n }\n }, [agentApplications]);\n\n const value = {\n filters,\n handleChangeFilter,\n handleChangeFiltersValues,\n orderToCancel,\n setOrderToCancel,\n ordersToResolve,\n setOrdersToResolve,\n ordersToEscalate,\n setOrdersToEscalate,\n selectedOrders,\n setSelectedOrders,\n selectedColumns,\n selectColumn,\n unselectColumn,\n removeFilterField,\n onSearchHandler,\n ordersResponse,\n ordersFetching,\n agentApplications,\n agentApplicationsLoading,\n resetPageSearch,\n showErrorMessage,\n };\n return (\n \n {children}\n \n );\n}\n","import React from 'react'\n\nfunction ReturnIcon() {\n return (\n \"return\"\n )\n}\n\nexport default ReturnIcon\n","import React, { useContext } from 'react'\nimport { getTrackerUrl } from '../utils'\nimport classNames from 'classnames'\nimport FeatureRequired from '../../../common/auth/FeatureRequired'\nimport { CANCELABLE_ORDER_STATUS } from '../constants'\nimport { ViewOrdersContext } from '../ViewOrders.context'\n\nconst View = ({ order }) => {\n const url = `/agent/view-orders/${order.order_id}`\n return (\n View\n )\n}\n\nconst Track = ({ order }) => {\n const url = getTrackerUrl(order.tracking_no)\n return (\n Track\n )\n}\n\nconst Print = ({ order }) => {\n const url = order.order_label_url\n return (\n Print\n )\n}\n\nconst Cancel = ({ order }) => {\n const { setOrderToCancel } = useContext(ViewOrdersContext)\n const { tracker_status_code } = order\n\n const cancelable = tracker_status_code === CANCELABLE_ORDER_STATUS\n const handleClick = () => {\n if (cancelable) {\n setOrderToCancel(order)\n }\n }\n\n return (\n \n \n \n )\n}\n\nconst Resolve = ({ order }) => {\n const { setOrdersToResolve } = useContext(ViewOrdersContext)\n const isResolveBtnEnabled = !!order.order_exceptions.length\n return (\n \n )\n}\n\nconst Escalate = ({ order }) => {\n const { setOrdersToEscalate } = useContext(ViewOrdersContext)\n const isEscalateBtnEnabled = order.is_escalatable\n return (\n \n )\n}\n\nconst SingleOrderAction = React.memo(({ order }) => {\n return (\n
\n {order.is_processing\n ? (\n <>\n \n \n Processing, please wait and refresh.\n \n )\n : (\n <>\n \n \n \n \n \n \n \n )\n }\n
\n )\n})\n\nexport default SingleOrderAction\n","import React from 'react'\n\nconst MPSIcon = ({ orderType }) => {\n const src = orderType === 'MPS'\n ? 'https://janio-b2c-documents.s3.ap-southeast-1.amazonaws.com/mps_parent.png'\n : 'https://janio-b2c-documents.s3.ap-southeast-1.amazonaws.com/mps_child.png'\n\n return (\n {orderType}\n )\n}\n\nexport default MPSIcon\n","import React, { useContext } from \"react\";\nimport moment from \"moment\";\nimport ReturnIcon from \"./ReturnIcon\";\nimport SingleOrderAction from \"./SingleOrderAction\";\nimport { columnsOrdering, MPS_ORDER_TYPES } from \"../constants\";\nimport { Checkbox } from \"antd\";\nimport { ViewOrdersContext } from \"../ViewOrders.context\";\nimport { escalationStatuses } from \"../../orderEscalation/constants\";\nimport { capitalizeUnderscore } from \"../../../../utils\";\nimport MPSIcon from \"./MPSIcon\";\n\nexport const ColumnSelection = () => {\n const { selectColumn, unselectColumn, selectedColumns } =\n useContext(ViewOrdersContext);\n return (\n
\n

Show/Hide Columns

\n
\n {columnsOrdering.map((column, i) => {\n return (\n \n e.target.checked ? selectColumn(column) : unselectColumn(column)\n }\n checked={selectedColumns.includes(column)}\n >\n {capitalizeUnderscore(column)}\n \n );\n })}\n
\n
\n );\n};\n\nconst columnDefintions = {\n tracking_no: {\n title: \"Tracking No\",\n dataIndex: \"tracking_no\",\n width: \"auto\",\n fixed: \"left\",\n render: (text, record) => {\n if (!!record.is_return_order) {\n return (\n

\n {text}\n

\n );\n } else if (MPS_ORDER_TYPES.includes(record.order_type)) {\n return (\n

\n {text}\n

\n );\n }\n return text;\n },\n },\n external_tracking_nos: {\n title: \"External Tracking No\",\n dataIndex: \"external_tracking_nos\",\n render: (value) => (!!value?.length ? value.join(\",\") : \"N/A\"),\n width: 100,\n },\n agent_application_name: {\n title: \"Agent Application\",\n dataIndex: \"agent_application_name\",\n },\n tracker_status_code: {\n title: \"Public Status Code\",\n dataIndex: \"public_tracker_status_v2\",\n render: (value) => capitalizeUnderscore(value),\n },\n private_tracker_status_code: {\n title: \"Private Status Code\",\n dataIndex: \"private_tracker_status_v2\",\n render: (value) => capitalizeUnderscore(value),\n },\n order_type: {\n title: \"Order Type\",\n dataIndex: \"is_return_order\",\n render: (value) => (value ? \"Returns\" : \"Forward\"),\n },\n pickup_date: {\n title: \"Scheduled Pickup Date\",\n dataIndex: \"pickup_date\",\n render: (value) => (!!value ? moment(value).format(\"DD/MM/YY\") : \"N/A\"),\n },\n forward_order_id: {\n title: \"Forward/Return Link\",\n dataIndex: \"forward_order_id\",\n render: (_, record) => {\n if (record.forward_tracking_no) {\n return (\n

\n \n {record.forward_tracking_no}\n \n

\n );\n } else if (record.return_tracking_no) {\n return (\n

\n \n \n {record.return_tracking_no}\n \n

\n );\n } else {\n return \"N/A\";\n }\n },\n },\n // partner_submission_status: {\n // title: \"partner submission status\",\n // dataindex: \"partner_submission_status\",\n // render: (value) => {\n // const { error_count, success_count, total_count } = value;\n // if (error_count) {\n // return error;\n // } else if (success_count === total_count) {\n // return success;\n // } else {\n // return (\n // \n // {success_count}/{total_count} success\n // \n // );\n // }\n // },\n // },\n created_on: {\n title: \"Created On\",\n dataIndex: \"created_on\",\n render: (value) => moment(value).format(\"DD/MM/YY HH:mm\"),\n },\n\n shipper_order_id: {\n title: \"Shipper Order ID\",\n dataIndex: \"shipper_order_id\",\n render: (value) => value || \"N/A\",\n },\n escalation_status: {\n title: \"Escalation Status\",\n dataIndex: \"escalation_status\",\n render: (value) => {\n if (value) {\n const escalationStatus = escalationStatuses[value];\n return (\n \n {escalationStatus.title}\n \n );\n }\n return \"N/A\";\n },\n },\n\n upload_batch_no: {\n title: \"Upload Batch No\",\n dataIndex: \"upload_batch_no\",\n render: (value) => value || \"N/A\",\n },\n consignee_name: {\n title: \"Consignee Name\",\n dataIndex: \"consignee_name\",\n },\n consignee_email: {\n title: \"Consignee Email\",\n dataIndex: \"consignee_email\",\n },\n pickup_country: {\n title: \"Pickup Country\",\n dataIndex: \"pickup_country\",\n },\n consignee_country: {\n title: \"Consignee Country\",\n dataIndex: \"consignee_country\",\n },\n consignee_address: {\n title: \"Consignee Address\",\n dataIndex: \"consignee_address\",\n },\n consignee_number: {\n title: \"Consignee Number\",\n dataIndex: \"consignee_number\",\n },\n // identification_document_name: {\n // title: \"Identification Document Name\",\n // dataIndex: \"identification_document_name\",\n // render: (value) => value || \"N/A\",\n // },\n // consignee_identifcation_number: {\n // title: \"Identification Number\",\n // dataIndex: \"consignee_identifcation_number\",\n // render: (value) => value || \"N/A\",\n // },\n shipping_batch_nos: {\n title: \"Shipping Batch Nos\",\n dataIndex: \"shipping_batch_nos\",\n render: (value) => (!!value.length ? value.join(\",\") : \"N/A\"),\n },\n // customs_documents_status: {\n // title: \"Consignee Customs Document\",\n // dataIndex: \"customs_documents_status\",\n // render: (value) => {\n // let fontColor;\n // switch (value) {\n // case \"Pending Documents\":\n // fontColor = \"#FF8900\";\n // break;\n // case \"Documents Uploaded\":\n // fontColor = \"#27AE60\";\n // break;\n // default:\n // fontColor = \"#000000\";\n // }\n\n // let label = ;\n // return value ? label : \"N/A\";\n // },\n // },\n order_exceptions: {\n title: \"Order Exceptions\",\n dataIndex: \"order_exceptions\",\n render: (value) => (!!value.length ? value.join(\",\") : \"N/A\"),\n },\n};\n\nexport const getColumns = (selectedColumns = []) => {\n const columns = [];\n for (let column of columnsOrdering) {\n if (selectedColumns.includes(column)) {\n columns.push(columnDefintions[column]);\n }\n }\n const actionColumn = {\n title: \"Actions\",\n dataIndex: \"order_id\",\n render: (orderId, record) => ,\n fixed: \"right\",\n };\n columns.push(actionColumn);\n return columns;\n};\n","import React, { useContext } from \"react\";\nimport { Input } from \"antd\";\nimport { ViewOrdersContext } from \"../../ViewOrders.context\";\n\nfunction ConsigneeFilter() {\n const { filters, handleChangeFiltersValues } = useContext(ViewOrdersContext);\n // const [values, setValues] = useState({\n // consignee_name: \"\",\n // consignee_number: \"\",\n // consignee_email: \"\",\n // })\n const handleTextChange = (field, value) => {\n // const newValues = {\n // ...values,\n // [field]: value\n // }\n // setValues(newValues)\n handleChangeFiltersValues({ [field]: value });\n };\n\n const inputFields = [\n {\n title: \"Consignee Name\",\n name: \"consignee_name\",\n },\n {\n title: \"Consignee Number\",\n name: \"consignee_number\",\n },\n {\n title: \"Consignee Email\",\n name: \"consignee_email\",\n },\n ];\n\n return (\n
\n {inputFields.map((f, i) => {\n return (\n
\n
\n

{f.title}

\n handleTextChange(f.name, e.target.value)} />\n
\n
\n );\n })}\n
\n );\n}\n\nexport default ConsigneeFilter;\n","import React, { useContext } from \"react\";\nimport { Select } from \"antd\";\nimport { ViewOrdersContext } from \"../../ViewOrders.context\";\nimport { useCountries } from \"../../../../../hooks/useCountries\";\n\nconst { Option } = Select;\n\nfunction CountryFilter() {\n const { filters, handleChangeFilter } = useContext(ViewOrdersContext);\n const { data: countries, loading: countriesLoading } = useCountries();\n\n return (\n
\n
\n
\n

Pickup Country

\n trigger.parentNode}\n disabled={countriesLoading}\n onChange={(value) => handleChangeFilter(\"pickup_country\", value)}\n />\n
\n
\n
\n
\n

Consignee Country

\n trigger.parentNode}\n countries={countries}\n disabled={countriesLoading}\n loading={countriesLoading}\n onChange={(value) => handleChangeFilter(\"consignee_country\", value)}\n />\n
\n
\n
\n );\n}\n\nconst SelectCountry = React.memo(({ countries = [], ...props }) => {\n return (\n \n );\n});\n\nexport default CountryFilter;\n","import React, { useContext, useState } from \"react\";\nimport { DatePicker, Input } from \"antd\";\nimport moment from \"moment\";\nimport { ViewOrdersContext } from \"../../ViewOrders.context\";\nconst { RangePicker } = DatePicker;\n\nconst DateFilter = () => {\n const { filters, handleChangeFilter, handleChangeFiltersValues } = useContext(ViewOrdersContext);\n\n const [values, setValues] = useState({\n days_since_last_update: \"\",\n });\n // const updateFilters = React.useCallback(debounceFunc(handleChangeFiltersValues, 500), [])\n const handleTextChange = (field, value) => {\n const newValues = {\n ...values,\n [field]: value,\n };\n setValues(newValues);\n handleChangeFilter(newValues);\n };\n\n const handleDateChange = (e, fieldName) => {\n let date;\n if (fieldName === \"date_from\") {\n date = e ? moment(e).startOf(\"day\").format(\"YYYY-MM-DD\") : e;\n } else if (fieldName === \"date_to\") {\n date = e ? moment(e).endOf(\"day\").format(\"YYYY-MM-DD\") : e;\n }\n handleChangeFilter(fieldName, date);\n };\n\n const handleDateRangeChange = (dates) => {\n const pickup_date_from = dates[0]?.format(\"YYYY-MM-DD\");\n const pickup_date_to = dates[1]?.format(\"YYYY-MM-DD\");\n handleChangeFiltersValues({\n pickup_date_from,\n pickup_date_to,\n });\n };\n\n const dateFields = [\n {\n name: \"date_from\",\n title: \"Date From\",\n },\n {\n name: \"date_to\",\n title: \"Date To\",\n },\n ];\n\n return (\n
\n {/*
Dates
*/}\n
\n {dateFields.map((dateField, index) => {\n return (\n
\n
\n

{dateField.title}

\n e.preventDefault()}\n locale=\"en\"\n disabledDate={(current) => current && current > moment().endOf(\"day\")}\n value={filters[dateField.name] ? moment(filters[dateField.name]) : null}\n // defaultValue={filters[dateField.name] ? moment(dateField.name).format() : null}\n onChange={(e) => handleDateChange(e, dateField.name)}\n todayButton={\"Today\"}\n />\n
\n
\n );\n })}\n\n
\n
\n

Pickup Date

\n handleDateRangeChange(dates, \"pickup_date\")}\n format=\"DD/MM/YY\"\n ranges={{\n Today: [moment(), moment()],\n \"This Month\": [moment().startOf(\"month\"), moment().endOf(\"month\")],\n }}\n value={[filters.pickup_date_from ? moment(filters.pickup_date_from) : null, filters.pickup_date_to ? moment(filters.pickup_date_to) : null]}\n />\n
\n
\n\n
\n
\n

Days Since Last Update

\n handleTextChange(\"days_since_last_update\", e.target.value)} />\n
\n
\n
\n
\n );\n};\n\nexport default DateFilter;\n","import { useState } from 'react'\nimport axios from 'axios'\nimport { useQuery } from \"react-query\"\n\nconst URL = '/api/data/exceptions/'\n\nconst useOrderExceptions = () => {\n const [data, setData] = useState([])\n const token = localStorage.getItem('token')\n\n const {isLoading} = useQuery(\n \"order-exceptions\",\n async () => {\n const r = await axios.get(URL, {\n headers: {\n Authorization: `Token ${token}`\n }\n })\n return r.data\n },\n {\n staleTime: Infinity,\n refetchInterval: false,\n onSuccess: (data) => {\n setData(data)\n },\n onError: (err) => {\n console.log(err)\n }\n }\n )\n\n return [data, isLoading]\n}\n\nexport default useOrderExceptions","import React, { useContext } from 'react'\nimport { Select } from 'antd'\nimport { ViewOrdersContext } from '../../ViewOrders.context'\nimport useOrderExceptions from '../../hooks/useOrderExceptions'\nimport EscaltionStatusOptions from '../../../orderEscalation/components/EscalationStatusOptions'\nconst { Option } = Select\n\nfunction ExceptionFilter() {\n const { filters, handleChangeFilter } = useContext(ViewOrdersContext)\n\n const [orderExceptions, orderExceptionsLoading] = useOrderExceptions()\n const getExceptionOptions = () => {\n return orderExceptions.map(\n e => \n )\n }\n\n return (\n
\n
\n
\n

Exceptions

\n handleChangeFilter('order_exceptions', v)}\n value={filters.order_exceptions}\n disabled={orderExceptionsLoading}\n loading={orderExceptionsLoading}\n allowClear\n >\n {getExceptionOptions()}\n \n
\n
\n\n
\n
\n

Escalation Status

\n handleChangeFilter(\"escalation_status\", v)}\n value={filters.escalation_status}\n allowClear />\n
\n
\n
\n )\n}\n\nexport default ExceptionFilter\n","import { useState } from 'react'\nimport axios from 'axios'\nimport { useQuery } from \"react-query\"\n\nconst URL = '/api/hms/hubs/'\n\nconst useHubs = () => {\n const [hubs, setHubs] = useState([])\n const token = localStorage.getItem('token')\n\n const {isLoading} = useQuery(\"hms-hubs\",\n async () => {\n const r = await axios.get(URL, {\n headers: {\n Authorization: `Token ${token}`\n }\n })\n return r.data\n },\n {\n staleTime: Infinity,\n refetchInterval: false,\n onSuccess: (data) => {\n setHubs(data)\n },\n onError: (err) => {\n console.log(err)\n }\n }\n )\n\n return [hubs, isLoading]\n}\n\nexport default useHubs","import React from 'react'\nimport { Select } from 'antd'\nimport useHubs from '../../hooks/useHubs'\nconst { Option } = Select\n\nconst SelectHubs = React.memo((props) => {\n const [hubs, isLoading] = useHubs()\n\n const getHubOptions = () => {\n const options = []\n hubs.forEach(hub => {\n options.push()\n })\n return options\n }\n\n return (\n \n {getHubOptions()}\n \n )\n})\n\nexport default SelectHubs\n","import React, { useContext } from \"react\";\nimport { Input, DatePicker } from \"antd\";\nimport moment from \"moment\";\n\nimport { ViewOrdersContext } from \"../../ViewOrders.context\";\nimport SelectHubs from \"../../../../common/SelectHub\";\nconst { RangePicker } = DatePicker;\n\nfunction HMSFilter() {\n const { filters, handleChangeFilter, handleChangeFiltersValues } = useContext(ViewOrdersContext);\n // const updateFilters = React.useCallback(debounceFunc(handleChangeFiltersValues, 500), [])\n const handleTextChange = (field, value) => {\n handleChangeFiltersValues({ [field]: value });\n };\n\n const handleDateRangeChange = (dates, fieldName) => {\n const date_from = dates[0]?.format(\"YYYY-MM-DD\");\n const date_to = dates[1]?.format(\"YYYY-MM-DD\");\n\n const dateFromField = `${fieldName}_from`;\n const dateToField = `${fieldName}_to`;\n handleChangeFiltersValues({\n [dateFromField]: date_from,\n [dateToField]: date_to,\n });\n };\n\n return (\n
\n
HMS Filters
\n
\n
\n
\n

Hub

\n {/* handleTextChange(\"hub_group_id\", e.target.value)} />\n
\n
\n
\n
\n

Scan Date

\n handleDateRangeChange(dates, \"hms_scan\")}\n format=\"DD/MM/YY\"\n ranges={{\n Today: [moment().startOf(\"day\"), moment().endOf(\"day\")],\n \"This Month\": [moment().startOf(\"month\"), moment().endOf(\"month\")],\n }}\n value={[filters.hms_scan_from ? moment(filters.hms_scan_from) : null, filters.hms_scan_to ? moment(filters.hms_scan_to) : null]}\n />\n
\n
\n
\n
\n );\n}\n\nexport default HMSFilter;\n","import React, { useContext } from \"react\";\nimport { Input } from \"antd\";\nimport { ViewOrdersContext } from \"../../ViewOrders.context\";\n\nfunction OrderNumberFilter() {\n const { filters, handleChangeFiltersValues, onSearchHandler } = useContext(ViewOrdersContext);\n\n const handleTextChange = (field, value) => {\n handleChangeFiltersValues({ [field]: value });\n };\n\n const handleKeyDown = (e) => {\n if (e.keyCode === 13 || e.which === 13) {\n onSearchHandler();\n }\n };\n\n const inputFields1 = [\n {\n title: \"Tracking No\",\n name: \"tracking_no\",\n placeholder: \"e.g. ABC123,DEF456\",\n },\n {\n title: \"External Tracking No\",\n name: \"external_tracking_no\",\n },\n ];\n const inputField2 = [\n {\n title: \"Shipper Order Id\",\n name: \"shipper_order_id\",\n },\n {\n title: \"Upload Batch No\",\n name: \"upload_batch_no\",\n },\n {\n title: \"Shipping Batch No\",\n name: \"shipping_batch_no\",\n },\n {\n title: \"MAWB No(s)\",\n name: \"mawb_no\",\n placeholder: \"e.g. ABC123,DEF456\",\n },\n ];\n\n return (\n
\n
\n {inputFields1.map((inputField, i) => {\n return (\n
\n
\n

{inputField.title}

\n handleTextChange(inputField.name, e.target.value)}\n onKeyDown={handleKeyDown}\n allowClear\n />\n
\n
\n );\n })}\n
\n\n
\n {inputField2.map((inputField, i) => {\n return (\n
\n
\n

{inputField.title}

\n handleTextChange(inputField.name, e.target.value)} />\n
\n
\n );\n })}\n
\n
\n );\n}\n\nexport default OrderNumberFilter;\n","import { useState } from 'react'\nimport axios from 'axios'\nimport { useQuery } from \"react-query\"\n\nconst URL = '/api/order/service/'\n\nconst useServices = () => {\n const [services, setServices] = useState([])\n const token = localStorage.getItem('token')\n\n const {isLoading} = useQuery(\n \"services\",\n async () => {\n const r = await axios.get(URL, {\n headers: {\n Authorization: `Token ${token}`\n }\n })\n return r.data\n },\n {\n staleTime: Infinity,\n refetchInterval: false,\n onSuccess: (data) => {\n setServices(data)\n },\n onError: (err) => {\n console.log(err)\n }\n }\n )\n\n return [services, isLoading]\n}\n\nexport default useServices","import React from 'react'\nimport { Select } from 'antd'\nimport useServices from '../../hooks/useServices'\nconst { Option } = Select\n\nconst SelectService = ({ onChange, mode = 'single', ...props }) => {\n const [services, servicesLoading] = useServices()\n const renderOptions = () => {\n let options = [\n \n ]\n services.forEach(service => {\n options.push(\n \n {service.service_name}\n \n )\n })\n return options\n }\n\n return (\n \n option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0\n }\n {...props}\n >\n {renderOptions()}\n \n )\n}\n\nexport default SelectService","import React, { useContext } from \"react\";\nimport AgentApplicationDropdown from \"../../../../AgentApplicationsDropdown\";\nimport SelectService from \"../../../../common/SelectService\";\nimport { ViewOrdersContext } from \"../../ViewOrders.context\";\nimport { Select } from \"antd\";\n\nconst { Option } = Select;\n\nfunction ServiceFilter() {\n const { filters, handleChangeFilter, agentApplications, agentApplicationsLoading } = useContext(ViewOrdersContext);\n\n return (\n
\n
\n
\n handleChangeFilter(\"agent_application_id\", v)}\n mode=\"multiple\"\n />\n
\n
\n handleChangeFilter(\"agent_application_id_filter\", v)}\n >\n \n \n \n
\n
\n handleChangeFilter(\"service_id\", v)} />\n
\n );\n}\n\nexport default ServiceFilter;\n","import { useState } from 'react'\nimport axios from 'axios'\nimport { useQuery } from \"react-query\"\n\nconst URL = '/api/tracker/public-statuses/'\n\nconst usePublicStatuses = () => {\n const [publicStatuses, setPublicStatuses] = useState([])\n const token = localStorage.getItem('token')\n\n const {isLoading} = useQuery(\n \"public-statuses\",\n async () => {\n const r = await axios.get(URL, {\n headers: {\n Authorization: `Token ${token}`\n }\n })\n return r.data\n },\n {\n staleTime: Infinity,\n refetchInterval: false,\n onSuccess: (data) => {\n setPublicStatuses(data)\n },\n onError: (err) => {\n console.log(err)\n }\n }\n )\n\n return [publicStatuses, isLoading]\n}\n\nexport default usePublicStatuses","import React from 'react'\nimport { Select } from 'antd'\nimport { capitalizeUnderscore } from '../../utils'\nimport usePublicStatuses from '../../hooks/usePublicStatuses'\nconst { Option, OptGroup } = Select\n\nconst SelectPublicStatus = React.memo((props) => {\n const [publicStatuses, isLoading] = usePublicStatuses()\n\n const getPubliStatusCodeOptions = () => {\n const { public_statuses, public_statuses_v2 } = publicStatuses\n const options = [\n \n ]\n if (!!public_statuses_v2) {\n const statusGroup = []\n public_statuses_v2.forEach(s => {\n statusGroup.push(\n \n )\n })\n options.push(\n \n Public Statuses\n \n }>\n {statusGroup}\n \n )\n }\n if (!!public_statuses) {\n const statusGroup = []\n public_statuses.forEach(s => {\n statusGroup.push(\n \n )\n })\n options.push(\n \n Old Public Statuses\n \n }>\n {statusGroup}\n \n )\n }\n return options\n }\n\n return (\n \n {getPubliStatusCodeOptions()}\n \n )\n})\n\nexport default SelectPublicStatus\n","import { useState } from 'react'\nimport axios from 'axios'\nimport { useQuery } from \"react-query\"\n\nconst URL = '/api/tracker/private-statuses/'\n\nconst usePrivateStatuses = () => {\n const [privateStatuses, setPrivateStatuses] = useState([])\n const token = localStorage.getItem('token')\n\n const {isLoading} = useQuery(\n \"private-statuses\",\n async () => {\n const r = await axios.get(URL, {\n headers: {\n Authorization: `Token ${token}`\n }\n })\n return r.data\n },\n {\n staleTime: Infinity,\n refetchInterval: false,\n onSuccess: (data) => {\n setPrivateStatuses(data)\n },\n onError: (err) => {\n console.log(err)\n }\n }\n )\n\n return [privateStatuses, isLoading]\n}\n\nexport default usePrivateStatuses","import React from 'react'\nimport { Select } from 'antd'\nimport { capitalizeUnderscore } from '../../utils'\nimport usePrivateStatuses from '../../hooks/usePrivateStatuses'\nconst { Option, OptGroup } = Select\n\nconst SelectPrivateStatus = React.memo((props) => {\n const [privateStatuses, isLoading] = usePrivateStatuses()\n\n const getPrivateStatusCodeOptions = () => {\n const {\n grouped_by_public_status_v2: groupedStatuses\n } = privateStatuses || {}\n\n const options = [\n \n ]\n\n if (!!groupedStatuses && !!groupedStatuses.length) {\n groupedStatuses.forEach(obj => {\n const groupedByPublicStatus = (\n \n

{obj.public_status_v2\n ? `Public Status: ${capitalizeUnderscore(obj.public_status_v2)}`\n : \"Unmapped Status\"}\n

\n \n }>\n {obj.private_statuses.map(s => (\n \n ))}\n
\n )\n options.push(groupedByPublicStatus)\n })\n }\n\n return options\n }\n\n return (\n \n {getPrivateStatusCodeOptions()}\n \n )\n})\n\nexport default SelectPrivateStatus\n","import React, { useContext } from 'react'\nimport { Select } from 'antd'\nimport { ViewOrdersContext } from '../../ViewOrders.context'\nimport SelectPublicStatus from '../../../../common/SelectPublicStatus'\nimport SelectPrivateStatus from '../../../../common/SelectPrivateStatus'\nconst { Option } = Select\n\nfunction StatusFilter() {\n const { filters, handleChangeFilter } = useContext(ViewOrdersContext)\n\n return (\n
\n
\n
\n

Public Status Code

\n handleChangeFilter('public_status', value)} />\n
\n
\n

Private Status Code

\n handleChangeFilter('private_status', value)} />\n
\n
\n\n
\n
\n

Is Processing

\n \n
\n
\n

Order Type

\n \n
\n
\n
\n )\n}\n\nexport default StatusFilter\n","import { Alert, Card, Collapse } from \"antd\";\nimport React from \"react\";\nimport { ColumnSelection } from \"../Columns\";\nimport ConsigneeFilter from \"./ConsigneeFilter\";\nimport CountryFilter from \"./CountryFilter\";\nimport DateFilter from \"./DateFilter\";\nimport ExceptionFilter from \"./ExceptionFilter\";\nimport HMSFilter from \"./HMSFilter\";\nimport OrderNumberFilter from \"./OrderNumberFilter\";\nimport ServiceFilter from \"./ServiceFilter\";\nimport StatusFilter from \"./StatusFilter\";\n\nconst { Panel } = Collapse;\n\nfunction Filters({ onResetPage, ordersFetching, showErrorMessage }) {\n return (\n \n

Filters

\n
\n
\n \n \n \n
\n \n \n \n \n \n \n \n \n \n \n {showErrorMessage && }\n \n Search\n \n
\n
\n );\n}\n\nexport default Filters;\n","import axios from 'axios'\n\nexport async function cancelOrder(payload) {\n try {\n const url = '/api/order/cancel-orders/'\n const r = await axios.post(url, payload)\n return {\n isError: false,\n data: r.data\n }\n } catch(err) {\n const data = err.response?.data\n return {\n isError: true,\n error: data\n }\n }\n}\n\nexport async function resubmitToExternalService(orders) {\n const order_ids = orders.map(order => ({\n order_id: order.order_id\n }))\n const payload = {\n order_ids\n }\n try {\n const url = '/api/order/submit-orders-external-service/'\n const r = await axios.post(url, payload)\n return {\n isError: false,\n data: r.data\n }\n } catch(err) {\n const data = err.response?.data\n return {\n isError: true,\n error: data\n }\n }\n}\n\nexport const printOrdersLabel = async (payload, sorted=false) => {\n try {\n const url = '/api/label/merge-olu/'\n const r = await axios.post(url, payload, {\n responseType: 'arraybuffer',\n headers: {\n 'Content-Type': 'application/json',\n 'Accept': 'application/json'\n }\n })\n const urlResult = window.URL.createObjectURL(new Blob([r.data], {type:\"application/pdf\"}))\n return {\n isSuccess: true,\n data: r.data,\n pdfUrl: urlResult\n }\n } catch (error) {\n const decodedString = String.fromCharCode.apply(null, new Uint8Array(error.response.data));\n const obj = JSON.parse(decodedString);\n const msg = 'Unable to generate labels, please check your tracking numbers and date format.'\n return {\n isSuccess: false,\n message: obj.message || msg\n }\n }\n}\n\nexport const downloadManifset = (params) => {\n const url = '/api/hms/download-delivery-manifest/'\n axios.get(url, {params: params, responseType: 'blob'})\n .then((response) => {\n const url = window.URL.createObjectURL(new Blob([response.data]));\n return {\n isSuccess: true,\n url\n }\n }).catch(err => {\n return {\n isSuccess: false,\n error: err.response?.data\n }\n });\n}","import React from \"react\";\nimport { ViewOrdersContext } from \"../ViewOrders.context\";\nimport classNames from \"classnames\";\nimport { message } from \"antd\";\nimport axios from \"axios\";\n\nexport default function RegenerateLabels() {\n const [loading, setLoading] = React.useState(false);\n const { selectedOrders } = React.useContext(ViewOrdersContext);\n\n const handleClick = async () => {\n setLoading(true);\n message.info(\"Regenerating labels....\");\n\n try {\n const { data } = await axios.post(\n \"/api/api/label/generate-label-with-orderid/\",\n {\n order_ids: selectedOrders.map((order) => order.order_id),\n }\n );\n message.success(data?.message || \"Labels regenerated successfully.\");\n } catch (error) {\n console.log(error);\n message.error(\"Unable to regenerate labels, please try again later.\");\n }\n\n setLoading(false);\n };\n\n return (\n \n Regenerate Labels\n \n );\n}\n","import React, { useContext, useState } from \"react\";\nimport { Card, message } from \"antd\";\nimport FeatureRequired from \"../../../common/auth/FeatureRequired\";\nimport classNames from \"classnames\";\nimport { ViewOrdersContext } from \"../ViewOrders.context\";\nimport {\n downloadManifset,\n printOrdersLabel,\n resubmitToExternalService,\n} from \"../api\";\nimport { getTrackerUrl } from \"../utils\";\nimport { bulkDownloadDocuments } from \"../../customsDocuments/utils\";\nimport RegenerateLabels from \"../actionButtons/RegenerateLabels\";\n\nconst ResubmitExternalService = ({ handleResult }) => {\n const { selectedOrders } = useContext(ViewOrdersContext);\n const [submitting, setSubmitting] = useState(false);\n\n const handleResubmitToExternalService = async () => {\n setSubmitting(true);\n handleResult({});\n\n const result = await resubmitToExternalService(selectedOrders);\n if (!result.isError) {\n handleResult({\n status: \"success\",\n message: \"Order(s) successfully submitted to external services.\",\n });\n } else {\n handleResult({\n status: \"danger\",\n message: \"Something went wrong\",\n });\n }\n setSubmitting(false);\n };\n\n return (\n \n handleResubmitToExternalService()}\n type=\"button\"\n className={classNames(\"mb-1 w-100 btn\", {\n \"btn-success\": !!selectedOrders.length,\n \"btn-secondary\": !selectedOrders.length,\n })}\n disabled={!selectedOrders.length || submitting}\n >\n Re-submit to External Service\n \n \n );\n};\n\nconst Print = ({ handleResult }) => {\n const { selectedOrders } = useContext(ViewOrdersContext);\n const [loading, setLoading] = useState(false);\n\n const handlePrint = async () => {\n setLoading(true);\n handleResult({});\n\n const result = { has_olu: true, olus: [], tracking_nos: [] };\n selectedOrders.forEach((order) => {\n if (!order.order_label_url) {\n result.has_olu = false;\n }\n result.olus.push(order.order_label_url);\n result.tracking_nos.push(order.tracking_no);\n });\n if (!result.has_olu) {\n setLoading(false);\n handleResult({});\n }\n\n const r = await printOrdersLabel({ olus: result.olus });\n if (r.isSuccess) {\n const { pdfUrl } = r;\n window.open(pdfUrl);\n } else {\n handleResult({\n status: \"danger\",\n message: r.message,\n });\n }\n\n setLoading(false);\n };\n\n return (\n handlePrint()}\n type=\"button\"\n className={classNames(\"mb-1 w-100 btn\", {\n \"btn-success\": !!selectedOrders.length,\n \"btn-secondary\": !selectedOrders.length,\n })}\n disabled={!selectedOrders.length || loading}\n >\n {loading\n ? \"printing selected orders...\"\n : \"Print selected orders stickers and commercial invoice\"}\n \n );\n};\n\nconst PrintSorted = ({ handleResult }) => {\n const { selectedOrders } = useContext(ViewOrdersContext);\n const [loading, setLoading] = useState(false);\n\n const handlePrint = async () => {\n setLoading(true);\n handleResult({});\n\n const result = { has_olu: true, olus: [], tracking_nos: [] };\n selectedOrders.forEach((order) => {\n if (!order.order_label_url) {\n result.has_olu = false;\n }\n result.olus.push(order.order_label_url);\n result.tracking_nos.push(order.tracking_no);\n });\n if (!result.has_olu) {\n setLoading(false);\n handleResult({});\n }\n\n const r = await printOrdersLabel({ olus: result.olus }, true);\n if (r.isSuccess) {\n const { pdfUrl } = r;\n window.open(pdfUrl);\n } else {\n handleResult({\n status: \"danger\",\n message: r.message,\n });\n }\n\n setLoading(false);\n };\n\n return (\n handlePrint()}\n type=\"button\"\n className={classNames(\"mb-1 w-100 btn\", {\n \"btn-success\": !!selectedOrders.length,\n \"btn-secondary\": !selectedOrders.length,\n })}\n disabled={!selectedOrders.length || loading}\n >\n {loading\n ? \"printing selected orders...\"\n : \"Print labels sorted by consignee\"}\n \n );\n};\n\nconst Track = () => {\n const { selectedOrders } = useContext(ViewOrdersContext);\n\n const handleClick = () => {\n const trackingNos = selectedOrders\n .map((order) => order.tracking_no)\n .join(\",\");\n const trackerUrl = getTrackerUrl(trackingNos);\n window.open(trackerUrl);\n };\n\n return (\n \n Track Selected Orders\n \n );\n};\n\nconst DownloadCustomsDocument = ({ handleResult }) => {\n const { selectedOrders } = useContext(ViewOrdersContext);\n const [loading, setLoading] = useState(false);\n\n const handleBulkDownload = async () => {\n setLoading(true);\n handleResult({});\n\n const trackingNumbers = selectedOrders.map((order) => {\n return order.tracking_no;\n });\n const response = await bulkDownloadDocuments(trackingNumbers);\n setLoading(false);\n\n if (response.isError) {\n handleResult({\n status: \"danger\",\n message: \"Download customs document error\",\n });\n }\n };\n\n return (\n \n {loading\n ? \"Downloading customs documents...\"\n : \"Download Consignee Customs Document\"}\n \n );\n};\n\nconst DownloadDeliveryManifset = ({ handleResult }) => {\n const { selectedOrders, filters } = useContext(ViewOrdersContext);\n\n const enabled =\n !!filters.hub_id &&\n !!filters.hub_group_id &&\n !!filters.hms_scan_from &&\n !!filters.hms_scan_to &&\n !!selectedOrders.length;\n\n const handleDownloadManifest = async () => {\n message.info(\"Generating manifest, please wait...\");\n const params = {\n hms_scan_from: filters.hms_scan_from,\n hms_scan_to: filters.hms_scan_to,\n hms_hub_group_id: filters.hms_hub_group_id,\n };\n const result = await downloadManifset(params);\n if (result.isSuccess) {\n const link = document.createElement(\"a\");\n link.href = result.url;\n link.setAttribute(\"download\", \"manifest.xlsx\");\n document.body.appendChild(link);\n link.click();\n link.remove();\n } else {\n message.error(\"Error downloading manifest\");\n }\n };\n\n return (\n \n Download Delivery Manifest\n \n );\n};\n\nconst EscalateOrders = () => {\n const { selectedOrders, setOrdersToEscalate } = useContext(ViewOrdersContext);\n return (\n {\n setOrdersToEscalate(selectedOrders);\n }}\n type=\"button\"\n className={classNames(\"mb-1 w-100 btn\", {\n \"btn-secondary\": !selectedOrders.length,\n \"btn-success\": !!selectedOrders.length,\n })}\n disabled={!selectedOrders.length}\n >\n Escalate Orders\n \n );\n};\n\nconst ResolveExceptions = () => {\n const { selectedOrders, setOrdersToResolve } = useContext(ViewOrdersContext);\n return (\n {\n setOrdersToResolve(selectedOrders);\n }}\n type=\"button\"\n className={classNames(\"mb-1 w-100 btn\", {\n \"btn-secondary\": !selectedOrders.length,\n \"btn-success\": !!selectedOrders.length,\n })}\n disabled={!selectedOrders.length}\n >\n Resolve Exceptions\n \n );\n};\n\nfunction SelectedOrdersActions() {\n const [message, setMessage] = useState();\n const [status, setStatus] = useState(false);\n\n const handleResult = ({ status, message }) => {\n setMessage(message);\n setStatus(status);\n };\n\n return (\n
\n {message && status && (\n
\n {message}\n
\n )}\n \n
Other Actions
\n
\n \n \n \n \n \n \n \n \n \n
\n
\n
\n );\n}\n\nexport default SelectedOrdersActions;\n","import React, { useContext, useState } from 'react'\nimport { Modal, message } from 'antd'\nimport { ViewOrdersContext } from '../ViewOrders.context'\nimport ResolveOrderException from '../../resolveOrderException/ResolveOrderException'\nimport OrderEscalation from '../../orderEscalation/OrderEscalation'\nimport { cancelOrder } from '../api'\n\nconst CancelModal = () => {\n const { orderToCancel, setOrderToCancel } = useContext(ViewOrdersContext)\n const [cancelling, setCancelling] = useState(false)\n\n const handleCancel = async () => {\n const { tracking_no } = orderToCancel\n const payload = {\n tracking_nos: [tracking_no]\n }\n setCancelling(true)\n const result = await cancelOrder(payload)\n if (!result.isError) {\n const defaultMsg = `Order: ${tracking_no} cancelled`\n message.success(result.data?.detail || defaultMsg)\n // TODO: remove order from table\n } else {\n message.error(JSON.stringify(result.error).slice(1,-1), 4)\n }\n setCancelling(false)\n setOrderToCancel(null)\n }\n\n return (\n setOrderToCancel(null)}\n onOk={() => {\n handleCancel()\n }}\n okButtonProps={{\n disabled: cancelling,\n loading: cancelling\n }}\n cancelButtonProps={{\n disabled: cancelling\n }}\n >\n

Do you want to cancel this order ?

\n \n )\n}\n\nconst ResolveOrderModal = () => {\n const { ordersToResolve, setOrdersToResolve } = useContext(ViewOrdersContext)\n return (\n setOrdersToResolve([])}\n footer={null} centered={true} maskClosable={false}\n onCancel={() => setOrdersToResolve([])}\n destroyOnClose={true}>\n setOrdersToResolve([])} />\n \n )\n}\n\nconst EscalateOrderModal = () => {\n const { ordersToEscalate, setOrdersToEscalate } = useContext(ViewOrdersContext)\n return (\n setOrdersToEscalate([])}\n footer={null} centered={true} maskClosable={false}\n onCancel={() => setOrdersToEscalate([])}\n destroyOnClose={true}>\n setOrdersToEscalate([])} />\n \n )\n}\n\nfunction Modals() {\n return (\n
\n \n \n \n
\n )\n}\n\nexport default Modals\n","import React, { useContext } from \"react\";\nimport { Table } from \"antd\";\nimport { ViewOrdersContext } from \"../ViewOrders.context\";\nimport { getColumns } from \"./Columns\";\nimport { DEFAULT_PAGE_SIZE, PAGE_SIZE_OPTIONS } from \"../constants\";\nimport Modals from \"./Modals\";\n\nconst ViewOrdersTable = ({ ordersResponse, ordersFetching }) => {\n const { filters, handleChangeFilter, setSelectedOrders, selectedColumns, onSearchHandler } = useContext(ViewOrdersContext);\n return (\n \n );\n};\n\nconst ViewOrdersTableInner = React.memo(({ filters, handleChangeFilter, setSelectedOrders, selectedColumns, ordersFetching, ordersResponse, onSearchHandler }) => {\n console.log(ordersResponse, filters);\n\n const onPaginationChange = (page, pageSize) => {\n handleChangeFilter(\"page\", page);\n onSearchHandler();\n };\n const onShowSizeChange = (currentPage, size) => {\n handleChangeFilter(\"page_size\", size);\n onSearchHandler();\n };\n\n const locale = {\n emptyText:\n filters.date_from || filters.date_to || filters.pickup_date_from || filters.pickup_date_to ? \"No Data found for applied date range\" : \"No Data found for applied filters\",\n };\n\n return (\n
\n \n `${total} orders`,\n style: { marginBottom: 0 },\n pageSizeOptions: PAGE_SIZE_OPTIONS,\n defaultPageSize: DEFAULT_PAGE_SIZE,\n size: \"small\",\n showSizeChanger: true,\n showLessItems: true,\n onChange: onPaginationChange,\n position: \"both\",\n onShowSizeChange,\n }}\n rowSelection={{\n onChange: (selectedKeys, selectedOrders) => {\n setSelectedOrders(selectedOrders);\n },\n }}\n dataSource={ordersResponse.results}\n loading={ordersFetching}\n columns={getColumns(selectedColumns)}\n />\n
\n );\n});\nexport default ViewOrdersTable;\n","import { isEmpty } from \"lodash\";\nimport React, { useContext } from \"react\";\nimport { ViewOrdersContext } from \"../ViewOrders.context\";\nimport Filters from \"./filters\";\nimport SelectedOrdersActions from \"./SelectedOrdersActions\";\nimport ViewOrdersTable from \"./ViewOrdersTable\";\n\nfunction ViewOrders() {\n const { filters, ordersResponse, ordersFetching, resetPageSearch, showErrorMessage } = useContext(ViewOrdersContext);\n\n return (\n
\n
\n \n
\n {!!Object.entries(filters).length && !isEmpty(ordersResponse) ? (\n <>\n
\n \n
\n
\n \n
\n \n ) : (\n
\n

Please apply some filters.

\n
\n )}\n
\n );\n}\n\nexport default ViewOrders;\n","import React from \"react\";\nimport AgentDashboard from \"../AgentDashboard\";\nimport ViewOrders from \"./components/ViewOrders\";\nimport { ViewOrdersContextProvider } from \"./ViewOrders.context\";\n\nfunction ViewOrdersPage() {\n return (\n \n \n \n \n \n );\n}\n\nexport default ViewOrdersPage;\n","import React, { Component } from 'react';\nimport { connect } from 'react-redux';\nimport { history } from '../../../utils/historyUtils';\n\nexport default function(ComposedComponent) {\n class Authentication extends Component {\n componentDidMount() {\n if (!this.props.authenticated) {\n history.push('/signin');\n }\n }\n\n componentDidUpdate(nextProps) {\n if (!nextProps.authenticated) {\n history.push('/signin');\n }\n }\n\n render() {\n return \n }\n }\n\n function mapStateToProps(state) {\n return {\n authenticated: state.auth.authenticated\n };\n }\n\n return connect(mapStateToProps)(Authentication);\n}\n","import React, { lazy } from \"react\";\nimport { Route } from \"react-router-dom\";\nimport ViewOrdersPage from \"../../components/agent/viewOrders/ViewOrders.page\";\nimport { useLocation } from \"react-router-dom\";\n\nimport RequireAuth from \"../../components/common/auth/RequireAuth\";\nconst CreatePartnerDelays = lazy(() =>\n import(\n /* webpackChunkName: 'CreatePartnerDelays' */ \"../../components/agent/partnerDelays/CreatePartnerDelays\"\n )\n);\nconst ViewPartnerDelays = lazy(() =>\n import(\n /* webpackChunkName: 'ViewPartnerDelays' */ \"../../components/agent/partnerDelays/ViewPartnerDelays\"\n )\n);\nconst User = lazy(() =>\n import(/* webpackChunkName: 'User' */ \"../../components/common/user/User\")\n);\nconst ChangePassword = lazy(() =>\n import(\n /* webpackChunkName: 'ChangePassword' */ \"../../components/common/changePassword/ChangePassword\"\n )\n);\nconst AddAgentApplications = lazy(() =>\n import(\n /* webpackChunkName: 'AddAgentApplications' */ \"../../components/agent/agentApplications/AddAgentApplications\"\n )\n);\nconst EditAgentApplications = lazy(() =>\n import(\n /* webpackChunkName: 'EditAgentApplications' */ \"../../components/agent/agentApplications/EditAgentApplications\"\n )\n);\nconst AgentApplications = lazy(() =>\n import(\n /* webpackChunkName: 'AgentApplications' */ \"../../components/agent/agentApplications/AgentApplications\"\n )\n);\nconst ChangeTrackerStatusSuccess = lazy(() =>\n import(\n /* webpackChunkName: 'ChangeTrackerStatusSuccess' */ \"../../components/agent/changeTrackerStatusCSV/ChangeTrackerStatusSuccess\"\n )\n);\nconst ChangeTrackerStatusCSV = lazy(() =>\n import(\n /* webpackChunkName: 'ChangeTrackerStatusCSV' */ \"../../components/agent/changeTrackerStatusCSV/ChangeTrackerStatusCSV\"\n )\n);\nconst AgentViewOrderDetails = lazy(() =>\n import(\n /* webpackChunkName: 'AgentViewOrderDetails' */ \"../../components/agent/viewOrders/AgentViewOrderDetails\"\n )\n);\nconst ViewTrackerUpdateDetails = lazy(() =>\n import(\n /* webpackChunkName: 'ViewTrackerUpdateDetails' */ \"../../components/agent/trackerUpdate/ViewTrackerUpdateDetails\"\n )\n);\nconst ViewTrackerUpdate = lazy(() =>\n import(\n /* webpackChunkName: 'ViewTrackerUpdate' */ \"../../components/agent/trackerUpdate/ViewTrackerUpdate\"\n )\n);\nconst CreateTrackerUpdate = lazy(() =>\n import(\n /* webpackChunkName: 'CreateTrackerUpdate' */ \"../../components/agent/trackerUpdate/CreateTrackerUpdate\"\n )\n);\nconst CreateAwb = lazy(() =>\n import(\n /* webpackChunkName: 'ViewAwb' */ \"../../components/agent/midMileAwb/CreateAwb.page\"\n )\n);\nconst CreateNpDelayReason = lazy(() =>\n import(\n /* webpackChunkName: 'CreateNpDelayReason' */ \"../../components/agent/npDelayReason/CreateNpDelayReason\"\n )\n);\n// const ViewBillDetails = lazy(() =>\n// import(\n// /* webpackChunkName: 'ViewBillDetails' */ \"../../components/agent/bills/ViewBillDetails\"\n// )\n// );\n// const ViewBills = lazy(() =>\n// import(\n// /* webpackChunkName: 'ViewBills' */ \"../../components/agent/bills/ViewBills\"\n// )\n// );\nconst CreateBillsSuccess = lazy(() =>\n import(\n /* webpackChunkName: 'CreateBillsSuccess' */ \"../../components/agent/bills/CreateBillsSuccess\"\n )\n);\nconst CreateBills = lazy(() =>\n import(\n /* webpackChunkName: 'CreateBills' */ \"../../components/agent/bills/CreateBills\"\n )\n);\nconst DeleteOrderByUploadBatchNoSuccess = lazy(() =>\n import(\n /* webpackChunkName: 'DeleteOrderByUploadBatchNoSuccess' */ \"../../components/agent/deleteOrderByUploadBatchNo/DeleteOrderByUploadBatchNoSuccess\"\n )\n);\nconst DeleteOrderByUploadBatchNo = lazy(() =>\n import(\n /* webpackChunkName: 'DeleteOrderByUploadBatchNo' */ \"../../components/agent/deleteOrderByUploadBatchNo/DeleteOrderByUploadBatchNo\"\n )\n);\nconst Reports = lazy(() =>\n import(\n /* webpackChunkName: 'Reports' */ \"../../components/agent/reports/Reports\"\n )\n);\nconst UploadPricingCSVPage = lazy(() =>\n import(\n /* webpackChunkName: 'UploadPricingCSVPage' */ \"../../components/agent/pricing/UploadPricingCSV.page\"\n )\n);\nconst ViewPricingDetails = lazy(() =>\n import(\n /* webpackChunkName: 'ViewPricingDetails' */ \"../../components/agent/pricing/ViewPricingDetails\"\n )\n);\nconst UploadPricingCSV = lazy(() =>\n import(\n /* webpackChunkName: 'UploadPricingCSV' */ \"../../components/agent/pricing/UploadPricingCSV\"\n )\n);\nconst WeightReconciliation = lazy(() =>\n import(\n /* webpackChunkName: 'WeightReconcilation' */ \"../../components/agent/weightReconciliation/WeightReconciliation\"\n )\n);\nconst UploadAdhocCSV = lazy(() =>\n import(\n /* webpackChunkName: 'UploadAdhocCSV' */ \"../../components/agent/uploadAdhocCSV/UploadAdhocCSV\"\n )\n);\nconst AgentStats = lazy(() =>\n import(\n /* webpackChunkName: 'AgentStats' */ \"../../components/agent/AgentStats\"\n )\n);\nconst CreateCustomBatchPage = lazy(() =>\n import(\n /* webpackChunkName: 'CreateCustomBatchPage' */ \"../../components/agent/orderBatch/CreateCustomBatchPage\"\n )\n);\n// const MerchantDue = lazy(() =>\n// import(\n// /* webpackChunkName: 'MerchantDue' */ \"../../components/agent/CODManagement/MerchantDues\"\n// )\n// );\nconst MerchantRemittance = lazy(() =>\n import(\n /* webpackChunkName: 'MerchantRemittance' */ \"../../components/agent/CODManagement/MerchantRemittance\"\n )\n);\n// const PartnerDues = lazy(() =>\n// import(\n// /* webpackChunkName: 'PartnerDues' */ \"../../components/agent/CODManagement/PartnerDues\"\n// )\n// );\nconst PartnerRemittance = lazy(() =>\n import(\n /* webpackChunkName: 'PartnerRemittance' */ \"../../components/agent/CODManagement/PartnerRemittance\"\n )\n);\nconst AgentViewOrders = lazy(() =>\n import(\n /* webpackChunkName: 'AgentViewOrders' */ \"../../components/agent/viewOrders/AgentViewOrders\"\n )\n);\nconst RequestConsigneeDocumentsPage = lazy(() =>\n import(\n /* webpackChunkName: 'RequestConsigneeDocumentsPage' */ \"../../components/agent/requestConsigneeDocuments/RequestConsigneeDocumentsPage\"\n )\n);\nconst CorrectOrderAddress = lazy(() =>\n import(\n /* webpackChunkName: 'CorrectOrderAddress' */ \"../../components/agent/correctOrderAddress/CorrectOrderAddress\"\n )\n);\nconst DonwloadPODs = lazy(() =>\n import(\n /* webpackChunkName: 'DonwloadPODs' */ \"../../components/agent/order/downloadPODsV2/PodContainer\"\n )\n);\n\nconst DownloadShopeeOrders = lazy(() =>\n import(\n /* webpackChunkName: 'DownloadShopeeOrders' */ \"../../components/agent/order/downloadShopeeOrders/DownloadShopeeOdrers.page\"\n )\n);\n\nconst SubmitReturnOrdersPage = lazy(() =>\n import(\n /* webpackChunkName: 'SubmitReturnOrdersPage' */ \"../../components/agent/order/returnOrders/SubmitReturnOrders.page\"\n )\n);\nconst SubmitReturnOrderPage = lazy(() =>\n import(\n /* webpackChunkName: 'SubmitReturnOrderPage' */ \"../../components/agent/order/returnOrder/SubmitReturnOrder.page\"\n )\n);\nconst ViewOrderDetails = lazy(() =>\n import(\n /* webpackChunkName: 'ViewOrderDetails.page' */ \"../../components/agent/order/viewOrderDetails/ViewOrderDetails.page\"\n )\n);\n// const ManageOrderExceptions = lazy(() =>\n// import(\n// /* webpackChunkName: 'ManageOrderExceptions.page' */ \"../../components/agent/orderExceptions/ManageExceptions.page\"\n// )\n// );\n// const ResolveOrderExceptions = lazy(() =>\n// import(\n// /* webpackChunkName: 'ResolveOrderExceptions.page' */ \"../../components/agent/orderExceptions/ResolveOrderExceptions.page\"\n// )\n// );\nconst ManageMidmile = lazy(() =>\n import(\n /* webpackChunkName: 'ManageMidmile' */ \"../../components/agent/midMileAwb/MidmileAwb.page\"\n )\n);\nconst ViewMidmileAwb = lazy(() =>\n import(\n /* webpackChunkName: 'ViewMidmile' */ \"../../components/agent/midMileAwb/viewAwbDetails/ViewAwbDetails.page\"\n )\n);\nconst ManagePickupCapacity = lazy(() =>\n import(\n /* webpackChunkName: 'ManagePickupCapacity' */ \"../../components/agent/RTSpickupCapacityManagement/ManagePickupCapacity.page\"\n )\n);\nconst CreatePickupCapacity = lazy(() =>\n import(\n /* webpackChunkName: 'CreatePickupCapacity' */ \"../../components/agent/RTSpickupCapacityManagement/CreatePickupCapacity.page\"\n )\n);\nconst LspUsersPage = lazy(() =>\n import(\n /* webpackChunkName: 'CreatePickupCapacity' */ \"../../components/agent/lspUsers/LspUsers.page\"\n )\n);\nconst CreateLspUser = lazy(() =>\n import(\n /* webpackChunkName: 'CreatePickupCapacity' */ \"../../components/agent/lspUsers/CreateLspUser.page\"\n )\n);\nconst EditLspUser = lazy(() =>\n import(\n /* webpackChunkName: 'CreatePickupCapacity' */ \"../../components/agent/lspUsers/EditLspUser.page\"\n )\n);\nconst Zones = lazy(() =>\n import(\"../../components/agent/zoneLocations/ZonesList\")\n);\nconst ZoneLocations = lazy(() =>\n import(\"../../components/agent/zoneLocations/ZoneLocations\")\n);\nconst NetworkPartnerAllocations = lazy(() =>\n import(\n \"../../components/agent/postalCodeAllocation/NetworkPartnerAllocations\"\n )\n);\nconst SLANetworkEditor = lazy(() =>\n import(\"../../components/agent/slaNetworkEditor/SLANetworkEditor\")\n);\nconst CreateSLAJourney = lazy(() =>\n import(\"../../components/agent/slaNetworkEditor/CreateSLAJourney\")\n);\nconst ViewSLADetails = lazy(() =>\n import(\"../../components/agent/slaNetworkEditor/ViewSLADetails\")\n);\nconst EditSLA = lazy(() =>\n import(\"../../components/agent/slaNetworkEditor/EditSLA\")\n);\n\nconst ShopeeCartonsPage = lazy(() => import(\"../../pages/shopee/ShopeeCartons.page\"))\n\n// TODO DELETE ALL CODE RELATED TO THESE COMPONENTS\n// const ViewNoteDetails = lazy(() => import(/* webpackChunkName: 'ViewNoteDetails' */'../../components/agent/notes/ViewNoteDetails'));\n// const ViewNotes = lazy(() => import(/* webpackChunkName: 'ViewNotes' */'../../components/agent/notes/ViewNotes'));\n// const NotesReport = lazy(() => import(/* webpackChunkName: 'NotesReport' */'../../components/agent/notesReport/NotesReport'));\n// const NetworkPartnersPage = lazy(() => import(/* webpackChunkName: 'NetworkPartnersPage' */'../../components/agent/networkPartners/NetworkPartnersPage'));\n// const NetworkPartnersAddPage = lazy(() => import(/* webpackChunkName: 'NetworkPartnersAddPage' */'../../components/agent/networkPartners/NetworkPartnersAddPage'));\n// const NetworkPartnerEditPage = lazy(() => import(/* webpackChunkName: 'NetworkPartnerEditPage' */'../../components/agent/networkPartners/NetworkPartnerEditPage'));\n// const CreateNotesByCSV = lazy(() => import(/* webpackChunkName: 'CreateNoteByCSV' */'../../components/agent/notes/CreateNotesByCSV'));\n// const ViewMawb = lazy(() => import(/* webpackChunkName: 'ViewMawb' */'../../components/agent/mawb/ViewMawb'));\n// const CreateMawb = lazy(() => import(/* webpackChunkName: 'ViewMawb' */'../../components/agent/mawb/CreateMawb'));\n// const CreateNotesSuccess = lazy(() => import(/* webpackChunkName: 'CreateNoteSuccess' */'../../components/agent/notes/CreateNotesSuccess'));\n// const ViewPricing = lazy(() => import(/* webpackChunkName: 'ViewPricing' */'../../components/agent/pricing/ViewPricing'));\n// const ViewOrdersPage = lazy(() => import(/* webpackChunkName: 'ViewOrdersPage' */'../../components/agent/order/viewOrders/ViewOrders.page'));\n\nconst ManageAwbRoute = (props) => {\n const location = useLocation();\n const searchParams = new URLSearchParams(location.search);\n const mawbClient = searchParams.get('mawb_client');\n const AuthenticatedManageMidmile = RequireAuth(ManageMidmile);\n return \n};\n\nexport const agentRoutes = [\n ,\n ,\n ,\n ,\n ,\n\n // shopee related pages\n // ,\n\n ,\n ,\n ,\n ,\n ,\n ,\n ,\n ,\n ,\n // ,\n // ,\n ,\n ,\n ,\n // ,\n ,\n ,\n // ,\n ,\n ,\n ,\n // ,\n // ,\n ,\n // ,\n ,\n ,\n ,\n ,\n ,\n ,\n\n ,\n ,\n\n // ,\n\n // ,\n\n ,\n\n // ,\n // ,\n ,\n ,\n\n // ,\n // ,\n // ,\n\n ,\n ,\n ,\n // ,\n // ,\n // ,\n // ,\n\n ,\n\n // TODO DELETE ALL CODE RELATED TO THESE COMPONENTS\n // ,\n // ,\n // ,\n // ,\n // ,\n // ,\n // ,\n // ,\n // ,\n // ,\n // ,\n // ,\n];\n","import \"antd/lib/style/core/index.less\";\nimport \"normalize.css/normalize.css\";\nimport React, { lazy, Suspense } from \"react\";\nimport Favicon from \"react-favicon\";\nimport { Provider } from \"react-redux\";\nimport { Redirect, Route, Router, Switch } from \"react-router-dom\";\nimport { RecoilRoot } from \"recoil\";\nimport { QueryParamProvider } from \"use-query-params\";\nimport { fetchSignedInUser, fetchUserFeatures } from \"../actions/commonActions/authActions\";\nimport { AUTH_USER } from \"../actions/types\";\nimport App from \"../components/app\";\nimport DoRedirect from \"../components/common/doRedirect/DoRedirect\";\nimport Loading from \"../components/Loading\";\nimport img from \"../images/janio-favicon.png\";\nimport store from \"../store\";\nimport \"../style/bootstrap.global.scss\";\nimport \"../style/style.scss\";\nimport { history } from \"../utils/historyUtils\";\nimport { agentRoutes } from \"./agentRoutes/agentRoutes\";\n\nconst Signin = lazy(() => import(/* webpackChunkName: 'Signin' */ \"../components/common/auth/Signin\"));\nconst PasswordSent = lazy(() => import(/* webpackChunkName: 'PasswordSent' */ \"../components/common/resetPassword/PasswordSent\"));\nconst ResetPasswordSuccess = lazy(() => import(/* webpackChunkName: 'ResetPasswordSuccess' */ \"../components/common/resetPassword/ResetPasswordSuccess\"));\nconst ResetPassword = lazy(() => import(/* webpackChunkName: 'ResetPassword' */ \"../components/common/resetPassword/ResetPassword\"));\n\nconst token = localStorage.getItem(\"token\");\nif (token) {\n store.dispatch({ type: AUTH_USER });\n store.dispatch(fetchSignedInUser());\n store.dispatch(fetchUserFeatures());\n}\n\nexport const routes = (\n \n \n \n \n \n \n \n }>\n \n {agentRoutes}\n \n \n \n \n } />\n \n \n \n \n \n \n \n \n);\n","import axios from 'axios';\nimport store from '../store';\nimport { UNAUTH_USER, OPEN_ERROR_POPUP } from '../actions/types';\n\naxios.interceptors.response.use(\n function (response) {\n return response;\n },\n function (error) {\n if (error.message === \"Cancelled\") {\n console.log(\"Cancelled by user\");\n } else if (error.response.status === 401) {\n store.dispatch({ type: UNAUTH_USER });\n } else if (error.response.status !== 400) {\n store.dispatch({ type: OPEN_ERROR_POPUP });\n }\n return Promise.reject(error);\n }\n);\n","import ReactDOM from \"react-dom\";\nimport * as Sentry from \"@sentry/browser\";\nimport { routes } from \"./routes/routes\";\nimport \"./config/axiosConfig\";\n\n// import registerServiceWorker from './registerServiceWorker';\nif (process.env.REACT_APP_IS_STAGING) {\n Sentry.init({ dsn: \"https://8b7b2c6540d14ba1b2066e9c4c5b7c89@sentry.io/1532259\" });\n}\n\nReactDOM.render(routes, document.querySelector(\"#root\"));\n// registerServiceWorker();\n","import {\n FETCH_AGENT_SERVICES,\n FETCH_AGENT_SERVICE_BY_ID,\n EDIT_AGENT_SERVICE\n} from '../../actions/types';\n\nexport default function(state = {}, action) {\n switch(action.type) {\n case FETCH_AGENT_SERVICES:\n return { ...state, services: action.payload };\n case FETCH_AGENT_SERVICE_BY_ID:\n return { ...state, service: action.payload };\n case EDIT_AGENT_SERVICE:\n return { ...state, error: action.payload };\n default:\n return state;\n }\n}\n","import {\n FETCH_ALL_HUBS,\n} from '../../actions/types';\n\nexport default function(state = {}, action) {\n switch(action.type) {\n case FETCH_ALL_HUBS:\n return { ...state, hubs: action.payload };\n default:\n return state;\n }\n}\n","import {\n LSP_USER_FETCH_LOADING,\n LSP_USER_FETCHED,\n LSP_USER_FETCHED_ERROR\n} from '../../actions/types';\n\nexport default function (state = { lspUsers: [], lspUsersLoading: false, lspUserError: null }, action) {\n switch (action.type) {\n case LSP_USER_FETCHED:\n return {\n ...state,\n lspUsers: action.payload,\n lspUsersLoading: false,\n lspUserError: false\n };\n\n case LSP_USER_FETCH_LOADING:\n return {\n ...state,\n lspUsers: [],\n lspUsersLoading: true,\n lspUserError: false\n }\n case LSP_USER_FETCHED_ERROR:\n return {\n ...state,\n lspUsers: [],\n lspUsersLoading: false,\n lspUserError: action.payload\n }\n default:\n return state;\n }\n}","import { FETCH_ZONE_LIST, FETCH_ZONE_LIST_ERROR, FETCH_ZONE_LIST_LOADING, FETCH_ZONE_LOCATIONS, FETCH_ZONE_LOCATIONS_ERROR, FETCH_ZONE_LOCATIONS_LOADING } from \"./zone.action\";\n\nexport default function (state = {}, action) {\n switch (action.type) {\n case FETCH_ZONE_LIST_LOADING:\n return { ...state, zonesLoading: true, zones: null };\n case FETCH_ZONE_LIST:\n return { ...state, zones: action.payload, zonesLoading: false };\n case FETCH_ZONE_LIST_ERROR:\n return { ...state, zonesLoading: false, zones: null };\n case FETCH_ZONE_LOCATIONS_LOADING:\n return { ...state, zoneLocationsLoading: true, zoneLocations: null };\n case FETCH_ZONE_LOCATIONS:\n return { ...state, zoneLocations: action.payload, zoneLocationsLoading: false };\n case FETCH_ZONE_LOCATIONS_ERROR:\n return { ...state, zoneLocationsLoading: false, zoneLocations: null };\n default:\n return state;\n }\n}\n","import {\n ADD_NEW_POSTAL_CODE,\n ADD_NEW_POSTAL_CODE_ERROR,\n ADD_NEW_POSTAL_CODE_LOADING,\n FETCH_NETWORk_PARTNER_POSTAL_CODES,\n FETCH_NETWORk_PARTNER_POSTAL_CODES_ERROR,\n FETCH_NETWORk_PARTNER_POSTAL_CODES_LOADING,\n FETCH_NETWORk_PARTNER_SERVICES,\n FETCH_NETWORk_PARTNER_SERVICES_ERROR,\n FETCH_NETWORk_PARTNER_SERVICES_LOADING,\n NETWORK_PARTNER_REASSIGN_ERROR,\n NETWORK_PARTNER_REASSIGN_SUCCESS,\n RESET_NETWORK_PARTNER_REASSIGN_STATE,\n RESET_ADD_POSTAL_CODE_STATE,\n} from \"./postalCodeAllocations.action\";\n\nconst initialState = {\n networkPartnerServicesLoading: false,\n networkPartnerServices: null,\n networkPartnerPostalCodes: null,\n networkPartnerPostalCodesLoading: false,\n networkPartnerPostalCodesError: false,\n networkPartnerReassignError: false,\n networkPartnerReassignSuccess: false,\n addingPostalCodeSuccess: false,\n addingPostalCode: false,\n addingPostalCodeError: null,\n};\n\nexport default function (state = initialState, action) {\n switch (action.type) {\n case FETCH_NETWORk_PARTNER_SERVICES:\n return { ...state, networkPartnerServices: action.payload, networkPartnerServicesLoading: false };\n case FETCH_NETWORk_PARTNER_SERVICES_LOADING:\n return { ...state, networkPartnerServices: null, networkPartnerServicesLoading: true };\n case FETCH_NETWORk_PARTNER_SERVICES_ERROR:\n return { ...state, networkPartnerServices: null, networkPartnerServicesLoading: false };\n case FETCH_NETWORk_PARTNER_POSTAL_CODES:\n return { ...state, networkPartnerPostalCodes: action.payload, networkPartnerPostalCodesLoading: false, networkPartnerPostalCodesError: false };\n case FETCH_NETWORk_PARTNER_POSTAL_CODES_ERROR:\n return { ...state, networkPartnerPostalCodes: null, networkPartnerPostalCodesLoading: false, networkPartnerPostalCodesError: true };\n case FETCH_NETWORk_PARTNER_POSTAL_CODES_LOADING:\n return { ...state, networkPartnerPostalCodes: null, networkPartnerPostalCodesLoading: true, networkPartnerPostalCodesError: false };\n case ADD_NEW_POSTAL_CODE_LOADING:\n return { ...state, addingPostalCode: true, addingPostalCodeError: null, addingPostalCodeSuccess: false };\n case ADD_NEW_POSTAL_CODE:\n return { ...state, addingPostalCode: false, addingPostalCodeError: null, addingPostalCodeSuccess: true };\n case ADD_NEW_POSTAL_CODE_ERROR:\n return { ...state, addingPostalCode: false, addingPostalCodeError: action.payload, addingPostalCodeSuccess: false };\n case NETWORK_PARTNER_REASSIGN_ERROR:\n return { ...state, networkPartnerReassignError: true, networkPartnerReassignSuccess: false };\n case NETWORK_PARTNER_REASSIGN_SUCCESS:\n return { ...state, networkPartnerReassignError: false, networkPartnerReassignSuccess: true };\n case RESET_NETWORK_PARTNER_REASSIGN_STATE:\n return { ...state, networkPartnerReassignError: false, networkPartnerReassignSuccess: false };\n case RESET_ADD_POSTAL_CODE_STATE:\n return { ...state, addingPostalCode: false, addingPostalCodeError: null, addingPostalCodeSuccess: false };\n default:\n return state;\n }\n}\n","import { FETCH_NETWORk_PARTNERS, FETCH_SUBMISSION_METHOD } from \"../actions/index\";\n\nconst initialState = {\n networkPartners: null,\n submissionMethods: null,\n};\n\nexport default function (state = initialState, action) {\n switch (action.type) {\n case FETCH_NETWORk_PARTNERS:\n return { ...state, networkPartners: action.payload };\n case FETCH_SUBMISSION_METHOD:\n return { ...state, submissionMethods: action.payload };\n default:\n return { ...state };\n }\n}\n","import {\n FETCH_ORDER_EXCEPTIONS,\n} from '../../actions/types';\n\nexport default function(state = {}, action) {\n switch(action.type) {\n case FETCH_ORDER_EXCEPTIONS:\n return { ...state, exceptions: action.payload };\n default:\n return state;\n }\n}\n","import { combineReducers } from \"redux\";\nimport authReducer from \"./commonReducers/authReducer\";\nimport dataReducer from \"./commonReducers/dataReducer\";\nimport errorPopUpReducer from \"./commonReducers/errorPopUpReducer\";\n\n// agent\nimport agentStatsReducer from \"./agentReducers/agentStatsReducer\";\nimport agentApplicationsReducer from \"./agentReducers/agentApplicationsReducer\";\nimport agentServiceReducer from \"./agentReducers/agentServiceReducer\";\nimport changeTrackerStatusesReducer from \"./agentReducers/changeTrackerStatusesReducer\";\nimport agentViewOrdersReducer from \"./agentReducers/agentViewOrdersReducer\";\nimport trackerUpdateReducer from \"./agentReducers/trackerUpdateReducer\";\nimport notesReducer from \"./agentReducers/notesReducer\";\nimport billsReducer from \"./agentReducers/billsReducer\";\nimport billRecordReducer from \"./agentReducers/billRecordReducer\";\nimport deleteOrderByUploadBatchNoReducer from \"./agentReducers/deleteOrderByUploadBatchNoReducer\";\nimport reportsReducer from \"./agentReducers/reportsReducer\";\nimport pricingReducer from \"./agentReducers/pricingReducer\";\nimport weightReconciliationReducer from \"./agentReducers/weightReconciliationReducer\";\nimport uploadAdhocCSVReducer from \"./agentReducers/uploadAdhocCSVReducer\";\nimport networkPartnerReducer from \"./agentReducers/networkPartnerReducer\";\nimport codManagementReducer from \"./agentReducers/codManagementReducer\";\nimport consigneeDocumentsReducer from \"./agentReducers/consigneeDocumentsReducer\";\nimport correctOrderAddressReducer from \"./agentReducers/correctOrderAddressReducer\";\nimport hmsReducer from \"./agentReducers/hmsReducer\";\nimport mawbReducer from \"./agentReducers/mawbReducer\";\nimport midmileAwbReducer from \"./agentReducers/midmileAwbReducer\";\nimport missedSlasLastMileReducer from \"./agentReducers/missedSlasLastMileReducer\";\nimport npDelayReasonReducer from \"./agentReducers/npDelayReasonReducer\";\nimport lspUsersReducer from \"./agentReducers/lspUsersReducer\";\nimport zoneReducer from \"../components/agent/zoneLocations/zone.reducer\";\nimport networkPartnerAllocationsReducer from \"../components/agent/postalCodeAllocation/postalCodeAllocations.reducer\";\nimport commonReducer from \"../components/common/reducers\";\n\nimport { UNAUTH_USER } from \"../actions/types\";\nimport orderExceptionsReducer from \"./agentReducers/orderExceptionsReducer\";\n\nconst appReducer = combineReducers({\n auth: authReducer,\n data: dataReducer,\n\n // agent\n agentStats: agentStatsReducer,\n agentApplications: agentApplicationsReducer,\n services: agentServiceReducer,\n changeTrackerStatuses: changeTrackerStatusesReducer,\n agentOrders: agentViewOrdersReducer,\n trackerUpdate: trackerUpdateReducer,\n notes: notesReducer,\n bills: billsReducer,\n billRecord: billRecordReducer,\n deleteOrderByUploadBatchNo: deleteOrderByUploadBatchNoReducer,\n reports: reportsReducer,\n pricing: pricingReducer,\n weightReconciliation: weightReconciliationReducer,\n uploadAdhocCSV: uploadAdhocCSVReducer,\n networkPartner: networkPartnerReducer,\n codManagement: codManagementReducer,\n errorPopup: errorPopUpReducer,\n requestConsigneeDocs: consigneeDocumentsReducer,\n CorrectOrderAddress: correctOrderAddressReducer,\n hms: hmsReducer,\n mawb: mawbReducer,\n midmileAwb: midmileAwbReducer,\n missedSlasLastMile: missedSlasLastMileReducer,\n npDelayReason: npDelayReasonReducer,\n orderExceptions: orderExceptionsReducer,\n lspUsers: lspUsersReducer,\n zones: zoneReducer,\n networkPartnerAllocations: networkPartnerAllocationsReducer,\n common: commonReducer,\n});\n\nconst rootReducer = (state, action) => {\n if (action.type === UNAUTH_USER) {\n state = {};\n }\n\n return appReducer(state, action);\n};\n\nexport default rootReducer;\n","import {\n AUTH_USER,\n UNAUTH_USER,\n AUTH_ERROR,\n FETCH_SIGNED_IN_USER,\n EDIT_SIGNED_IN_USER,\n CHANGE_PASSWORD,\n RESET_PASSWORD,\n PASSWORD_SENT,\n CLEAR_AUTH_ERRORS,\n FETCH_USER_FEATURES\n} from '../../actions/types';\nimport axios from 'axios';\nimport { createObjPath } from '../../utils/ObjectUtils';\n\nexport default function(state = {}, action) {\n switch(action.type) {\n case AUTH_USER:\n axios.interceptors.request.use(\n config => {\n config.headers['X-Requested-With'] = 'XMLHttpRequest';\n config.headers['Content-Type'] = 'application/json';\n const defaultToken = localStorage.getItem('token');\n if (defaultToken) {\n config.headers['Authorization'] = 'Token ' + defaultToken;\n }\n return config;\n },\n error => Promise.reject(error)\n )\n return { ...state, error: null, authenticated: true };\n case UNAUTH_USER:\n return { authenticated: false };\n case AUTH_ERROR:\n return { ...state, error: true };\n case FETCH_SIGNED_IN_USER:\n return { ...state, user: action.payload };\n case EDIT_SIGNED_IN_USER:\n return { ...state, error: action.payload };\n case CHANGE_PASSWORD:\n return { ...state, error: action.payload, errorData: action.errorData };\n case RESET_PASSWORD:\n return { ...state, error: action.payload };\n case PASSWORD_SENT:\n return { ...state, error: action.payload };\n case CLEAR_AUTH_ERRORS:\n return { ...state, error: null };\n case FETCH_USER_FEATURES:\n const featuresObj = {}\n if (action.payload && action.payload.length) {\n for (let p of action.payload) {\n createObjPath(p.name, 1, featuresObj)\n }\n }\n return { ...state, features: action.payload, featuresObj };\n default:\n return state;\n }\n}\n","import {\n FETCH_ALL_COUNTRIES,\n FETCH_ALL_CURRENCIES,\n FETCH_AGENT_STATUSES,\n FETCH_TRACKER_STATUSES,\n FETCH_PRIVATE_TRACKER_STATUSES,\n FETCH_FIRSTMILE_STATUSES,\n FETCH_WAREHOUSE_STATUSES,\n FETCH_PORTS,\n FETCH_SLA_DESTINATIONS,\n FETCH_SLA_NPS\n} from '../../actions/types';\n\nexport default function(state = {}, action) {\n switch (action.type) {\n case FETCH_ALL_COUNTRIES:\n return { ...state, countries: action.payload };\n case FETCH_ALL_CURRENCIES:\n return { ...state, currencies: action.payload };\n case FETCH_AGENT_STATUSES:\n return { ...state, agentStatuses: action.payload };\n case FETCH_TRACKER_STATUSES:\n return { ...state, publicStatuses: action.payload };\n case FETCH_PRIVATE_TRACKER_STATUSES:\n return { ...state, privateStatuses: action.payload };\n case FETCH_FIRSTMILE_STATUSES:\n return { ...state, firstmileStatuses: action.payload };\n case FETCH_WAREHOUSE_STATUSES:\n return { ...state, warehouseStatuses: action.payload };\n case FETCH_PORTS:\n return { ...state, ports: action.payload };\n case FETCH_SLA_DESTINATIONS:\n return { ...state,slaDestinations: action.payload };\n case FETCH_SLA_NPS:\n return { ...state,slaNPs: action.payload };\n default:\n return state;\n }\n}\n","import {\n FETCH_AGENT_STATS\n} from '../../actions/types';\n\nexport default function(state = {}, action) {\n switch(action.type) {\n case FETCH_AGENT_STATS:\n return { ...state, stats: action.payload };\n default:\n return state;\n }\n}\n","import {\n ADD_AGENT_APPLICATIONS,\n CLEAR_AGENT_APPLICATIONS_ERRORS,\n CLEAR_PAGINATED_AGENT_APPLICATION_DATA,\n EDIT_AGENT_APPLICATIONS,\n EDIT_AGENT_APPLICATIONS_SECRET_KEY,\n EDIT_PAGINATED_AGENT_APPLICATION_ERROR,\n FETCH_AGENT_APPLICATIONS,\n FETCH_AGENT_APPLICATION_BY_ID,\n FETCH_PAGINATED_AGENT_APPLICATIONS,\n FETCH_PAGINATED_AGENT_APPLICATION_BY_ID,\n ADD_SUB_ACCOUNTS_AGENT_APPLICATION,\n ADD_SUB_ACCOUNTS_AGENT_APPLICATION_ERROR,\n CLEAR_SUB_ACCOUNTS_AGENT_APPLICATION_ERROR,\n} from \"../../actions/types\";\n\nexport default function (state = {}, action) {\n switch (action.type) {\n case ADD_AGENT_APPLICATIONS:\n return { ...state, error: action.payload };\n case EDIT_AGENT_APPLICATIONS_SECRET_KEY:\n return { ...state, editSecreyKeyError: action.payload };\n case EDIT_AGENT_APPLICATIONS:\n return { ...state, error: action.payload };\n case FETCH_AGENT_APPLICATIONS:\n return { ...state, agentApplications: action.payload };\n case FETCH_AGENT_APPLICATION_BY_ID:\n return { ...state, agentApplication: action.payload };\n case CLEAR_AGENT_APPLICATIONS_ERRORS:\n return { ...state, error: null };\n case FETCH_PAGINATED_AGENT_APPLICATIONS:\n return { ...state, paginatedAgentApps: action.payload };\n case FETCH_PAGINATED_AGENT_APPLICATION_BY_ID:\n return { ...state, paginatedAgentApp: action.payload };\n case EDIT_PAGINATED_AGENT_APPLICATION_ERROR:\n return { ...state, error: action.payload.error };\n case CLEAR_PAGINATED_AGENT_APPLICATION_DATA:\n return { ...state, paginatedAgentApp: null };\n case ADD_SUB_ACCOUNTS_AGENT_APPLICATION:\n return { ...state, subAccountMessage: action.payload, subAccountError: false };\n case ADD_SUB_ACCOUNTS_AGENT_APPLICATION_ERROR:\n return { ...state, subAccountError: action.payload, subAccountMessage: false };\n case CLEAR_SUB_ACCOUNTS_AGENT_APPLICATION_ERROR:\n return { ...state, subAccountError: action.payload, subAccountMessage: false };\n default:\n return state;\n }\n}\n","import {\n CHANGE_TRACKER_STATUSES,\n CLEAR_CHANGE_TRACKER_STATUSES_ACTION_ERROR\n} from '../../actions/types';\nimport moment from 'moment';\n\nexport default function(state = {}, action) {\n switch (action.type) {\n case CHANGE_TRACKER_STATUSES:\n return {\n ...state,\n error: action.payload,\n message: \"Tracker(s) status successfully changed.\",\n errorData: action.errorData,\n isSuccess: action.isSuccess,\n successMessage: action.successMessage,\n lastUpdated: moment()\n }\n case CLEAR_CHANGE_TRACKER_STATUSES_ACTION_ERROR:\n return { ...state, error: null, errorData: null, message: null }\n default:\n return state;\n }\n}\n","import {\n FETCH_ORDERS_BY_FILTER,\n FETCH_ORDERS_BY_FILTER_LOADING,\n DELETE_ORDER,\n CHANGE_AGENT_ORDERS_STATUSES,\n SUBMIT_ORDERS,\n RE_SUBMIT_TO_EXTERNAL_SERVICE,\n RE_SUBMIT_TO_EXTERNAL_SERVICE_ERROR,\n EDIT_ORDER,\n FETCH_ORDER_DETAILS,\n FETCH_SERVICE_DETAILS,\n ORDERS_ACTION_ERROR,\n CLEAR_ORDERS_ACTION_ERROR,\n FETCH_ORDER_PARTNER_UPDATES,\n FETCH_ORDER_REMITTANCE_DATA,\n CLEAR_ORDERS_DATA\n} from '../../actions/types';\nimport moment from 'moment';\n\nexport default function(state = {}, action) {\n switch(action.type) {\n case FETCH_ORDERS_BY_FILTER_LOADING:\n return {\n ...state,\n ordersFilterLoading: true\n }\n case FETCH_ORDERS_BY_FILTER:\n return {\n ...state,\n orders: action.payload.results,\n totalOrders: action.payload.count,\n totalPages: Math.ceil(action.payload.count/action.pageSize),\n lastUpdated: moment(),\n queryId: action.queryId,\n ordersFilterLoading: false\n };\n case DELETE_ORDER:\n return { ...state, error: action.payload, message: \"Order(s) successfully deleted.\" };\n case CHANGE_AGENT_ORDERS_STATUSES:\n return { ...state, error: action.payload, message: \"Order(s) status successfully changed.\" }\n case SUBMIT_ORDERS:\n return { ...state, error: action.payload, message: \"Order(s) successfully submitted.\" }\n case RE_SUBMIT_TO_EXTERNAL_SERVICE:\n return { ...state, error: action.payload, message: \"Order(s) successfully submitted to external services.\" }\n case RE_SUBMIT_TO_EXTERNAL_SERVICE_ERROR:\n return { ...state, error: action.payload, message: \"An error has occured, please try again.\"}\n case EDIT_ORDER:\n return { ...state, error: action.payload, errorData: action.errorData }\n case FETCH_ORDER_DETAILS:\n return { ...state, orderDetails: action.payload }\n case FETCH_SERVICE_DETAILS:\n return { ...state, serviceDetails: action.payload }\n case ORDERS_ACTION_ERROR:\n return { ...state, error: action.payload, message: \"An error has occured, please try again.\" }\n case CLEAR_ORDERS_ACTION_ERROR:\n return { ...state, error: null, errorData: null, message: null }\n case FETCH_ORDER_PARTNER_UPDATES:\n return {...state, partnerUpdates: action.payload}\n case FETCH_ORDER_REMITTANCE_DATA:\n return {...state, remittanceData: action.payload }\n case CLEAR_ORDERS_DATA:\n return {...state, orders: undefined}\n default:\n return state;\n }\n}\n","import {\n FETCH_TRACKER_UPDATE,\n FETCH_TRACKER_UPDATE_BY_IDS,\n FETCH_TRACKER_UPDATE_BY_FILTER,\n FETCH_TRACKER_UPDATE_BY_ID,\n CREATE_TRACKER_UPDATE,\n EDIT_TRACKER_UPDATE,\n DELETE_TRACKER_UPDATE_BY_ID,\n DELETE_MULTIPLE_TRACKER_UPDATE,\n TRACKER_UPDATE_ERROR,\n CLEAR_TRACKER_UPDATE_ERRORS\n} from '../../actions/types';\nimport moment from 'moment';\n\nexport default function(state = {}, action) {\n switch (action.type) {\n case FETCH_TRACKER_UPDATE:\n return {\n ...state,\n trackerUpdates: action.payload.results,\n totalTrackerUpdates: action.payload.count,\n totalPages: Math.ceil(action.payload.count / 50),\n lastUpdated: moment()\n };\n case FETCH_TRACKER_UPDATE_BY_IDS:\n return {\n ...state,\n trackerUpdates: action.payload,\n totalTrackerUpdates: action.payload.length,\n totalPages: Math.ceil(action.payload.length / 50),\n lastUpdated: moment()\n };\n case FETCH_TRACKER_UPDATE_BY_FILTER:\n return {\n ...state,\n trackerUpdates: action.payload.results,\n totalTrackerUpdates: action.payload.count,\n totalPages: Math.ceil(action.payload.count / 50),\n lastUpdated: moment()\n };\n case FETCH_TRACKER_UPDATE_BY_ID:\n return {\n ...state,\n trackerUpdate: action.payload\n };\n case CREATE_TRACKER_UPDATE:\n return {\n ...state,\n error: action.payload,\n errorData: action.errorData,\n isSuccess: !!action.isSuccess,\n successMessage: action.successMessage\n };\n case EDIT_TRACKER_UPDATE:\n return {\n ...state,\n error: action.payload,\n errorData: action.errorData,\n message: 'Edit tracker update success!'\n };\n case DELETE_TRACKER_UPDATE_BY_ID:\n let updatedState = {\n ...state,\n trackerUpdates: state.trackerUpdates.filter(update => update.update_id !== action.updateId)\n }\n return {\n ...updatedState,\n error: action.payload,\n message: 'Delete tracker update by id success!'\n };\n case DELETE_MULTIPLE_TRACKER_UPDATE:\n let newState = {\n ...state,\n trackerUpdates: state.trackerUpdates.filter(update => !action.deletedIds.includes(update.update_id))\n }\n return {\n ...newState,\n error: action.payload,\n deleteSuccessStatus: action.deleteSuccessStatus,\n message: 'Delete multiple tracker update success!'\n };\n case TRACKER_UPDATE_ERROR:\n return {\n ...state,\n error: action.payload,\n message: 'Error occured!'\n };\n case CLEAR_TRACKER_UPDATE_ERRORS:\n return { ...state, error: null, errorData: null, message: null };\n default:\n return state;\n }\n}\n","import {\n GET_NOTES_HEADER,\n ADD_NOTES,\n FETCH_NOTES_BY_FILTER,\n FETCH_NOTE_BY_TRACKING_NUMBER,\n FETCH_NOTES_REPORT,\n DELETE_NOTES,\n CLEAR_NOTES_ERRORS\n} from '../../actions/types';\nimport moment from 'moment';\n\nexport default function(state = {}, action) {\n switch (action.type) {\n case GET_NOTES_HEADER:\n return {\n ...state,\n notesHeader: action.payload,\n };\n case ADD_NOTES:\n return {\n ...state,\n error: action.payload,\n errorData: action.errorData,\n lastUpdated: moment()\n };\n case FETCH_NOTES_BY_FILTER:\n return {\n ...state,\n notes: action.payload.results,\n totalNotes: action.payload.count,\n totalPages: Math.ceil(action.payload.count / 50),\n lastUpdated: moment()\n };\n case FETCH_NOTE_BY_TRACKING_NUMBER:\n return {\n ...state,\n noteDetails: action.payload,\n };\n case FETCH_NOTES_REPORT:\n return {\n ...state,\n notesReport: action.payload,\n emailsMessage: action.emailsMessage,\n lastUpdated: moment()\n };\n case DELETE_NOTES:\n return {\n ...state,\n error: action.payload,\n message: 'Delete notes success!'\n };\n case CLEAR_NOTES_ERRORS:\n return { ...state, error: null, errorData: null, message: null, notesReport: [], emailsMessage: null };\n default:\n return state;\n }\n}\n","import {\n ADD_BILLS,\n UPDATE_BILLS,\n FETCH_BILLS_PARAMS,\n FETCH_BILLS_BY_FILTER,\n FETCH_BILL_BY_ID,\n CLEAR_BILLS_ERRORS\n} from '../../actions/types';\nimport moment from 'moment';\n\nexport default function(state = {}, action) {\n switch (action.type) {\n case ADD_BILLS:\n return {\n ...state,\n error: action.payload,\n errorData: action.errorData,\n addBillsData: action.addBillsData,\n lastUpdated: moment()\n };\n case UPDATE_BILLS:\n return {\n ...state,\n error: action.payload,\n errorData: action.errorData,\n lastUpdated: moment()\n };\n case FETCH_BILLS_PARAMS:\n return {\n ...state,\n billsParams: action.payload,\n };\n case FETCH_BILLS_BY_FILTER:\n return {\n ...state,\n bills: action.payload.results,\n totalBills: action.payload.count,\n totalPages: Math.ceil(action.payload.count / 50),\n lastUpdated: moment()\n };\n case FETCH_BILL_BY_ID:\n return {\n ...state,\n billDetails: action.payload,\n };\n case CLEAR_BILLS_ERRORS:\n return { ...state, error: null, errorData: null, message: null };\n default:\n return state;\n }\n}\n","import {\n CREATE_BULK_BILL_RECORD,\n CREATE_BULK_BILL_RECORD_RESOLVE,\n FETCH_BILL_RECORD_PARAMS,\n FETCH_BILL_RECORD_BY_FILTER,\n FETCH_BILL_RECORD_BY_ID,\n FETCH_BILL_RECORD_BY_BILL_ID,\n FETCH_BILL_RECORD_BY_TRACKING_NO,\n CLEAR_BILL_RECORD_ERRORS\n} from '../../actions/types';\nimport moment from 'moment';\n\nexport default function(state = {}, action) {\n switch (action.type) {\n case CREATE_BULK_BILL_RECORD:\n return {\n ...state,\n error: action.payload,\n errorData: action.errorData,\n message: 'Success!',\n lastUpdated: moment()\n };\n case CREATE_BULK_BILL_RECORD_RESOLVE:\n return {\n ...state,\n error: action.payload,\n errorData: action.errorData,\n message: 'Resolve errors success!',\n lastUpdated: moment()\n };\n case FETCH_BILL_RECORD_PARAMS:\n return {\n ...state,\n billRecordParams: action.payload,\n };\n case FETCH_BILL_RECORD_BY_FILTER:\n return {\n ...state,\n billRecord: action.payload.results,\n totalBillRecord: action.payload.count,\n totalPages: Math.ceil(action.payload.count / 50),\n lastUpdated: moment()\n };\n case FETCH_BILL_RECORD_BY_ID:\n return {\n ...state,\n billRecordDetails: action.payload,\n };\n case FETCH_BILL_RECORD_BY_BILL_ID:\n return {\n ...state,\n billRecord: action.payload.results,\n totalBillRecord: action.payload.count,\n totalPages: Math.ceil(action.payload.count / 50),\n lastUpdated: moment()\n };\n case FETCH_BILL_RECORD_BY_TRACKING_NO:\n return {\n ...state,\n billRecord: action.payload.results,\n totalBillRecord: action.payload.count,\n totalPages: Math.ceil(action.payload.count / 50),\n lastUpdated: moment()\n };\n case CLEAR_BILL_RECORD_ERRORS:\n return { ...state, error: null, errorData: null, message: null };\n default:\n return state;\n }\n}\n","import {\n DELETE_ORDER_BY_UPLOAD_BATCH_NO,\n CLEAR_DELETE_ORDER_BY_UPLOAD_BATCH_NO_ERROR\n} from '../../actions/types';\nimport moment from 'moment';\n\nexport default function(state = {}, action) {\n switch(action.type) {\n case DELETE_ORDER_BY_UPLOAD_BATCH_NO:\n return {\n ...state,\n error: action.payload,\n message: action.message,\n status: action.status,\n lastUpdated: moment()\n }\n case CLEAR_DELETE_ORDER_BY_UPLOAD_BATCH_NO_ERROR:\n return { ...state, error: null, message: null }\n default:\n return state;\n }\n}\n","import {\n FETCH_ORDERS_IN_CSV,\n FETCH_TRACKER_UPDATES_IN_CSV,\n CLEAR_REPORT_ERRORS\n} from '../../actions/types';\nimport moment from 'moment';\n\nexport default function(state = {}, action) {\n switch(action.type) {\n case FETCH_ORDERS_IN_CSV:\n return {\n ...state,\n ordersInCSV: action.payload,\n emailsMessage: action.emailsMessage,\n lastUpdatedFetchOrdersDetails: moment()\n };\n case FETCH_TRACKER_UPDATES_IN_CSV:\n return {\n ...state,\n trackerUpdatesInCSV: action.payload,\n emailsMessage: action.emailsMessage,\n lastUpdatedFetchTrackerUpdates: moment()\n };\n case CLEAR_REPORT_ERRORS:\n return { ...state, error: null, message: null, ordersInCSV: [], trackerUpdatesInCSV: [], emailsMessage: null };\n default:\n return state;\n }\n}\n","import {\n GET_ORDER_PRICING_PARAMS,\n GET_ORDER_PRICING,\n ADD_ORDER_PRICING,\n GET_ORDER_PRICING_DETAILS,\n CLEAR_PRICING_ERRORS\n} from '../../actions/types';\nimport moment from 'moment';\n\nexport default function(state = {}, action) {\n switch(action.type) {\n case GET_ORDER_PRICING_PARAMS:\n return { ...state, orderPricingParams: action.payload };\n case GET_ORDER_PRICING:\n return {\n ...state,\n orderPricing: action.payload.results,\n totalPricing: action.payload.count,\n totalPages: Math.ceil(action.payload.count/50),\n lastUpdated: moment()\n };\n case ADD_ORDER_PRICING:\n return {\n ...state,\n error: action.payload,\n errorData: action.errorData,\n lastUpdated: moment()\n };\n case GET_ORDER_PRICING_DETAILS:\n return { ...state, orderPricingDetails: action.payload };\n case CLEAR_PRICING_ERRORS:\n return { ...state, error: null, errorData: null };\n default:\n return state;\n }\n}\n","import {\n ADD_ORDER_WEIGHT_RECONCILIATION\n} from '../../actions/types';\nimport moment from 'moment';\n\nexport default function(state = {}, action) {\n switch(action.type) {\n case ADD_ORDER_WEIGHT_RECONCILIATION:\n return {\n ...state,\n errorData: action.errorData,\n lastSubmitted: moment()\n };\n default:\n return state;\n }\n}\n","import {\n UPLOAD_ADHOC_CSV,\n CLEAR_UPLOAD_ADHOC_CSV_ERRORS\n} from '../../actions/types';\nimport moment from 'moment';\n\nexport default function(state = {}, action) {\n switch (action.type) {\n case UPLOAD_ADHOC_CSV:\n return {\n ...state,\n error: action.payload,\n errorData: action.errorData,\n lastUpdated: moment()\n };\n case CLEAR_UPLOAD_ADHOC_CSV_ERRORS:\n return { ...state, error: null, errorData: null };\n default:\n return state;\n }\n}\n","import {\n FETCH_NETWORK_PARTNER_LOADING,\n FETCH_NETWORK_PARTNER_SUCCESS,\n FETCH_NETWORK_PARTNER_FAIL,\n} from '../../actions/types'\n\nexport default function(state={\n partners: [],\n isLoading: false,\n isError: false,\n error: null\n}, action) {\n switch (action.type) {\n case FETCH_NETWORK_PARTNER_LOADING:\n return {\n ...state,\n isLoading: true, isError: false\n }\n case FETCH_NETWORK_PARTNER_SUCCESS:\n return {\n ...state, isLoading: false, isError: false,\n partners: action.payload\n }\n case FETCH_NETWORK_PARTNER_FAIL:\n return {\n ...state, isLoading: false, isError: true,\n error: action.payload\n }\n default:\n return state\n }\n}","import {\n FETCH_PARTNER_REMITTANCE_BY_FILTER,\n FETCH_MERCHANT_REMITTANCE_BY_FILTER,\n CLEAR_COD_MANAGEMENT_ERRORS,\n UPLOAD_COD_REMITTANCE,\n FETCH_ALL_PARTNERS,\n FETCH_PARTNER_DUES_BY_FILTER,\n FETCH_MERCHANT_DUES_BY_FILTER,\n CLEAR_PARTNER_REMITTANCE,\n CLEAR_MERCHANT_REMITTANCE,\n CLEAR_PARTNER_DUES,\n CLEAR_MERCHANT_DUES\n} from '../../actions/types';\nimport moment from 'moment';\n\nexport default function(state = {}, action) {\n switch (action.type) {\n case FETCH_PARTNER_DUES_BY_FILTER:\n return {\n ...state,\n partnerDuesData: action.payload.results,\n totalPartnerDuesData: action.payload.count,\n totalPages: Math.ceil(action.payload.count / 50),\n lastUpdated: moment()\n }\n case FETCH_MERCHANT_DUES_BY_FILTER:\n return {\n ...state,\n merchantDuesData: action.payload.results,\n totalMerchantDuesData: action.payload.count,\n totalPages: Math.ceil(action.payload.count / 50),\n lastUpdated: moment()\n }\n case FETCH_PARTNER_REMITTANCE_BY_FILTER:\n return {\n ...state,\n partnerRemittanceData: action.payload.results,\n totalPartnerRemittanceData: action.payload.count,\n totalPages: Math.ceil(action.payload.count / 50),\n lastUpdated: moment()\n }\n case FETCH_MERCHANT_REMITTANCE_BY_FILTER:\n return {\n ...state,\n merchantRemittanceData: action.payload.results,\n totalMerchantRemittanceData: action.payload.count,\n totalPages: Math.ceil(action.payload.count / 50),\n lastUpdated: moment()\n }\n case UPLOAD_COD_REMITTANCE:\n return {\n ...state,\n error: action.payload,\n errorData: action.errorData,\n lastUpdated: moment()\n };\n case FETCH_ALL_PARTNERS:\n return { ...state, partners: action.payload };\n case CLEAR_COD_MANAGEMENT_ERRORS:\n return { ...state, error: null, errorData: null, message: null };\n case CLEAR_PARTNER_DUES:\n return {...state, partnerDuesData: undefined}\n case CLEAR_MERCHANT_DUES:\n return {...state, merchantDuesData: undefined}\n case CLEAR_PARTNER_REMITTANCE:\n return {...state, partnerRemittanceData: undefined}\n case CLEAR_MERCHANT_REMITTANCE:\n return {...state, merchantRemittanceData: undefined}\n default:\n return state;\n }\n}\n","import { OPEN_ERROR_POPUP, CLOSE_ERROR_POPUP } from '../../actions/types';\n\nexport default function(state = { open: false }, action) {\n\tswitch (action.type) {\n\t\tcase OPEN_ERROR_POPUP:\n return { ...state, open: true };\n case CLOSE_ERROR_POPUP:\n\t\t\treturn { ...state, open: false };\n\n\t\tdefault:\n\t\t\treturn state;\n\t}\n}\n","import {\n EMAIL_CONSIGNEE,\n FETCH_CONSIGNEE_DOC_TYPES\n} from '../../actions/types';\n\nexport default function(state = {}, action) {\n switch(action.type) {\n case EMAIL_CONSIGNEE:\n return { ...state, result: action.payload, errorData: action.errorData};\n case FETCH_CONSIGNEE_DOC_TYPES:\n return { ...state, documentTypes: action.payload };\n default:\n return state;\n }\n}\n","import {\n ADD_CORRECT_ORDER_ADDRESS\n} from '../../actions/types';\nimport moment from 'moment';\n\nexport default function(state = {}, action) {\n switch(action.type) {\n case ADD_CORRECT_ORDER_ADDRESS:\n return {\n ...state,\n errorData: action.errorData,\n lastSubmitted: moment()\n };\n default:\n return state;\n }\n}\n","import {\n MAWB_FETCHED,\n MAWB_FETCHED_ERROR,\n MAWB_FETCH_LOADING,\n MAWB_CREATED,\n MAWB_CREATE_LOADING,\n MAWB_CREATE_ERROR,\n MAWB_CREATE_RESET,\n MAWB_SELECT_ALL,\n MAWB_SELECT_TOGGLE,\n MAWB_FILE_FETCHED,\n MAWB_FILE_LOADING,\n MAWB_FILE_RESET\n} from '../../actions/types'\n\nexport default function(state = { create: {}, mawbs: {} }, action) {\n switch (action.type) {\n case MAWB_FILE_RESET:\n state.mawbs.allSelected = false;\n state.mawbs.actionable = false;\n state.mawbs.report = false;\n state.mawbs.raw.results = state.mawbs.raw.results.map(m => {\n m.isSelected = false;\n return m;\n });\n return{ ...state };\n\n case MAWB_FILE_LOADING:\n state.mawbs.actionable = false;\n return { ...state }\n\n case MAWB_FILE_FETCHED:\n state.mawbs = {\n ...state.mawbs,\n report: action.payload\n };\n return { ...state }\n\n case MAWB_SELECT_ALL:\n state.mawbs.allSelected = !state.mawbs.allSelected;\n state.mawbs.actionable = state.mawbs.allSelected;\n state.mawbs.raw.results = state.mawbs.raw.results.map(m => {\n m.isSelected = state.mawbs.allSelected;\n return m;\n });\n return {...state }\n\n case MAWB_SELECT_TOGGLE:\n const newArr = [...state.mawbs.raw.results];\n newArr[action.payload].isSelected = !newArr[action.payload].isSelected;\n state.mawbs.actionable = false;\n newArr.forEach(r => {\n if (r.isSelected) {\n state.mawbs.actionable = true;\n }\n });\n state.mawbs.raw.results = newArr;\n state.mawbs.allSelected = false;\n return { ...state }\n\n case MAWB_FETCHED:\n state.mawbs.allSelected = false;\n return {\n ...state,\n mawbs: { ...state.mawbs, raw: action.payload, loading: false, error: false }\n };\n\n case MAWB_FETCH_LOADING:\n return {\n ...state,\n mawbs: { ...state.mawbs, raw: false, loading: true, error: false }\n }\n\n case MAWB_FETCHED_ERROR:\n return {\n ...state,\n mawbs: {...state.mawbs, raw: false, loading: false, error: action.payload }\n }\n\n // create\n case MAWB_CREATE_RESET:\n return {\n ...state,\n create: { loading: false, success: false, error: false }\n }\n case MAWB_CREATE_LOADING:\n return {\n ...state,\n create: { loading: true, success: false, error: false }\n }\n case MAWB_CREATED:\n return {\n ...state,\n create: { loading: false, success: action.payload, error: false }\n }\n case MAWB_CREATE_ERROR:\n return {\n ...state,\n create: { loading: false, success: false, error: action.payload }\n }\n default:\n return state;\n }\n}","import {\n MIDMILE_AWB_FETCHED,\n MIDMILE_AWB_FETCHED_ERROR,\n MIDMILE_AWB_FETCH_LOADING,\n MIDMILE_AWB_SELECT_ALL,\n MIDMILE_AWB_SELECT_TOGGLE,\n MIDMILE_AWB_FETCH_DETAILS,\n MIDMILE_AWB_FETCH_DETAILS_LOADING,\n MIDMILE_AWB_DOCUMENT_UPLOAD,\n MIDMILE_AWB_DOCUMENT_DELETE,\n MIDMILE_AWB_UPDATE_TRACKING_STATUS,\n MIDMILE_AWB_FETCH_ACTIVITY_LOGS,\n FETCH_EXCHANGE_RATES,\n MIDMILE_AWB_FETCH_COST\n} from '../../actions/types'\n\nexport default function (state = { create: {}, awbs: {} }, action) {\n switch (action.type) {\n case MIDMILE_AWB_SELECT_ALL:\n state.awbs.allSelected = !state.awbs.allSelected;\n state.awbs.actionable = state.awbs.allSelected;\n state.awbs.raw.results = state.awbs.raw.results.map(m => {\n m.isSelected = state.awbs.allSelected;\n return m;\n });\n return { ...state }\n\n case MIDMILE_AWB_SELECT_TOGGLE:\n const newArr = [...state.awbs.raw.results];\n newArr[action.payload].isSelected = !newArr[action.payload].isSelected;\n state.awbs.actionable = false;\n newArr.forEach(r => {\n if (r.isSelected) {\n state.awbs.actionable = true;\n }\n });\n state.awbs.raw.results = newArr;\n state.awbs.allSelected = false;\n return { ...state }\n\n case MIDMILE_AWB_FETCHED:\n state.awbs.allSelected = false;\n return {\n ...state,\n awbs: { ...state.awbs, raw: action.payload, loading: false, error: false }\n };\n\n case MIDMILE_AWB_FETCH_LOADING:\n return {\n ...state,\n awbs: { ...state.awbs, raw: false, loading: true, error: false }\n }\n case MIDMILE_AWB_FETCHED_ERROR:\n return {\n ...state,\n awbs: { ...state.awbs, raw: false, loading: false, error: action.payload }\n }\n case MIDMILE_AWB_FETCH_DETAILS_LOADING:\n return {\n ...state,\n isLoading: true,\n awbDetails: null\n }\n case MIDMILE_AWB_FETCH_DETAILS:\n return {\n ...state,\n isLoading: false,\n awbDetails: action.payload\n }\n case MIDMILE_AWB_DOCUMENT_UPLOAD:\n let document_urls = state.awbDetails?.document_urls ? state.awbDetails?.document_urls : [];\n document_urls.push(action.payload);\n return {\n ...state,\n awbDetails: { ...state.awbDetails, document_urls }\n }\n case MIDMILE_AWB_DOCUMENT_DELETE:\n let docs = state.awbDetails?.document_urls.filter(doc => doc.id !== action.payload)\n return {\n ...state,\n awbDetails: { ...state.awbDetails, document_urls: docs }\n }\n case MIDMILE_AWB_UPDATE_TRACKING_STATUS:\n let details = { ...state.awbDetails, latest_status_airway_bill_level: action?.payload?.latest_status_airway_bill_level, remarks: action?.payload?.remarks || \"\" };\n if (action?.payload?.latest_status_airway_bill_level === \"MAWB\") {\n details = { ...details, ...action?.payload?.mawb }\n } else {\n let hawbs = [...state.awbDetails?.hawb];\n let hawbUpdateData = action?.payload?.hawb;\n hawbUpdateData.forEach(data => {\n hawbs = hawbs.map((hawbObj => {\n if (hawbObj.hawb_id === data.hawb_id) {\n hawbObj = { ...hawbObj, ...data };\n }\n return hawbObj;\n }));\n\n });\n details = { ...details, hawb: hawbs }\n }\n return {\n ...state,\n awbDetails: details\n }\n case MIDMILE_AWB_FETCH_ACTIVITY_LOGS:\n return {\n ...state,\n activityLogs: action.payload\n }\n case FETCH_EXCHANGE_RATES:\n return {\n ...state,\n exchangeRates: action.payload\n }\n case MIDMILE_AWB_FETCH_COST:\n return {\n ...state,\n costDetails: action.payload\n }\n default:\n return state;\n }\n}","import {\n MISSED_SLAS_LOADING,\n MISSED_SLAS_ERROR,\n MISSED_SLAS_SUCCESS,\n MISSED_SLAS_SELECT_TOGGLE,\n MISSED_SLAS_SELECT_ALL,\n MISSED_SLAS_VIEW_RESET_SELECTION,\n MISSED_SLAS_VIEW_FILE_SUCCESS\n} from '../../actions/types';\n\nexport default function(state = {}, action) {\n switch (action.type) {\n case MISSED_SLAS_LOADING:\n return {\n ...state, \n loading: true, \n } \n case MISSED_SLAS_ERROR:\n return {\n ...state, \n loading: false, \n error: action.payload, \n slas: false \n }\n case MISSED_SLAS_SUCCESS:\n return {\n ...state, \n loading: false, \n error: false, \n slas: action.payload \n }\n case MISSED_SLAS_SELECT_ALL:\n state.slas.allSelected = !state.slas.allSelected;\n state.slas.actionable = state.slas.allSelected;\n state.slas.results = state.slas.results.map((m) => {\n m.isSelected = state.slas.allSelected;\n return m;\n });\n return { \n ...state,\n }\n case MISSED_SLAS_SELECT_TOGGLE:\n const newArr = [...state.slas.results];\n newArr[action.payload].isSelected = !newArr[action.payload].isSelected;\n\n state.slas.actionable = false;\n newArr.forEach((r) => {\n if (r.isSelected) {\n state.slas.actionable = true;\n }\n });\n\n state.slas.results = newArr;\n state.slas.allSelected = false;\n return {\n ...state,\n };\n case MISSED_SLAS_VIEW_RESET_SELECTION:\n const results = [...state.slas.results].map((r) => {\n r.isSelected = false;\n return r;\n });\n\n state.slas.results = results;\n state.slas.allSelected = false;\n return {\n ...state,\n };\n\n case MISSED_SLAS_VIEW_FILE_SUCCESS:\n return {\n ...state,\n loading: false,\n slas: {\n ...state.slas,\n file: action.payload,\n },\n };\n default:\n return state;\n }\n}","import { \n NP_DELAY_REASON_CREATE_LOADING,\n NP_DELAY_REASON_CREATED,\n NP_DELAY_REASON_CREATE_ERROR,\n} from '../../actions/types';\n\n\nexport default function(state = { create: {} }, action) {\n switch (action.type) {\n case NP_DELAY_REASON_CREATE_LOADING:\n return {\n ...state,\n create: {\n ...state.create,\n loading: true,\n success: false,\n error: false\n }\n };\n case NP_DELAY_REASON_CREATED:\n return {\n ...state,\n create: {\n ...state.create,\n loading: false,\n success: action.payload,\n error: false\n }\n };\n case NP_DELAY_REASON_CREATE_ERROR:\n return {\n ...state,\n create: {\n ...state.create,\n loading: false,\n success: false,\n error: action.payload\n }\n };\n default:\n return state;\n }\n}\n","import { createStore, applyMiddleware } from 'redux';\nimport reduxThunk from 'redux-thunk';\nimport reducers from './reducers';\n\nconst createStoreWithMiddleware = applyMiddleware(reduxThunk)(createStore);\nconst store = createStoreWithMiddleware(\n reducers,\n window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__());\n\nexport default store","import createHistory from \"history/createBrowserHistory\";\n\nexport const history = createHistory();","import axios from \"axios\";\n\nexport const FETCH_ZONE_LIST = \"fetch_zone_list\";\nexport const FETCH_ZONE_LOCATIONS = \"fetch_zone_locations\";\nexport const FETCH_ZONE_LIST_LOADING = \"fetch_zone_list_loading\";\nexport const FETCH_ZONE_LOCATIONS_LOADING = \"fetch_zone_locations_loading\";\nexport const FETCH_ZONE_LIST_ERROR = \"fetch_zone_list_error\";\nexport const FETCH_ZONE_LOCATIONS_ERROR = \"fetch_zone_locations_error\";\n\nexport function fetchZoneList(params) {\n return async function (dispatch) {\n try {\n dispatch({\n type: FETCH_ZONE_LIST_LOADING,\n });\n const res = await axios.get(\"/api/location/zones/\", { params });\n dispatch({\n type: FETCH_ZONE_LIST,\n payload: res.data,\n });\n } catch (err) {\n dispatch({\n type: FETCH_ZONE_LIST_ERROR,\n });\n console.log(err);\n }\n };\n}\n\nexport function fetchZoneLocations(params) {\n return async function (dispatch) {\n try {\n dispatch({\n type: FETCH_ZONE_LOCATIONS_LOADING,\n });\n const res = await axios.get(\"/api/location/zone-locations/\", { params });\n dispatch({\n type: FETCH_ZONE_LOCATIONS,\n payload: res.data,\n });\n } catch (err) {\n dispatch({\n type: FETCH_ZONE_LOCATIONS_ERROR,\n });\n console.log(err);\n }\n };\n}\n","import axios from 'axios'\n\nexport const OrderEscalationAPI = {\n getEscalationStatuses: async () => {\n const response = await axios.get(\"/api/data/escalation-statuses/\")\n return response.data\n },\n escalateOrders: async ({\n order_ids, reason, escalation_type\n }) => {\n const url = \"/api/order/escalate-exceptions/\"\n const data = {\n order_ids,\n escalation_type,\n order_activity_reason: reason,\n }\n const response = await axios.post(url, data)\n return response.data\n },\n fetchEscalationTypes: async () => {\n try {\n const url = '/api/data/escalation-types/'\n const { data } = await axios.get(url)\n return {\n isError: false,\n data\n }\n } catch(err) {\n const data = err.response?.data\n return {\n isError: true,\n error: data\n }\n }\n }\n}\n","export const createObjPath = (path, value, root) => {\n var segments = path.split('.'),\n cursor = root || window,\n segment,\n i;\n\n for (i = 0; i < segments.length - 1; ++i) {\n segment = segments[i];\n cursor = cursor[segment] = cursor[segment] || {};\n }\n\n return cursor[segments[i]] = value;\n}\n\nexport const getObjectValueByPath = (obj, path) => {\n var paths = path.split('.')\n , current = obj\n , i;\n\n for (i = 0; i < paths.length; ++i) {\n if (current[paths[i]] === undefined) {\n return 0;\n } else {\n current = current[paths[i]];\n }\n }\n return current\n}","import axios from 'axios';\nimport {\n AUTH_USER,\n AUTH_ERROR,\n FETCH_SIGNED_IN_USER,\n EDIT_SIGNED_IN_USER,\n CHANGE_PASSWORD,\n RESET_PASSWORD,\n PASSWORD_SENT,\n CLEAR_AUTH_ERRORS,\n FETCH_USER_FEATURES\n} from '../types';\n\n\nconst fetchUserDataAndFeatures = async (type) => {\n const userId = localStorage.getItem('_id')\n const urls = {\n feature: `/api/auth/feature/`,\n profile: `/api/auth/profile/${userId}/`\n }\n const response = await axios.get(urls[type])\n return response\n}\n\nexport function signinUser(username, password, history) {\n console.log('signing in...');\n return function(dispatch) {\n axios.post(`/api/auth/login/`,\n {\n \"username\": username,\n \"password\": password\n }\n )\n .then((response) => {\n const { token, user_id } = response.data;\n localStorage.setItem('token', token);\n localStorage.setItem('_id', user_id);\n \n // Move dispatch of AUTH_USER, since token is already retrieved\n dispatch({\n type: AUTH_USER,\n });\n Promise.all([\n fetchUserDataAndFeatures('profile'),\n fetchUserDataAndFeatures('feature')\n ]).then(result => {\n const signedInUserResponse = result[0]\n const userFeatureResponse = result[1]\n dispatch(fetchSignedInUser(signedInUserResponse.data))\n dispatch(fetchUserFeatures(userFeatureResponse.data))\n\n // Redirect after getting `profile` and `feature`\n history.push('/agent/view-orders');\n // if (userFeatureResponse.data.some(f => f.name === 'order.view')) {\n // history.push('/agent/view-orders');\n // } else {\n // history.push('/');\n // }\n })\n })\n .catch((error) => {\n dispatch({\n type: AUTH_ERROR\n });\n });\n }\n}\n\nexport function signoutUser(history) {\n console.log('signing out...');\n localStorage.clear();\n\n return function(dispatch) {\n history.push('/signin');\n }\n}\n\nexport function fetchSignedInUser(data) {\n console.log('fetching currently signin user...');\n\n return function(dispatch) {\n if (data) {\n dispatch({\n type: FETCH_SIGNED_IN_USER,\n payload: data\n });\n } else {\n const userId = localStorage.getItem('_id')\n axios.get(`/api/auth/profile/${userId}/`)\n .then((response) => {\n dispatch({\n type: FETCH_SIGNED_IN_USER,\n payload: response.data\n });\n })\n .catch((error) => {\n console.log(error);\n });\n }\n }\n}\n\nexport function fetchUserFeatures(data) {\n console.log('fetching currently user\\'s features...');\n\n return function(dispatch) {\n if (data) {\n dispatch({\n type: FETCH_USER_FEATURES,\n payload: data\n });\n } else {\n axios.get(`/api/auth/feature/`)\n .then((response) => {\n dispatch({\n type: FETCH_USER_FEATURES,\n payload: response.data\n });\n })\n .catch((error) => {\n console.log(error);\n });\n }\n }\n}\n\nexport function editSignedInUser(id, emailValue, nameValue) {\n console.log('editing currently signin user...');\n\n return function(dispatch) {\n axios.patch(`/api/auth/profile/${id}/`,\n {\n \"email\": emailValue,\n \"name\": nameValue\n }\n )\n .then((response) => {\n dispatch({\n type: EDIT_SIGNED_IN_USER,\n payload: false\n });\n dispatch(fetchSignedInUser());\n })\n .catch((response) => {\n dispatch({\n type: EDIT_SIGNED_IN_USER,\n payload: true\n });\n })\n }\n}\n\nexport function changePassword(id, currentPassword, newPasswordValue) {\n console.log('changing password...');\n\n return function(dispatch) {\n axios.patch(`/api/auth/profile/${id}/`,\n {\n \"current_password\": currentPassword,\n \"password\": newPasswordValue,\n }\n )\n .then((response) => {\n dispatch({\n type: CHANGE_PASSWORD,\n payload: false\n });\n })\n .catch((error) => {\n dispatch({\n type: CHANGE_PASSWORD,\n payload: true,\n errorData: error.response.data\n });\n });\n }\n}\n\nexport function resetPassword(emailAddress) {\n console.log('resetting password...');\n\n return function(dispatch) {\n axios.post(`/api/auth/reset-password/request/`,\n {\n \"email\": emailAddress,\n \"portal\": 'ops',\n },\n { headers: { 'Content-Type': 'application/json' } }\n )\n .then((response) => {\n dispatch({\n type: RESET_PASSWORD,\n payload: false\n });\n })\n .catch((error) => {\n dispatch({\n type: RESET_PASSWORD,\n payload: true\n });\n });\n }\n}\n\nexport function passwordSent(newPassword, resetToken) {\n console.log('password sent...');\n\n return function(dispatch) {\n axios.post(`/api/auth/reset-password/`,\n {\n \"resetToken\": resetToken,\n \"newPassword\": newPassword,\n \"portal\": 'ops',\n },\n { headers: { 'Content-Type': 'application/json' } }\n )\n .then((response) => {\n dispatch({\n type: PASSWORD_SENT,\n payload: false\n });\n })\n .catch((error) => {\n dispatch({\n type: PASSWORD_SENT,\n payload: true\n });\n });\n }\n}\n\nexport function clearAuthErrors() {\n console.log('clearing auth errors...');\n return {\n type: CLEAR_AUTH_ERRORS\n }\n}\n","export const SelectFields = [\"origin_port\", \"destination_port\"];\nexport const DateFields = [\n \"date_from\", \"date_to\",\n \"latest_ETD_from\", \"latest_ETD_to\",\n \"latest_ETA_from\", \"latest_ETA_to\"\n];\nexport const AWB_TYPES = [\n {\n label: 'Direct Airway Bill (DAWB)',\n value: 'DAWB'\n },\n {\n label: 'Master Airway Bill (MAWB)',\n value: 'MAWB'\n }\n];\nexport const FREIGHT_ARRANGE_BY = [\n {\n label: 'Janio',\n value: 'Janio'\n },\n {\n label: 'Client',\n value: 'Client'\n }\n];\nexport const HAWB_TYPES = [\n {\n label: 'Pallet',\n value: 'Pallet'\n },\n {\n label: 'Roll',\n value: 'Roll'\n },\n {\n label: 'Box',\n value: 'Box'\n },\n {\n label: 'Package',\n value: 'Package'\n },\n {\n label: 'Drum',\n value: 'Drum'\n },\n {\n label: 'Carton',\n value: 'Carton'\n },\n {\n label: 'Bag',\n value: 'Bag'\n },\n {\n label: 'Bale',\n value: 'Bale'\n },\n {\n label: 'Barrel',\n value: 'Barrel'\n },\n {\n label: 'Crate',\n value: 'Crate'\n },\n {\n label: 'Bundle',\n value: 'Bundle'\n }\n];\nexport const MAWB_STATUS = [\n {\n label: 'Order Received By Airline Terminal',\n value: 'ORDER_RECEIVED_BY_AIRLINE_TERMINAL'\n },\n {\n label: 'Freight Processing at Freight Forwarder',\n value: 'FREIGHT_PROCESSING_AT_FREIGHT_FORWARDER'\n },\n {\n label: 'Freight Uplift Completed',\n value: 'FREIGHT_UPLIFT_COMPLETE'\n },\n {\n label: 'Freight Partially Offloaded',\n value: 'FREIGHT_PARTIAL_OFFLOAD'\n },\n {\n label: 'Freight Completely Offloaded',\n value: 'FREIGHT_FULL_OFFLOAD'\n },\n {\n label: 'Flight Departed',\n value: 'FLIGHT_DEPARTED'\n },\n {\n label: 'Flight Arrived',\n value: 'FLIGHT_ARRIVED'\n },\n {\n label: 'Flight Rescheduled',\n value: 'FLIGHT_RESCHEDULED'\n },\n {\n label: 'Flight Cancelled',\n value: 'FLIGHT_CANCELLED'\n },\n {\n label: 'Freight Pendings Survey At Airline Terminal',\n value: 'FREIGHT_PENDING_SURVEY_AT_AIRLINE_TERMINAL'\n },\n {\n label: 'Freight Arrived Partially',\n value: 'FREIGHT_ARRIVED_PARTIAL'\n },\n {\n label: 'Freight Arrived Completely',\n value: 'FREIGHT_ARRIVED_COMPLETE'\n },\n {\n label: 'Processing At Gateway Hub',\n value: 'PROCESSING_AT_GATEWAY_HUB'\n },\n {\n label: 'Inbound In Transit To Customs Clearance',\n value: 'INBOUND_IN_TRANSIT_TO_CUSTOMS_CLEARANCE'\n },\n {\n label: 'Order Processing at Customs',\n value: 'ORDER_PROCESSING_AT_CUSTOMS'\n },\n {\n label: 'Customs Cleared',\n value: 'CUSTOMS_CLEARED'\n },\n {\n label: 'Departed from Customs',\n value: 'PARCEL_DEPARTED_FROM_CUSTOMS_CLEARANCE'\n },\n {\n label: 'Order Delivered',\n value: 'ORDER_DELIVERED'\n } ,\n {\n label: 'Freight Unlocated',\n value: 'FREIGHT_UNLOCATED'\n }\n]\nexport const MAWB_STATUS_MAPPING = { \n \"FLIGHT_SCHEDULED\": \"The parcel has been scheduled for a flight.\",\n \"FLIGHT_CANCELLED\": \"The parcel is awaiting a flight to be rescheduled due to a flight cancellation.\",\n \"FREIGHT_FULL_OFFLOAD\": \"The parcel has been rescheduled for a subsequent flight.\",\n \"FREIGHT_PARTIAL_OFFLOAD\": \"The parcel may have been rescheduled for a subsequent flight.\",\n \"ORDER_RECEIVED_BY_AIRLINE_TERMINAL\": \"The parcel order has been received by the airline.\",\n \"FREIGHT_UPLIFT_COMPLETE\": \"The parcel has been uplifted.\",\n \"FLIGHT_RESCHEDULED\": \"The parcel has been rescheduled for a subsequent flight.\",\n \"FREIGHT_PENDING_SURVEY_AT_AIRLINE_TERMINAL\": \"The parcel is currently on hold. Please contact our Customer Support if you require assistance.\",\n \"FREIGHT_ARRIVED_COMPLETE\": \"The parcel has arrived in the destination country.\",\n \"FREIGHT_ARRIVED_PARTIAL\": \"The parcel has arrived in the destination country.\",\n \"PROCESSING_AT_GATEWAY_HUB\": \"The parcel is currently being processed at a warehouse.\",\n \"INBOUND_IN_TRANSIT_TO_CUSTOMS_CLEARANCE\": \"The parcel is about to depart a warehouse for customs clearance.\",\n \"FREIGHT_UNLOCATED\": \"Unable to locate parcel. Please contact our Customer Support if you require assistance.\",\n \"FREIGHT_PROCESSING_AT_FREIGHT_FORWARDER\": \"The shipment has been handed over to a freight forwarder.\",\n \"ORDER_DELIVERED\": \"The order has been delivered.\",\n \"FLIGHT_DEPARTED\": \"The parcel has departed on a flight.\",\n \"FLIGHT_ARRIVED\": \"The parcel has arrived on a flight.\",\n \"ORDER_PROCESSING_AT_CUSTOMS\": \"The parcel is being processed at the Customs.\",\n \"CUSTOMS_CLEARED\": \"The parcel has cleared Customs.\",\n \"PARCEL_DEPARTED_FROM_CUSTOMS_CLEARANCE\": \"The parcel has been released from Customs.\",\n}\nexport const HAWB_STATUS = [\n {\n label: 'Processing At Gateway Hub',\n value: 'PROCESSING_AT_GATEWAY_HUB'\n },\n {\n label: 'Inbound In Transit To Customs Clearance',\n value: 'INBOUND_IN_TRANSIT_TO_CUSTOMS_CLEARANCE'\n }\n]\nexport const HAWB_STATUS_MAPPING = {\n 'PROCESSING_AT_GATEWAY_HUB': 'Processing At Gateway Hub',\n 'INBOUND_IN_TRANSIT_TO_CUSTOMS_CLEARANCE': 'Inbound In Transit To Customs Clearance',\n}\nexport const MAWB_LEVELS = [\n {\n label: 'MAWB',\n value: 'MAWB'\n },\n {\n label: 'HAWB',\n value: 'HAWB'\n }\n];\nexport const SERVICE_LEVELS = [\n {\n label: 'General Cargo',\n value: 'General Cargo'\n },\n {\n label: 'Express',\n value: 'Express'\n },\n {\n label: 'Dangerous goods',\n value: 'Dangerous goods'\n },\n {\n label: 'ID 8000',\n value: 'ID 8000'\n },\n];\nexport const RESCHEDULE_DATE_OPTIONAL_STATUSES = [\n \"ORDER_RECEIVED_BY_AIRLINE_TERMINAL\",\n \"FREIGHT_PROCESSING_AT_FREIGHT_FORWARDER\",\n \"FREIGHT_UPLIFT_COMPLETE\",\n \"FREIGHT_PENDING_SURVEY_AT_AIRLINE_TERMINAL\",\n \"FREIGHT_ARRIVED_COMPLETE\",\n \"PROCESSING_AT_GATEWAY_HUB\",\n \"INBOUND_IN_TRANSIT_TO_CUSTOMS_CLEARANCE\",\n \"FREIGHT_UNLOCATED\",\n];\nexport const ALLOW_TRACKING_NO_FOR_STATUS = [\n \"ORDER_RECEIVED_BY_AIRLINE_TERMINAL\",\n \"FREIGHT_PARTIAL_OFFLOAD\",\n \"FREIGHT_FULL_OFFLOAD\",\n \"FLIGHT_RESCHEDULED\",\n \"FLIGHT_CANCELLED\"\n];\nexport const FEE_NAMES = [\n 'Freight Rate',\n 'Fuel Surcharge',\n 'Security Surcharge',\n 'AWB Fee',\n 'X-Ray/Screening Fee',\n 'Terminal Transfer Fee',\n 'Weight Verification Fee',\n 'Airline DG Fee',\n 'DG Fee Handling',\n 'DG Labeling',\n 'Strapping Fee',\n 'Export Customs Declaration',\n 'Import Customs Declaration',\n 'Terminal Clearance Fee',\n 'Origin Storage',\n 'Destination Storage',\n 'Survey Fee',\n 'Attendance to Survey',\n 'First Mile',\n 'Last Mile',\n 'Transportation',\n 'Packing Fee',\n 'GST Outlay',\n 'Duty Tax Outlay',\n 'Others'\n];\n\nexport const FEE_TYPES = ['Flat fee', 'Per Unit'];\n\nexport const INVOICE_CURRENCIES = [\n 'IDR',\n 'JPY',\n 'MYR',\n 'SGD',\n 'USD',\n 'AUD',\n 'CNY',\n 'PHP',\n 'GBP',\n 'KRW',\n 'TWD',\n 'HKD',\n 'THB'\n];\nexport const COST_TYPES = [\n {\n label: 'Actual',\n value: 'actual'\n },\n {\n label: 'Accrual',\n value: 'accrual'\n },\n]\nexport const COST_TYPES_MAPPING = {\n 'actual': 'Actual',\n 'accrual': 'Accrual',\n}\n\nexport const DateTimeFormat = {\n Date: 'DD/MM/YY',\n Date2: 'DD MMM YYYY',\n Time: 'HH:mm',\n DateTime: 'DD/MM/YY HH:mm',\n DateTime2: 'DD MMM YYYY hh:mm A',\n APIDate: 'YYYY-MM-DD',\n}\n\nexport const COST_DETAILS_COLUMS = [\n {\n title: 'Cost type',\n dataIndex: 'cost_type',\n key: 'cost_type'\n },\n {\n title: 'N/P name',\n dataIndex: 'network_partner_name',\n key: 'network_partner_name'\n },\n {\n title: 'Invoice no.',\n dataIndex: 'invoice_no',\n key: 'invoice_no'\n },\n {\n title: 'Fee name',\n dataIndex: 'fee_name',\n key: 'fee_name'\n },\n {\n title: 'Billing description',\n dataIndex: 'billing_description',\n key: 'billing_description',\n },\n {\n title: 'Tracking Number',\n dataIndex: 'tracking_no',\n key: 'tracking_no',\n },\n {\n title: 'Fee type',\n dataIndex: 'fee_type',\n key: 'fee_type'\n },\n {\n title: 'No. of units',\n dataIndex: 'no_of_units',\n key: 'no_of_units'\n },\n {\n title: 'Currency',\n dataIndex: 'currency',\n key: 'currency'\n },\n {\n title: 'Unit price',\n dataIndex: 'unit_price',\n key: 'unit_price'\n },\n {\n title: 'Total',\n dataIndex: 'total_price',\n key: 'total_price'\n }\n];\n\nexport const RESCHEDULED_STATUSES_ON = [\n 'FREIGHT_PARTIAL_OFFLOAD',\n 'FLIGHT_RESCHEDULED',\n 'FREIGHT_ARRIVED_PARTIAL'\n]\n\n\nexport const MAWB_CLIENTS = {\n shopee_asia: \"shopee_asia\",\n shopee_china: \"shopee_china\"\n}\n","// common types\nexport const AUTH_USER = \"auth_user\";\nexport const UNAUTH_USER = \"unauth_user\";\nexport const AUTH_ERROR = \"auth_error\";\nexport const FETCH_SIGNED_IN_USER = \"fetch_signed_in_user\";\nexport const EDIT_SIGNED_IN_USER = \"edit_signed_in_user\";\nexport const CHANGE_PASSWORD = \"change_password\";\nexport const RESET_PASSWORD = \"reset_password\";\nexport const PASSWORD_SENT = \"password_sent\";\nexport const CLEAR_AUTH_ERRORS = \"clear_auth_errors\";\nexport const FETCH_ALL_COUNTRIES = \"fetch_all_countries\";\nexport const FETCH_ALL_CURRENCIES = \"fetch_all_currencies\";\nexport const FETCH_AGENT_STATUSES = \"fetch_agent_statuses\";\nexport const FETCH_TRACKER_STATUSES = \"fetch_tracker_statuses\";\nexport const FETCH_PRIVATE_TRACKER_STATUSES = \"fetch_private_tracker_statuses\";\nexport const FETCH_FIRSTMILE_STATUSES = \"fetch_firstmile_statuses\";\nexport const FETCH_WAREHOUSE_STATUSES = \"fetch_warehouse_statuses\";\nexport const FETCH_USER_FEATURES = \"fetch_user_features\";\n\n// agent types\nexport const ADD_AGENT_APPLICATIONS = \"add_agent_applications\";\nexport const EDIT_AGENT_APPLICATIONS_SECRET_KEY = \"edit_agent_applications_secret_key\";\nexport const EDIT_AGENT_APPLICATIONS = \"edit_agent_applications\";\nexport const FETCH_AGENT_APPLICATIONS = \"fetch_agent_applications\";\nexport const FETCH_AGENT_APPLICATION_BY_ID = \"fetch_agent_application_by_id\";\nexport const CLEAR_AGENT_APPLICATIONS_ERRORS = \"clear_agent_applications_errors\";\nexport const FETCH_AGENT_SERVICES = \"fetch_agent_services\";\nexport const FETCH_AGENT_SERVICE_BY_ID = \"fetch_agent_service_by_id\";\nexport const EDIT_AGENT_SERVICE = \"edit_agent_service\";\nexport const CHANGE_AGENT_ORDERS_STATUSES = \"change_agent_orders_statuses\";\nexport const CHANGE_TRACKER_STATUSES = \"change_tracker_statuses\";\nexport const CLEAR_CHANGE_TRACKER_STATUSES_ACTION_ERROR = \"change_tracker_statuses_action_error\";\nexport const ORDERS_ACTION_ERROR = \"view_orders_action_error\";\nexport const CLEAR_ORDERS_ACTION_ERROR = \"clear_orders_action_error\";\nexport const FETCH_TRACKER_UPDATE = \"fetch_tracker_update\";\nexport const FETCH_TRACKER_UPDATE_BY_IDS = \"fetch_tracker_update_by_ids\";\nexport const FETCH_TRACKER_UPDATE_BY_FILTER = \"fetch_tracker_update_by_filter\";\nexport const FETCH_TRACKER_UPDATE_BY_ID = \"fetch_tracker_update_by_id\";\nexport const CREATE_TRACKER_UPDATE = \"create_tracker_update\";\nexport const EDIT_TRACKER_UPDATE = \"edit_tracker_update\";\nexport const DELETE_TRACKER_UPDATE_BY_ID = \"delete_tracker_update_by_id\";\nexport const DELETE_MULTIPLE_TRACKER_UPDATE = \"delete_multiple_tracker_update\";\nexport const TRACKER_UPDATE_ERROR = \"tracker_update_error\";\nexport const CLEAR_TRACKER_UPDATE_ERRORS = \"clear_tracker_update_errors\";\nexport const SUBMIT_ORDERS = \"submit_orders\";\nexport const RE_SUBMIT_TO_EXTERNAL_SERVICE = \"re_submit_to_external_services\";\nexport const RE_SUBMIT_TO_EXTERNAL_SERVICE_ERROR = \"re_submit_to_external_services_error\";\nexport const EDIT_ORDER = \"edit_order\";\nexport const FETCH_ORDER_DETAILS = \"fetch_order_details\";\nexport const FETCH_ORDER_PARTNER_UPDATES = \"fetch_order_partner_updates\";\nexport const FETCH_SERVICE_DETAILS = \"fetch_service_details\";\nexport const FETCH_ORDERS_BY_FILTER = \"fetch_order_by_filter\";\nexport const FETCH_ORDERS_BY_FILTER_LOADING = \"fetch_order_by_filter_loading\";\nexport const GET_NOTES_HEADER = \"get_notes_header\";\nexport const ADD_NOTES = \"add_notes\";\nexport const FETCH_NOTES_BY_FILTER = \"fetch_notes_by_filter\";\nexport const FETCH_NOTE_BY_TRACKING_NUMBER = \"fetch_note_by_tracking_number\";\nexport const FETCH_NOTES_REPORT = \"fetch_notes_report\";\nexport const DELETE_NOTES = \"delete_notes\";\nexport const CLEAR_NOTES_ERRORS = \"clear_notes_errors\";\nexport const DELETE_ORDER = \"delete_order\";\nexport const DELETE_ORDER_BY_UPLOAD_BATCH_NO = \"delete_order_by_upload_batch_no\";\nexport const CLEAR_DELETE_ORDER_BY_UPLOAD_BATCH_NO_ERROR = \"clear_delete_order_by_upload_batch_no_error\";\nexport const FETCH_ORDERS_IN_CSV = \"fetch_orders_in_csv\";\nexport const FETCH_TRACKER_UPDATES_IN_CSV = \"fetch_tracker_updates_in_csv\";\nexport const CLEAR_REPORT_ERRORS = \"clear_report_errors\";\nexport const GET_ORDER_PRICING_PARAMS = \"get_order_pricing_params\";\nexport const GET_ORDER_PRICING = \"get_order_pricing\";\nexport const ADD_ORDER_PRICING = \"add_order_pricing\";\nexport const GET_ORDER_PRICING_DETAILS = \"get_order_pricing_details\";\nexport const CLEAR_PRICING_ERRORS = \"clear_pricing_errors\";\nexport const ADD_ORDER_WEIGHT_RECONCILIATION = \"add_order_weight_reconciliation\";\nexport const FETCH_AGENT_STATS = \"fetch_agent_stats\";\nexport const ADD_BILLS = \"add_bills\";\nexport const UPDATE_BILLS = \"update_bills\";\nexport const FETCH_BILLS_PARAMS = \"fetch_bills_params\";\nexport const FETCH_BILLS_BY_FILTER = \"fetch_bills_by_filter\";\nexport const FETCH_BILL_BY_ID = \"fetch_bill_by_id\";\nexport const CLEAR_BILLS_ERRORS = \"clear_bills_errors\";\nexport const CREATE_BULK_BILL_RECORD = \"create_bulk_bill_record\";\nexport const CREATE_BULK_BILL_RECORD_RESOLVE = \"create_bulk_bill_record_resolve\";\nexport const FETCH_BILL_RECORD_PARAMS = \"fetch_bill_record_params\";\nexport const FETCH_BILL_RECORD_BY_FILTER = \"fetch_bill_record_by_filter\";\nexport const FETCH_BILL_RECORD_BY_ID = \"fetch_bill_record_by_id\";\nexport const FETCH_BILL_RECORD_BY_BILL_ID = \"fetch_bill_record_by_bill_id\";\nexport const FETCH_BILL_RECORD_BY_TRACKING_NO = \"fetch_bill_record_by_tracking_no\";\nexport const CLEAR_BILL_RECORD_ERRORS = \"clear_bill_record_errors\";\nexport const UPLOAD_ADHOC_CSV = \"upload_adhoc_csv\";\nexport const CLEAR_UPLOAD_ADHOC_CSV_ERRORS = \"clear_upload_adhoc_csv_errors\";\nexport const FETCH_ORDER_REMITTANCE_DATA = \"fetch_order_remittance_data\";\nexport const CLEAR_COD_MANAGEMENT_ERRORS = \"clear_cod_management_errors\";\nexport const FETCH_PARTNER_REMITTANCE_BY_FILTER = \"fetch_partner_remittance_by_filter\";\nexport const FETCH_MERCHANT_REMITTANCE_BY_FILTER = \"fetch_merchant_remittance_by_filter\";\nexport const UPLOAD_COD_REMITTANCE = \"upload_cod_remittance\";\nexport const FETCH_ALL_PARTNERS = \"fetch_all_partners\";\nexport const FETCH_PARTNER_DUES_BY_FILTER = \"fetch_partner_dues_by_filter\";\nexport const FETCH_MERCHANT_DUES_BY_FILTER = \"fetch_merchant_dues_by_filter\";\nexport const CLEAR_ORDERS_DATA = \"clear_orders_data\";\nexport const CLEAR_PARTNER_REMITTANCE = \"clear_partner_remittance\";\nexport const CLEAR_MERCHANT_REMITTANCE = \"clear_merchant_remittance\";\nexport const CLEAR_PARTNER_DUES = \"clear_partner_dues\";\nexport const CLEAR_MERCHANT_DUES = \"clear_merchant_dues\";\nexport const ADD_SUB_ACCOUNTS_AGENT_APPLICATION = \"add_sub_accounts_agent_application\";\nexport const ADD_SUB_ACCOUNTS_AGENT_APPLICATION_ERROR = \"add_sub_accounts_agent_application_error\";\nexport const CLEAR_SUB_ACCOUNTS_AGENT_APPLICATION_ERROR = \"clear_sub_accounts_agent_application_error\";\n\nexport const FETCH_NETWORK_PARTNER_LOADING = \"FETCH_NETWORK_PARTNER_LOADING\";\nexport const FETCH_NETWORK_PARTNER_SUCCESS = \"FETCH_NETWORK_PARTNER_SUCCESS\";\nexport const FETCH_NETWORK_PARTNER_FAIL = \"FETCH_NETWORK_PARTNER_FAIL\";\nexport const OPEN_ERROR_POPUP = \"OPEN_ERROR_POPUP\";\nexport const CLOSE_ERROR_POPUP = \"CLOSE_ERROR_POPUP\";\nexport const FETCH_CONSIGNEE_DOC_TYPES = \"FETCH_CONSIGNEE_DOC_TYPES\";\nexport const EMAIL_CONSIGNEE = \"EMAIL_CONSIGNEE\";\nexport const ADD_CORRECT_ORDER_ADDRESS = \"ADD_CORRECT_ORDER_ADDRESS\";\n\nexport const MAWB_FETCH_LOADING = \"mawb_fetch_loading\";\nexport const MAWB_FETCHED = \"mawb_fetched\";\nexport const MAWB_FETCHED_ERROR = \"mawb_fetched_error\";\nexport const MAWB_SELECT_TOGGLE = \"mawb_select_toggle\";\nexport const MAWB_SELECT_ALL = \"mawb_select_all\";\n\nexport const MAWB_FILE_ERROR = \"mawb_file_error\";\nexport const MAWB_FILE_FETCHED = \"mawb_file_fetched\";\nexport const MAWB_FILE_LOADING = \"mawb_file_loading\";\nexport const MAWB_FILE_RESET = \"mawb_file_reset\";\n\nexport const MAWB_CREATE_RESET = \"mawb_create_reset\";\nexport const MAWB_CREATE_LOADING = \"mawb_create_loading\";\nexport const MAWB_CREATED = \"mawb_created\";\nexport const MAWB_CREATE_ERROR = \"mawb_create_error\";\nexport const FETCH_PORTS = \"fetch_ports\";\n\nexport const NP_DELAY_REASON_CREATED = \"np_delay_reason_created\";\nexport const NP_DELAY_REASON_CREATE_LOADING = \"np_delay_reason_create_loading\";\nexport const NP_DELAY_REASON_CREATE_ERROR = \"np_delay_reason_create_error\";\n\nexport const MISSED_SLAS_SUCCESS = \"missed_slas_success\";\nexport const MISSED_SLAS_LOADING = \"missed_slas_loading\";\nexport const MISSED_SLAS_ERROR = \"missed_slas_error\";\n\nexport const MISSED_SLAS_SELECT_ALL = \"missed_slas_select_all\";\nexport const MISSED_SLAS_SELECT_TOGGLE = \"missed_slas_select_toggle\";\nexport const MISSED_SLAS_VIEW_RESET_SELECTION = \"missed_slas_view_reset_selection\";\n\nexport const MISSED_SLAS_VIEW_FILE_SUCCESS = \"missed_slas_view_file_success\";\n\nexport const FETCH_SLA_DESTINATIONS = \"fetch_sla_destinations\";\nexport const FETCH_SLA_NPS = \"fetch_sla_nps\";\n\nexport const FETCH_PAGINATED_AGENT_APPLICATIONS = \"fetch_paginated_agent_applications\";\nexport const FETCH_PAGINATED_AGENT_APPLICATION_BY_ID = \"fetch_paginated_agent_application_by_id\";\nexport const EDIT_PAGINATED_AGENT_APPLICATION_ERROR = \"edit_paginated_agent_application_error\";\nexport const CLEAR_PAGINATED_AGENT_APPLICATION_DATA = \"clear_paginated_agent_application\";\n\n// HMS actions\nexport const FETCH_ALL_HUBS = \"fetch_all_hubs\";\n\nexport const FETCH_ORDER_EXCEPTIONS = \"FETCH_ORDER_EXCEPTIONS\";\n\n// mid-mile\nexport const MIDMILE_AWB_FETCH_LOADING = \"midmile_awb_fetch_loading\";\nexport const MIDMILE_AWB_FETCHED = \"midmile_awb_fetched\";\nexport const MIDMILE_AWB_FETCHED_ERROR = \"midmile_awb_fetched_error\";\nexport const MIDMILE_AWB_SELECT_TOGGLE = \"midmile_awb_select_toggle\";\nexport const MIDMILE_AWB_SELECT_ALL = \"midmile_awb_select_all\";\nexport const MIDMILE_AWB_FETCH_DETAILS_LOADING = \"midmile_awb_fetch_detals_loading\";\nexport const MIDMILE_AWB_FETCH_DETAILS = \"midmile_awb_fetch_details\";\nexport const MIDMILE_AWB_DOCUMENT_UPLOAD = \"midmile_awb_document_upload\";\nexport const MIDMILE_AWB_DOCUMENT_DELETE = \"midmile_awb_document_delete\";\nexport const MIDMILE_AWB_UPDATE_TRACKING_STATUS = \"midmile_awb_update_tracking_status\";\nexport const MIDMILE_AWB_FETCH_ACTIVITY_LOGS = \"midmile_awb_fetch_activity_logs\";\nexport const FETCH_EXCHANGE_RATES = \"fetch_exchange_rates\";\nexport const MIDMILE_AWB_FETCH_COST = \"midmile_awb_fetch_cost\";\n\n// lSP-users\nexport const LSP_USER_FETCH_LOADING = \"LSP_USER_FETCH_LOADING\";\nexport const LSP_USER_FETCHED = \"LSP_USER_FETCHED\";\nexport const LSP_USER_FETCHED_ERROR = \"LSP_USER_FETCHED_ERROR\";\n","import axios from \"axios\";\n\nexport const FETCH_NETWORk_PARTNERS = \"fetch_networK_partners\";\nexport const FETCH_SUBMISSION_METHOD = \"fetch_submission_method\";\n\nexport function fetchNetworkPartners(params) {\n return async function (dispatch) {\n try {\n const res = await axios.get(\"/api/partner/partner/\", { params });\n dispatch({\n type: FETCH_NETWORk_PARTNERS,\n payload: res.data,\n });\n } catch (err) {\n console.log(err);\n }\n };\n}\n\nexport function fetchSubmissionMethod(params) {\n return async function (dispatch) {\n try {\n const res = await axios.get(\"/api/order/submission-methods/\", { params });\n dispatch({\n type: FETCH_SUBMISSION_METHOD,\n payload: res.data,\n });\n } catch (err) {\n console.log(err);\n }\n };\n}\n","// only re-export icons that we use for our antd components\nexport { default as LoadingOutline } from '@ant-design/icons/lib/outline/LoadingOutline';\nexport { default as CaretDownOutline } from '@ant-design/icons/lib/outline/CaretDownOutline';\nexport { default as CaretRightOutline } from '@ant-design/icons/lib/outline/CaretRightOutline';\nexport { default as CloseOutline } from '@ant-design/icons/lib/outline/CloseOutline';\nexport { default as CloseCircleOutline } from '@ant-design/icons/lib/outline/CloseCircleOutline';\nexport { default as CheckOutline } from '@ant-design/icons/lib/outline/CheckOutline';\nexport { default as DownOutline } from '@ant-design/icons/lib/outline/DownOutline';\nexport { default as CloseCircleFill } from '@ant-design/icons/lib/fill/CloseCircleFill';\nexport { default as DeleteOutline } from '@ant-design/icons/lib/outline/DeleteOutline';\nexport { default as UploadOutline } from '@ant-design/icons/lib/outline/UploadOutline';\nexport { default as CheckCircleOutline } from '@ant-design/icons/lib/outline/CheckCircleOutline';\nexport { default as CheckCircleFill } from '@ant-design/icons/lib/fill/CheckCircleFill';\nexport { default as QuestionCircleFill } from '@ant-design/icons/lib/fill/QuestionCircleFill';\nexport { default as QuestionCircleOutline } from '@ant-design/icons/lib/outline/QuestionCircleOutline';\nexport { default as LeftOutline } from '@ant-design/icons/lib/outline/LeftOutline';\nexport { default as RightOutline } from '@ant-design/icons/lib/outline/RightOutline';\nexport { default as PlusSquareOutline } from '@ant-design/icons/lib/outline/PlusSquareOutline';\nexport { default as FileOutline } from '@ant-design/icons/lib/outline/FileOutline';\nexport { default as CalendarOutline } from '@ant-design/icons/lib/outline/CalendarOutline';\nexport { default as ExclamationCircleFill } from '@ant-design/icons/lib/fill/ExclamationCircleFill';\n","import React from \"react\";\nimport MenuIcon from \"@material-ui/icons/Menu\";\nimport { useLocation } from \"react-router-dom\";\nimport { useSelector } from \"react-redux\";\nimport { MAWB_CLIENTS } from \"./midMileAwb/constants\";\n\nconst changeNavBarTitle = (additionalText = \"\") => {\n let title = \"Janio Ops\";\n const pathname = window.location.pathname;\n if (pathname === \"/agent\") {\n title = \"Janio Ops\";\n } else if (pathname.includes(\"/agent/user\")) {\n title = \"User\";\n } else if (pathname.includes(\"/agent/change-password\")) {\n title = \"Change password\";\n } else if (pathname.includes(\"/agent/agent-apps\")) {\n title = \"Agent apps\";\n } else if (pathname.includes(\"/agent/add-agent-apps\")) {\n title = \"Add agent apps\";\n } else if (pathname.includes(\"/agent/services\")) {\n title = \"Services\";\n } else if (pathname.includes(\"/agent/network-partners/add\")) {\n title = \"Add Partner\";\n } else if (pathname.includes(\"/agent/network-partners/\")) {\n title = \"Edit Partner\";\n } else if (pathname.includes(\"/agent/network-partners\")) {\n title = \"Network Partners\";\n } else if (pathname.includes(\"/agent/change-tracker-status-csv\")) {\n title = \"Change tracker status\";\n } else if (pathname.includes(\"/agent/view-orders\")) {\n title = \"View orders\";\n } else if (pathname.includes(\"/agent/view-awb\")) {\n // title = this.props?.mawb_no ? \"Airway Bill No. \" + this.props?.mawb_no : \"\";\n title = \"Airway Bill No. \";\n } else if (pathname.includes(\"/agent/view-order-details\")) {\n title = \"View order details\";\n } else if (pathname.includes(\"/agent/view-tracker-updates\")) {\n title = \"View tracker updates\";\n } else if (pathname.includes(\"/agent/view-tracker-update-details\")) {\n title = \"View tracker update details\";\n } else if (pathname.includes(\"/agent/create-tracker-update\")) {\n title = \"Create tracker update\";\n } else if (pathname.includes(\"/agent/view-note-details\")) {\n title = \"View note details\";\n } else if (pathname.includes(\"/agent/view-notes\")) {\n title = \"View notes\";\n } else if (pathname.includes(\"/agent/create-single-note\")) {\n title = \"Create single note\";\n } else if (pathname.includes(\"/agent/create-notes-csv\")) {\n title = \"Create notes by csv\";\n }\n // else if (pathname.includes(\"/agent/view-bill-details\")) {\n // title = \"View order bill details\";\n // } else if (pathname.includes(\"/agent/view-bills\")) {\n // title = \"View order bills\";\n // }\n else if (pathname.includes(\"/agent/create-bills\")) {\n title = \"Create order bills\";\n } else if (pathname.includes(\"/agent/view-bill-status-details\")) {\n title = \"View order billing status details\";\n } else if (pathname.includes(\"/agent/view-bill-status\")) {\n title = \"View order billing statuses\";\n } else if (pathname.includes(\"/agent/view-bill-record-details\")) {\n title = \"View order billing record details\";\n } else if (pathname.includes(\"/agent/view-bill-record\")) {\n title = \"View order billing record\";\n } else if (pathname.includes(\"/agent/delete-order-by-upload-batch-no\")) {\n title = \"Delete order by upload batch no\";\n } else if (pathname.includes(\"/agent/reports\")) {\n title = \"Reports\";\n } else if (pathname.includes(\"/agent/notes-report\")) {\n title = \"Notes report\";\n } else if (pathname.includes(\"/agent/scan-to-print\")) {\n title = \"Scan to print\";\n } else if (pathname.includes(\"/agent/pricing\")) {\n title = \"Pricing\";\n } else if (pathname.includes(\"/agent/weight-reconciliation\")) {\n title = \"Change Weight by CSV\";\n } else if (pathname.includes(\"/agent/upload-adhoc-csv\")) {\n title = \"Upload adhoc csv\";\n } else if (pathname.includes(\"/agent/view-pricing-details\")) {\n title = \"View pricing details\";\n } else if (pathname.includes(\"/agent/upload-pricing-csv\")) {\n title = \"Upload pricing csv\";\n } else if (pathname.includes(\"/agent/create-custom-batch\")) {\n title = \"Create Shipping Batch\";\n } else if (pathname.includes(\"/agent/request-consignee-documents\")) {\n title = \"Request Consignee for Documents\";\n }\n // else if (pathname.includes(\"/agent/merchant-dues\")) {\n // title = \"Merchant Dues\";\n // }\n else if (pathname.includes(\"/agent/merchant-remittance\")) {\n title = \"Remittances made to Merchants\";\n }\n // else if (pathname.includes(\"/agent/partner-dues\")) {\n // title = \"Partner Dues\";\n // }\n else if (pathname.includes(\"/agent/partner-remittance\")) {\n title = \"Remittances received from Partners\";\n } else if (pathname.includes(\"/agent/correct-order-address\")) {\n title = \"Change Order Address by CSV\";\n // } else if (pathname.includes('/agent/view-mawb')) {\n // title = 'View Master Airway Bill Tracker'\n // } else if (pathname.includes('/agent/create-mawb')) {\n // title = 'Create Master Airway Bill Tracker'\n } else if (pathname.includes(\"/agent/download-pods\")) {\n title = \"Download/Send Proofs of Delivery (PODs)\";\n } else if (pathname.includes(\"/agent/view-missed-slas-last-mile\")) {\n title = \"Missed SLAs for Last Mile Partners\";\n } else if (pathname.includes(\"/agent/create-np-delay-reason\")) {\n title = \"Create NP Delay Reason\";\n } else if (pathname.includes(\"/agent/submit-return-orders\")) {\n title = \"Submit Return Orders\";\n } else if (pathname.includes(\"/agent/submit-return-order\")) {\n title = \"Submit Return Order (New)\";\n } else if (pathname.includes(\"/agent/partner-delays\")) {\n title = \"Partner Delays\";\n } else if (pathname.includes(\"/agent/manage-awb\")) {\n title = \"Mid-mile Tracker\";\n } else if (pathname.includes(\"/agent/create-awb\")) {\n title = \"Create Airway Bill\";\n } else if (pathname.includes(\"/agent/rts-pickup-capacity\")) {\n title = \"RTS Pickup Capacity Management\";\n } else if (\n pathname.includes(\"/agent/lsp-users\") ||\n pathname.includes(\"/agent/create-lsp-user\") ||\n pathname.includes(\"/agent/edit-lsp-user\")\n ) {\n title = \"LSP User Creation\";\n } else if (pathname.includes(\"/agent/network-editor/view-sla-journey\")) {\n title = \"View SLA Details\";\n } else if (pathname.includes(\"/agent/network-editor/edit-sla-journey\")) {\n title = \"Edit Service Level Agreement (SLA) Journey\";\n } else if (pathname.includes(\"/agent/network-editor/create-sla-journey\")) {\n title = \"Create SLA\";\n } else if (pathname.includes(\"/agent/network-editor\")) {\n title = \"List of Service Level Agreement (SLA) Journeys\";\n } else if (pathname.includes(\"/agent/shopee-cartons\")) {\n title = \"Shopee Cartons\";\n }\n // else if (pathname.includes(\"/agent/manage-exceptions/resolve/\")) {\n // title = \"Resolve Exception\";\n // } else if (pathname.includes(\"/agent/manage-exceptions/\")) {\n // title = \"Resolve Exception\";\n // }\n return `${title}${additionalText}`;\n};\n\nexport default function NavbarTitle({ handleDrawerToggle }) {\n const { search } = useLocation();\n const urlParams = new URLSearchParams(search);\n const mawbClient = urlParams.get(\"mawb_client\");\n const midmileAwb = useSelector((state) => state.midmileAwb);\n const mawb_no = midmileAwb?.awbDetails?.mawb_no;\n\n // title = this.props?.mawb_no ? \"Airway Bill No. \" + this.props?.mawb_no : \"\";\n let navTitle = \"\";\n if (mawbClient === MAWB_CLIENTS.shopee_china) {\n navTitle = \" for Shopee China Orders\";\n } else if (mawbClient === MAWB_CLIENTS.shopee_asia) {\n navTitle = \" for Shopee Asia Orders\"\n } else if (mawb_no) {\n navTitle = mawb_no;\n }\n\n const navbarTitle = changeNavBarTitle(navTitle);\n\n if (window.innerWidth > 300 && window.innerWidth < 1000) {\n return (\n
\n {navbarTitle}\n
\n );\n } else if (window.innerWidth > 1000) {\n return (\n
\n \n \n {navbarTitle}\n \n
\n );\n }\n return null;\n}\n","import React, { Component } from \"react\";\nimport { NavLink } from \"react-router-dom\";\nimport { withStyles } from \"@material-ui/core/styles\";\n// import Drawer from '@material-ui/core/Drawer';\nimport SwipeableDrawer from \"@material-ui/core/SwipeableDrawer\";\nimport AppBar from \"@material-ui/core/AppBar\";\nimport Toolbar from \"@material-ui/core/Toolbar\";\nimport List from \"@material-ui/core/List\";\nimport IconButton from \"@material-ui/core/IconButton\";\nimport Hidden from \"@material-ui/core/Hidden\";\nimport Button from \"@material-ui/core/Button\";\nimport Menu from \"@material-ui/core/Menu\";\nimport MenuItem from \"@material-ui/core/MenuItem\";\nimport MenuIcon from \"@material-ui/icons/Menu\";\nimport compose from \"recompose/compose\";\nimport { connect } from \"react-redux\";\nimport { history } from \"../../utils/historyUtils\";\nimport { withRouter, Link } from \"react-router-dom\";\nimport Avatar from \"react-avatar\";\n\nimport { signoutUser } from \"../../actions/commonActions/authActions\";\nimport FeatureRequired from \"../common/auth/FeatureRequired\";\nimport NavbarTitle from \"./NavbarTitle\";\nimport { MAWB_CLIENTS } from \"./midMileAwb/constants\";\n\nlet drawerWidth = 270;\nif (window.innerWidth > 300 && window.innerWidth < 1000) {\n drawerWidth = 280;\n} else if (window.innerWidth > 1000) {\n drawerWidth = 270;\n}\n\nconst styles = (theme) => ({\n root: {\n flexGrow: 1,\n width: \"100%\",\n height: \"100%\",\n zIndex: 1,\n overflow: \"hidden\",\n position: \"relative\",\n display: \"flex\",\n background: \"white\",\n },\n appBar: {\n position: \"fixed\",\n marginLeft: drawerWidth,\n [theme.breakpoints.up(\"md\")]: {\n width: `calc(100% - ${drawerWidth}px)`,\n },\n background: \"linear-gradient(170deg, #000040 0%, #000020 100%)\",\n },\n navIconHide: {\n [theme.breakpoints.up(\"md\")]: {\n display: \"none\",\n },\n },\n toolbar: theme.mixins.toolbar,\n drawerPaper: {\n width: drawerWidth,\n [theme.breakpoints.up(\"md\")]: {\n position: \"relative\",\n height: window.innerHeight,\n overflow: \"auto\",\n },\n background: \"white\",\n },\n content: {\n flexGrow: 1,\n width: window.innerWidth,\n height: window.innerHeight,\n overflow: \"auto\",\n backgroundColor: \"white\",\n padding: theme.spacing.unit * 3,\n },\n});\n\nclass AgentDashboard extends Component {\n constructor(props) {\n super(props);\n this.state = {\n mobileOpen: false,\n anchorEl: null,\n };\n }\n\n componentDidMount() {\n this.setSideBar();\n }\n\n componentDidUpdate() {\n this.props.history.listen((location, action) => {\n this.setState({\n mobileOpen: false,\n });\n });\n }\n\n setSideBar = () => {\n const navBarTitle = document.querySelector(\"#navBarTitle\");\n if (navBarTitle !== null) {\n if (window.innerHeight < 650) {\n const body = document.querySelector(\"body\");\n body.setAttribute(\"style\", \"overflow: hidden;\");\n }\n\n const header = navBarTitle.parentElement.parentElement;\n if (!header.getAttribute(\"class\").includes(\" w-100\")) {\n header.setAttribute(\"class\", header.getAttribute(\"class\") + \" w-100\");\n }\n\n const sideBar = navBarTitle.parentElement.parentElement.nextSibling;\n sideBar.style.display = \"none\";\n }\n };\n\n isSelected = (path, params = {}) => {\n const { pathname } = window.location;\n const selectedClasses = \"pl-2 bg-secondary text-white pointer pl-3\";\n\n const { mawb_client } = params;\n const searchParams = new URLSearchParams(window.location.search);\n const mawbClientParam = searchParams.get(\"mawb_client\");\n if (mawb_client && pathname.includes(\"manage-awb\")) {\n if (mawb_client === mawbClientParam) {\n return selectedClasses;\n }\n }\n\n if (\n (pathname.endsWith(path) || pathname.endsWith(path + \"/\")) &&\n !mawbClientParam\n ) {\n return selectedClasses;\n }\n return \"pointer pl-3 text-dark\";\n };\n\n handleDrawerToggle = () => {\n this.setState((state) => ({ mobileOpen: !state.mobileOpen }));\n };\n\n handleLogout = () => {\n this.props.signoutUser(history);\n };\n\n state = {\n anchorEl: null,\n };\n\n handleMenuClick = (event) => {\n this.setState({ anchorEl: event.currentTarget });\n };\n\n handleMenuClose = () => {\n this.setState({ anchorEl: null });\n };\n\n renderSideBar = () => {\n const { anchorEl } = this.state;\n\n return (\n
\n
\n \n {\" \"}\n {this.props.user ? this.props.user.name || \"User\" : \"User\"}\n \n \n \n User\n \n \n Change password\n \n \n
\n\n

ORDERS

\n \n \n Overview\n \n \n\n \n \n \n View orders\n \n \n \n\n {/* \n \n \n \n {\" \"}\n Delete order by upload batch no\n \n \n \n */}\n\n \n \n \n View tracker updates\n \n \n \n\n \n \n \n \n {\" \"}\n Change tracker status by CSV\n \n \n \n \n\n {/* \n \n \n \n Request Consignee for Documents\n \n \n \n */}\n\n {/* \n \n \n Create shipping batch\n \n \n */}\n\n \n \n \n Change Weight by CSV\n \n \n \n\n \n \n \n \n Change Order Address by CSV\n \n \n \n \n\n {/* delete all code related to this component */}\n {/* \n \n \n View notes\n \n \n */}\n\n {/* \n \n \n Master Airway Bill Tracker\n \n \n */}\n \n \n \n Mid-mile Tracker\n \n \n {/* \n \n \n Mid-mile Tracker (Shopee China)\n \n \n */}\n {/* \n \n \n Mid-mile Tracker (Shopee Asia)\n \n \n */}\n \n \n \n \n Partner Delays\n \n \n \n\n {/* \n \n \n Submit Return Orders\n \n \n */}\n\n \n \n \n Submit Return Order (New)\n \n \n \n\n {/* \n \n Manage Exceptions\n \n */}\n\n {/* \n \n \n RTS Pickup Capacity Management\n \n \n */}\n\n {/* \n \n LSP User Creation\n \n */}\n \n \n Postal Code Allocation\n \n \n\n \n

MERCHANT

\n \n \n \n \n View Merchant Profiles\n \n \n \n \n {/* \n \n Shopee Cartons\n \n */}\n
\n\n

ZONES & SLAs

\n \n \n View Zone Locations\n \n \n {/* \n \n SLA Network Editor\n \n */}\n\n {/* delete all code related to this component */}\n {/* \n

NETWORK PARTNER

\n\n \n \n \n Add Network Partner\n \n \n \n\n \n \n \n Edit Network Partner\n \n \n \n
*/}\n\n \n

BILLING & FINANCE

\n {/*\n \n \n View order bills\n \n \n */}\n {/* \n \n \n Pricing\n \n \n */}\n\n \n \n \n \n {\" \"}\n Remittances made to Merchants\n \n \n \n \n\n \n \n \n \n {\" \"}\n Remittances received from Partners\n \n \n \n \n\n {/*\n \n \n Merchant dues\n \n \n \n\n \n \n \n Partner dues\n \n \n \n */}\n
\n\n

EXPORT DATA

\n \n \n \n Download PODs\n \n \n \n\n {/* \n \n Download Shopee Orders\n \n */}\n\n \n \n \n Upload adhoc csv\n \n \n \n \n \n \n Reports\n \n \n \n\n {/* delete all code related to this component */}\n {/* \n \n \n Notes report\n \n \n */}\n
\n );\n };\n\n render() {\n const { classes, theme } = this.props;\n\n const drawer =
{this.renderSideBar()}
;\n\n return (\n
\n \n \n \n \n \n \n \n LOGOUT\n
\n \n \n \n \n {drawer}\n \n \n \n \n {drawer}\n \n \n
\n
\n {this.props.children}\n
\n \n );\n }\n}\n\nfunction mapStateToProps({ auth, midmileAwb }) {\n return {\n user: auth.user,\n mawb_no: midmileAwb?.awbDetails?.mawb_no || \"\",\n };\n}\n\nexport default withRouter(\n compose(\n withStyles(styles, { withTheme: true }),\n connect(mapStateToProps, {\n signoutUser,\n }),\n )(AgentDashboard),\n);\n","import axios from 'axios'\n\n\nexport const createFormData = (params, file) => {\n const formData = new FormData();\n formData.append(\"api_key\", \"243466314222934\");\n formData.append(\"file\", file);\n for (let key in params) {\n formData.append(key, params[key]);\n }\n return formData;\n};\n\nexport const documentTypeLabels = {\n personal_identification_front: {\n label: \"Front Card\",\n },\n personal_identification_back: {\n label: \"Back Card\",\n },\n website_link: {\n label: \"Product URL\",\n help: 'E.g. https://www.adidas.com.sg/vrct-jacket/EA0372.html'\n },\n commercial_invoice: {\n label: \"Proof of Purchase\",\n help: 'E.g. Purchase invoice or shopping receipt'\n },\n personal_use_form: {\n label: \"Personal Use Form\",\n },\n}\n\nexport const axiosInstance = axios.create()\n\nexport const validateUrl = url => {\n if (!url) {\n return false\n }\n return /(?:(?:((?:https?|ftp):)?\\/\\/)?)(?:\\S+(?::\\S*)?@)?(?:(?!(?:10|127)(?:\\.\\d{1,3}){3})(?!(?:169\\.254|192\\.168)(?:\\.\\d{1,3}){2})(?!172\\.(?:1[6-9]|2\\d|3[0-1])(?:\\.\\d{1,3}){2})(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))(?::\\d{2,5})?(?:[/?#]\\S*)?$/i.test(url);\n}\n\nexport const bulkDownloadDocuments = async tracking_nos => {\n try {\n const url = '/api/attachments/customs-documents-bulk-cloudinary-url/'\n const response = await axios.post(url, {\n tracking_nos\n })\n const responseUrl = response.data.url\n window.open(responseUrl, \"_blank\")\n return {\n url: responseUrl,\n isError: false\n }\n } catch(err) {\n return {\n isError: true\n }\n }\n}","import { useState, useEffect } from 'react'\nimport { useQuery } from \"react-query\"\nimport axios from 'axios'\n\nexport const useCountries = () => {\n const url = `/api/location/countries/`\n const { data, isLoading: loading } = useQuery(\"countries\", async () => {\n const response = await axios.get(url)\n return response.data\n }, {\n refetchInterval: false,\n staleTime: Infinity\n })\n return { loading, data }\n}\n\nexport const useCitiesFileterd = (countries) => {\n const url = `/api/location/states/`\n const [loading, setLoading] = useState(true)\n const [data, setData] = useState([])\n\n useEffect(() => {\n const fetchData = async () => {\n setLoading(true)\n const r = await axios.get(url, { params: {countries: countries, include_cities: true}})\n setLoading(false)\n setData(r.data)\n }\n if (countries) {\n fetchData()\n }\n }, [countries, url])\n\n return {loading, data}\n}","import React, { useState } from 'react'\nimport { Modal, Input } from 'antd'\n\nfunction ConfirmationModal(props) {\n const [isLoading, setLoading] = useState(false)\n const {\n visible, setVisible,\n options\n } = props\n const {\n isRequired,\n okText,\n okTextLoading,\n cancelText,\n title,\n onConfirm,\n afterClose\n } = options\n\n const [text, setText] = useState(\"\")\n\n return (\n {\n setText(\"\")\n if (afterClose) {\n afterClose()\n }\n }}\n onOk={async () => {\n setLoading(true)\n await onConfirm(text)\n setLoading(false)\n setVisible(false)\n }}\n onCancel={() => {\n setText(\"\")\n setVisible(false)\n }}\n closable={!isLoading}\n maskClosable={false}\n okButtonProps={{\n disabled: (isRequired && (!text || text === '')) || isLoading\n }}\n cancelButtonProps={{\n disabled: isLoading\n }}\n >\n
\n {\n setText(e.target.value)\n }}\n value={text}\n required={isRequired} />\n
\n \n )\n}\n\nexport default ConfirmationModal","import React, { useState } from 'react'\nimport ConfirmationModal from './ConfirmationModal'\n\nconst DEAFAULT_OPTIONS = {\n isRequired: true,\n onConfirm: text => text,\n afterClose: null,\n\n title: \"Leave a note\",\n okText: \"Proceed\",\n okTextLoading: \"Processing...\",\n cancelText: \"Cancel\"\n}\n\nexport const ConfirmContext = React.createContext()\nconst ConfirmContextProvider = props => {\n const [visible, setVisible] = useState(false)\n const [options, setOptions] = useState(DEAFAULT_OPTIONS)\n\n const confirmReason = options => {\n setOptions({...DEAFAULT_OPTIONS, ...options})\n setVisible(true)\n }\n\n return (\n \n \n {props.children}\n \n \n \n )\n}\n\n// const InputPromt = ({ isLoading, isRequired, inputRef }) => {\n// const [text, setText] = useState(\"\")\n// return (\n// {\n// setText(e.target.value)\n// inputRef.current = e.target.value\n// }}\n// value={text}\n// required={isRequired} />\n// )\n// }\n\n\nexport default ConfirmContextProvider\n","import axios from \"axios\";\nimport { useQuery } from \"react-query\";\n\nexport const statesAPI = (countries, additionalParams) => ({\n getstates: async () => {\n let params = {\n countries,\n ...additionalParams,\n };\n const response = await axios.get(\"/api/location/states/\", {\n params,\n headers: { \"Content-Type\": \"application/json\" },\n });\n return response.data;\n },\n});\n\nconst useStates = (country, additionalParams = {}) => {\n const { data: states, isLoading } = useQuery([\"states\", country], statesAPI(country, additionalParams).getstates, {\n staleTime: Infinity,\n refetchInterval: false,\n });\n return {\n states: states || [],\n isLoading,\n };\n};\n\nexport default useStates;\n","import axios from \"axios\";\nimport { useQuery } from \"react-query\";\n\nexport const cityAPI = (countries, states, additionalParams) => ({\n getCities: async () => {\n if (!countries || !states) {\n return [];\n }\n\n let params = {\n countries,\n states,\n ...additionalParams,\n };\n const response = await axios.get(\"/api/location/cities/\", {\n params,\n headers: { \"Content-Type\": \"application/json\" },\n });\n return response.data;\n },\n});\n\nconst useCities = (countries, states, additionalParams = {}) => {\n const { data: cities, isLoading } = useQuery([\"cities\", countries, states], cityAPI(countries, states, additionalParams).getCities, {\n staleTime: Infinity,\n refetchInterval: false,\n });\n return {\n cities: cities || [],\n isLoading,\n };\n};\n\nexport default useCities;\n","import React, { useContext } from \"react\"\nimport OrderEscalationContextProvider, { OrderEscalationContext } from './OrderEscalation.context'\nimport { componentStep } from \"./constants\"\nimport { useQuery } from \"react-query\"\nimport { OrderEscalationAPI } from \"./api\"\n\nconst OrderEscalation = ({ orderData, handleCloseModal, singleException, handleEscalateSuccess }) => {\n const { data, isLoading } = useQuery(\n 'escalation-types',\n OrderEscalationAPI.fetchEscalationTypes,\n {\n staleTime: Infinity,\n refetchInterval: false,\n retry: false,\n }\n )\n if (isLoading) {\n return
Loading...
\n }\n\n return (\n \n \n \n )\n}\n\nconst EscalateStep = () => {\n const {\n currentStep\n } = useContext(OrderEscalationContext)\n const Component = componentStep[currentStep]\n return \n}\n\nexport default OrderEscalation\n","import axios from 'axios'\n\nexport const ResolveOrderExceptionAPI = {\n getReolutionTypes: async () => {\n const response = await axios.get(\"/api/data/resolution-types/\")\n return response.data\n },\n getExceptions: async () => {\n const response = await axios.get(\"/api/data/exceptions/\")\n return response.data\n },\n disposeException: async ({\n order_ids, reason\n }) => {\n const url = \"/api/order/dispose-exceptions/\"\n const data = {\n order_ids: order_ids,\n order_activity_reason: reason,\n }\n const response = await axios.post(url, data)\n return response.data\n },\n rtvException: async ({\n order_ids, reason\n }) => {\n const url = \"/api/order/rtv-exceptions/\"\n const data = {\n order_ids: order_ids,\n order_activity_reason: reason,\n }\n const response = await axios.post(url, data)\n return response.data\n },\n resolveException: async ({\n order_ids, exceptions, reason,\n }) => {\n const url = \"/api/order/resolve-exceptions/\"\n const data = {\n order_ids: order_ids,\n exceptions: exceptions,\n order_activity_reason: reason,\n }\n const response = await axios.post(url, data)\n return response.data\n },\n validateResolutionType: async ({\n order_ids, resolution_type\n }) => {\n const url = \"/api/order/validate-exception-resolution/\"\n const requestBody = {\n resolution_type,\n order_ids\n }\n try {\n const response = await axios.post(url, requestBody)\n return response.data\n } catch (err) {\n const response = {\n isError: true,\n error: err?.response?.data\n }\n return response\n }\n },\n redeliver: async ({\n reason, redeliver_exceptions\n }) => {\n const url = \"/api/order/redeliver-exceptions/\"\n const data = {\n order_activity_reason: reason,\n redeliver_exceptions,\n }\n try {\n const response = await axios.post(url ,data)\n return response.data\n } catch (err) {\n const response = {\n isError: true,\n error: err?.response?.data\n }\n return response\n }\n },\n recollectNewTN: async ({ reason, recollection_exceptions }) => {\n const url = \"/api/order/recollect-new-rts-exceptions/ \"\n const data = {\n order_activity_reason: reason,\n recollection_exceptions,\n }\n try {\n const response = await axios.post(url ,data)\n return response.data\n } catch (err) {\n const response = {\n isError: true,\n error: err?.response?.data\n }\n return response\n }\n },\n recollectExistingTN: async ({\n order_ids, reason\n }) => {\n const url = \"/api/order/recollect-existing-rts-exceptions/\"\n const data = {\n order_ids: order_ids,\n order_activity_reason: reason,\n }\n const response = await axios.post(url, data)\n return response.data\n },\n cancelRTS: async ({\n order_ids, reason\n }) => {\n const url = \"/api/order/cancel-rts-exceptions/\"\n const data = {\n order_ids: order_ids,\n order_activity_reason: reason,\n }\n const response = await axios.post(url, data)\n return response.data\n },\n}\n","import React, { useContext } from \"react\"\nimport { Select, Button } from \"antd\"\nimport { useQuery } from \"react-query\"\nimport { ResolveOrderExceptionAPI } from \"../api\"\nimport { useFormik } from \"formik\"\nimport * as yup from \"yup\"\nimport { ResolveOrderExceptionContext } from \"../ResolveOrderException.context\"\nimport { steps } from \"../constants\"\n\nconst { Option } = Select\n\nconst ChooseExceptions = () => {\n const {\n handleCloseModal,\n saveData, setCurrentStep,\n orderDataExceptions\n } = useContext(ResolveOrderExceptionContext)\n\n const { data: exceptions, isLoading: exceptionLoading } = useQuery(\n \"exceptions\",\n ResolveOrderExceptionAPI.getExceptions,\n {\n staleTime: Infinity,\n refetchInterval: false\n }\n )\n\n const formik = useFormik({\n initialValues: {\n exceptions: []\n },\n validationSchema: yup.object().shape({\n exceptions: yup.array().of(yup.string()).required(\"This field is required.\")\n }),\n onSubmit: async (values) => {\n saveData(values)\n setCurrentStep(steps.leaveNote)\n }\n })\n\n const exceptionOptions = !exceptionLoading\n ? exceptions.map(e => {\n let enabled = orderDataExceptions.includes(e) || e === \"All Exceptions\"\n return \n })\n : []\n\n return (\n
\n
Which exception are you resolving?
\n\n
\n

Only exceptions which have been selected will be resolved.

\n\n
\n {\n formik.setFieldValue(\"exceptions\", value)\n }}>\n {exceptionOptions}\n \n {\n formik.errors.exceptions &&\n {formik.errors.exceptions}\n }\n
\n
\n\n
\n
\n
\n \n \n
\n
\n
\n )\n}\n\nexport default ChooseExceptions","import React, { useContext } from \"react\"\nimport { Select, Button } from \"antd\"\nimport { useFormik } from \"formik\"\nimport { useQuery } from \"react-query\"\nimport * as yup from \"yup\"\n\nimport { ResolveOrderExceptionAPI } from \"../api\"\nimport { ResolveOrderExceptionContext } from \"../ResolveOrderException.context\"\n\nconst { Option } = Select\n\nconst ChooseResolutionMethod = () => {\n const {\n handleCloseModal,\n orderIds,\n setCurrentStep,\n saveData,\n getNextStep,\n orderDataExceptions\n } = useContext(ResolveOrderExceptionContext)\n \n const { data: resolutionTypes, isLoading: resolutionTypeLoading } = useQuery(\n \"resolution-type\",\n ResolveOrderExceptionAPI.getReolutionTypes,\n {\n staleTime: Infinity,\n refetchInterval: false\n }\n )\n\n const resolutionTypeOptions = !resolutionTypeLoading\n ? Object.entries(resolutionTypes).map(([type, resolutionExceptions]) => {\n let enabled = type === \"Others\"\n for (let e of orderDataExceptions) {\n if (resolutionExceptions.includes(e)) {\n enabled = true\n break\n }\n }\n return \n })\n : []\n\n const initialValues = {\n resolutionType: undefined\n }\n const validationSchema = yup.object().shape({\n resolutionType: yup.string().nullable().required(\"This field is required.\")\n })\n const onSubmit = async (values, { setSubmitting, setErrors }) => {\n setSubmitting(true)\n const validationResponse = await ResolveOrderExceptionAPI.validateResolutionType({\n order_ids: orderIds,\n resolution_type: values.resolutionType\n })\n setSubmitting(false)\n if (validationResponse.isError) {\n setErrors({\n resolutionType: validationResponse.error?.errors\n })\n } else {\n saveData(values)\n const nextStep = getNextStep(values.resolutionType)\n setCurrentStep(nextStep)\n }\n }\n const formik = useFormik({\n initialValues,\n validationSchema,\n onSubmit,\n })\n\n return (\n
\n
Choose Resolution Method
\n\n
\n
\n
\n {\n formik.setFieldValue(\"resolutionType\", value)\n }}>\n {resolutionTypeOptions}\n \n {\n formik.errors.resolutionType &&\n {formik.errors.resolutionType}\n }\n
\n
\n
\n
\n
\n \n \n
\n
\n
\n\n
\n )\n}\n\nexport default ChooseResolutionMethod","import React, { useMemo } from \"react\"\nimport { Select } from \"antd\"\nimport useStates from \"./hooks/useStates\"\n\nconst { Option } = Select\n\nconst SelectStates = ({ country, ...rest }) => {\n const {\n placeholder=\"Select state\",\n value,\n onChange,\n additionalParams,\n ...otherProps\n } = rest\n const { states, isLoading } = useStates(country, additionalParams)\n\n const statesOptions = states.length\n ? states.map(state => {\n return {state.state_name}\n })\n : []\n\n return useMemo(() =>\n \n {statesOptions}\n ,\n [value, isLoading, statesOptions]\n )\n}\n\nexport default SelectStates\n","import React, { useMemo } from \"react\"\nimport { Select, AutoComplete } from \"antd\"\nimport useCities from \"./hooks/useCities\"\n\nconst { Option } = Select\n\nconst SelectCities = ({ country, state, ...rest }) => {\n const {\n placeholder=\"Select city\",\n value,\n onChange,\n disabled,\n additionalParams,\n ...otherProps\n } = rest\n const { cities, isLoading } = useCities(country, state, additionalParams)\n\n const cityOptions = cities.length\n ? cities.map(city => {\n return (\n \n {city.city_name}\n \n )\n })\n : []\n\n return useMemo(() =>\n // \n // option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0\n // }\n // placeholder={placeholder}\n // value={value}\n // onSelect={onSelect}\n // loading={isLoading}\n // disabled={!country || !state || isLoading || disabled}\n // >\n // {cityOptions}\n // ,\n ,\n [value, isLoading, cityOptions, country, state]\n )\n}\n\nexport default SelectCities\n","import React, { useContext } from \"react\"\nimport { ResolveOrderExceptionContext } from \"../ResolveOrderException.context\"\nimport { Form, Input, Button, Select } from \"antd\"\nimport { useFormik } from \"formik\"\nimport * as yup from \"yup\"\nimport { steps } from \"../constants\"\nimport SelectStates from \"../../../common/SelectStates\"\nimport SelectCities from \"../../../common/SelectCities\"\n\nconst { Option } = Select\n\n\nconst ConsigneeDetails = () => {\n const {\n orderData\n } = useContext(ResolveOrderExceptionContext)\n if (orderData.length > 1) {\n return \n }\n return \n}\n\n\nconst ConsigneeDetailsForms = ({ order }) => {\n const {\n handleCloseModal,\n saveData, setCurrentStep,\n collectedData, submitResponse,\n orderData\n } = useContext(ResolveOrderExceptionContext)\n\n const { redeliver_exceptions } = collectedData\n const consigneeDetails = (redeliver_exceptions && redeliver_exceptions[0]) || {}\n\n const initialValues = {\n order_id: order.order_id,\n consignee_name: consigneeDetails.consignee_name || order.consignee_name || undefined,\n consignee_address: consigneeDetails.consignee_address || order.consignee_address || undefined,\n consignee_postal: consigneeDetails.consignee_postal || order.consignee_postal || undefined,\n consignee_state: consigneeDetails.consignee_state || order.consignee_state || undefined,\n consignee_city: consigneeDetails.consignee_city || order.consignee_city || undefined,\n consignee_country: consigneeDetails.consignee_country || order.consignee_country || undefined,\n consignee_number: consigneeDetails.consignee_number || order.consignee_number || undefined,\n consignee_email: consigneeDetails.consignee_email || order.consignee_email || undefined,\n payment_type: consigneeDetails.payment_type || order.payment_type || undefined,\n cod_amt_to_collect: consigneeDetails.cod_amt_to_collect || order.cod_amt_to_collect || undefined,\n }\n const validationSchema = yup.object().shape({\n consignee_name: yup.string().nullable(),\n consignee_address: yup.string().nullable(),\n consignee_postal: yup.string().nullable(),\n consignee_state: yup.string().nullable(),\n consignee_city: yup.string().nullable(),\n consignee_country: yup.string().nullable(),\n consignee_number: yup.string().nullable(),\n consignee_email: yup.string().nullable(),\n payment_type: yup.string().nullable(),\n cod_amt_to_collect: yup.number(\"Enter a valid number\").nullable(),\n })\n\n const onSubmit = async (values, { setSubmitting, setErrors }) => {\n saveData({\n redeliver_exceptions: [values]\n })\n setCurrentStep(steps.leaveNote)\n }\n\n let initialErrors = {}\n if (orderData.length === 1 && submitResponse?.isError && submitResponse?.error?.redeliver_exceptions) {\n const errorData = submitResponse.error?.redeliver_exceptions[0]\n initialErrors = {...errorData}\n }\n\n const formik = useFormik({\n initialValues,\n validationSchema,\n onSubmit,\n initialErrors,\n initialTouched: initialErrors,\n enableReinitialize: true\n })\n\n const getErrorsProps = fieldName => {\n if (formik.touched[fieldName] && formik.errors[fieldName]) {\n return {\n validateStatus: \"error\",\n help: formik.errors[fieldName],\n hasFeedback: true\n };\n }\n return {};\n };\n const getFieldProps = (fieldName, forceDisabled=false) => ({\n name: fieldName,\n autoComplete: \"off\",\n value: formik.values[fieldName],\n onChange: formik.handleChange,\n disabled: formik.isSubmitting || forceDisabled\n });\n const disabledCountry = true\n\n return (\n
\n
Check consignee details
\n
\n
\n
\n \n \n \n
\n
\n \n \n \n
\n
\n \n \n \n
\n
\n \n \n \n
\n
\n \n \n \n
\n
\n \n {\n formik.setFieldValue(\"consignee_state\", value)\n formik.setFieldValue(\"consignee_city\", null)\n }}\n value={formik.values.consignee_state}\n />\n \n
\n
\n \n {\n formik.setFieldValue(\"consignee_city\", value)\n }}\n />\n \n
\n
\n \n \n \n
\n
\n \n \n \n
\n
\n \n \n \n
\n
\n \n \n \n
\n
\n
\n\n {formik.errors.order_id &&\n
\n

{formik.errors.order_id}

\n
\n }\n {formik.errors.non_field_errors &&\n
\n {formik.errors.non_field_errors.map((err, i) => (\n

{err}

\n ))}\n
\n }\n\n
\n
\n
\n \n \n
\n
\n
\n )\n}\n\nconst BulkCheckConsignee = () => {\n const {\n setCurrentStep\n } = useContext(ResolveOrderExceptionContext)\n return (\n
\n
Check consignee details
\n
\n

Are there any order details to be corrected? If so, please select them for redelivery individually. Redelivery for selected orders will be resubmitted with their existing data.

\n
\n\n
\n
\n
\n \n
\n
\n
\n )\n}\n\nexport default ConsigneeDetails","import React, { useContext } from \"react\"\nimport { Input, Button } from \"antd\"\nimport { ResolveOrderExceptionContext } from \"../ResolveOrderException.context\"\nimport { useFormik } from \"formik\"\nimport * as yup from \"yup\"\nimport { steps } from \"../constants\"\n\nconst LeaveNote = () => {\n const {\n handleCloseModal,\n submitData,\n setCurrentStep,\n } = useContext(ResolveOrderExceptionContext)\n\n const initialValues = {\n reason: undefined\n }\n const validationSchema = yup.object().shape({\n reason: yup.string().nullable()\n })\n const onSubmit = async (values, { setSubmitting, setErrors }) => {\n setSubmitting(true)\n const submitResponse = await submitData(values.reason)\n console.log(\"submitResponse\", submitResponse)\n setSubmitting(false)\n\n if (submitResponse.isError) {\n if (submitResponse.error.redeliver_exceptions) {\n setCurrentStep(steps.consigneeDetails)\n } else if (submitResponse.error.recollection_exceptions) {\n setCurrentStep(steps.pickupDetails)\n }\n } else {\n setCurrentStep(steps.success)\n }\n }\n const formik = useFormik({\n initialValues,\n validationSchema,\n onSubmit\n })\n \n return (\n
\n
Leave a note
\n\n
\n
\n \n {\n formik.errors.reason &&\n {formik.errors.reason}\n }\n
\n\n
\n
\n
\n \n \n
\n
\n
\n
\n )\n}\n\nexport default LeaveNote","import React, { useContext } from \"react\"\nimport { ResolveOrderExceptionContext } from \"../ResolveOrderException.context\"\nimport { Form, Input, Button, Select } from \"antd\"\nimport { useFormik } from \"formik\"\nimport * as yup from \"yup\"\nimport { steps } from \"../constants\"\nimport SelectStates from \"../../../common/SelectStates\"\nimport SelectCities from \"../../../common/SelectCities\"\n\nconst { Option } = Select\n\n\nconst PickupDetails = () => {\n const {\n orderData\n } = useContext(ResolveOrderExceptionContext)\n if (orderData.length > 1) {\n return \n }\n return \n}\n\n\nconst PickupDetailsForms = ({ order }) => {\n const {\n handleCloseModal,\n saveData, setCurrentStep,\n collectedData, submitResponse,\n orderData\n } = useContext(ResolveOrderExceptionContext)\n\n const { recollection_exceptions } = collectedData\n const pickupDetails = (recollection_exceptions && recollection_exceptions[0]) || {}\n\n const initialValues = {\n order_id: order.order_id,\n pickup_contact_name: pickupDetails.pickup_contact_name || order.pickup_contact_name || undefined,\n pickup_address: pickupDetails.pickup_address || order.pickup_address || undefined,\n pickup_postal: pickupDetails.pickup_postal || order.pickup_postal || undefined,\n pickup_state: pickupDetails.pickup_state || order.pickup_state || undefined,\n pickup_city: pickupDetails.pickup_city || order.pickup_city || undefined,\n pickup_country: pickupDetails.pickup_country || order.pickup_country || undefined,\n pickup_contact_number: pickupDetails.pickup_contact_number || order.pickup_contact_number || undefined,\n pickup_contact_email: pickupDetails.pickup_contact_email || order.pickup_contact_email || undefined,\n payment_type: pickupDetails.payment_type || order.payment_type || undefined,\n cod_amt_to_collect: pickupDetails.cod_amt_to_collect || order.cod_amt_to_collect || undefined,\n }\n const validationSchema = yup.object().shape({\n pickup_contact_name: yup.string().nullable(),\n pickup_address: yup.string().nullable(),\n pickup_postal: yup.string().nullable(),\n pickup_state: yup.string().nullable(),\n pickup_city: yup.string().nullable(),\n pickup_country: yup.string().nullable(),\n pickup_contact_number: yup.string().nullable(),\n pickup_contact_email: yup.string().nullable(),\n payment_type: yup.string().nullable(),\n cod_amt_to_collect: yup.number(\"Enter a valid number\").nullable(),\n })\n\n const onSubmit = async (values, { setSubmitting, setErrors }) => {\n saveData({\n recollection_exceptions: [values]\n })\n setCurrentStep(steps.leaveNote)\n }\n\n let initialErrors = {}\n if (orderData.length === 1 && submitResponse?.isError && submitResponse?.error?.recollection_exceptions) {\n const errorData = submitResponse.error?.recollection_exceptions[0]\n initialErrors = {...errorData}\n }\n\n const formik = useFormik({\n initialValues,\n validationSchema,\n onSubmit,\n initialErrors,\n initialTouched: initialErrors,\n enableReinitialize: true\n })\n\n const getErrorsProps = fieldName => {\n if (formik.touched[fieldName] && formik.errors[fieldName]) {\n return {\n validateStatus: \"error\",\n help: formik.errors[fieldName],\n hasFeedback: true\n };\n }\n return {};\n };\n const getFieldProps = (fieldName, forceDisabled=false) => ({\n name: fieldName,\n autoComplete: \"off\",\n value: formik.values[fieldName],\n onChange: formik.handleChange,\n disabled: formik.isSubmitting || forceDisabled\n });\n const disabledCountry = true\n\n return (\n
\n
Check order details
\n
\n
\n
\n \n \n \n
\n
\n \n \n \n
\n
\n \n \n \n
\n
\n \n \n \n
\n
\n \n \n \n
\n
\n \n {\n formik.setFieldValue(\"pickup_state\", value)\n formik.setFieldValue(\"pickup_city\", null)\n }}\n value={formik.values.pickup_state}\n />\n \n
\n
\n \n {\n formik.setFieldValue(\"pickup_city\", value)\n }}\n />\n \n
\n
\n \n \n \n
\n
\n \n \n \n
\n
\n \n \n \n
\n
\n \n \n \n
\n
\n
\n\n {formik.errors.order_id &&\n
\n

{formik.errors.order_id}

\n
\n }\n {formik.errors.non_field_errors &&\n
\n {formik.errors.non_field_errors.map((err, i) => (\n

{err}

\n ))}\n
\n }\n\n
\n
\n
\n \n \n
\n
\n
\n )\n}\n\nconst BulkCheckPickup = () => {\n const {\n setCurrentStep\n } = useContext(ResolveOrderExceptionContext)\n return (\n
\n
Check order details
\n
\n

Are there any order details to be corrected? If so, please select them for recollection individually. Recollection for selected orders will be resubmitted with their existing data.

\n
\n\n
\n
\n
\n \n
\n
\n
\n )\n}\n\nexport default PickupDetails","import React, { useContext } from \"react\"\nimport { ResolveOrderExceptionContext } from \"../ResolveOrderException.context\"\nimport { Button } from \"antd\"\nimport { invalidateQueryException } from \"../utils\"\n\nconst resolution = {\n Redeliver: \"redelivery\",\n Dispose: \"disposal\"\n}\n\nconst ResolutionSuccess = () => {\n const {\n collectedData,\n handleCloseModal,\n submitResponse,\n singleException\n } = useContext(ResolveOrderExceptionContext)\n\n const handleOK = () => {\n if (singleException) {\n setTimeout(() => {\n invalidateQueryException(singleException.order_id, singleException.id)\n }, 600)\n }\n handleCloseModal()\n }\n const resolvedCount = submitResponse?.resolved_orders || 0\n\n return (\n
\n
Resolution is successful
\n
\n {\n collectedData.resolutionType === \"Others\"\n ?

Exception for {resolvedCount} orders has been resolved.

\n :

A {resolution[collectedData.resolutionType] || collectedData.resolutionType} for {resolvedCount} orders has been arranged.

\n }\n
\n\n
\n
\n
\n \n
\n
\n
\n )\n}\n\nexport default ResolutionSuccess\n","import ChooseExceptions from \"./components/ChooseExceptions\"\nimport ChooseResolutionMethod from \"./components/ChooseResolutionMethod\"\nimport ConsigneeDetails from \"./components/ConsigneeDetailsForm\"\nimport LeaveNote from \"./components/LeaveNote\"\nimport PickupDetails from \"./components/PickupDetailsForm\"\nimport ResolutionSuccess from \"./components/ResolutionSuccess\"\n\nexport const steps = {\n chooseResolutionMethod: \"chooseResolutionMethod\",\n chooseExceptions: \"chooseExceptions\",\n consigneeDetails: \"consigneeDetails\",\n pickupDetails: \"pickupDetails\",\n leaveNote: \"leaveNote\",\n success: \"success\",\n}\n\nexport const componentStep = {\n chooseResolutionMethod: ChooseResolutionMethod,\n chooseExceptions: ChooseExceptions,\n consigneeDetails: ConsigneeDetails,\n pickupDetails: PickupDetails,\n leaveNote: LeaveNote,\n success: ResolutionSuccess\n}\n\n\nexport const RESOLUTION_TYPES = { // types from backend\n cancellation: 'Cancellation',\n dispose: 'Dispose',\n others: 'Others',\n rtv: 'RTV',\n recollectExistingTN: 'Recollection (Existing TN)',\n recollectNewTN: 'Recollection (New TN)',\n redeliver: 'Redeliver'\n}\n","import { queryCache } from 'react-query'\n\nexport const invalidateQueryException = (orderId, exceptionId) => {\n const key = ['order-exceptions', orderId]\n const previousExceptions = queryCache.getQueryData(key)\n const updatedExceptions = previousExceptions.filter(\n exception => parseInt(exception.id) !== parseInt(exceptionId)\n )\n queryCache.setQueryData(key, updatedExceptions)\n}\n","import React, { useState, useCallback, useMemo } from \"react\"\nimport { ResolveOrderExceptionAPI } from \"./api\"\nimport { RESOLUTION_TYPES, steps } from \"./constants\"\n\nexport const ResolveOrderExceptionContext = React.createContext()\nconst ResolveOrderExceptionContextProvider = ({ orderData, handleCloseModal, singleException, children }) => {\n const [currentStep, setCurrentStep] = useState(steps.chooseResolutionMethod)\n const [collectedData, setCollectedData] = useState(\n singleException\n ? {exceptions: [singleException.exception]}\n : {}\n )\n const [submitResponse, setSubmitResponse] = useState()\n const orderIds = useCallback(orderData.map(order => order.order_id), [orderData])\n\n const saveData = (data) => {\n setCollectedData({\n ...collectedData,\n ...data\n })\n }\n\n const orderDataExceptions = useMemo(() => {\n if (singleException) {\n return [singleException.exception]\n }\n let exceptions = []\n for (let order of orderData) {\n exceptions = [...exceptions, ...order.order_exceptions]\n }\n return [...new Set(exceptions)]\n }, [orderData, singleException])\n\n const submitData = async (reason=undefined) => {\n const resolutionTypeApi = {\n [RESOLUTION_TYPES.dispose]: {\n api: ResolveOrderExceptionAPI.disposeException,\n },\n [RESOLUTION_TYPES.rtv]: {\n api: ResolveOrderExceptionAPI.rtvException,\n },\n [RESOLUTION_TYPES.recollectExistingTN]: {\n api: ResolveOrderExceptionAPI.recollectExistingTN,\n },\n [RESOLUTION_TYPES.cancellation]: {\n api: ResolveOrderExceptionAPI.cancelRTS,\n },\n [RESOLUTION_TYPES.others]: {\n api: ResolveOrderExceptionAPI.resolveException,\n getParams: () => {\n return {\n order_ids: orderIds,\n exceptions: collectedData.exceptions,\n reason,\n }\n }\n },\n [RESOLUTION_TYPES.redeliver]: {\n api: ResolveOrderExceptionAPI.redeliver,\n getParams: () => {\n let redeliverExceptions\n if (orderData.length === 1) {\n redeliverExceptions = collectedData.redeliver_exceptions\n } else { // bulk redeliver\n redeliverExceptions = orderData.map(order => {\n return {\n order_id: order.order_id,\n consignee_name: order.consignee_name,\n consignee_address: order.consignee_address,\n consignee_postal: order.consignee_postal,\n consignee_state: order.consignee_state,\n consignee_city: order.consignee_city,\n consignee_number: order.consignee_number,\n consignee_email: order.consignee_email,\n payment_type: order.payment_type,\n cod_amt_to_collect: order.cod_amt_to_collect,\n }\n })\n }\n return {\n reason,\n redeliver_exceptions: redeliverExceptions\n }\n }\n },\n [RESOLUTION_TYPES.recollectNewTN]: {\n api: ResolveOrderExceptionAPI.recollectNewTN,\n getParams: () => {\n let recollectionExceptions\n if (orderData.length === 1) {\n recollectionExceptions = collectedData.recollection_exceptions\n } else { // bulk redeliver\n recollectionExceptions = orderData.map(order => {\n return {\n order_id: order.order_id,\n pickup_contact_name: order.pickup_contact_name,\n pickup_address: order.pickup_address,\n pickup_postal: order.pickup_postal,\n pickup_state: order.pickup_state,\n pickup_city: order.pickup_city,\n pickup_contact_number: order.pickup_contact_number,\n pickup_contact_email: order.pickup_contact_email,\n payment_type: order.payment_type,\n cod_amt_to_collect: order.cod_amt_to_collect,\n }\n })\n }\n return {\n reason,\n recollection_exceptions: recollectionExceptions\n }\n }\n },\n }\n\n const defaultParams = {\n order_ids: orderIds,\n reason\n }\n\n let response\n const apiFunc = resolutionTypeApi[collectedData.resolutionType].api\n const getParams = resolutionTypeApi[collectedData.resolutionType].getParams\n const params = getParams ? getParams() : defaultParams\n response = await apiFunc(params)\n setSubmitResponse(response)\n return response\n }\n\n const getNextStep = useCallback((resolutionType) => {\n let nextStep\n if (resolutionType === RESOLUTION_TYPES.redeliver) {\n nextStep = steps.consigneeDetails\n } else if (resolutionType === RESOLUTION_TYPES.recollectNewTN) {\n nextStep = steps.pickupDetails\n } else if (resolutionType === RESOLUTION_TYPES.others) {\n nextStep = steps.chooseExceptions\n if (singleException) {\n nextStep = steps.leaveNote\n }\n } else {\n nextStep = steps.leaveNote\n }\n return nextStep\n }, [singleException])\n\n const value = {\n orderIds,\n orderData, handleCloseModal,\n currentStep, setCurrentStep,\n collectedData, setCollectedData,\n saveData, submitData,\n getNextStep,\n orderDataExceptions,\n submitResponse,\n singleException\n }\n return (\n \n {children}\n \n )\n}\n\nexport default ResolveOrderExceptionContextProvider\n","import React, { useContext } from \"react\"\nimport ResolveOrderExceptionContextProvider, { ResolveOrderExceptionContext } from './ResolveOrderException.context'\nimport { componentStep } from \"./constants\"\n\n\nconst ResolveOrderException = ({ orderData, handleCloseModal, singleException }) => {\n return (\n \n \n \n )\n}\n\nconst ResolveStep = () => {\n const {\n currentStep\n } = useContext(ResolveOrderExceptionContext)\n const Component = componentStep[currentStep]\n return \n}\n\nexport default ResolveOrderException\n","import { atom } from \"recoil\";\n\nexport const AgentApplicationsAtom = atom({\n key: \"agent-applications-atom\",\n default: [],\n});\n","import axios from \"axios\";\nimport { useQuery } from \"react-query\";\nimport { useRecoilState } from \"recoil\";\nimport { AgentApplicationsAtom } from \"../recoil/atoms/agentApplicationListAtom\";\n\nconst URL = \"/api/order/app/\";\n\nconst useAgentApplications = () => {\n const [agentApplications, setAgentApplications] = useRecoilState(\n AgentApplicationsAtom\n );\n const token = localStorage.getItem(\"token\");\n\n const { isLoading } = useQuery(\n \"agent-applications\",\n async () => {\n const r = await axios.get(URL, {\n headers: {\n Authorization: `Token ${token}`,\n },\n });\n return r.data;\n },\n {\n refetchOnWindowFocus: false, // staleTime: Infinity,\n refetchInterval: false,\n onSuccess: (data) => {\n setAgentApplications(data);\n },\n onError: (err) => {},\n }\n );\n\n return [agentApplications, isLoading];\n};\n\nexport default useAgentApplications;\n","import React from 'react'\nimport { ClipLoader } from 'react-spinners'\n\nconst Loading = () => (\n
\n
\n \n
\n
\n)\n\nexport default Loading","import React from \"react\"\nimport { Select } from \"antd\"\nimport { useQuery } from \"react-query\"\nimport { OrderEscalationAPI } from \"../api\"\nimport { escalationStatuses } from \"../constants\"\nimport { capitalizeUnderscore } from \"../../../../utils\"\n\nconst { Option } = Select\n\nexport default function EscaltionStatusOptions({ onChange, value, ...rest }) {\n const { data, isLoading } = useQuery(\n \"escalation-statuses\",\n OrderEscalationAPI.getEscalationStatuses,\n {\n staleTime: Infinity,\n refetchInterval: false\n }\n )\n\n return (\n \n {!isLoading && !!data\n ? data.map(status => {\n const statusLabel = escalationStatuses?.[status]?.title || capitalizeUnderscore(status)\n return (\n \n )\n })\n : []\n }\n \n )\n}\n","import React from \"react\";\nimport { createFilter } from \"react-select\";\nimport Select from \"./common/OptimzedSelect/OptimizedSelect\";\n\nconst AgentApplicationDropdown = React.memo(({ onChange, mode = \"single\", value, agentApplications, agentApplicationsLoading, ...props }) => {\n const renderOptions = () => {\n if (agentApplications) {\n let options = [{ agent_application_id: \"\", agent_application_name: \"All agent applications\" }];\n return options.concat(agentApplications.map((app) => ({ agent_application_id: app.agent_application_id, agent_application_name: app.agent_application_name })));\n }\n };\n\n return (\n option.agent_application_name}\n getOptionValue={(option) => option.agent_application_id}\n placeholder=\"Select agent applications\"\n clearable\n onChange={onChange}\n options={renderOptions()}\n maxMenuHeight={100}\n menuHeight={100}\n debounceInterval={200}\n filterOption={createFilter({ ignoreAccents: false })}\n rowCount={agentApplications?.length}\n value={value}\n isLoading={agentApplicationsLoading}\n isDisabled={agentApplicationsLoading || props.isDisabled}\n width=\"100%\"\n />\n );\n});\n\nexport default AgentApplicationDropdown;\n","import React, { useRef } from \"react\";\nimport Select from \"react-select\";\nimport { List } from \"react-virtualized\";\n\nconst MenuList = (props) => {\n const rows = props.children;\n const rowRenderer = ({ key, index, isScrolling, isVisible, style }) => {\n if (Array.isArray(rows)) {\n return (\n
\n {rows[index]}\n
\n );\n }\n };\n\n const noRowsRenderer = () => {\n return (\n \n [No Options]\n \n );\n };\n\n return (\n \n );\n};\n\nconst FastSelect = (props) => {\n const containerRef = useRef(null);\n return (\n
\n ({ ...base, zIndex: 9999 }),\n }}\n closeMenuOnScroll={(e) => {\n return e.target.contains(containerRef.current);\n }}\n {...props}\n menuPortalTarget={document.body}\n />\n
\n );\n};\n\nexport default FastSelect;\n","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAR0AAAEVCAMAAADq58EkAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAC01BMVEUAAAAAACgAACgAACgAACgAACcAACsAAAAAACgAACgAACkAACkAACkAACkAACkAACQAACcAACkAACgAACgAACgAADkAAFUAACcAACsAACkAACgAACgAACgAACgAACYAACYAACcAACcAACgAACkAACgAACYAACMAACgAACkAACcAAC0AADMAACcAACoAACsAACsAACoAACcAACkAACgAACgAAAAAACgAACgAAAAAACcAACYAACgAADcAACkAACkAACgAACgAACQAACkAACgAACcAACgAACgAAEAAACoAACkAACkAACYAACcAACcAACMAACkAACkAACkAACsAACcAACgAACkAACEAACgAACkAADMAACkAACcAACcAACcAACkAACgAACcAACoAACgAACcAACgAACgAACgAACcAACgAACgAACYAACgAACgAACcAACYAACgAACkAACgAACcAACkAACcAACkAACgAACcAACgAACcAACgAACgAACkAAC4AACgAACgAACYAACgAACIAACgAACcAACoAACgAACkAACkAACcAACcAACgAACcAACgAACYAACgAACkAACYAACoAACgAACgAACsAACkAACgAACkAACcAACgAACcAACkAACgAACgAACgAACkAACYAACAAABwAACgAACkAACkAACgAACcAACwAACYAACgAACsAACcAACgAACsAACcAACcAACgAACsAACkAACcAACgAACoAACoAACcAACgAACkAACAAACQAACkAACkAACgAACkAACkAACgAACgAACsAACgAACcAADAAACcAACkAACgAACkAACgAACgAACUAACYAACgAACgAACYAACgAACgAACYAACgAACcAACcAACYAACgAACkAACcAADMAACcAACgAACgAACsAACgAACcAACoAACkAACQAACgAACcAACgAACgAACkAACoAACUAACr///9xLi3mAAAA8HRSTlMALXqmoXUkAXLZ3NZkXkscj7C02swJA701LGBNILlJSrmWpx/GFBaa2pARDzs3DDZVNFjTZwKLfwMnIkcOidTQeAcZxbeghwQx269Ebm8dJXddBrasUBfYzwp9nFR2l357YSYNzcdGvL5sa6uxcHOAiIwa1UhR10LAv8vI2QuybSitHpSbXI6uilWYgWiYfmXOX1s6zl9FmWO4xLWo0rqNMjwICWZ8glpOKT2eEk+TMFtpWSqjIYZWK8Okqhgjg82/yZ0Tny90ohCRrVNXTIUpLzN5G7NAQzlBwmpzhIkFl8pfTpIugakVu5XRwTiHPmKgRDcnAAAAAWJLR0TwNbjvVAAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAAd0SU1FB+IHBgU1FlA9JukAAA2fSURBVHja7Z35YxXVFccHCDzyiRBiX8IeSghJJGF9RCJbDBjjE4IS2Zf6kFWWKoaSCGGTRalYKKWAsgkVhVRA1rLaKAqILEV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xtw83SgW8FF+/RO+zq9/nfh2Bp7xU3fnFBqvi5fc5rjizpSMj8mIiJiSMx3Xn/oYf/tc+OV2qH0rtuPUB7F7G2n1CZ59lw7FlkmMj8kN7qs1EKN/Kn+xhF3JJPYduWlOKUWK7pgb5PbhbODe6HJERdabE1SROootTPtp/hd3bp16xJfcOlEe48QEYlEIpFIJBKJRCKRSCQSiUQikUgkEolEldL/AUZyWTkodvwdAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDE4LTA3LTA2VDA1OjUzOjIyKzAwOjAwiGApZgAAACV0RVh0ZGF0ZTptb2RpZnkAMjAxOC0wNy0wNlQwNTo1MzoyMiswMDowMPk9kdoAAAAZdEVYdFNvZnR3YXJlAHd3dy5pbmtzY2FwZS5vcmeb7jwaAAAAAElFTkSuQmCC\"","import React from 'react'\nimport { connect } from 'react-redux'\nimport { getObjectValueByPath } from '../../../utils/ObjectUtils'\nimport store from '../../../store'\nimport { checkIsAdmin } from '../../../utils'\n\nexport const hasPermission = permissionNames => {\n const featuresObj = store.getState().auth.featuresObj || {}\n return getObjectValueByPath(featuresObj, permissionNames)\n}\n\nconst FeatureRequired = props => {\n let { disable, hide, feature, user, children } = props\n\n const isAdmin = checkIsAdmin(user)\n if (isAdmin) {\n return children\n }\n\n const matchAll = !(props.matchAll === undefined)\n\n if (!disable && !hide) {\n hide = true\n }\n\n const disabledProps = {\n disabled: true, greyed: \"true\",\n title: \"Please request for permission from your admin to access this feature :)\"\n }\n\n // props.features is from redux\n if (!props.features || !props.features.length) {\n if (!!hide) return ''\n if (!!disable) {\n return React.cloneElement(props.children, disabledProps) // with disable\n }\n }\n\n let hasPermission\n if (Array.isArray(feature)) {\n const permissions = feature.map(f => getObjectValueByPath(props.featuresObj, f))\n\n if (matchAll) {\n hasPermission = !permissions.some(b => b === 0)\n } else {\n hasPermission = permissions.some(b => b === 1)\n }\n } else {\n hasPermission = getObjectValueByPath(props.featuresObj, feature)\n }\n\n if (!hasPermission) {\n if (!!hide) return ''\n if (!!disable) {\n return React.cloneElement(props.children, disabledProps) // with disable\n }\n } else {\n return children\n }\n}\n\nconst mapState = ({ auth }) => ({\n features: auth.features,\n featuresObj: auth.featuresObj,\n user: auth.user || {}\n})\n\nexport default connect(mapState)(FeatureRequired)"],"sourceRoot":""}