/*
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","../../core/Logger","../../core/maybe","../../layers/support/arcgisLayerUrl","../../symbols/support/svgUtils","../../views/ViewingMode","../../views/3d/terrain/TilingScheme","../../views/support/spatialReferenceSupport"],(function(e,t,r,n,i,o,a,u,s){"use strict";function c(e,t){return l.apply(this,arguments)}function l(){return(l=t._asyncToGenerator((function*(e,t,r="awaiting-feature-creation-info"){yield e.startCreateFeaturesWorkflow(t,r)}))).apply(this,arguments)}function p(e){return e.numberOfFeatureTemplates}function f(e){const t=e.activeWorkflow;return"create-features"===(null==t?void 0:t.type)?t.numPendingFeatures:0}function g(e){return e.state}function S(e){var t;return null==(t=e.activeWorkflow)?void 0:t.type}const d=r.getLogger("sceneViewer.appState.saveState");function v(e,t){return d.warn(e,t)}function m(e){return i.isHostedAgolService(e)}function w(e,t,r,n){return o.renderSVG(e,t,r,n)}function y(e){return!e.canNotSaveAs()}function T(e,t){return s.isSpatialReferenceSupported(e,a.viewingModeFromString(t))}function b(e,t,r){return e.getOrCreateCompatible(t,r)}function k(e){return new u.TilingScheme(e)}function h(e){return n.isNone(u.TilingScheme.checkUnsupported(e))}e.canSaveAs=y,e.createFeaturesWorkflowGetNumPendingFeatures=f,e.createTilingScheme=k,e.getActiveWorkflowState=g,e.getActiveWorkflowType=S,e.getOrCreateCompatibleTileInfo=b,e.isHostedAgolServiceUrl=m,e.isSpatialReferenceSupported=T,e.isSupportedTileInfo=h,e.numberOfFeatureTemplates=p,e.renderSVG=w,e.saveStateWarning=v,e.startCreateFeaturesWorkflow=c,Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
