/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
import e from"../../../geometry/SpatialReference.js";import{createEditedFeatures as r}from"../../../layers/graphics/applyEditsUtils.js";function t(t){return t.map(t=>{const i=t.editedFeatures,a=e.fromJSON(i?.spatialReference);return i?{layerId:t.id,editedFeatures:r(i,a)}:null}).filter(e=>null!==e)}export{t as handleServiceEdits};
