import o from"@arcgis/core/form/FormTemplate";import{checkArg as r}from"../utilities/checkArg.js";import{deepClone as t}from"../utilities/object.js";export var FormInfo;!function(i){i.toEsriApiFormTemplate=function(i){r("json",i).isNotMissing();const e=t(i),m=o.fromJSON(e);return m.elements||(m.elements=[]),m},i.fromEsriApiFormTemplate=function(o){return r("formTemplate",o).isNotMissing(),o.toJSON()}}(FormInfo||(FormInfo={}));