1 line
5.4 KiB
JSON
1 line
5.4 KiB
JSON
{"ast":null,"code":"import _asyncToGenerator from \"/Users/gnezim/_projects/tims/flights_web_raw/Aeroflot.Flights.Web/apps/angular/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport * as i0 from \"@angular/core\";\nimport * as i1 from \"@angular/router\";\nimport * as i2 from \"@online-board/services/title.service\";\nimport * as i3 from \"../../../../../../../toolkit/title/title.component\";\nexport class OnlineBoardArrivalTitleComponent {\n constructor(route, titleService) {\n this.route = route;\n this.titleService = titleService;\n this.title = '';\n }\n\n ngOnInit() {\n var _this = this;\n\n this.route.data.subscribe({\n next: function () {\n var _ref = _asyncToGenerator(function* (data) {\n if (data.urlParams.route) {\n _this.title = yield _this.titleService.getArrivalTitle(data.urlParams.route);\n }\n });\n\n return function next(_x) {\n return _ref.apply(this, arguments);\n };\n }()\n });\n }\n\n}\n\nOnlineBoardArrivalTitleComponent.ɵfac = function OnlineBoardArrivalTitleComponent_Factory(t) {\n return new (t || OnlineBoardArrivalTitleComponent)(i0.ɵɵdirectiveInject(i1.ActivatedRoute), i0.ɵɵdirectiveInject(i2.OnlineBoardTitleService));\n};\n\nOnlineBoardArrivalTitleComponent.ɵcmp = /*@__PURE__*/i0.ɵɵdefineComponent({\n type: OnlineBoardArrivalTitleComponent,\n selectors: [[\"online-board-arrival-title\"]],\n decls: 1,\n vars: 1,\n consts: [[3, \"title\"]],\n template: function OnlineBoardArrivalTitleComponent_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelement(0, \"aero-title\", 0);\n }\n\n if (rf & 2) {\n i0.ɵɵproperty(\"title\", ctx.title);\n }\n },\n directives: [i3.TitleComponent],\n encapsulation: 2\n});","map":{"version":3,"sources":["/Users/gnezim/_projects/tims/flights_web_raw/Aeroflot.Flights.Web/apps/angular/src/app/features/online-board/pages/search/arrival/components/title/online-board-arrival-title.component.ts"],"names":["i0","i1","i2","i3","OnlineBoardArrivalTitleComponent","constructor","route","titleService","title","ngOnInit","data","subscribe","next","urlParams","getArrivalTitle","ɵfac","OnlineBoardArrivalTitleComponent_Factory","t","ɵɵdirectiveInject","ActivatedRoute","OnlineBoardTitleService","ɵcmp","ɵɵdefineComponent","type","selectors","decls","vars","consts","template","OnlineBoardArrivalTitleComponent_Template","rf","ctx","ɵɵelement","ɵɵproperty","directives","TitleComponent","encapsulation"],"mappings":";AAAA,OAAO,KAAKA,EAAZ,MAAoB,eAApB;AACA,OAAO,KAAKC,EAAZ,MAAoB,iBAApB;AACA,OAAO,KAAKC,EAAZ,MAAoB,sCAApB;AACA,OAAO,KAAKC,EAAZ,MAAoB,oDAApB;AACA,OAAO,MAAMC,gCAAN,CAAuC;AAC1CC,EAAAA,WAAW,CAACC,KAAD,EAAQC,YAAR,EAAsB;AAC7B,SAAKD,KAAL,GAAaA,KAAb;AACA,SAAKC,YAAL,GAAoBA,YAApB;AACA,SAAKC,KAAL,GAAa,EAAb;AACH;;AACDC,EAAAA,QAAQ,GAAG;AAAA;;AACP,SAAKH,KAAL,CAAWI,IAAX,CAAgBC,SAAhB,CAA0B;AACtBC,MAAAA,IAAI;AAAA,qCAAE,WAAOF,IAAP,EAAgB;AAClB,cAAIA,IAAI,CAACG,SAAL,CAAeP,KAAnB,EAA0B;AACtB,YAAA,KAAI,CAACE,KAAL,SAAmB,KAAI,CAACD,YAAL,CAAkBO,eAAlB,CAAkCJ,IAAI,CAACG,SAAL,CAAeP,KAAjD,CAAnB;AACH;AACJ,SAJG;;AAAA;AAAA;AAAA;AAAA;AADkB,KAA1B;AAOH;;AAdyC;;AAgB9CF,gCAAgC,CAACW,IAAjC,GAAwC,SAASC,wCAAT,CAAkDC,CAAlD,EAAqD;AAAE,SAAO,KAAKA,CAAC,IAAIb,gCAAV,EAA4CJ,EAAE,CAACkB,iBAAH,CAAqBjB,EAAE,CAACkB,cAAxB,CAA5C,EAAqFnB,EAAE,CAACkB,iBAAH,CAAqBhB,EAAE,CAACkB,uBAAxB,CAArF,CAAP;AAAgJ,CAA/O;;AACAhB,gCAAgC,CAACiB,IAAjC,GAAwC,aAAcrB,EAAE,CAACsB,iBAAH,CAAqB;AAAEC,EAAAA,IAAI,EAAEnB,gCAAR;AAA0CoB,EAAAA,SAAS,EAAE,CAAC,CAAC,4BAAD,CAAD,CAArD;AAAuFC,EAAAA,KAAK,EAAE,CAA9F;AAAiGC,EAAAA,IAAI,EAAE,CAAvG;AAA0GC,EAAAA,MAAM,EAAE,CAAC,CAAC,CAAD,EAAI,OAAJ,CAAD,CAAlH;AAAkIC,EAAAA,QAAQ,EAAE,SAASC,yCAAT,CAAmDC,EAAnD,EAAuDC,GAAvD,EAA4D;AAAE,QAAID,EAAE,GAAG,CAAT,EAAY;AACzR9B,MAAAA,EAAE,CAACgC,SAAH,CAAa,CAAb,EAAgB,YAAhB,EAA8B,CAA9B;AACH;;AAAC,QAAIF,EAAE,GAAG,CAAT,EAAY;AACV9B,MAAAA,EAAE,CAACiC,UAAH,CAAc,OAAd,EAAuBF,GAAG,CAACvB,KAA3B;AACH;AAAE,GAJoE;AAIlE0B,EAAAA,UAAU,EAAE,CAAC/B,EAAE,CAACgC,cAAJ,CAJsD;AAIjCC,EAAAA,aAAa,EAAE;AAJkB,CAArB,CAAtD","sourcesContent":["import * as i0 from \"@angular/core\";\nimport * as i1 from \"@angular/router\";\nimport * as i2 from \"@online-board/services/title.service\";\nimport * as i3 from \"../../../../../../../toolkit/title/title.component\";\nexport class OnlineBoardArrivalTitleComponent {\n constructor(route, titleService) {\n this.route = route;\n this.titleService = titleService;\n this.title = '';\n }\n ngOnInit() {\n this.route.data.subscribe({\n next: async (data) => {\n if (data.urlParams.route) {\n this.title = await this.titleService.getArrivalTitle(data.urlParams.route);\n }\n },\n });\n }\n}\nOnlineBoardArrivalTitleComponent.ɵfac = function OnlineBoardArrivalTitleComponent_Factory(t) { return new (t || OnlineBoardArrivalTitleComponent)(i0.ɵɵdirectiveInject(i1.ActivatedRoute), i0.ɵɵdirectiveInject(i2.OnlineBoardTitleService)); };\nOnlineBoardArrivalTitleComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: OnlineBoardArrivalTitleComponent, selectors: [[\"online-board-arrival-title\"]], decls: 1, vars: 1, consts: [[3, \"title\"]], template: function OnlineBoardArrivalTitleComponent_Template(rf, ctx) { if (rf & 1) {\n i0.ɵɵelement(0, \"aero-title\", 0);\n } if (rf & 2) {\n i0.ɵɵproperty(\"title\", ctx.title);\n } }, directives: [i3.TitleComponent], encapsulation: 2 });\n"]},"metadata":{},"sourceType":"module"} |