import { Component, EventEmitter, Input, Output } from '@angular/core';
import * as i0 from "@angular/core";
import * as i1 from "@angular/common";
import * as i2 from "@ionic/angular";
import * as i3 from "../../tap-scanner-common/ble-rssi-signal/ble-rssi-signal.component";
import * as i4 from "../../tap-scanner-common/rssi-to-signal-strenght.pipe";
export class TapScannerWifiItemComponent {
    constructor() {
        this.onItemClicked = new EventEmitter();
        this.lines = 'full';
        this.showSignalStrenght = true;
        this.devices = [];
    }
    _onItemClicked(device) {
        this.onItemClicked.emit(device);
    }
}
/** @nocollapse */ TapScannerWifiItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TapScannerWifiItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
/** @nocollapse */ TapScannerWifiItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: TapScannerWifiItemComponent, selector: "tap-scanner-wifi-item", inputs: { lines: "lines", showSignalStrenght: "showSignalStrenght", devices: "devices" }, outputs: { onItemClicked: "onItemClicked" }, ngImport: i0, template: "<ion-list [lines]=\"lines\">\n  <ion-item\n    (click)=\"_onItemClicked(device)\"\n    *ngFor=\"let device of devices\"\n    class=\"hover scan-result-item\"\n  >\n    <ng-container *ngIf=\"device\">\n      <ion-label>\n        <span class=\"name\">{{\n          device.name || device.SSID || 'Hidden SSID'\n        }}</span>\n        <ng-container *ngIf=\"device.host\">\n          <br />\n          <span class=\"ip-address\">Host: {{ device.host }}&nbsp;</span>\n        </ng-container>\n        <span *ngIf=\"device.port\" class=\"port\">\n          <br />\n          Port: {{ device.port }}\n        </span>\n      </ion-label>\n      <tap-ble-rssi-signal\n        *ngIf=\"showSignalStrenght\"\n        [bars]=\"device.rssi || device.level | rssiToSignalStrenght\"\n        slot=\"end\"\n      ></tap-ble-rssi-signal>\n      <ion-chip *ngIf=\"device.type\" slot=\"end\" color=\"primary\">\n        Network\n      </ion-chip>\n    </ng-container>\n  </ion-item>\n</ion-list>\n", styles: [".ip-address,.port{font-size:.8em}.name{font-weight:700}.scan-result-item{cursor:pointer}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.IonChip, selector: "ion-chip", inputs: ["color", "disabled", "mode", "outline"] }, { kind: "component", type: i2.IonItem, selector: "ion-item", inputs: ["button", "color", "counter", "counterFormatter", "detail", "detailIcon", "disabled", "download", "fill", "href", "lines", "mode", "rel", "routerAnimation", "routerDirection", "shape", "target", "type"] }, { kind: "component", type: i2.IonLabel, selector: "ion-label", inputs: ["color", "mode", "position"] }, { kind: "component", type: i2.IonList, selector: "ion-list", inputs: ["inset", "lines", "mode"] }, { kind: "component", type: i3.BleRssiSignalComponent, selector: "tap-ble-rssi-signal", inputs: ["bars", "colors"] }, { kind: "pipe", type: i4.RssiToSignalStrenghtPipe, name: "rssiToSignalStrenght" }] });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TapScannerWifiItemComponent, decorators: [{
            type: Component,
            args: [{ selector: 'tap-scanner-wifi-item', template: "<ion-list [lines]=\"lines\">\n  <ion-item\n    (click)=\"_onItemClicked(device)\"\n    *ngFor=\"let device of devices\"\n    class=\"hover scan-result-item\"\n  >\n    <ng-container *ngIf=\"device\">\n      <ion-label>\n        <span class=\"name\">{{\n          device.name || device.SSID || 'Hidden SSID'\n        }}</span>\n        <ng-container *ngIf=\"device.host\">\n          <br />\n          <span class=\"ip-address\">Host: {{ device.host }}&nbsp;</span>\n        </ng-container>\n        <span *ngIf=\"device.port\" class=\"port\">\n          <br />\n          Port: {{ device.port }}\n        </span>\n      </ion-label>\n      <tap-ble-rssi-signal\n        *ngIf=\"showSignalStrenght\"\n        [bars]=\"device.rssi || device.level | rssiToSignalStrenght\"\n        slot=\"end\"\n      ></tap-ble-rssi-signal>\n      <ion-chip *ngIf=\"device.type\" slot=\"end\" color=\"primary\">\n        Network\n      </ion-chip>\n    </ng-container>\n  </ion-item>\n</ion-list>\n", styles: [".ip-address,.port{font-size:.8em}.name{font-weight:700}.scan-result-item{cursor:pointer}\n"] }]
        }], ctorParameters: function () { return []; }, propDecorators: { onItemClicked: [{
                type: Output
            }], lines: [{
                type: Input
            }], showSignalStrenght: [{
                type: Input
            }], devices: [{
                type: Input
            }] } });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFwLXNjYW5uZXItd2lmaS1pdGVtLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2lvdGl6ZS1pb25pYy9zcmMvbGliL3RhcC1zY2FubmVyL3RhcC1zY2FubmVyLXdpZmkvdGFwLXNjYW5uZXItd2lmaS1pdGVtL3RhcC1zY2FubmVyLXdpZmktaXRlbS5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9pb3RpemUtaW9uaWMvc3JjL2xpYi90YXAtc2Nhbm5lci90YXAtc2Nhbm5lci13aWZpL3RhcC1zY2FubmVyLXdpZmktaXRlbS90YXAtc2Nhbm5lci13aWZpLWl0ZW0uY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxZQUFZLEVBQUUsS0FBSyxFQUFFLE1BQU0sRUFBRSxNQUFNLGVBQWUsQ0FBQzs7Ozs7O0FBUXZFLE1BQU0sT0FBTywyQkFBMkI7SUFVdEM7UUFUVSxrQkFBYSxHQUNyQixJQUFJLFlBQVksRUFBRSxDQUFDO1FBRVosVUFBSyxHQUFHLE1BQU0sQ0FBQztRQUVmLHVCQUFrQixHQUFH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