/**
 * @fileoverview added by tsickle
 * Generated from: lib/shared/components/filters/search/general-search.component.ts
 * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
 */
import { Component, Input, Output, EventEmitter } from '@angular/core';
var GeneralSearchComponent = /** @class */ (function () {
    function GeneralSearchComponent() {
        this.placeholder = 'SEARCH';
        this.debounce = 500;
        this.callSearch = new EventEmitter();
    }
    /**
     * @param {?} data
     * @return {?}
     */
    GeneralSearchComponent.prototype.search = /**
     * @param {?} data
     * @return {?}
     */
    function (data) {
        if (data && data.detail) {
            this.callSearch.emit(data.detail.value);
        }
    };
    GeneralSearchComponent.decorators = [
        { type: Component, args: [{
                    selector: 'inc-general-search',
                    template: "<ion-searchbar placeholder=\"{{placeholder | translate}}\" (ionChange)=\"search($event)\" clearInput [debounce]=\"debounce\"\r\n  (ionClear)=\"search($event)\" class=\"ion-no-padding\">\r\n</ion-searchbar>",
                    styles: [""]
                }] }
    ];
    /** @nocollapse */
    GeneralSearchComponent.ctorParameters = function () { return []; };
    GeneralSearchComponent.propDecorators = {
        placeholder: [{ type: Input }],
        debounce: [{ type: Input }],
        callSearch: [{ type: Output }]
    };
    return GeneralSearchComponent;
}());
export { GeneralSearchComponent };
if (false) {
    /** @type {?} */
    GeneralSearchComponent.prototype.placeholder;
    /** @type {?} */
    GeneralSearchComponent.prototype.debounce;
    /** @type {?} */
    GeneralSearchComponent.prototype.callSearch;
}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ2VuZXJhbC1zZWFyY2guY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGluY2xvdWRlZC9pb25pYzQtaW5jbG91ZGVkLWxpYi8iLCJzb3VyY2VzIjpbImxpYi9zaGFyZWQvY29tcG9uZW50cy9maWx0ZXJzL3NlYXJjaC9nZW5lcmFsLXNlYXJjaC5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5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