import * as i0 from '@angular/core';
import { Component, NgModule } from '@angular/core';
import * as i1 from '@aztrix/components/overlay';
import { SimpleMessageModalComponent } from '@aztrix/components/simple-message-modal';
import * as i2 from '@aztrix/components/button';
import { ButtonModule } from '@aztrix/components/button';
import * as i3 from '@aztrix/helpers';
import { HelperPipesModule } from '@aztrix/helpers';
import { CommonModule } from '@angular/common';

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 }]; } });

class PropertyPublishedButtonModule {
}
PropertyPublishedButtonModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PropertyPublishedButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
PropertyPublishedButtonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.5", ngImport: i0, type: PropertyPublishedButtonModule, declarations: [PropertyPublishedButtonComponent], imports: [CommonModule, ButtonModule, HelperPipesModule], exports: [PropertyPublishedButtonComponent] });
PropertyPublishedButtonModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PropertyPublishedButtonModule, imports: [CommonModule, ButtonModule, HelperPipesModule] });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PropertyPublishedButtonModule, decorators: [{
            type: NgModule,
            args: [{
                    declarations: [PropertyPublishedButtonComponent],
                    imports: [CommonModule, ButtonModule, HelperPipesModule],
                    exports: [PropertyPublishedButtonComponent],
                }]
        }] });

/**
 * Generated bundle index. Do not edit.
 */

export { PropertyPublishedButtonComponent, PropertyPublishedButtonModule };
//# sourceMappingURL=aztrix-components-property-published-button.mjs.map
//# sourceMappingURL=aztrix-components-property-published-button.mjs.map
