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.2.2", ngImport: i0, type: TapScannerWifiItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
/** @nocollapse */ /** @nocollapse */ TapScannerWifiItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.2", 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    button\n    class=\"hover\"\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}\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.2.2", 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    button\n    class=\"hover\"\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}\n"] }]
        }], ctorParameters: function () { return []; }, propDecorators: { onItemClicked: [{
                type: Output
            }], lines: [{
                type: Input
            }], showSignalStrenght: [{
                type: Input
            }], devices: [{
                type: Input
            }] } });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFwLXNjYW5uZXItd2lmaS1pdGVtLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2lvdGl6ZS1pb25pYy9zcmMvbGliL3RhcC1zY2FubmVyL3RhcC1zY2FubmVyLXdpZmkvdGFwLXNjYW5uZXItd2lmaS1pdGVtL3RhcC1zY2FubmVyLXdpZmktaXRlbS5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9pb3RpemUtaW9uaWMvc3JjL2xpYi90YXAtc2Nhbm5lci90YXAtc2Nhbm5lci13aWZpL3RhcC1zY2FubmVyLXdpZmktaXRlbS90YXAtc2Nhbm5lci13aWZpLWl0ZW0uY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxZQUFZLEVBQUUsS0FBSyxFQUFFLE1BQU0sRUFBRSxNQUFNLGVBQWUsQ0FBQzs7Ozs7O0FBU3ZFLE1BQU0sT0FBTywyQkFBMkI7SUFVdEM7UUFUVSxrQkFBYSxHQUNyQixJQUFJLFlBQVksRUFBRSxDQUFDO1FBRVosVUFBSyxHQUFHLE1BQU0sQ0FBQztRQUVmLHVCQUFrQixHQUFHLElBQUksQ0FBQztRQUUxQixZQUFPLEdBQWdDLEVBQUUsQ0FBQztJQUVwQyxDQUFDO0lBQ2hCLGNBQWMsQ0FBQyxNQUE0QjtRQUN6QyxJQUFJLENBQUMsYUFBYSxDQUFDLElBQ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