/* COPYRIGHT Esri - https://js.arcgis.com/5.1.2/LICENSE.txt */
import{readOffsetDistance as e,readIsProportional as t,readVertexBeforeOffset as o,readDistance as s,readIsUnique as r}from"./support/builderUtils.js";import{vertexOffsetFromStartOrEndOfLine as i}from"./support/offsetUtils.js";import{convertRadialToPolylines as a}from"./support/shapeUtils.js";import{isRadial as p}from"../support/executorUtils.js";function f({templatePart:f,shape:n,edits:l,relationships:m,mode:c,xyTolerance:u,associationFeaturesByTemplate:d}){if(!p(n))return;const{builderConfig:x}=f,h=e(x),j=t(x),y=o(x),P=s(x,j),T=r(x);for(const e of a(n))if(i({templatePart:f,edits:l,relationships:m,shape:e,distance:P,isProportional:j,offsetDistance:h,vertexBeforeOffset:y,vertexPlacement:4,mode:c,xyTolerance:u,associationFeaturesByTemplate:d}),T)break}const n=!1;export{f as execute,n as isAsync};
