/**
 * @fileoverview added by tsickle
 * Generated from: lib/tap-scanner/tap-scanner-ble/tap-scan-results/tap-scan-results.component.ts
 * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
 */
import { Component, Input, Output, EventEmitter } from '@angular/core';
var TapScanResultsComponent = /** @class */ (function () {
    function TapScanResultsComponent() {
        this.onItemClicked = new EventEmitter();
        this.lines = 'full';
        this.showMacAddress = false;
        this.showSignalStrenght = true;
        this.devices = [];
    }
    /**
     * @return {?}
     */
    TapScanResultsComponent.prototype.ngOnInit = /**
     * @return {?}
     */
    function () { };
    /**
     * @param {?} device
     * @return {?}
     */
    TapScanResultsComponent.prototype._onItemClicked = /**
     * @param {?} device
     * @return {?}
     */
    function (device) {
        this.onItemClicked.emit(device);
    };
    /**
     * @ignore
     */
    /**
     * @ignore
     * @param {?} index
     * @param {?} item
     * @return {?}
     */
    TapScanResultsComponent.prototype.trackByFn = /**
     * @ignore
     * @param {?} index
     * @param {?} item
     * @return {?}
     */
    function (index, item) {
        return item.address + "-" + item.rssi;
    };
    TapScanResultsComponent.decorators = [
        { type: Component, args: [{
                    selector: 'tap-ble-scan-result',
                    template: "<ion-list [lines]=\"lines\">\r\n    <ion-item button (click)=\"_onItemClicked(device);\" class=\"hover\" *ngFor=\"let device of devices; trackBy: trackByFn\">\r\n      <ion-label>\r\n        {{device.name}} \r\n        <br *ngIf=\"showMacAddress\"/><span *ngIf=\"showMacAddress\" class=\"mac-address\">{{device.address}}</span>\r\n      </ion-label>\r\n      <tap-ble-rssi-signal *ngIf=\"showSignalStrenght\" slot=\"end\" [bars]=\"device.rssi | rssiToSignalStrenght \"></tap-ble-rssi-signal>\r\n    </ion-item>\r\n</ion-list>\r\n",
                    styles: [""]
                }] }
    ];
    /** @nocollapse */
    TapScanResultsComponent.ctorParameters = function () { return []; };
    TapScanResultsComponent.propDecorators = {
        onItemClicked: [{ type: Output }],
        lines: [{ type: Input }],
        showMacAddress: [{ type: Input }],
        showSignalStrenght: [{ type: Input }],
        devices: [{ type: Input }]
    };
    return TapScanResultsComponent;
}());
export { TapScanResultsComponent };
if (false) {
    /** @type {?} */
    TapScanResultsComponent.prototype.onItemClicked;
    /** @type {?} */
    TapScanResultsComponent.prototype.lines;
    /** @type {?} */
    TapScanResultsComponent.prototype.showMacAddress;
    /** @type {?} */
    TapScanResultsComponent.prototype.showSignalStrenght;
    /** @type {?} */
    TapScanResultsComponent.prototype.devices;
}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFwLXNjYW4tcmVzdWx0cy5jb21wb25lbnQuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AaW90aXplL2lvbmljLyIsInNvdXJjZXMiOlsibGliL3RhcC1zY2FubmVyL3RhcC1zY2FubmVyLWJsZS90YXAtc2Nhbi1yZXN1bHRzL3RhcC1zY2FuLXJlc3VsdHMuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7O0FBQUEsT0FBTyxFQUFFLFNBQVMsRUFBVSxLQUFLLEVBQUUsTUFBTSxFQUFFLFlBQVksRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUcvRTtJQWlCRTtRQVZVLGtCQUFhLEdBQXVDLElBQUksWUFBWSxFQUFFLENBQUM7UUFFeEUsVUFBSyxHQUFHLE1BQU0sQ0FBQztRQUVmLG1CQUFjLEdBQVksS0FBSyxDQUFDO1FBRWhDLHVCQUFrQixHQUFZLElBQUksQ0FBQztRQUVuQyxZQUFPLEdBQWdDLEVBQUUsQ0FBQztJQUVuQyxDQUFDOzs7O0lBRWpCLDBDQUFROzs7SUFBUixjQUFZLENBQUM7Ozs7O0lBRWIsZ0RBQWM7Ozs7SUFBZCxVQUFlLE1BQTRCO1FBQ3pDLElBQUksQ0FBQyxhQUFhLENBQUMsSUFBSSxDQUFDLE1BQU0sQ0FBQyxDQUFBO0lBQ2pDLENBQUM7SUFFRDs7T0F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