"use strict";(globalThis.webpackChunk_openmrs_esm_service_queues_app=globalThis.webpackChunk_openmrs_esm_service_queues_app||[]).push([["262"],{51421:function(e,t,u){u.r(t),u.d(t,{default:()=>r});var n=u(27350),s=u.n(n),a=u(68892),i=u(64247),o=u(74284);let r=function(e){var t=e.queueEntry,u=e.closeModal,n=(0,a.useTranslation)().t,r=t.previousQueueEntry,c=t.queueComingFrom,l=c.uuid==t.queue.uuid?s().createElement("p",null,n("confirmMoveBackStatus",'Are you sure you want to move patient back to status "{{status}}"?',{status:r.status.display,interpolation:{escapeValue:!1}})):s().createElement("p",null,n("confirmMoveBackQueueAndStatus",'Are you sure you want to move patient back to queue "{{queue}}" with status "{{status}}"?',{queue:c.display,status:r.status.display,interpolation:{escapeValue:!1}}));return s().createElement(o.Z,{queueEntry:t,closeModal:u,showPatientName:!1,modalParams:{modalTitle:n("undoTransitionForPatient","Undo transition for {{patient}}",{patient:t.display}),modalInstruction:l,submitButtonText:n("undoTransition","Undo transition"),submitSuccessTitle:n("undoQueueEntryTransitionSuccess","Undo transition success"),submitSuccessText:n("queueEntryTransitionUndoSuccessful","Queue entry transition undo success"),submitFailureTitle:n("queueEntryTransitionUndoFailed","Error undoing transition"),submitAction:function(e){return(0,i.VK)({queueEntry:e.uuid})}}})}}}]);