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