{ "version": 3, "sources": ["src/app/features/modals/confirmation-modal/confirmation-modal.component.ts", "src/app/features/modals/confirmation-modal/confirmation-modal.component.html"], "sourcesContent": ["import { CommonModule } from '@angular/common';\nimport { Component, EventEmitter, Output } from '@angular/core';\nimport { TranslateModule } from '@ngx-translate/core';\nimport { DynamicDialogConfig, DynamicDialogRef } from 'primeng/dynamicdialog';\nimport { ButtonComponent } from '../../../shared/button/button.component';\n\n@Component({\n selector: 'app-confirmation-modal',\n standalone: true,\n imports: [TranslateModule, ButtonComponent, CommonModule],\n templateUrl: './confirmation-modal.component.html',\n styleUrl: './confirmation-modal.component.scss',\n})\nexport class ConfirmationModalComponent {\n headingContent: string = '';\n contentName: string = '';\n imageUrl: string = '';\n isEmployee: boolean = false;\n isRoleAccess: boolean = false;\n factoryContent: string = '';\n codeContent: string = '';\n\n @Output() onConfirmClick: any = new EventEmitter();\n @Output() onCancelClick: any = new EventEmitter();\n\n constructor(\n public config: DynamicDialogConfig,\n private ref: DynamicDialogRef\n ) {}\n\n ngOnInit(): void {\n if (this.config.data) {\n this.headingContent = this.config.data.headingContent;\n this.contentName = this.config.data.contentName;\n this.imageUrl = this.config.data.imageUrl;\n this.isEmployee = this.config.data.isEmployee;\n this.factoryContent = this.config.data.factoryContent;\n this.codeContent = this.config.data.codeContent;\n }\n }\n\n onConfirm = () => {\n this.ref.close('confirmed');\n };\n\n onCancel = () => {\n this.ref.close('cancel');\n };\n}\n", "
\n {{ headingContent | translate }}\n {{ factoryContent ? factoryContent : \"\" }}\n @if(isRoleAccess){\n {{ contentName }} {{ \"EMPLOYEE\" | translate }} ? \n } @else if(isEmployee){\n {{ contentName }} \n }\n {{ codeContent }}?\n
\n