/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
import{makeFeatureFromGroupPart as t}from"./support/builderUtils.js";import{sameStartEndPoint as e,pointFromPolygonVertex as o}from"./support/shapeUtils.js";import{isPolygon as s,maxDigitizingDisplayEdits as r}from"../support/executorUtils.js";function i({templatePart:i,shape:p,edits:n,relationships:l,mode:m}){if(!s(p))return;let a=0;const{rings:h}=p;for(let s=0;s<h.length;s++){const f=h[s],g=f.length,u=0===s?1:0,c=e(f)?g-1:g;for(let e=u;e<c&&!("digitizing"===m&&n.length>r);e++){const r=o(p,s,e);t({templatePart:i,shape:r,edits:n,relationships:l,mode:m},`V${(a+e).toString()}`)}a+=g}}const p=!1;export{i as execute,p as isAsync};
