1 line
6.0 KiB
JSON
1 line
6.0 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/meta-tags.service\";\nimport * as i3 from \"../../../../../../../shared/seo/meta-tags.directive\";\nexport class OnlineBoardDepartureMetaTagsComponent {\n constructor(route, metaTagsService) {\n this.route = route;\n this.metaTagsService = metaTagsService;\n this.title = '';\n this.description = '';\n }\n\n ngOnInit() {\n var _this = this;\n\n this.route.data.subscribe( /*#__PURE__*/function () {\n var _ref = _asyncToGenerator(function* (data) {\n if (data.urlParams.route) {\n const metaTags = yield _this.metaTagsService.getDepartureMetaTags(data.urlParams.route);\n _this.title = metaTags.title;\n _this.description = metaTags.description;\n }\n });\n\n return function (_x) {\n return _ref.apply(this, arguments);\n };\n }());\n }\n\n}\n\nOnlineBoardDepartureMetaTagsComponent.ɵfac = function OnlineBoardDepartureMetaTagsComponent_Factory(t) {\n return new (t || OnlineBoardDepartureMetaTagsComponent)(i0.ɵɵdirectiveInject(i1.ActivatedRoute), i0.ɵɵdirectiveInject(i2.OnlineBoardMetaTagsService));\n};\n\nOnlineBoardDepartureMetaTagsComponent.ɵcmp = /*@__PURE__*/i0.ɵɵdefineComponent({\n type: OnlineBoardDepartureMetaTagsComponent,\n selectors: [[\"online-board-departure-meta-tags\"]],\n decls: 1,\n vars: 2,\n consts: [[3, \"title\", \"description\"]],\n template: function OnlineBoardDepartureMetaTagsComponent_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelement(0, \"meta-tags\", 0);\n }\n\n if (rf & 2) {\n i0.ɵɵproperty(\"title\", ctx.title)(\"description\", ctx.description);\n }\n },\n directives: [i3.MetaTagsDirective],\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/departure/components/meta-tags/online-board-departure-meta-tags.component.ts"],"names":["i0","i1","i2","i3","OnlineBoardDepartureMetaTagsComponent","constructor","route","metaTagsService","title","description","ngOnInit","data","subscribe","urlParams","metaTags","getDepartureMetaTags","ɵfac","OnlineBoardDepartureMetaTagsComponent_Factory","t","ɵɵdirectiveInject","ActivatedRoute","OnlineBoardMetaTagsService","ɵcmp","ɵɵdefineComponent","type","selectors","decls","vars","consts","template","OnlineBoardDepartureMetaTagsComponent_Template","rf","ctx","ɵɵelement","ɵɵproperty","directives","MetaTagsDirective","encapsulation"],"mappings":";AAAA,OAAO,KAAKA,EAAZ,MAAoB,eAApB;AACA,OAAO,KAAKC,EAAZ,MAAoB,iBAApB;AACA,OAAO,KAAKC,EAAZ,MAAoB,0CAApB;AACA,OAAO,KAAKC,EAAZ,MAAoB,qDAApB;AACA,OAAO,MAAMC,qCAAN,CAA4C;AAC/CC,EAAAA,WAAW,CAACC,KAAD,EAAQC,eAAR,EAAyB;AAChC,SAAKD,KAAL,GAAaA,KAAb;AACA,SAAKC,eAAL,GAAuBA,eAAvB;AACA,SAAKC,KAAL,GAAa,EAAb;AACA,SAAKC,WAAL,GAAmB,EAAnB;AACH;;AACDC,EAAAA,QAAQ,GAAG;AAAA;;AACP,SAAKJ,KAAL,CAAWK,IAAX,CAAgBC,SAAhB;AAAA,mCAA0B,WAAOD,IAAP,EAAgB;AACtC,YAAIA,IAAI,CAACE,SAAL,CAAeP,KAAnB,EAA0B;AACtB,gBAAMQ,QAAQ,SAAS,KAAI,CAACP,eAAL,CAAqBQ,oBAArB,CAA0CJ,IAAI,CAACE,SAAL,CAAeP,KAAzD,CAAvB;AACA,UAAA,KAAI,CAACE,KAAL,GAAaM,QAAQ,CAACN,KAAtB;AACA,UAAA,KAAI,CAACC,WAAL,GAAmBK,QAAQ,CAACL,WAA5B;AACH;AACJ,OAND;;AAAA;AAAA;AAAA;AAAA;AAOH;;AAf8C;;AAiBnDL,qCAAqC,CAACY,IAAtC,GAA6C,SAASC,6CAAT,CAAuDC,CAAvD,EAA0D;AAAE,SAAO,KAAKA,CAAC,IAAId,qCAAV,EAAiDJ,EAAE,CAACmB,iBAAH,CAAqBlB,EAAE,CAACmB,cAAxB,CAAjD,EAA0FpB,EAAE,CAACmB,iBAAH,CAAqBjB,EAAE,CAACmB,0BAAxB,CAA1F,CAAP;AAAwJ,CAAjQ;;AACAjB,qCAAqC,CAACkB,IAAtC,GAA6C,aAActB,EAAE,CAACuB,iBAAH,CAAqB;AAAEC,EAAAA,IAAI,EAAEpB,qCAAR;AAA+CqB,EAAAA,SAAS,EAAE,CAAC,CAAC,kCAAD,CAAD,CAA1D;AAAkGC,EAAAA,KAAK,EAAE,CAAzG;AAA4GC,EAAAA,IAAI,EAAE,CAAlH;AAAqHC,EAAAA,MAAM,EAAE,CAAC,CAAC,CAAD,EAAI,OAAJ,EAAa,aAAb,CAAD,CAA7H;AAA4JC,EAAAA,QAAQ,EAAE,SAASC,8CAAT,CAAwDC,EAAxD,EAA4DC,GAA5D,EAAiE;AAAE,QAAID,EAAE,GAAG,CAAT,EAAY;AAC7T/B,MAAAA,EAAE,CAACiC,SAAH,CAAa,CAAb,EAAgB,WAAhB,EAA6B,CAA7B;AACH;;AAAC,QAAIF,EAAE,GAAG,CAAT,EAAY;AACV/B,MAAAA,EAAE,CAACkC,UAAH,CAAc,OAAd,EAAuBF,GAAG,CAACxB,KAA3B,EAAkC,aAAlC,EAAiDwB,GAAG,CAACvB,WAArD;AACH;AAAE,GAJyE;AAIvE0B,EAAAA,UAAU,EAAE,CAAChC,EAAE,CAACiC,iBAAJ,CAJ2D;AAInCC,EAAAA,aAAa,EAAE;AAJoB,CAArB,CAA3D","sourcesContent":["import * as i0 from \"@angular/core\";\nimport * as i1 from \"@angular/router\";\nimport * as i2 from \"@online-board/services/meta-tags.service\";\nimport * as i3 from \"../../../../../../../shared/seo/meta-tags.directive\";\nexport class OnlineBoardDepartureMetaTagsComponent {\n constructor(route, metaTagsService) {\n this.route = route;\n this.metaTagsService = metaTagsService;\n this.title = '';\n this.description = '';\n }\n ngOnInit() {\n this.route.data.subscribe(async (data) => {\n if (data.urlParams.route) {\n const metaTags = await this.metaTagsService.getDepartureMetaTags(data.urlParams.route);\n this.title = metaTags.title;\n this.description = metaTags.description;\n }\n });\n }\n}\nOnlineBoardDepartureMetaTagsComponent.ɵfac = function OnlineBoardDepartureMetaTagsComponent_Factory(t) { return new (t || OnlineBoardDepartureMetaTagsComponent)(i0.ɵɵdirectiveInject(i1.ActivatedRoute), i0.ɵɵdirectiveInject(i2.OnlineBoardMetaTagsService)); };\nOnlineBoardDepartureMetaTagsComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: OnlineBoardDepartureMetaTagsComponent, selectors: [[\"online-board-departure-meta-tags\"]], decls: 1, vars: 2, consts: [[3, \"title\", \"description\"]], template: function OnlineBoardDepartureMetaTagsComponent_Template(rf, ctx) { if (rf & 1) {\n i0.ɵɵelement(0, \"meta-tags\", 0);\n } if (rf & 2) {\n i0.ɵɵproperty(\"title\", ctx.title)(\"description\", ctx.description);\n } }, directives: [i3.MetaTagsDirective], encapsulation: 2 });\n"]},"metadata":{},"sourceType":"module"} |