import { Component, Input } from '@angular/core';
import * as i0 from "@angular/core";
import * as i1 from "@angular/common";
import * as i2 from "../../../pipes-directives/pipes/key-value.pipe";
export class CreativeDebugComponent {
}
CreativeDebugComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CreativeDebugComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
CreativeDebugComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: CreativeDebugComponent, selector: "epom-popup-creative-debug", inputs: { creativeDebugData: "creativeDebugData" }, ngImport: i0, template: "<div *ngIf=\"creativeDebugData[0]\">\n  <table class=\"table\">\n    <thead>\n    <tr>\n      <th>Reason</th>\n      <th>% from all</th>\n    </tr>\n    </thead>\n    <tbody>\n    <tr *ngFor=\"let item of creativeDebugData[0]?.exclusions | keyValue\">\n      <td><code>{{item?.key}}</code></td>\n      <td>{{item?.value * 100 / creativeDebugData[0]?.total | number:'1.0' }} %</td>\n    </tr>\n    <tr>\n      <td>Total requests analysed:</td>\n      <td>{{creativeDebugData[0]?.total }}</td>\n    </tr>\n    </tbody>\n  </table>\n</div>\n<div *ngIf=\"!creativeDebugData[0]\">\n  <h3>No data to show</h3>\n</div>\n", dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i1.DecimalPipe, name: "number" }, { kind: "pipe", type: i2.KeyValuePipeClass, name: "keyValue" }] });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CreativeDebugComponent, decorators: [{
            type: Component,
            args: [{ selector: 'epom-popup-creative-debug', template: "<div *ngIf=\"creativeDebugData[0]\">\n  <table class=\"table\">\n    <thead>\n    <tr>\n      <th>Reason</th>\n      <th>% from all</th>\n    </tr>\n    </thead>\n    <tbody>\n    <tr *ngFor=\"let item of creativeDebugData[0]?.exclusions | keyValue\">\n      <td><code>{{item?.key}}</code></td>\n      <td>{{item?.value * 100 / creativeDebugData[0]?.total | number:'1.0' }} %</td>\n    </tr>\n    <tr>\n      <td>Total requests analysed:</td>\n      <td>{{creativeDebugData[0]?.total }}</td>\n    </tr>\n    </tbody>\n  </table>\n</div>\n<div *ngIf=\"!creativeDebugData[0]\">\n  <h3>No data to show</h3>\n</div>\n" }]
        }], propDecorators: { creativeDebugData: [{
                type: Input
            }] } });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY3JlYXRpdmUtZGVidWcuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicmFyaWVzL2Vwb20tbmcyLXVpLWZvdW5kYXRpb24vc3JjL2xpYi9wb3B1cC9jb21wb25lbnRzL2NyZWF0aXZlLWRlYnVnL2NyZWF0aXZlLWRlYnVnLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnJhcmllcy9lcG9tLW5nMi11aS1mb3VuZGF0aW9uL3NyYy9saWIvcG9wdXAvY29tcG9uZW50cy9jcmVhdGl2ZS1kZWJ1Zy9lcG9tLXBvcHVwLWNyZWF0aXZlLWRlYnVnLmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFDLFNBQVMsRUFBRSxLQUFLLEVBQUMsTUFBTSxlQUFlLENBQUM7Ozs7QUFRL0MsTUFBTSxPQUFPLHNCQUFzQjs7bUhBQXRCLHNCQUFzQjt1R0FBdEIsc0JBQXNCLHFIQ1JuQyx1bUJBdUJBOzJGRGZhLHNCQUFzQjtrQkFObEMsU0FBUzsrQkFDSSwyQkFBMkI7OEJBTTVCLGlCQUFpQjtzQkFBekIsS0FBSyIsInNvdXJjZX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