import ngModule from '../module'; import SearchPanel from 'core/components/searchbar/search-panel'; class Controller extends SearchPanel { constructor($, $element) { super($, $element); this.filter = this.$.filter; } get shippedFrom() { return this._shippedFrom; } set shippedFrom(value) { this._shippedFrom = value; this.filter.scopeDays = null; } get shippedTo() { return this._shippedTo; } set shippedTo(value) { this._shippedTo = value; this.filter.scopeDays = null; } get scopeDays() { return this._scopeDays; } set scopeDays(value) { this._scopeDays = value; this.filter.shippedFrom = null; this.filter.shippedTo = null; } } ngModule.vnComponent('vnTravelSearchPanel', { template: require('./index.html'), controller: Controller });