"use strict";(globalThis.webpackChunk_openmrs_esm_service_queues_app=globalThis.webpackChunk_openmrs_esm_service_queues_app||[]).push([["714"],{21265(e,t,u){u.r(t),u.d(t,{default:()=>r});var n=u(97125),s=u.n(n),a=u(75921),i=u(73275),o=u(28734);let r=function(e){var t=e.queueEntry,u=e.closeModal,n=(0,a.useTranslation)().t,r=t.previousQueueEntry,l=t.queueComingFrom,c=l.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:l.display,status:r.status.display,interpolation:{escapeValue:!1}}));return s().createElement(o.A,{queueEntry:t,closeModal:u,showPatientName:!1,modalParams:{modalTitle:n("undoTransitionForPatient","Undo transition for {{patient}}",{patient:t.display}),modalInstruction:c,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.g$)({queueEntry:e.uuid})}}})}}}]);