import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
import { AvatarType } from '@aztrix/components/avatar';
import { PropertyType } from '@aztrix/models';
import * as i0 from "@angular/core";
import * as i1 from "@angular/common";
import * as i2 from "@aztrix/components/avatar";
import * as i3 from "./opening-hours-view/opening-hours-view.component";
import * as i4 from "./bankaccount-value-view/bankaccount-value-view.component";
import * as i5 from "./default-value-view/default-value-view.component";
import * as i6 from "./social-value-view/social-value-view.component";
import * as i7 from "./legalid-value-view/legalid-value-view.component";
import * as i8 from "./file-value-view/file-value-view.component";
import * as i9 from "./image-value-view/image-value-view.component";
import * as i10 from "./document-value-view/document-value-view.component";
import * as i11 from "./communication-value-view/communication-value-view.component";
import * as i12 from "./category-value-view/category-value-view.component";
import * as i13 from "@aztrix/helpers";
export class PropertyValueViewComponent {
    constructor() {
        this.isIndividual = false;
        // eslint-disable-next-line @typescript-eslint/naming-convention
        this.PropertyType = PropertyType;
        // eslint-disable-next-line @typescript-eslint/naming-convention
        this.AvatarType = AvatarType;
    }
}
PropertyValueViewComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PropertyValueViewComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
PropertyValueViewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.5", type: PropertyValueViewComponent, selector: "ax-property-value-view", inputs: { property: "property", showVerificationLabel: "showVerificationLabel", clickable: "clickable", isIndividual: "isIndividual", params: "params" }, ngImport: i0, template: "<ng-template [ngIf]=\"!(property | propertyHasValue)\" [ngIfElse]=\"ready\">\n  <ax-default-value-view\n    [property]=\"property\"\n    [showVerificationLabel]=\"false\"\n    [clickable]=\"false\"\n  ></ax-default-value-view>\n</ng-template>\n\n<ng-template #ready>\n  <ng-container [ngSwitch]=\"true\">\n    <ax-avatar\n      *ngSwitchCase=\"property | isOfType: PropertyType.AVATAR\"\n      [type]=\"isIndividual ? AvatarType.INDIVIDUAL : AvatarType.ORGANISATION\"\n      [source]=\"property.value\"\n      [round]=\"isIndividual\"\n    ></ax-avatar>\n    <ax-bankaccount-value-view\n      *ngSwitchCase=\"property | isOfType: PropertyType.BANK_ACCOUNT\"\n      [property]=\"property\"\n      [showVerificationLabel]=\"showVerificationLabel\"\n      [clickable]=\"clickable\"\n    ></ax-bankaccount-value-view>\n    <ax-legalid-value-view\n      *ngSwitchCase=\"property | isOfType: PropertyType.LEGAL_ID\"\n      [property]=\"property\"\n      [showVerificationLabel]=\"showVerificationLabel\"\n      [clickable]=\"clickable\"\n    ></ax-legalid-value-view>\n    <ax-social-value-view\n      *ngSwitchCase=\"property | propertyIsSocialRelated\"\n      [property]=\"property\"\n      [showVerificationLabel]=\"showVerificationLabel\"\n      [clickable]=\"clickable\"\n      [params]=\"params\"\n    ></ax-social-value-view>\n    <ax-opening-hours-view\n      *ngSwitchCase=\"property | isOfType: PropertyType.OPENING_HOURS\"\n      [property]=\"property\"\n      [showVerificationLabel]=\"showVerificationLabel\"\n      [clickable]=\"clickable\"\n    ></ax-opening-hours-view>\n    <ax-image-value-view\n      *ngSwitchCase=\"property | isOfType: PropertyType.IMAGE\"\n      [property]=\"property\"\n      [showVerificationLabel]=\"showVerificationLabel\"\n      [clickable]=\"clickable\"\n    ></ax-image-value-view>\n    <ax-file-value-view\n      *ngSwitchCase=\"property | isOfType: PropertyType.FILE\"\n      [property]=\"property\"\n      [showVerificationLabel]=\"showVerificationLabel\"\n      [clickable]=\"clickable\"\n    ></ax-file-value-view>\n    <ax-document-value-view\n      *ngSwitchCase=\"property | propertyIsDocumentRelated\"\n      [property]=\"property\"\n      [showVerificationLabel]=\"showVerificationLabel\"\n      [clickable]=\"clickable\"\n    ></ax-document-value-view>\n    <ax-communication-value-view\n      *ngSwitchCase=\"\n        (property | propertyIsCommunicationRelated) && !(property | propertyIsSocialRelated)\n      \"\n      [property]=\"property\"\n      [showVerificationLabel]=\"showVerificationLabel\"\n      [clickable]=\"clickable\"\n      [params]=\"params\"\n    ></ax-communication-value-view>\n    <ax-category-value-view\n      *ngSwitchCase=\"property | isOfType: PropertyType.CATEGORY\"\n      [property]=\"property\"\n      [showVerificationLabel]=\"showVerificationLabel\"\n      [clickable]=\"clickable\"\n    ></ax-category-value-view>\n    <ax-default-value-view\n      *ngSwitchDefault\n      [property]=\"property\"\n      [showVerificationLabel]=\"showVerificationLabel\"\n      [clickable]=\"clickable\"\n    ></ax-default-value-view>\n  </ng-container>\n</ng-template>\n", styles: ["ax-avatar{width:30px;height:30px;display:inline-block}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i1.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "component", type: i2.AvatarComponent, selector: "ax-avatar", inputs: ["source", "type", "icon", "iconColor", "badge", "badgeColor", "border", "round", "rounded", "published"] }, { kind: "component", type: i3.OpeningHoursViewComponent, selector: "ax-opening-hours-view" }, { kind: "component", type: i4.BankaccountValueViewComponent, selector: "ax-bankaccount-value-view" }, { kind: "component", type: i5.DefaultValueViewComponent, selector: "ax-default-value-view" }, { kind: "component", type: i6.SocialValueViewComponent, selector: "ax-social-value-view", inputs: ["label"] }, { kind: "component", type: i7.LegalidValueViewComponent, selector: "ax-legalid-value-view" }, { kind: "component", type: i8.FileValueViewComponent, selector: "ax-file-value-view" }, { kind: "component", type: i9.ImageValueViewComponent, selector: "ax-image-value-view" }, { kind: "component", type: i10.DocumentValueViewComponent, selector: "ax-document-value-view" }, { kind: "component", type: i11.CommunicationValueViewComponent, selector: "ax-communication-value-view" }, { kind: "component", type: i12.CategoryValueViewComponent, selector: "ax-category-value-view" }, { kind: "pipe", type: i13.IsOfTypePipe, name: "isOfType" }, { kind: "pipe", type: i13.PropertyIsCommunicationRelatedPipe, name: "propertyIsCommunicationRelated" }, { kind: "pipe", type: i13.PropertyIsDocumentRelatedPipe, name: "propertyIsDocumentRelated" }, { kind: "pipe", type: i13.PropertyIsSocialRelatedPipe, name: "propertyIsSocialRelated" }, { kind: "pipe", type: i13.PropertyHasValuePipe, name: "propertyHasValue" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PropertyValueViewComponent, decorators: [{
            type: Component,
            args: [{ selector: 'ax-property-value-view', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-template [ngIf]=\"!(property | propertyHasValue)\" [ngIfElse]=\"ready\">\n  <ax-default-value-view\n    [property]=\"property\"\n    [showVerificationLabel]=\"false\"\n    [clickable]=\"false\"\n  ></ax-default-value-view>\n</ng-template>\n\n<ng-template #ready>\n  <ng-container [ngSwitch]=\"true\">\n    <ax-avatar\n      *ngSwitchCase=\"property | isOfType: PropertyType.AVATAR\"\n      [type]=\"isIndividual ? AvatarType.INDIVIDUAL : AvatarType.ORGANISATION\"\n      [source]=\"property.value\"\n      [round]=\"isIndividual\"\n    ></ax-avatar>\n    <ax-bankaccount-value-view\n      *ngSwitchCase=\"property | isOfType: PropertyType.BANK_ACCOUNT\"\n      [property]=\"property\"\n      [showVerificationLabel]=\"showVerificationLabel\"\n      [clickable]=\"clickable\"\n    ></ax-bankaccount-value-view>\n    <ax-legalid-value-view\n      *ngSwitchCase=\"property | isOfType: PropertyType.LEGAL_ID\"\n      [property]=\"property\"\n      [showVerificationLabel]=\"showVerificationLabel\"\n      [clickable]=\"clickable\"\n    ></ax-legalid-value-view>\n    <ax-social-value-view\n      *ngSwitchCase=\"property | propertyIsSocialRelated\"\n      [property]=\"property\"\n      [showVerificationLabel]=\"showVerificationLabel\"\n      [clickable]=\"clickable\"\n      [params]=\"params\"\n    ></ax-social-value-view>\n    <ax-opening-hours-view\n      *ngSwitchCase=\"property | isOfType: PropertyType.OPENING_HOURS\"\n      [property]=\"property\"\n      [showVerificationLabel]=\"showVerificationLabel\"\n      [clickable]=\"clickable\"\n    ></ax-opening-hours-view>\n    <ax-image-value-view\n      *ngSwitchCase=\"property | isOfType: PropertyType.IMAGE\"\n      [property]=\"property\"\n      [showVerificationLabel]=\"showVerificationLabel\"\n      [clickable]=\"clickable\"\n    ></ax-image-value-view>\n    <ax-file-value-view\n      *ngSwitchCase=\"property | isOfType: PropertyType.FILE\"\n      [property]=\"property\"\n      [showVerificationLabel]=\"showVerificationLabel\"\n      [clickable]=\"clickable\"\n    ></ax-file-value-view>\n    <ax-document-value-view\n      *ngSwitchCase=\"property | propertyIsDocumentRelated\"\n      [property]=\"property\"\n      [showVerificationLabel]=\"showVerificationLabel\"\n      [clickable]=\"clickable\"\n    ></ax-document-value-view>\n    <ax-communication-value-view\n      *ngSwitchCase=\"\n        (property | propertyIsCommunicationRelated) && !(property | propertyIsSocialRelated)\n      \"\n      [property]=\"property\"\n      [showVerificationLabel]=\"showVerificationLabel\"\n      [clickable]=\"clickable\"\n      [params]=\"params\"\n    ></ax-communication-value-view>\n    <ax-category-value-view\n      *ngSwitchCase=\"property | isOfType: PropertyType.CATEGORY\"\n      [property]=\"property\"\n      [showVerificationLabel]=\"showVerificationLabel\"\n      [clickable]=\"clickable\"\n    ></ax-category-value-view>\n    <ax-default-value-view\n      *ngSwitchDefault\n      [property]=\"property\"\n      [showVerificationLabel]=\"showVerificationLabel\"\n      [clickable]=\"clickable\"\n    ></ax-default-value-view>\n  </ng-container>\n</ng-template>\n", styles: ["ax-avatar{width:30px;height:30px;display:inline-block}\n"] }]
        }], propDecorators: { property: [{
                type: Input
            }], showVerificationLabel: [{
                type: Input
            }], clickable: [{
                type: Input
            }], isIndividual: [{
                type: Input
            }], params: [{
                type: Input
            }] } });
//# sourceMappingURL=data:application/json;base64, 