/* COPYRIGHT Esri - https://js.arcgis.com/5.1.2/LICENSE.txt */
function e(e){const{callback:n,disabled:a,formId:c,messages:t}=e;return[{appearance:"solid",disabled:a,form:c,kind:"brand",label:t.footerButtons.update,purpose:"submit",onclick:()=>n()}]}function n(e){const{deleteDisabled:n,deleteOnclick:a,doneOnclick:c,messages:t}=e;return[{appearance:"solid",kind:"brand",label:t.done,purpose:"stage-update-attachment",onclick:c??(()=>{})},{appearance:"outline",disabled:n,icon:"attachment",kind:"danger",label:t.delete,purpose:"stage-delete-attachment",onclick:a??(()=>{})}]}function a(e){const{doneOnclick:n,messages:a,resetOnclick:c,resetDisabled:t}=e;return[{appearance:"solid",kind:"brand",label:a.done,purpose:"stage-update-attachment",onclick:n??(()=>{})},{appearance:"outline",disabled:t,icon:"reset",kind:"brand",label:a.reset,purpose:"discard-attachment-changes",onclick:c??(()=>{})}]}function c(e){const{messages:n,purpose:a,onclick:c}=e;return[{appearance:"outline",kind:"brand",label:n.cancel,purpose:a,onclick:c??(()=>{})}]}export{c as makeCancelFooterButton,e as makeDefaultFooterButtons,n as makeViewingAttachmentFooterButtons,a as makeViewingEditedAttachmentFooterButtons};
