import { __decorate, __metadata } from "tslib";
import { Component, Input, ViewEncapsulation } from '@angular/core';
var OrderItemCompactComponent = /** @class */ (function () {
    function OrderItemCompactComponent() {
    }
    OrderItemCompactComponent.prototype.ngOnInit = function () {
    };
    __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);
    return OrderItemCompactComponent;
}());
export { OrderItemCompactComponent };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3JkZXItaXRlbS1jb21wYWN0LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0B2ZW5kYXN0YS9zdG9yZS8iLCJzb3VyY2VzIjpbImxpYi9vcmRlci1mb3JtL29yZGVyLWl0ZW0tbGlzdC9vcmRlci1pdGVtLWNvbXBhY3Qvb3JkZXItaXRlbS1jb21wYWN0LmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxLQUFLLEVBQVUsaUJBQWlCLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFTNUU7SUFRRTtJQUFnQixDQUFDO0lBRWpCLDRDQUFRLEdBQVI7SUFDQSxDQUFDO0lBVFE7UUFBUixLQUFLLEVBQUU7OzREQUFlO0lBQ2Q7UUFBUixLQUFLLEVBQUU7OzhEQUFpQjtJQUNoQjtRQUFSLEtBQUssRUFBRTs7b0VBQXVCO0lBQ3RCO1FBQVIsS0FBSyxFQUFFOztpRUFBb0I7SUFDbkI7UUFBUixLQUFLLEVBQUU7OzhEQUFrQjtJQU5mLHlCQUF5QjtRQU5yQyxTQUFTLENBQUM7WUFDVCxRQUFRLEVBQUUsdUJBQXVCO1lBQ2pDLHd6QkFBa0Q7WUFFbEQsYUFBYSxFQUFFLGlCQUFpQixDQUFDLElBQUk7O1NBQ3RDLENBQUM7O09BQ1cseUJBQXlCLENBYXJDO0lBQUQsZ0NBQUM7Q0FBQSxBQWJELElBYUM7U0FiWSx5QkFBeUIiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBDb21wb25lbnQsIElucHV0LCBP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