/*
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/4.24/esri/copyright.txt for details.
*/
define(["exports","../../../../../chunks/_rollupPluginBabelHelpers","../../../../../geometry/support/jsonUtils","../../../../../layers/graphics/featureConversionUtils","./FeatureSetReader","./FeatureSetReaderJSON"],(function(e,t,r,n,o,s){"use strict";let u=function(e){function s(t,r){return e.call(this,t,r,null)||this}t._inheritsLoose(s,e),s.from=function(e,t){const u=o.FeatureSetReader.createInstance(),i=[],c=e.filter((e=>!!e.geometry));for(const o of c){const e=r.getJsonType(o.geometry);n.convertFromGraphics(i,[o],e,!1,!1,t)}return new s(u,i)};var u=s.prototype;return u.readGraphic=function(){return this._current},u.getCursor=function(){return this.copy()},u.copy=function(){const e=new s(this.instance,this._features);return this.copyInto(e),e},t._createClass(s,[{key:"geometryType",get:function(){const e=this._current;return e?e.geometryType:null}},{key:"insertAfter",get:function(){return this._current.insertAfter}}]),s}(s.FeatureSetReaderJSON);e.GraphicsReader=u,Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
