import{validation}from"../../Validation.js";import{inline}from"./tools.js";import{flipHorizontal,flipVertical}from"@arcgis/core/geometry/geometryEngineAsync";class FlipEngineTask{executeUsing(i,e,n){switch(i){case"horizontal":return flipHorizontal(e,n);case"vertical":return flipVertical(e,n)}}execute(i){var e=validation.exists("geometry",i.geometry),n=validation.string("orientation",i.orientation),i=this.executeUsing(n,e,i.origin);return inline(i,function(i){return{geometry:i}})}}FlipEngineTask.action="gcx:wf:arcgis::FlipEngineTask",FlipEngineTask.suite="gcx:wf:builtin";export{FlipEngineTask};