import { Component } 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(_overlay) {
        this._overlay = _overlay;
    }
    publishedDescriptionModal() {
        this._overlay.createModal(SimpleMessageModalComponent, {
            title: 'label.info',
            init: (modal) => {
                modal.text = 'property.published.description';
            },
        });
    }
}
PropertyPublishedButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PropertyPublishedButtonComponent, deps: [{ token: i1.OverlayService }], target: i0.ɵɵFactoryTarget.Component });
PropertyPublishedButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.5", 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: "15.1.5", 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: function () { return [{ type: i1.OverlayService }]; } });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvcGVydHktcHVibGlzaGVkLWJ1dHRvbi5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9saWJzL2NvbXBvbmVudHMvcHJvcGVydHktcHVibGlzaGVkLWJ1dHRvbi9wcm9wZXJ0eS1wdWJsaXNoZWQtYnV0dG9uLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uL2xpYnMvY29tcG9uZW50cy9wcm9wZXJ0eS1wdWJsaXNoZWQtYnV0dG9uL3Byb3BlcnR5LXB1Ymxpc2hlZC1idXR0b24uY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFDLFNBQVMsRUFBQyxNQUFNLGVBQWUsQ0FBQztBQUN4QyxPQUFPLEVBQUMsY0FBYyxFQUFDLE1BQU0sNEJBQTRCLENBQUM7QUFDMUQsT0FBTyxFQUFDLDJCQUEyQixFQUFDLE1BQU0seUNBQXlDLENBQUM7Ozs7O0FBT3BGLE1BQU0sT0FBTyxnQ0FBZ0M7SUFDM0MsWUFBb0IsUUFBd0I7UUFBeEIsYUFBUSxHQUFSLFFBQVEsQ0FBZ0I7SUFBRyxDQUFDO0lBRWhELHlCQUF5QjtRQUN2QixJQUFJLENBQUMsUUFBUSxDQUFDLFdBQVcsQ0FBQywyQkFBMkIsRUFBRTtZQUNyRCxLQUFLLEVBQUUsWUFBWTtZQUNuQixJQUFJLEVBQUUsQ0FBQyxLQUFLLEVBQUUsRUFBRTtnQkFDZCxLQUFLLENBQUMsSUFBSSxHQUFHLGdDQUFnQyxDQUFDO1lBQ2hELENBQUM7U0FDRixDQUFDLENBQUM7SUFDTCxDQUFDOz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