/*
All material copyright Esri, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
*/
import{__decorate as e}from"tslib";import{property as s,subclass as t}from"../../core/accessorSupport/decorators.js";import r from"../../layers/support/FeatureEffect.js";import o from"../../layers/support/FeatureFilter.js";import{HighlightLayerViewMixin as i}from"./HighlightLayerViewMixin.js";import n from"./LayerView.js";const a=n=>{const a=i(n);let u=class extends a{resume(){this._isUserPaused=!1,this.suspended||this._doResume()}pause(){this._isUserPaused=!0,this.suspended||this._doPause()}disconnect(){this._doDisconnect()}connect(){this._doConnect()}clear(){this._doClear()}constructor(...e){super(...e),this._isUserPaused=!1,this.filter=null}get connectionStatus(){return(this._isUserPaused||this.suspended)&&"connected"===this._streamConnectionStatus?"paused":this._streamConnectionStatus}_onSuspendedChange(e){e?this._doPause():this._isUserPaused||this._doResume()}};return e([s()],u.prototype,"_isUserPaused",void 0),e([s({type:r})],u.prototype,"featureEffect",void 0),e([s({readOnly:!0})],u.prototype,"connectionStatus",null),e([s({type:o})],u.prototype,"filter",void 0),u=e([t("esri.views.layers.StreamLayerView")],u),u},u=a(n);export{u as StreamLayerView,a as StreamLayerViewMixin};
