Index: trip-planner-front/node_modules/.cache/babel-webpack/066408226717f570700f35f3123288cf.json
===================================================================
--- trip-planner-front/node_modules/.cache/babel-webpack/066408226717f570700f35f3123288cf.json	(revision bdd64917749115bbdd228a9569a675d590c112e3)
+++ trip-planner-front/node_modules/.cache/babel-webpack/066408226717f570700f35f3123288cf.json	(revision bdd64917749115bbdd228a9569a675d590c112e3)
@@ -0,0 +1,1 @@
+{"ast":null,"code":"import { CreateInitialPlannerComponent } from '../create-initial-planner/create-initial-planner.component';\nimport { PlannerDto } from '../_models/dto/plannerDto';\nimport { DialogService, DynamicDialogRef } from 'primeng/dynamicdialog';\nimport { MessageService } from 'primeng/api';\nimport { UserDto } from '../_models/dto/userDto';\nimport * as i0 from \"@angular/core\";\nimport * as i1 from \"../_services/planner.service\";\nimport * as i2 from \"@angular/router\";\nimport * as i3 from \"primeng/dynamicdialog\";\nimport * as i4 from \"primeng/api\";\nimport * as i5 from \"../_services/user.service\";\nimport * as i6 from \"primeng/toast\";\nimport * as i7 from \"primeng/button\";\nimport * as i8 from \"primeng/ripple\";\nimport * as i9 from \"primeng/table\";\nimport * as i10 from \"@angular/common\";\nimport * as i11 from \"primeng/card\";\n\nfunction PlannerComponent_ng_template_6_ng_template_2_Template(rf, ctx) {}\n\nconst _c0 = function () {\n  return {\n    \"margin-left\": \".5em\"\n  };\n};\n\nfunction PlannerComponent_ng_template_6_ng_template_5_Template(rf, ctx) {\n  if (rf & 1) {\n    const _r9 = i0.ɵɵgetCurrentView();\n\n    i0.ɵɵelementStart(0, \"button\", 10);\n    i0.ɵɵlistener(\"click\", function PlannerComponent_ng_template_6_ng_template_5_Template_button_click_0_listener() {\n      i0.ɵɵrestoreView(_r9);\n      const planner_r4 = i0.ɵɵnextContext().$implicit;\n      const ctx_r7 = i0.ɵɵnextContext();\n      return ctx_r7.onClickEditPlannerGet(planner_r4.id);\n    });\n    i0.ɵɵelementEnd();\n    i0.ɵɵelement(1, \"button\", 11);\n  }\n\n  if (rf & 2) {\n    i0.ɵɵadvance(1);\n    i0.ɵɵstyleMap(i0.ɵɵpureFunction0(2, _c0));\n  }\n}\n\nconst _c1 = function () {\n  return {\n    width: \"360px\"\n  };\n};\n\nfunction PlannerComponent_ng_template_6_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelementStart(0, \"td\");\n    i0.ɵɵelementStart(1, \"p-card\", 7);\n    i0.ɵɵtemplate(2, PlannerComponent_ng_template_6_ng_template_2_Template, 0, 0, \"ng-template\", 8);\n    i0.ɵɵelementStart(3, \"p\");\n    i0.ɵɵtext(4);\n    i0.ɵɵelementEnd();\n    i0.ɵɵtemplate(5, PlannerComponent_ng_template_6_ng_template_5_Template, 2, 3, \"ng-template\", 9);\n    i0.ɵɵelementEnd();\n    i0.ɵɵelementEnd();\n  }\n\n  if (rf & 2) {\n    const planner_r4 = ctx.$implicit;\n    i0.ɵɵadvance(1);\n    i0.ɵɵstyleMap(i0.ɵɵpureFunction0(4, _c1));\n    i0.ɵɵpropertyInterpolate(\"header\", planner_r4.name);\n    i0.ɵɵadvance(3);\n    i0.ɵɵtextInterpolate(planner_r4.description);\n  }\n}\n\nfunction PlannerComponent_div_7_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelementStart(0, \"div\");\n    i0.ɵɵelementStart(1, \"span\", 12);\n    i0.ɵɵtext(2);\n    i0.ɵɵelementEnd();\n    i0.ɵɵelementEnd();\n  }\n\n  if (rf & 2) {\n    const ctx_r1 = i0.ɵɵnextContext();\n    i0.ɵɵadvance(2);\n    i0.ɵɵtextInterpolate(ctx_r1.userDisplayName);\n  }\n}\n\nfunction PlannerComponent_ng_template_9_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelementStart(0, \"div\");\n    i0.ɵɵelementStart(1, \"span\");\n    i0.ɵɵtext(2);\n    i0.ɵɵelementEnd();\n    i0.ɵɵelementEnd();\n  }\n\n  if (rf & 2) {\n    const ctx_r3 = i0.ɵɵnextContext();\n    i0.ɵɵadvance(2);\n    i0.ɵɵtextInterpolate(ctx_r3.userDisplayName);\n  }\n}\n\nexport class PlannerComponent {\n  constructor(plannerService, router, dialogService, primengConfig, messageService, userService) {\n    this.plannerService = plannerService;\n    this.router = router;\n    this.dialogService = dialogService;\n    this.primengConfig = primengConfig;\n    this.messageService = messageService;\n    this.userService = userService;\n    this.planners = [];\n    this.plannerDto = new PlannerDto();\n    this.ref = new DynamicDialogRef();\n    this.user = new UserDto();\n  }\n\n  ngOnInit() {\n    this.primengConfig.ripple = true;\n    let userDisplayName = sessionStorage.getItem(\"username\");\n    this.plannerService.getAllPlanners().subscribe(data => {\n      this.planners = data;\n    });\n  }\n\n  onClickEditPlannerGet(id) {\n    console.log(id);\n    this.plannerService.getPlannerById(id).subscribe(data => {\n      this.router.navigate(['edit/planner/', id]);\n    });\n  }\n\n  show() {\n    this.ref = this.dialogService.open(CreateInitialPlannerComponent, {\n      header: 'Create initial planner',\n      width: '70%',\n      contentStyle: {\n        \"max-height\": \"500px\",\n        \"overflow\": \"auto\"\n      },\n      baseZIndex: 10000\n    });\n    this.ref.onClose.subscribe(planner => {\n      console.log(\"NOVOKREIRANIOT NAME NA PLANNER: \" + planner.name);\n      this.plannerService.postInitialPlanner(planner).subscribe(data => {\n        console.log(data);\n      }, error => console.log('oops', error));\n      this.messageService.add({\n        severity: 'success',\n        summary: 'The planner: ' + planner.name + ' has been created.'\n      });\n    });\n  }\n\n}\n\nPlannerComponent.ɵfac = function PlannerComponent_Factory(t) {\n  return new (t || PlannerComponent)(i0.ɵɵdirectiveInject(i1.PlannerService), i0.ɵɵdirectiveInject(i2.Router), i0.ɵɵdirectiveInject(i3.DialogService), i0.ɵɵdirectiveInject(i4.PrimeNGConfig), i0.ɵɵdirectiveInject(i4.MessageService), i0.ɵɵdirectiveInject(i5.UserService));\n};\n\nPlannerComponent.ɵcmp = /*@__PURE__*/i0.ɵɵdefineComponent({\n  type: PlannerComponent,\n  selectors: [[\"app-planner\"]],\n  features: [i0.ɵɵProvidersFeature([DialogService, MessageService])],\n  decls: 11,\n  vars: 8,\n  consts: [[\"href\", \"https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/css/bootstrap.min.css\", \"rel\", \"stylesheet\", \"integrity\", \"sha384-+0n0xVW2eSR5OomGNYDnhzAbDsOXxcvSN1TPprVMTNDbiYZCxYbOOl7+AMvyTG2x\", \"crossorigin\", \"anonymous\"], [\"pButton\", \"\", \"pRipple\", \"\", \"type\", \"button\", \"label\", \"Create initial planner\", 1, \"p-button-help\", 3, \"click\"], [3, \"value\", \"paginator\", \"rows\", \"responsive\"], [\"pTemplate\", \"body\"], [4, \"ngIf\"], [3, \"ngTemplateOutlet\"], [\"selfie\", \"\"], [\"subheader\", \"Card Subheader\", \"styleClass\", \"p-card-shadow\", 3, \"header\"], [\"pTemplate\", \"header\"], [\"pTemplate\", \"footer\"], [\"pButton\", \"\", \"pRipple\", \"\", \"type\", \"button\", \"label\", \"Edit\", 1, \"p-button-outlined\", \"p-button-rounded\", \"p-button-help\", 3, \"click\"], [\"pButton\", \"\", \"pRipple\", \"\", \"type\", \"button\", \"icon\", \"pi pi-times\", \"label\", \"Delete\", 1, \"p-button-rounded\", \"p-button-danger\", \"p-button-outlined\"], [1, \"text-warn\"]],\n  template: function PlannerComponent_Template(rf, ctx) {\n    if (rf & 1) {\n      i0.ɵɵelement(0, \"link\", 0);\n      i0.ɵɵelement(1, \"p-toast\");\n      i0.ɵɵelementStart(2, \"button\", 1);\n      i0.ɵɵlistener(\"click\", function PlannerComponent_Template_button_click_2_listener() {\n        return ctx.show();\n      });\n      i0.ɵɵelementEnd();\n      i0.ɵɵelement(3, \"br\");\n      i0.ɵɵelement(4, \"br\");\n      i0.ɵɵelementStart(5, \"p-table\", 2);\n      i0.ɵɵtemplate(6, PlannerComponent_ng_template_6_Template, 6, 5, \"ng-template\", 3);\n      i0.ɵɵelementEnd();\n      i0.ɵɵtemplate(7, PlannerComponent_div_7_Template, 3, 1, \"div\", 4);\n      i0.ɵɵpipe(8, \"async\");\n      i0.ɵɵtemplate(9, PlannerComponent_ng_template_9_Template, 3, 1, \"ng-template\", 5, 6, i0.ɵɵtemplateRefExtractor);\n    }\n\n    if (rf & 2) {\n      const _r2 = i0.ɵɵreference(10);\n\n      i0.ɵɵadvance(5);\n      i0.ɵɵproperty(\"value\", ctx.planners)(\"paginator\", true)(\"rows\", 3)(\"responsive\", true);\n      i0.ɵɵadvance(2);\n      i0.ɵɵproperty(\"ngIf\", i0.ɵɵpipeBind1(8, 6, ctx.userDisplayName$));\n      i0.ɵɵadvance(2);\n      i0.ɵɵproperty(\"ngTemplateOutlet\", _r2);\n    }\n  },\n  directives: [i6.Toast, i7.ButtonDirective, i8.Ripple, i9.Table, i4.PrimeTemplate, i10.NgIf, i10.NgTemplateOutlet, i11.Card],\n  pipes: [i10.AsyncPipe],\n  styles: [\"mat-card[_ngcontent-%COMP%]  {   \\r\\n  width: 280px;   \\r\\n  height: 160px; \\r\\n\\r\\n}\\r\\n.example-card[_ngcontent-%COMP%]   button[_ngcontent-%COMP%] {\\r\\n  box-shadow:none !important;\\r\\n  cursor:pointer;\\r\\n}\\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInBsYW5uZXIuY29tcG9uZW50LmNzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNFLFlBQVk7RUFDWixhQUFhOztBQUVmO0FBQ0E7RUFDRSwwQkFBMEI7RUFDMUIsY0FBYztBQUNoQiIsImZpbGUiOiJwbGFubmVyLmNvbXBvbmVudC5jc3MiLCJzb3VyY2VzQ29udGVudCI6WyJtYXQtY2FyZCAgeyAgIFxyXG4gIHdpZHRoOiAyODBweDsgICBcclxuICBoZWlnaHQ6IDE2MHB4OyBcclxuXHJcbn1cclxuLmV4YW1wbGUtY2FyZCBidXR0b24ge1xyXG4gIGJveC1zaGFkb3c6bm9uZSAhaW1wb3J0YW50O1xyXG4gIGN1cnNvcjpwb2ludGVyO1xyXG59Il19 */\"]\n});","map":{"version":3,"sources":["C:/Users/DELL/Desktop/bachelor-thesis/trip-planner-front/src/app/planner/planner.component.ts"],"names":["CreateInitialPlannerComponent","PlannerDto","DialogService","DynamicDialogRef","MessageService","UserDto","i0","i1","i2","i3","i4","i5","i6","i7","i8","i9","i10","i11","PlannerComponent_ng_template_6_ng_template_2_Template","rf","ctx","_c0","PlannerComponent_ng_template_6_ng_template_5_Template","_r9","ɵɵgetCurrentView","ɵɵelementStart","ɵɵlistener","PlannerComponent_ng_template_6_ng_template_5_Template_button_click_0_listener","ɵɵrestoreView","planner_r4","ɵɵnextContext","$implicit","ctx_r7","onClickEditPlannerGet","id","ɵɵelementEnd","ɵɵelement","ɵɵadvance","ɵɵstyleMap","ɵɵpureFunction0","_c1","width","PlannerComponent_ng_template_6_Template","ɵɵtemplate","ɵɵtext","ɵɵpropertyInterpolate","name","ɵɵtextInterpolate","description","PlannerComponent_div_7_Template","ctx_r1","userDisplayName","PlannerComponent_ng_template_9_Template","ctx_r3","PlannerComponent","constructor","plannerService","router","dialogService","primengConfig","messageService","userService","planners","plannerDto","ref","user","ngOnInit","ripple","sessionStorage","getItem","getAllPlanners","subscribe","data","console","log","getPlannerById","navigate","show","open","header","contentStyle","baseZIndex","onClose","planner","postInitialPlanner","error","add","severity","summary","ɵfac","PlannerComponent_Factory","t","ɵɵdirectiveInject","PlannerService","Router","PrimeNGConfig","UserService","ɵcmp","ɵɵdefineComponent","type","selectors","features","ɵɵProvidersFeature","decls","vars","consts","template","PlannerComponent_Template","PlannerComponent_Template_button_click_2_listener","ɵɵpipe","ɵɵtemplateRefExtractor","_r2","ɵɵreference","ɵɵproperty","ɵɵpipeBind1","userDisplayName$","directives","Toast","ButtonDirective","Ripple","Table","PrimeTemplate","NgIf","NgTemplateOutlet","Card","pipes","AsyncPipe","styles"],"mappings":"AAAA,SAASA,6BAAT,QAA8C,4DAA9C;AACA,SAASC,UAAT,QAA2B,2BAA3B;AACA,SAASC,aAAT,EA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G,EAAE,CAACyG,eAAd,EAA+BxG,EAAE,CAACyG,MAAlC,EAA0CxG,EAAE,CAACyG,KAA7C,EAAoD9G,EAAE,CAAC+G,aAAvD,EAAsEzG,GAAG,CAAC0G,IAA1E,EAAgF1G,GAAG,CAAC2G,gBAApF,EAAsG1G,GAAG,CAAC2G,IAA1G,CAtBsC;AAsB2EC,EAAAA,KAAK,EAAE,CAAC7G,GAAG,CAAC8G,SAAL,CAtBlF;AAsBmGC,EAAAA,MAAM,EAAE,CAAC,mtBAAD;AAtB3G,CAArB,CAAtC","sourcesContent":["import { CreateInitialPlannerComponent } from '../create-initial-planner/create-initial-planner.component';\r\nimport { PlannerDto } from '../_models/dto/plannerDto';\r\nimport { DialogService, DynamicDialogRef } from 'primeng/dynamicdialog';\r\nimport { MessageService } from 'primeng/api';\r\nimport { UserDto } from '../_models/dto/userDto';\r\nimport * as i0 from \"@angular/core\";\r\nimport * as i1 from \"../_services/planner.service\";\r\nimport * as i2 from \"@angular/router\";\r\nimport * as i3 from \"primeng/dynamicdialog\";\r\nimport * as i4 from \"primeng/api\";\r\nimport * as i5 from \"../_services/user.service\";\r\nimport * as i6 from \"primeng/toast\";\r\nimport * as i7 from \"primeng/button\";\r\nimport * as i8 from \"primeng/ripple\";\r\nimport * as i9 from \"primeng/table\";\r\nimport * as i10 from \"@angular/common\";\r\nimport * as i11 from \"primeng/card\";\r\nfunction PlannerComponent_ng_template_6_ng_template_2_Template(rf, ctx) { }\r\nconst _c0 = function () { return { \"margin-left\": \".5em\" }; };\r\nfunction PlannerComponent_ng_template_6_ng_template_5_Template(rf, ctx) { if (rf & 1) {\r\n    const _r9 = i0.ɵɵgetCurrentView();\r\n    i0.ɵɵelementStart(0, \"button\", 10);\r\n    i0.ɵɵlistener(\"click\", function PlannerComponent_ng_template_6_ng_template_5_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r9); const planner_r4 = i0.ɵɵnextContext().$implicit; const ctx_r7 = i0.ɵɵnextContext(); return ctx_r7.onClickEditPlannerGet(planner_r4.id); });\r\n    i0.ɵɵelementEnd();\r\n    i0.ɵɵelement(1, \"button\", 11);\r\n} if (rf & 2) {\r\n    i0.ɵɵadvance(1);\r\n    i0.ɵɵstyleMap(i0.ɵɵpureFunction0(2, _c0));\r\n} }\r\nconst _c1 = function () { return { width: \"360px\" }; };\r\nfunction PlannerComponent_ng_template_6_Template(rf, ctx) { if (rf & 1) {\r\n    i0.ɵɵelementStart(0, \"td\");\r\n    i0.ɵɵelementStart(1, \"p-card\", 7);\r\n    i0.ɵɵtemplate(2, PlannerComponent_ng_template_6_ng_template_2_Template, 0, 0, \"ng-template\", 8);\r\n    i0.ɵɵelementStart(3, \"p\");\r\n    i0.ɵɵtext(4);\r\n    i0.ɵɵelementEnd();\r\n    i0.ɵɵtemplate(5, PlannerComponent_ng_template_6_ng_template_5_Template, 2, 3, \"ng-template\", 9);\r\n    i0.ɵɵelementEnd();\r\n    i0.ɵɵelementEnd();\r\n} if (rf & 2) {\r\n    const planner_r4 = ctx.$implicit;\r\n    i0.ɵɵadvance(1);\r\n    i0.ɵɵstyleMap(i0.ɵɵpureFunction0(4, _c1));\r\n    i0.ɵɵpropertyInterpolate(\"header\", planner_r4.name);\r\n    i0.ɵɵadvance(3);\r\n    i0.ɵɵtextInterpolate(planner_r4.description);\r\n} }\r\nfunction PlannerComponent_div_7_Template(rf, ctx) { if (rf & 1) {\r\n    i0.ɵɵelementStart(0, \"div\");\r\n    i0.ɵɵelementStart(1, \"span\", 12);\r\n    i0.ɵɵtext(2);\r\n    i0.ɵɵelementEnd();\r\n    i0.ɵɵelementEnd();\r\n} if (rf & 2) {\r\n    const ctx_r1 = i0.ɵɵnextContext();\r\n    i0.ɵɵadvance(2);\r\n    i0.ɵɵtextInterpolate(ctx_r1.userDisplayName);\r\n} }\r\nfunction PlannerComponent_ng_template_9_Template(rf, ctx) { if (rf & 1) {\r\n    i0.ɵɵelementStart(0, \"div\");\r\n    i0.ɵɵelementStart(1, \"span\");\r\n    i0.ɵɵtext(2);\r\n    i0.ɵɵelementEnd();\r\n    i0.ɵɵelementEnd();\r\n} if (rf & 2) {\r\n    const ctx_r3 = i0.ɵɵnextContext();\r\n    i0.ɵɵadvance(2);\r\n    i0.ɵɵtextInterpolate(ctx_r3.userDisplayName);\r\n} }\r\nexport class PlannerComponent {\r\n    constructor(plannerService, router, dialogService, primengConfig, messageService, userService) {\r\n        this.plannerService = plannerService;\r\n        this.router = router;\r\n        this.dialogService = dialogService;\r\n        this.primengConfig = primengConfig;\r\n        this.messageService = messageService;\r\n        this.userService = userService;\r\n        this.planners = [];\r\n        this.plannerDto = new PlannerDto();\r\n        this.ref = new DynamicDialogRef;\r\n        this.user = new UserDto();\r\n    }\r\n    ngOnInit() {\r\n        this.primengConfig.ripple = true;\r\n        let userDisplayName = sessionStorage.getItem(\"username\");\r\n        this.plannerService.getAllPlanners().subscribe(data => {\r\n            this.planners = data;\r\n        });\r\n    }\r\n    onClickEditPlannerGet(id) {\r\n        console.log(id);\r\n        this.plannerService.getPlannerById(id).subscribe(data => {\r\n            this.router.navigate(['edit/planner/', id]);\r\n        });\r\n    }\r\n    show() {\r\n        this.ref = this.dialogService.open(CreateInitialPlannerComponent, {\r\n            header: 'Create initial planner',\r\n            width: '70%',\r\n            contentStyle: { \"max-height\": \"500px\", \"overflow\": \"auto\" },\r\n            baseZIndex: 10000\r\n        });\r\n        this.ref.onClose.subscribe((planner) => {\r\n            console.log(\"NOVOKREIRANIOT NAME NA PLANNER: \" + planner.name);\r\n            this.plannerService.postInitialPlanner(planner).subscribe(data => {\r\n                console.log(data);\r\n            }, error => console.log('oops', error));\r\n            this.messageService.add({ severity: 'success', summary: 'The planner: ' + planner.name + ' has been created.' });\r\n        });\r\n    }\r\n}\r\nPlannerComponent.ɵfac = function PlannerComponent_Factory(t) { return new (t || PlannerComponent)(i0.ɵɵdirectiveInject(i1.PlannerService), i0.ɵɵdirectiveInject(i2.Router), i0.ɵɵdirectiveInject(i3.DialogService), i0.ɵɵdirectiveInject(i4.PrimeNGConfig), i0.ɵɵdirectiveInject(i4.MessageService), i0.ɵɵdirectiveInject(i5.UserService)); };\r\nPlannerComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PlannerComponent, selectors: [[\"app-planner\"]], features: [i0.ɵɵProvidersFeature([DialogService, MessageService])], decls: 11, vars: 8, consts: [[\"href\", \"https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/css/bootstrap.min.css\", \"rel\", \"stylesheet\", \"integrity\", \"sha384-+0n0xVW2eSR5OomGNYDnhzAbDsOXxcvSN1TPprVMTNDbiYZCxYbOOl7+AMvyTG2x\", \"crossorigin\", \"anonymous\"], [\"pButton\", \"\", \"pRipple\", \"\", \"type\", \"button\", \"label\", \"Create initial planner\", 1, \"p-button-help\", 3, \"click\"], [3, \"value\", \"paginator\", \"rows\", \"responsive\"], [\"pTemplate\", \"body\"], [4, \"ngIf\"], [3, \"ngTemplateOutlet\"], [\"selfie\", \"\"], [\"subheader\", \"Card Subheader\", \"styleClass\", \"p-card-shadow\", 3, \"header\"], [\"pTemplate\", \"header\"], [\"pTemplate\", \"footer\"], [\"pButton\", \"\", \"pRipple\", \"\", \"type\", \"button\", \"label\", \"Edit\", 1, \"p-button-outlined\", \"p-button-rounded\", \"p-button-help\", 3, \"click\"], [\"pButton\", \"\", \"pRipple\", \"\", \"type\", \"button\", \"icon\", \"pi pi-times\", \"label\", \"Delete\", 1, \"p-button-rounded\", \"p-button-danger\", \"p-button-outlined\"], [1, \"text-warn\"]], template: function PlannerComponent_Template(rf, ctx) { if (rf & 1) {\r\n        i0.ɵɵelement(0, \"link\", 0);\r\n        i0.ɵɵelement(1, \"p-toast\");\r\n        i0.ɵɵelementStart(2, \"button\", 1);\r\n        i0.ɵɵlistener(\"click\", function PlannerComponent_Template_button_click_2_listener() { return ctx.show(); });\r\n        i0.ɵɵelementEnd();\r\n        i0.ɵɵelement(3, \"br\");\r\n        i0.ɵɵelement(4, \"br\");\r\n        i0.ɵɵelementStart(5, \"p-table\", 2);\r\n        i0.ɵɵtemplate(6, PlannerComponent_ng_template_6_Template, 6, 5, \"ng-template\", 3);\r\n        i0.ɵɵelementEnd();\r\n        i0.ɵɵtemplate(7, PlannerComponent_div_7_Template, 3, 1, \"div\", 4);\r\n        i0.ɵɵpipe(8, \"async\");\r\n        i0.ɵɵtemplate(9, PlannerComponent_ng_template_9_Template, 3, 1, \"ng-template\", 5, 6, i0.ɵɵtemplateRefExtractor);\r\n    } if (rf & 2) {\r\n        const _r2 = i0.ɵɵreference(10);\r\n        i0.ɵɵadvance(5);\r\n        i0.ɵɵproperty(\"value\", ctx.planners)(\"paginator\", true)(\"rows\", 3)(\"responsive\", true);\r\n        i0.ɵɵadvance(2);\r\n        i0.ɵɵproperty(\"ngIf\", i0.ɵɵpipeBind1(8, 6, ctx.userDisplayName$));\r\n        i0.ɵɵadvance(2);\r\n        i0.ɵɵproperty(\"ngTemplateOutlet\", _r2);\r\n    } }, directives: [i6.Toast, i7.ButtonDirective, i8.Ripple, i9.Table, i4.PrimeTemplate, i10.NgIf, i10.NgTemplateOutlet, i11.Card], pipes: [i10.AsyncPipe], styles: [\"mat-card[_ngcontent-%COMP%]  {   \\r\\n  width: 280px;   \\r\\n  height: 160px; \\r\\n\\r\\n}\\r\\n.example-card[_ngcontent-%COMP%]   button[_ngcontent-%COMP%] {\\r\\n  box-shadow:none !important;\\r\\n  cursor:pointer;\\r\\n}\\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInBsYW5uZXIuY29tcG9uZW50LmNzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNFLFlBQVk7RUFDWixhQUFhOztBQUVmO0FBQ0E7RUFDRSwwQkFBMEI7RUFDMUIsY0FBYztBQUNoQiIsImZpbGUiOiJwbGFubmVyLmNvbXBvbmVudC5jc3MiLCJzb3VyY2VzQ29udGVudCI6WyJtYXQtY2FyZCAgeyAgIFxyXG4gIHdpZHRoOiAyODBweDsgICBcclxuICBoZWlnaHQ6IDE2MHB4OyBcclxuXHJcbn1cclxuLmV4YW1wbGUtY2FyZCBidXR0b24ge1xyXG4gIGJveC1zaGFkb3c6bm9uZSAhaW1wb3J0YW50O1xyXG4gIGN1cnNvcjpwb2ludGVyO1xyXG59Il19 */\"] });\r\n"]},"metadata":{},"sourceType":"module"}
Index: trip-planner-front/node_modules/.cache/babel-webpack/17b9daa6828e852071973070b52be364.json
===================================================================
--- trip-planner-front/node_modules/.cache/babel-webpack/17b9daa6828e852071973070b52be364.json	(revision bdd64917749115bbdd228a9569a675d590c112e3)
+++ trip-planner-front/node_modules/.cache/babel-webpack/17b9daa6828e852071973070b52be364.json	(revision bdd64917749115bbdd228a9569a675d590c112e3)
@@ -0,0 +1,1 @@
+{"ast":null,"code":"import { CreateInitialPlannerComponent } from '../create-initial-planner/create-initial-planner.component';\nimport { PlannerDto } from '../_models/dto/plannerDto';\nimport { DialogService, DynamicDialogRef } from 'primeng/dynamicdialog';\nimport { MessageService } from 'primeng/api';\nimport { UserDto } from '../_models/dto/userDto';\nimport * as i0 from \"@angular/core\";\nimport * as i1 from \"../_services/planner.service\";\nimport * as i2 from \"@angular/router\";\nimport * as i3 from \"primeng/dynamicdialog\";\nimport * as i4 from \"primeng/api\";\nimport * as i5 from \"../_services/user.service\";\nimport * as i6 from \"primeng/toast\";\nimport * as i7 from \"primeng/button\";\nimport * as i8 from \"primeng/ripple\";\nimport * as i9 from \"primeng/table\";\nimport * as i10 from \"@angular/common\";\nimport * as i11 from \"primeng/card\";\n\nfunction PlannerComponent_ng_template_6_ng_template_2_Template(rf, ctx) {}\n\nconst _c0 = function () {\n  return {\n    \"margin-left\": \".5em\"\n  };\n};\n\nfunction PlannerComponent_ng_template_6_ng_template_5_Template(rf, ctx) {\n  if (rf & 1) {\n    const _r7 = i0.ɵɵgetCurrentView();\n\n    i0.ɵɵelementStart(0, \"button\", 8);\n    i0.ɵɵlistener(\"click\", function PlannerComponent_ng_template_6_ng_template_5_Template_button_click_0_listener() {\n      i0.ɵɵrestoreView(_r7);\n      const planner_r2 = i0.ɵɵnextContext().$implicit;\n      const ctx_r5 = i0.ɵɵnextContext();\n      return ctx_r5.onClickEditPlannerGet(planner_r2.id);\n    });\n    i0.ɵɵelementEnd();\n    i0.ɵɵelement(1, \"button\", 9);\n  }\n\n  if (rf & 2) {\n    i0.ɵɵadvance(1);\n    i0.ɵɵstyleMap(i0.ɵɵpureFunction0(2, _c0));\n  }\n}\n\nconst _c1 = function () {\n  return {\n    width: \"360px\"\n  };\n};\n\nfunction PlannerComponent_ng_template_6_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelementStart(0, \"td\");\n    i0.ɵɵelementStart(1, \"p-card\", 5);\n    i0.ɵɵtemplate(2, PlannerComponent_ng_template_6_ng_template_2_Template, 0, 0, \"ng-template\", 6);\n    i0.ɵɵelementStart(3, \"p\");\n    i0.ɵɵtext(4);\n    i0.ɵɵelementEnd();\n    i0.ɵɵtemplate(5, PlannerComponent_ng_template_6_ng_template_5_Template, 2, 3, \"ng-template\", 7);\n    i0.ɵɵelementEnd();\n    i0.ɵɵelementEnd();\n  }\n\n  if (rf & 2) {\n    const planner_r2 = ctx.$implicit;\n    i0.ɵɵadvance(1);\n    i0.ɵɵstyleMap(i0.ɵɵpureFunction0(4, _c1));\n    i0.ɵɵpropertyInterpolate(\"header\", planner_r2.name);\n    i0.ɵɵadvance(3);\n    i0.ɵɵtextInterpolate(planner_r2.description);\n  }\n}\n\nfunction PlannerComponent_div_7_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelementStart(0, \"div\");\n    i0.ɵɵelementStart(1, \"span\", 10);\n    i0.ɵɵtext(2);\n    i0.ɵɵelementEnd();\n    i0.ɵɵelementEnd();\n  }\n\n  if (rf & 2) {\n    const ctx_r1 = i0.ɵɵnextContext();\n    i0.ɵɵadvance(2);\n    i0.ɵɵtextInterpolate(ctx_r1.userDisplayName);\n  }\n}\n\nexport class PlannerComponent {\n  constructor(plannerService, router, dialogService, primengConfig, messageService, userService) {\n    this.plannerService = plannerService;\n    this.router = router;\n    this.dialogService = dialogService;\n    this.primengConfig = primengConfig;\n    this.messageService = messageService;\n    this.userService = userService;\n    this.planners = [];\n    this.plannerDto = new PlannerDto();\n    this.ref = new DynamicDialogRef();\n    this.user = new UserDto();\n  }\n\n  ngOnInit() {\n    this.primengConfig.ripple = true;\n    let userDisplayName = sessionStorage.getItem(\"username\");\n    this.plannerService.getAllPlanners().subscribe(data => {\n      this.planners = data;\n    });\n  }\n\n  onClickEditPlannerGet(id) {\n    console.log(id);\n    this.plannerService.getPlannerById(id).subscribe(data => {\n      this.router.navigate(['edit/planner/', id]);\n    });\n  }\n\n  show() {\n    this.ref = this.dialogService.open(CreateInitialPlannerComponent, {\n      header: 'Create initial planner',\n      width: '70%',\n      contentStyle: {\n        \"max-height\": \"500px\",\n        \"overflow\": \"auto\"\n      },\n      baseZIndex: 10000\n    });\n    this.ref.onClose.subscribe(planner => {\n      console.log(\"NOVOKREIRANIOT NAME NA PLANNER: \" + planner.name);\n      this.plannerService.postInitialPlanner(planner).subscribe(data => {\n        console.log(data);\n      }, error => console.log('oops', error));\n      this.messageService.add({\n        severity: 'success',\n        summary: 'The planner: ' + planner.name + ' has been created.'\n      });\n    });\n  }\n\n}\n\nPlannerComponent.ɵfac = function PlannerComponent_Factory(t) {\n  return new (t || PlannerComponent)(i0.ɵɵdirectiveInject(i1.PlannerService), i0.ɵɵdirectiveInject(i2.Router), i0.ɵɵdirectiveInject(i3.DialogService), i0.ɵɵdirectiveInject(i4.PrimeNGConfig), i0.ɵɵdirectiveInject(i4.MessageService), i0.ɵɵdirectiveInject(i5.UserService));\n};\n\nPlannerComponent.ɵcmp = /*@__PURE__*/i0.ɵɵdefineComponent({\n  type: PlannerComponent,\n  selectors: [[\"app-planner\"]],\n  features: [i0.ɵɵProvidersFeature([DialogService, MessageService])],\n  decls: 9,\n  vars: 7,\n  consts: [[\"href\", \"https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/css/bootstrap.min.css\", \"rel\", \"stylesheet\", \"integrity\", \"sha384-+0n0xVW2eSR5OomGNYDnhzAbDsOXxcvSN1TPprVMTNDbiYZCxYbOOl7+AMvyTG2x\", \"crossorigin\", \"anonymous\"], [\"pButton\", \"\", \"pRipple\", \"\", \"type\", \"button\", \"label\", \"Create initial planner\", 1, \"p-button-help\", 3, \"click\"], [3, \"value\", \"paginator\", \"rows\", \"responsive\"], [\"pTemplate\", \"body\"], [4, \"ngIf\"], [\"subheader\", \"Card Subheader\", \"styleClass\", \"p-card-shadow\", 3, \"header\"], [\"pTemplate\", \"header\"], [\"pTemplate\", \"footer\"], [\"pButton\", \"\", \"pRipple\", \"\", \"type\", \"button\", \"label\", \"Edit\", 1, \"p-button-outlined\", \"p-button-rounded\", \"p-button-help\", 3, \"click\"], [\"pButton\", \"\", \"pRipple\", \"\", \"type\", \"button\", \"icon\", \"pi pi-times\", \"label\", \"Delete\", 1, \"p-button-rounded\", \"p-button-danger\", \"p-button-outlined\"], [1, \"text-warn\"]],\n  template: function PlannerComponent_Template(rf, ctx) {\n    if (rf & 1) {\n      i0.ɵɵelement(0, \"link\", 0);\n      i0.ɵɵelement(1, \"p-toast\");\n      i0.ɵɵelementStart(2, \"button\", 1);\n      i0.ɵɵlistener(\"click\", function PlannerComponent_Template_button_click_2_listener() {\n        return ctx.show();\n      });\n      i0.ɵɵelementEnd();\n      i0.ɵɵelement(3, \"br\");\n      i0.ɵɵelement(4, \"br\");\n      i0.ɵɵelementStart(5, \"p-table\", 2);\n      i0.ɵɵtemplate(6, PlannerComponent_ng_template_6_Template, 6, 5, \"ng-template\", 3);\n      i0.ɵɵelementEnd();\n      i0.ɵɵtemplate(7, PlannerComponent_div_7_Template, 3, 1, \"div\", 4);\n      i0.ɵɵpipe(8, \"async\");\n    }\n\n    if (rf & 2) {\n      i0.ɵɵadvance(5);\n      i0.ɵɵproperty(\"value\", ctx.planners)(\"paginator\", true)(\"rows\", 3)(\"responsive\", true);\n      i0.ɵɵadvance(2);\n      i0.ɵɵproperty(\"ngIf\", i0.ɵɵpipeBind1(8, 5, ctx.userDisplayName$));\n    }\n  },\n  directives: [i6.Toast, i7.ButtonDirective, i8.Ripple, i9.Table, i4.PrimeTemplate, i10.NgIf, i11.Card],\n  pipes: [i10.AsyncPipe],\n  styles: [\"mat-card[_ngcontent-%COMP%]  {   \\r\\n  width: 280px;   \\r\\n  height: 160px; \\r\\n\\r\\n}\\r\\n.example-card[_ngcontent-%COMP%]   button[_ngcontent-%COMP%] {\\r\\n  box-shadow:none !important;\\r\\n  cursor:pointer;\\r\\n}\\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInBsYW5uZXIuY29tcG9uZW50LmNzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNFLFlBQVk7RUFDWixhQUFhOztBQUVmO0FBQ0E7RUFDRSwwQkFBMEI7RUFDMUIsY0FBYztBQUNoQiIsImZpbGUiOiJwbGFubmVyLmNvbXBvbmVudC5jc3MiLCJzb3VyY2VzQ29udGVudCI6WyJtYXQtY2FyZCAgeyAgIFxyXG4gIHdpZHRoOiAyODBweDsgICBcclxuICBoZWlnaHQ6IDE2MHB4OyBcclxuXHJcbn1cclxuLmV4YW1wbGUtY2FyZCBidXR0b24ge1xyXG4gIGJveC1zaGFkb3c6bm9uZSAhaW1wb3J0YW50O1xyXG4gIGN1cnNvcjpwb2ludGVyO1xyXG59Il19 */\"]\n});","map":{"version":3,"sources":["C:/Users/DELL/Desktop/bachelor-thesis/trip-planner-front/src/app/planner/planner.component.ts"],"names":["CreateInitialPlannerComponent","PlannerDto","DialogService","DynamicDialogRef","MessageService","UserDto","i0","i1","i2","i3","i4","i5","i6","i7","i8","i9","i10","i11","PlannerComponent_ng_template_6_ng_template_2_Template","rf","ctx","_c0","PlannerComponent_ng_template_6_ng_template_5_Template","_r7","ɵɵgetCurrentView","ɵɵelementStart","ɵɵlistener","PlannerComponent_ng_template_6_ng_template_5_Template_button_click_0_listener","ɵɵrestoreView","planner_r2","ɵɵnextContext","$implicit","ctx_r5","onClickEditPlannerGet","id","ɵɵelementEnd","ɵɵelement","ɵɵadvance","ɵɵstyleMap","ɵɵpureFunction0","_c1","width","PlannerComponent_ng_template_6_Template","ɵɵtemplate","ɵɵtext","ɵɵpropertyInterpolate","name","ɵɵtextInterpolate","description","PlannerComponent_div_7_Template","ctx_r1","userDisplayName","PlannerComponent","constructor","plannerService","router","dialogService","primengConfig","messageService","userService","planners","plannerDto","ref","user","ngOnInit","ripple","sessionStorage","getItem","getAllPlanners","subscribe","data","console","log","getPlannerById","navigate","show","open","header","contentStyle","baseZIndex","onClose","planner","postInitialPlanner","error","add","severity","summary","ɵfac","PlannerComponent_Factory","t","ɵɵdirectiveInject","PlannerService","Router","PrimeNGConfig","UserService","ɵcmp","ɵɵdefineComponent","type","selectors","features","ɵɵProvidersFeature","decls","vars","consts","template","PlannerComponent_Template","PlannerComponent_Template_button_click_2_listener","ɵɵpipe","ɵɵproperty","ɵɵpipeBind1","userDisplayName$","directives","Toast","ButtonDirective","Ripple","Table","PrimeTemplate","NgIf","Card","pipes","AsyncPipe","styles"],"mappings":"AAAA,SAASA,6BAAT,QAA8C,4DAA9C;AACA,SAASC,UAAT,QAA2B,2BAA3B;AACA,SAASC,aAAT,EAAwBC,gBAAxB,QAAgD,uBAAhD;AACA,SAASC,cAAT,QAA+B,aAA/B;AACA,SAASC,OAAT,QAAwB,wBAAxB;AACA,OAAO,KAAKC,EAAZ,MAAoB,eAApB;AACA,OAAO,KAAKC,EAAZ,MAAoB,8BAApB;AACA,OAAO,KAAKC,EAAZ,MAAoB,iBAApB;AACA,OAAO,KAAKC,EAAZ,MAAoB,uBAApB;AACA,OAAO,KAAKC,EAAZ,MAAoB,aAApB;AACA,OAAO,KAAKC,EAAZ,MAAoB,2BAApB;AACA,OAAO,KAAKC,EAA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vD,EAAsEpG,GAAG,CAACqG,IAA1E,EAAgFpG,GAAG,CAACqG,IAApF,CAlBsC;AAkBqDC,EAAAA,KAAK,EAAE,CAACvG,GAAG,CAACwG,SAAL,CAlB5D;AAkB6EC,EAAAA,MAAM,EAAE,CAAC,mtBAAD;AAlBrF,CAArB,CAAtC","sourcesContent":["import { CreateInitialPlannerComponent } from '../create-initial-planner/create-initial-planner.component';\r\nimport { PlannerDto } from '../_models/dto/plannerDto';\r\nimport { DialogService, DynamicDialogRef } from 'primeng/dynamicdialog';\r\nimport { MessageService } from 'primeng/api';\r\nimport { UserDto } from '../_models/dto/userDto';\r\nimport * as i0 from \"@angular/core\";\r\nimport * as i1 from \"../_services/planner.service\";\r\nimport * as i2 from \"@angular/router\";\r\nimport * as i3 from \"primeng/dynamicdialog\";\r\nimport * as i4 from \"primeng/api\";\r\nimport * as i5 from \"../_services/user.service\";\r\nimport * as i6 from \"primeng/toast\";\r\nimport * as i7 from \"primeng/button\";\r\nimport * as i8 from \"primeng/ripple\";\r\nimport * as i9 from \"primeng/table\";\r\nimport * as i10 from \"@angular/common\";\r\nimport * as i11 from \"primeng/card\";\r\nfunction PlannerComponent_ng_template_6_ng_template_2_Template(rf, ctx) { }\r\nconst _c0 = function () { return { \"margin-left\": \".5em\" }; };\r\nfunction PlannerComponent_ng_template_6_ng_template_5_Template(rf, ctx) { if (rf & 1) {\r\n    const _r7 = i0.ɵɵgetCurrentView();\r\n    i0.ɵɵelementStart(0, \"button\", 8);\r\n    i0.ɵɵlistener(\"click\", function PlannerComponent_ng_template_6_ng_template_5_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r7); const planner_r2 = i0.ɵɵnextContext().$implicit; const ctx_r5 = i0.ɵɵnextContext(); return ctx_r5.onClickEditPlannerGet(planner_r2.id); });\r\n    i0.ɵɵelementEnd();\r\n    i0.ɵɵelement(1, \"button\", 9);\r\n} if (rf & 2) {\r\n    i0.ɵɵadvance(1);\r\n    i0.ɵɵstyleMap(i0.ɵɵpureFunction0(2, _c0));\r\n} }\r\nconst _c1 = function () { return { width: \"360px\" }; };\r\nfunction PlannerComponent_ng_template_6_Template(rf, ctx) { if (rf & 1) {\r\n    i0.ɵɵelementStart(0, \"td\");\r\n    i0.ɵɵelementStart(1, \"p-card\", 5);\r\n    i0.ɵɵtemplate(2, PlannerComponent_ng_template_6_ng_template_2_Template, 0, 0, \"ng-template\", 6);\r\n    i0.ɵɵelementStart(3, \"p\");\r\n    i0.ɵɵtext(4);\r\n    i0.ɵɵelementEnd();\r\n    i0.ɵɵtemplate(5, PlannerComponent_ng_template_6_ng_template_5_Template, 2, 3, \"ng-template\", 7);\r\n    i0.ɵɵelementEnd();\r\n    i0.ɵɵelementEnd();\r\n} if (rf & 2) {\r\n    const planner_r2 = ctx.$implicit;\r\n    i0.ɵɵadvance(1);\r\n    i0.ɵɵstyleMap(i0.ɵɵpureFunction0(4, _c1));\r\n    i0.ɵɵpropertyInterpolate(\"header\", planner_r2.name);\r\n    i0.ɵɵadvance(3);\r\n    i0.ɵɵtextInterpolate(planner_r2.description);\r\n} }\r\nfunction PlannerComponent_div_7_Template(rf, ctx) { if (rf & 1) {\r\n    i0.ɵɵelementStart(0, \"div\");\r\n    i0.ɵɵelementStart(1, \"span\", 10);\r\n    i0.ɵɵtext(2);\r\n    i0.ɵɵelementEnd();\r\n    i0.ɵɵelementEnd();\r\n} if (rf & 2) {\r\n    const ctx_r1 = i0.ɵɵnextContext();\r\n    i0.ɵɵadvance(2);\r\n    i0.ɵɵtextInterpolate(ctx_r1.userDisplayName);\r\n} }\r\nexport class PlannerComponent {\r\n    constructor(plannerService, router, dialogService, primengConfig, messageService, userService) {\r\n        this.plannerService = plannerService;\r\n        this.router = router;\r\n        this.dialogService = dialogService;\r\n        this.primengConfig = primengConfig;\r\n        this.messageService = messageService;\r\n        this.userService = userService;\r\n        this.planners = [];\r\n        this.plannerDto = new PlannerDto();\r\n        this.ref = new DynamicDialogRef;\r\n        this.user = new UserDto();\r\n    }\r\n    ngOnInit() {\r\n        this.primengConfig.ripple = true;\r\n        let userDisplayName = sessionStorage.getItem(\"username\");\r\n        this.plannerService.getAllPlanners().subscribe(data => {\r\n            this.planners = data;\r\n        });\r\n    }\r\n    onClickEditPlannerGet(id) {\r\n        console.log(id);\r\n        this.plannerService.getPlannerById(id).subscribe(data => {\r\n            this.router.navigate(['edit/planner/', id]);\r\n        });\r\n    }\r\n    show() {\r\n        this.ref = this.dialogService.open(CreateInitialPlannerComponent, {\r\n            header: 'Create initial planner',\r\n            width: '70%',\r\n            contentStyle: { \"max-height\": \"500px\", \"overflow\": \"auto\" },\r\n            baseZIndex: 10000\r\n        });\r\n        this.ref.onClose.subscribe((planner) => {\r\n            console.log(\"NOVOKREIRANIOT NAME NA PLANNER: \" + planner.name);\r\n            this.plannerService.postInitialPlanner(planner).subscribe(data => {\r\n                console.log(data);\r\n            }, error => console.log('oops', error));\r\n            this.messageService.add({ severity: 'success', summary: 'The planner: ' + planner.name + ' has been created.' });\r\n        });\r\n    }\r\n}\r\nPlannerComponent.ɵfac = function PlannerComponent_Factory(t) { return new (t || PlannerComponent)(i0.ɵɵdirectiveInject(i1.PlannerService), i0.ɵɵdirectiveInject(i2.Router), i0.ɵɵdirectiveInject(i3.DialogService), i0.ɵɵdirectiveInject(i4.PrimeNGConfig), i0.ɵɵdirectiveInject(i4.MessageService), i0.ɵɵdirectiveInject(i5.UserService)); };\r\nPlannerComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PlannerComponent, selectors: [[\"app-planner\"]], features: [i0.ɵɵProvidersFeature([DialogService, MessageService])], decls: 9, vars: 7, consts: [[\"href\", \"https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/css/bootstrap.min.css\", \"rel\", \"stylesheet\", \"integrity\", \"sha384-+0n0xVW2eSR5OomGNYDnhzAbDsOXxcvSN1TPprVMTNDbiYZCxYbOOl7+AMvyTG2x\", \"crossorigin\", \"anonymous\"], [\"pButton\", \"\", \"pRipple\", \"\", \"type\", \"button\", \"label\", \"Create initial planner\", 1, \"p-button-help\", 3, \"click\"], [3, \"value\", \"paginator\", \"rows\", \"responsive\"], [\"pTemplate\", \"body\"], [4, \"ngIf\"], [\"subheader\", \"Card Subheader\", \"styleClass\", \"p-card-shadow\", 3, \"header\"], [\"pTemplate\", \"header\"], [\"pTemplate\", \"footer\"], [\"pButton\", \"\", \"pRipple\", \"\", \"type\", \"button\", \"label\", \"Edit\", 1, \"p-button-outlined\", \"p-button-rounded\", \"p-button-help\", 3, \"click\"], [\"pButton\", \"\", \"pRipple\", \"\", \"type\", \"button\", \"icon\", \"pi pi-times\", \"label\", \"Delete\", 1, \"p-button-rounded\", \"p-button-danger\", \"p-button-outlined\"], [1, \"text-warn\"]], template: function PlannerComponent_Template(rf, ctx) { if (rf & 1) {\r\n        i0.ɵɵelement(0, \"link\", 0);\r\n        i0.ɵɵelement(1, \"p-toast\");\r\n        i0.ɵɵelementStart(2, \"button\", 1);\r\n        i0.ɵɵlistener(\"click\", function PlannerComponent_Template_button_click_2_listener() { return ctx.show(); });\r\n        i0.ɵɵelementEnd();\r\n        i0.ɵɵelement(3, \"br\");\r\n        i0.ɵɵelement(4, \"br\");\r\n        i0.ɵɵelementStart(5, \"p-table\", 2);\r\n        i0.ɵɵtemplate(6, PlannerComponent_ng_template_6_Template, 6, 5, \"ng-template\", 3);\r\n        i0.ɵɵelementEnd();\r\n        i0.ɵɵtemplate(7, PlannerComponent_div_7_Template, 3, 1, \"div\", 4);\r\n        i0.ɵɵpipe(8, \"async\");\r\n    } if (rf & 2) {\r\n        i0.ɵɵadvance(5);\r\n        i0.ɵɵproperty(\"value\", ctx.planners)(\"paginator\", true)(\"rows\", 3)(\"responsive\", true);\r\n        i0.ɵɵadvance(2);\r\n        i0.ɵɵproperty(\"ngIf\", i0.ɵɵpipeBind1(8, 5, ctx.userDisplayName$));\r\n    } }, directives: [i6.Toast, i7.ButtonDirective, i8.Ripple, i9.Table, i4.PrimeTemplate, i10.NgIf, i11.Card], pipes: [i10.AsyncPipe], styles: [\"mat-card[_ngcontent-%COMP%]  {   \\r\\n  width: 280px;   \\r\\n  height: 160px; \\r\\n\\r\\n}\\r\\n.example-card[_ngcontent-%COMP%]   button[_ngcontent-%COMP%] {\\r\\n  box-shadow:none !important;\\r\\n  cursor:pointer;\\r\\n}\\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInBsYW5uZXIuY29tcG9uZW50LmNzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNFLFlBQVk7RUFDWixhQUFhOztBQUVmO0FBQ0E7RUFDRSwwQkFBMEI7RUFDMUIsY0FBYztBQUNoQiIsImZpbGUiOiJwbGFubmVyLmNvbXBvbmVudC5jc3MiLCJzb3VyY2VzQ29udGVudCI6WyJtYXQtY2FyZCAgeyAgIFxyXG4gIHdpZHRoOiAyODBweDsgICBcclxuICBoZWlnaHQ6IDE2MHB4OyBcclxuXHJcbn1cclxuLmV4YW1wbGUtY2FyZCBidXR0b24ge1xyXG4gIGJveC1zaGFkb3c6bm9uZSAhaW1wb3J0YW50O1xyXG4gIGN1cnNvcjpwb2ludGVyO1xyXG59Il19 */\"] });\r\n"]},"metadata":{},"sourceType":"module"}
Index: trip-planner-front/node_modules/.cache/babel-webpack/1d44ef15b0af9eb8f425ec14446b0d7a.json
===================================================================
--- trip-planner-front/node_modules/.cache/babel-webpack/1d44ef15b0af9eb8f425ec14446b0d7a.json	(revision bdd64917749115bbdd228a9569a675d590c112e3)
+++ trip-planner-front/node_modules/.cache/babel-webpack/1d44ef15b0af9eb8f425ec14446b0d7a.json	(revision bdd64917749115bbdd228a9569a675d590c112e3)
@@ -0,0 +1,1 @@
+{"ast":null,"code":"import { CreateInitialPlannerComponent } from '../create-initial-planner/create-initial-planner.component';\nimport { PlannerDto } from '../_models/dto/plannerDto';\nimport { DialogService, DynamicDialogRef } from 'primeng/dynamicdialog';\nimport { MessageService } from 'primeng/api';\nimport { UserDto } from '../_models/dto/userDto';\nimport * as i0 from \"@angular/core\";\nimport * as i1 from \"../_services/planner.service\";\nimport * as i2 from \"@angular/router\";\nimport * as i3 from \"primeng/dynamicdialog\";\nimport * as i4 from \"primeng/api\";\nimport * as i5 from \"../_services/user.service\";\nimport * as i6 from \"primeng/toast\";\nimport * as i7 from \"primeng/button\";\nimport * as i8 from \"primeng/ripple\";\nimport * as i9 from \"primeng/table\";\nimport * as i10 from \"@angular/common\";\nimport * as i11 from \"primeng/card\";\n\nfunction PlannerComponent_ng_template_6_ng_template_2_Template(rf, ctx) {}\n\nconst _c0 = function () {\n  return {\n    \"margin-left\": \".5em\"\n  };\n};\n\nfunction PlannerComponent_ng_template_6_ng_template_5_Template(rf, ctx) {\n  if (rf & 1) {\n    const _r7 = i0.ɵɵgetCurrentView();\n\n    i0.ɵɵelementStart(0, \"button\", 9);\n    i0.ɵɵlistener(\"click\", function PlannerComponent_ng_template_6_ng_template_5_Template_button_click_0_listener() {\n      i0.ɵɵrestoreView(_r7);\n      const planner_r2 = i0.ɵɵnextContext().$implicit;\n      const ctx_r5 = i0.ɵɵnextContext();\n      return ctx_r5.onClickEditPlannerGet(planner_r2.id);\n    });\n    i0.ɵɵelementEnd();\n    i0.ɵɵelement(1, \"button\", 10);\n  }\n\n  if (rf & 2) {\n    i0.ɵɵadvance(1);\n    i0.ɵɵstyleMap(i0.ɵɵpureFunction0(2, _c0));\n  }\n}\n\nconst _c1 = function () {\n  return {\n    width: \"360px\"\n  };\n};\n\nfunction PlannerComponent_ng_template_6_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelementStart(0, \"td\");\n    i0.ɵɵelementStart(1, \"p-card\", 6);\n    i0.ɵɵtemplate(2, PlannerComponent_ng_template_6_ng_template_2_Template, 0, 0, \"ng-template\", 7);\n    i0.ɵɵelementStart(3, \"p\");\n    i0.ɵɵtext(4);\n    i0.ɵɵelementEnd();\n    i0.ɵɵtemplate(5, PlannerComponent_ng_template_6_ng_template_5_Template, 2, 3, \"ng-template\", 8);\n    i0.ɵɵelementEnd();\n    i0.ɵɵelementEnd();\n  }\n\n  if (rf & 2) {\n    const planner_r2 = ctx.$implicit;\n    i0.ɵɵadvance(1);\n    i0.ɵɵstyleMap(i0.ɵɵpureFunction0(4, _c1));\n    i0.ɵɵpropertyInterpolate(\"header\", planner_r2.name);\n    i0.ɵɵadvance(3);\n    i0.ɵɵtextInterpolate(planner_r2.description);\n  }\n}\n\nfunction PlannerComponent_div_9_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelementStart(0, \"div\");\n    i0.ɵɵelementStart(1, \"span\", 11);\n    i0.ɵɵtext(2);\n    i0.ɵɵelementEnd();\n    i0.ɵɵelementEnd();\n  }\n\n  if (rf & 2) {\n    const error_r8 = ctx.ngIf;\n    i0.ɵɵadvance(2);\n    i0.ɵɵtextInterpolate(error_r8.message);\n  }\n}\n\nexport class PlannerComponent {\n  constructor(plannerService, router, dialogService, primengConfig, messageService, userService) {\n    this.plannerService = plannerService;\n    this.router = router;\n    this.dialogService = dialogService;\n    this.primengConfig = primengConfig;\n    this.messageService = messageService;\n    this.userService = userService;\n    this.planners = [];\n    this.plannerDto = new PlannerDto();\n    this.ref = new DynamicDialogRef();\n    this.user = new UserDto();\n  }\n\n  ngOnInit() {\n    this.primengConfig.ripple = true;\n    let userDisplayName = sessionStorage.getItem(\"username\");\n    this.plannerService.getAllPlanners().subscribe(data => {\n      this.planners = data;\n    });\n  }\n\n  onClickEditPlannerGet(id) {\n    console.log(id);\n    this.plannerService.getPlannerById(id).subscribe(data => {\n      this.router.navigate(['edit/planner/', id]);\n    });\n  }\n\n  show() {\n    this.ref = this.dialogService.open(CreateInitialPlannerComponent, {\n      header: 'Create initial planner',\n      width: '70%',\n      contentStyle: {\n        \"max-height\": \"500px\",\n        \"overflow\": \"auto\"\n      },\n      baseZIndex: 10000\n    });\n    this.ref.onClose.subscribe(planner => {\n      console.log(\"NOVOKREIRANIOT NAME NA PLANNER: \" + planner.name);\n      this.plannerService.postInitialPlanner(planner).subscribe(data => {\n        console.log(data);\n      }, error => console.log('oops', error));\n      this.messageService.add({\n        severity: 'success',\n        summary: 'The planner: ' + planner.name + ' has been created.'\n      });\n    });\n  }\n\n}\n\nPlannerComponent.ɵfac = function PlannerComponent_Factory(t) {\n  return new (t || PlannerComponent)(i0.ɵɵdirectiveInject(i1.PlannerService), i0.ɵɵdirectiveInject(i2.Router), i0.ɵɵdirectiveInject(i3.DialogService), i0.ɵɵdirectiveInject(i4.PrimeNGConfig), i0.ɵɵdirectiveInject(i4.MessageService), i0.ɵɵdirectiveInject(i5.UserService));\n};\n\nPlannerComponent.ɵcmp = /*@__PURE__*/i0.ɵɵdefineComponent({\n  type: PlannerComponent,\n  selectors: [[\"app-planner\"]],\n  features: [i0.ɵɵProvidersFeature([DialogService, MessageService])],\n  decls: 11,\n  vars: 8,\n  consts: [[\"href\", \"https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/css/bootstrap.min.css\", \"rel\", \"stylesheet\", \"integrity\", \"sha384-+0n0xVW2eSR5OomGNYDnhzAbDsOXxcvSN1TPprVMTNDbiYZCxYbOOl7+AMvyTG2x\", \"crossorigin\", \"anonymous\"], [\"pButton\", \"\", \"pRipple\", \"\", \"type\", \"button\", \"label\", \"Create initial planner\", 1, \"p-button-help\", 3, \"click\"], [3, \"value\", \"paginator\", \"rows\", \"responsive\"], [\"pTemplate\", \"body\"], [1, \"username\"], [4, \"ngIf\"], [\"subheader\", \"Card Subheader\", \"styleClass\", \"p-card-shadow\", 3, \"header\"], [\"pTemplate\", \"header\"], [\"pTemplate\", \"footer\"], [\"pButton\", \"\", \"pRipple\", \"\", \"type\", \"button\", \"label\", \"Edit\", 1, \"p-button-outlined\", \"p-button-rounded\", \"p-button-help\", 3, \"click\"], [\"pButton\", \"\", \"pRipple\", \"\", \"type\", \"button\", \"icon\", \"pi pi-times\", \"label\", \"Delete\", 1, \"p-button-rounded\", \"p-button-danger\", \"p-button-outlined\"], [1, \"text-warn\"]],\n  template: function PlannerComponent_Template(rf, ctx) {\n    if (rf & 1) {\n      i0.ɵɵelement(0, \"link\", 0);\n      i0.ɵɵelement(1, \"p-toast\");\n      i0.ɵɵelementStart(2, \"button\", 1);\n      i0.ɵɵlistener(\"click\", function PlannerComponent_Template_button_click_2_listener() {\n        return ctx.show();\n      });\n      i0.ɵɵelementEnd();\n      i0.ɵɵelement(3, \"br\");\n      i0.ɵɵelement(4, \"br\");\n      i0.ɵɵelementStart(5, \"p-table\", 2);\n      i0.ɵɵtemplate(6, PlannerComponent_ng_template_6_Template, 6, 5, \"ng-template\", 3);\n      i0.ɵɵelementEnd();\n      i0.ɵɵelementStart(7, \"div\", 4);\n      i0.ɵɵtext(8);\n      i0.ɵɵelementEnd();\n      i0.ɵɵtemplate(9, PlannerComponent_div_9_Template, 3, 1, \"div\", 5);\n      i0.ɵɵpipe(10, \"async\");\n    }\n\n    if (rf & 2) {\n      i0.ɵɵadvance(5);\n      i0.ɵɵproperty(\"value\", ctx.planners)(\"paginator\", true)(\"rows\", 3)(\"responsive\", true);\n      i0.ɵɵadvance(3);\n      i0.ɵɵtextInterpolate1(\"Username: \", ctx.userDisplayName, \"\");\n      i0.ɵɵadvance(1);\n      i0.ɵɵproperty(\"ngIf\", i0.ɵɵpipeBind1(10, 6, ctx.userDisplayName$));\n    }\n  },\n  directives: [i6.Toast, i7.ButtonDirective, i8.Ripple, i9.Table, i4.PrimeTemplate, i10.NgIf, i11.Card],\n  pipes: [i10.AsyncPipe],\n  styles: [\"mat-card[_ngcontent-%COMP%]  {   \\r\\n  width: 280px;   \\r\\n  height: 160px; \\r\\n\\r\\n}\\r\\n.example-card[_ngcontent-%COMP%]   button[_ngcontent-%COMP%] {\\r\\n  box-shadow:none !important;\\r\\n  cursor:pointer;\\r\\n}\\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInBsYW5uZXIuY29tcG9uZW50LmNzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNFLFlBQVk7RUFDWixhQUFhOztBQUVmO0FBQ0E7RUFDRSwwQkFBMEI7RUFDMUIsY0FBYztBQUNoQiIsImZpbGUiOiJwbGFubmVyLmNvbXBvbmVudC5jc3MiLCJzb3VyY2VzQ29udGVudCI6WyJtYXQtY2FyZCAgeyAgIFxyXG4gIHdpZHRoOiAyODBweDsgICBcclxuICBoZWlnaHQ6IDE2MHB4OyBcclxuXHJcbn1cclxuLmV4YW1wbGUtY2FyZCBidXR0b24ge1xyXG4gIGJveC1zaGFkb3c6bm9uZSAhaW1wb3J0YW50O1xyXG4gIGN1cnNvcjpwb2ludGVyO1xyXG59Il19 */\"]\n});","map":{"version":3,"sources":["C:/Users/DELL/Desktop/bachelor-thesis/trip-planner-front/src/app/planner/planner.component.ts"],"names":["CreateInitialPlannerComponent","PlannerDto","DialogService","DynamicDialogRef","MessageService","UserDto","i0","i1","i2","i3","i4","i5","i6","i7","i8","i9","i10","i11","PlannerComponent_ng_template_6_ng_template_2_Template","rf","ctx","_c0","PlannerComponent_ng_template_6_ng_template_5_Template","_r7","ɵɵgetCurrentView","ɵɵelementStart","ɵɵlistener","PlannerComponent_ng_template_6_ng_template_5_Template_button_click_0_listener","ɵɵrestoreView","planner_r2","ɵɵnextContext","$implicit","ctx_r5","onClickEditPlannerGet","id","ɵɵelementEnd","ɵɵelement","ɵɵadvance","ɵɵstyleMap","ɵɵpureFunction0","_c1","width","PlannerComponent_ng_template_6_Template","ɵɵtemplate","ɵɵtext","ɵɵpropertyInterpolate","name","ɵɵtextInterpolate","description","PlannerComponent_div_9_Template","error_r8","ngIf","message","PlannerComponent","constructor","plannerService","router","dialogService","primengConfig","messageService","userService","planners","plannerDto","ref","user","ngOnInit","ripple","userDisplayName","sessionStorage","getItem","getAllPlanners","subscribe","data","console","log","getPlannerById","navigate","show","open","header","contentStyle","baseZIndex","onClose","planner","postInitialPlanner","error","add","severity","summary","ɵfac","PlannerComponent_Factory","t","ɵɵdirectiveInject","PlannerService","Router","PrimeNGConfig","UserService","ɵcmp","ɵɵdefineComponent","type","selectors","features","ɵɵProvidersFeature","decls","vars","consts","template","PlannerComponent_Template","PlannerComponent_Template_button_click_2_listener","ɵɵpipe","ɵɵproperty","ɵɵtextInterpolate1","ɵɵpipeBind1","userDisplayName$","directives","Toast","ButtonDirective","Ripple","Table","PrimeTemplate","NgIf","Card","pipes","AsyncPipe","styles"],"mappings":"AAAA,SAASA,6BAAT,QAA8C,4DAA9C;AACA,SAASC,UAAT,QAA2B,2BAA3B;AACA,SAASC,aAAT,EAAwBC,gBAAxB,QAAgD,uBAAhD;AACA,SAASC,cAAT,QAA+B,aAA/B;AACA,SAASC,OAAT,QAAwB,wBAAxB;AACA,OAAO,KAAKC,EAAZ,MAAoB,eAApB;AACA,OAAO,KAAKC,EAAZ,MAAoB,8BAApB;AACA,OAAO,KAAKC,EAAZ,MAAoB,iBAApB;AACA,OAAO,KAAKC,EAAZ,MAAoB,uBAApB;AACA,OAAO,KAAKC,EAAZ,MAAoB,aAApB;AACA,OAAO,KAAKC,EAAZ,MAAoB,2BAApB;AACA,OAAO,KAAKC,EAAZ,MAAoB,eAApB;AACA,OAAO,KAAKC,EAAZ,MAAoB,gBAApB;AACA,OAAO,KAAKC,EAAZ,MAAoB,gBAApB;AACA,OAAO,KAAKC,EAAZ,MAAoB,eAApB;AACA,OAAO,KAAKC,GAAZ,MAAqB,iBAArB;AACA,OAAO,KAAKC,GAAZ,MAAqB,cAArB;;AACA,SAASC,qDAAT,CAA+DC,EAA/D,EAAmEC,GAAnE,EAAwE,CAAG;;AAC3E,MAAMC,GAAG,GAAG,YAAY;AAAE,SAAO;AAAE,mBAAe;AAAjB,GAAP;AAAmC,CAA7D;;AACA,SAASC,qDAAT,CAA+DH,EAA/D,EAAmEC,GAAnE,EAAwE;AAAE,MAAID,EAAE,GAAG,CAAT,EAAY;AAClF,UAAMI,GAAG,GAAGjB,EAAE,CAACkB,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AAM,EAAE,CAAC,mtBAAD;AAvBrF,CAArB,CAAtC","sourcesContent":["import { CreateInitialPlannerComponent } from '../create-initial-planner/create-initial-planner.component';\r\nimport { PlannerDto } from '../_models/dto/plannerDto';\r\nimport { DialogService, DynamicDialogRef } from 'primeng/dynamicdialog';\r\nimport { MessageService } from 'primeng/api';\r\nimport { UserDto } from '../_models/dto/userDto';\r\nimport * as i0 from \"@angular/core\";\r\nimport * as i1 from \"../_services/planner.service\";\r\nimport * as i2 from \"@angular/router\";\r\nimport * as i3 from \"primeng/dynamicdialog\";\r\nimport * as i4 from \"primeng/api\";\r\nimport * as i5 from \"../_services/user.service\";\r\nimport * as i6 from \"primeng/toast\";\r\nimport * as i7 from \"primeng/button\";\r\nimport * as i8 from \"primeng/ripple\";\r\nimport * as i9 from \"primeng/table\";\r\nimport * as i10 from \"@angular/common\";\r\nimport * as i11 from \"primeng/card\";\r\nfunction PlannerComponent_ng_template_6_ng_template_2_Template(rf, ctx) { }\r\nconst _c0 = function () { return { \"margin-left\": \".5em\" }; };\r\nfunction PlannerComponent_ng_template_6_ng_template_5_Template(rf, ctx) { if (rf & 1) {\r\n    const _r7 = i0.ɵɵgetCurrentView();\r\n    i0.ɵɵelementStart(0, \"button\", 9);\r\n    i0.ɵɵlistener(\"click\", function PlannerComponent_ng_template_6_ng_template_5_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r7); const planner_r2 = i0.ɵɵnextContext().$implicit; const ctx_r5 = i0.ɵɵnextContext(); return ctx_r5.onClickEditPlannerGet(planner_r2.id); });\r\n    i0.ɵɵelementEnd();\r\n    i0.ɵɵelement(1, \"button\", 10);\r\n} if (rf & 2) {\r\n    i0.ɵɵadvance(1);\r\n    i0.ɵɵstyleMap(i0.ɵɵpureFunction0(2, _c0));\r\n} }\r\nconst _c1 = function () { return { width: \"360px\" }; };\r\nfunction PlannerComponent_ng_template_6_Template(rf, ctx) { if (rf & 1) {\r\n    i0.ɵɵelementStart(0, \"td\");\r\n    i0.ɵɵelementStart(1, \"p-card\", 6);\r\n    i0.ɵɵtemplate(2, PlannerComponent_ng_template_6_ng_template_2_Template, 0, 0, \"ng-template\", 7);\r\n    i0.ɵɵelementStart(3, \"p\");\r\n    i0.ɵɵtext(4);\r\n    i0.ɵɵelementEnd();\r\n    i0.ɵɵtemplate(5, PlannerComponent_ng_template_6_ng_template_5_Template, 2, 3, \"ng-template\", 8);\r\n    i0.ɵɵelementEnd();\r\n    i0.ɵɵelementEnd();\r\n} if (rf & 2) {\r\n    const planner_r2 = ctx.$implicit;\r\n    i0.ɵɵadvance(1);\r\n    i0.ɵɵstyleMap(i0.ɵɵpureFunction0(4, _c1));\r\n    i0.ɵɵpropertyInterpolate(\"header\", planner_r2.name);\r\n    i0.ɵɵadvance(3);\r\n    i0.ɵɵtextInterpolate(planner_r2.description);\r\n} }\r\nfunction PlannerComponent_div_9_Template(rf, ctx) { if (rf & 1) {\r\n    i0.ɵɵelementStart(0, \"div\");\r\n    i0.ɵɵelementStart(1, \"span\", 11);\r\n    i0.ɵɵtext(2);\r\n    i0.ɵɵelementEnd();\r\n    i0.ɵɵelementEnd();\r\n} if (rf & 2) {\r\n    const error_r8 = ctx.ngIf;\r\n    i0.ɵɵadvance(2);\r\n    i0.ɵɵtextInterpolate(error_r8.message);\r\n} }\r\nexport class PlannerComponent {\r\n    constructor(plannerService, router, dialogService, primengConfig, messageService, userService) {\r\n        this.plannerService = plannerService;\r\n        this.router = router;\r\n        this.dialogService = dialogService;\r\n        this.primengConfig = primengConfig;\r\n        this.messageService = messageService;\r\n        this.userService = userService;\r\n        this.planners = [];\r\n        this.plannerDto = new PlannerDto();\r\n        this.ref = new DynamicDialogRef;\r\n        this.user = new UserDto();\r\n    }\r\n    ngOnInit() {\r\n        this.primengConfig.ripple = true;\r\n        let userDisplayName = sessionStorage.getItem(\"username\");\r\n        this.plannerService.getAllPlanners().subscribe(data => {\r\n            this.planners = data;\r\n        });\r\n    }\r\n    onClickEditPlannerGet(id) {\r\n        console.log(id);\r\n        this.plannerService.getPlannerById(id).subscribe(data => {\r\n            this.router.navigate(['edit/planner/', id]);\r\n        });\r\n    }\r\n    show() {\r\n        this.ref = this.dialogService.open(CreateInitialPlannerComponent, {\r\n            header: 'Create initial planner',\r\n            width: '70%',\r\n            contentStyle: { \"max-height\": \"500px\", \"overflow\": \"auto\" },\r\n            baseZIndex: 10000\r\n        });\r\n        this.ref.onClose.subscribe((planner) => {\r\n            console.log(\"NOVOKREIRANIOT NAME NA PLANNER: \" + planner.name);\r\n            this.plannerService.postInitialPlanner(planner).subscribe(data => {\r\n                console.log(data);\r\n            }, error => console.log('oops', error));\r\n            this.messageService.add({ severity: 'success', summary: 'The planner: ' + planner.name + ' has been created.' });\r\n        });\r\n    }\r\n}\r\nPlannerComponent.ɵfac = function PlannerComponent_Factory(t) { return new (t || PlannerComponent)(i0.ɵɵdirectiveInject(i1.PlannerService), i0.ɵɵdirectiveInject(i2.Router), i0.ɵɵdirectiveInject(i3.DialogService), i0.ɵɵdirectiveInject(i4.PrimeNGConfig), i0.ɵɵdirectiveInject(i4.MessageService), i0.ɵɵdirectiveInject(i5.UserService)); };\r\nPlannerComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PlannerComponent, selectors: [[\"app-planner\"]], features: [i0.ɵɵProvidersFeature([DialogService, MessageService])], decls: 11, vars: 8, consts: [[\"href\", \"https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/css/bootstrap.min.css\", \"rel\", \"stylesheet\", \"integrity\", \"sha384-+0n0xVW2eSR5OomGNYDnhzAbDsOXxcvSN1TPprVMTNDbiYZCxYbOOl7+AMvyTG2x\", \"crossorigin\", \"anonymous\"], [\"pButton\", \"\", \"pRipple\", \"\", \"type\", \"button\", \"label\", \"Create initial planner\", 1, \"p-button-help\", 3, \"click\"], [3, \"value\", \"paginator\", \"rows\", \"responsive\"], [\"pTemplate\", \"body\"], [1, \"username\"], [4, \"ngIf\"], [\"subheader\", \"Card Subheader\", \"styleClass\", \"p-card-shadow\", 3, \"header\"], [\"pTemplate\", \"header\"], [\"pTemplate\", \"footer\"], [\"pButton\", \"\", \"pRipple\", \"\", \"type\", \"button\", \"label\", \"Edit\", 1, \"p-button-outlined\", \"p-button-rounded\", \"p-button-help\", 3, \"click\"], [\"pButton\", \"\", \"pRipple\", \"\", \"type\", \"button\", \"icon\", \"pi pi-times\", \"label\", \"Delete\", 1, \"p-button-rounded\", \"p-button-danger\", \"p-button-outlined\"], [1, \"text-warn\"]], template: function PlannerComponent_Template(rf, ctx) { if (rf & 1) {\r\n        i0.ɵɵelement(0, \"link\", 0);\r\n        i0.ɵɵelement(1, \"p-toast\");\r\n        i0.ɵɵelementStart(2, \"button\", 1);\r\n        i0.ɵɵlistener(\"click\", function PlannerComponent_Template_button_click_2_listener() { return ctx.show(); });\r\n        i0.ɵɵelementEnd();\r\n        i0.ɵɵelement(3, \"br\");\r\n        i0.ɵɵelement(4, \"br\");\r\n        i0.ɵɵelementStart(5, \"p-table\", 2);\r\n        i0.ɵɵtemplate(6, PlannerComponent_ng_template_6_Template, 6, 5, \"ng-template\", 3);\r\n        i0.ɵɵelementEnd();\r\n        i0.ɵɵelementStart(7, \"div\", 4);\r\n        i0.ɵɵtext(8);\r\n        i0.ɵɵelementEnd();\r\n        i0.ɵɵtemplate(9, PlannerComponent_div_9_Template, 3, 1, \"div\", 5);\r\n        i0.ɵɵpipe(10, \"async\");\r\n    } if (rf & 2) {\r\n        i0.ɵɵadvance(5);\r\n        i0.ɵɵproperty(\"value\", ctx.planners)(\"paginator\", true)(\"rows\", 3)(\"responsive\", true);\r\n        i0.ɵɵadvance(3);\r\n        i0.ɵɵtextInterpolate1(\"Username: \", ctx.userDisplayName, \"\");\r\n        i0.ɵɵadvance(1);\r\n        i0.ɵɵproperty(\"ngIf\", i0.ɵɵpipeBind1(10, 6, ctx.userDisplayName$));\r\n    } }, directives: [i6.Toast, i7.ButtonDirective, i8.Ripple, i9.Table, i4.PrimeTemplate, i10.NgIf, i11.Card], pipes: [i10.AsyncPipe], styles: [\"mat-card[_ngcontent-%COMP%]  {   \\r\\n  width: 280px;   \\r\\n  height: 160px; \\r\\n\\r\\n}\\r\\n.example-card[_ngcontent-%COMP%]   button[_ngcontent-%COMP%] {\\r\\n  box-shadow:none !important;\\r\\n  cursor:pointer;\\r\\n}\\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInBsYW5uZXIuY29tcG9uZW50LmNzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNFLFlBQVk7RUFDWixhQUFhOztBQUVmO0FBQ0E7RUFDRSwwQkFBMEI7RUFDMUIsY0FBYztBQUNoQiIsImZpbGUiOiJwbGFubmVyLmNvbXBvbmVudC5jc3MiLCJzb3VyY2VzQ29udGVudCI6WyJtYXQtY2FyZCAgeyAgIFxyXG4gIHdpZHRoOiAyODBweDsgICBcclxuICBoZWlnaHQ6IDE2MHB4OyBcclxuXHJcbn1cclxuLmV4YW1wbGUtY2FyZCBidXR0b24ge1xyXG4gIGJveC1zaGFkb3c6bm9uZSAhaW1wb3J0YW50O1xyXG4gIGN1cnNvcjpwb2ludGVyO1xyXG59Il19 */\"] });\r\n"]},"metadata":{},"sourceType":"module"}
Index: trip-planner-front/node_modules/.cache/babel-webpack/356eed543c26e93eaaa083197ee2d399.json
===================================================================
--- trip-planner-front/node_modules/.cache/babel-webpack/356eed543c26e93eaaa083197ee2d399.json	(revision bdd64917749115bbdd228a9569a675d590c112e3)
+++ trip-planner-front/node_modules/.cache/babel-webpack/356eed543c26e93eaaa083197ee2d399.json	(revision bdd64917749115bbdd228a9569a675d590c112e3)
@@ -0,0 +1,1 @@
+{"ast":null,"code":"import { CreateInitialPlannerComponent } from '../create-initial-planner/create-initial-planner.component';\nimport { PlannerDto } from '../_models/dto/plannerDto';\nimport { DialogService, DynamicDialogRef } from 'primeng/dynamicdialog';\nimport { MessageService } from 'primeng/api';\nimport { UserDto } from '../_models/dto/userDto';\nimport * as i0 from \"@angular/core\";\nimport * as i1 from \"../_services/planner.service\";\nimport * as i2 from \"@angular/router\";\nimport * as i3 from \"primeng/dynamicdialog\";\nimport * as i4 from \"primeng/api\";\nimport * as i5 from \"../_services/user.service\";\nimport * as i6 from \"primeng/toast\";\nimport * as i7 from \"primeng/button\";\nimport * as i8 from \"primeng/ripple\";\nimport * as i9 from \"primeng/table\";\nimport * as i10 from \"@angular/common\";\nimport * as i11 from \"primeng/card\";\n\nfunction PlannerComponent_ng_template_6_ng_template_2_Template(rf, ctx) {}\n\nconst _c0 = function () {\n  return {\n    \"margin-left\": \".5em\"\n  };\n};\n\nfunction PlannerComponent_ng_template_6_ng_template_5_Template(rf, ctx) {\n  if (rf & 1) {\n    const _r9 = i0.ɵɵgetCurrentView();\n\n    i0.ɵɵelementStart(0, \"button\", 10);\n    i0.ɵɵlistener(\"click\", function PlannerComponent_ng_template_6_ng_template_5_Template_button_click_0_listener() {\n      i0.ɵɵrestoreView(_r9);\n      const planner_r4 = i0.ɵɵnextContext().$implicit;\n      const ctx_r7 = i0.ɵɵnextContext();\n      return ctx_r7.onClickEditPlannerGet(planner_r4.id);\n    });\n    i0.ɵɵelementEnd();\n    i0.ɵɵelement(1, \"button\", 11);\n  }\n\n  if (rf & 2) {\n    i0.ɵɵadvance(1);\n    i0.ɵɵstyleMap(i0.ɵɵpureFunction0(2, _c0));\n  }\n}\n\nconst _c1 = function () {\n  return {\n    width: \"360px\"\n  };\n};\n\nfunction PlannerComponent_ng_template_6_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelementStart(0, \"td\");\n    i0.ɵɵelementStart(1, \"p-card\", 7);\n    i0.ɵɵtemplate(2, PlannerComponent_ng_template_6_ng_template_2_Template, 0, 0, \"ng-template\", 8);\n    i0.ɵɵelementStart(3, \"p\");\n    i0.ɵɵtext(4);\n    i0.ɵɵelementEnd();\n    i0.ɵɵtemplate(5, PlannerComponent_ng_template_6_ng_template_5_Template, 2, 3, \"ng-template\", 9);\n    i0.ɵɵelementEnd();\n    i0.ɵɵelementEnd();\n  }\n\n  if (rf & 2) {\n    const planner_r4 = ctx.$implicit;\n    i0.ɵɵadvance(1);\n    i0.ɵɵstyleMap(i0.ɵɵpureFunction0(4, _c1));\n    i0.ɵɵpropertyInterpolate(\"header\", planner_r4.name);\n    i0.ɵɵadvance(3);\n    i0.ɵɵtextInterpolate(planner_r4.description);\n  }\n}\n\nfunction PlannerComponent_div_7_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelementStart(0, \"div\");\n    i0.ɵɵelementStart(1, \"span\", 12);\n    i0.ɵɵtext(2);\n    i0.ɵɵelementEnd();\n    i0.ɵɵelementEnd();\n  }\n\n  if (rf & 2) {\n    const ctx_r1 = i0.ɵɵnextContext();\n    i0.ɵɵadvance(2);\n    i0.ɵɵtextInterpolate(ctx_r1.userDisplayName);\n  }\n}\n\nfunction PlannerComponent_ng_template_9_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelementStart(0, \"div\");\n    i0.ɵɵelementStart(1, \"span\");\n    i0.ɵɵtext(2);\n    i0.ɵɵelementEnd();\n    i0.ɵɵelementEnd();\n  }\n\n  if (rf & 2) {\n    const a_r11 = ctx.userDisplayName;\n    i0.ɵɵadvance(2);\n    i0.ɵɵtextInterpolate(a_r11);\n  }\n}\n\nexport class PlannerComponent {\n  constructor(plannerService, router, dialogService, primengConfig, messageService, userService) {\n    this.plannerService = plannerService;\n    this.router = router;\n    this.dialogService = dialogService;\n    this.primengConfig = primengConfig;\n    this.messageService = messageService;\n    this.userService = userService;\n    this.planners = [];\n    this.plannerDto = new PlannerDto();\n    this.ref = new DynamicDialogRef();\n    this.user = new UserDto();\n  }\n\n  ngOnInit() {\n    this.primengConfig.ripple = true;\n    let userDisplayName = sessionStorage.getItem(\"username\");\n    this.plannerService.getAllPlanners().subscribe(data => {\n      this.planners = data;\n    });\n  }\n\n  onClickEditPlannerGet(id) {\n    console.log(id);\n    this.plannerService.getPlannerById(id).subscribe(data => {\n      this.router.navigate(['edit/planner/', id]);\n    });\n  }\n\n  show() {\n    this.ref = this.dialogService.open(CreateInitialPlannerComponent, {\n      header: 'Create initial planner',\n      width: '70%',\n      contentStyle: {\n        \"max-height\": \"500px\",\n        \"overflow\": \"auto\"\n      },\n      baseZIndex: 10000\n    });\n    this.ref.onClose.subscribe(planner => {\n      console.log(\"NOVOKREIRANIOT NAME NA PLANNER: \" + planner.name);\n      this.plannerService.postInitialPlanner(planner).subscribe(data => {\n        console.log(data);\n      }, error => console.log('oops', error));\n      this.messageService.add({\n        severity: 'success',\n        summary: 'The planner: ' + planner.name + ' has been created.'\n      });\n    });\n  }\n\n}\n\nPlannerComponent.ɵfac = function PlannerComponent_Factory(t) {\n  return new (t || PlannerComponent)(i0.ɵɵdirectiveInject(i1.PlannerService), i0.ɵɵdirectiveInject(i2.Router), i0.ɵɵdirectiveInject(i3.DialogService), i0.ɵɵdirectiveInject(i4.PrimeNGConfig), i0.ɵɵdirectiveInject(i4.MessageService), i0.ɵɵdirectiveInject(i5.UserService));\n};\n\nPlannerComponent.ɵcmp = /*@__PURE__*/i0.ɵɵdefineComponent({\n  type: PlannerComponent,\n  selectors: [[\"app-planner\"]],\n  features: [i0.ɵɵProvidersFeature([DialogService, MessageService])],\n  decls: 11,\n  vars: 8,\n  consts: [[\"href\", \"https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/css/bootstrap.min.css\", \"rel\", \"stylesheet\", \"integrity\", \"sha384-+0n0xVW2eSR5OomGNYDnhzAbDsOXxcvSN1TPprVMTNDbiYZCxYbOOl7+AMvyTG2x\", \"crossorigin\", \"anonymous\"], [\"pButton\", \"\", \"pRipple\", \"\", \"type\", \"button\", \"label\", \"Create initial planner\", 1, \"p-button-help\", 3, \"click\"], [3, \"value\", \"paginator\", \"rows\", \"responsive\"], [\"pTemplate\", \"body\"], [4, \"ngIf\"], [3, \"ngTemplateOutlet\"], [\"selfie\", \"\"], [\"subheader\", \"Card Subheader\", \"styleClass\", \"p-card-shadow\", 3, \"header\"], [\"pTemplate\", \"header\"], [\"pTemplate\", \"footer\"], [\"pButton\", \"\", \"pRipple\", \"\", \"type\", \"button\", \"label\", \"Edit\", 1, \"p-button-outlined\", \"p-button-rounded\", \"p-button-help\", 3, \"click\"], [\"pButton\", \"\", \"pRipple\", \"\", \"type\", \"button\", \"icon\", \"pi pi-times\", \"label\", \"Delete\", 1, \"p-button-rounded\", \"p-button-danger\", \"p-button-outlined\"], [1, \"text-warn\"]],\n  template: function PlannerComponent_Template(rf, ctx) {\n    if (rf & 1) {\n      i0.ɵɵelement(0, \"link\", 0);\n      i0.ɵɵelement(1, \"p-toast\");\n      i0.ɵɵelementStart(2, \"button\", 1);\n      i0.ɵɵlistener(\"click\", function PlannerComponent_Template_button_click_2_listener() {\n        return ctx.show();\n      });\n      i0.ɵɵelementEnd();\n      i0.ɵɵelement(3, \"br\");\n      i0.ɵɵelement(4, \"br\");\n      i0.ɵɵelementStart(5, \"p-table\", 2);\n      i0.ɵɵtemplate(6, PlannerComponent_ng_template_6_Template, 6, 5, \"ng-template\", 3);\n      i0.ɵɵelementEnd();\n      i0.ɵɵtemplate(7, PlannerComponent_div_7_Template, 3, 1, \"div\", 4);\n      i0.ɵɵpipe(8, \"async\");\n      i0.ɵɵtemplate(9, PlannerComponent_ng_template_9_Template, 3, 1, \"ng-template\", 5, 6, i0.ɵɵtemplateRefExtractor);\n    }\n\n    if (rf & 2) {\n      const _r2 = i0.ɵɵreference(10);\n\n      i0.ɵɵadvance(5);\n      i0.ɵɵproperty(\"value\", ctx.planners)(\"paginator\", true)(\"rows\", 3)(\"responsive\", true);\n      i0.ɵɵadvance(2);\n      i0.ɵɵproperty(\"ngIf\", i0.ɵɵpipeBind1(8, 6, ctx.userDisplayName$));\n      i0.ɵɵadvance(2);\n      i0.ɵɵproperty(\"ngTemplateOutlet\", _r2);\n    }\n  },\n  directives: [i6.Toast, i7.ButtonDirective, i8.Ripple, i9.Table, i4.PrimeTemplate, i10.NgIf, i10.NgTemplateOutlet, i11.Card],\n  pipes: [i10.AsyncPipe],\n  styles: [\"mat-card[_ngcontent-%COMP%]  {   \\r\\n  width: 280px;   \\r\\n  height: 160px; \\r\\n\\r\\n}\\r\\n.example-card[_ngcontent-%COMP%]   button[_ngcontent-%COMP%] {\\r\\n  box-shadow:none !important;\\r\\n  cursor:pointer;\\r\\n}\\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInBsYW5uZXIuY29tcG9uZW50LmNzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNFLFlBQVk7RUFDWixhQUFhOztBQUVmO0FBQ0E7RUFDRSwwQkFBMEI7RUFDMUIsY0FBYztBQUNoQiIsImZpbGUiOiJwbGFubmVyLmNvbXBvbmVudC5jc3MiLCJzb3VyY2VzQ29udGVudCI6WyJtYXQtY2FyZCAgeyAgIFxyXG4gIHdpZHRoOiAyODBweDsgICBcclxuICBoZWlnaHQ6IDE2MHB4OyBcclxuXHJcbn1cclxuLmV4YW1wbGUtY2FyZCBidXR0b24ge1xyXG4gIGJveC1zaGFkb3c6bm9uZSAhaW1wb3J0YW50O1xyXG4gIGN1cnNvcjpwb2ludGVyO1xyXG59Il19 */\"]\n});","map":{"version":3,"sources":["C:/Users/DELL/Desktop/bachelor-thesis/trip-planner-front/src/app/planner/planner.component.ts"],"names":["CreateInitialPlannerComponent","PlannerDto","DialogService","DynamicDialogRef","MessageService","UserDto","i0","i1","i2","i3","i4","i5","i6","i7","i8","i9","i10","i11","PlannerComponent_ng_template_6_ng_template_2_Template","rf","ctx","_c0","PlannerComponent_ng_template_6_ng_template_5_Template","_r9","ɵɵgetCurrentView","ɵɵelementStart","ɵɵlistener","PlannerComponent_ng_template_6_ng_template_5_Template_button_click_0_listener","ɵɵrestoreView","planner_r4","ɵɵnextContext","$implicit","ctx_r7","onClickEditPlannerGet","id","ɵɵelementEnd","ɵɵelement","ɵɵadvance","ɵɵstyleMap","ɵɵpureFunction0","_c1","width","PlannerComponent_ng_template_6_Template","ɵɵtemplate","ɵɵtext","ɵɵpropertyInterpolate","name","ɵɵtextInterpolate","description","PlannerComponent_div_7_Template","ctx_r1","userDisplayName","PlannerComponent_ng_template_9_Template","a_r11","PlannerComponent","constructor","plannerService","router","dialogService","primengConfig","messageService","userService","planners","plannerDto","ref","user","ngOnInit","ripple","sessionStorage","getItem","getAllPlanners","subscribe","data","console","log","getPlannerById","navigate","show","open","header","contentStyle","baseZIndex","onClose","planner","postInitialPlanner","error","add","severity","summary","ɵfac","PlannerComponent_Factory","t","ɵɵdirectiveInject","PlannerService","Router","PrimeNGConfig","UserService","ɵcmp","ɵɵdefineComponent","type","selectors","features","ɵɵProvidersFeature","decls","vars","consts","template","PlannerComponent_Template","PlannerComponent_Template_button_click_2_listener","ɵɵpipe","ɵɵtemplateRefExtractor","_r2","ɵɵreference","ɵɵproperty","ɵɵpipeBind1","userDisplayName$","directives","Toast","ButtonDirective","Ripple","Table","PrimeTemplate","NgIf","NgTemplateOutlet","Card","pipes","AsyncPipe","styles"],"mappings":"AAAA,SAASA,6BAAT,QAA8C,4DAA9C;AACA,SAASC,UAAT,QAA2B,2BAA3B;AACA,SAASC,aAAT,EAAwBC,gBAAxB,QAAgD,uBAAhD;AACA,SAASC,cAAT,QAA+B,aAA/B;AACA,SAASC,OAAT,QAAwB,wBAAxB;AACA,OAAO,KAAKC,EAAZ,MAAoB,eAApB;AACA,OAAO,KAAKC,EAAZ,MAAoB,8BAApB;AACA,OAAO,KAAKC,EAAZ,MAAoB,iBAApB;AACA,OAAO,KAAKC,EAAZ,MAAoB,uBAApB;AACA,OAAO,KAAKC,EAAZ,MAAoB,aAApB;AACA,OAAO,KAAKC,EAAZ,MAAoB,2BAApB;AACA,OAAO,KAAKC,EAAZ,MAAoB,eAApB;AACA,OAAO,KAAKC,EAAZ,MAAoB,gBAApB;AACA,OAAO,KAAKC,EAAZ,MAAoB,gBAApB;A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EAA+E,CAA/E,EAAkF,CAAlF,EAAqF9C,EAAE,CAACwG,sBAAxF;AACH;;AAAC,QAAI3F,EAAE,GAAG,CAAT,EAAY;AACV,YAAM4F,GAAG,GAAGzG,EAAE,CAAC0G,WAAH,CAAe,EAAf,CAAZ;;AACA1G,MAAAA,EAAE,CAAC+B,SAAH,CAAa,CAAb;AACA/B,MAAAA,EAAE,CAAC2G,UAAH,CAAc,OAAd,EAAuB7F,GAAG,CAAC0C,QAA3B,EAAqC,WAArC,EAAkD,IAAlD,EAAwD,MAAxD,EAAgE,CAAhE,EAAmE,YAAnE,EAAiF,IAAjF;AACAxD,MAAAA,EAAE,CAAC+B,SAAH,CAAa,CAAb;AACA/B,MAAAA,EAAE,CAAC2G,UAAH,CAAc,MAAd,EAAsB3G,EAAE,CAAC4G,WAAH,CAAe,CAAf,EAAkB,CAAlB,EAAqB9F,GAAG,CAAC+F,gBAAzB,CAAtB;AACA7G,MAAAA,EAAE,CAAC+B,SAAH,CAAa,CAAb;AACA/B,MAAAA,EAAE,CAAC2G,UAAH,CAAc,kBAAd,EAAkCF,GAAlC;AACH;AAAE,GAtBoD;AAsBlDK,EAAAA,UAAU,EAAE,CAACxG,EAAE,CAACyG,KAAJ,EAAWxG,EAAE,CAACyG,eAAd,EAA+BxG,EAAE,CAACyG,MAAlC,EAA0CxG,EAAE,CAACyG,KAA7C,EAAoD9G,EAAE,CAAC+G,aAAvD,EAAsEzG,GAAG,CAAC0G,IAA1E,EAAgF1G,GAAG,CAAC2G,gBAApF,EAAsG1G,GAAG,CAAC2G,IAA1G,CAtBsC;AAsB2EC,EAAAA,KAAK,EAAE,CAAC7G,GAAG,CAAC8G,SAAL,CAtBlF;AAsBmGC,EAAAA,MAAM,EAAE,CAAC,mtBAAD;AAtB3G,CAArB,CAAtC","sourcesContent":["import { CreateInitialPlannerComponent } from '../create-initial-planner/create-initial-planner.component';\r\nimport { PlannerDto } from '../_models/dto/plannerDto';\r\nimport { DialogService, DynamicDialogRef } from 'primeng/dynamicdialog';\r\nimport { MessageService } from 'primeng/api';\r\nimport { UserDto } from '../_models/dto/userDto';\r\nimport * as i0 from \"@angular/core\";\r\nimport * as i1 from \"../_services/planner.service\";\r\nimport * as i2 from \"@angular/router\";\r\nimport * as i3 from \"primeng/dynamicdialog\";\r\nimport * as i4 from \"primeng/api\";\r\nimport * as i5 from \"../_services/user.service\";\r\nimport * as i6 from \"primeng/toast\";\r\nimport * as i7 from \"primeng/button\";\r\nimport * as i8 from \"primeng/ripple\";\r\nimport * as i9 from \"primeng/table\";\r\nimport * as i10 from \"@angular/common\";\r\nimport * as i11 from \"primeng/card\";\r\nfunction PlannerComponent_ng_template_6_ng_template_2_Template(rf, ctx) { }\r\nconst _c0 = function () { return { \"margin-left\": \".5em\" }; };\r\nfunction PlannerComponent_ng_template_6_ng_template_5_Template(rf, ctx) { if (rf & 1) {\r\n    const _r9 = i0.ɵɵgetCurrentView();\r\n    i0.ɵɵelementStart(0, \"button\", 10);\r\n    i0.ɵɵlistener(\"click\", function PlannerComponent_ng_template_6_ng_template_5_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r9); const planner_r4 = i0.ɵɵnextContext().$implicit; const ctx_r7 = i0.ɵɵnextContext(); return ctx_r7.onClickEditPlannerGet(planner_r4.id); });\r\n    i0.ɵɵelementEnd();\r\n    i0.ɵɵelement(1, \"button\", 11);\r\n} if (rf & 2) {\r\n    i0.ɵɵadvance(1);\r\n    i0.ɵɵstyleMap(i0.ɵɵpureFunction0(2, _c0));\r\n} }\r\nconst _c1 = function () { return { width: \"360px\" }; };\r\nfunction PlannerComponent_ng_template_6_Template(rf, ctx) { if (rf & 1) {\r\n    i0.ɵɵelementStart(0, \"td\");\r\n    i0.ɵɵelementStart(1, \"p-card\", 7);\r\n    i0.ɵɵtemplate(2, PlannerComponent_ng_template_6_ng_template_2_Template, 0, 0, \"ng-template\", 8);\r\n    i0.ɵɵelementStart(3, \"p\");\r\n    i0.ɵɵtext(4);\r\n    i0.ɵɵelementEnd();\r\n    i0.ɵɵtemplate(5, PlannerComponent_ng_template_6_ng_template_5_Template, 2, 3, \"ng-template\", 9);\r\n    i0.ɵɵelementEnd();\r\n    i0.ɵɵelementEnd();\r\n} if (rf & 2) {\r\n    const planner_r4 = ctx.$implicit;\r\n    i0.ɵɵadvance(1);\r\n    i0.ɵɵstyleMap(i0.ɵɵpureFunction0(4, _c1));\r\n    i0.ɵɵpropertyInterpolate(\"header\", planner_r4.name);\r\n    i0.ɵɵadvance(3);\r\n    i0.ɵɵtextInterpolate(planner_r4.description);\r\n} }\r\nfunction PlannerComponent_div_7_Template(rf, ctx) { if (rf & 1) {\r\n    i0.ɵɵelementStart(0, \"div\");\r\n    i0.ɵɵelementStart(1, \"span\", 12);\r\n    i0.ɵɵtext(2);\r\n    i0.ɵɵelementEnd();\r\n    i0.ɵɵelementEnd();\r\n} if (rf & 2) {\r\n    const ctx_r1 = i0.ɵɵnextContext();\r\n    i0.ɵɵadvance(2);\r\n    i0.ɵɵtextInterpolate(ctx_r1.userDisplayName);\r\n} }\r\nfunction PlannerComponent_ng_template_9_Template(rf, ctx) { if (rf & 1) {\r\n    i0.ɵɵelementStart(0, \"div\");\r\n    i0.ɵɵelementStart(1, \"span\");\r\n    i0.ɵɵtext(2);\r\n    i0.ɵɵelementEnd();\r\n    i0.ɵɵelementEnd();\r\n} if (rf & 2) {\r\n    const a_r11 = ctx.userDisplayName;\r\n    i0.ɵɵadvance(2);\r\n    i0.ɵɵtextInterpolate(a_r11);\r\n} }\r\nexport class PlannerComponent {\r\n    constructor(plannerService, router, dialogService, primengConfig, messageService, userService) {\r\n        this.plannerService = plannerService;\r\n        this.router = router;\r\n        this.dialogService = dialogService;\r\n        this.primengConfig = primengConfig;\r\n        this.messageService = messageService;\r\n        this.userService = userService;\r\n        this.planners = [];\r\n        this.plannerDto = new PlannerDto();\r\n        this.ref = new DynamicDialogRef;\r\n        this.user = new UserDto();\r\n    }\r\n    ngOnInit() {\r\n        this.primengConfig.ripple = true;\r\n        let userDisplayName = sessionStorage.getItem(\"username\");\r\n        this.plannerService.getAllPlanners().subscribe(data => {\r\n            this.planners = data;\r\n        });\r\n    }\r\n    onClickEditPlannerGet(id) {\r\n        console.log(id);\r\n        this.plannerService.getPlannerById(id).subscribe(data => {\r\n            this.router.navigate(['edit/planner/', id]);\r\n        });\r\n    }\r\n    show() {\r\n        this.ref = this.dialogService.open(CreateInitialPlannerComponent, {\r\n            header: 'Create initial planner',\r\n            width: '70%',\r\n            contentStyle: { \"max-height\": \"500px\", \"overflow\": \"auto\" },\r\n            baseZIndex: 10000\r\n        });\r\n        this.ref.onClose.subscribe((planner) => {\r\n            console.log(\"NOVOKREIRANIOT NAME NA PLANNER: \" + planner.name);\r\n            this.plannerService.postInitialPlanner(planner).subscribe(data => {\r\n                console.log(data);\r\n            }, error => console.log('oops', error));\r\n            this.messageService.add({ severity: 'success', summary: 'The planner: ' + planner.name + ' has been created.' });\r\n        });\r\n    }\r\n}\r\nPlannerComponent.ɵfac = function PlannerComponent_Factory(t) { return new (t || PlannerComponent)(i0.ɵɵdirectiveInject(i1.PlannerService), i0.ɵɵdirectiveInject(i2.Router), i0.ɵɵdirectiveInject(i3.DialogService), i0.ɵɵdirectiveInject(i4.PrimeNGConfig), i0.ɵɵdirectiveInject(i4.MessageService), i0.ɵɵdirectiveInject(i5.UserService)); };\r\nPlannerComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PlannerComponent, selectors: [[\"app-planner\"]], features: [i0.ɵɵProvidersFeature([DialogService, MessageService])], decls: 11, vars: 8, consts: [[\"href\", \"https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/css/bootstrap.min.css\", \"rel\", \"stylesheet\", \"integrity\", \"sha384-+0n0xVW2eSR5OomGNYDnhzAbDsOXxcvSN1TPprVMTNDbiYZCxYbOOl7+AMvyTG2x\", \"crossorigin\", \"anonymous\"], [\"pButton\", \"\", \"pRipple\", \"\", \"type\", \"button\", \"label\", \"Create initial planner\", 1, \"p-button-help\", 3, \"click\"], [3, \"value\", \"paginator\", \"rows\", \"responsive\"], [\"pTemplate\", \"body\"], [4, \"ngIf\"], [3, \"ngTemplateOutlet\"], [\"selfie\", \"\"], [\"subheader\", \"Card Subheader\", \"styleClass\", \"p-card-shadow\", 3, \"header\"], [\"pTemplate\", \"header\"], [\"pTemplate\", \"footer\"], [\"pButton\", \"\", \"pRipple\", \"\", \"type\", \"button\", \"label\", \"Edit\", 1, \"p-button-outlined\", \"p-button-rounded\", \"p-button-help\", 3, \"click\"], [\"pButton\", \"\", \"pRipple\", \"\", \"type\", \"button\", \"icon\", \"pi pi-times\", \"label\", \"Delete\", 1, \"p-button-rounded\", \"p-button-danger\", \"p-button-outlined\"], [1, \"text-warn\"]], template: function PlannerComponent_Template(rf, ctx) { if (rf & 1) {\r\n        i0.ɵɵelement(0, \"link\", 0);\r\n        i0.ɵɵelement(1, \"p-toast\");\r\n        i0.ɵɵelementStart(2, \"button\", 1);\r\n        i0.ɵɵlistener(\"click\", function PlannerComponent_Template_button_click_2_listener() { return ctx.show(); });\r\n        i0.ɵɵelementEnd();\r\n        i0.ɵɵelement(3, \"br\");\r\n        i0.ɵɵelement(4, \"br\");\r\n        i0.ɵɵelementStart(5, \"p-table\", 2);\r\n        i0.ɵɵtemplate(6, PlannerComponent_ng_template_6_Template, 6, 5, \"ng-template\", 3);\r\n        i0.ɵɵelementEnd();\r\n        i0.ɵɵtemplate(7, PlannerComponent_div_7_Template, 3, 1, \"div\", 4);\r\n        i0.ɵɵpipe(8, \"async\");\r\n        i0.ɵɵtemplate(9, PlannerComponent_ng_template_9_Template, 3, 1, \"ng-template\", 5, 6, i0.ɵɵtemplateRefExtractor);\r\n    } if (rf & 2) {\r\n        const _r2 = i0.ɵɵreference(10);\r\n        i0.ɵɵadvance(5);\r\n        i0.ɵɵproperty(\"value\", ctx.planners)(\"paginator\", true)(\"rows\", 3)(\"responsive\", true);\r\n        i0.ɵɵadvance(2);\r\n        i0.ɵɵproperty(\"ngIf\", i0.ɵɵpipeBind1(8, 6, ctx.userDisplayName$));\r\n        i0.ɵɵadvance(2);\r\n        i0.ɵɵproperty(\"ngTemplateOutlet\", _r2);\r\n    } }, directives: [i6.Toast, i7.ButtonDirective, i8.Ripple, i9.Table, i4.PrimeTemplate, i10.NgIf, i10.NgTemplateOutlet, i11.Card], pipes: [i10.AsyncPipe], styles: [\"mat-card[_ngcontent-%COMP%]  {   \\r\\n  width: 280px;   \\r\\n  height: 160px; \\r\\n\\r\\n}\\r\\n.example-card[_ngcontent-%COMP%]   button[_ngcontent-%COMP%] {\\r\\n  box-shadow:none !important;\\r\\n  cursor:pointer;\\r\\n}\\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInBsYW5uZXIuY29tcG9uZW50LmNzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNFLFlBQVk7RUFDWixhQUFhOztBQUVmO0FBQ0E7RUFDRSwwQkFBMEI7RUFDMUIsY0FBYztBQUNoQiIsImZpbGUiOiJwbGFubmVyLmNvbXBvbmVudC5jc3MiLCJzb3VyY2VzQ29udGVudCI6WyJtYXQtY2FyZCAgeyAgIFxyXG4gIHdpZHRoOiAyODBweDsgICBcclxuICBoZWlnaHQ6IDE2MHB4OyBcclxuXHJcbn1cclxuLmV4YW1wbGUtY2FyZCBidXR0b24ge1xyXG4gIGJveC1zaGFkb3c6bm9uZSAhaW1wb3J0YW50O1xyXG4gIGN1cnNvcjpwb2ludGVyO1xyXG59Il19 */\"] });\r\n"]},"metadata":{},"sourceType":"module"}
Index: trip-planner-front/node_modules/.cache/babel-webpack/3f69043a56debce6279634f8a1ba288d.json
===================================================================
--- trip-planner-front/node_modules/.cache/babel-webpack/3f69043a56debce6279634f8a1ba288d.json	(revision bdd64917749115bbdd228a9569a675d590c112e3)
+++ trip-planner-front/node_modules/.cache/babel-webpack/3f69043a56debce6279634f8a1ba288d.json	(revision bdd64917749115bbdd228a9569a675d590c112e3)
@@ -0,0 +1,1 @@
+{"ast":null,"code":"import { CreateInitialPlannerComponent } from '../create-initial-planner/create-initial-planner.component';\nimport { PlannerDto } from '../_models/dto/plannerDto';\nimport { DialogService, DynamicDialogRef } from 'primeng/dynamicdialog';\nimport { MessageService } from 'primeng/api';\nimport { UserDto } from '../_models/dto/userDto';\nimport * as i0 from \"@angular/core\";\nimport * as i1 from \"../_services/planner.service\";\nimport * as i2 from \"@angular/router\";\nimport * as i3 from \"primeng/dynamicdialog\";\nimport * as i4 from \"primeng/api\";\nimport * as i5 from \"../_services/user.service\";\nimport * as i6 from \"primeng/toast\";\nimport * as i7 from \"primeng/button\";\nimport * as i8 from \"primeng/ripple\";\nimport * as i9 from \"primeng/table\";\nimport * as i10 from \"@angular/common\";\nimport * as i11 from \"primeng/card\";\n\nfunction PlannerComponent_ng_template_6_ng_template_2_Template(rf, ctx) {}\n\nconst _c0 = function () {\n  return {\n    \"margin-left\": \".5em\"\n  };\n};\n\nfunction PlannerComponent_ng_template_6_ng_template_5_Template(rf, ctx) {\n  if (rf & 1) {\n    const _r7 = i0.ɵɵgetCurrentView();\n\n    i0.ɵɵelementStart(0, \"button\", 9);\n    i0.ɵɵlistener(\"click\", function PlannerComponent_ng_template_6_ng_template_5_Template_button_click_0_listener() {\n      i0.ɵɵrestoreView(_r7);\n      const planner_r2 = i0.ɵɵnextContext().$implicit;\n      const ctx_r5 = i0.ɵɵnextContext();\n      return ctx_r5.onClickEditPlannerGet(planner_r2.id);\n    });\n    i0.ɵɵelementEnd();\n    i0.ɵɵelement(1, \"button\", 10);\n  }\n\n  if (rf & 2) {\n    i0.ɵɵadvance(1);\n    i0.ɵɵstyleMap(i0.ɵɵpureFunction0(2, _c0));\n  }\n}\n\nconst _c1 = function () {\n  return {\n    width: \"360px\"\n  };\n};\n\nfunction PlannerComponent_ng_template_6_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelementStart(0, \"td\");\n    i0.ɵɵelementStart(1, \"p-card\", 6);\n    i0.ɵɵtemplate(2, PlannerComponent_ng_template_6_ng_template_2_Template, 0, 0, \"ng-template\", 7);\n    i0.ɵɵelementStart(3, \"p\");\n    i0.ɵɵtext(4);\n    i0.ɵɵelementEnd();\n    i0.ɵɵtemplate(5, PlannerComponent_ng_template_6_ng_template_5_Template, 2, 3, \"ng-template\", 8);\n    i0.ɵɵelementEnd();\n    i0.ɵɵelementEnd();\n  }\n\n  if (rf & 2) {\n    const planner_r2 = ctx.$implicit;\n    i0.ɵɵadvance(1);\n    i0.ɵɵstyleMap(i0.ɵɵpureFunction0(4, _c1));\n    i0.ɵɵpropertyInterpolate(\"header\", planner_r2.name);\n    i0.ɵɵadvance(3);\n    i0.ɵɵtextInterpolate(planner_r2.description);\n  }\n}\n\nfunction PlannerComponent_div_9_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelementStart(0, \"div\");\n    i0.ɵɵelementStart(1, \"span\", 11);\n    i0.ɵɵtext(2);\n    i0.ɵɵelementEnd();\n    i0.ɵɵelementEnd();\n  }\n\n  if (rf & 2) {\n    const ctx_r1 = i0.ɵɵnextContext();\n    i0.ɵɵadvance(2);\n    i0.ɵɵtextInterpolate(ctx_r1.userDisplayName.message);\n  }\n}\n\nexport class PlannerComponent {\n  constructor(plannerService, router, dialogService, primengConfig, messageService, userService) {\n    this.plannerService = plannerService;\n    this.router = router;\n    this.dialogService = dialogService;\n    this.primengConfig = primengConfig;\n    this.messageService = messageService;\n    this.userService = userService;\n    this.planners = [];\n    this.plannerDto = new PlannerDto();\n    this.ref = new DynamicDialogRef();\n    this.user = new UserDto();\n  }\n\n  ngOnInit() {\n    this.primengConfig.ripple = true;\n    let userDisplayName = sessionStorage.getItem(\"username\");\n    this.plannerService.getAllPlanners().subscribe(data => {\n      this.planners = data;\n    });\n  }\n\n  onClickEditPlannerGet(id) {\n    console.log(id);\n    this.plannerService.getPlannerById(id).subscribe(data => {\n      this.router.navigate(['edit/planner/', id]);\n    });\n  }\n\n  show() {\n    this.ref = this.dialogService.open(CreateInitialPlannerComponent, {\n      header: 'Create initial planner',\n      width: '70%',\n      contentStyle: {\n        \"max-height\": \"500px\",\n        \"overflow\": \"auto\"\n      },\n      baseZIndex: 10000\n    });\n    this.ref.onClose.subscribe(planner => {\n      console.log(\"NOVOKREIRANIOT NAME NA PLANNER: \" + planner.name);\n      this.plannerService.postInitialPlanner(planner).subscribe(data => {\n        console.log(data);\n      }, error => console.log('oops', error));\n      this.messageService.add({\n        severity: 'success',\n        summary: 'The planner: ' + planner.name + ' has been created.'\n      });\n    });\n  }\n\n}\n\nPlannerComponent.ɵfac = function PlannerComponent_Factory(t) {\n  return new (t || PlannerComponent)(i0.ɵɵdirectiveInject(i1.PlannerService), i0.ɵɵdirectiveInject(i2.Router), i0.ɵɵdirectiveInject(i3.DialogService), i0.ɵɵdirectiveInject(i4.PrimeNGConfig), i0.ɵɵdirectiveInject(i4.MessageService), i0.ɵɵdirectiveInject(i5.UserService));\n};\n\nPlannerComponent.ɵcmp = /*@__PURE__*/i0.ɵɵdefineComponent({\n  type: PlannerComponent,\n  selectors: [[\"app-planner\"]],\n  features: [i0.ɵɵProvidersFeature([DialogService, MessageService])],\n  decls: 11,\n  vars: 8,\n  consts: [[\"href\", \"https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/css/bootstrap.min.css\", \"rel\", \"stylesheet\", \"integrity\", \"sha384-+0n0xVW2eSR5OomGNYDnhzAbDsOXxcvSN1TPprVMTNDbiYZCxYbOOl7+AMvyTG2x\", \"crossorigin\", \"anonymous\"], [\"pButton\", \"\", \"pRipple\", \"\", \"type\", \"button\", \"label\", \"Create initial planner\", 1, \"p-button-help\", 3, \"click\"], [3, \"value\", \"paginator\", \"rows\", \"responsive\"], [\"pTemplate\", \"body\"], [1, \"username\"], [4, \"ngIf\"], [\"subheader\", \"Card Subheader\", \"styleClass\", \"p-card-shadow\", 3, \"header\"], [\"pTemplate\", \"header\"], [\"pTemplate\", \"footer\"], [\"pButton\", \"\", \"pRipple\", \"\", \"type\", \"button\", \"label\", \"Edit\", 1, \"p-button-outlined\", \"p-button-rounded\", \"p-button-help\", 3, \"click\"], [\"pButton\", \"\", \"pRipple\", \"\", \"type\", \"button\", \"icon\", \"pi pi-times\", \"label\", \"Delete\", 1, \"p-button-rounded\", \"p-button-danger\", \"p-button-outlined\"], [1, \"text-warn\"]],\n  template: function PlannerComponent_Template(rf, ctx) {\n    if (rf & 1) {\n      i0.ɵɵelement(0, \"link\", 0);\n      i0.ɵɵelement(1, \"p-toast\");\n      i0.ɵɵelementStart(2, \"button\", 1);\n      i0.ɵɵlistener(\"click\", function PlannerComponent_Template_button_click_2_listener() {\n        return ctx.show();\n      });\n      i0.ɵɵelementEnd();\n      i0.ɵɵelement(3, \"br\");\n      i0.ɵɵelement(4, \"br\");\n      i0.ɵɵelementStart(5, \"p-table\", 2);\n      i0.ɵɵtemplate(6, PlannerComponent_ng_template_6_Template, 6, 5, \"ng-template\", 3);\n      i0.ɵɵelementEnd();\n      i0.ɵɵelementStart(7, \"div\", 4);\n      i0.ɵɵtext(8);\n      i0.ɵɵelementEnd();\n      i0.ɵɵtemplate(9, PlannerComponent_div_9_Template, 3, 1, \"div\", 5);\n      i0.ɵɵpipe(10, \"async\");\n    }\n\n    if (rf & 2) {\n      i0.ɵɵadvance(5);\n      i0.ɵɵproperty(\"value\", ctx.planners)(\"paginator\", true)(\"rows\", 3)(\"responsive\", true);\n      i0.ɵɵadvance(3);\n      i0.ɵɵtextInterpolate1(\"Username: \", ctx.userDisplayName, \"\");\n      i0.ɵɵadvance(1);\n      i0.ɵɵproperty(\"ngIf\", i0.ɵɵpipeBind1(10, 6, ctx.userDisplayName$));\n    }\n  },\n  directives: [i6.Toast, i7.ButtonDirective, i8.Ripple, i9.Table, i4.PrimeTemplate, i10.NgIf, i11.Card],\n  pipes: [i10.AsyncPipe],\n  styles: [\"mat-card[_ngcontent-%COMP%]  {   \\r\\n  width: 280px;   \\r\\n  height: 160px; \\r\\n\\r\\n}\\r\\n.example-card[_ngcontent-%COMP%]   button[_ngcontent-%COMP%] {\\r\\n  box-shadow:none !important;\\r\\n  cursor:pointer;\\r\\n}\\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInBsYW5uZXIuY29tcG9uZW50LmNzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNFLFlBQVk7RUFDWixhQUFhOztBQUVmO0FBQ0E7RUFDRSwwQkFBMEI7RUFDMUIsY0FBYztBQUNoQiIsImZpbGUiOiJwbGFubmVyLmNvbXBvbmVudC5jc3MiLCJzb3VyY2VzQ29udGVudCI6WyJtYXQtY2FyZCAgeyAgIFxyXG4gIHdpZHRoOiAyODBweDsgICBcclxuICBoZWlnaHQ6IDE2MHB4OyBcclxuXHJcbn1cclxuLmV4YW1wbGUtY2FyZCBidXR0b24ge1xyXG4gIGJveC1zaGFkb3c6bm9uZSAhaW1wb3J0YW50O1xyXG4gIGN1cnNvcjpwb2ludGVyO1xyXG59Il19 */\"]\n});","map":{"version":3,"sources":["C:/Users/DELL/Desktop/bachelor-thesis/trip-planner-front/src/app/planner/planner.component.ts"],"names":["CreateInitialPlannerComponent","PlannerDto","DialogService","DynamicDialogRef","MessageService","UserDto","i0","i1","i2","i3","i4","i5","i6","i7","i8","i9","i10","i11","PlannerComponent_ng_template_6_ng_template_2_Template","rf","ctx","_c0","PlannerComponent_ng_template_6_ng_template_5_Template","_r7","ɵɵgetCurrentView","ɵɵelementStart","ɵɵlistener","PlannerComponent_ng_template_6_ng_template_5_Template_button_click_0_listener","ɵɵrestoreView","planner_r2","ɵɵnextContext","$implicit","ctx_r5","onClickEditPlannerGet","id","ɵɵelementEnd","ɵɵelement","ɵɵadvance","ɵɵstyleMap","ɵɵpureFunction0","_c1","width","PlannerComponent_ng_template_6_Template","ɵɵtemplate","ɵɵtext","ɵɵpropertyInterpolate","name","ɵɵtextInterpolate","description","PlannerComponent_div_9_Template","ctx_r1","userDisplayName","message","PlannerComponent","constructor","plannerService","router","dialogService","primengConfig","messageService","userService","planners","plannerDto","ref","user","ngOnInit","ripple","sessionStorage","getItem","getAllPlanners","subscribe","data","console","log","getPlannerById","navigate","show","open","header","contentStyle","baseZIndex","onClose","planner","postInitialPlanner","error","add","severity","summary","ɵfac","PlannerComponent_Factory","t","ɵɵdirectiveInject","PlannerService","Router","PrimeNGConfig","UserService","ɵcmp","ɵɵdefineComponent","type","selectors","features","ɵɵProvidersFeature","decls","vars","consts","template","PlannerComponent_Template","PlannerComponent_Template_button_click_2_listener","ɵɵpipe","ɵɵproperty","ɵɵtextInterpolate1","ɵɵpipeBind1","userDisplayName$","directives","Toast","ButtonDirective","Ripple","Table","PrimeTemplate","NgIf","Card","pipes","AsyncPipe","styles"],"mappings":"AAAA,SAASA,6BAAT,QAA8C,4DAA9C;AACA,SAASC,UAAT,QAA2B,2BAA3B;AACA,SAASC,aAAT,EAAwBC,gBAAxB,QAAgD,uBAAhD;AACA,SAASC,cAAT,QAA+B,aAA/B;AACA,SAASC,OAAT,QAAwB,wBAAxB;AACA,OAAO,KAAKC,EAAZ,MAAoB,eAApB;AACA,OAAO,KAAKC,EAAZ,MAAoB,8BAApB;AACA,OAAO,KAAKC,EAAZ,MAAoB,iBAApB;AACA,OAAO,KAAKC,EAAZ,MAAoB,uBAApB;AACA,OAAO,KAAKC,EAAZ,MAAoB,aAApB;AACA,OAAO,KAAKC,EAAZ,MAAoB,2BAApB;AACA,OAAO,KAAKC,EAAZ,MAAoB,eAApB;AACA,OAAO,KAAKC,EAAZ,MAAoB,gBAApB;AACA,OAAO,KAAKC,EAAZ,MAAoB,gBAApB;AACA,OAAO,KAAKC,EAAZ,MAAoB,eAApB;AACA,OAAO,KAAKC,GAAZ,MAAqB,iBAArB;AACA,OAAO,KAAKC,GAAZ,MAAqB,cAArB;;AACA,SAASC,qDAAT,CAA+DC,EAA/D,EAAmEC,GAAnE,EAAwE,CAAG;;AAC3E,MAAMC,GAA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MAAlC,EAA0CrG,EAAE,CAACsG,KAA7C,EAAoD3G,EAAE,CAAC4G,aAAvD,EAAsEtG,GAAG,CAACuG,IAA1E,EAAgFtG,GAAG,CAACuG,IAApF,CAvBsC;AAuBqDC,EAAAA,KAAK,EAAE,CAACzG,GAAG,CAAC0G,SAAL,CAvB5D;AAuB6EC,EAAAA,MAAM,EAAE,CAAC,mtBAAD;AAvBrF,CAArB,CAAtC","sourcesContent":["import { CreateInitialPlannerComponent } from '../create-initial-planner/create-initial-planner.component';\r\nimport { PlannerDto } from '../_models/dto/plannerDto';\r\nimport { DialogService, DynamicDialogRef } from 'primeng/dynamicdialog';\r\nimport { MessageService } from 'primeng/api';\r\nimport { UserDto } from '../_models/dto/userDto';\r\nimport * as i0 from \"@angular/core\";\r\nimport * as i1 from \"../_services/planner.service\";\r\nimport * as i2 from \"@angular/router\";\r\nimport * as i3 from \"primeng/dynamicdialog\";\r\nimport * as i4 from \"primeng/api\";\r\nimport * as i5 from \"../_services/user.service\";\r\nimport * as i6 from \"primeng/toast\";\r\nimport * as i7 from \"primeng/button\";\r\nimport * as i8 from \"primeng/ripple\";\r\nimport * as i9 from \"primeng/table\";\r\nimport * as i10 from \"@angular/common\";\r\nimport * as i11 from \"primeng/card\";\r\nfunction PlannerComponent_ng_template_6_ng_template_2_Template(rf, ctx) { }\r\nconst _c0 = function () { return { \"margin-left\": \".5em\" }; };\r\nfunction PlannerComponent_ng_template_6_ng_template_5_Template(rf, ctx) { if (rf & 1) {\r\n    const _r7 = i0.ɵɵgetCurrentView();\r\n    i0.ɵɵelementStart(0, \"button\", 9);\r\n    i0.ɵɵlistener(\"click\", function PlannerComponent_ng_template_6_ng_template_5_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r7); const planner_r2 = i0.ɵɵnextContext().$implicit; const ctx_r5 = i0.ɵɵnextContext(); return ctx_r5.onClickEditPlannerGet(planner_r2.id); });\r\n    i0.ɵɵelementEnd();\r\n    i0.ɵɵelement(1, \"button\", 10);\r\n} if (rf & 2) {\r\n    i0.ɵɵadvance(1);\r\n    i0.ɵɵstyleMap(i0.ɵɵpureFunction0(2, _c0));\r\n} }\r\nconst _c1 = function () { return { width: \"360px\" }; };\r\nfunction PlannerComponent_ng_template_6_Template(rf, ctx) { if (rf & 1) {\r\n    i0.ɵɵelementStart(0, \"td\");\r\n    i0.ɵɵelementStart(1, \"p-card\", 6);\r\n    i0.ɵɵtemplate(2, PlannerComponent_ng_template_6_ng_template_2_Template, 0, 0, \"ng-template\", 7);\r\n    i0.ɵɵelementStart(3, \"p\");\r\n    i0.ɵɵtext(4);\r\n    i0.ɵɵelementEnd();\r\n    i0.ɵɵtemplate(5, PlannerComponent_ng_template_6_ng_template_5_Template, 2, 3, \"ng-template\", 8);\r\n    i0.ɵɵelementEnd();\r\n    i0.ɵɵelementEnd();\r\n} if (rf & 2) {\r\n    const planner_r2 = ctx.$implicit;\r\n    i0.ɵɵadvance(1);\r\n    i0.ɵɵstyleMap(i0.ɵɵpureFunction0(4, _c1));\r\n    i0.ɵɵpropertyInterpolate(\"header\", planner_r2.name);\r\n    i0.ɵɵadvance(3);\r\n    i0.ɵɵtextInterpolate(planner_r2.description);\r\n} }\r\nfunction PlannerComponent_div_9_Template(rf, ctx) { if (rf & 1) {\r\n    i0.ɵɵelementStart(0, \"div\");\r\n    i0.ɵɵelementStart(1, \"span\", 11);\r\n    i0.ɵɵtext(2);\r\n    i0.ɵɵelementEnd();\r\n    i0.ɵɵelementEnd();\r\n} if (rf & 2) {\r\n    const ctx_r1 = i0.ɵɵnextContext();\r\n    i0.ɵɵadvance(2);\r\n    i0.ɵɵtextInterpolate(ctx_r1.userDisplayName.message);\r\n} }\r\nexport class PlannerComponent {\r\n    constructor(plannerService, router, dialogService, primengConfig, messageService, userService) {\r\n        this.plannerService = plannerService;\r\n        this.router = router;\r\n        this.dialogService = dialogService;\r\n        this.primengConfig = primengConfig;\r\n        this.messageService = messageService;\r\n        this.userService = userService;\r\n        this.planners = [];\r\n        this.plannerDto = new PlannerDto();\r\n        this.ref = new DynamicDialogRef;\r\n        this.user = new UserDto();\r\n    }\r\n    ngOnInit() {\r\n        this.primengConfig.ripple = true;\r\n        let userDisplayName = sessionStorage.getItem(\"username\");\r\n        this.plannerService.getAllPlanners().subscribe(data => {\r\n            this.planners = data;\r\n        });\r\n    }\r\n    onClickEditPlannerGet(id) {\r\n        console.log(id);\r\n        this.plannerService.getPlannerById(id).subscribe(data => {\r\n            this.router.navigate(['edit/planner/', id]);\r\n        });\r\n    }\r\n    show() {\r\n        this.ref = this.dialogService.open(CreateInitialPlannerComponent, {\r\n            header: 'Create initial planner',\r\n            width: '70%',\r\n            contentStyle: { \"max-height\": \"500px\", \"overflow\": \"auto\" },\r\n            baseZIndex: 10000\r\n        });\r\n        this.ref.onClose.subscribe((planner) => {\r\n            console.log(\"NOVOKREIRANIOT NAME NA PLANNER: \" + planner.name);\r\n            this.plannerService.postInitialPlanner(planner).subscribe(data => {\r\n                console.log(data);\r\n            }, error => console.log('oops', error));\r\n            this.messageService.add({ severity: 'success', summary: 'The planner: ' + planner.name + ' has been created.' });\r\n        });\r\n    }\r\n}\r\nPlannerComponent.ɵfac = function PlannerComponent_Factory(t) { return new (t || PlannerComponent)(i0.ɵɵdirectiveInject(i1.PlannerService), i0.ɵɵdirectiveInject(i2.Router), i0.ɵɵdirectiveInject(i3.DialogService), i0.ɵɵdirectiveInject(i4.PrimeNGConfig), i0.ɵɵdirectiveInject(i4.MessageService), i0.ɵɵdirectiveInject(i5.UserService)); };\r\nPlannerComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PlannerComponent, selectors: [[\"app-planner\"]], features: [i0.ɵɵProvidersFeature([DialogService, MessageService])], decls: 11, vars: 8, consts: [[\"href\", \"https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/css/bootstrap.min.css\", \"rel\", \"stylesheet\", \"integrity\", \"sha384-+0n0xVW2eSR5OomGNYDnhzAbDsOXxcvSN1TPprVMTNDbiYZCxYbOOl7+AMvyTG2x\", \"crossorigin\", \"anonymous\"], [\"pButton\", \"\", \"pRipple\", \"\", \"type\", \"button\", \"label\", \"Create initial planner\", 1, \"p-button-help\", 3, \"click\"], [3, \"value\", \"paginator\", \"rows\", \"responsive\"], [\"pTemplate\", \"body\"], [1, \"username\"], [4, \"ngIf\"], [\"subheader\", \"Card Subheader\", \"styleClass\", \"p-card-shadow\", 3, \"header\"], [\"pTemplate\", \"header\"], [\"pTemplate\", \"footer\"], [\"pButton\", \"\", \"pRipple\", \"\", \"type\", \"button\", \"label\", \"Edit\", 1, \"p-button-outlined\", \"p-button-rounded\", \"p-button-help\", 3, \"click\"], [\"pButton\", \"\", \"pRipple\", \"\", \"type\", \"button\", \"icon\", \"pi pi-times\", \"label\", \"Delete\", 1, \"p-button-rounded\", \"p-button-danger\", \"p-button-outlined\"], [1, \"text-warn\"]], template: function PlannerComponent_Template(rf, ctx) { if (rf & 1) {\r\n        i0.ɵɵelement(0, \"link\", 0);\r\n        i0.ɵɵelement(1, \"p-toast\");\r\n        i0.ɵɵelementStart(2, \"button\", 1);\r\n        i0.ɵɵlistener(\"click\", function PlannerComponent_Template_button_click_2_listener() { return ctx.show(); });\r\n        i0.ɵɵelementEnd();\r\n        i0.ɵɵelement(3, \"br\");\r\n        i0.ɵɵelement(4, \"br\");\r\n        i0.ɵɵelementStart(5, \"p-table\", 2);\r\n        i0.ɵɵtemplate(6, PlannerComponent_ng_template_6_Template, 6, 5, \"ng-template\", 3);\r\n        i0.ɵɵelementEnd();\r\n        i0.ɵɵelementStart(7, \"div\", 4);\r\n        i0.ɵɵtext(8);\r\n        i0.ɵɵelementEnd();\r\n        i0.ɵɵtemplate(9, PlannerComponent_div_9_Template, 3, 1, \"div\", 5);\r\n        i0.ɵɵpipe(10, \"async\");\r\n    } if (rf & 2) {\r\n        i0.ɵɵadvance(5);\r\n        i0.ɵɵproperty(\"value\", ctx.planners)(\"paginator\", true)(\"rows\", 3)(\"responsive\", true);\r\n        i0.ɵɵadvance(3);\r\n        i0.ɵɵtextInterpolate1(\"Username: \", ctx.userDisplayName, \"\");\r\n        i0.ɵɵadvance(1);\r\n        i0.ɵɵproperty(\"ngIf\", i0.ɵɵpipeBind1(10, 6, ctx.userDisplayName$));\r\n    } }, directives: [i6.Toast, i7.ButtonDirective, i8.Ripple, i9.Table, i4.PrimeTemplate, i10.NgIf, i11.Card], pipes: [i10.AsyncPipe], styles: [\"mat-card[_ngcontent-%COMP%]  {   \\r\\n  width: 280px;   \\r\\n  height: 160px; \\r\\n\\r\\n}\\r\\n.example-card[_ngcontent-%COMP%]   button[_ngcontent-%COMP%] {\\r\\n  box-shadow:none !important;\\r\\n  cursor:pointer;\\r\\n}\\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInBsYW5uZXIuY29tcG9uZW50LmNzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNFLFlBQVk7RUFDWixhQUFhOztBQUVmO0FBQ0E7RUFDRSwwQkFBMEI7RUFDMUIsY0FBYztBQUNoQiIsImZpbGUiOiJwbGFubmVyLmNvbXBvbmVudC5jc3MiLCJzb3VyY2VzQ29udGVudCI6WyJtYXQtY2FyZCAgeyAgIFxyXG4gIHdpZHRoOiAyODBweDsgICBcclxuICBoZWlnaHQ6IDE2MHB4OyBcclxuXHJcbn1cclxuLmV4YW1wbGUtY2FyZCBidXR0b24ge1xyXG4gIGJveC1zaGFkb3c6bm9uZSAhaW1wb3J0YW50O1xyXG4gIGN1cnNvcjpwb2ludGVyO1xyXG59Il19 */\"] });\r\n"]},"metadata":{},"sourceType":"module"}
Index: trip-planner-front/node_modules/.cache/babel-webpack/551905fb67f2c0719e26738d849128e0.json
===================================================================
--- trip-planner-front/node_modules/.cache/babel-webpack/551905fb67f2c0719e26738d849128e0.json	(revision bdd64917749115bbdd228a9569a675d590c112e3)
+++ trip-planner-front/node_modules/.cache/babel-webpack/551905fb67f2c0719e26738d849128e0.json	(revision bdd64917749115bbdd228a9569a675d590c112e3)
@@ -0,0 +1,1 @@
+{"ast":null,"code":"import { CreateInitialPlannerComponent } from '../create-initial-planner/create-initial-planner.component';\nimport { PlannerDto } from '../_models/dto/plannerDto';\nimport { DialogService, DynamicDialogRef } from 'primeng/dynamicdialog';\nimport { MessageService } from 'primeng/api';\nimport { UserDto } from '../_models/dto/userDto';\nimport * as i0 from \"@angular/core\";\nimport * as i1 from \"../_services/planner.service\";\nimport * as i2 from \"@angular/router\";\nimport * as i3 from \"primeng/dynamicdialog\";\nimport * as i4 from \"primeng/api\";\nimport * as i5 from \"../_services/user.service\";\nimport * as i6 from \"primeng/toast\";\nimport * as i7 from \"primeng/button\";\nimport * as i8 from \"primeng/ripple\";\nimport * as i9 from \"primeng/table\";\nimport * as i10 from \"@angular/common\";\nimport * as i11 from \"primeng/card\";\n\nfunction PlannerComponent_ng_template_6_ng_template_2_Template(rf, ctx) {}\n\nconst _c0 = function () {\n  return {\n    \"margin-left\": \".5em\"\n  };\n};\n\nfunction PlannerComponent_ng_template_6_ng_template_5_Template(rf, ctx) {\n  if (rf & 1) {\n    const _r7 = i0.ɵɵgetCurrentView();\n\n    i0.ɵɵelementStart(0, \"button\", 9);\n    i0.ɵɵlistener(\"click\", function PlannerComponent_ng_template_6_ng_template_5_Template_button_click_0_listener() {\n      i0.ɵɵrestoreView(_r7);\n      const planner_r2 = i0.ɵɵnextContext().$implicit;\n      const ctx_r5 = i0.ɵɵnextContext();\n      return ctx_r5.onClickEditPlannerGet(planner_r2.id);\n    });\n    i0.ɵɵelementEnd();\n    i0.ɵɵelement(1, \"button\", 10);\n  }\n\n  if (rf & 2) {\n    i0.ɵɵadvance(1);\n    i0.ɵɵstyleMap(i0.ɵɵpureFunction0(2, _c0));\n  }\n}\n\nconst _c1 = function () {\n  return {\n    width: \"360px\"\n  };\n};\n\nfunction PlannerComponent_ng_template_6_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelementStart(0, \"td\");\n    i0.ɵɵelementStart(1, \"p-card\", 6);\n    i0.ɵɵtemplate(2, PlannerComponent_ng_template_6_ng_template_2_Template, 0, 0, \"ng-template\", 7);\n    i0.ɵɵelementStart(3, \"p\");\n    i0.ɵɵtext(4);\n    i0.ɵɵelementEnd();\n    i0.ɵɵtemplate(5, PlannerComponent_ng_template_6_ng_template_5_Template, 2, 3, \"ng-template\", 8);\n    i0.ɵɵelementEnd();\n    i0.ɵɵelementEnd();\n  }\n\n  if (rf & 2) {\n    const planner_r2 = ctx.$implicit;\n    i0.ɵɵadvance(1);\n    i0.ɵɵstyleMap(i0.ɵɵpureFunction0(4, _c1));\n    i0.ɵɵpropertyInterpolate(\"header\", planner_r2.name);\n    i0.ɵɵadvance(3);\n    i0.ɵɵtextInterpolate(planner_r2.description);\n  }\n}\n\nfunction PlannerComponent_div_9_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelementStart(0, \"div\");\n    i0.ɵɵelementStart(1, \"span\", 11);\n    i0.ɵɵtext(2);\n    i0.ɵɵelementEnd();\n    i0.ɵɵelementEnd();\n  }\n\n  if (rf & 2) {\n    const ctx_r1 = i0.ɵɵnextContext();\n    i0.ɵɵadvance(2);\n    i0.ɵɵtextInterpolate(ctx_r1.userDisplayName);\n  }\n}\n\nexport class PlannerComponent {\n  constructor(plannerService, router, dialogService, primengConfig, messageService, userService) {\n    this.plannerService = plannerService;\n    this.router = router;\n    this.dialogService = dialogService;\n    this.primengConfig = primengConfig;\n    this.messageService = messageService;\n    this.userService = userService;\n    this.planners = [];\n    this.plannerDto = new PlannerDto();\n    this.ref = new DynamicDialogRef();\n    this.user = new UserDto();\n  }\n\n  ngOnInit() {\n    this.primengConfig.ripple = true;\n    let userDisplayName = sessionStorage.getItem(\"username\");\n    this.plannerService.getAllPlanners().subscribe(data => {\n      this.planners = data;\n    });\n  }\n\n  onClickEditPlannerGet(id) {\n    console.log(id);\n    this.plannerService.getPlannerById(id).subscribe(data => {\n      this.router.navigate(['edit/planner/', id]);\n    });\n  }\n\n  show() {\n    this.ref = this.dialogService.open(CreateInitialPlannerComponent, {\n      header: 'Create initial planner',\n      width: '70%',\n      contentStyle: {\n        \"max-height\": \"500px\",\n        \"overflow\": \"auto\"\n      },\n      baseZIndex: 10000\n    });\n    this.ref.onClose.subscribe(planner => {\n      console.log(\"NOVOKREIRANIOT NAME NA PLANNER: \" + planner.name);\n      this.plannerService.postInitialPlanner(planner).subscribe(data => {\n        console.log(data);\n      }, error => console.log('oops', error));\n      this.messageService.add({\n        severity: 'success',\n        summary: 'The planner: ' + planner.name + ' has been created.'\n      });\n    });\n  }\n\n}\n\nPlannerComponent.ɵfac = function PlannerComponent_Factory(t) {\n  return new (t || PlannerComponent)(i0.ɵɵdirectiveInject(i1.PlannerService), i0.ɵɵdirectiveInject(i2.Router), i0.ɵɵdirectiveInject(i3.DialogService), i0.ɵɵdirectiveInject(i4.PrimeNGConfig), i0.ɵɵdirectiveInject(i4.MessageService), i0.ɵɵdirectiveInject(i5.UserService));\n};\n\nPlannerComponent.ɵcmp = /*@__PURE__*/i0.ɵɵdefineComponent({\n  type: PlannerComponent,\n  selectors: [[\"app-planner\"]],\n  features: [i0.ɵɵProvidersFeature([DialogService, MessageService])],\n  decls: 11,\n  vars: 8,\n  consts: [[\"href\", \"https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/css/bootstrap.min.css\", \"rel\", \"stylesheet\", \"integrity\", \"sha384-+0n0xVW2eSR5OomGNYDnhzAbDsOXxcvSN1TPprVMTNDbiYZCxYbOOl7+AMvyTG2x\", \"crossorigin\", \"anonymous\"], [\"pButton\", \"\", \"pRipple\", \"\", \"type\", \"button\", \"label\", \"Create initial planner\", 1, \"p-button-help\", 3, \"click\"], [3, \"value\", \"paginator\", \"rows\", \"responsive\"], [\"pTemplate\", \"body\"], [1, \"username\"], [4, \"ngIf\"], [\"subheader\", \"Card Subheader\", \"styleClass\", \"p-card-shadow\", 3, \"header\"], [\"pTemplate\", \"header\"], [\"pTemplate\", \"footer\"], [\"pButton\", \"\", \"pRipple\", \"\", \"type\", \"button\", \"label\", \"Edit\", 1, \"p-button-outlined\", \"p-button-rounded\", \"p-button-help\", 3, \"click\"], [\"pButton\", \"\", \"pRipple\", \"\", \"type\", \"button\", \"icon\", \"pi pi-times\", \"label\", \"Delete\", 1, \"p-button-rounded\", \"p-button-danger\", \"p-button-outlined\"], [1, \"text-warn\"]],\n  template: function PlannerComponent_Template(rf, ctx) {\n    if (rf & 1) {\n      i0.ɵɵelement(0, \"link\", 0);\n      i0.ɵɵelement(1, \"p-toast\");\n      i0.ɵɵelementStart(2, \"button\", 1);\n      i0.ɵɵlistener(\"click\", function PlannerComponent_Template_button_click_2_listener() {\n        return ctx.show();\n      });\n      i0.ɵɵelementEnd();\n      i0.ɵɵelement(3, \"br\");\n      i0.ɵɵelement(4, \"br\");\n      i0.ɵɵelementStart(5, \"p-table\", 2);\n      i0.ɵɵtemplate(6, PlannerComponent_ng_template_6_Template, 6, 5, \"ng-template\", 3);\n      i0.ɵɵelementEnd();\n      i0.ɵɵelementStart(7, \"div\", 4);\n      i0.ɵɵtext(8);\n      i0.ɵɵelementEnd();\n      i0.ɵɵtemplate(9, PlannerComponent_div_9_Template, 3, 1, \"div\", 5);\n      i0.ɵɵpipe(10, \"async\");\n    }\n\n    if (rf & 2) {\n      i0.ɵɵadvance(5);\n      i0.ɵɵproperty(\"value\", ctx.planners)(\"paginator\", true)(\"rows\", 3)(\"responsive\", true);\n      i0.ɵɵadvance(3);\n      i0.ɵɵtextInterpolate1(\"Username: \", ctx.userDisplayName, \"\");\n      i0.ɵɵadvance(1);\n      i0.ɵɵproperty(\"ngIf\", i0.ɵɵpipeBind1(10, 6, ctx.userDisplayName$));\n    }\n  },\n  directives: [i6.Toast, i7.ButtonDirective, i8.Ripple, i9.Table, i4.PrimeTemplate, i10.NgIf, i11.Card],\n  pipes: [i10.AsyncPipe],\n  styles: [\"mat-card[_ngcontent-%COMP%]  {   \\r\\n  width: 280px;   \\r\\n  height: 160px; \\r\\n\\r\\n}\\r\\n.example-card[_ngcontent-%COMP%]   button[_ngcontent-%COMP%] {\\r\\n  box-shadow:none !important;\\r\\n  cursor:pointer;\\r\\n}\\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInBsYW5uZXIuY29tcG9uZW50LmNzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNFLFlBQVk7RUFDWixhQUFhOztBQUVmO0FBQ0E7RUFDRSwwQkFBMEI7RUFDMUIsY0FBYztBQUNoQiIsImZpbGUiOiJwbGFubmVyLmNvbXBvbmVudC5jc3MiLCJzb3VyY2VzQ29udGVudCI6WyJtYXQtY2FyZCAgeyAgIFxyXG4gIHdpZHRoOiAyODBweDsgICBcclxuICBoZWlnaHQ6IDE2MHB4OyBcclxuXHJcbn1cclxuLmV4YW1wbGUtY2FyZCBidXR0b24ge1xyXG4gIGJveC1zaGFkb3c6bm9uZSAhaW1wb3J0YW50O1xyXG4gIGN1cnNvcjpwb2ludGVyO1xyXG59Il19 */\"]\n});","map":{"version":3,"sources":["C:/Users/DELL/Desktop/bachelor-thesis/trip-planner-front/src/app/planner/planner.component.ts"],"names":["CreateInitialPlannerComponent","PlannerDto","DialogService","DynamicDialogRef","MessageService","UserDto","i0","i1","i2","i3","i4","i5","i6","i7","i8","i9","i10","i11","PlannerComponent_ng_template_6_ng_template_2_Template","rf","ctx","_c0","PlannerComponent_ng_template_6_ng_template_5_Template","_r7","ɵɵgetCurrentView","ɵɵelementStart","ɵɵlistener","PlannerComponent_ng_template_6_ng_template_5_Template_button_click_0_listener","ɵɵrestoreView","planner_r2","ɵɵnextContext","$implicit","ctx_r5","onClickEditPlannerGet","id","ɵɵelementEnd","ɵɵelement","ɵɵadvance","ɵɵstyleMap","ɵɵpureFunction0","_c1","width","PlannerComponent_ng_template_6_Template","ɵɵtemplate","ɵɵtext","ɵɵpropertyInterpolate","name","ɵɵtextInterpolate","description","PlannerComponent_div_9_Template","ctx_r1","userDisplayName","PlannerComponent","constructor","plannerService","router","dialogService","primengConfig","messageService","userService","planners","plannerDto","ref","user","ngOnInit","ripple","sessionStorage","getItem","getAllPlanners","subscribe","data","console","log","getPlannerById","navigate","show","open","header","contentStyle","baseZIndex","onClose","planner","postInitialPlanner","error","add","severity","summary","ɵfac","PlannerComponent_Factory","t","ɵɵdirectiveInject","PlannerService","Router","PrimeNGConfig","UserService","ɵcmp","ɵɵdefineComponent","type","selectors","features","ɵɵProvidersFeature","decls","vars","consts","template","PlannerComponent_Template","PlannerComponent_Template_button_click_2_listener","ɵɵpipe","ɵɵproperty","ɵɵtextInterpolate1","ɵɵpipeBind1","userDisplayName$","directives","Toast","ButtonDirective","Ripple","Table","PrimeTemplate","NgIf","Card","pipes","AsyncPipe","styles"],"mappings":"AAAA,SAASA,6BAAT,QAA8C,4DAA9C;AACA,SAASC,UAAT,QAA2B,2BAA3B;AACA,SAASC,aAAT,EAAwBC,gBAAxB,QAAgD,uBAAhD;AACA,SAASC,cAAT,QAA+B,aAA/B;AACA,SAASC,OAAT,QAAwB,wBAAxB;AACA,OAAO,KAAKC,EAAZ,MAAoB,eAApB;AACA,OAAO,KAAKC,EAAZ,MAAoB,8BAApB;AACA,OAAO,KAAKC,EAAZ,MAAoB,iBAApB;AACA,OAAO,KAAKC,EAAZ,MAAoB,uBAApB;AACA,OAAO,KAAKC,EAAZ,MAAoB,aAApB;AACA,OAAO,KAAKC,EAAZ,MAAoB,2BAApB;AACA,OAAO,KAAKC,EAAZ,MAAoB,eAApB;AACA,OAAO,KAAKC,EAAZ,MAAoB,gBAApB;AACA,OAAO,KAAKC,EAAZ,MAAoB,gBAApB;AACA,OAAO,KAAKC,EAAZ,MAAoB,eAApB;AACA,OAAO,KAAKC,GAAZ,MAAqB,iBAArB;AACA,OAAO,KAAKC,GAAZ,MAAqB,cAArB;;AACA,SAASC,qDAAT,CAA+DC,EAA/D,EAAmEC,GAAnE,EAAwE,CAAG;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MAAlC,EAA0CpG,EAAE,CAACqG,KAA7C,EAAoD1G,EAAE,CAAC2G,aAAvD,EAAsErG,GAAG,CAACsG,IAA1E,EAAgFrG,GAAG,CAACsG,IAApF,CAvBsC;AAuBqDC,EAAAA,KAAK,EAAE,CAACxG,GAAG,CAACyG,SAAL,CAvB5D;AAuB6EC,EAAAA,MAAM,EAAE,CAAC,mtBAAD;AAvBrF,CAArB,CAAtC","sourcesContent":["import { CreateInitialPlannerComponent } from '../create-initial-planner/create-initial-planner.component';\r\nimport { PlannerDto } from '../_models/dto/plannerDto';\r\nimport { DialogService, DynamicDialogRef } from 'primeng/dynamicdialog';\r\nimport { MessageService } from 'primeng/api';\r\nimport { UserDto } from '../_models/dto/userDto';\r\nimport * as i0 from \"@angular/core\";\r\nimport * as i1 from \"../_services/planner.service\";\r\nimport * as i2 from \"@angular/router\";\r\nimport * as i3 from \"primeng/dynamicdialog\";\r\nimport * as i4 from \"primeng/api\";\r\nimport * as i5 from \"../_services/user.service\";\r\nimport * as i6 from \"primeng/toast\";\r\nimport * as i7 from \"primeng/button\";\r\nimport * as i8 from \"primeng/ripple\";\r\nimport * as i9 from \"primeng/table\";\r\nimport * as i10 from \"@angular/common\";\r\nimport * as i11 from \"primeng/card\";\r\nfunction PlannerComponent_ng_template_6_ng_template_2_Template(rf, ctx) { }\r\nconst _c0 = function () { return { \"margin-left\": \".5em\" }; };\r\nfunction PlannerComponent_ng_template_6_ng_template_5_Template(rf, ctx) { if (rf & 1) {\r\n    const _r7 = i0.ɵɵgetCurrentView();\r\n    i0.ɵɵelementStart(0, \"button\", 9);\r\n    i0.ɵɵlistener(\"click\", function PlannerComponent_ng_template_6_ng_template_5_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r7); const planner_r2 = i0.ɵɵnextContext().$implicit; const ctx_r5 = i0.ɵɵnextContext(); return ctx_r5.onClickEditPlannerGet(planner_r2.id); });\r\n    i0.ɵɵelementEnd();\r\n    i0.ɵɵelement(1, \"button\", 10);\r\n} if (rf & 2) {\r\n    i0.ɵɵadvance(1);\r\n    i0.ɵɵstyleMap(i0.ɵɵpureFunction0(2, _c0));\r\n} }\r\nconst _c1 = function () { return { width: \"360px\" }; };\r\nfunction PlannerComponent_ng_template_6_Template(rf, ctx) { if (rf & 1) {\r\n    i0.ɵɵelementStart(0, \"td\");\r\n    i0.ɵɵelementStart(1, \"p-card\", 6);\r\n    i0.ɵɵtemplate(2, PlannerComponent_ng_template_6_ng_template_2_Template, 0, 0, \"ng-template\", 7);\r\n    i0.ɵɵelementStart(3, \"p\");\r\n    i0.ɵɵtext(4);\r\n    i0.ɵɵelementEnd();\r\n    i0.ɵɵtemplate(5, PlannerComponent_ng_template_6_ng_template_5_Template, 2, 3, \"ng-template\", 8);\r\n    i0.ɵɵelementEnd();\r\n    i0.ɵɵelementEnd();\r\n} if (rf & 2) {\r\n    const planner_r2 = ctx.$implicit;\r\n    i0.ɵɵadvance(1);\r\n    i0.ɵɵstyleMap(i0.ɵɵpureFunction0(4, _c1));\r\n    i0.ɵɵpropertyInterpolate(\"header\", planner_r2.name);\r\n    i0.ɵɵadvance(3);\r\n    i0.ɵɵtextInterpolate(planner_r2.description);\r\n} }\r\nfunction PlannerComponent_div_9_Template(rf, ctx) { if (rf & 1) {\r\n    i0.ɵɵelementStart(0, \"div\");\r\n    i0.ɵɵelementStart(1, \"span\", 11);\r\n    i0.ɵɵtext(2);\r\n    i0.ɵɵelementEnd();\r\n    i0.ɵɵelementEnd();\r\n} if (rf & 2) {\r\n    const ctx_r1 = i0.ɵɵnextContext();\r\n    i0.ɵɵadvance(2);\r\n    i0.ɵɵtextInterpolate(ctx_r1.userDisplayName);\r\n} }\r\nexport class PlannerComponent {\r\n    constructor(plannerService, router, dialogService, primengConfig, messageService, userService) {\r\n        this.plannerService = plannerService;\r\n        this.router = router;\r\n        this.dialogService = dialogService;\r\n        this.primengConfig = primengConfig;\r\n        this.messageService = messageService;\r\n        this.userService = userService;\r\n        this.planners = [];\r\n        this.plannerDto = new PlannerDto();\r\n        this.ref = new DynamicDialogRef;\r\n        this.user = new UserDto();\r\n    }\r\n    ngOnInit() {\r\n        this.primengConfig.ripple = true;\r\n        let userDisplayName = sessionStorage.getItem(\"username\");\r\n        this.plannerService.getAllPlanners().subscribe(data => {\r\n            this.planners = data;\r\n        });\r\n    }\r\n    onClickEditPlannerGet(id) {\r\n        console.log(id);\r\n        this.plannerService.getPlannerById(id).subscribe(data => {\r\n            this.router.navigate(['edit/planner/', id]);\r\n        });\r\n    }\r\n    show() {\r\n        this.ref = this.dialogService.open(CreateInitialPlannerComponent, {\r\n            header: 'Create initial planner',\r\n            width: '70%',\r\n            contentStyle: { \"max-height\": \"500px\", \"overflow\": \"auto\" },\r\n            baseZIndex: 10000\r\n        });\r\n        this.ref.onClose.subscribe((planner) => {\r\n            console.log(\"NOVOKREIRANIOT NAME NA PLANNER: \" + planner.name);\r\n            this.plannerService.postInitialPlanner(planner).subscribe(data => {\r\n                console.log(data);\r\n            }, error => console.log('oops', error));\r\n            this.messageService.add({ severity: 'success', summary: 'The planner: ' + planner.name + ' has been created.' });\r\n        });\r\n    }\r\n}\r\nPlannerComponent.ɵfac = function PlannerComponent_Factory(t) { return new (t || PlannerComponent)(i0.ɵɵdirectiveInject(i1.PlannerService), i0.ɵɵdirectiveInject(i2.Router), i0.ɵɵdirectiveInject(i3.DialogService), i0.ɵɵdirectiveInject(i4.PrimeNGConfig), i0.ɵɵdirectiveInject(i4.MessageService), i0.ɵɵdirectiveInject(i5.UserService)); };\r\nPlannerComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PlannerComponent, selectors: [[\"app-planner\"]], features: [i0.ɵɵProvidersFeature([DialogService, MessageService])], decls: 11, vars: 8, consts: [[\"href\", \"https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/css/bootstrap.min.css\", \"rel\", \"stylesheet\", \"integrity\", \"sha384-+0n0xVW2eSR5OomGNYDnhzAbDsOXxcvSN1TPprVMTNDbiYZCxYbOOl7+AMvyTG2x\", \"crossorigin\", \"anonymous\"], [\"pButton\", \"\", \"pRipple\", \"\", \"type\", \"button\", \"label\", \"Create initial planner\", 1, \"p-button-help\", 3, \"click\"], [3, \"value\", \"paginator\", \"rows\", \"responsive\"], [\"pTemplate\", \"body\"], [1, \"username\"], [4, \"ngIf\"], [\"subheader\", \"Card Subheader\", \"styleClass\", \"p-card-shadow\", 3, \"header\"], [\"pTemplate\", \"header\"], [\"pTemplate\", \"footer\"], [\"pButton\", \"\", \"pRipple\", \"\", \"type\", \"button\", \"label\", \"Edit\", 1, \"p-button-outlined\", \"p-button-rounded\", \"p-button-help\", 3, \"click\"], [\"pButton\", \"\", \"pRipple\", \"\", \"type\", \"button\", \"icon\", \"pi pi-times\", \"label\", \"Delete\", 1, \"p-button-rounded\", \"p-button-danger\", \"p-button-outlined\"], [1, \"text-warn\"]], template: function PlannerComponent_Template(rf, ctx) { if (rf & 1) {\r\n        i0.ɵɵelement(0, \"link\", 0);\r\n        i0.ɵɵelement(1, \"p-toast\");\r\n        i0.ɵɵelementStart(2, \"button\", 1);\r\n        i0.ɵɵlistener(\"click\", function PlannerComponent_Template_button_click_2_listener() { return ctx.show(); });\r\n        i0.ɵɵelementEnd();\r\n        i0.ɵɵelement(3, \"br\");\r\n        i0.ɵɵelement(4, \"br\");\r\n        i0.ɵɵelementStart(5, \"p-table\", 2);\r\n        i0.ɵɵtemplate(6, PlannerComponent_ng_template_6_Template, 6, 5, \"ng-template\", 3);\r\n        i0.ɵɵelementEnd();\r\n        i0.ɵɵelementStart(7, \"div\", 4);\r\n        i0.ɵɵtext(8);\r\n        i0.ɵɵelementEnd();\r\n        i0.ɵɵtemplate(9, PlannerComponent_div_9_Template, 3, 1, \"div\", 5);\r\n        i0.ɵɵpipe(10, \"async\");\r\n    } if (rf & 2) {\r\n        i0.ɵɵadvance(5);\r\n        i0.ɵɵproperty(\"value\", ctx.planners)(\"paginator\", true)(\"rows\", 3)(\"responsive\", true);\r\n        i0.ɵɵadvance(3);\r\n        i0.ɵɵtextInterpolate1(\"Username: \", ctx.userDisplayName, \"\");\r\n        i0.ɵɵadvance(1);\r\n        i0.ɵɵproperty(\"ngIf\", i0.ɵɵpipeBind1(10, 6, ctx.userDisplayName$));\r\n    } }, directives: [i6.Toast, i7.ButtonDirective, i8.Ripple, i9.Table, i4.PrimeTemplate, i10.NgIf, i11.Card], pipes: [i10.AsyncPipe], styles: [\"mat-card[_ngcontent-%COMP%]  {   \\r\\n  width: 280px;   \\r\\n  height: 160px; \\r\\n\\r\\n}\\r\\n.example-card[_ngcontent-%COMP%]   button[_ngcontent-%COMP%] {\\r\\n  box-shadow:none !important;\\r\\n  cursor:pointer;\\r\\n}\\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInBsYW5uZXIuY29tcG9uZW50LmNzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNFLFlBQVk7RUFDWixhQUFhOztBQUVmO0FBQ0E7RUFDRSwwQkFBMEI7RUFDMUIsY0FBYztBQUNoQiIsImZpbGUiOiJwbGFubmVyLmNvbXBvbmVudC5jc3MiLCJzb3VyY2VzQ29udGVudCI6WyJtYXQtY2FyZCAgeyAgIFxyXG4gIHdpZHRoOiAyODBweDsgICBcclxuICBoZWlnaHQ6IDE2MHB4OyBcclxuXHJcbn1cclxuLmV4YW1wbGUtY2FyZCBidXR0b24ge1xyXG4gIGJveC1zaGFkb3c6bm9uZSAhaW1wb3J0YW50O1xyXG4gIGN1cnNvcjpwb2ludGVyO1xyXG59Il19 */\"] });\r\n"]},"metadata":{},"sourceType":"module"}
Index: trip-planner-front/node_modules/.cache/babel-webpack/86dd973888d6155378292b3d9933fad2.json
===================================================================
--- trip-planner-front/node_modules/.cache/babel-webpack/86dd973888d6155378292b3d9933fad2.json	(revision bdd64917749115bbdd228a9569a675d590c112e3)
+++ trip-planner-front/node_modules/.cache/babel-webpack/86dd973888d6155378292b3d9933fad2.json	(revision bdd64917749115bbdd228a9569a675d590c112e3)
@@ -0,0 +1,1 @@
+{"ast":null,"code":"import { CreateInitialPlannerComponent } from '../create-initial-planner/create-initial-planner.component';\nimport { PlannerDto } from '../_models/dto/plannerDto';\nimport { DialogService, DynamicDialogRef } from 'primeng/dynamicdialog';\nimport { MessageService } from 'primeng/api';\nimport { UserDto } from '../_models/dto/userDto';\nimport * as i0 from \"@angular/core\";\nimport * as i1 from \"../_services/planner.service\";\nimport * as i2 from \"@angular/router\";\nimport * as i3 from \"primeng/dynamicdialog\";\nimport * as i4 from \"primeng/api\";\nimport * as i5 from \"../_services/user.service\";\nimport * as i6 from \"primeng/toast\";\nimport * as i7 from \"primeng/button\";\nimport * as i8 from \"primeng/ripple\";\nimport * as i9 from \"primeng/table\";\nimport * as i10 from \"@angular/common\";\nimport * as i11 from \"primeng/card\";\n\nfunction PlannerComponent_ng_template_6_ng_template_2_Template(rf, ctx) {}\n\nconst _c0 = function () {\n  return {\n    \"margin-left\": \".5em\"\n  };\n};\n\nfunction PlannerComponent_ng_template_6_ng_template_5_Template(rf, ctx) {\n  if (rf & 1) {\n    const _r7 = i0.ɵɵgetCurrentView();\n\n    i0.ɵɵelementStart(0, \"button\", 9);\n    i0.ɵɵlistener(\"click\", function PlannerComponent_ng_template_6_ng_template_5_Template_button_click_0_listener() {\n      i0.ɵɵrestoreView(_r7);\n      const planner_r2 = i0.ɵɵnextContext().$implicit;\n      const ctx_r5 = i0.ɵɵnextContext();\n      return ctx_r5.onClickEditPlannerGet(planner_r2.id);\n    });\n    i0.ɵɵelementEnd();\n    i0.ɵɵelement(1, \"button\", 10);\n  }\n\n  if (rf & 2) {\n    i0.ɵɵadvance(1);\n    i0.ɵɵstyleMap(i0.ɵɵpureFunction0(2, _c0));\n  }\n}\n\nconst _c1 = function () {\n  return {\n    width: \"360px\"\n  };\n};\n\nfunction PlannerComponent_ng_template_6_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelementStart(0, \"td\");\n    i0.ɵɵelementStart(1, \"p-card\", 6);\n    i0.ɵɵtemplate(2, PlannerComponent_ng_template_6_ng_template_2_Template, 0, 0, \"ng-template\", 7);\n    i0.ɵɵelementStart(3, \"p\");\n    i0.ɵɵtext(4);\n    i0.ɵɵelementEnd();\n    i0.ɵɵtemplate(5, PlannerComponent_ng_template_6_ng_template_5_Template, 2, 3, \"ng-template\", 8);\n    i0.ɵɵelementEnd();\n    i0.ɵɵelementEnd();\n  }\n\n  if (rf & 2) {\n    const planner_r2 = ctx.$implicit;\n    i0.ɵɵadvance(1);\n    i0.ɵɵstyleMap(i0.ɵɵpureFunction0(4, _c1));\n    i0.ɵɵpropertyInterpolate(\"header\", planner_r2.name);\n    i0.ɵɵadvance(3);\n    i0.ɵɵtextInterpolate(planner_r2.description);\n  }\n}\n\nfunction PlannerComponent_div_9_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelementStart(0, \"div\");\n    i0.ɵɵelementStart(1, \"span\", 11);\n    i0.ɵɵtext(2);\n    i0.ɵɵelementEnd();\n    i0.ɵɵelementEnd();\n  }\n\n  if (rf & 2) {\n    const error_r8 = ctx.ngIf;\n    i0.ɵɵadvance(2);\n    i0.ɵɵtextInterpolate(error_r8.message);\n  }\n}\n\nexport class PlannerComponent {\n  constructor(plannerService, router, dialogService, primengConfig, messageService, userService) {\n    this.plannerService = plannerService;\n    this.router = router;\n    this.dialogService = dialogService;\n    this.primengConfig = primengConfig;\n    this.messageService = messageService;\n    this.userService = userService;\n    this.planners = [];\n    this.plannerDto = new PlannerDto();\n    this.ref = new DynamicDialogRef();\n    this.user = new UserDto();\n  }\n\n  ngOnInit() {\n    this.primengConfig.ripple = true;\n    let userDisplayName = sessionStorage.getItem(\"username\");\n    this.plannerService.getAllPlanners().subscribe(data => {\n      this.planners = data;\n    });\n  }\n\n  onClickEditPlannerGet(id) {\n    console.log(id);\n    this.plannerService.getPlannerById(id).subscribe(data => {\n      this.router.navigate(['edit/planner/', id]);\n    });\n  }\n\n  show() {\n    this.ref = this.dialogService.open(CreateInitialPlannerComponent, {\n      header: 'Create initial planner',\n      width: '70%',\n      contentStyle: {\n        \"max-height\": \"500px\",\n        \"overflow\": \"auto\"\n      },\n      baseZIndex: 10000\n    });\n    this.ref.onClose.subscribe(planner => {\n      console.log(\"NOVOKREIRANIOT NAME NA PLANNER: \" + planner.name);\n      this.plannerService.postInitialPlanner(planner).subscribe(data => {\n        console.log(data);\n      }, error => console.log('oops', error));\n      this.messageService.add({\n        severity: 'success',\n        summary: 'The planner: ' + planner.name + ' has been created.'\n      });\n    });\n  }\n\n}\n\nPlannerComponent.ɵfac = function PlannerComponent_Factory(t) {\n  return new (t || PlannerComponent)(i0.ɵɵdirectiveInject(i1.PlannerService), i0.ɵɵdirectiveInject(i2.Router), i0.ɵɵdirectiveInject(i3.DialogService), i0.ɵɵdirectiveInject(i4.PrimeNGConfig), i0.ɵɵdirectiveInject(i4.MessageService), i0.ɵɵdirectiveInject(i5.UserService));\n};\n\nPlannerComponent.ɵcmp = /*@__PURE__*/i0.ɵɵdefineComponent({\n  type: PlannerComponent,\n  selectors: [[\"app-planner\"]],\n  features: [i0.ɵɵProvidersFeature([DialogService, MessageService])],\n  decls: 11,\n  vars: 8,\n  consts: [[\"href\", \"https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/css/bootstrap.min.css\", \"rel\", \"stylesheet\", \"integrity\", \"sha384-+0n0xVW2eSR5OomGNYDnhzAbDsOXxcvSN1TPprVMTNDbiYZCxYbOOl7+AMvyTG2x\", \"crossorigin\", \"anonymous\"], [\"pButton\", \"\", \"pRipple\", \"\", \"type\", \"button\", \"label\", \"Create initial planner\", 1, \"p-button-help\", 3, \"click\"], [3, \"value\", \"paginator\", \"rows\", \"responsive\"], [\"pTemplate\", \"body\"], [1, \"username\"], [4, \"ngIf\"], [\"subheader\", \"Card Subheader\", \"styleClass\", \"p-card-shadow\", 3, \"header\"], [\"pTemplate\", \"header\"], [\"pTemplate\", \"footer\"], [\"pButton\", \"\", \"pRipple\", \"\", \"type\", \"button\", \"label\", \"Edit\", 1, \"p-button-outlined\", \"p-button-rounded\", \"p-button-help\", 3, \"click\"], [\"pButton\", \"\", \"pRipple\", \"\", \"type\", \"button\", \"icon\", \"pi pi-times\", \"label\", \"Delete\", 1, \"p-button-rounded\", \"p-button-danger\", \"p-button-outlined\"], [1, \"text-warn\"]],\n  template: function PlannerComponent_Template(rf, ctx) {\n    if (rf & 1) {\n      i0.ɵɵelement(0, \"link\", 0);\n      i0.ɵɵelement(1, \"p-toast\");\n      i0.ɵɵelementStart(2, \"button\", 1);\n      i0.ɵɵlistener(\"click\", function PlannerComponent_Template_button_click_2_listener() {\n        return ctx.show();\n      });\n      i0.ɵɵelementEnd();\n      i0.ɵɵelement(3, \"br\");\n      i0.ɵɵelement(4, \"br\");\n      i0.ɵɵelementStart(5, \"p-table\", 2);\n      i0.ɵɵtemplate(6, PlannerComponent_ng_template_6_Template, 6, 5, \"ng-template\", 3);\n      i0.ɵɵelementEnd();\n      i0.ɵɵelementStart(7, \"div\", 4);\n      i0.ɵɵtext(8);\n      i0.ɵɵelementEnd();\n      i0.ɵɵtemplate(9, PlannerComponent_div_9_Template, 3, 1, \"div\", 5);\n      i0.ɵɵpipe(10, \"async\");\n    }\n\n    if (rf & 2) {\n      i0.ɵɵadvance(5);\n      i0.ɵɵproperty(\"value\", ctx.planners)(\"paginator\", true)(\"rows\", 3)(\"responsive\", true);\n      i0.ɵɵadvance(3);\n      i0.ɵɵtextInterpolate1(\"Username: \", ctx.userDisplayName, \"\");\n      i0.ɵɵadvance(1);\n      i0.ɵɵproperty(\"ngIf\", i0.ɵɵpipeBind1(10, 6, ctx.error$));\n    }\n  },\n  directives: [i6.Toast, i7.ButtonDirective, i8.Ripple, i9.Table, i4.PrimeTemplate, i10.NgIf, i11.Card],\n  pipes: [i10.AsyncPipe],\n  styles: [\"mat-card[_ngcontent-%COMP%]  {   \\r\\n  width: 280px;   \\r\\n  height: 160px; \\r\\n\\r\\n}\\r\\n.example-card[_ngcontent-%COMP%]   button[_ngcontent-%COMP%] {\\r\\n  box-shadow:none !important;\\r\\n  cursor:pointer;\\r\\n}\\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInBsYW5uZXIuY29tcG9uZW50LmNzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNFLFlBQVk7RUFDWixhQUFhOztBQUVmO0FBQ0E7RUFDRSwwQkFBMEI7RUFDMUIsY0FBYztBQUNoQiIsImZpbGUiOiJwbGFubmVyLmNvbXBvbmVudC5jc3MiLCJzb3VyY2VzQ29udGVudCI6WyJtYXQtY2FyZCAgeyAgIFxyXG4gIHdpZHRoOiAyODBweDsgICBcclxuICBoZWlnaHQ6IDE2MHB4OyBcclxuXHJcbn1cclxuLmV4YW1wbGUtY2FyZCBidXR0b24ge1xyXG4gIGJveC1zaGFkb3c6bm9uZSAhaW1wb3J0YW50O1xyXG4gIGN1cnNvcjpwb2ludGVyO1xyXG59Il19 */\"]\n});","map":{"version":3,"sources":["C:/Users/DELL/Desktop/bachelor-thesis/trip-planner-front/src/app/planner/planner.component.ts"],"names":["CreateInitialPlannerComponent","PlannerDto","DialogService","DynamicDialogRef","MessageService","UserDto","i0","i1","i2","i3","i4","i5","i6","i7","i8","i9","i10","i11","PlannerComponent_ng_template_6_ng_template_2_Template","rf","ctx","_c0","PlannerComponent_ng_template_6_ng_template_5_Template","_r7","ɵɵgetCurrentView","ɵɵelementStart","ɵɵlistener","PlannerComponent_ng_template_6_ng_template_5_Template_button_click_0_listener","ɵɵrestoreView","planner_r2","ɵɵnextContext","$implicit","ctx_r5","onClickEditPlannerGet","id","ɵɵelementEnd","ɵɵelement","ɵɵadvance","ɵɵstyleMap","ɵɵpureFunction0","_c1","width","PlannerComponent_ng_template_6_Template","ɵɵtemplate","ɵɵtext","ɵɵpropertyInterpolate","name","ɵɵtextInterpolate","description","PlannerComponent_div_9_Template","error_r8","ngIf","message","PlannerComponent","constructor","plannerService","router","dialogService","primengConfig","messageService","userService","planners","plannerDto","ref","user","ngOnInit","ripple","userDisplayName","sessionStorage","getItem","getAllPlanners","subscribe","data","console","log","getPlannerById","navigate","show","open","header","contentStyle","baseZIndex","onClose","planner","postInitialPlanner","error","add","severity","summary","ɵfac","PlannerComponent_Factory","t","ɵɵdirectiveInject","PlannerService","Router","PrimeNGConfig","UserService","ɵcmp","ɵɵdefineComponent","type","selectors","features","ɵɵProvidersFeature","decls","vars","consts","template","PlannerComponent_Template","PlannerComponent_Template_button_click_2_listener","ɵɵpipe","ɵɵproperty","ɵɵtextInterpolate1","ɵɵpipeBind1","error$","directives","Toast","ButtonDirective","Ripple","Table","PrimeTemplate","NgIf","Card","pipes","AsyncPipe","styles"],"mappings":"AAAA,SAASA,6BAAT,QAA8C,4DAA9C;AACA,SAASC,UAAT,QAA2B,2BAA3B;AACA,SAASC,aAAT,EAAwBC,gBAAxB,QAAgD,uBAAhD;AACA,SAASC,cAAT,QAA+B,aAA/B;AACA,SAASC,OAAT,QAAwB,wBAAxB;AACA,OAAO,KAAKC,EAAZ,MAAoB,eAApB;AACA,OAAO,KAAKC,EAAZ,MAAoB,8BAApB;AACA,OAAO,KAAKC,EAAZ,MAAoB,iBAApB;AACA,OAAO,KAAKC,EAAZ,MAAoB,uBAApB;AACA,OAAO,KAAKC,EAAZ,MAAoB,aAApB;AACA,OAAO,KAAKC,EAAZ,MAAoB,2BAApB;AACA,OAAO,KAAKC,EAAZ,MAAoB,eAApB;AACA,OAAO,KAAKC,EAAZ,MAAoB,gBAApB;AACA,OAAO,KAAKC,EAAZ,MAAoB,gBAApB;AACA,OAAO,KAAKC,EAAZ,MAAoB,eAApB;AACA,OAAO,KAAKC,GAAZ,MAAqB,iBAArB;AACA,OAAO,KAAKC,GAAZ,MAAqB,cAArB;;AACA,SAASC,qDAAT,CAA+DC,EAA/D,EAAmEC,GAAnE,EAAwE,CAAG;;AAC3E,MAAMC,GAAG,GAAG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uG,KAA7C,EAAoD5G,EAAE,CAAC6G,aAAvD,EAAsEvG,GAAG,CAACwG,IAA1E,EAAgFvG,GAAG,CAACwG,IAApF,CAvBsC;AAuBqDC,EAAAA,KAAK,EAAE,CAAC1G,GAAG,CAAC2G,SAAL,CAvB5D;AAuB6EC,EAAAA,MAAM,EAAE,CAAC,mtBAAD;AAvBrF,CAArB,CAAtC","sourcesContent":["import { CreateInitialPlannerComponent } from '../create-initial-planner/create-initial-planner.component';\r\nimport { PlannerDto } from '../_models/dto/plannerDto';\r\nimport { DialogService, DynamicDialogRef } from 'primeng/dynamicdialog';\r\nimport { MessageService } from 'primeng/api';\r\nimport { UserDto } from '../_models/dto/userDto';\r\nimport * as i0 from \"@angular/core\";\r\nimport * as i1 from \"../_services/planner.service\";\r\nimport * as i2 from \"@angular/router\";\r\nimport * as i3 from \"primeng/dynamicdialog\";\r\nimport * as i4 from \"primeng/api\";\r\nimport * as i5 from \"../_services/user.service\";\r\nimport * as i6 from \"primeng/toast\";\r\nimport * as i7 from \"primeng/button\";\r\nimport * as i8 from \"primeng/ripple\";\r\nimport * as i9 from \"primeng/table\";\r\nimport * as i10 from \"@angular/common\";\r\nimport * as i11 from \"primeng/card\";\r\nfunction PlannerComponent_ng_template_6_ng_template_2_Template(rf, ctx) { }\r\nconst _c0 = function () { return { \"margin-left\": \".5em\" }; };\r\nfunction PlannerComponent_ng_template_6_ng_template_5_Template(rf, ctx) { if (rf & 1) {\r\n    const _r7 = i0.ɵɵgetCurrentView();\r\n    i0.ɵɵelementStart(0, \"button\", 9);\r\n    i0.ɵɵlistener(\"click\", function PlannerComponent_ng_template_6_ng_template_5_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r7); const planner_r2 = i0.ɵɵnextContext().$implicit; const ctx_r5 = i0.ɵɵnextContext(); return ctx_r5.onClickEditPlannerGet(planner_r2.id); });\r\n    i0.ɵɵelementEnd();\r\n    i0.ɵɵelement(1, \"button\", 10);\r\n} if (rf & 2) {\r\n    i0.ɵɵadvance(1);\r\n    i0.ɵɵstyleMap(i0.ɵɵpureFunction0(2, _c0));\r\n} }\r\nconst _c1 = function () { return { width: \"360px\" }; };\r\nfunction PlannerComponent_ng_template_6_Template(rf, ctx) { if (rf & 1) {\r\n    i0.ɵɵelementStart(0, \"td\");\r\n    i0.ɵɵelementStart(1, \"p-card\", 6);\r\n    i0.ɵɵtemplate(2, PlannerComponent_ng_template_6_ng_template_2_Template, 0, 0, \"ng-template\", 7);\r\n    i0.ɵɵelementStart(3, \"p\");\r\n    i0.ɵɵtext(4);\r\n    i0.ɵɵelementEnd();\r\n    i0.ɵɵtemplate(5, PlannerComponent_ng_template_6_ng_template_5_Template, 2, 3, \"ng-template\", 8);\r\n    i0.ɵɵelementEnd();\r\n    i0.ɵɵelementEnd();\r\n} if (rf & 2) {\r\n    const planner_r2 = ctx.$implicit;\r\n    i0.ɵɵadvance(1);\r\n    i0.ɵɵstyleMap(i0.ɵɵpureFunction0(4, _c1));\r\n    i0.ɵɵpropertyInterpolate(\"header\", planner_r2.name);\r\n    i0.ɵɵadvance(3);\r\n    i0.ɵɵtextInterpolate(planner_r2.description);\r\n} }\r\nfunction PlannerComponent_div_9_Template(rf, ctx) { if (rf & 1) {\r\n    i0.ɵɵelementStart(0, \"div\");\r\n    i0.ɵɵelementStart(1, \"span\", 11);\r\n    i0.ɵɵtext(2);\r\n    i0.ɵɵelementEnd();\r\n    i0.ɵɵelementEnd();\r\n} if (rf & 2) {\r\n    const error_r8 = ctx.ngIf;\r\n    i0.ɵɵadvance(2);\r\n    i0.ɵɵtextInterpolate(error_r8.message);\r\n} }\r\nexport class PlannerComponent {\r\n    constructor(plannerService, router, dialogService, primengConfig, messageService, userService) {\r\n        this.plannerService = plannerService;\r\n        this.router = router;\r\n        this.dialogService = dialogService;\r\n        this.primengConfig = primengConfig;\r\n        this.messageService = messageService;\r\n        this.userService = userService;\r\n        this.planners = [];\r\n        this.plannerDto = new PlannerDto();\r\n        this.ref = new DynamicDialogRef;\r\n        this.user = new UserDto();\r\n    }\r\n    ngOnInit() {\r\n        this.primengConfig.ripple = true;\r\n        let userDisplayName = sessionStorage.getItem(\"username\");\r\n        this.plannerService.getAllPlanners().subscribe(data => {\r\n            this.planners = data;\r\n        });\r\n    }\r\n    onClickEditPlannerGet(id) {\r\n        console.log(id);\r\n        this.plannerService.getPlannerById(id).subscribe(data => {\r\n            this.router.navigate(['edit/planner/', id]);\r\n        });\r\n    }\r\n    show() {\r\n        this.ref = this.dialogService.open(CreateInitialPlannerComponent, {\r\n            header: 'Create initial planner',\r\n            width: '70%',\r\n            contentStyle: { \"max-height\": \"500px\", \"overflow\": \"auto\" },\r\n            baseZIndex: 10000\r\n        });\r\n        this.ref.onClose.subscribe((planner) => {\r\n            console.log(\"NOVOKREIRANIOT NAME NA PLANNER: \" + planner.name);\r\n            this.plannerService.postInitialPlanner(planner).subscribe(data => {\r\n                console.log(data);\r\n            }, error => console.log('oops', error));\r\n            this.messageService.add({ severity: 'success', summary: 'The planner: ' + planner.name + ' has been created.' });\r\n        });\r\n    }\r\n}\r\nPlannerComponent.ɵfac = function PlannerComponent_Factory(t) { return new (t || PlannerComponent)(i0.ɵɵdirectiveInject(i1.PlannerService), i0.ɵɵdirectiveInject(i2.Router), i0.ɵɵdirectiveInject(i3.DialogService), i0.ɵɵdirectiveInject(i4.PrimeNGConfig), i0.ɵɵdirectiveInject(i4.MessageService), i0.ɵɵdirectiveInject(i5.UserService)); };\r\nPlannerComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PlannerComponent, selectors: [[\"app-planner\"]], features: [i0.ɵɵProvidersFeature([DialogService, MessageService])], decls: 11, vars: 8, consts: [[\"href\", \"https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/css/bootstrap.min.css\", \"rel\", \"stylesheet\", \"integrity\", \"sha384-+0n0xVW2eSR5OomGNYDnhzAbDsOXxcvSN1TPprVMTNDbiYZCxYbOOl7+AMvyTG2x\", \"crossorigin\", \"anonymous\"], [\"pButton\", \"\", \"pRipple\", \"\", \"type\", \"button\", \"label\", \"Create initial planner\", 1, \"p-button-help\", 3, \"click\"], [3, \"value\", \"paginator\", \"rows\", \"responsive\"], [\"pTemplate\", \"body\"], [1, \"username\"], [4, \"ngIf\"], [\"subheader\", \"Card Subheader\", \"styleClass\", \"p-card-shadow\", 3, \"header\"], [\"pTemplate\", \"header\"], [\"pTemplate\", \"footer\"], [\"pButton\", \"\", \"pRipple\", \"\", \"type\", \"button\", \"label\", \"Edit\", 1, \"p-button-outlined\", \"p-button-rounded\", \"p-button-help\", 3, \"click\"], [\"pButton\", \"\", \"pRipple\", \"\", \"type\", \"button\", \"icon\", \"pi pi-times\", \"label\", \"Delete\", 1, \"p-button-rounded\", \"p-button-danger\", \"p-button-outlined\"], [1, \"text-warn\"]], template: function PlannerComponent_Template(rf, ctx) { if (rf & 1) {\r\n        i0.ɵɵelement(0, \"link\", 0);\r\n        i0.ɵɵelement(1, \"p-toast\");\r\n        i0.ɵɵelementStart(2, \"button\", 1);\r\n        i0.ɵɵlistener(\"click\", function PlannerComponent_Template_button_click_2_listener() { return ctx.show(); });\r\n        i0.ɵɵelementEnd();\r\n        i0.ɵɵelement(3, \"br\");\r\n        i0.ɵɵelement(4, \"br\");\r\n        i0.ɵɵelementStart(5, \"p-table\", 2);\r\n        i0.ɵɵtemplate(6, PlannerComponent_ng_template_6_Template, 6, 5, \"ng-template\", 3);\r\n        i0.ɵɵelementEnd();\r\n        i0.ɵɵelementStart(7, \"div\", 4);\r\n        i0.ɵɵtext(8);\r\n        i0.ɵɵelementEnd();\r\n        i0.ɵɵtemplate(9, PlannerComponent_div_9_Template, 3, 1, \"div\", 5);\r\n        i0.ɵɵpipe(10, \"async\");\r\n    } if (rf & 2) {\r\n        i0.ɵɵadvance(5);\r\n        i0.ɵɵproperty(\"value\", ctx.planners)(\"paginator\", true)(\"rows\", 3)(\"responsive\", true);\r\n        i0.ɵɵadvance(3);\r\n        i0.ɵɵtextInterpolate1(\"Username: \", ctx.userDisplayName, \"\");\r\n        i0.ɵɵadvance(1);\r\n        i0.ɵɵproperty(\"ngIf\", i0.ɵɵpipeBind1(10, 6, ctx.error$));\r\n    } }, directives: [i6.Toast, i7.ButtonDirective, i8.Ripple, i9.Table, i4.PrimeTemplate, i10.NgIf, i11.Card], pipes: [i10.AsyncPipe], styles: [\"mat-card[_ngcontent-%COMP%]  {   \\r\\n  width: 280px;   \\r\\n  height: 160px; \\r\\n\\r\\n}\\r\\n.example-card[_ngcontent-%COMP%]   button[_ngcontent-%COMP%] {\\r\\n  box-shadow:none !important;\\r\\n  cursor:pointer;\\r\\n}\\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInBsYW5uZXIuY29tcG9uZW50LmNzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNFLFlBQVk7RUFDWixhQUFhOztBQUVmO0FBQ0E7RUFDRSwwQkFBMEI7RUFDMUIsY0FBYztBQUNoQiIsImZpbGUiOiJwbGFubmVyLmNvbXBvbmVudC5jc3MiLCJzb3VyY2VzQ29udGVudCI6WyJtYXQtY2FyZCAgeyAgIFxyXG4gIHdpZHRoOiAyODBweDsgICBcclxuICBoZWlnaHQ6IDE2MHB4OyBcclxuXHJcbn1cclxuLmV4YW1wbGUtY2FyZCBidXR0b24ge1xyXG4gIGJveC1zaGFkb3c6bm9uZSAhaW1wb3J0YW50O1xyXG4gIGN1cnNvcjpwb2ludGVyO1xyXG59Il19 */\"] });\r\n"]},"metadata":{},"sourceType":"module"}
Index: trip-planner-front/node_modules/.cache/babel-webpack/89397d34ce6c80fe5c398c6590aff94f.json
===================================================================
--- trip-planner-front/node_modules/.cache/babel-webpack/89397d34ce6c80fe5c398c6590aff94f.json	(revision bdd64917749115bbdd228a9569a675d590c112e3)
+++ trip-planner-front/node_modules/.cache/babel-webpack/89397d34ce6c80fe5c398c6590aff94f.json	(revision bdd64917749115bbdd228a9569a675d590c112e3)
@@ -0,0 +1,1 @@
+{"ast":null,"code":"import { CreateInitialPlannerComponent } from '../create-initial-planner/create-initial-planner.component';\nimport { PlannerDto } from '../_models/dto/plannerDto';\nimport { DialogService, DynamicDialogRef } from 'primeng/dynamicdialog';\nimport { MessageService } from 'primeng/api';\nimport { UserDto } from '../_models/dto/userDto';\nimport * as i0 from \"@angular/core\";\nimport * as i1 from \"../_services/planner.service\";\nimport * as i2 from \"@angular/router\";\nimport * as i3 from \"primeng/dynamicdialog\";\nimport * as i4 from \"primeng/api\";\nimport * as i5 from \"../_services/user.service\";\nimport * as i6 from \"primeng/toast\";\nimport * as i7 from \"primeng/button\";\nimport * as i8 from \"primeng/ripple\";\nimport * as i9 from \"primeng/table\";\nimport * as i10 from \"@angular/common\";\nimport * as i11 from \"primeng/card\";\n\nfunction PlannerComponent_ng_template_6_ng_template_2_Template(rf, ctx) {}\n\nconst _c0 = function () {\n  return {\n    \"margin-left\": \".5em\"\n  };\n};\n\nfunction PlannerComponent_ng_template_6_ng_template_5_Template(rf, ctx) {\n  if (rf & 1) {\n    const _r9 = i0.ɵɵgetCurrentView();\n\n    i0.ɵɵelementStart(0, \"button\", 10);\n    i0.ɵɵlistener(\"click\", function PlannerComponent_ng_template_6_ng_template_5_Template_button_click_0_listener() {\n      i0.ɵɵrestoreView(_r9);\n      const planner_r4 = i0.ɵɵnextContext().$implicit;\n      const ctx_r7 = i0.ɵɵnextContext();\n      return ctx_r7.onClickEditPlannerGet(planner_r4.id);\n    });\n    i0.ɵɵelementEnd();\n    i0.ɵɵelement(1, \"button\", 11);\n  }\n\n  if (rf & 2) {\n    i0.ɵɵadvance(1);\n    i0.ɵɵstyleMap(i0.ɵɵpureFunction0(2, _c0));\n  }\n}\n\nconst _c1 = function () {\n  return {\n    width: \"360px\"\n  };\n};\n\nfunction PlannerComponent_ng_template_6_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelementStart(0, \"td\");\n    i0.ɵɵelementStart(1, \"p-card\", 7);\n    i0.ɵɵtemplate(2, PlannerComponent_ng_template_6_ng_template_2_Template, 0, 0, \"ng-template\", 8);\n    i0.ɵɵelementStart(3, \"p\");\n    i0.ɵɵtext(4);\n    i0.ɵɵelementEnd();\n    i0.ɵɵtemplate(5, PlannerComponent_ng_template_6_ng_template_5_Template, 2, 3, \"ng-template\", 9);\n    i0.ɵɵelementEnd();\n    i0.ɵɵelementEnd();\n  }\n\n  if (rf & 2) {\n    const planner_r4 = ctx.$implicit;\n    i0.ɵɵadvance(1);\n    i0.ɵɵstyleMap(i0.ɵɵpureFunction0(4, _c1));\n    i0.ɵɵpropertyInterpolate(\"header\", planner_r4.name);\n    i0.ɵɵadvance(3);\n    i0.ɵɵtextInterpolate(planner_r4.description);\n  }\n}\n\nfunction PlannerComponent_div_7_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelementStart(0, \"div\");\n    i0.ɵɵelementStart(1, \"span\", 12);\n    i0.ɵɵtext(2);\n    i0.ɵɵelementEnd();\n    i0.ɵɵelementEnd();\n  }\n\n  if (rf & 2) {\n    const ctx_r1 = i0.ɵɵnextContext();\n    i0.ɵɵadvance(2);\n    i0.ɵɵtextInterpolate(ctx_r1.userDisplayName);\n  }\n}\n\nfunction PlannerComponent_ng_template_9_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelementStart(0, \"div\");\n    i0.ɵɵelementStart(1, \"span\");\n    i0.ɵɵtext(2);\n    i0.ɵɵelementEnd();\n    i0.ɵɵelementEnd();\n  }\n\n  if (rf & 2) {\n    const a_r11 = ctx.aVariable;\n    i0.ɵɵadvance(2);\n    i0.ɵɵtextInterpolate(a_r11);\n  }\n}\n\nexport class PlannerComponent {\n  constructor(plannerService, router, dialogService, primengConfig, messageService, userService) {\n    this.plannerService = plannerService;\n    this.router = router;\n    this.dialogService = dialogService;\n    this.primengConfig = primengConfig;\n    this.messageService = messageService;\n    this.userService = userService;\n    this.planners = [];\n    this.plannerDto = new PlannerDto();\n    this.ref = new DynamicDialogRef();\n    this.user = new UserDto();\n  }\n\n  ngOnInit() {\n    this.primengConfig.ripple = true;\n    let userDisplayName = sessionStorage.getItem(\"username\");\n    this.plannerService.getAllPlanners().subscribe(data => {\n      this.planners = data;\n    });\n  }\n\n  onClickEditPlannerGet(id) {\n    console.log(id);\n    this.plannerService.getPlannerById(id).subscribe(data => {\n      this.router.navigate(['edit/planner/', id]);\n    });\n  }\n\n  show() {\n    this.ref = this.dialogService.open(CreateInitialPlannerComponent, {\n      header: 'Create initial planner',\n      width: '70%',\n      contentStyle: {\n        \"max-height\": \"500px\",\n        \"overflow\": \"auto\"\n      },\n      baseZIndex: 10000\n    });\n    this.ref.onClose.subscribe(planner => {\n      console.log(\"NOVOKREIRANIOT NAME NA PLANNER: \" + planner.name);\n      this.plannerService.postInitialPlanner(planner).subscribe(data => {\n        console.log(data);\n      }, error => console.log('oops', error));\n      this.messageService.add({\n        severity: 'success',\n        summary: 'The planner: ' + planner.name + ' has been created.'\n      });\n    });\n  }\n\n}\n\nPlannerComponent.ɵfac = function PlannerComponent_Factory(t) {\n  return new (t || PlannerComponent)(i0.ɵɵdirectiveInject(i1.PlannerService), i0.ɵɵdirectiveInject(i2.Router), i0.ɵɵdirectiveInject(i3.DialogService), i0.ɵɵdirectiveInject(i4.PrimeNGConfig), i0.ɵɵdirectiveInject(i4.MessageService), i0.ɵɵdirectiveInject(i5.UserService));\n};\n\nPlannerComponent.ɵcmp = /*@__PURE__*/i0.ɵɵdefineComponent({\n  type: PlannerComponent,\n  selectors: [[\"app-planner\"]],\n  features: [i0.ɵɵProvidersFeature([DialogService, MessageService])],\n  decls: 11,\n  vars: 8,\n  consts: [[\"href\", \"https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/css/bootstrap.min.css\", \"rel\", \"stylesheet\", \"integrity\", \"sha384-+0n0xVW2eSR5OomGNYDnhzAbDsOXxcvSN1TPprVMTNDbiYZCxYbOOl7+AMvyTG2x\", \"crossorigin\", \"anonymous\"], [\"pButton\", \"\", \"pRipple\", \"\", \"type\", \"button\", \"label\", \"Create initial planner\", 1, \"p-button-help\", 3, \"click\"], [3, \"value\", \"paginator\", \"rows\", \"responsive\"], [\"pTemplate\", \"body\"], [4, \"ngIf\"], [3, \"ngTemplateOutlet\"], [\"selfie\", \"\"], [\"subheader\", \"Card Subheader\", \"styleClass\", \"p-card-shadow\", 3, \"header\"], [\"pTemplate\", \"header\"], [\"pTemplate\", \"footer\"], [\"pButton\", \"\", \"pRipple\", \"\", \"type\", \"button\", \"label\", \"Edit\", 1, \"p-button-outlined\", \"p-button-rounded\", \"p-button-help\", 3, \"click\"], [\"pButton\", \"\", \"pRipple\", \"\", \"type\", \"button\", \"icon\", \"pi pi-times\", \"label\", \"Delete\", 1, \"p-button-rounded\", \"p-button-danger\", \"p-button-outlined\"], [1, \"text-warn\"]],\n  template: function PlannerComponent_Template(rf, ctx) {\n    if (rf & 1) {\n      i0.ɵɵelement(0, \"link\", 0);\n      i0.ɵɵelement(1, \"p-toast\");\n      i0.ɵɵelementStart(2, \"button\", 1);\n      i0.ɵɵlistener(\"click\", function PlannerComponent_Template_button_click_2_listener() {\n        return ctx.show();\n      });\n      i0.ɵɵelementEnd();\n      i0.ɵɵelement(3, \"br\");\n      i0.ɵɵelement(4, \"br\");\n      i0.ɵɵelementStart(5, \"p-table\", 2);\n      i0.ɵɵtemplate(6, PlannerComponent_ng_template_6_Template, 6, 5, \"ng-template\", 3);\n      i0.ɵɵelementEnd();\n      i0.ɵɵtemplate(7, PlannerComponent_div_7_Template, 3, 1, \"div\", 4);\n      i0.ɵɵpipe(8, \"async\");\n      i0.ɵɵtemplate(9, PlannerComponent_ng_template_9_Template, 3, 1, \"ng-template\", 5, 6, i0.ɵɵtemplateRefExtractor);\n    }\n\n    if (rf & 2) {\n      const _r2 = i0.ɵɵreference(10);\n\n      i0.ɵɵadvance(5);\n      i0.ɵɵproperty(\"value\", ctx.planners)(\"paginator\", true)(\"rows\", 3)(\"responsive\", true);\n      i0.ɵɵadvance(2);\n      i0.ɵɵproperty(\"ngIf\", i0.ɵɵpipeBind1(8, 6, ctx.userDisplayName$));\n      i0.ɵɵadvance(2);\n      i0.ɵɵproperty(\"ngTemplateOutlet\", _r2);\n    }\n  },\n  directives: [i6.Toast, i7.ButtonDirective, i8.Ripple, i9.Table, i4.PrimeTemplate, i10.NgIf, i10.NgTemplateOutlet, i11.Card],\n  pipes: [i10.AsyncPipe],\n  styles: [\"mat-card[_ngcontent-%COMP%]  {   \\r\\n  width: 280px;   \\r\\n  height: 160px; \\r\\n\\r\\n}\\r\\n.example-card[_ngcontent-%COMP%]   button[_ngcontent-%COMP%] {\\r\\n  box-shadow:none !important;\\r\\n  cursor:pointer;\\r\\n}\\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInBsYW5uZXIuY29tcG9uZW50LmNzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNFLFlBQVk7RUFDWixhQUFhOztBQUVmO0FBQ0E7RUFDRSwwQkFBMEI7RUFDMUIsY0FBYztBQUNoQiIsImZpbGUiOiJwbGFubmVyLmNvbXBvbmVudC5jc3MiLCJzb3VyY2VzQ29udGVudCI6WyJtYXQtY2FyZCAgeyAgIFxyXG4gIHdpZHRoOiAyODBweDsgICBcclxuICBoZWlnaHQ6IDE2MHB4OyBcclxuXHJcbn1cclxuLmV4YW1wbGUtY2FyZCBidXR0b24ge1xyXG4gIGJveC1zaGFkb3c6bm9uZSAhaW1wb3J0YW50O1xyXG4gIGN1cnNvcjpwb2ludGVyO1xyXG59Il19 */\"]\n});","map":{"version":3,"sources":["C:/Users/DELL/Desktop/bachelor-thesis/trip-planner-front/src/app/planner/planner.component.ts"],"names":["CreateInitialPlannerComponent","PlannerDto","DialogService","DynamicDialogRef","MessageService","UserDto","i0","i1","i2","i3","i4","i5","i6","i7","i8","i9","i10","i11","PlannerComponent_ng_template_6_ng_template_2_Template","rf","ctx","_c0","PlannerComponent_ng_template_6_ng_template_5_Template","_r9","ɵɵgetCurrentView","ɵɵelementStart","ɵɵlistener","PlannerComponent_ng_template_6_ng_template_5_Template_button_click_0_listener","ɵɵrestoreView","planner_r4","ɵɵnextContext","$implicit","ctx_r7","onClickEditPlannerGet","id","ɵɵelementEnd","ɵɵelement","ɵɵadvance","ɵɵstyleMap","ɵɵpureFunction0","_c1","width","PlannerComponent_ng_template_6_Template","ɵɵtemplate","ɵɵtext","ɵɵpropertyInterpolate","name","ɵɵtextInterpolate","description","PlannerComponent_div_7_Template","ctx_r1","userDisplayName","PlannerComponent_ng_template_9_Template","a_r11","aVariable","PlannerComponent","constructor","plannerService","router","dialogService","primengConfig","messageService","userService","planners","plannerDto","ref","user","ngOnInit","ripple","sessionStorage","getItem","getAllPlanners","subscribe","data","console","log","getPlannerById","navigate","show","open","header","contentStyle","baseZIndex","onClose","planner","postInitialPlanner","error","add","severity","summary","ɵfac","PlannerComponent_Factory","t","ɵɵdirectiveInject","PlannerService","Router","PrimeNGConfig","UserService","ɵcmp","ɵɵdefineComponent","type","selectors","features","ɵɵProvidersFeature","decls","vars","consts","template","PlannerComponent_Template","PlannerComponent_Template_button_click_2_listener","ɵɵpipe","ɵɵtemplateRefExtractor","_r2","ɵɵreference","ɵɵproperty","ɵɵpipeBind1","userDisplayName$","directives","Toast","ButtonDirective","Ripple","Table","PrimeTemplate","NgIf","NgTemplateOutlet","Card","pipes","AsyncPipe","styles"],"mappings":"AAAA,SAASA,6BAAT,QAA8C,4DAA9C;AACA,SAASC,UAAT,QAA2B,2BAA3B;AACA,SAASC,aAAT,EAAwBC,gBAAxB,QAAgD,uBAAhD;AACA,SAASC,cAAT,QAA+B,aAA/B;AACA,SAASC,OAAT,QAAwB,wBAAxB;AACA,OAAO,KAAKC,EAAZ,MAAoB,eAApB;AACA,OAAO,KAAKC,EAAZ,MAAoB,8BAApB;AACA,OAAO,KAAKC,EAAZ,MAAoB,iBAApB;AACA,OAAO,KAAKC,EAAZ,MAAoB,uBAApB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AL,CAtBlF;AAsBmGC,EAAAA,MAAM,EAAE,CAAC,mtBAAD;AAtB3G,CAArB,CAAtC","sourcesContent":["import { CreateInitialPlannerComponent } from '../create-initial-planner/create-initial-planner.component';\r\nimport { PlannerDto } from '../_models/dto/plannerDto';\r\nimport { DialogService, DynamicDialogRef } from 'primeng/dynamicdialog';\r\nimport { MessageService } from 'primeng/api';\r\nimport { UserDto } from '../_models/dto/userDto';\r\nimport * as i0 from \"@angular/core\";\r\nimport * as i1 from \"../_services/planner.service\";\r\nimport * as i2 from \"@angular/router\";\r\nimport * as i3 from \"primeng/dynamicdialog\";\r\nimport * as i4 from \"primeng/api\";\r\nimport * as i5 from \"../_services/user.service\";\r\nimport * as i6 from \"primeng/toast\";\r\nimport * as i7 from \"primeng/button\";\r\nimport * as i8 from \"primeng/ripple\";\r\nimport * as i9 from \"primeng/table\";\r\nimport * as i10 from \"@angular/common\";\r\nimport * as i11 from \"primeng/card\";\r\nfunction PlannerComponent_ng_template_6_ng_template_2_Template(rf, ctx) { }\r\nconst _c0 = function () { return { \"margin-left\": \".5em\" }; };\r\nfunction PlannerComponent_ng_template_6_ng_template_5_Template(rf, ctx) { if (rf & 1) {\r\n    const _r9 = i0.ɵɵgetCurrentView();\r\n    i0.ɵɵelementStart(0, \"button\", 10);\r\n    i0.ɵɵlistener(\"click\", function PlannerComponent_ng_template_6_ng_template_5_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r9); const planner_r4 = i0.ɵɵnextContext().$implicit; const ctx_r7 = i0.ɵɵnextContext(); return ctx_r7.onClickEditPlannerGet(planner_r4.id); });\r\n    i0.ɵɵelementEnd();\r\n    i0.ɵɵelement(1, \"button\", 11);\r\n} if (rf & 2) {\r\n    i0.ɵɵadvance(1);\r\n    i0.ɵɵstyleMap(i0.ɵɵpureFunction0(2, _c0));\r\n} }\r\nconst _c1 = function () { return { width: \"360px\" }; };\r\nfunction PlannerComponent_ng_template_6_Template(rf, ctx) { if (rf & 1) {\r\n    i0.ɵɵelementStart(0, \"td\");\r\n    i0.ɵɵelementStart(1, \"p-card\", 7);\r\n    i0.ɵɵtemplate(2, PlannerComponent_ng_template_6_ng_template_2_Template, 0, 0, \"ng-template\", 8);\r\n    i0.ɵɵelementStart(3, \"p\");\r\n    i0.ɵɵtext(4);\r\n    i0.ɵɵelementEnd();\r\n    i0.ɵɵtemplate(5, PlannerComponent_ng_template_6_ng_template_5_Template, 2, 3, \"ng-template\", 9);\r\n    i0.ɵɵelementEnd();\r\n    i0.ɵɵelementEnd();\r\n} if (rf & 2) {\r\n    const planner_r4 = ctx.$implicit;\r\n    i0.ɵɵadvance(1);\r\n    i0.ɵɵstyleMap(i0.ɵɵpureFunction0(4, _c1));\r\n    i0.ɵɵpropertyInterpolate(\"header\", planner_r4.name);\r\n    i0.ɵɵadvance(3);\r\n    i0.ɵɵtextInterpolate(planner_r4.description);\r\n} }\r\nfunction PlannerComponent_div_7_Template(rf, ctx) { if (rf & 1) {\r\n    i0.ɵɵelementStart(0, \"div\");\r\n    i0.ɵɵelementStart(1, \"span\", 12);\r\n    i0.ɵɵtext(2);\r\n    i0.ɵɵelementEnd();\r\n    i0.ɵɵelementEnd();\r\n} if (rf & 2) {\r\n    const ctx_r1 = i0.ɵɵnextContext();\r\n    i0.ɵɵadvance(2);\r\n    i0.ɵɵtextInterpolate(ctx_r1.userDisplayName);\r\n} }\r\nfunction PlannerComponent_ng_template_9_Template(rf, ctx) { if (rf & 1) {\r\n    i0.ɵɵelementStart(0, \"div\");\r\n    i0.ɵɵelementStart(1, \"span\");\r\n    i0.ɵɵtext(2);\r\n    i0.ɵɵelementEnd();\r\n    i0.ɵɵelementEnd();\r\n} if (rf & 2) {\r\n    const a_r11 = ctx.aVariable;\r\n    i0.ɵɵadvance(2);\r\n    i0.ɵɵtextInterpolate(a_r11);\r\n} }\r\nexport class PlannerComponent {\r\n    constructor(plannerService, router, dialogService, primengConfig, messageService, userService) {\r\n        this.plannerService = plannerService;\r\n        this.router = router;\r\n        this.dialogService = dialogService;\r\n        this.primengConfig = primengConfig;\r\n        this.messageService = messageService;\r\n        this.userService = userService;\r\n        this.planners = [];\r\n        this.plannerDto = new PlannerDto();\r\n        this.ref = new DynamicDialogRef;\r\n        this.user = new UserDto();\r\n    }\r\n    ngOnInit() {\r\n        this.primengConfig.ripple = true;\r\n        let userDisplayName = sessionStorage.getItem(\"username\");\r\n        this.plannerService.getAllPlanners().subscribe(data => {\r\n            this.planners = data;\r\n        });\r\n    }\r\n    onClickEditPlannerGet(id) {\r\n        console.log(id);\r\n        this.plannerService.getPlannerById(id).subscribe(data => {\r\n            this.router.navigate(['edit/planner/', id]);\r\n        });\r\n    }\r\n    show() {\r\n        this.ref = this.dialogService.open(CreateInitialPlannerComponent, {\r\n            header: 'Create initial planner',\r\n            width: '70%',\r\n            contentStyle: { \"max-height\": \"500px\", \"overflow\": \"auto\" },\r\n            baseZIndex: 10000\r\n        });\r\n        this.ref.onClose.subscribe((planner) => {\r\n            console.log(\"NOVOKREIRANIOT NAME NA PLANNER: \" + planner.name);\r\n            this.plannerService.postInitialPlanner(planner).subscribe(data => {\r\n                console.log(data);\r\n            }, error => console.log('oops', error));\r\n            this.messageService.add({ severity: 'success', summary: 'The planner: ' + planner.name + ' has been created.' });\r\n        });\r\n    }\r\n}\r\nPlannerComponent.ɵfac = function PlannerComponent_Factory(t) { return new (t || PlannerComponent)(i0.ɵɵdirectiveInject(i1.PlannerService), i0.ɵɵdirectiveInject(i2.Router), i0.ɵɵdirectiveInject(i3.DialogService), i0.ɵɵdirectiveInject(i4.PrimeNGConfig), i0.ɵɵdirectiveInject(i4.MessageService), i0.ɵɵdirectiveInject(i5.UserService)); };\r\nPlannerComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PlannerComponent, selectors: [[\"app-planner\"]], features: [i0.ɵɵProvidersFeature([DialogService, MessageService])], decls: 11, vars: 8, consts: [[\"href\", \"https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/css/bootstrap.min.css\", \"rel\", \"stylesheet\", \"integrity\", \"sha384-+0n0xVW2eSR5OomGNYDnhzAbDsOXxcvSN1TPprVMTNDbiYZCxYbOOl7+AMvyTG2x\", \"crossorigin\", \"anonymous\"], [\"pButton\", \"\", \"pRipple\", \"\", \"type\", \"button\", \"label\", \"Create initial planner\", 1, \"p-button-help\", 3, \"click\"], [3, \"value\", \"paginator\", \"rows\", \"responsive\"], [\"pTemplate\", \"body\"], [4, \"ngIf\"], [3, \"ngTemplateOutlet\"], [\"selfie\", \"\"], [\"subheader\", \"Card Subheader\", \"styleClass\", \"p-card-shadow\", 3, \"header\"], [\"pTemplate\", \"header\"], [\"pTemplate\", \"footer\"], [\"pButton\", \"\", \"pRipple\", \"\", \"type\", \"button\", \"label\", \"Edit\", 1, \"p-button-outlined\", \"p-button-rounded\", \"p-button-help\", 3, \"click\"], [\"pButton\", \"\", \"pRipple\", \"\", \"type\", \"button\", \"icon\", \"pi pi-times\", \"label\", \"Delete\", 1, \"p-button-rounded\", \"p-button-danger\", \"p-button-outlined\"], [1, \"text-warn\"]], template: function PlannerComponent_Template(rf, ctx) { if (rf & 1) {\r\n        i0.ɵɵelement(0, \"link\", 0);\r\n        i0.ɵɵelement(1, \"p-toast\");\r\n        i0.ɵɵelementStart(2, \"button\", 1);\r\n        i0.ɵɵlistener(\"click\", function PlannerComponent_Template_button_click_2_listener() { return ctx.show(); });\r\n        i0.ɵɵelementEnd();\r\n        i0.ɵɵelement(3, \"br\");\r\n        i0.ɵɵelement(4, \"br\");\r\n        i0.ɵɵelementStart(5, \"p-table\", 2);\r\n        i0.ɵɵtemplate(6, PlannerComponent_ng_template_6_Template, 6, 5, \"ng-template\", 3);\r\n        i0.ɵɵelementEnd();\r\n        i0.ɵɵtemplate(7, PlannerComponent_div_7_Template, 3, 1, \"div\", 4);\r\n        i0.ɵɵpipe(8, \"async\");\r\n        i0.ɵɵtemplate(9, PlannerComponent_ng_template_9_Template, 3, 1, \"ng-template\", 5, 6, i0.ɵɵtemplateRefExtractor);\r\n    } if (rf & 2) {\r\n        const _r2 = i0.ɵɵreference(10);\r\n        i0.ɵɵadvance(5);\r\n        i0.ɵɵproperty(\"value\", ctx.planners)(\"paginator\", true)(\"rows\", 3)(\"responsive\", true);\r\n        i0.ɵɵadvance(2);\r\n        i0.ɵɵproperty(\"ngIf\", i0.ɵɵpipeBind1(8, 6, ctx.userDisplayName$));\r\n        i0.ɵɵadvance(2);\r\n        i0.ɵɵproperty(\"ngTemplateOutlet\", _r2);\r\n    } }, directives: [i6.Toast, i7.ButtonDirective, i8.Ripple, i9.Table, i4.PrimeTemplate, i10.NgIf, i10.NgTemplateOutlet, i11.Card], pipes: [i10.AsyncPipe], styles: [\"mat-card[_ngcontent-%COMP%]  {   \\r\\n  width: 280px;   \\r\\n  height: 160px; \\r\\n\\r\\n}\\r\\n.example-card[_ngcontent-%COMP%]   button[_ngcontent-%COMP%] {\\r\\n  box-shadow:none !important;\\r\\n  cursor:pointer;\\r\\n}\\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInBsYW5uZXIuY29tcG9uZW50LmNzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNFLFlBQVk7RUFDWixhQUFhOztBQUVmO0FBQ0E7RUFDRSwwQkFBMEI7RUFDMUIsY0FBYztBQUNoQiIsImZpbGUiOiJwbGFubmVyLmNvbXBvbmVudC5jc3MiLCJzb3VyY2VzQ29udGVudCI6WyJtYXQtY2FyZCAgeyAgIFxyXG4gIHdpZHRoOiAyODBweDsgICBcclxuICBoZWlnaHQ6IDE2MHB4OyBcclxuXHJcbn1cclxuLmV4YW1wbGUtY2FyZCBidXR0b24ge1xyXG4gIGJveC1zaGFkb3c6bm9uZSAhaW1wb3J0YW50O1xyXG4gIGN1cnNvcjpwb2ludGVyO1xyXG59Il19 */\"] });\r\n"]},"metadata":{},"sourceType":"module"}
Index: trip-planner-front/node_modules/.cache/babel-webpack/bcb430c2978a162260f50c01e6bd9113.json
===================================================================
--- trip-planner-front/node_modules/.cache/babel-webpack/bcb430c2978a162260f50c01e6bd9113.json	(revision bdd64917749115bbdd228a9569a675d590c112e3)
+++ trip-planner-front/node_modules/.cache/babel-webpack/bcb430c2978a162260f50c01e6bd9113.json	(revision bdd64917749115bbdd228a9569a675d590c112e3)
@@ -0,0 +1,1 @@
+{"ast":null,"code":"import { CreateInitialPlannerComponent } from '../create-initial-planner/create-initial-planner.component';\nimport { PlannerDto } from '../_models/dto/plannerDto';\nimport { DialogService, DynamicDialogRef } from 'primeng/dynamicdialog';\nimport { MessageService } from 'primeng/api';\nimport { UserDto } from '../_models/dto/userDto';\nimport * as i0 from \"@angular/core\";\nimport * as i1 from \"../_services/planner.service\";\nimport * as i2 from \"@angular/router\";\nimport * as i3 from \"primeng/dynamicdialog\";\nimport * as i4 from \"primeng/api\";\nimport * as i5 from \"../_services/user.service\";\nimport * as i6 from \"primeng/toast\";\nimport * as i7 from \"primeng/button\";\nimport * as i8 from \"primeng/ripple\";\nimport * as i9 from \"primeng/table\";\nimport * as i10 from \"@angular/common\";\nimport * as i11 from \"primeng/card\";\n\nfunction PlannerComponent_ng_template_6_ng_template_2_Template(rf, ctx) {}\n\nconst _c0 = function () {\n  return {\n    \"margin-left\": \".5em\"\n  };\n};\n\nfunction PlannerComponent_ng_template_6_ng_template_5_Template(rf, ctx) {\n  if (rf & 1) {\n    const _r9 = i0.ɵɵgetCurrentView();\n\n    i0.ɵɵelementStart(0, \"button\", 10);\n    i0.ɵɵlistener(\"click\", function PlannerComponent_ng_template_6_ng_template_5_Template_button_click_0_listener() {\n      i0.ɵɵrestoreView(_r9);\n      const planner_r4 = i0.ɵɵnextContext().$implicit;\n      const ctx_r7 = i0.ɵɵnextContext();\n      return ctx_r7.onClickEditPlannerGet(planner_r4.id);\n    });\n    i0.ɵɵelementEnd();\n    i0.ɵɵelement(1, \"button\", 11);\n  }\n\n  if (rf & 2) {\n    i0.ɵɵadvance(1);\n    i0.ɵɵstyleMap(i0.ɵɵpureFunction0(2, _c0));\n  }\n}\n\nconst _c1 = function () {\n  return {\n    width: \"360px\"\n  };\n};\n\nfunction PlannerComponent_ng_template_6_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelementStart(0, \"td\");\n    i0.ɵɵelementStart(1, \"p-card\", 7);\n    i0.ɵɵtemplate(2, PlannerComponent_ng_template_6_ng_template_2_Template, 0, 0, \"ng-template\", 8);\n    i0.ɵɵelementStart(3, \"p\");\n    i0.ɵɵtext(4);\n    i0.ɵɵelementEnd();\n    i0.ɵɵtemplate(5, PlannerComponent_ng_template_6_ng_template_5_Template, 2, 3, \"ng-template\", 9);\n    i0.ɵɵelementEnd();\n    i0.ɵɵelementEnd();\n  }\n\n  if (rf & 2) {\n    const planner_r4 = ctx.$implicit;\n    i0.ɵɵadvance(1);\n    i0.ɵɵstyleMap(i0.ɵɵpureFunction0(4, _c1));\n    i0.ɵɵpropertyInterpolate(\"header\", planner_r4.name);\n    i0.ɵɵadvance(3);\n    i0.ɵɵtextInterpolate(planner_r4.description);\n  }\n}\n\nfunction PlannerComponent_div_7_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelementStart(0, \"div\");\n    i0.ɵɵelementStart(1, \"span\", 12);\n    i0.ɵɵtext(2);\n    i0.ɵɵelementEnd();\n    i0.ɵɵelementEnd();\n  }\n\n  if (rf & 2) {\n    const ctx_r1 = i0.ɵɵnextContext();\n    i0.ɵɵadvance(2);\n    i0.ɵɵtextInterpolate(ctx_r1.userDisplayName);\n  }\n}\n\nfunction PlannerComponent_ng_template_9_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelementStart(0, \"div\");\n    i0.ɵɵelementStart(1, \"span\");\n    i0.ɵɵtext(2);\n    i0.ɵɵelementEnd();\n    i0.ɵɵelementEnd();\n  }\n\n  if (rf & 2) {\n    const a_r11 = ctx.aVariable;\n    i0.ɵɵadvance(2);\n    i0.ɵɵtextInterpolate(a_r11);\n  }\n}\n\nconst _c2 = function () {\n  return {\n    aVariable: 123\n  };\n};\n\nexport class PlannerComponent {\n  constructor(plannerService, router, dialogService, primengConfig, messageService, userService) {\n    this.plannerService = plannerService;\n    this.router = router;\n    this.dialogService = dialogService;\n    this.primengConfig = primengConfig;\n    this.messageService = messageService;\n    this.userService = userService;\n    this.planners = [];\n    this.plannerDto = new PlannerDto();\n    this.ref = new DynamicDialogRef();\n    this.user = new UserDto();\n  }\n\n  ngOnInit() {\n    this.primengConfig.ripple = true;\n    let userDisplayName = sessionStorage.getItem(\"username\");\n    this.plannerService.getAllPlanners().subscribe(data => {\n      this.planners = data;\n    });\n  }\n\n  onClickEditPlannerGet(id) {\n    console.log(id);\n    this.plannerService.getPlannerById(id).subscribe(data => {\n      this.router.navigate(['edit/planner/', id]);\n    });\n  }\n\n  show() {\n    this.ref = this.dialogService.open(CreateInitialPlannerComponent, {\n      header: 'Create initial planner',\n      width: '70%',\n      contentStyle: {\n        \"max-height\": \"500px\",\n        \"overflow\": \"auto\"\n      },\n      baseZIndex: 10000\n    });\n    this.ref.onClose.subscribe(planner => {\n      console.log(\"NOVOKREIRANIOT NAME NA PLANNER: \" + planner.name);\n      this.plannerService.postInitialPlanner(planner).subscribe(data => {\n        console.log(data);\n      }, error => console.log('oops', error));\n      this.messageService.add({\n        severity: 'success',\n        summary: 'The planner: ' + planner.name + ' has been created.'\n      });\n    });\n  }\n\n}\n\nPlannerComponent.ɵfac = function PlannerComponent_Factory(t) {\n  return new (t || PlannerComponent)(i0.ɵɵdirectiveInject(i1.PlannerService), i0.ɵɵdirectiveInject(i2.Router), i0.ɵɵdirectiveInject(i3.DialogService), i0.ɵɵdirectiveInject(i4.PrimeNGConfig), i0.ɵɵdirectiveInject(i4.MessageService), i0.ɵɵdirectiveInject(i5.UserService));\n};\n\nPlannerComponent.ɵcmp = /*@__PURE__*/i0.ɵɵdefineComponent({\n  type: PlannerComponent,\n  selectors: [[\"app-planner\"]],\n  features: [i0.ɵɵProvidersFeature([DialogService, MessageService])],\n  decls: 11,\n  vars: 10,\n  consts: [[\"href\", \"https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/css/bootstrap.min.css\", \"rel\", \"stylesheet\", \"integrity\", \"sha384-+0n0xVW2eSR5OomGNYDnhzAbDsOXxcvSN1TPprVMTNDbiYZCxYbOOl7+AMvyTG2x\", \"crossorigin\", \"anonymous\"], [\"pButton\", \"\", \"pRipple\", \"\", \"type\", \"button\", \"label\", \"Create initial planner\", 1, \"p-button-help\", 3, \"click\"], [3, \"value\", \"paginator\", \"rows\", \"responsive\"], [\"pTemplate\", \"body\"], [4, \"ngIf\"], [3, \"ngTemplateOutlet\", \"ngTemplateOutletContext\"], [\"selfie\", \"\"], [\"subheader\", \"Card Subheader\", \"styleClass\", \"p-card-shadow\", 3, \"header\"], [\"pTemplate\", \"header\"], [\"pTemplate\", \"footer\"], [\"pButton\", \"\", \"pRipple\", \"\", \"type\", \"button\", \"label\", \"Edit\", 1, \"p-button-outlined\", \"p-button-rounded\", \"p-button-help\", 3, \"click\"], [\"pButton\", \"\", \"pRipple\", \"\", \"type\", \"button\", \"icon\", \"pi pi-times\", \"label\", \"Delete\", 1, \"p-button-rounded\", \"p-button-danger\", \"p-button-outlined\"], [1, \"text-warn\"]],\n  template: function PlannerComponent_Template(rf, ctx) {\n    if (rf & 1) {\n      i0.ɵɵelement(0, \"link\", 0);\n      i0.ɵɵelement(1, \"p-toast\");\n      i0.ɵɵelementStart(2, \"button\", 1);\n      i0.ɵɵlistener(\"click\", function PlannerComponent_Template_button_click_2_listener() {\n        return ctx.show();\n      });\n      i0.ɵɵelementEnd();\n      i0.ɵɵelement(3, \"br\");\n      i0.ɵɵelement(4, \"br\");\n      i0.ɵɵelementStart(5, \"p-table\", 2);\n      i0.ɵɵtemplate(6, PlannerComponent_ng_template_6_Template, 6, 5, \"ng-template\", 3);\n      i0.ɵɵelementEnd();\n      i0.ɵɵtemplate(7, PlannerComponent_div_7_Template, 3, 1, \"div\", 4);\n      i0.ɵɵpipe(8, \"async\");\n      i0.ɵɵtemplate(9, PlannerComponent_ng_template_9_Template, 3, 1, \"ng-template\", 5, 6, i0.ɵɵtemplateRefExtractor);\n    }\n\n    if (rf & 2) {\n      const _r2 = i0.ɵɵreference(10);\n\n      i0.ɵɵadvance(5);\n      i0.ɵɵproperty(\"value\", ctx.planners)(\"paginator\", true)(\"rows\", 3)(\"responsive\", true);\n      i0.ɵɵadvance(2);\n      i0.ɵɵproperty(\"ngIf\", i0.ɵɵpipeBind1(8, 7, ctx.userDisplayName$));\n      i0.ɵɵadvance(2);\n      i0.ɵɵproperty(\"ngTemplateOutlet\", _r2)(\"ngTemplateOutletContext\", i0.ɵɵpureFunction0(9, _c2));\n    }\n  },\n  directives: [i6.Toast, i7.ButtonDirective, i8.Ripple, i9.Table, i4.PrimeTemplate, i10.NgIf, i10.NgTemplateOutlet, i11.Card],\n  pipes: [i10.AsyncPipe],\n  styles: [\"mat-card[_ngcontent-%COMP%]  {   \\r\\n  width: 280px;   \\r\\n  height: 160px; \\r\\n\\r\\n}\\r\\n.example-card[_ngcontent-%COMP%]   button[_ngcontent-%COMP%] {\\r\\n  box-shadow:none !important;\\r\\n  cursor:pointer;\\r\\n}\\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInBsYW5uZXIuY29tcG9uZW50LmNzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNFLFlBQVk7RUFDWixhQUFhOztBQUVmO0FBQ0E7RUFDRSwwQkFBMEI7RUFDMUIsY0FBYztBQUNoQiIsImZpbGUiOiJwbGFubmVyLmNvbXBvbmVudC5jc3MiLCJzb3VyY2VzQ29udGVudCI6WyJtYXQtY2FyZCAgeyAgIFxyXG4gIHdpZHRoOiAyODBweDsgICBcclxuICBoZWlnaHQ6IDE2MHB4OyBcclxuXHJcbn1cclxuLmV4YW1wbGUtY2FyZCBidXR0b24ge1xyXG4gIGJveC1zaGFkb3c6bm9uZSAhaW1wb3J0YW50O1xyXG4gIGN1cnNvcjpwb2ludGVyO1xyXG59Il19 */\"]\n});","map":{"version":3,"sources":["C:/Users/DELL/Desktop/bachelor-thesis/trip-planner-front/src/app/planner/planner.component.ts"],"names":["CreateInitialPlannerComponent","PlannerDto","DialogService","DynamicDialogRef","MessageService","UserDto","i0","i1","i2","i3","i4","i5","i6","i7","i8","i9","i10","i11","PlannerComponent_ng_template_6_ng_template_2_Template","rf","ctx","_c0","PlannerComponent_ng_template_6_ng_template_5_Template","_r9","ɵɵgetCurrentView","ɵɵelementStart","ɵɵlistener","PlannerComponent_ng_template_6_ng_template_5_Template_button_click_0_listener","ɵɵrestoreView","planner_r4","ɵɵnextContext","$implicit","ctx_r7","onClickEditPlannerGet","id","ɵɵelementEnd","ɵɵelement","ɵɵadvance","ɵɵstyleMap","ɵɵpureFunction0","_c1","width","PlannerComponent_ng_template_6_Template","ɵɵtemplate","ɵɵtext","ɵɵpropertyInterpolate","name","ɵɵtextInterpolate","description","PlannerComponent_div_7_Template","ctx_r1","userDisplayName","PlannerComponent_ng_template_9_Template","a_r11","aVariable","_c2","PlannerComponent","constructor","plannerService","router","dialogService","primengConfig","messageService","userService","planners","plannerDto","ref","user","ngOnInit","ripple","sessionStorage","getItem","getAllPlanners","subscribe","data","console","log","getPlannerById","navigate","show","open","header","contentStyle","baseZIndex","onClose","planner","postInitialPlanner","error","add","severity","summary","ɵfac","PlannerComponent_Factory","t","ɵɵdirectiveInject","PlannerService","Router","PrimeNGConfig","UserService","ɵcmp","ɵɵdefineComponent","type","selectors","features","ɵɵProvidersFeature","decls","vars","consts","template","PlannerComponent_Template","PlannerComponent_Template_button_click_2_listener","ɵɵpipe","ɵɵtemplateRefExtractor","_r2","ɵɵreference","ɵɵproperty","ɵɵpipeBind1","userDisplayName$","directives","Toast","ButtonDirective","Ripple","Table","PrimeTemplate","NgIf","NgTemplateOutlet","Card","pipes","AsyncPipe","styles"],"mappings":"AAAA,SAASA,6B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AH,CAAa,CAAb;AACA/B,MAAAA,EAAE,CAAC6G,UAAH,CAAc,kBAAd,EAAkCF,GAAlC,EAAuC,yBAAvC,EAAkE3G,EAAE,CAACiC,eAAH,CAAmB,CAAnB,EAAsBgB,GAAtB,CAAlE;AACH;AAAE,GAtBoD;AAsBlD+D,EAAAA,UAAU,EAAE,CAAC1G,EAAE,CAAC2G,KAAJ,EAAW1G,EAAE,CAAC2G,eAAd,EAA+B1G,EAAE,CAAC2G,MAAlC,EAA0C1G,EAAE,CAAC2G,KAA7C,EAAoDhH,EAAE,CAACiH,aAAvD,EAAsE3G,GAAG,CAAC4G,IAA1E,EAAgF5G,GAAG,CAAC6G,gBAApF,EAAsG5G,GAAG,CAAC6G,IAA1G,CAtBsC;AAsB2EC,EAAAA,KAAK,EAAE,CAAC/G,GAAG,CAACgH,SAAL,CAtBlF;AAsBmGC,EAAAA,MAAM,EAAE,CAAC,mtBAAD;AAtB3G,CAArB,CAAtC","sourcesContent":["import { CreateInitialPlannerComponent } from '../create-initial-planner/create-initial-planner.component';\r\nimport { PlannerDto } from '../_models/dto/plannerDto';\r\nimport { DialogService, DynamicDialogRef } from 'primeng/dynamicdialog';\r\nimport { MessageService } from 'primeng/api';\r\nimport { UserDto } from '../_models/dto/userDto';\r\nimport * as i0 from \"@angular/core\";\r\nimport * as i1 from \"../_services/planner.service\";\r\nimport * as i2 from \"@angular/router\";\r\nimport * as i3 from \"primeng/dynamicdialog\";\r\nimport * as i4 from \"primeng/api\";\r\nimport * as i5 from \"../_services/user.service\";\r\nimport * as i6 from \"primeng/toast\";\r\nimport * as i7 from \"primeng/button\";\r\nimport * as i8 from \"primeng/ripple\";\r\nimport * as i9 from \"primeng/table\";\r\nimport * as i10 from \"@angular/common\";\r\nimport * as i11 from \"primeng/card\";\r\nfunction PlannerComponent_ng_template_6_ng_template_2_Template(rf, ctx) { }\r\nconst _c0 = function () { return { \"margin-left\": \".5em\" }; };\r\nfunction PlannerComponent_ng_template_6_ng_template_5_Template(rf, ctx) { if (rf & 1) {\r\n    const _r9 = i0.ɵɵgetCurrentView();\r\n    i0.ɵɵelementStart(0, \"button\", 10);\r\n    i0.ɵɵlistener(\"click\", function PlannerComponent_ng_template_6_ng_template_5_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r9); const planner_r4 = i0.ɵɵnextContext().$implicit; const ctx_r7 = i0.ɵɵnextContext(); return ctx_r7.onClickEditPlannerGet(planner_r4.id); });\r\n    i0.ɵɵelementEnd();\r\n    i0.ɵɵelement(1, \"button\", 11);\r\n} if (rf & 2) {\r\n    i0.ɵɵadvance(1);\r\n    i0.ɵɵstyleMap(i0.ɵɵpureFunction0(2, _c0));\r\n} }\r\nconst _c1 = function () { return { width: \"360px\" }; };\r\nfunction PlannerComponent_ng_template_6_Template(rf, ctx) { if (rf & 1) {\r\n    i0.ɵɵelementStart(0, \"td\");\r\n    i0.ɵɵelementStart(1, \"p-card\", 7);\r\n    i0.ɵɵtemplate(2, PlannerComponent_ng_template_6_ng_template_2_Template, 0, 0, \"ng-template\", 8);\r\n    i0.ɵɵelementStart(3, \"p\");\r\n    i0.ɵɵtext(4);\r\n    i0.ɵɵelementEnd();\r\n    i0.ɵɵtemplate(5, PlannerComponent_ng_template_6_ng_template_5_Template, 2, 3, \"ng-template\", 9);\r\n    i0.ɵɵelementEnd();\r\n    i0.ɵɵelementEnd();\r\n} if (rf & 2) {\r\n    const planner_r4 = ctx.$implicit;\r\n    i0.ɵɵadvance(1);\r\n    i0.ɵɵstyleMap(i0.ɵɵpureFunction0(4, _c1));\r\n    i0.ɵɵpropertyInterpolate(\"header\", planner_r4.name);\r\n    i0.ɵɵadvance(3);\r\n    i0.ɵɵtextInterpolate(planner_r4.description);\r\n} }\r\nfunction PlannerComponent_div_7_Template(rf, ctx) { if (rf & 1) {\r\n    i0.ɵɵelementStart(0, \"div\");\r\n    i0.ɵɵelementStart(1, \"span\", 12);\r\n    i0.ɵɵtext(2);\r\n    i0.ɵɵelementEnd();\r\n    i0.ɵɵelementEnd();\r\n} if (rf & 2) {\r\n    const ctx_r1 = i0.ɵɵnextContext();\r\n    i0.ɵɵadvance(2);\r\n    i0.ɵɵtextInterpolate(ctx_r1.userDisplayName);\r\n} }\r\nfunction PlannerComponent_ng_template_9_Template(rf, ctx) { if (rf & 1) {\r\n    i0.ɵɵelementStart(0, \"div\");\r\n    i0.ɵɵelementStart(1, \"span\");\r\n    i0.ɵɵtext(2);\r\n    i0.ɵɵelementEnd();\r\n    i0.ɵɵelementEnd();\r\n} if (rf & 2) {\r\n    const a_r11 = ctx.aVariable;\r\n    i0.ɵɵadvance(2);\r\n    i0.ɵɵtextInterpolate(a_r11);\r\n} }\r\nconst _c2 = function () { return { aVariable: 123 }; };\r\nexport class PlannerComponent {\r\n    constructor(plannerService, router, dialogService, primengConfig, messageService, userService) {\r\n        this.plannerService = plannerService;\r\n        this.router = router;\r\n        this.dialogService = dialogService;\r\n        this.primengConfig = primengConfig;\r\n        this.messageService = messageService;\r\n        this.userService = userService;\r\n        this.planners = [];\r\n        this.plannerDto = new PlannerDto();\r\n        this.ref = new DynamicDialogRef;\r\n        this.user = new UserDto();\r\n    }\r\n    ngOnInit() {\r\n        this.primengConfig.ripple = true;\r\n        let userDisplayName = sessionStorage.getItem(\"username\");\r\n        this.plannerService.getAllPlanners().subscribe(data => {\r\n            this.planners = data;\r\n        });\r\n    }\r\n    onClickEditPlannerGet(id) {\r\n        console.log(id);\r\n        this.plannerService.getPlannerById(id).subscribe(data => {\r\n            this.router.navigate(['edit/planner/', id]);\r\n        });\r\n    }\r\n    show() {\r\n        this.ref = this.dialogService.open(CreateInitialPlannerComponent, {\r\n            header: 'Create initial planner',\r\n            width: '70%',\r\n            contentStyle: { \"max-height\": \"500px\", \"overflow\": \"auto\" },\r\n            baseZIndex: 10000\r\n        });\r\n        this.ref.onClose.subscribe((planner) => {\r\n            console.log(\"NOVOKREIRANIOT NAME NA PLANNER: \" + planner.name);\r\n            this.plannerService.postInitialPlanner(planner).subscribe(data => {\r\n                console.log(data);\r\n            }, error => console.log('oops', error));\r\n            this.messageService.add({ severity: 'success', summary: 'The planner: ' + planner.name + ' has been created.' });\r\n        });\r\n    }\r\n}\r\nPlannerComponent.ɵfac = function PlannerComponent_Factory(t) { return new (t || PlannerComponent)(i0.ɵɵdirectiveInject(i1.PlannerService), i0.ɵɵdirectiveInject(i2.Router), i0.ɵɵdirectiveInject(i3.DialogService), i0.ɵɵdirectiveInject(i4.PrimeNGConfig), i0.ɵɵdirectiveInject(i4.MessageService), i0.ɵɵdirectiveInject(i5.UserService)); };\r\nPlannerComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PlannerComponent, selectors: [[\"app-planner\"]], features: [i0.ɵɵProvidersFeature([DialogService, MessageService])], decls: 11, vars: 10, consts: [[\"href\", \"https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/css/bootstrap.min.css\", \"rel\", \"stylesheet\", \"integrity\", \"sha384-+0n0xVW2eSR5OomGNYDnhzAbDsOXxcvSN1TPprVMTNDbiYZCxYbOOl7+AMvyTG2x\", \"crossorigin\", \"anonymous\"], [\"pButton\", \"\", \"pRipple\", \"\", \"type\", \"button\", \"label\", \"Create initial planner\", 1, \"p-button-help\", 3, \"click\"], [3, \"value\", \"paginator\", \"rows\", \"responsive\"], [\"pTemplate\", \"body\"], [4, \"ngIf\"], [3, \"ngTemplateOutlet\", \"ngTemplateOutletContext\"], [\"selfie\", \"\"], [\"subheader\", \"Card Subheader\", \"styleClass\", \"p-card-shadow\", 3, \"header\"], [\"pTemplate\", \"header\"], [\"pTemplate\", \"footer\"], [\"pButton\", \"\", \"pRipple\", \"\", \"type\", \"button\", \"label\", \"Edit\", 1, \"p-button-outlined\", \"p-button-rounded\", \"p-button-help\", 3, \"click\"], [\"pButton\", \"\", \"pRipple\", \"\", \"type\", \"button\", \"icon\", \"pi pi-times\", \"label\", \"Delete\", 1, \"p-button-rounded\", \"p-button-danger\", \"p-button-outlined\"], [1, \"text-warn\"]], template: function PlannerComponent_Template(rf, ctx) { if (rf & 1) {\r\n        i0.ɵɵelement(0, \"link\", 0);\r\n        i0.ɵɵelement(1, \"p-toast\");\r\n        i0.ɵɵelementStart(2, \"button\", 1);\r\n        i0.ɵɵlistener(\"click\", function PlannerComponent_Template_button_click_2_listener() { return ctx.show(); });\r\n        i0.ɵɵelementEnd();\r\n        i0.ɵɵelement(3, \"br\");\r\n        i0.ɵɵelement(4, \"br\");\r\n        i0.ɵɵelementStart(5, \"p-table\", 2);\r\n        i0.ɵɵtemplate(6, PlannerComponent_ng_template_6_Template, 6, 5, \"ng-template\", 3);\r\n        i0.ɵɵelementEnd();\r\n        i0.ɵɵtemplate(7, PlannerComponent_div_7_Template, 3, 1, \"div\", 4);\r\n        i0.ɵɵpipe(8, \"async\");\r\n        i0.ɵɵtemplate(9, PlannerComponent_ng_template_9_Template, 3, 1, \"ng-template\", 5, 6, i0.ɵɵtemplateRefExtractor);\r\n    } if (rf & 2) {\r\n        const _r2 = i0.ɵɵreference(10);\r\n        i0.ɵɵadvance(5);\r\n        i0.ɵɵproperty(\"value\", ctx.planners)(\"paginator\", true)(\"rows\", 3)(\"responsive\", true);\r\n        i0.ɵɵadvance(2);\r\n        i0.ɵɵproperty(\"ngIf\", i0.ɵɵpipeBind1(8, 7, ctx.userDisplayName$));\r\n        i0.ɵɵadvance(2);\r\n        i0.ɵɵproperty(\"ngTemplateOutlet\", _r2)(\"ngTemplateOutletContext\", i0.ɵɵpureFunction0(9, _c2));\r\n    } }, directives: [i6.Toast, i7.ButtonDirective, i8.Ripple, i9.Table, i4.PrimeTemplate, i10.NgIf, i10.NgTemplateOutlet, i11.Card], pipes: [i10.AsyncPipe], styles: [\"mat-card[_ngcontent-%COMP%]  {   \\r\\n  width: 280px;   \\r\\n  height: 160px; \\r\\n\\r\\n}\\r\\n.example-card[_ngcontent-%COMP%]   button[_ngcontent-%COMP%] {\\r\\n  box-shadow:none !important;\\r\\n  cursor:pointer;\\r\\n}\\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInBsYW5uZXIuY29tcG9uZW50LmNzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNFLFlBQVk7RUFDWixhQUFhOztBQUVmO0FBQ0E7RUFDRSwwQkFBMEI7RUFDMUIsY0FBYztBQUNoQiIsImZpbGUiOiJwbGFubmVyLmNvbXBvbmVudC5jc3MiLCJzb3VyY2VzQ29udGVudCI6WyJtYXQtY2FyZCAgeyAgIFxyXG4gIHdpZHRoOiAyODBweDsgICBcclxuICBoZWlnaHQ6IDE2MHB4OyBcclxuXHJcbn1cclxuLmV4YW1wbGUtY2FyZCBidXR0b24ge1xyXG4gIGJveC1zaGFkb3c6bm9uZSAhaW1wb3J0YW50O1xyXG4gIGN1cnNvcjpwb2ludGVyO1xyXG59Il19 */\"] });\r\n"]},"metadata":{},"sourceType":"module"}
Index: trip-planner-front/node_modules/.cache/babel-webpack/dcdbffc8b51c8ee40ca43844bc55878b.json
===================================================================
--- trip-planner-front/node_modules/.cache/babel-webpack/dcdbffc8b51c8ee40ca43844bc55878b.json	(revision bdd64917749115bbdd228a9569a675d590c112e3)
+++ trip-planner-front/node_modules/.cache/babel-webpack/dcdbffc8b51c8ee40ca43844bc55878b.json	(revision bdd64917749115bbdd228a9569a675d590c112e3)
@@ -0,0 +1,1 @@
+{"ast":null,"code":"import * as i0 from '@angular/core';\nimport { EventEmitter, Component, ViewEncapsulation, Input, Output, ChangeDetectionStrategy, ContentChildren, ViewChild, NgModule } from '@angular/core';\nimport * as i1 from '@angular/common';\nimport { CommonModule } from '@angular/common';\nimport { ZIndexUtils } from 'primeng/utils';\nimport * as i5 from 'primeng/api';\nimport { PrimeTemplate } from 'primeng/api';\nimport * as i4 from '@angular/router';\nimport { RouterModule } from '@angular/router';\nimport * as i3 from 'primeng/ripple';\nimport { RippleModule } from 'primeng/ripple';\nimport * as i2 from 'primeng/tooltip';\nimport { TooltipModule } from 'primeng/tooltip';\n\nconst _c0 = function (a0) {\n  return {\n    \"p-hidden\": a0\n  };\n};\n\nfunction MenubarSub_ng_template_1_li_0_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelement(0, \"li\", 4);\n  }\n\n  if (rf & 2) {\n    const child_r1 = i0.ɵɵnextContext().$implicit;\n    i0.ɵɵproperty(\"ngClass\", i0.ɵɵpureFunction1(1, _c0, child_r1.visible === false));\n  }\n}\n\nfunction MenubarSub_ng_template_1_li_1_a_2_span_1_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelement(0, \"span\", 15);\n  }\n\n  if (rf & 2) {\n    const child_r1 = i0.ɵɵnextContext(3).$implicit;\n    i0.ɵɵproperty(\"ngClass\", child_r1.icon);\n  }\n}\n\nfunction MenubarSub_ng_template_1_li_1_a_2_span_2_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelementStart(0, \"span\", 16);\n    i0.ɵɵtext(1);\n    i0.ɵɵelementEnd();\n  }\n\n  if (rf & 2) {\n    const child_r1 = i0.ɵɵnextContext(3).$implicit;\n    i0.ɵɵadvance(1);\n    i0.ɵɵtextInterpolate(child_r1.label);\n  }\n}\n\nfunction MenubarSub_ng_template_1_li_1_a_2_ng_template_3_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelement(0, \"span\", 17);\n  }\n\n  if (rf & 2) {\n    const child_r1 = i0.ɵɵnextContext(3).$implicit;\n    i0.ɵɵproperty(\"innerHTML\", child_r1.label, i0.ɵɵsanitizeHtml);\n  }\n}\n\nconst _c1 = function (a0, a1) {\n  return {\n    \"pi-angle-down\": a0,\n    \"pi-angle-right\": a1\n  };\n};\n\nfunction MenubarSub_ng_template_1_li_1_a_2_span_5_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelement(0, \"span\", 18);\n  }\n\n  if (rf & 2) {\n    const ctx_r13 = i0.ɵɵnextContext(4);\n    i0.ɵɵproperty(\"ngClass\", i0.ɵɵpureFunction2(1, _c1, ctx_r13.root, !ctx_r13.root));\n  }\n}\n\nconst _c2 = function (a1) {\n  return {\n    \"p-menuitem-link\": true,\n    \"p-disabled\": a1\n  };\n};\n\nfunction MenubarSub_ng_template_1_li_1_a_2_Template(rf, ctx) {\n  if (rf & 1) {\n    const _r19 = i0.ɵɵgetCurrentView();\n\n    i0.ɵɵelementStart(0, \"a\", 10);\n    i0.ɵɵlistener(\"click\", function MenubarSub_ng_template_1_li_1_a_2_Template_a_click_0_listener($event) {\n      i0.ɵɵrestoreView(_r19);\n      const child_r1 = i0.ɵɵnextContext(2).$implicit;\n      const ctx_r17 = i0.ɵɵnextContext();\n      return ctx_r17.onItemClick($event, child_r1);\n    })(\"mouseenter\", function MenubarSub_ng_template_1_li_1_a_2_Template_a_mouseenter_0_listener($event) {\n      i0.ɵɵrestoreView(_r19);\n      const child_r1 = i0.ɵɵnextContext(2).$implicit;\n      const ctx_r20 = i0.ɵɵnextContext();\n      return ctx_r20.onItemMouseEnter($event, child_r1);\n    });\n    i0.ɵɵtemplate(1, MenubarSub_ng_template_1_li_1_a_2_span_1_Template, 1, 1, \"span\", 11);\n    i0.ɵɵtemplate(2, MenubarSub_ng_template_1_li_1_a_2_span_2_Template, 2, 1, \"span\", 12);\n    i0.ɵɵtemplate(3, MenubarSub_ng_template_1_li_1_a_2_ng_template_3_Template, 1, 1, \"ng-template\", null, 13, i0.ɵɵtemplateRefExtractor);\n    i0.ɵɵtemplate(5, MenubarSub_ng_template_1_li_1_a_2_span_5_Template, 1, 4, \"span\", 14);\n    i0.ɵɵelementEnd();\n  }\n\n  if (rf & 2) {\n    const _r11 = i0.ɵɵreference(4);\n\n    const child_r1 = i0.ɵɵnextContext(2).$implicit;\n    const ctx_r6 = i0.ɵɵnextContext();\n    i0.ɵɵproperty(\"ngClass\", i0.ɵɵpureFunction1(13, _c2, child_r1.disabled));\n    i0.ɵɵattribute(\"href\", child_r1.url, i0.ɵɵsanitizeUrl)(\"data-automationid\", child_r1.automationId)(\"target\", child_r1.target)(\"title\", child_r1.title)(\"id\", child_r1.id)(\"tabindex\", child_r1.disabled ? null : \"0\")(\"aria-haspopup\", ctx_r6.item.items != null)(\"aria-expanded\", ctx_r6.item === ctx_r6.activeItem);\n    i0.ɵɵadvance(1);\n    i0.ɵɵproperty(\"ngIf\", child_r1.icon);\n    i0.ɵɵadvance(1);\n    i0.ɵɵproperty(\"ngIf\", child_r1.escape !== false)(\"ngIfElse\", _r11);\n    i0.ɵɵadvance(3);\n    i0.ɵɵproperty(\"ngIf\", child_r1.items);\n  }\n}\n\nfunction MenubarSub_ng_template_1_li_1_a_3_span_1_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelement(0, \"span\", 15);\n  }\n\n  if (rf & 2) {\n    const child_r1 = i0.ɵɵnextContext(3).$implicit;\n    i0.ɵɵproperty(\"ngClass\", child_r1.icon);\n  }\n}\n\nfunction MenubarSub_ng_template_1_li_1_a_3_span_2_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelementStart(0, \"span\", 16);\n    i0.ɵɵtext(1);\n    i0.ɵɵelementEnd();\n  }\n\n  if (rf & 2) {\n    const child_r1 = i0.ɵɵnextContext(3).$implicit;\n    i0.ɵɵadvance(1);\n    i0.ɵɵtextInterpolate(child_r1.label);\n  }\n}\n\nfunction MenubarSub_ng_template_1_li_1_a_3_ng_template_3_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelement(0, \"span\", 17);\n  }\n\n  if (rf & 2) {\n    const child_r1 = i0.ɵɵnextContext(3).$implicit;\n    i0.ɵɵproperty(\"innerHTML\", child_r1.label, i0.ɵɵsanitizeHtml);\n  }\n}\n\nfunction MenubarSub_ng_template_1_li_1_a_3_span_5_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelement(0, \"span\", 18);\n  }\n\n  if (rf & 2) {\n    const ctx_r27 = i0.ɵɵnextContext(4);\n    i0.ɵɵproperty(\"ngClass\", i0.ɵɵpureFunction2(1, _c1, ctx_r27.root, !ctx_r27.root));\n  }\n}\n\nconst _c3 = function () {\n  return {\n    exact: false\n  };\n};\n\nfunction MenubarSub_ng_template_1_li_1_a_3_Template(rf, ctx) {\n  if (rf & 1) {\n    const _r33 = i0.ɵɵgetCurrentView();\n\n    i0.ɵɵelementStart(0, \"a\", 19);\n    i0.ɵɵlistener(\"click\", function MenubarSub_ng_template_1_li_1_a_3_Template_a_click_0_listener($event) {\n      i0.ɵɵrestoreView(_r33);\n      const child_r1 = i0.ɵɵnextContext(2).$implicit;\n      const ctx_r31 = i0.ɵɵnextContext();\n      return ctx_r31.onItemClick($event, child_r1);\n    })(\"mouseenter\", function MenubarSub_ng_template_1_li_1_a_3_Template_a_mouseenter_0_listener($event) {\n      i0.ɵɵrestoreView(_r33);\n      const child_r1 = i0.ɵɵnextContext(2).$implicit;\n      const ctx_r34 = i0.ɵɵnextContext();\n      return ctx_r34.onItemMouseEnter($event, child_r1);\n    });\n    i0.ɵɵtemplate(1, MenubarSub_ng_template_1_li_1_a_3_span_1_Template, 1, 1, \"span\", 11);\n    i0.ɵɵtemplate(2, MenubarSub_ng_template_1_li_1_a_3_span_2_Template, 2, 1, \"span\", 12);\n    i0.ɵɵtemplate(3, MenubarSub_ng_template_1_li_1_a_3_ng_template_3_Template, 1, 1, \"ng-template\", null, 20, i0.ɵɵtemplateRefExtractor);\n    i0.ɵɵtemplate(5, MenubarSub_ng_template_1_li_1_a_3_span_5_Template, 1, 4, \"span\", 14);\n    i0.ɵɵelementEnd();\n  }\n\n  if (rf & 2) {\n    const _r25 = i0.ɵɵreference(4);\n\n    const child_r1 = i0.ɵɵnextContext(2).$implicit;\n    i0.ɵɵproperty(\"routerLink\", child_r1.routerLink)(\"queryParams\", child_r1.queryParams)(\"routerLinkActive\", \"p-menuitem-link-active\")(\"routerLinkActiveOptions\", child_r1.routerLinkActiveOptions || i0.ɵɵpureFunction0(20, _c3))(\"ngClass\", i0.ɵɵpureFunction1(21, _c2, child_r1.disabled))(\"fragment\", child_r1.fragment)(\"queryParamsHandling\", child_r1.queryParamsHandling)(\"preserveFragment\", child_r1.preserveFragment)(\"skipLocationChange\", child_r1.skipLocationChange)(\"replaceUrl\", child_r1.replaceUrl)(\"state\", child_r1.state);\n    i0.ɵɵattribute(\"data-automationid\", child_r1.automationId)(\"target\", child_r1.target)(\"title\", child_r1.title)(\"id\", child_r1.id)(\"tabindex\", child_r1.disabled ? null : \"0\");\n    i0.ɵɵadvance(1);\n    i0.ɵɵproperty(\"ngIf\", child_r1.icon);\n    i0.ɵɵadvance(1);\n    i0.ɵɵproperty(\"ngIf\", child_r1.escape !== false)(\"ngIfElse\", _r25);\n    i0.ɵɵadvance(3);\n    i0.ɵɵproperty(\"ngIf\", child_r1.items);\n  }\n}\n\nfunction MenubarSub_ng_template_1_li_1_p_menubarSub_4_Template(rf, ctx) {\n  if (rf & 1) {\n    const _r38 = i0.ɵɵgetCurrentView();\n\n    i0.ɵɵelementStart(0, \"p-menubarSub\", 21);\n    i0.ɵɵlistener(\"leafClick\", function MenubarSub_ng_template_1_li_1_p_menubarSub_4_Template_p_menubarSub_leafClick_0_listener() {\n      i0.ɵɵrestoreView(_r38);\n      const ctx_r37 = i0.ɵɵnextContext(3);\n      return ctx_r37.onLeafClick();\n    });\n    i0.ɵɵelementEnd();\n  }\n\n  if (rf & 2) {\n    const child_r1 = i0.ɵɵnextContext(2).$implicit;\n    const ctx_r8 = i0.ɵɵnextContext();\n    i0.ɵɵproperty(\"parentActive\", child_r1 === ctx_r8.activeItem)(\"item\", child_r1)(\"mobileActive\", ctx_r8.mobileActive)(\"autoDisplay\", ctx_r8.autoDisplay);\n  }\n}\n\nconst _c4 = function (a1, a2) {\n  return {\n    \"p-menuitem\": true,\n    \"p-menuitem-active\": a1,\n    \"p-hidden\": a2\n  };\n};\n\nfunction MenubarSub_ng_template_1_li_1_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelementStart(0, \"li\", 5, 6);\n    i0.ɵɵtemplate(2, MenubarSub_ng_template_1_li_1_a_2_Template, 6, 15, \"a\", 7);\n    i0.ɵɵtemplate(3, MenubarSub_ng_template_1_li_1_a_3_Template, 6, 23, \"a\", 8);\n    i0.ɵɵtemplate(4, MenubarSub_ng_template_1_li_1_p_menubarSub_4_Template, 1, 4, \"p-menubarSub\", 9);\n    i0.ɵɵelementEnd();\n  }\n\n  if (rf & 2) {\n    const child_r1 = i0.ɵɵnextContext().$implicit;\n    const ctx_r3 = i0.ɵɵnextContext();\n    i0.ɵɵclassMap(child_r1.styleClass);\n    i0.ɵɵproperty(\"ngClass\", i0.ɵɵpureFunction2(8, _c4, child_r1 === ctx_r3.activeItem, child_r1.visible === false))(\"ngStyle\", child_r1.style)(\"tooltipOptions\", child_r1.tooltipOptions);\n    i0.ɵɵadvance(2);\n    i0.ɵɵproperty(\"ngIf\", !child_r1.routerLink);\n    i0.ɵɵadvance(1);\n    i0.ɵɵproperty(\"ngIf\", child_r1.routerLink);\n    i0.ɵɵadvance(1);\n    i0.ɵɵproperty(\"ngIf\", child_r1.items);\n  }\n}\n\nfunction MenubarSub_ng_template_1_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵtemplate(0, MenubarSub_ng_template_1_li_0_Template, 1, 3, \"li\", 2);\n    i0.ɵɵtemplate(1, MenubarSub_ng_template_1_li_1_Template, 5, 11, \"li\", 3);\n  }\n\n  if (rf & 2) {\n    const child_r1 = ctx.$implicit;\n    i0.ɵɵproperty(\"ngIf\", child_r1.separator);\n    i0.ɵɵadvance(1);\n    i0.ɵɵproperty(\"ngIf\", !child_r1.separator);\n  }\n}\n\nconst _c5 = function (a0, a1) {\n  return {\n    \"p-submenu-list\": a0,\n    \"p-menubar-root-list\": a1\n  };\n};\n\nconst _c6 = [\"menubutton\"];\nconst _c7 = [\"rootmenu\"];\n\nfunction Menubar_div_1_ng_container_1_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelementContainer(0);\n  }\n}\n\nfunction Menubar_div_1_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelementStart(0, \"div\", 9);\n    i0.ɵɵtemplate(1, Menubar_div_1_ng_container_1_Template, 1, 0, \"ng-container\", 10);\n    i0.ɵɵelementEnd();\n  }\n\n  if (rf & 2) {\n    const ctx_r0 = i0.ɵɵnextContext();\n    i0.ɵɵadvance(1);\n    i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r0.startTemplate);\n  }\n}\n\nfunction Menubar_div_7_ng_container_1_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelementContainer(0);\n  }\n}\n\nfunction Menubar_div_7_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelementStart(0, \"div\", 11);\n    i0.ɵɵtemplate(1, Menubar_div_7_ng_container_1_Template, 1, 0, \"ng-container\", 10);\n    i0.ɵɵelementEnd();\n  }\n\n  if (rf & 2) {\n    const ctx_r3 = i0.ɵɵnextContext();\n    i0.ɵɵadvance(1);\n    i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r3.endTemplate);\n  }\n}\n\nfunction Menubar_ng_template_8_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelementStart(0, \"div\", 11);\n    i0.ɵɵprojection(1);\n    i0.ɵɵelementEnd();\n  }\n}\n\nconst _c8 = function (a1) {\n  return {\n    \"p-menubar p-component\": true,\n    \"p-menubar-mobile-active\": a1\n  };\n};\n\nconst _c9 = [\"*\"];\n\nclass MenubarSub {\n  constructor(el, renderer, cd) {\n    this.el = el;\n    this.renderer = renderer;\n    this.cd = cd;\n    this.autoZIndex = true;\n    this.baseZIndex = 0;\n    this.leafClick = new EventEmitter();\n    this.menuHoverActive = false;\n  }\n\n  get parentActive() {\n    return this._parentActive;\n  }\n\n  set parentActive(value) {\n    if (!this.root) {\n      this._parentActive = value;\n      if (!value) this.activeItem = null;\n    }\n  }\n\n  onItemClick(event, item) {\n    if (item.disabled) {\n      event.preventDefault();\n      return;\n    }\n\n    if (!item.url && !item.routerLink) {\n      event.preventDefault();\n    }\n\n    if (item.command) {\n      item.command({\n        originalEvent: event,\n        item: item\n      });\n    }\n\n    if (item.items) {\n      if (this.activeItem && item === this.activeItem) {\n        this.activeItem = null;\n        this.unbindDocumentClickListener();\n      } else {\n        this.activeItem = item;\n\n        if (this.root) {\n          this.bindDocumentClickListener();\n        }\n      }\n    }\n\n    if (!item.items) {\n      this.onLeafClick();\n    }\n  }\n\n  onItemMouseEnter(event, item) {\n    if (item.disabled || this.mobileActive) {\n      event.preventDefault();\n      return;\n    }\n\n    if (this.root) {\n      if (this.activeItem || this.autoDisplay) {\n        this.activeItem = item;\n        this.bindDocumentClickListener();\n      }\n    } else {\n      this.activeItem = item;\n      this.bindDocumentClickListener();\n    }\n  }\n\n  onLeafClick() {\n    this.activeItem = null;\n\n    if (this.root) {\n      this.unbindDocumentClickListener();\n    }\n\n    this.leafClick.emit();\n  }\n\n  bindDocumentClickListener() {\n    if (!this.documentClickListener) {\n      this.documentClickListener = event => {\n        if (this.el && !this.el.nativeElement.contains(event.target)) {\n          this.activeItem = null;\n          this.cd.markForCheck();\n          this.unbindDocumentClickListener();\n        }\n      };\n\n      document.addEventListener('click', this.documentClickListener);\n    }\n  }\n\n  unbindDocumentClickListener() {\n    if (this.documentClickListener) {\n      document.removeEventListener('click', this.documentClickListener);\n      this.documentClickListener = null;\n    }\n  }\n\n  ngOnDestroy() {\n    this.unbindDocumentClickListener();\n  }\n\n}\n\nMenubarSub.ɵfac = function MenubarSub_Factory(t) {\n  return new (t || MenubarSub)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef));\n};\n\nMenubarSub.ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n  type: MenubarSub,\n  selectors: [[\"p-menubarSub\"]],\n  hostAttrs: [1, \"p-element\"],\n  inputs: {\n    item: \"item\",\n    root: \"root\",\n    autoZIndex: \"autoZIndex\",\n    baseZIndex: \"baseZIndex\",\n    mobileActive: \"mobileActive\",\n    autoDisplay: \"autoDisplay\",\n    parentActive: \"parentActive\"\n  },\n  outputs: {\n    leafClick: \"leafClick\"\n  },\n  decls: 2,\n  vars: 6,\n  consts: [[3, \"ngClass\"], [\"ngFor\", \"\", 3, \"ngForOf\"], [\"class\", \"p-menu-separator\", \"role\", \"separator\", 3, \"ngClass\", 4, \"ngIf\"], [\"role\", \"none\", \"pTooltip\", \"\", 3, \"ngClass\", \"ngStyle\", \"class\", \"tooltipOptions\", 4, \"ngIf\"], [\"role\", \"separator\", 1, \"p-menu-separator\", 3, \"ngClass\"], [\"role\", \"none\", \"pTooltip\", \"\", 3, \"ngClass\", \"ngStyle\", \"tooltipOptions\"], [\"listItem\", \"\"], [\"role\", \"menuitem\", \"pRipple\", \"\", 3, \"ngClass\", \"click\", \"mouseenter\", 4, \"ngIf\"], [\"role\", \"menuitem\", \"pRipple\", \"\", 3, \"routerLink\", \"queryParams\", \"routerLinkActive\", \"routerLinkActiveOptions\", \"ngClass\", \"fragment\", \"queryParamsHandling\", \"preserveFragment\", \"skipLocationChange\", \"replaceUrl\", \"state\", \"click\", \"mouseenter\", 4, \"ngIf\"], [3, \"parentActive\", \"item\", \"mobileActive\", \"autoDisplay\", \"leafClick\", 4, \"ngIf\"], [\"role\", \"menuitem\", \"pRipple\", \"\", 3, \"ngClass\", \"click\", \"mouseenter\"], [\"class\", \"p-menuitem-icon\", 3, \"ngClass\", 4, \"ngIf\"], [\"class\", \"p-menuitem-text\", 4, \"ngIf\", \"ngIfElse\"], [\"htmlLabel\", \"\"], [\"class\", \"p-submenu-icon pi\", 3, \"ngClass\", 4, \"ngIf\"], [1, \"p-menuitem-icon\", 3, \"ngClass\"], [1, \"p-menuitem-text\"], [1, \"p-menuitem-text\", 3, \"innerHTML\"], [1, \"p-submenu-icon\", \"pi\", 3, \"ngClass\"], [\"role\", \"menuitem\", \"pRipple\", \"\", 3, \"routerLink\", \"queryParams\", \"routerLinkActive\", \"routerLinkActiveOptions\", \"ngClass\", \"fragment\", \"queryParamsHandling\", \"preserveFragment\", \"skipLocationChange\", \"replaceUrl\", \"state\", \"click\", \"mouseenter\"], [\"htmlRouteLabel\", \"\"], [3, \"parentActive\", \"item\", \"mobileActive\", \"autoDisplay\", \"leafClick\"]],\n  template: function MenubarSub_Template(rf, ctx) {\n    if (rf & 1) {\n      i0.ɵɵelementStart(0, \"ul\", 0);\n      i0.ɵɵtemplate(1, MenubarSub_ng_template_1_Template, 2, 2, \"ng-template\", 1);\n      i0.ɵɵelementEnd();\n    }\n\n    if (rf & 2) {\n      i0.ɵɵproperty(\"ngClass\", i0.ɵɵpureFunction2(3, _c5, !ctx.root, ctx.root));\n      i0.ɵɵattribute(\"role\", ctx.root ? \"menubar\" : \"menu\");\n      i0.ɵɵadvance(1);\n      i0.ɵɵproperty(\"ngForOf\", ctx.root ? ctx.item : ctx.item.items);\n    }\n  },\n  directives: [i1.NgClass, i1.NgForOf, i1.NgIf, i2.Tooltip, i1.NgStyle, i3.Ripple, i4.RouterLinkWithHref, i4.RouterLinkActive, MenubarSub],\n  encapsulation: 2\n});\n\n(function () {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && i0.ɵsetClassMetadata(MenubarSub, [{\n    type: Component,\n    args: [{\n      selector: 'p-menubarSub',\n      template: `\n        <ul [ngClass]=\"{'p-submenu-list': !root, 'p-menubar-root-list': root}\" [attr.role]=\"root ? 'menubar' : 'menu'\">\n            <ng-template ngFor let-child [ngForOf]=\"(root ? item : item.items)\">\n                <li *ngIf=\"child.separator\" class=\"p-menu-separator\" [ngClass]=\"{'p-hidden': child.visible === false}\" role=\"separator\">\n                <li *ngIf=\"!child.separator\" #listItem [ngClass]=\"{'p-menuitem':true, 'p-menuitem-active': child === activeItem, 'p-hidden': child.visible === false}\" [ngStyle]=\"child.style\" [class]=\"child.styleClass\" role=\"none\" pTooltip [tooltipOptions]=\"child.tooltipOptions\">\n                    <a *ngIf=\"!child.routerLink\" [attr.href]=\"child.url\" [attr.data-automationid]=\"child.automationId\" [attr.target]=\"child.target\" [attr.title]=\"child.title\" [attr.id]=\"child.id\" role=\"menuitem\"\n                        (click)=\"onItemClick($event, child)\" (mouseenter)=\"onItemMouseEnter($event,child)\"\n                         [ngClass]=\"{'p-menuitem-link':true,'p-disabled':child.disabled}\" [attr.tabindex]=\"child.disabled ? null : '0'\" [attr.aria-haspopup]=\"item.items != null\" [attr.aria-expanded]=\"item === activeItem\" pRipple>\n                        <span class=\"p-menuitem-icon\" *ngIf=\"child.icon\" [ngClass]=\"child.icon\"></span>\n                        <span class=\"p-menuitem-text\" *ngIf=\"child.escape !== false; else htmlLabel\">{{child.label}}</span>\n                        <ng-template #htmlLabel><span class=\"p-menuitem-text\" [innerHTML]=\"child.label\"></span></ng-template>\n                        <span class=\"p-submenu-icon pi\" *ngIf=\"child.items\" [ngClass]=\"{'pi-angle-down':root,'pi-angle-right':!root}\"></span>\n                    </a>\n                    <a *ngIf=\"child.routerLink\" [routerLink]=\"child.routerLink\" [attr.data-automationid]=\"child.automationId\" [queryParams]=\"child.queryParams\" [routerLinkActive]=\"'p-menuitem-link-active'\" [routerLinkActiveOptions]=\"child.routerLinkActiveOptions||{exact:false}\"\n                        [attr.target]=\"child.target\" [attr.title]=\"child.title\" [attr.id]=\"child.id\" [attr.tabindex]=\"child.disabled ? null : '0'\" role=\"menuitem\"\n                        (click)=\"onItemClick($event, child)\" (mouseenter)=\"onItemMouseEnter($event,child)\"\n                        [ngClass]=\"{'p-menuitem-link':true,'p-disabled':child.disabled}\"\n                        [fragment]=\"child.fragment\" [queryParamsHandling]=\"child.queryParamsHandling\" [preserveFragment]=\"child.preserveFragment\" [skipLocationChange]=\"child.skipLocationChange\" [replaceUrl]=\"child.replaceUrl\" [state]=\"child.state\" pRipple>\n                        <span class=\"p-menuitem-icon\" *ngIf=\"child.icon\" [ngClass]=\"child.icon\"></span>\n                        <span class=\"p-menuitem-text\" *ngIf=\"child.escape !== false; else htmlRouteLabel\">{{child.label}}</span>\n                        <ng-template #htmlRouteLabel><span class=\"p-menuitem-text\" [innerHTML]=\"child.label\"></span></ng-template>\n                        <span class=\"p-submenu-icon pi\" *ngIf=\"child.items\" [ngClass]=\"{'pi-angle-down':root,'pi-angle-right':!root}\"></span>\n                    </a>\n                    <p-menubarSub [parentActive]=\"child === activeItem\" [item]=\"child\" *ngIf=\"child.items\" [mobileActive]=\"mobileActive\" [autoDisplay]=\"autoDisplay\" (leafClick)=\"onLeafClick()\"></p-menubarSub>\n                </li>\n            </ng-template>\n        </ul>\n    `,\n      encapsulation: ViewEncapsulation.None,\n      host: {\n        'class': 'p-element'\n      }\n    }]\n  }], function () {\n    return [{\n      type: i0.ElementRef\n    }, {\n      type: i0.Renderer2\n    }, {\n      type: i0.ChangeDetectorRef\n    }];\n  }, {\n    item: [{\n      type: Input\n    }],\n    root: [{\n      type: Input\n    }],\n    autoZIndex: [{\n      type: Input\n    }],\n    baseZIndex: [{\n      type: Input\n    }],\n    mobileActive: [{\n      type: Input\n    }],\n    autoDisplay: [{\n      type: Input\n    }],\n    parentActive: [{\n      type: Input\n    }],\n    leafClick: [{\n      type: Output\n    }]\n  });\n})();\n\nclass Menubar {\n  constructor(el, renderer, cd, config) {\n    this.el = el;\n    this.renderer = renderer;\n    this.cd = cd;\n    this.config = config;\n    this.autoZIndex = true;\n    this.baseZIndex = 0;\n  }\n\n  ngAfterContentInit() {\n    this.templates.forEach(item => {\n      switch (item.getType()) {\n        case 'start':\n          this.startTemplate = item.template;\n          break;\n\n        case 'end':\n          this.endTemplate = item.template;\n          break;\n      }\n    });\n  }\n\n  toggle(event) {\n    if (this.mobileActive) {\n      this.hide();\n      ZIndexUtils.clear(this.rootmenu.el.nativeElement);\n    } else {\n      this.mobileActive = true;\n      ZIndexUtils.set('menu', this.rootmenu.el.nativeElement, this.config.zIndex.menu);\n    }\n\n    this.bindOutsideClickListener();\n    event.preventDefault();\n  }\n\n  bindOutsideClickListener() {\n    if (!this.outsideClickListener) {\n      this.outsideClickListener = event => {\n        if (this.mobileActive && this.rootmenu.el.nativeElement !== event.target && !this.rootmenu.el.nativeElement.contains(event.target) && this.menubutton.nativeElement !== event.target && !this.menubutton.nativeElement.contains(event.target)) {\n          this.hide();\n        }\n      };\n\n      document.addEventListener('click', this.outsideClickListener);\n    }\n  }\n\n  hide() {\n    this.mobileActive = false;\n    this.cd.markForCheck();\n    ZIndexUtils.clear(this.rootmenu.el.nativeElement);\n    this.unbindOutsideClickListener();\n  }\n\n  onLeafClick() {\n    this.hide();\n  }\n\n  unbindOutsideClickListener() {\n    if (this.outsideClickListener) {\n      document.removeEventListener('click', this.outsideClickListener);\n      this.outsideClickListener = null;\n    }\n  }\n\n  ngOnDestroy() {\n    this.unbindOutsideClickListener();\n  }\n\n}\n\nMenubar.ɵfac = function Menubar_Factory(t) {\n  return new (t || Menubar)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(i5.PrimeNGConfig));\n};\n\nMenubar.ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n  type: Menubar,\n  selectors: [[\"p-menubar\"]],\n  contentQueries: function Menubar_ContentQueries(rf, ctx, dirIndex) {\n    if (rf & 1) {\n      i0.ɵɵcontentQuery(dirIndex, PrimeTemplate, 4);\n    }\n\n    if (rf & 2) {\n      let _t;\n\n      i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.templates = _t);\n    }\n  },\n  viewQuery: function Menubar_Query(rf, ctx) {\n    if (rf & 1) {\n      i0.ɵɵviewQuery(_c6, 5);\n      i0.ɵɵviewQuery(_c7, 5);\n    }\n\n    if (rf & 2) {\n      let _t;\n\n      i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.menubutton = _t.first);\n      i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.rootmenu = _t.first);\n    }\n  },\n  hostAttrs: [1, \"p-element\"],\n  inputs: {\n    model: \"model\",\n    style: \"style\",\n    styleClass: \"styleClass\",\n    autoZIndex: \"autoZIndex\",\n    baseZIndex: \"baseZIndex\",\n    autoDisplay: \"autoDisplay\"\n  },\n  ngContentSelectors: _c9,\n  decls: 10,\n  vars: 14,\n  consts: [[3, \"ngClass\", \"ngStyle\"], [\"class\", \"p-menubar-start\", 4, \"ngIf\"], [\"tabindex\", \"0\", 1, \"p-menubar-button\", 3, \"click\"], [\"menubutton\", \"\"], [1, \"pi\", \"pi-bars\"], [\"root\", \"root\", 3, \"item\", \"baseZIndex\", \"autoZIndex\", \"mobileActive\", \"autoDisplay\", \"leafClick\"], [\"rootmenu\", \"\"], [\"class\", \"p-menubar-end\", 4, \"ngIf\", \"ngIfElse\"], [\"legacy\", \"\"], [1, \"p-menubar-start\"], [4, \"ngTemplateOutlet\"], [1, \"p-menubar-end\"]],\n  template: function Menubar_Template(rf, ctx) {\n    if (rf & 1) {\n      i0.ɵɵprojectionDef();\n      i0.ɵɵelementStart(0, \"div\", 0);\n      i0.ɵɵtemplate(1, Menubar_div_1_Template, 2, 1, \"div\", 1);\n      i0.ɵɵelementStart(2, \"a\", 2, 3);\n      i0.ɵɵlistener(\"click\", function Menubar_Template_a_click_2_listener($event) {\n        return ctx.toggle($event);\n      });\n      i0.ɵɵelement(4, \"i\", 4);\n      i0.ɵɵelementEnd();\n      i0.ɵɵelementStart(5, \"p-menubarSub\", 5, 6);\n      i0.ɵɵlistener(\"leafClick\", function Menubar_Template_p_menubarSub_leafClick_5_listener() {\n        return ctx.onLeafClick();\n      });\n      i0.ɵɵelementEnd();\n      i0.ɵɵtemplate(7, Menubar_div_7_Template, 2, 1, \"div\", 7);\n      i0.ɵɵtemplate(8, Menubar_ng_template_8_Template, 2, 0, \"ng-template\", null, 8, i0.ɵɵtemplateRefExtractor);\n      i0.ɵɵelementEnd();\n    }\n\n    if (rf & 2) {\n      const _r4 = i0.ɵɵreference(9);\n\n      i0.ɵɵclassMap(ctx.styleClass);\n      i0.ɵɵproperty(\"ngClass\", i0.ɵɵpureFunction1(12, _c8, ctx.mobileActive))(\"ngStyle\", ctx.style);\n      i0.ɵɵadvance(1);\n      i0.ɵɵproperty(\"ngIf\", ctx.startTemplate);\n      i0.ɵɵadvance(4);\n      i0.ɵɵproperty(\"item\", ctx.model)(\"baseZIndex\", ctx.baseZIndex)(\"autoZIndex\", ctx.autoZIndex)(\"mobileActive\", ctx.mobileActive)(\"autoDisplay\", ctx.autoDisplay);\n      i0.ɵɵadvance(2);\n      i0.ɵɵproperty(\"ngIf\", ctx.endTemplate)(\"ngIfElse\", _r4);\n    }\n  },\n  directives: [i1.NgClass, i1.NgStyle, i1.NgIf, MenubarSub, i1.NgTemplateOutlet],\n  styles: [\".p-menubar{display:flex;align-items:center}.p-menubar ul{margin:0;padding:0;list-style:none}.p-menubar .p-menuitem-link{cursor:pointer;display:flex;align-items:center;text-decoration:none;overflow:hidden;position:relative}.p-menubar .p-menuitem-text{line-height:1}.p-menubar .p-menuitem{position:relative}.p-menubar-root-list{display:flex;align-items:center}.p-menubar-root-list>li ul{display:none;z-index:1}.p-menubar-root-list>.p-menuitem-active>p-menubarsub>.p-submenu-list{display:block}.p-menubar .p-submenu-list{display:none;position:absolute;z-index:1}.p-menubar .p-submenu-list>.p-menuitem-active>p-menubarsub>.p-submenu-list{display:block;left:100%;top:0}.p-menubar .p-submenu-list .p-menuitem-link .p-submenu-icon{margin-left:auto}.p-menubar .p-menubar-custom,.p-menubar .p-menubar-end{margin-left:auto;align-self:center}.p-menubar-button{display:none;cursor:pointer;align-items:center;justify-content:center}\\n\"],\n  encapsulation: 2,\n  changeDetection: 0\n});\n\n(function () {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && i0.ɵsetClassMetadata(Menubar, [{\n    type: Component,\n    args: [{\n      selector: 'p-menubar',\n      template: `\n        <div [ngClass]=\"{'p-menubar p-component':true, 'p-menubar-mobile-active': mobileActive}\" [class]=\"styleClass\" [ngStyle]=\"style\">\n            <div class=\"p-menubar-start\" *ngIf=\"startTemplate\">\n                <ng-container *ngTemplateOutlet=\"startTemplate\"></ng-container>\n            </div>\n            <a #menubutton tabindex=\"0\" class=\"p-menubar-button\" (click)=\"toggle($event)\">\n                <i class=\"pi pi-bars\"></i>\n            </a>\n            <p-menubarSub #rootmenu [item]=\"model\" root=\"root\" [baseZIndex]=\"baseZIndex\" (leafClick)=\"onLeafClick()\" [autoZIndex]=\"autoZIndex\" [mobileActive]=\"mobileActive\" [autoDisplay]=\"autoDisplay\"></p-menubarSub>\n            <div class=\"p-menubar-end\" *ngIf=\"endTemplate; else legacy\">\n                <ng-container *ngTemplateOutlet=\"endTemplate\"></ng-container>\n            </div>\n            <ng-template #legacy>\n                <div class=\"p-menubar-end\">\n                    <ng-content></ng-content>\n                </div>\n            </ng-template>\n        </div>\n    `,\n      changeDetection: ChangeDetectionStrategy.OnPush,\n      encapsulation: ViewEncapsulation.None,\n      host: {\n        'class': 'p-element'\n      },\n      styles: [\".p-menubar{display:flex;align-items:center}.p-menubar ul{margin:0;padding:0;list-style:none}.p-menubar .p-menuitem-link{cursor:pointer;display:flex;align-items:center;text-decoration:none;overflow:hidden;position:relative}.p-menubar .p-menuitem-text{line-height:1}.p-menubar .p-menuitem{position:relative}.p-menubar-root-list{display:flex;align-items:center}.p-menubar-root-list>li ul{display:none;z-index:1}.p-menubar-root-list>.p-menuitem-active>p-menubarsub>.p-submenu-list{display:block}.p-menubar .p-submenu-list{display:none;position:absolute;z-index:1}.p-menubar .p-submenu-list>.p-menuitem-active>p-menubarsub>.p-submenu-list{display:block;left:100%;top:0}.p-menubar .p-submenu-list .p-menuitem-link .p-submenu-icon{margin-left:auto}.p-menubar .p-menubar-custom,.p-menubar .p-menubar-end{margin-left:auto;align-self:center}.p-menubar-button{display:none;cursor:pointer;align-items:center;justify-content:center}\\n\"]\n    }]\n  }], function () {\n    return [{\n      type: i0.ElementRef\n    }, {\n      type: i0.Renderer2\n    }, {\n      type: i0.ChangeDetectorRef\n    }, {\n      type: i5.PrimeNGConfig\n    }];\n  }, {\n    model: [{\n      type: Input\n    }],\n    style: [{\n      type: Input\n    }],\n    styleClass: [{\n      type: Input\n    }],\n    autoZIndex: [{\n      type: Input\n    }],\n    baseZIndex: [{\n      type: Input\n    }],\n    autoDisplay: [{\n      type: Input\n    }],\n    templates: [{\n      type: ContentChildren,\n      args: [PrimeTemplate]\n    }],\n    menubutton: [{\n      type: ViewChild,\n      args: ['menubutton']\n    }],\n    rootmenu: [{\n      type: ViewChild,\n      args: ['rootmenu']\n    }]\n  });\n})();\n\nclass MenubarModule {}\n\nMenubarModule.ɵfac = function MenubarModule_Factory(t) {\n  return new (t || MenubarModule)();\n};\n\nMenubarModule.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n  type: MenubarModule\n});\nMenubarModule.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n  imports: [[CommonModule, RouterModule, RippleModule, TooltipModule], RouterModule, TooltipModule]\n});\n\n(function () {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && i0.ɵsetClassMetadata(MenubarModule, [{\n    type: NgModule,\n    args: [{\n      imports: [CommonModule, RouterModule, RippleModule, TooltipModule],\n      exports: [Menubar, RouterModule, TooltipModule],\n      declarations: [Menubar, MenubarSub]\n    }]\n  }], null, null);\n})();\n/**\n * Generated bundle index. Do not edit.\n */\n\n\nexport { Menubar, MenubarModule, MenubarSub };","map":{"version":3,"sources":["C:/Users/DELL/Desktop/bachelor-thesis/trip-planner-front/node_modules/primeng/fesm2015/primeng-menubar.mjs"],"names":["i0","EventEmitter","Component","ViewEncapsulation","Input","Output","ChangeDetectionStrategy","ContentChildren","ViewChild","NgModule","i1","CommonModule","ZIndexUtils","i5","PrimeTemplate","i4","RouterModule","i3","RippleModule","i2","TooltipModule","MenubarSub","constructor","el","renderer","cd","autoZIndex","baseZIndex","leafClick","menuHoverActive","parentActive","_parentActive","value","root","activeItem","onItemClick","event","item","disabled","preventDefault","url","routerLink","command","originalEvent","items","unbindDocumentClickListener","bindDocumentClickListener","onLeafClick","onItemMouseEnter","mobileActive","autoDisplay","emit","documentClickListener","nativeElement","contains","target","markForCheck","document","addEventListener","removeEventListener","ngOnDestroy","ɵfac","ElementRef","Renderer2","ChangeDetectorRef","ɵcmp","NgClass","NgForOf","NgIf","Tooltip","NgStyle","Ripple","RouterLinkWithHref","RouterLinkActive","type","args","selector","template","encapsulation","None","host","Menubar","config","ngAfterContentInit","templates","forEach","getType","startTemplate","endTemplate","toggle","hide","clear","rootmenu","set","zIndex","menu","bindOutsideClickListener","outsideClickListener","menubutton","unbindOutsideClickListener","PrimeNGConfig","NgTemplateOutlet","changeDetection","OnPush","styles","model","style","styleClass","MenubarModule","ɵmod","ɵinj","imports","exports","declarations"],"mappings":"AAAA,OAAO,KAAKA,EAAZ,MAAoB,eAApB;AACA,SAASC,YAAT,EAAuBC,SAAvB,EAAkCC,iBAAlC,EAAqDC,KAArD,EAA4DC,MAA5D,EAAoEC,uBAApE,EAA6FC,eAA7F,EAA8GC,SAA9G,EAAyHC,QAAzH,QAAyI,eAAzI;AACA,OAAO,KAAKC,EAAZ,MAAoB,iBAApB;AACA,SAASC,YAAT,QAA6B,iBAA7B;AACA,SAASC,WAAT,QAA4B,eAA5B;AACA,OAAO,KAAKC,EAAZ,MAAoB,aAApB;AACA,SAASC,aAAT,QAA8B,aAA9B;AACA,OAAO,KAAKC,EAAZ,MAAoB,iBAApB;AACA,SAASC,YAAT,QAA6B,iBAA7B;AACA,OAAO,KAAKC,EAAZ,MAAoB,gBAApB;AACA,SAASC,YAAT,QAA6B,gBAA7B;AACA,OAAO,KAAKC,EAAZ,MAAoB,iBAApB;AACA,SAASC,aAAT,QAA8B,iBAA9B;;;;;;;;;;AAiG6FpB,IAAAA,EAI7E,sB;;;;qBAJ6EA,E;AAAAA,IAAAA,EAIxB,uBAJwBA,EAIxB,qD;;;;;;AAJwBA,IAAAA,EASrE,yB;;;;qBATqEA,E;AAAAA,IAAAA,EASpB,qC;;;;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Encapsulation, Input, Output, ChangeDetectionStrategy, ContentChildren, ViewChild, NgModule } from '@angular/core';\nimport * as i1 from '@angular/common';\nimport { CommonModule } from '@angular/common';\nimport { ZIndexUtils } from 'primeng/utils';\nimport * as i5 from 'primeng/api';\nimport { PrimeTemplate } from 'primeng/api';\nimport * as i4 from '@angular/router';\nimport { RouterModule } from '@angular/router';\nimport * as i3 from 'primeng/ripple';\nimport { RippleModule } from 'primeng/ripple';\nimport * as i2 from 'primeng/tooltip';\nimport { TooltipModule } from 'primeng/tooltip';\n\nclass MenubarSub {\n    constructor(el, renderer, cd) {\n        this.el = el;\n        this.renderer = renderer;\n        this.cd = cd;\n        this.autoZIndex = true;\n        this.baseZIndex = 0;\n        this.leafClick = new EventEmitter();\n        this.menuHoverActive = false;\n    }\n    get parentActive() {\n        return this._parentActive;\n    }\n    set parentActive(value) {\n        if (!this.root) {\n            this._parentActive = value;\n            if (!value)\n                this.activeItem = null;\n        }\n    }\n    onItemClick(event, item) {\n        if (item.disabled) {\n            event.preventDefault();\n            return;\n        }\n        if (!item.url && !item.routerLink) {\n            event.preventDefault();\n        }\n        if (item.command) {\n            item.command({\n                originalEvent: event,\n                item: item\n            });\n        }\n        if (item.items) {\n            if (this.activeItem && item === this.activeItem) {\n                this.activeItem = null;\n                this.unbindDocumentClickListener();\n            }\n            else {\n                this.activeItem = item;\n                if (this.root) {\n                    this.bindDocumentClickListener();\n                }\n            }\n        }\n        if (!item.items) {\n            this.onLeafClick();\n        }\n    }\n    onItemMouseEnter(event, item) {\n        if (item.disabled || this.mobileActive) {\n            event.preventDefault();\n            return;\n        }\n        if (this.root) {\n            if (this.activeItem || this.autoDisplay) {\n                this.activeItem = item;\n                this.bindDocumentClickListener();\n            }\n        }\n        else {\n            this.activeItem = item;\n            this.bindDocumentClickListener();\n        }\n    }\n    onLeafClick() {\n        this.activeItem = null;\n        if (this.root) {\n            this.unbindDocumentClickListener();\n        }\n        this.leafClick.emit();\n    }\n    bindDocumentClickListener() {\n        if (!this.documentClickListener) {\n            this.documentClickListener = (event) => {\n                if (this.el && !this.el.nativeElement.contains(event.target)) {\n                    this.activeItem = null;\n                    this.cd.markForCheck();\n                    this.unbindDocumentClickListener();\n                }\n            };\n            document.addEventListener('click', this.documentClickListener);\n        }\n    }\n    unbindDocumentClickListener() {\n        if (this.documentClickListener) {\n            document.removeEventListener('click', this.documentClickListener);\n            this.documentClickListener = null;\n        }\n    }\n    ngOnDestroy() {\n        this.unbindDocumentClickListener();\n    }\n}\nMenubarSub.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.0.0\", ngImport: i0, type: MenubarSub, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });\nMenubarSub.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"12.0.0\", version: \"13.0.0\", type: MenubarSub, selector: \"p-menubarSub\", inputs: { item: \"item\", root: \"root\", autoZIndex: \"autoZIndex\", baseZIndex: \"baseZIndex\", mobileActive: \"mobileActive\", autoDisplay: \"autoDisplay\", parentActive: \"parentActive\" }, outputs: { leafClick: \"leafClick\" }, host: { classAttribute: \"p-element\" }, ngImport: i0, template: `\n        <ul [ngClass]=\"{'p-submenu-list': !root, 'p-menubar-root-list': root}\" [attr.role]=\"root ? 'menubar' : 'menu'\">\n            <ng-template ngFor let-child [ngForOf]=\"(root ? item : item.items)\">\n                <li *ngIf=\"child.separator\" class=\"p-menu-separator\" [ngClass]=\"{'p-hidden': child.visible === false}\" role=\"separator\">\n                <li *ngIf=\"!child.separator\" #listItem [ngClass]=\"{'p-menuitem':true, 'p-menuitem-active': child === activeItem, 'p-hidden': child.visible === false}\" [ngStyle]=\"child.style\" [class]=\"child.styleClass\" role=\"none\" pTooltip [tooltipOptions]=\"child.tooltipOptions\">\n                    <a *ngIf=\"!child.routerLink\" [attr.href]=\"child.url\" [attr.data-automationid]=\"child.automationId\" [attr.target]=\"child.target\" [attr.title]=\"child.title\" [attr.id]=\"child.id\" role=\"menuitem\"\n                        (click)=\"onItemClick($event, child)\" (mouseenter)=\"onItemMouseEnter($event,child)\"\n                         [ngClass]=\"{'p-menuitem-link':true,'p-disabled':child.disabled}\" [attr.tabindex]=\"child.disabled ? null : '0'\" [attr.aria-haspopup]=\"item.items != null\" [attr.aria-expanded]=\"item === activeItem\" pRipple>\n                        <span class=\"p-menuitem-icon\" *ngIf=\"child.icon\" [ngClass]=\"child.icon\"></span>\n                        <span class=\"p-menuitem-text\" *ngIf=\"child.escape !== false; else htmlLabel\">{{child.label}}</span>\n                        <ng-template #htmlLabel><span class=\"p-menuitem-text\" [innerHTML]=\"child.label\"></span></ng-template>\n                        <span class=\"p-submenu-icon pi\" *ngIf=\"child.items\" [ngClass]=\"{'pi-angle-down':root,'pi-angle-right':!root}\"></span>\n                    </a>\n                    <a *ngIf=\"child.routerLink\" [routerLink]=\"child.routerLink\" [attr.data-automationid]=\"child.automationId\" [queryParams]=\"child.queryParams\" [routerLinkActive]=\"'p-menuitem-link-active'\" [routerLinkActiveOptions]=\"child.routerLinkActiveOptions||{exact:false}\"\n                        [attr.target]=\"child.target\" [attr.title]=\"child.title\" [attr.id]=\"child.id\" [attr.tabindex]=\"child.disabled ? null : '0'\" role=\"menuitem\"\n                        (click)=\"onItemClick($event, child)\" (mouseenter)=\"onItemMouseEnter($event,child)\"\n                        [ngClass]=\"{'p-menuitem-link':true,'p-disabled':child.disabled}\"\n                        [fragment]=\"child.fragment\" [queryParamsHandling]=\"child.queryParamsHandling\" [preserveFragment]=\"child.preserveFragment\" [skipLocationChange]=\"child.skipLocationChange\" [replaceUrl]=\"child.replaceUrl\" [state]=\"child.state\" pRipple>\n                        <span class=\"p-menuitem-icon\" *ngIf=\"child.icon\" [ngClass]=\"child.icon\"></span>\n                        <span class=\"p-menuitem-text\" *ngIf=\"child.escape !== false; else htmlRouteLabel\">{{child.label}}</span>\n                        <ng-template #htmlRouteLabel><span class=\"p-menuitem-text\" [innerHTML]=\"child.label\"></span></ng-template>\n                        <span class=\"p-submenu-icon pi\" *ngIf=\"child.items\" [ngClass]=\"{'pi-angle-down':root,'pi-angle-right':!root}\"></span>\n                    </a>\n                    <p-menubarSub [parentActive]=\"child === activeItem\" [item]=\"child\" *ngIf=\"child.items\" [mobileActive]=\"mobileActive\" [autoDisplay]=\"autoDisplay\" (leafClick)=\"onLeafClick()\"></p-menubarSub>\n                </li>\n            </ng-template>\n        </ul>\n    `, isInline: true, components: [{ type: MenubarSub, selector: \"p-menubarSub\", inputs: [\"item\", \"root\", \"autoZIndex\", \"baseZIndex\", \"mobileActive\", \"autoDisplay\", \"parentActive\"], outputs: [\"leafClick\"] }], directives: [{ type: i1.NgClass, selector: \"[ngClass]\", inputs: [\"class\", \"ngClass\"] }, { type: i1.NgForOf, selector: \"[ngFor][ngForOf]\", inputs: [\"ngForOf\", \"ngForTrackBy\", \"ngForTemplate\"] }, { type: i1.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }, { type: i2.Tooltip, selector: \"[pTooltip]\", inputs: [\"tooltipPosition\", \"tooltipEvent\", \"appendTo\", \"positionStyle\", \"tooltipStyleClass\", \"tooltipZIndex\", \"escape\", \"showDelay\", \"hideDelay\", \"life\", \"positionTop\", \"positionLeft\", \"pTooltip\", \"tooltipDisabled\", \"tooltipOptions\"] }, { type: i1.NgStyle, selector: \"[ngStyle]\", inputs: [\"ngStyle\"] }, { type: i3.Ripple, selector: \"[pRipple]\" }, { type: i4.RouterLinkWithHref, selector: \"a[routerLink],area[routerLink]\", inputs: [\"target\", \"queryParams\", \"fragment\", \"queryParamsHandling\", \"preserveFragment\", \"skipLocationChange\", \"replaceUrl\", \"state\", \"relativeTo\", \"routerLink\"] }, { type: i4.RouterLinkActive, selector: \"[routerLinkActive]\", inputs: [\"routerLinkActiveOptions\", \"routerLinkActive\"], outputs: [\"isActiveChange\"], exportAs: [\"routerLinkActive\"] }], encapsulation: i0.ViewEncapsulation.None });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.0.0\", ngImport: i0, type: MenubarSub, decorators: [{\n            type: Component,\n            args: [{\n                    selector: 'p-menubarSub',\n                    template: `\n        <ul [ngClass]=\"{'p-submenu-list': !root, 'p-menubar-root-list': root}\" [attr.role]=\"root ? 'menubar' : 'menu'\">\n            <ng-template ngFor let-child [ngForOf]=\"(root ? item : item.items)\">\n                <li *ngIf=\"child.separator\" class=\"p-menu-separator\" [ngClass]=\"{'p-hidden': child.visible === false}\" role=\"separator\">\n                <li *ngIf=\"!child.separator\" #listItem [ngClass]=\"{'p-menuitem':true, 'p-menuitem-active': child === activeItem, 'p-hidden': child.visible === false}\" [ngStyle]=\"child.style\" [class]=\"child.styleClass\" role=\"none\" pTooltip [tooltipOptions]=\"child.tooltipOptions\">\n                    <a *ngIf=\"!child.routerLink\" [attr.href]=\"child.url\" [attr.data-automationid]=\"child.automationId\" [attr.target]=\"child.target\" [attr.title]=\"child.title\" [attr.id]=\"child.id\" role=\"menuitem\"\n                        (click)=\"onItemClick($event, child)\" (mouseenter)=\"onItemMouseEnter($event,child)\"\n                         [ngClass]=\"{'p-menuitem-link':true,'p-disabled':child.disabled}\" [attr.tabindex]=\"child.disabled ? null : '0'\" [attr.aria-haspopup]=\"item.items != null\" [attr.aria-expanded]=\"item === activeItem\" pRipple>\n                        <span class=\"p-menuitem-icon\" *ngIf=\"child.icon\" [ngClass]=\"child.icon\"></span>\n                        <span class=\"p-menuitem-text\" *ngIf=\"child.escape !== false; else htmlLabel\">{{child.label}}</span>\n                        <ng-template #htmlLabel><span class=\"p-menuitem-text\" [innerHTML]=\"child.label\"></span></ng-template>\n                        <span class=\"p-submenu-icon pi\" *ngIf=\"child.items\" [ngClass]=\"{'pi-angle-down':root,'pi-angle-right':!root}\"></span>\n                    </a>\n                    <a *ngIf=\"child.routerLink\" [routerLink]=\"child.routerLink\" [attr.data-automationid]=\"child.automationId\" [queryParams]=\"child.queryParams\" [routerLinkActive]=\"'p-menuitem-link-active'\" [routerLinkActiveOptions]=\"child.routerLinkActiveOptions||{exact:false}\"\n                        [attr.target]=\"child.target\" [attr.title]=\"child.title\" [attr.id]=\"child.id\" [attr.tabindex]=\"child.disabled ? null : '0'\" role=\"menuitem\"\n                        (click)=\"onItemClick($event, child)\" (mouseenter)=\"onItemMouseEnter($event,child)\"\n                        [ngClass]=\"{'p-menuitem-link':true,'p-disabled':child.disabled}\"\n                        [fragment]=\"child.fragment\" [queryParamsHandling]=\"child.queryParamsHandling\" [preserveFragment]=\"child.preserveFragment\" [skipLocationChange]=\"child.skipLocationChange\" [replaceUrl]=\"child.replaceUrl\" [state]=\"child.state\" pRipple>\n                        <span class=\"p-menuitem-icon\" *ngIf=\"child.icon\" [ngClass]=\"child.icon\"></span>\n                        <span class=\"p-menuitem-text\" *ngIf=\"child.escape !== false; else htmlRouteLabel\">{{child.label}}</span>\n                        <ng-template #htmlRouteLabel><span class=\"p-menuitem-text\" [innerHTML]=\"child.label\"></span></ng-template>\n                        <span class=\"p-submenu-icon pi\" *ngIf=\"child.items\" [ngClass]=\"{'pi-angle-down':root,'pi-angle-right':!root}\"></span>\n                    </a>\n                    <p-menubarSub [parentActive]=\"child === activeItem\" [item]=\"child\" *ngIf=\"child.items\" [mobileActive]=\"mobileActive\" [autoDisplay]=\"autoDisplay\" (leafClick)=\"onLeafClick()\"></p-menubarSub>\n                </li>\n            </ng-template>\n        </ul>\n    `,\n                    encapsulation: ViewEncapsulation.None,\n                    host: {\n                        'class': 'p-element'\n                    }\n                }]\n        }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { item: [{\n                type: Input\n            }], root: [{\n                type: Input\n            }], autoZIndex: [{\n                type: Input\n            }], baseZIndex: [{\n                type: Input\n            }], mobileActive: [{\n                type: Input\n            }], autoDisplay: [{\n                type: Input\n            }], parentActive: [{\n                type: Input\n            }], leafClick: [{\n                type: Output\n            }] } });\nclass Menubar {\n    constructor(el, renderer, cd, config) {\n        this.el = el;\n        this.renderer = renderer;\n        this.cd = cd;\n        this.config = config;\n        this.autoZIndex = true;\n        this.baseZIndex = 0;\n    }\n    ngAfterContentInit() {\n        this.templates.forEach((item) => {\n            switch (item.getType()) {\n                case 'start':\n                    this.startTemplate = item.template;\n                    break;\n                case 'end':\n                    this.endTemplate = item.template;\n                    break;\n            }\n        });\n    }\n    toggle(event) {\n        if (this.mobileActive) {\n            this.hide();\n            ZIndexUtils.clear(this.rootmenu.el.nativeElement);\n        }\n        else {\n            this.mobileActive = true;\n            ZIndexUtils.set('menu', this.rootmenu.el.nativeElement, this.config.zIndex.menu);\n        }\n        this.bindOutsideClickListener();\n        event.preventDefault();\n    }\n    bindOutsideClickListener() {\n        if (!this.outsideClickListener) {\n            this.outsideClickListener = (event) => {\n                if (this.mobileActive && this.rootmenu.el.nativeElement !== event.target && !this.rootmenu.el.nativeElement.contains(event.target)\n                    && this.menubutton.nativeElement !== event.target && !this.menubutton.nativeElement.contains(event.target)) {\n                    this.hide();\n                }\n            };\n            document.addEventListener('click', this.outsideClickListener);\n        }\n    }\n    hide() {\n        this.mobileActive = false;\n        this.cd.markForCheck();\n        ZIndexUtils.clear(this.rootmenu.el.nativeElement);\n        this.unbindOutsideClickListener();\n    }\n    onLeafClick() {\n        this.hide();\n    }\n    unbindOutsideClickListener() {\n        if (this.outsideClickListener) {\n            document.removeEventListener('click', this.outsideClickListener);\n            this.outsideClickListener = null;\n        }\n    }\n    ngOnDestroy() {\n        this.unbindOutsideClickListener();\n    }\n}\nMenubar.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.0.0\", ngImport: i0, type: Menubar, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.ChangeDetectorRef }, { token: i5.PrimeNGConfig }], target: i0.ɵɵFactoryTarget.Component });\nMenubar.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"12.0.0\", version: \"13.0.0\", type: Menubar, selector: \"p-menubar\", inputs: { model: \"model\", style: \"style\", styleClass: \"styleClass\", autoZIndex: \"autoZIndex\", baseZIndex: \"baseZIndex\", autoDisplay: \"autoDisplay\" }, host: { classAttribute: \"p-element\" }, queries: [{ propertyName: \"templates\", predicate: PrimeTemplate }], viewQueries: [{ propertyName: \"menubutton\", first: true, predicate: [\"menubutton\"], descendants: true }, { propertyName: \"rootmenu\", first: true, predicate: [\"rootmenu\"], descendants: true }], ngImport: i0, template: `\n        <div [ngClass]=\"{'p-menubar p-component':true, 'p-menubar-mobile-active': mobileActive}\" [class]=\"styleClass\" [ngStyle]=\"style\">\n            <div class=\"p-menubar-start\" *ngIf=\"startTemplate\">\n                <ng-container *ngTemplateOutlet=\"startTemplate\"></ng-container>\n            </div>\n            <a #menubutton tabindex=\"0\" class=\"p-menubar-button\" (click)=\"toggle($event)\">\n                <i class=\"pi pi-bars\"></i>\n            </a>\n            <p-menubarSub #rootmenu [item]=\"model\" root=\"root\" [baseZIndex]=\"baseZIndex\" (leafClick)=\"onLeafClick()\" [autoZIndex]=\"autoZIndex\" [mobileActive]=\"mobileActive\" [autoDisplay]=\"autoDisplay\"></p-menubarSub>\n            <div class=\"p-menubar-end\" *ngIf=\"endTemplate; else legacy\">\n                <ng-container *ngTemplateOutlet=\"endTemplate\"></ng-container>\n            </div>\n            <ng-template #legacy>\n                <div class=\"p-menubar-end\">\n                    <ng-content></ng-content>\n                </div>\n            </ng-template>\n        </div>\n    `, isInline: true, styles: [\".p-menubar{display:flex;align-items:center}.p-menubar ul{margin:0;padding:0;list-style:none}.p-menubar .p-menuitem-link{cursor:pointer;display:flex;align-items:center;text-decoration:none;overflow:hidden;position:relative}.p-menubar .p-menuitem-text{line-height:1}.p-menubar .p-menuitem{position:relative}.p-menubar-root-list{display:flex;align-items:center}.p-menubar-root-list>li ul{display:none;z-index:1}.p-menubar-root-list>.p-menuitem-active>p-menubarsub>.p-submenu-list{display:block}.p-menubar .p-submenu-list{display:none;position:absolute;z-index:1}.p-menubar .p-submenu-list>.p-menuitem-active>p-menubarsub>.p-submenu-list{display:block;left:100%;top:0}.p-menubar .p-submenu-list .p-menuitem-link .p-submenu-icon{margin-left:auto}.p-menubar .p-menubar-custom,.p-menubar .p-menubar-end{margin-left:auto;align-self:center}.p-menubar-button{display:none;cursor:pointer;align-items:center;justify-content:center}\\n\"], components: [{ type: MenubarSub, selector: \"p-menubarSub\", inputs: [\"item\", \"root\", \"autoZIndex\", \"baseZIndex\", \"mobileActive\", \"autoDisplay\", \"parentActive\"], outputs: [\"leafClick\"] }], directives: [{ type: i1.NgClass, selector: \"[ngClass]\", inputs: [\"class\", \"ngClass\"] }, { type: i1.NgStyle, selector: \"[ngStyle]\", inputs: [\"ngStyle\"] }, { type: i1.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }, { type: i1.NgTemplateOutlet, selector: \"[ngTemplateOutlet]\", inputs: [\"ngTemplateOutletContext\", \"ngTemplateOutlet\"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.0.0\", ngImport: i0, type: Menubar, decorators: [{\n            type: Component,\n            args: [{ selector: 'p-menubar', template: `\n        <div [ngClass]=\"{'p-menubar p-component':true, 'p-menubar-mobile-active': mobileActive}\" [class]=\"styleClass\" [ngStyle]=\"style\">\n            <div class=\"p-menubar-start\" *ngIf=\"startTemplate\">\n                <ng-container *ngTemplateOutlet=\"startTemplate\"></ng-container>\n            </div>\n            <a #menubutton tabindex=\"0\" class=\"p-menubar-button\" (click)=\"toggle($event)\">\n                <i class=\"pi pi-bars\"></i>\n            </a>\n            <p-menubarSub #rootmenu [item]=\"model\" root=\"root\" [baseZIndex]=\"baseZIndex\" (leafClick)=\"onLeafClick()\" [autoZIndex]=\"autoZIndex\" [mobileActive]=\"mobileActive\" [autoDisplay]=\"autoDisplay\"></p-menubarSub>\n            <div class=\"p-menubar-end\" *ngIf=\"endTemplate; else legacy\">\n                <ng-container *ngTemplateOutlet=\"endTemplate\"></ng-container>\n            </div>\n            <ng-template #legacy>\n                <div class=\"p-menubar-end\">\n                    <ng-content></ng-content>\n                </div>\n            </ng-template>\n        </div>\n    `, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: {\n                        'class': 'p-element'\n                    }, styles: [\".p-menubar{display:flex;align-items:center}.p-menubar ul{margin:0;padding:0;list-style:none}.p-menubar .p-menuitem-link{cursor:pointer;display:flex;align-items:center;text-decoration:none;overflow:hidden;position:relative}.p-menubar .p-menuitem-text{line-height:1}.p-menubar .p-menuitem{position:relative}.p-menubar-root-list{display:flex;align-items:center}.p-menubar-root-list>li ul{display:none;z-index:1}.p-menubar-root-list>.p-menuitem-active>p-menubarsub>.p-submenu-list{display:block}.p-menubar .p-submenu-list{display:none;position:absolute;z-index:1}.p-menubar .p-submenu-list>.p-menuitem-active>p-menubarsub>.p-submenu-list{display:block;left:100%;top:0}.p-menubar .p-submenu-list .p-menuitem-link .p-submenu-icon{margin-left:auto}.p-menubar .p-menubar-custom,.p-menubar .p-menubar-end{margin-left:auto;align-self:center}.p-menubar-button{display:none;cursor:pointer;align-items:center;justify-content:center}\\n\"] }]\n        }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.ChangeDetectorRef }, { type: i5.PrimeNGConfig }]; }, propDecorators: { model: [{\n                type: Input\n            }], style: [{\n                type: Input\n            }], styleClass: [{\n                type: Input\n            }], autoZIndex: [{\n                type: Input\n            }], baseZIndex: [{\n                type: Input\n            }], autoDisplay: [{\n                type: Input\n            }], templates: [{\n                type: ContentChildren,\n                args: [PrimeTemplate]\n            }], menubutton: [{\n                type: ViewChild,\n                args: ['menubutton']\n            }], rootmenu: [{\n                type: ViewChild,\n                args: ['rootmenu']\n            }] } });\nclass MenubarModule {\n}\nMenubarModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.0.0\", ngImport: i0, type: MenubarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nMenubarModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"12.0.0\", version: \"13.0.0\", ngImport: i0, type: MenubarModule, declarations: [Menubar, MenubarSub], imports: [CommonModule, RouterModule, RippleModule, TooltipModule], exports: [Menubar, RouterModule, TooltipModule] });\nMenubarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"13.0.0\", ngImport: i0, type: MenubarModule, imports: [[CommonModule, RouterModule, RippleModule, TooltipModule], RouterModule, TooltipModule] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.0.0\", ngImport: i0, type: MenubarModule, decorators: [{\n            type: NgModule,\n            args: [{\n                    imports: [CommonModule, RouterModule, RippleModule, TooltipModule],\n                    exports: [Menubar, RouterModule, TooltipModule],\n                    declarations: [Menubar, MenubarSub]\n                }]\n        }] });\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { Menubar, MenubarModule, MenubarSub };\n"]},"metadata":{},"sourceType":"module"}
Index: trip-planner-front/src/app/_models/location.ts
===================================================================
--- trip-planner-front/src/app/_models/location.ts	(revision 84d0fbb56bfbe319ba63e3327f1777ac5d841f83)
+++ trip-planner-front/src/app/_models/location.ts	(revision bdd64917749115bbdd228a9569a675d590c112e3)
@@ -8,4 +8,5 @@
     priority: string;
     duration: number;
+    trivia: string;
     photo: any[];
 
@@ -17,4 +18,5 @@
         this.priority = 'Location priority';
         this.duration = 1;
+        this.trivia = '';
         this.photo = [];
     }
Index: trip-planner-front/src/app/_services/planner.service.ts
===================================================================
--- trip-planner-front/src/app/_services/planner.service.ts	(revision 84d0fbb56bfbe319ba63e3327f1777ac5d841f83)
+++ trip-planner-front/src/app/_services/planner.service.ts	(revision bdd64917749115bbdd228a9569a675d590c112e3)
@@ -11,36 +11,39 @@
 
     httpHeaders: HttpHeaders = new HttpHeaders({
-        'Authorization': ''+sessionStorage.getItem("token"),
+        'Authorization': '' + sessionStorage.getItem("token"),
         'Accept': 'application/json',
         'Content-Type': 'application/json'
-      });
-      
+    });
 
-    constructor(private httpClient: HttpClient){
+
+    constructor(private httpClient: HttpClient) {
     }
 
-   
-    getAllPlanners():Observable<Planner[]>{
+
+    getAllPlanners(): Observable<Planner[]> {
         let url = "http://localhost:8080/api/planners/user";
         console.log("SERVID: " + sessionStorage.getItem("token"));
-        console.log(this.httpHeaders.get('Authorization'))  ;
-        return this.httpClient.get<Planner[]>(url, {headers: this.httpHeaders});     
+        console.log(this.httpHeaders.get('Authorization'));
+        return this.httpClient.get<Planner[]>(url, { headers: this.httpHeaders });
     }
 
-    postInitialPlanner(planner: Planner): Observable<Planner>{     
+    postInitialPlanner(plannerDto: PlannerDto): Observable<Planner> {
         let url = "http://localhost:8080/api/planner/new";
-        return this.httpClient.post<Planner>(url, planner);
+        return this.httpClient.post<Planner>(url, plannerDto);
     }
 
-    updatePlanner(id: number, plannerDto : PlannerDto):Observable<Planner>{    
-    let url = "http://localhost:8080/api/edit/planner/" + id;
-    return this.httpClient.put<Planner>(url, plannerDto, {headers: this.httpHeaders});
+    updatePlanner(id: number, plannerDto: PlannerDto): Observable<Planner> {
+        let url = "http://localhost:8080/api/edit/planner/" + id;
+        return this.httpClient.put<Planner>(url, plannerDto, { headers: this.httpHeaders });
     }
 
-    getPlannerById(id:number):Observable<Planner>{
+    getPlannerById(id: number): Observable<Planner> {
         let url = "http://localhost:8080/api/planner/" + id;
         return this.httpClient.get<Planner>(url);
     }
 
-
+    deletePlannerById(id: number): Observable<Planner> {
+        let url = "http://localhost:8080/api/delete/" + id;
+        return this.httpClient.delete<Planner>(url, { headers: this.httpHeaders });
+    }
 }
Index: trip-planner-front/src/app/_services/user.service.ts
===================================================================
--- trip-planner-front/src/app/_services/user.service.ts	(revision 84d0fbb56bfbe319ba63e3327f1777ac5d841f83)
+++ trip-planner-front/src/app/_services/user.service.ts	(revision bdd64917749115bbdd228a9569a675d590c112e3)
@@ -8,46 +8,44 @@
 
 @Injectable({
-    providedIn: 'root'
+  providedIn: 'root'
 })
-export class UserService{
+export class UserService {
 
-     headers = new HttpHeaders({
-        'Content-Type': 'application/json',
-        'Access-Control-Allow-Headers': 'Content-Type',
+  headers = new HttpHeaders({
+    'Content-Type': 'application/json',
+    'Access-Control-Allow-Headers': 'Content-Type',
 
-      });
-    
-    constructor(private httpClient: HttpClient){
+  });
 
-    }
+  constructor(private httpClient: HttpClient) {
 
-    registerUser(user : UserDto) : Observable<User>{
-        let url = "http://localhost:8080/api/users/register";
-        var reqHeader = new HttpHeaders({'No-Auth' : 'True'});
-        return this.httpClient.post<User>(url, user, { headers: reqHeader });
-    }
-    
-    authenticateUser(loginResult : LoginRequest) {
-        let url = "http://localhost:8080/api/users/login";
-        var reqHeader = new HttpHeaders({'Content-Type': 'application/json'});
-        return this.httpClient.post<any>(url, loginResult)
-        .pipe(
-            map(userData => {
-                sessionStorage.setItem("username", loginResult.username);
-                let tokenStr =  userData.token;
-                sessionStorage.setItem("token", tokenStr);
-                return userData;
-            })
-        );
-    }
-  
-      isUserLoggedIn() {
-        let user = sessionStorage.getItem("username");
-        let token = sessionStorage.getItem("token");
-        console.log(user);
-        console.log(token);
-        console.log(!(user === null));
-        return !(user === null);
-      }
-    
+  }
+
+  registerUser(user: UserDto): Observable<User> {
+    let url = "http://localhost:8080/api/users/register";
+    return this.httpClient.post<User>(url, user, { headers: this.headers });
+  }
+
+  authenticateUser(loginResult: LoginRequest) {
+    let url = "http://localhost:8080/api/users/login";
+    return this.httpClient.post<any>(url, loginResult)
+      .pipe(
+        map(userData => {
+          sessionStorage.setItem("username", loginResult.username);
+          let tokenStr = userData.token;
+          sessionStorage.setItem("token", tokenStr);
+          return userData;
+        })
+      );
+  }
+
+  isUserLoggedIn() {
+    let user = sessionStorage.getItem("username");
+    let token = sessionStorage.getItem("token");
+    console.log(user);
+    console.log(token);
+    console.log(!(user === null));
+    return !(user === null);
+  }
+
 }
Index: trip-planner-front/src/app/app.module.ts
===================================================================
--- trip-planner-front/src/app/app.module.ts	(revision 84d0fbb56bfbe319ba63e3327f1777ac5d841f83)
+++ trip-planner-front/src/app/app.module.ts	(revision bdd64917749115bbdd228a9569a675d590c112e3)
@@ -43,10 +43,11 @@
 import { InputTextModule } from 'primeng/inputtext';
 import { RippleModule } from 'primeng/ripple';
-import {PaginatorModule} from 'primeng/paginator';
-import {CardModule} from 'primeng/card';
+import { PaginatorModule } from 'primeng/paginator';
+import { CardModule } from 'primeng/card';
 import { RegisterComponent } from './homepage/register/register.component';
 import { LoginComponent } from './homepage/login/login.component';
 import { AuthGuard } from './auth/auth.guard';
 import { AuthInterceptor } from './auth/auth.interceptor';
+
 
 @NgModule({
@@ -111,7 +112,7 @@
     PlannerService,
     {
-      provide: MatDialogRef, 
-      useValue: {}, 
-    
+      provide: MatDialogRef,
+      useValue: {},
+
     },
     {
@@ -125,5 +126,5 @@
     AuthGuard
   ],
-  
+
   entryComponents: [
     AddLocationToPlannerPanelComponent
Index: trip-planner-front/src/app/create-initial-planner/create-initial-planner.component.html
===================================================================
--- trip-planner-front/src/app/create-initial-planner/create-initial-planner.component.html	(revision 84d0fbb56bfbe319ba63e3327f1777ac5d841f83)
+++ trip-planner-front/src/app/create-initial-planner/create-initial-planner.component.html	(revision bdd64917749115bbdd228a9569a675d590c112e3)
@@ -2,14 +2,17 @@
     <p>Planner name</p>
     <mat-form-field appearance="fill">
-      <input matInput required type="text" [(ngModel)]="planner.name" name="name" placeholder="Planner name">
+      <input matInput  type="text" [(ngModel)]="plannerDto.name" name="plannerName" placeholder="Planner name">
+     
     </mat-form-field>
     <p>Planner description</p>
     <mat-form-field appearance="fill">
-      <textarea matInput required name="description" [(ngModel)]="planner.description" type="text"
+      <textarea matInput  name="description" [(ngModel)]="plannerDto.description" type="text"
         placeholder="Planner description"></textarea>
     </mat-form-field>
   </div>
   <div mat-dialog-actions>
-    <button pButton pRipple type="submit" label="Save" 
-      class="p-button-outlined p-button-rounded p-button-help" (click)="onFormSubmitPlanner(planner)"></button>
+    <button pButton pRipple type="button" label="Save" 
+      class="p-button-outlined p-button-rounded p-button-help" (click)="onFormSubmitPlanner(plannerDto)"></button>
   </div>
+
+ 
Index: trip-planner-front/src/app/create-initial-planner/create-initial-planner.component.ts
===================================================================
--- trip-planner-front/src/app/create-initial-planner/create-initial-planner.component.ts	(revision 84d0fbb56bfbe319ba63e3327f1777ac5d841f83)
+++ trip-planner-front/src/app/create-initial-planner/create-initial-planner.component.ts	(revision bdd64917749115bbdd228a9569a675d590c112e3)
@@ -1,2 +1,3 @@
+import { PlatformModule } from '@angular/cdk/platform';
 import { Component, OnInit } from '@angular/core';
 import { DynamicDialogRef } from 'primeng/dynamicdialog';
@@ -11,16 +12,16 @@
 export class CreateInitialPlannerComponent implements OnInit {
 
-  planner: Planner;
+  plannerDto: PlannerDto;
 
   constructor( private ref: DynamicDialogRef) {
-                this.planner = new Planner;
+                this.plannerDto = new PlannerDto();
               }
 
   ngOnInit(): void {
-    this.planner = new Planner();
+    this.plannerDto = new Planner();
   }
 
-  onFormSubmitPlanner(planner){
-    this.ref.close(planner);
+  onFormSubmitPlanner(plannerDto){
+    this.ref.close(plannerDto);
     window.location.reload();
   }
Index: trip-planner-front/src/app/homepage/homepage.component.html
===================================================================
--- trip-planner-front/src/app/homepage/homepage.component.html	(revision 84d0fbb56bfbe319ba63e3327f1777ac5d841f83)
+++ trip-planner-front/src/app/homepage/homepage.component.html	(revision bdd64917749115bbdd228a9569a675d590c112e3)
@@ -13,5 +13,4 @@
   <header>
     <nav class="navbar navbar-expand-sm bg-light">
-      <img src={{myLogo}} />
       <strong class="navbar-brand">Trivia Trip</strong>
 
@@ -30,6 +29,6 @@
     <img src={{imageURI}} />
     <h4></h4>
-<!--
-  <div class="content-section implementation carousel-demo" style="padding-top: 2em;">
+
+    <div class="content-section implementation carousel-demo" style="padding-top: 2em;">
       <div class="card">
         <p-carousel [value]="locations" [numVisible]="3" [numScroll]="3" [circular]="false"
@@ -91,8 +90,7 @@
       </div>
     </div>
--->
-  
+
   </main>
-<br>
+  <br>
 
   <footer class="bg-dark text-center text-white">
@@ -102,35 +100,23 @@
       <section class="mb-4">
         <!-- Facebook -->
-        <a class="btn btn-outline-light btn-floating m-1" href="#!" role="button"
-          ><i class="fab fa-facebook-f"></i
-        ></a>
-  
+        <a class="btn btn-outline-light btn-floating m-1" href="#!" role="button"><i class="fab fa-facebook-f"></i></a>
+
         <!-- Twitter -->
-        <a class="btn btn-outline-light btn-floating m-1" href="#!" role="button"
-          ><i class="fab fa-twitter"></i
-        ></a>
-  
+        <a class="btn btn-outline-light btn-floating m-1" href="#!" role="button"><i class="fab fa-twitter"></i></a>
+
         <!-- Google -->
-        <a class="btn btn-outline-light btn-floating m-1" href="#!" role="button"
-          ><i class="fab fa-google"></i
-        ></a>
-  
+        <a class="btn btn-outline-light btn-floating m-1" href="#!" role="button"><i class="fab fa-google"></i></a>
+
         <!-- Instagram -->
-        <a class="btn btn-outline-light btn-floating m-1" href="#!" role="button"
-          ><i class="fab fa-instagram"></i
-        ></a>
-  
+        <a class="btn btn-outline-light btn-floating m-1" href="#!" role="button"><i class="fab fa-instagram"></i></a>
+
         <!-- Linkedin -->
-        <a class="btn btn-outline-light btn-floating m-1" href="#!" role="button"
-          ><i class="fab fa-linkedin-in"></i
-        ></a>
-  
+        <a class="btn btn-outline-light btn-floating m-1" href="#!" role="button"><i class="fab fa-linkedin-in"></i></a>
+
         <!-- Github -->
-        <a class="btn btn-outline-light btn-floating m-1" href="#!" role="button"
-          ><i class="fab fa-github"></i
-        ></a>
+        <a class="btn btn-outline-light btn-floating m-1" href="#!" role="button"><i class="fab fa-github"></i></a>
       </section>
       <!-- Section: Social media -->
-  
+
       <!-- Section: Form -->
       <section class="">
@@ -145,5 +131,5 @@
             </div>
             <!--Grid column-->
-  
+
             <!--Grid column-->
             <div class="col-md-5 col-12">
@@ -155,5 +141,5 @@
             </div>
             <!--Grid column-->
-  
+
             <!--Grid column-->
             <div class="col-auto">
@@ -169,5 +155,5 @@
       </section>
       <!-- Section: Form -->
-  
+
       <!-- Section: Text -->
       <section class="mb-4">
@@ -179,5 +165,5 @@
       </section>
       <!-- Section: Text -->
-  
+
       <!-- Section: Links -->
       <section class="">
@@ -187,68 +173,68 @@
           <div class="col-lg-3 col-md-6 mb-4 mb-md-0">
             <h5 class="text-uppercase">Links</h5>
-  
-            <ul class="list-unstyled mb-0">
-              <li>
-                <a href="#!" class="text-white">Link 1</a>
-              </li>
-              <li>
-                <a href="#!" class="text-white">Link 2</a>
-              </li>
-              <li>
-                <a href="#!" class="text-white">Link 3</a>
-              </li>
-              <li>
-                <a href="#!" class="text-white">Link 4</a>
-              </li>
-            </ul>
-          </div>
-          <!--Grid column-->
-  
-          <!--Grid column-->
-          <div class="col-lg-3 col-md-6 mb-4 mb-md-0">
-            <h5 class="text-uppercase">Links</h5>
-  
-            <ul class="list-unstyled mb-0">
-              <li>
-                <a href="#!" class="text-white">Link 1</a>
-              </li>
-              <li>
-                <a href="#!" class="text-white">Link 2</a>
-              </li>
-              <li>
-                <a href="#!" class="text-white">Link 3</a>
-              </li>
-              <li>
-                <a href="#!" class="text-white">Link 4</a>
-              </li>
-            </ul>
-          </div>
-          <!--Grid column-->
-  
-          <!--Grid column-->
-          <div class="col-lg-3 col-md-6 mb-4 mb-md-0">
-            <h5 class="text-uppercase">Links</h5>
-  
-            <ul class="list-unstyled mb-0">
-              <li>
-                <a href="#!" class="text-white">Link 1</a>
-              </li>
-              <li>
-                <a href="#!" class="text-white">Link 2</a>
-              </li>
-              <li>
-                <a href="#!" class="text-white">Link 3</a>
-              </li>
-              <li>
-                <a href="#!" class="text-white">Link 4</a>
-              </li>
-            </ul>
-          </div>
-          <!--Grid column-->
-  
-          <!--Grid column-->
-          <div class="col-lg-3 col-md-6 mb-4 mb-md-0">
-            <h5 class="text-uppercase">Links</h5>
-  
+
+            <ul class="list-unstyled mb-0">
+              <li>
+                <a href="#!" class="text-white">Link 1</a>
+              </li>
+              <li>
+                <a href="#!" class="text-white">Link 2</a>
+              </li>
+              <li>
+                <a href="#!" class="text-white">Link 3</a>
+              </li>
+              <li>
+                <a href="#!" class="text-white">Link 4</a>
+              </li>
+            </ul>
+          </div>
+          <!--Grid column-->
+
+          <!--Grid column-->
+          <div class="col-lg-3 col-md-6 mb-4 mb-md-0">
+            <h5 class="text-uppercase">Links</h5>
+
+            <ul class="list-unstyled mb-0">
+              <li>
+                <a href="#!" class="text-white">Link 1</a>
+              </li>
+              <li>
+                <a href="#!" class="text-white">Link 2</a>
+              </li>
+              <li>
+                <a href="#!" class="text-white">Link 3</a>
+              </li>
+              <li>
+                <a href="#!" class="text-white">Link 4</a>
+              </li>
+            </ul>
+          </div>
+          <!--Grid column-->
+
+          <!--Grid column-->
+          <div class="col-lg-3 col-md-6 mb-4 mb-md-0">
+            <h5 class="text-uppercase">Links</h5>
+
+            <ul class="list-unstyled mb-0">
+              <li>
+                <a href="#!" class="text-white">Link 1</a>
+              </li>
+              <li>
+                <a href="#!" class="text-white">Link 2</a>
+              </li>
+              <li>
+                <a href="#!" class="text-white">Link 3</a>
+              </li>
+              <li>
+                <a href="#!" class="text-white">Link 4</a>
+              </li>
+            </ul>
+          </div>
+          <!--Grid column-->
+
+          <!--Grid column-->
+          <div class="col-lg-3 col-md-6 mb-4 mb-md-0">
+            <h5 class="text-uppercase">Links</h5>
+
             <ul class="list-unstyled mb-0">
               <li>
@@ -273,5 +259,5 @@
     </div>
     <!-- Grid container -->
-  
+
     <!-- Copyright -->
     <div class="text-center p-3" style="background-color: rgba(0, 0, 0, 0.2);">
Index: trip-planner-front/src/app/homepage/homepage.component.ts
===================================================================
--- trip-planner-front/src/app/homepage/homepage.component.ts	(revision 84d0fbb56bfbe319ba63e3327f1777ac5d841f83)
+++ trip-planner-front/src/app/homepage/homepage.component.ts	(revision bdd64917749115bbdd228a9569a675d590c112e3)
@@ -1,2 +1,3 @@
+import { HttpErrorResponse } from '@angular/common/http';
 import { Component, OnInit } from '@angular/core';
 import { Router } from '@angular/router';
@@ -50,5 +51,4 @@
 
    ngOnInit(): void {
-/*
       this.locationService.getWeekendGetaways().subscribe(
          data => {
@@ -61,5 +61,5 @@
          }
       );
-      */
+
    }
 
@@ -73,14 +73,18 @@
 
       this.ref.onClose.subscribe((user: UserDto) => {
-         this.userService.registerUser(user).subscribe(
-            data  => {
-               console.log(data);
-              
-            }
-         );
-      });
+         if (user) {
+            this.userService.registerUser(user).subscribe(
+               data => {
+                  console.log(data);
+               }
+            );
+         }
+      },
+         err => {
+
+         });
    }
 
-   
+
    onClickLogIn() {
       this.ref = this.dialogService.open(LoginComponent, {
@@ -90,14 +94,22 @@
          baseZIndex: 10000
       });
-      this.ref.onClose.subscribe((loginRequest : LoginRequest) => {
-         this.userService.authenticateUser(loginRequest).subscribe(
-            (data : any)  => {
-               console.log(data);
-               if(this.userService.isUserLoggedIn()){
-                  this.router.navigate(['planners']);
+      this.ref.onClose.subscribe((loginRequest: LoginRequest) => {
+         if (loginRequest) {
+            this.userService.authenticateUser(loginRequest).subscribe(
+               (data: any) => {
+                  console.log(data);
+                  if (this.userService.isUserLoggedIn()) {
+                     this.router.navigate(['planners']);
+                  }
                }
-            }
-         );
+            );
+         }
       });
    }
+
+   ngOnDestroy() {
+      if (this.ref) {
+         this.ref.close();
+      }
+   }
 }
Index: trip-planner-front/src/app/homepage/register/register.component.html
===================================================================
--- trip-planner-front/src/app/homepage/register/register.component.html	(revision 84d0fbb56bfbe319ba63e3327f1777ac5d841f83)
+++ trip-planner-front/src/app/homepage/register/register.component.html	(revision bdd64917749115bbdd228a9569a675d590c112e3)
@@ -1,36 +1,43 @@
+<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/css/bootstrap.min.css" rel="stylesheet"
+    integrity="sha384-+0n0xVW2eSR5OomGNYDnhzAbDsOXxcvSN1TPprVMTNDbiYZCxYbOOl7+AMvyTG2x" crossorigin="anonymous">
 
-    <div class="p-grid p-fluid">
-        <div class="p-col-12 p-md-4">
-            <div class="p-inputgroup">
-                <span class="p-inputgroup-addon"><i class="pi pi-user"></i></span>
-                <input type="text" pInputText placeholder="Full name" [(ngModel)]="user.fullName" name="fullName"
-            >         
-            </div>
+<div class="p-grid p-fluid">
+    <div class="p-col-12 p-md-4">
+        <div class="p-inputgroup">
+            <span class="p-inputgroup-addon"><i class="pi pi-user"></i></span>
+            <input type="text" pInputText placeholder="Full name" [(ngModel)]="user.fullName" name="fullName"
+                class="form-control">
+
         </div>
-    
-        <div class="p-col-12 p-md-4">
-            <div class="p-inputgroup">
-                <span class="p-inputgroup-addon"><i class="pi pi-user"></i></span>
-                <input type="text" pInputText placeholder="Email address (Username)" [(ngModel)]="user.username" name="username"
-              >         
-            </div>
+    </div>
+
+    <div class="p-col-12 p-md-4">
+        <div class="p-inputgroup">
+            <span class="p-inputgroup-addon"><i class="pi pi-user"></i></span>
+            <input type="text" pInputText placeholder="Email address (Username)" [(ngModel)]="user.username"
+                name="username">
         </div>
-        <div class="p-col-12 p-md-4">
-            <div class="p-inputgroup">
-                <span class="p-inputgroup-addon"><i class="pi pi-password"></i></span>
-                <input type="password" pInputText placeholder="Password" [(ngModel)]="user.password" name="password"
-                >         
-            </div>
+    </div>
+
+    <div class="p-col-12 p-md-4">
+        <div class="p-inputgroup">
+            <span class="p-inputgroup-addon"><i class="pi pi-password"></i></span>
+            <input type="password" pInputText placeholder="Password" [(ngModel)]="user.password" name="password">
         </div>
-        <div class="p-col-12 p-md-4">
-            <div class="p-inputgroup">
-                <span class="p-inputgroup-addon"><i class="pi pi-password"></i></span>
-                <input type="password" pInputText placeholder="Repeat password" [(ngModel)]="user.confirmPassword" name="confirmPassword"
-                >         
-            </div>
+    </div>
+
+    <div class="p-col-12 p-md-4">
+        <div class="p-inputgroup">
+            <span class="p-inputgroup-addon"><i class="pi pi-password"></i></span>
+            <input type="password" pInputText placeholder="Repeat password" [(ngModel)]="user.confirmPassword"
+                name="confirmPassword">
         </div>
-    
-        <div class="p-col-12 p-md-4">
-            <button pButton pRipple label="Submit" class="p-button-secondary" type="submit" (click)="onFormSubmitSignUp(user)"></button>
-        </div>
-    </div>  
+    </div>
+
+    <div class="p-col-12 p-md-4">
+        <button pButton pRipple label="Submit" class="p-button-secondary" type="button"
+            (click)="onFormSubmitSignUp(user)"></button>
+    </div>
+</div>
+
+
Index: trip-planner-front/src/app/homepage/register/register.component.ts
===================================================================
--- trip-planner-front/src/app/homepage/register/register.component.ts	(revision 84d0fbb56bfbe319ba63e3327f1777ac5d841f83)
+++ trip-planner-front/src/app/homepage/register/register.component.ts	(revision bdd64917749115bbdd228a9569a675d590c112e3)
@@ -1,3 +1,4 @@
 import { Component, OnInit } from '@angular/core';
+import { FormBuilder, FormGroup, Validators } from '@angular/forms';
 import { DynamicDialogRef } from 'primeng/dynamicdialog';
 import { UserDto } from 'src/app/_models/dto/userDto';
@@ -10,16 +11,28 @@
 export class RegisterComponent implements OnInit {
 
-  user : UserDto;
+  user: UserDto;
+  myForm: FormGroup;
 
-  constructor(private ref: DynamicDialogRef) {
+  constructor(private ref: DynamicDialogRef, private fb: FormBuilder) {
     this.user = new UserDto();
-   }
+    this.myForm = fb.group({
+      title: fb.control('initial value', Validators.required)
+    });
+  }
 
   ngOnInit(): void {
+    this.myForm = this.fb.group({
+      fullName: this.fb.control('', Validators.required),
+      username: this.fb.control('', Validators.required),
+      password: this.fb.control('', Validators.required),
+      confirmPassword: this.fb.control('', Validators.required)
+    });
   }
-  
-  onFormSubmitSignUp(user){
+
+  onFormSubmitSignUp(user) {
     this.ref.close(user);
     //window.location.reload();
+
   }
+
 }
Index: trip-planner-front/src/app/location/location.component.ts
===================================================================
--- trip-planner-front/src/app/location/location.component.ts	(revision 84d0fbb56bfbe319ba63e3327f1777ac5d841f83)
+++ trip-planner-front/src/app/location/location.component.ts	(revision bdd64917749115bbdd228a9569a675d590c112e3)
@@ -93,4 +93,5 @@
 
     this.ref.onClose.subscribe((planner: Planner) => {
+      if(planner){
       this.plannerLocationDto.locationId = location.id;
       this.plannerLocationDto.plannerId = planner.id;
@@ -124,5 +125,7 @@
         }
       );
+      }
     });
+  
   }
 
Index: trip-planner-front/src/app/planner/edit-planner/edit-planner.component.html
===================================================================
--- trip-planner-front/src/app/planner/edit-planner/edit-planner.component.html	(revision 84d0fbb56bfbe319ba63e3327f1777ac5d841f83)
+++ trip-planner-front/src/app/planner/edit-planner/edit-planner.component.html	(revision bdd64917749115bbdd228a9569a675d590c112e3)
@@ -1,18 +1,20 @@
-<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-+0n0xVW2eSR5OomGNYDnhzAbDsOXxcvSN1TPprVMTNDbiYZCxYbOOl7+AMvyTG2x" crossorigin="anonymous">
+<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/css/bootstrap.min.css" rel="stylesheet"
+    integrity="sha384-+0n0xVW2eSR5OomGNYDnhzAbDsOXxcvSN1TPprVMTNDbiYZCxYbOOl7+AMvyTG2x" crossorigin="anonymous">
 
 <h3>Here you can edit your planner</h3>
 
-<form [formGroup] = "form" (ngSubmit)="onSubmit()">
+<form [formGroup]="form" (ngSubmit)="onSubmit()">
     <div class="form-gorup">
         <p>Planner name</p>
         <mat-form-field appearance="fill">
-          <input matInput required type="text" formControlName="name"  placeholder="Planner name">
+            <input matInput required type="text" formControlName="name" placeholder="Planner name">
         </mat-form-field>
         <p>Planner description</p>
         <mat-form-field appearance="fill">
-          <textarea matInput required formControlName="description"  type="text" placeholder="Planner description"></textarea>
+            <textarea matInput required formControlName="description" type="text"
+                placeholder="Planner description"></textarea>
         </mat-form-field>
     </div>
-    <div class="container mb-4" >
+    <div class="container mb-4">
         <div class="row">
             <div class="col-12">
@@ -20,20 +22,23 @@
                     <table class="table table-striped">
                         <thead>
-                        <tr>
-                            <th scope="col">Location name</th>
-                        </tr>
+                            <tr>
+                                <th scope="col">Location name</th>
+                            </tr>
                         </thead>
                         <tbody>
-                        <tr>                           
-                            <td> <button mat-raised-button color="primary" (click)="onClickAddLocation()">
-                                 Add locations
-                                 </button>
-                            </td>
-                        </tr>
-                        <tr *ngFor ="let location of locations">
-                            <td>
-                                {{location.name}}
-                            </td>
-                        </tr>
+                            <tr>
+                                <td> <button mat-raised-button color="primary" (click)="onClickAddLocation()">
+                                        Add locations
+                                    </button>
+                                </td>
+                            </tr>
+                            <tr *ngFor="let location of locations">
+                                <td>
+                                    {{location.name}}
+                                </td>
+                                <td>
+                                    <button pButton pRipple type="button" icon="pi pi-times" class="p-button-rounded p-button-danger p-button-text"></button>
+                                </td>
+                            </tr>
                         </tbody>
                     </table>
@@ -44,3 +49,4 @@
     <button pButton pRipplelabel label="Save" class="p-button-help"></button>
 </form>
-<button pButton pRipple label="Back" class="p-button-info" (click)="onClickBack()" [style]="{'margin-left': '.11em'}"></button>
+<button pButton pRipple label="Back" class="p-button-info" (click)="onClickBack()"
+    [style]="{'margin-left': '.11em'}"></button>
Index: trip-planner-front/src/app/planner/edit-planner/edit-planner.component.ts
===================================================================
--- trip-planner-front/src/app/planner/edit-planner/edit-planner.component.ts	(revision 84d0fbb56bfbe319ba63e3327f1777ac5d841f83)
+++ trip-planner-front/src/app/planner/edit-planner/edit-planner.component.ts	(revision bdd64917749115bbdd228a9569a675d590c112e3)
@@ -24,5 +24,5 @@
 
   constructor(private router: Router, private route: ActivatedRoute, private fb: FormBuilder, private plannerService: PlannerService,
-    private locationService : LocationService) {
+    private locationService: LocationService) {
     this.planner = new Planner();
     this.planners = [];
@@ -50,9 +50,9 @@
     this.locationService.getLocationsForPlanner(this.id).subscribe(
       data => {
-          this.locations = data;
+        this.locations = data;
       }
     );
-    }
- 
+  }
+
   onSubmit() {
     this.updatePlanner();
@@ -77,6 +77,10 @@
   }
 
-  onClickBack(){
+  onClickBack() {
     this.router.navigate(['planners']);
   }
+
+  onClickRemoveLocation(id : number){
+    
+  }
 }
Index: trip-planner-front/src/app/planner/planner.component.html
===================================================================
--- trip-planner-front/src/app/planner/planner.component.html	(revision 84d0fbb56bfbe319ba63e3327f1777ac5d841f83)
+++ trip-planner-front/src/app/planner/planner.component.html	(revision bdd64917749115bbdd228a9569a675d590c112e3)
@@ -1,24 +1,37 @@
-<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-+0n0xVW2eSR5OomGNYDnhzAbDsOXxcvSN1TPprVMTNDbiYZCxYbOOl7+AMvyTG2x" crossorigin="anonymous">
+<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/css/bootstrap.min.css" rel="stylesheet"
+  integrity="sha384-+0n0xVW2eSR5OomGNYDnhzAbDsOXxcvSN1TPprVMTNDbiYZCxYbOOl7+AMvyTG2x" crossorigin="anonymous">
 
 <p-toast></p-toast>
-<button pButton pRipple type="button" label="Create initial planner" class="p-button-help " (click)="show()"></button>
+
+
+<nav class="navbar navbar-light bg-light justify-content-between">
+  <button pButton pRipple type="button" label="Create initial planner" class="p-button-help " (click)="show()"></button>
+  <form class="form-inline">
+    <span>Hello, {{userDisplayName}}</span>
+    <button class="btn btn-outline-success my-2 my-sm-0" type="submit" (click)="onClickLogout()">Log out</button>
+  </form>
+</nav>
+
+
 <br>
 <br>
 <p-table [value]="planners" [paginator]="true" [rows]="3" [responsive]="true">
-  
+
   <ng-template pTemplate="body" let-planner>
-      <td >
-        <p-card header="{{planner.name}}" subheader="Card Subheader" [style]="{width: '360px'}" styleClass="p-card-shadow">
-          <ng-template pTemplate="header">
-          </ng-template>
-          <p>{{planner.description}}</p>
-          <ng-template pTemplate="footer">
-              <button pButton pRipple type="button" label="Edit" class="p-button-outlined p-button-rounded p-button-help" (click)="onClickEditPlannerGet(planner.id)"></button>
-              <button pButton pRipple type="button" icon="pi pi-times" class="p-button-rounded p-button-danger p-button-outlined" label="Delete" [style]="{'margin-left': '.5em'}"></button>
-            </ng-template>
-        </p-card>
-      </td>
+    <td>
+      <p-card header="{{planner.name}}" subheader="Card Subheader" [style]="{width: '360px'}"
+        styleClass="p-card-shadow">
+        <ng-template pTemplate="header">
+        </ng-template>
+        <p>{{planner.description}}</p>
+        <ng-template pTemplate="footer">
+          <button pButton pRipple type="button" label="Edit" class="p-button-outlined p-button-rounded p-button-help"
+            (click)="onClickEditPlannerGet(planner.id)"></button>
+          <button pButton pRipple type="button" icon="pi pi-times"
+            class="p-button-rounded p-button-danger p-button-outlined" label="Delete"
+            [style]="{'margin-left': '.5em'}" (click)="onDeletePlanner(planner.id)"></button>
+        </ng-template>
+      </p-card>
+    </td>
   </ng-template>
 </p-table>
-
-
Index: trip-planner-front/src/app/planner/planner.component.ts
===================================================================
--- trip-planner-front/src/app/planner/planner.component.ts	(revision 84d0fbb56bfbe319ba63e3327f1777ac5d841f83)
+++ trip-planner-front/src/app/planner/planner.component.ts	(revision bdd64917749115bbdd228a9569a675d590c112e3)
@@ -8,5 +8,4 @@
 import { MessageService, PrimeNGConfig } from 'primeng/api';
 import { UserDto } from '../_models/dto/userDto';
-import { UserService } from '../_services/user.service';
 
 
@@ -23,8 +22,9 @@
   ref: DynamicDialogRef;
   user: UserDto;
+  userDisplayName = '';
+  status = '';
 
   constructor(private plannerService: PlannerService, private router: Router,
-    private dialogService: DialogService, private primengConfig: PrimeNGConfig, private messageService: MessageService,
-    private userService : UserService) {
+    private dialogService: DialogService, private primengConfig: PrimeNGConfig, private messageService: MessageService) {
     this.planners = [];
     this.plannerDto = new PlannerDto();
@@ -36,11 +36,11 @@
 
     this.primengConfig.ripple = true;
-
+    let name1: string = sessionStorage.getItem("username") as string;
+    this.userDisplayName = name1;
     this.plannerService.getAllPlanners().subscribe(
       data => {
         this.planners = data;
-        localStorage.getItem("token");
       }
-    ); 
+    );
   }
 
@@ -61,16 +61,41 @@
       baseZIndex: 10000
     });
-    this.ref.onClose.subscribe((planner: Planner) => {
-      console.log("NOVOKREIRANIOT NAME NA PLANNER: " + planner.name);
-      this.plannerService.postInitialPlanner(planner).subscribe(
-        data=>{
-          console.log(data);
-        },
-        error => console.log('oops', error)
-     );
-      this.messageService.add({ severity: 'success', summary: 'The planner: ' + planner.name + ' has been created.' });
+    this.ref.onClose.subscribe((plannerDto: PlannerDto) => {
+      if (plannerDto) {
+        console.log("NOVOKREIRANIOT NAME NA PLANNER: " + plannerDto.name);
+        this.plannerService.postInitialPlanner(plannerDto).subscribe(
+          data => {
+            console.log(data);
+          },
+          error => console.log('oops', error)
+        );
+        this.messageService.add({ severity: 'success', summary: 'The planner: ' + plannerDto.name + ' has been created.' });
+      }
+      
     });
-    
+
   }
 
+  ngOnDestroy() {
+    if (this.ref) {
+      this.ref.close();
+    }
+  }
+
+  onClickLogout() {
+    sessionStorage.removeItem("token");
+    console.log("SESSION HAS ENDED, THE USER IS LOGGED OUT" + sessionStorage.getItem("token"));
+    this.router.navigate(['']);
+  }
+
+  onDeletePlanner(id: number) {
+    console.log("DELETE KOCHE: " + id);
+    this.plannerService.deletePlannerById(id).subscribe(
+      (data) => {
+        console.log(data);
+      },
+      (error) => console.log('error', error)
+    );
+    window.location.reload();
+  }
 }
