/* COPYRIGHT Esri - https://js.arcgis.com/5.1.0/LICENSE.txt */
import{__decorate as t}from"tslib";import e from"../../core/Accessor.js";import{property as i,subclass as r}from"../../core/accessorSupport/decorators.js";import o from"../../views/interactive/sketch/SketchOptions.js";let s=class extends e{constructor(t){super(t),this.editorItem=null,this.newFeatureEdits=null,this.existingFeatureEdits=null,this.feature=null,this.initialFeature=null,this.sketchOptions=new o,this.snappingManager=null,this.splitResult=null,this.splitterGeometry=null,this.temporaryHighlightFeature=null,this.viewModel=null}initialize(){this.initialFeature||(this.initialFeature=this.feature)}get timeZone(){return this.viewModel.view?.timeZone}set timeZone(t){null==t?this._clearOverride("timeZone"):this._override("timeZone",t)}getEditsForFeature(t){const{existingFeatureEdits:e,newFeatureEdits:i}=this;return e?.feature===t?e:i?.feature===t?i:null}getRoleForFeature(t){const{existingFeatureEdits:e,newFeatureEdits:i}=this;return e?.feature===t?"existing":i?.feature===t?"new":null}};t([i({constructOnly:!0})],s.prototype,"editorItem",void 0),t([i()],s.prototype,"newFeatureEdits",void 0),t([i()],s.prototype,"existingFeatureEdits",void 0),t([i()],s.prototype,"feature",void 0),t([i()],s.prototype,"initialFeature",void 0),t([i()],s.prototype,"parent",void 0),t([i({constructOnly:!0})],s.prototype,"sketchOptions",void 0),t([i()],s.prototype,"snappingManager",void 0),t([i()],s.prototype,"splitResult",void 0),t([i()],s.prototype,"splitterGeometry",void 0),t([i()],s.prototype,"temporaryHighlightFeature",void 0),t([i()],s.prototype,"timeZone",null),t([i()],s.prototype,"viewModel",void 0),s=t([r("esri.widgets.Editor.SplitFeatureWorkflowData")],s);const n=s;export{n as default};
