1import{I as v,a as d,v as a,j as u,W as P,X as o}from"./index-BrGYhmyP.js";import{O as D}from"./orderPaymentView-Ciof36_K.js";import{M as I}from"./medical-Colleges-Accreditation-QA-FollowUp-workflow-service-D821Qq9t.js";import{M as b}from"./medical-Colleges-Accreditation-QA-FollowUp-service-UAR6PNBf.js";import"./billing-service-Df1b4A_8.js";import"./order-service-CuPQidyS.js";var s=(e=>(e.PayOrder="PayOrder",e.ChequePayment="PayCheque",e.ApprovePayment="ApproveCheque",e.ReturnPayment="ReturnCheque",e.ReturnForRectification="ReturnForRectification",e.RequestReviewDirectorateManager="RequestReviewDirectorateManager",e.RequestReviewDepartmentHead="RequestReviewDepartmentHead",e.RequestAuditEmployee="RequestAuditEmployee",e.ApproveRequestAudit="ApproveRequestAudit",e.CommitteeProposal="CommitteeProposal",e.CommitteeAudit="CommitteeAudit",e.SubmitCommitteeReport="SubmitCommitteeReport",e.ApproveCommitteeReport="ApproveCommitteeReport",e.ReturnCommitteeReport="ReturnCommitteeReport",e.CouncilDecision="CouncilDecision",e.GrantingDecision="GrantingDecision",e.RefusalDecision="RefusalDecision",e))(s||{});function j(){const{SerialGID:e}=v(),m=d(),{data:t,isLoading:n,error:i}=a({queryKey:["openTask",e],queryFn:async()=>{if(!e)throw new Error("SerialGID is required");const r=await o.openTask(e);if(r.hasError||!r.data?.orderId)throw new Error(r.description||"Failed to open task");return r.data},enabled:!!e}),{data:R,isLoading:p}=a({queryKey:["qaProgramContinuousOrder",t?.orderId],queryFn:async()=>{const r=await b.getOrderById(t?.orderId);if(r.hasError||!r.data)throw new Error(r.description||"Failed to load order");return r.data},enabled:!!t?.orderId}),y=R?.orderPublicId,f=(r,q)=>I.workflowAction(y,q);if(n||p)return u.jsx(P,{});if(i||!t?.orderId||!e)throw new Error("Failed to load task data");return u.jsx(D,{visible:!0,workflowActionCallback:f,paymentSubmittedCallback:()=>m("/app/orders/my-orders"),onlineActionName:"PayOrder",offlineActionName:s.ChequePayment})}export{j as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.