import { Component } from '@angular/core';
import { DialogComponent } from '@seniorsistemas/angular-components/dialog';
import { TemplateModule } from '@seniorsistemas/angular-components/template';
import { ButtonModule } from '@seniorsistemas/angular-components/button';
import * as i0 from "@angular/core";
import * as i1 from "@seniorsistemas/angular-components/template";
import * as i2 from "@seniorsistemas/angular-components/button";
export class PopupConfirmDialogComponent {
    confirmDialog;
    static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: PopupConfirmDialogComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
    static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: PopupConfirmDialogComponent, isStandalone: true, selector: "ng-component", ngImport: i0, template: "@if (confirmDialog) {\n    <s-dialog [header]=\"confirmDialog.header\">\n        <div class=\"grid grid-cols-12\">\n            <div class=\"col-span-12\">\n                {{ confirmDialog.message }}\n            </div>\n        </div>\n        <ng-template\n            sTemplate=\"footer\"\n            let-activeDialog=\"activeDialog\"\n        >\n            <div class=\"grid grid-cols-12\">\n                <div class=\"col-span-12 flex flex-wrap justify-end gap-3\">\n                    @if (confirmDialog.rejectLabel) {\n                        <s-button\n                            [label]=\"confirmDialog.rejectLabel\"\n                            (clicked)=\"activeDialog.close(false)\"\n                            label=\"A\u00E7\u00E3o secund\u00E1ria\"\n                            priority=\"link\"\n                        />\n                    }\n                    <s-button\n                        [label]=\"confirmDialog.acceptLabel\"\n                        (clicked)=\"activeDialog.close(true)\"\n                        priority=\"primary\"\n                    />\n                </div>\n            </div>\n        </ng-template>\n    </s-dialog>\n}\n", dependencies: [{ kind: "component", type: DialogComponent, selector: "s-dialog", inputs: ["header", "visible", "size", "contentClassName", "escapeOnEsc", "destroyClickOutside"], outputs: ["visibleChange"] }, { kind: "ngmodule", type: TemplateModule }, { kind: "directive", type: i1.TemplateDirective, selector: "[sTemplate]", inputs: ["sTemplate"] }, { kind: "ngmodule", type: ButtonModule }, { kind: "component", type: i2.ButtonComponent, selector: "s-button", inputs: ["id", "label", "tooltip", "tooltipPosition", "iconClass", "rightIconClass", "caret", "styleClass", "baseZIndex", "disabled", "auxiliary", "type", "priority", "menuOptions", "size", "slide", "animation", "badge", "iconColor"], outputs: ["clicked"] }] });
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: PopupConfirmDialogComponent, decorators: [{
            type: Component,
            args: [{ standalone: true, imports: [DialogComponent, TemplateModule, ButtonModule], template: "@if (confirmDialog) {\n    <s-dialog [header]=\"confirmDialog.header\">\n        <div class=\"grid grid-cols-12\">\n            <div class=\"col-span-12\">\n                {{ confirmDialog.message }}\n            </div>\n        </div>\n        <ng-template\n            sTemplate=\"footer\"\n            let-activeDialog=\"activeDialog\"\n        >\n            <div class=\"grid grid-cols-12\">\n                <div class=\"col-span-12 flex flex-wrap justify-end gap-3\">\n                    @if (confirmDialog.rejectLabel) {\n                        <s-button\n                            [label]=\"confirmDialog.rejectLabel\"\n                            (clicked)=\"activeDialog.close(false)\"\n                            label=\"A\u00E7\u00E3o secund\u00E1ria\"\n                            priority=\"link\"\n                        />\n                    }\n                    <s-button\n                        [label]=\"confirmDialog.acceptLabel\"\n                        (clicked)=\"activeDialog.close(true)\"\n                        priority=\"primary\"\n                    />\n                </div>\n            </div>\n        </ng-template>\n    </s-dialog>\n}\n" }]
        }] });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicG9wdXAtY29uZmlybS1kaWFsb2cuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYW5ndWxhci1jb21wb25lbnRzL2NvbmZpcm0tZGlhbG9nL3NyYy9saWIvcG9wdXAtY29uZmlybS1kaWFsb2cvcG9wdXAtY29uZmlybS1kaWFsb2cuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYW5ndWxhci1j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gICAgICAgICAgICAgICAgICA8cy1idXR0b25cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBbbGFiZWxdPVwiY29uZmlybURpYWxvZy5yZWplY3RMYWJlbFwiXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgKGNsaWNrZWQpPVwiYWN0aXZlRGlhbG9nLmNsb3NlKGZhbHNlKVwiXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgbGFiZWw9XCJBw6fDo28gc2VjdW5kw6FyaWFcIlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHByaW9yaXR5PVwibGlua1wiXG4gICAgICAgICAgICAgICAgICAgICAgICAvPlxuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgIDxzLWJ1dHRvblxuICAgICAgICAgICAgICAgICAgICAgICAgW2xhYmVsXT1cImNvbmZpcm1EaWFsb2cuYWNjZXB0TGFiZWxcIlxuICAgICAgICAgICAgICAgICAgICAgICAgKGNsaWNrZWQpPVwiYWN0aXZlRGlhbG9nLmNsb3NlKHRydWUpXCJcbiAgICAgICAgICAgICAgICAgICAgICAgIHByaW9yaXR5PVwicHJpbWFyeVwiXG4gICAgICAgICAgICAgICAgICAgIC8+XG4gICAgICAgICAgICAgICAgPC9kaXY+XG4gICAgICAgICAgICA8L2Rpdj5cbiAgICAgICAgPC9uZy10ZW1wbGF0ZT5cbiAgICA8L3MtZGlhbG9nPlxufVxuIl19