import{n as e,t}from"./vendor-redux-D5kx0xgz.js";import{a as n,i as r,r as i}from"./api-sqDSbqTC.js";var a=e({baseUrl:`https://api.wheelsmart-lms.staging.absol.in/api/v1`,prepareHeaders:e=>{let t=r();return t&&e.set(`Authorization`,`Bearer ${t}`),e}}),o=t({reducerPath:`api`,baseQuery:async(e,t,r)=>{let o=await a(e,t,r);if(o.error&&o.error.status===401){if(await n())o=await a(e,t,r);else{i();let e=window.location.pathname.startsWith(`/distributor`)?`/distributor/login`:`/admin/login`;window.location.href=e}}return o},tagTypes:`User.Role.Notification.Setting.DocumentNumbering.AIProvider.AuditLog.Master.LoanProduct.LoanScheme.VehicleMake.VehicleModel.VehicleVariant.ApiKey.Customer.CustomerAddress.CustomerGuarantor.Lead.Estimation.LeadConfig.LoanConfig.LoanApplication.LoanApplicationParty.Workflow.WorkflowStep.WorkflowTransition.WorkflowInstance.WorkflowHistory.ApprovalRequest.WorkflowTask.Escalation.WorkflowConfig.Surepass.Eligibility.EligibilityPolicy.EligibilityConfig.LoanAccount.Disbursement.RepaymentSchedule.LoanPayment.LoanCharge.ReportCatalog.CollectionDisposition.CollectionCase.CollectionAttempt.CollectionPTP.CollectionsConfig.CollectionsDashboard.VonageProvider.CallSession`.split(`.`),endpoints:()=>({})});export{o as t};