{"version":3,"file":"hslayers-ng-common-confirm.mjs","sources":["../../../projects/hslayers/common/confirm/confirm-dialog.component.ts","../../../projects/hslayers/common/confirm/confirm-dialog.component.html","../../../projects/hslayers/common/confirm/hslayers-ng-common-confirm.ts"],"sourcesContent":["import {Component, ViewRef, inject} from '@angular/core';\nimport {TranslatePipe} from '@ngx-translate/core';\n\nimport {\n  HsDialogComponent,\n  HsDialogContainerService,\n  HsDialogItem,\n} from 'hslayers-ng/common/dialogs';\n\n@Component({\n  selector: 'hs-confirm-dialog',\n  templateUrl: './confirm-dialog.component.html',\n  imports: [TranslatePipe],\n})\nexport class HsConfirmDialogComponent implements HsDialogComponent {\n  hsDialogContainerService = inject(HsDialogContainerService);\n\n  dialogItem: HsDialogItem;\n  viewRef: ViewRef;\n  data: any;\n\n  yes(): void {\n    this.hsDialogContainerService.destroy(this);\n    this.dialogItem.resolve('yes');\n  }\n\n  no(): void {\n    this.hsDialogContainerService.destroy(this);\n    this.dialogItem.resolve('no');\n  }\n}\n","<div class=\"modal in\" tabindex=\"-1\" role=\"dialog\" aria-hidden=\"true\">\n    <div class=\"modal-dialog\">\n        <div class=\"modal-content\">\n            <div class=\"modal-header\">\n                <h4 class=\"modal-title\">\n                    {{data.title | translate }}\n                </h4>\n                <button type=\"button\" (click)=\"no()\" class=\"btn-close\" data-dismiss=\"modal\"\n                    [attr.aria-label]=\"'COMMON.close' | translate \"></button>\n            </div>\n            <div class=\"modal-body\" style=\"overflow-y:auto\">\n                <p class=\"fw-bold h6\">{{data.message | translate }}</p>\n                <p class=\"h6 small\">{{data.note | translate }}</p>\n            </div>\n            <div class=\"modal-footer\">\n                <button type=\"button\" class=\"btn btn-primary\" (click)=\"yes()\" [title]=\"'COMMON.yes' | translate\"\n                    data-dismiss=\"modal\">{{'COMMON.yes' | translate}}</button>\n                <button type=\"button\" class=\"btn btn-secondary compositions-btn-cancel\"\n                    [title]=\"'COMMON.no' | translate\" (click)=\"no()\" data-dismiss=\"modal\">{{'COMMON.no' | translate }}</button>\n            </div>\n        </div>\n    </div>\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;MAca,wBAAwB,CAAA;AALrC,IAAA,WAAA,GAAA;AAME,QAAA,IAAA,CAAA,wBAAwB,GAAG,MAAM,CAAC,wBAAwB,CAAC;AAe5D,IAAA;IATC,GAAG,GAAA;AACD,QAAA,IAAI,CAAC,wBAAwB,CAAC,OAAO,CAAC,IAAI,CAAC;AAC3C,QAAA,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,KAAK,CAAC;IAChC;IAEA,EAAE,GAAA;AACA,QAAA,IAAI,CAAC,wBAAwB,CAAC,OAAO,CAAC,IAAI,CAAC;AAC3C,QAAA,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC;IAC/B;+GAfW,wBAAwB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;mGAAxB,wBAAwB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,mBAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECdrC,2vCAuBA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EDXY,aAAa,EAAA,IAAA,EAAA,WAAA,EAAA,CAAA,EAAA,CAAA,CAAA;;4FAEZ,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBALpC,SAAS;+BACE,mBAAmB,EAAA,OAAA,EAEpB,CAAC,aAAa,CAAC,EAAA,QAAA,EAAA,2vCAAA,EAAA;;;AEZ1B;;AAEG;;;;"}