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A3BTE,KACAC,IACAC,KACAC,KACAC,KACAC,KACAC,KACAC,KACAC,QAmBSV,CAAqB,8GC/ChCvD,MAAA,WAAoDA,MAAA,yBAAAkE,EAAAlE,MAAAsB,GAAAK,UAAAwC,EAAAnE,QAAA,OAAAA,MAASmE,EAAAC,WAAAF,EAAAvE,IAAkB,GAC7EK,MAAA,cAAUA,MAAA,cAAQA,QAClBA,MAAA,UAAMA,MAAA,GACRA,gDAH0CA,MAAA,KAAAmE,EAAAxE,IAElCK,MAAA,GAAAA,MAAAkE,EAAApC,OCKH,IAAMuC,EAAiB,UAAAC,EAAxB,MAAOD,EACX1H,cAESI,KAAAwH,KAAyB,GACzBxH,KAAA4C,GAAa,GACZ5C,KAAAyH,WAAmC,IAAItH,KAJjC,CAMhBiF,WACA,CAEAiC,WAAWzE,GACT5C,KAAKyH,WAAWlF,KAAKK,EACvB,WAZW0E,yCAAiB,0BAAjBA,EAAiB/D,UAAA,oBAAAC,OAAA,CAAAgE,KAAA,OAAA5E,GAAA,MAAAa,QAAA,CAAAgE,WAAA,cAAA9D,MAAA,EAAAC,KAAA,EAAA2B,OAAA,+HAAA1B,SAAA,SAAAC,EAAAC,GAAA,EAAAD,IDR9Bb,MAAA,WACEA,MAAA,EAAAyE,EAAA,aAIFzE,eAJmCA,cAAA,UAAAc,EAAAyD,mCCOtBF,CAAiB","names":["EformsTagsComponent","_EformsTagsComponent","constructor","eFormTagService","dialog","overlay","this","availableTags","tagsChanged","EventEmitter","show","dialogRef","open","SharedTagsComponent","dialogConfigHelper","showCreateTagSub$","componentInstance","showCreateTag","subscribe","dialogRefCreateTag","SharedTagCreateComponent","updatedTagSub$","createdTag","tag","onTagCreate","showEditTagSub$","showEditTag","x","dialogRefUpdateTag","SharedTagEditComponent","updatedTag","onTagUpdate","showDeleteTagSub$","showDeleteTag","SharedTagDeleteComponent","deletedTagSub$","deletedTag","onTagDelete","ngOnDestroy","model","updateTag$","updateTag","data","success","close","emit","createTag$","createTag","deleteTag$","deleteTag","id","ngOnChanges","changes","firstChange","currentValue","i0","i1","i2","i3","_angular_core__WEBPACK_IMPORTED_MODULE_3__","VBU","selectors","inputs","outputs","features","decls","vars","template","rf","ctx","__decorate","AutoUnsubscribe","tslib__WEBPACK_IMPORTED_MODULE_6__","Sn","EformTagService","MatDialog","Overlay","_r1","ctx_r1","showMultipleCreateTagModal","tag_r4","_r3","$implicit","showEditTagModal","showDeleteTagModal","name","_SharedTagsComponent","showMultipleCreateBtn","showMultipleCreateTag","hide","ngOnInit","showCreateTagModal","MAT_DIALOG_DATA","consts","SharedTagsComponent_button_6_Template","SharedTagsComponent_div_13_Template","_SharedTagDeleteComponent","tagModel","SharedTagModel","cancelDelete","_SharedTagEditComponent","updateItem","cancelEdit","core","$event","tslib_es6","MatDialogRef","_SharedTagCreateComponent","createItem","cancelCreate","EformSharedTagsModule","_EformSharedTagsModule","CommonModule","TranslateModule","FormsModule","MatButtonModule","MatIconModule","MatDialogModule","MatFormFieldModule","MatInputModule","MatTooltipModule","tag_r2","ctx_r2","onClickTag","EformTagComponent","_EformTagComponent","tags","clickOnTag","EformTagComponent_div_1_Template"],"ignoreList":[],"sourceRoot":"webpack:///","sources":["./src/app/common/modules/eform-shared-tags/components/eforms-tags/eforms-tags.component.ts","./src/app/common/modules/eform-shared-tags/components/shared-tags/shared-tags.component.html","./src/app/common/modules/eform-shared-tags/components/shared-tags/shared-tags.component.ts","./src/app/common/modules/eform-shared-tags/components/shared-tag-delete/shared-tag-delete.component.ts","./src/app/common/modules/eform-shared-tags/components/shared-tag-delete/shared-tag-delete.component.html","./src/app/common/modules/eform-shared-tags/components/shared-tag-edit/shared-tag-edit.component.ts","./src/app/common/modules/eform-shared-tags/components/shared-tag-edit/shared-tag-edit.component.html","./src/app/common/modules/eform-shared-tags/components/shared-tag-create/shared-tag-create.component.ts","./src/app/common/modules/eform-shared-tags/components/shared-tag-create/shared-tag-create.component.html","./src/app/common/modules/eform-shared-tags/eform-shared-tags.module.ts","./src/app/common/modules/eform-shared/components/eform-tag/eform-tag.component.html","./src/app/common/modules/eform-shared/components/eform-tag/eform-tag.component.ts"],"sourcesContent":["import {\n Component,\n EventEmitter, Input, OnChanges,\n OnDestroy,\n Output,\n SimpleChanges,\n\n} from '@angular/core';\nimport {\n SharedTagCreateComponent,\n SharedTagDeleteComponent,\n SharedTagEditComponent,\n SharedTagsComponent\n} from 'src/app/common/modules/eform-shared-tags/components';\nimport {\n CommonDictionaryModel,\n SharedTagCreateModel,\n SharedTagModel,\n} from 'src/app/common/models';\nimport {Subscription} from 'rxjs';\nimport {AutoUnsubscribe} from 'ngx-auto-unsubscribe';\nimport {EformTagService} from 'src/app/common/services';\nimport {MatDialogRef, MatDialog} from '@angular/material/dialog';\nimport {dialogConfigHelper} from 'src/app/common/helpers';\nimport {Overlay} from '@angular/cdk/overlay';\n\n@AutoUnsubscribe()\n@Component({\n selector: 'app-eforms-tags',\n templateUrl: './eforms-tags.component.html',\n styleUrls: ['./eforms-tags.component.scss'],\n})\nexport class EformsTagsComponent implements OnDestroy, OnChanges {\n @Input() availableTags: CommonDictionaryModel[] = [];\n @Output() tagsChanged: EventEmitter = new EventEmitter();\n dialogRef: MatDialogRef;\n deleteTag$: Subscription;\n createTag$: Subscription;\n updateTag$: Subscription;\n showCreateTagSub$: Subscription;\n showEditTagSub$: Subscription;\n showDeleteTagSub$: Subscription;\n deletedTagSub$: Subscription;\n updatedTagSub$: Subscription;\n\n constructor(\n private eFormTagService: EformTagService,\n public dialog: MatDialog,\n private overlay: Overlay\n ) {\n }\n\n show() {\n this.dialogRef = this.dialog.open(SharedTagsComponent, {\n ...dialogConfigHelper(this.overlay, this.availableTags)\n });\n this.showCreateTagSub$ = this.dialogRef.componentInstance.showCreateTag.subscribe(() => {\n const dialogRefCreateTag = this.dialog.open(SharedTagCreateComponent, {\n ...dialogConfigHelper(this.overlay)\n });\n this.updatedTagSub$ = dialogRefCreateTag.componentInstance.createdTag.subscribe(tag => this.onTagCreate(tag, dialogRefCreateTag));\n })\n this.showEditTagSub$ = this.dialogRef.componentInstance.showEditTag.subscribe((x) => {\n const dialogRefUpdateTag = this.dialog.open(SharedTagEditComponent, {\n ...dialogConfigHelper(this.overlay, x)\n });\n this.updatedTagSub$ = dialogRefUpdateTag.componentInstance.updatedTag.subscribe(tag => this.onTagUpdate(tag, dialogRefUpdateTag));\n })\n this.showDeleteTagSub$ = this.dialogRef.componentInstance.showDeleteTag.subscribe((x) => {\n const dialogRefUpdateTag = this.dialog.open(SharedTagDeleteComponent, {\n ...dialogConfigHelper(this.overlay, x)\n });\n this.deletedTagSub$ = dialogRefUpdateTag.componentInstance.deletedTag.subscribe(tag => this.onTagDelete(tag, dialogRefUpdateTag));\n })\n }\n\n ngOnDestroy(): void {\n }\n\n onTagUpdate(model: SharedTagModel, dialogRefUpdateTag: MatDialogRef) {\n this.updateTag$ = this.eFormTagService\n .updateTag(model)\n .subscribe((data) => {\n if (data && data.success) {\n dialogRefUpdateTag.close();\n this.tagsChanged.emit();\n }\n });\n }\n\n onTagCreate(model: SharedTagCreateModel, dialogRefUpdateTag: MatDialogRef) {\n this.createTag$ = this.eFormTagService\n .createTag(model)\n .subscribe((data) => {\n if (data && data.success) {\n dialogRefUpdateTag.close();\n this.tagsChanged.emit();\n }\n });\n }\n\n onTagDelete(model: SharedTagModel, dialogRefUpdateTag: MatDialogRef) {\n this.deleteTag$ = this.eFormTagService\n .deleteTag(model.id)\n .subscribe((data) => {\n if (data && data.success) {\n dialogRefUpdateTag.close();\n this.tagsChanged.emit();\n }\n });\n }\n\n ngOnChanges(changes: SimpleChanges): void {\n if (!changes.availableTags.firstChange && changes.availableTags && this.dialogRef) {\n this.dialogRef.componentInstance.availableTags = changes.availableTags.currentValue;\n }\n }\n}\n","

{{ 'Tags management' | translate }}

\n
\n
\n
\n \n add\n {{'Add bulk' | translate}}\n \n \n add\n {{'Add new' | translate}}\n \n
\n
\n
\n
\n {{tag.name}}\n
\n
\n
\n \n edit\n \n \n delete\n \n
\n
\n
\n
\n
\n \n {{ 'Close' | translate }}\n \n
\n\n","import {\n Component,\n EventEmitter,\n Inject,\n OnInit,\n} from '@angular/core';\nimport {\n CommonDictionaryModel,\n SharedTagModel,\n} from 'src/app/common/models';\nimport {MatDialogRef, MAT_DIALOG_DATA} from '@angular/material/dialog';\n\n@Component({\n selector: 'app-shared-tags',\n templateUrl: './shared-tags.component.html',\n styleUrls: ['./shared-tags.component.scss']\n})\nexport class SharedTagsComponent implements OnInit {\n public availableTags: CommonDictionaryModel[] = [];\n public showMultipleCreateBtn: boolean = false;\n public showCreateTag: EventEmitter = new EventEmitter();\n public showEditTag: EventEmitter = new EventEmitter();\n public showDeleteTag: EventEmitter = new EventEmitter();\n public showMultipleCreateTag: EventEmitter = new EventEmitter();\n\n constructor(\n public dialogRef: MatDialogRef,\n @Inject(MAT_DIALOG_DATA) availableTags: CommonDictionaryModel[] = [],) {\n this.availableTags = availableTags;\n }\n\n hide() {\n this.dialogRef.close();\n }\n\n ngOnInit() {\n }\n\n showCreateTagModal() {\n this.showCreateTag.emit();\n }\n\n showEditTagModal(tag: SharedTagModel) {\n this.showEditTag.emit(tag);\n }\n\n showDeleteTagModal(tag: SharedTagModel) {\n this.showDeleteTag.emit(tag);\n }\n\n showMultipleCreateTagModal() {\n this.showMultipleCreateTag.emit();\n }\n}\n","import {\n Component,\n EventEmitter,\n Inject,\n} from '@angular/core';\nimport { SharedTagModel } from 'src/app/common/models';\nimport {MAT_DIALOG_DATA, MatDialogRef} from '@angular/material/dialog';\n\n@Component({\n selector: 'app-shared-tag-delete',\n templateUrl: './shared-tag-delete.component.html',\n styleUrls: ['./shared-tag-delete.component.scss']\n})\nexport class SharedTagDeleteComponent {\n public deletedTag: EventEmitter = new EventEmitter();\n constructor(\n public dialogRef: MatDialogRef,\n @Inject(MAT_DIALOG_DATA) public tagModel: SharedTagModel = new SharedTagModel()) {}\n\n deleteTag() {\n this.deletedTag.emit(this.tagModel);\n }\n\n cancelDelete() {\n this.dialogRef.close();\n }\n}\n","

{{'Are you sure you want to delete' | translate}}?

\n
\n
\n
\n

ID

\n
\n
\n {{tagModel.id}}\n
\n
\n
\n
\n

{{'Name' | translate}}

\n
\n
\n {{tagModel.name}}\n
\n
\n
\n
\n \n {{'Delete' | translate}}\n \n \n {{'Close' | translate}}\n \n
\n","import {\n Component,\n EventEmitter,\n Inject,\n OnDestroy,\n} from '@angular/core';\nimport { AutoUnsubscribe } from 'ngx-auto-unsubscribe';\nimport {SharedTagModel} from 'src/app/common/models';\nimport {MAT_DIALOG_DATA, MatDialogRef} from '@angular/material/dialog';\n\n@AutoUnsubscribe()\n@Component({\n selector: 'app-shared-tag-edit',\n templateUrl: './shared-tag-edit.component.html',\n styleUrls: ['./shared-tag-edit.component.scss'],\n})\nexport class SharedTagEditComponent implements OnDestroy {\n public updatedTag: EventEmitter = new EventEmitter();\n public tagModel: SharedTagModel = new SharedTagModel()\n\n constructor(\n public dialogRef: MatDialogRef,\n @Inject(MAT_DIALOG_DATA) tagModel: SharedTagModel = new SharedTagModel()) {\n this.tagModel = {...tagModel};\n }\n\n updateItem() {\n this.updatedTag.emit(this.tagModel);\n }\n\n cancelEdit() {\n this.dialogRef.close();\n }\n\n ngOnDestroy(): void {}\n}\n","

{{ 'Edit tag name' | translate }}

\n
\n \n \n {{ 'Name' | translate }}\n \n
\n
\n \n {{ 'Save' | translate }}\n \n \n {{ 'Close' | translate }}\n \n
\n\n\n","import {\n Component,\n EventEmitter,\n OnInit,\n} from '@angular/core';\nimport { SharedTagCreateModel } from 'src/app/common/models';\nimport {MatDialogRef} from '@angular/material/dialog';\n\n@Component({\n selector: 'app-shared-tag-create',\n templateUrl: './shared-tag-create.component.html',\n styleUrls: ['./shared-tag-create.component.scss']\n})\nexport class SharedTagCreateComponent implements OnInit {\n public createdTag: EventEmitter = new EventEmitter();\n name = '';\n\n constructor( public dialogRef: MatDialogRef,) {}\n\n ngOnInit() {}\n\n createItem() {\n this.createdTag.emit({ name: this.name } as SharedTagCreateModel);\n this.name = '';\n }\n\n cancelCreate() {\n this.dialogRef.close();\n this.name = '';\n }\n}\n","

{{ 'New tag' | translate }}

\n
\n \n \n {{ 'Name' | translate }}\n \n
\n
\n \n {{ 'Save' | translate }}\n \n \n {{ 'Close' | translate }}\n \n
\n\n\n","import {NgModule} from '@angular/core';\nimport {CommonModule} from '@angular/common';\nimport {FormsModule} from '@angular/forms';\nimport {TranslateModule} from '@ngx-translate/core';\nimport {\n SharedTagDeleteComponent,\n SharedTagEditComponent,\n SharedTagsComponent,\n SharedTagCreateComponent,\n SharedTagMultipleCreateComponent,\n EformsTagsComponent,\n} from './components';\nimport {MatButtonModule} from '@angular/material/button';\nimport {MatIconModule} from '@angular/material/icon';\nimport {MatDialogModule} from '@angular/material/dialog';\nimport {MatFormFieldModule} from '@angular/material/form-field';\nimport {MatInputModule} from '@angular/material/input';\nimport {MatTooltipModule} from '@angular/material/tooltip';\n\n@NgModule({\n imports: [\n CommonModule,\n TranslateModule,\n FormsModule,\n MatButtonModule,\n MatIconModule,\n MatDialogModule,\n MatFormFieldModule,\n MatInputModule,\n MatTooltipModule,\n ],\n declarations: [\n SharedTagDeleteComponent,\n SharedTagEditComponent,\n SharedTagCreateComponent,\n SharedTagsComponent,\n EformsTagsComponent,\n SharedTagMultipleCreateComponent,\n ],\n exports: [\n SharedTagDeleteComponent,\n SharedTagEditComponent,\n SharedTagCreateComponent,\n SharedTagsComponent,\n EformsTagsComponent,\n SharedTagMultipleCreateComponent,\n ],\n})\nexport class EformSharedTagsModule {\n}\n","
\n
\n discount\n {{ tag.name }}\n
\n
\n","import {Component, OnInit, Input, Output, EventEmitter} from '@angular/core';\nimport {SharedTagModel} from 'src/app/common/models';\n\n@Component({\n selector: 'app-eform-tag',\n templateUrl: './eform-tag.component.html',\n styleUrls: ['./eform-tag.component.scss']\n})\nexport class EformTagComponent implements OnInit {\n constructor() { }\n\n @Input() tags: SharedTagModel[] = [];\n @Input() id: string = '';\n @Output() clickOnTag: EventEmitter = new EventEmitter();\n\n ngOnInit() {\n }\n\n onClickTag(id: number) {\n this.clickOnTag.emit(id);\n }\n}\n"],"x_google_ignoreList":[]}