import{validation}from"../../Validation.js";import{isArcGisApiVersion3x}from"./ArcGisApiVersion.js";class RefreshLayer{execute(e){e=validation.exists("layer",e.layer);return this.refresh(e),{}}refresh(e){var i;"function"==typeof e.refresh&&(isArcGisApiVersion3x&&"boolean"==typeof e.disableClientCaching?(i=e.disableClientCaching,e.disableClientCaching=!0,e.refresh(),e.disableClientCaching=i):e.refresh())}}RefreshLayer.action="gcx:wf:arcgis::RefreshLayer",RefreshLayer.suite="gcx:wf:builtin";export{RefreshLayer};