import { ChangeDetectionStrategy, Component } from '@angular/core';
import { ValueView } from '../../value-view';
import * as i0 from "@angular/core";
import * as i1 from "../../value-view-label.component";
export class FileValueViewComponent extends ValueView {
    get name() {
        try {
            return JSON.parse(this.value).name;
        }
        catch {
            return '';
        }
    }
}
FileValueViewComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: FileValueViewComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
FileValueViewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.5", type: FileValueViewComponent, selector: "ax-file-value-view", usesInheritance: true, ngImport: i0, template: "<ax-value-view-label [label]=\"label\">\n  <span>{{ name }}</span>\n</ax-value-view-label>\n", styles: [":host{line-break:anywhere}\n", ":host{display:grid;grid-template-rows:auto auto;align-items:center;font-weight:400;max-width:100%;width:100%;margin-bottom:.25rem}\n"], dependencies: [{ kind: "component", type: i1.ValueViewLabelComponent, selector: "ax-value-view-label", inputs: ["label"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: FileValueViewComponent, decorators: [{
            type: Component,
            args: [{ selector: 'ax-file-value-view', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ax-value-view-label [label]=\"label\">\n  <span>{{ name }}</span>\n</ax-value-view-label>\n", styles: [":host{line-break:anywhere}\n", ":host{display:grid;grid-template-rows:auto auto;align-items:center;font-weight:400;max-width:100%;width:100%;margin-bottom:.25rem}\n"] }]
        }] });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmlsZS12YWx1ZS12aWV3LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvY29tcG9uZW50cy92YWx1ZS12aWV3L3ZhbHVlLXZpZXdzL2Z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