import { Component, EventEmitter, Input, Output } from '@angular/core';
import * as i0 from "@angular/core";
import * as i1 from "@ionic/angular";
import * as i2 from "../../tap-scanner-common/ble-rssi-signal/ble-rssi-signal.component";
import * as i3 from "@angular/common";
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 */ /** @nocollapse */ TapScannerWifiItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: TapScannerWifiItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
/** @nocollapse */ /** @nocollapse */ TapScannerWifiItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.0", 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 network'\n        }}</span>\n        <ng-container *ngIf=\"device.host\">\n          <br />\n          <span *ngIf=\"device.host\" class=\"ip-address\"\n            >Host: {{ device.host }}&nbsp;</span\n          >\n        </ng-container>\n        <span *ngIf=\"device.port\" class=\"port\"\n          ><br />Port: {{ device.port }}</span\n        >\n        <span *ngIf=\"device.SSID\"><br />WIFI Network</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    </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"], components: [{ type: i1.IonList, selector: "ion-list", inputs: ["inset", "lines", "mode"] }, { type: i1.IonItem, selector: "ion-item", inputs: ["button", "color", "counter", "detail", "detailIcon", "disabled", "download", "fill", "href", "lines", "mode", "rel", "routerAnimation", "routerDirection", "shape", "target", "type"] }, { type: i1.IonLabel, selector: "ion-label", inputs: ["color", "mode", "position"] }, { type: i2.BleRssiSignalComponent, selector: "tap-ble-rssi-signal", inputs: ["bars", "colors"] }], directives: [{ type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "rssiToSignalStrenght": i4.RssiToSignalStrenghtPipe } });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", 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 network'\n        }}</span>\n        <ng-container *ngIf=\"device.host\">\n          <br />\n          <span *ngIf=\"device.host\" class=\"ip-address\"\n            >Host: {{ device.host }}&nbsp;</span\n          >\n        </ng-container>\n        <span *ngIf=\"device.port\" class=\"port\"\n          ><br />Port: {{ device.port }}</span\n        >\n        <span *ngIf=\"device.SSID\"><br />WIFI Network</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    </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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFwLXNjYW5uZXItd2lmaS1pdGVtLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2lvdGl6ZS1pb25pYy9zcmMvbGliL3RhcC1zY2FubmVyL3RhcC1zY2FubmVyLXdpZmkvdGFwLXNjYW5uZXItd2lmaS1pdGVtL3RhcC1zY2FubmVyLXdpZmktaXRlbS5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9pb3RpemUtaW9uaWMvc3JjL2xpYi90YXAtc2Nhbm5lci90YXAtc2Nhbm5lci13aWZpL3RhcC1zY2FubmVyLXdpZmktaXRlbS90YXAtc2Nhbm5lci13aWZpLWl0ZW0uY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxZQUFZLEVBQUUsS0FBSyxFQUFFLE1BQU0sRUFBRSxNQUFNLGVBQWUsQ0FBQzs7Ozs7O0FBU3ZFLE1BQU0sT0FBTywyQkFBMkI7SUFVdEM7UUFUVSxrQkFBYSxHQUNyQixJQUFJLFlBQVksRUFBRSxDQUFDO1FBRVosVUFBSyxHQUFHLE1BQU0sQ0FBQztRQUVmLHVCQUFrQixHQUFHLElBQUksQ0FBQztRQUUxQixZQUFPLEdBQWdDLEVBQUUsQ0FBQztJQUVwQyxDQUFDO0lBQ2hCLGNBQWMsQ0FBQyxNQUE0Qjt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