import { __decorate, __metadata } from "tslib";
import { Component, Input, ViewEncapsulation } from '@angular/core';
let OrderItemCompactComponent = class OrderItemCompactComponent {
    constructor() { }
    ngOnInit() {
    }
};
__decorate([
    Input(),
    __metadata("design:type", String)
], OrderItemCompactComponent.prototype, "title", void 0);
__decorate([
    Input(),
    __metadata("design:type", String)
], OrderItemCompactComponent.prototype, "iconUrl", void 0);
__decorate([
    Input(),
    __metadata("design:type", String)
], OrderItemCompactComponent.prototype, "parentIconUrl", void 0);
__decorate([
    Input(),
    __metadata("design:type", String)
], OrderItemCompactComponent.prototype, "parentName", void 0);
__decorate([
    Input(),
    __metadata("design:type", Object)
], OrderItemCompactComponent.prototype, "pricing", void 0);
OrderItemCompactComponent = __decorate([
    Component({
        selector: 'va-order-item-compact',
        template: "<mat-card class=\"order-item-compact\">\n  <mat-card-header>\n    <div class=\"icon\" mat-card-avatar>\n      <va-icon *ngIf=\"!parentIconUrl && !parentName; else dualIcon\" [name]=\"title\" [iconUrl]=\"iconUrl\" [diameter]=\"40\"></va-icon>\n      <ng-template #dualIcon>\n        <div class=\"dual-icon\">\n          <va-icon [iconUrl]=\"iconUrl\" [name]=\"title\" [diameter]=\"40\"></va-icon>\n          <va-icon class=\"secondary-icon\" [iconUrl]=\"parentIconUrl\" [diameter]=\"20\" [name]=\"parentName\"></va-icon>\n        </div>\n      </ng-template>\n    </div>\n    <mat-card-title>{{title}}</mat-card-title>\n    <mat-card-subtitle>\n      <va-pricing [pricing]=\"pricing\" [highlightPrice]=\"false\" [showAllPrices]=\"true\"></va-pricing>\n    </mat-card-subtitle>\n  </mat-card-header>\n</mat-card>\n",
        encapsulation: ViewEncapsulation.None,
        styles: [".order-item-compact .dual-icon{position:relative;display:inline-block;order:-1;margin-right:16px}.order-item-compact .dual-icon .secondary-icon{position:absolute;border-radius:50%;bottom:-5px;right:-5px}mat-card.order-item-compact{padding:8px}mat-card.order-item-compact .mat-card-subtitle{font-size:12px;margin-bottom:0!important}mat-card.order-item-compact .mat-card-title{font-size:16px!important}"]
    }),
    __metadata("design:paramtypes", [])
], OrderItemCompactComponent);
export { OrderItemCompactComponent };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3JkZXItaXRlbS1jb21wYWN0LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0B2ZW5kYXN0YS9zdG9yZS8iLCJzb3VyY2VzIjpbImxpYi9vcmRlci1mb3JtL29yZGVyLWl0ZW0tbGlzdC9vcmRlci1pdGVtLWNvbXBhY3Qvb3JkZXItaXRlbS1jb21wYWN0LmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxLQUFLLEVBQVUsaUJBQWlCLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFTNUUsSUFBYSx5QkFBeUIsR0FBdEMsTUFBYSx5QkFBeUI7SUFRcEMsZ0JBQWdCLENBQUM7SUFFakIsUUFBUTtJQUNSLENBQUM7Q0FFRixDQUFBO0FBWFU7SUFBUixLQUFLLEVBQUU7O3dEQUFlO0FBQ2Q7SUFBUixLQUFLLEVBQUU7OzBEQUFpQjtBQUNoQjtJQUFSLEtBQUssRUFBRTs7Z0VBQXVCO0FBQ3RCO0lBQVIsS0FBSyxFQUFFOzs2REFBb0I7QUFDbkI7SUFBUixLQUFLLEVBQUU7OzBEQUFrQjtBQU5mLHlCQUF5QjtJQU5yQyxTQUFTLENBQUM7UUFDVCxRQUFRLEVBQUUsdUJBQXVCO1FBQ2pDLHd6QkFBa0Q7UUFFbEQsYUFBYSxFQUFFLGlCQUFpQixDQUFDLElBQUk7O0tBQ3RDLENBQUM7O0dBQ1cseUJBQXlCLENBYXJDO1NBYlkseUJBQXlCIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgQ29tcG9uZW50LCBJbnB1dCwgT25Jbml0LCBWaWV3RW5jYXBzdWxhdGlvbiB9IGZyb20gJ0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