import { Component, ElementRef } from '@angular/core';
import { OverlayService } from '@aztrix/components/overlay';
import { SimpleMessageModalComponent } from '@aztrix/components/simple-message-modal';
import * as i0 from "@angular/core";
import * as i1 from "@aztrix/components/overlay";
import * as i2 from "@aztrix/components/button";
import * as i3 from "@aztrix/helpers";
export class PropertyPublishedButtonComponent {
    constructor(_elementRef, _overlay) {
        this._elementRef = _elementRef;
        this._overlay = _overlay;
    }
    publishedDescriptionModal() {
        this._overlay.createModal(this._elementRef, SimpleMessageModalComponent, {
            title: 'label.info',
            init: (modal) => {
                modal.text = 'property.published.description';
            },
        });
    }
    static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: PropertyPublishedButtonComponent, deps: [{ token: i0.ElementRef }, { token: i1.OverlayService }], target: i0.ɵɵFactoryTarget.Component }); }
    static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.11", type: PropertyPublishedButtonComponent, selector: "ax-property-published-button", ngImport: i0, template: "<button\n  axButton\n  filled\n  color=\"primary\"\n  (click)=\"$event.preventDefault(); publishedDescriptionModal()\"\n>\n  {{ 'label.public' | translate }}\n</button>\n", styles: [":host{position:absolute;right:10px;top:-5px;line-height:0;padding:0 .3rem}:host button{width:max-content;max-height:20px;font-size:10px;padding:0}\n"], dependencies: [{ kind: "directive", type: i2.ButtonDirective, selector: "[axButton]", inputs: ["color", "labelHideMobile", "smallButton", "bigButton", "fullWidth", "filled", "outline", "icon-button", "hoverLabel", "hover", "lowercase", "disabled"] }, { kind: "pipe", type: i3.TranslatePipe, name: "translate" }] }); }
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: PropertyPublishedButtonComponent, decorators: [{
            type: Component,
            args: [{ selector: 'ax-property-published-button', template: "<button\n  axButton\n  filled\n  color=\"primary\"\n  (click)=\"$event.preventDefault(); publishedDescriptionModal()\"\n>\n  {{ 'label.public' | translate }}\n</button>\n", styles: [":host{position:absolute;right:10px;top:-5px;line-height:0;padding:0 .3rem}:host button{width:max-content;max-height:20px;font-size:10px;padding:0}\n"] }]
        }], ctorParameters: () => [{ type: i0.ElementRef }, { type: i1.OverlayService }] });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvcGVydHktcHVibGlzaGVkLWJ1dHRvbi5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9saWJzL2NvbXBvbmVudHMvcHJvcGVydHktcHVibGlzaGVkLWJ1dHRvbi9wcm9wZXJ0eS1wdWJsaXNoZWQtYnV0dG9uLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uL2xpYnMvY29tcG9uZW50cy9wcm9wZXJ0eS1wdWJsaXNoZWQtYnV0dG9uL3Byb3BlcnR5LXB1Ymxpc2hlZC1idXR0b24uY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFDLFNBQVMsRUFBRSxVQUFVLEVBQUMsTUFBTSxlQUFlLENBQUM7QUFDcEQsT0FBTyxFQUFDLGNBQWMsRUFBQyxNQUFNLDRCQUE0QixDQUFDO0FBQzFELE9BQU8sRUFBQywyQkFBMkIsRUFBQyxNQUFNLHlDQUF5QyxDQUFDOzs7OztBQU9wRixNQUFNLE9BQU8sZ0NBQWdDO0lBQzNDLFlBQW9CLFdBQXVCLEVBQVUsUUFBd0I7UUFBekQsZ0JBQVcsR0FBWCxXQUFXLENBQVk7UUFBVSxhQUFRLEdBQVIsUUFBUSxDQUFnQjtJQUFHLENBQUM7SUFFakYseUJBQXlCO1FBQ3ZCLElBQUksQ0FBQyxRQUFRLENBQUMsV0FBVyxDQUFDLElBQUksQ0FBQyxXQUFXLEVBQUUsMkJBQTJCLEVBQUU7WUFDdkUsS0FBSyxFQUFFLFlBQVk7WUFDbkIsSUFBSSxFQUFFLEN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