/* COPYRIGHT Esri - https://js.arcgis.com/5.1.2/LICENSE.txt */
import{__decorate as e}from"tslib";import t from"../../../../../core/Accessor.js";import{property as r,subclass as o}from"../../../../../core/accessorSupport/decorators.js";let a=class extends t{constructor(e){super(),this._workflow=e.workflow}get allowCancel(){return!this._workflow.data.isSharedTemplateWorkflow}get layer(){return this._workflow.data.editorItem?.layer}get features(){return this._workflow.data.pendingFeatures.toArray()}cancelFeature(e){this._workflow.cancelFeature(e)}clearHighlights(){this._workflow.data.temporaryHighlightFeature=null}highlightFeature(e){this._workflow.data.temporaryHighlightFeature=e}getFeatureTitle(e){return this._workflow.data.getFeatureTitle(e)}isSubmittable(e){return this._workflow.data.isSubmittable(e)}isVisible(e){return this._workflow.data.isDisplayable(e)}onSelectFeature(e){this._workflow.updatePendingFeature(e)}zoomToFeature(e){this._workflow.data.viewModel.zoomTo(e)}};e([r()],a.prototype,"_workflow",void 0),a=e([o("esri.widgets.Editor.components.workflowAdapters.pendingFeatureList.CreateFeaturesWorkflowPendingFeatureListAdapter")],a);export{a as CreateFeaturesWorkflowPendingFeatureListAdapter};
