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