Files
flights_web_raw/apps/angular/node_modules/.cache/babel-webpack/ab470e4a0829b2491555bfc89eeb2ee8.json
T

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 OnlineBoardArrivalMetaTagsComponent {\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.getArrivalMetaTags(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\nOnlineBoardArrivalMetaTagsComponent.ɵfac = function OnlineBoardArrivalMetaTagsComponent_Factory(t) {\n return new (t || OnlineBoardArrivalMetaTagsComponent)(i0.ɵɵdirectiveInject(i1.ActivatedRoute), i0.ɵɵdirectiveInject(i2.OnlineBoardMetaTagsService));\n};\n\nOnlineBoardArrivalMetaTagsComponent.ɵcmp = /*@__PURE__*/i0.ɵɵdefineComponent({\n type: OnlineBoardArrivalMetaTagsComponent,\n selectors: [[\"online-board-arrival-meta-tags\"]],\n decls: 1,\n vars: 2,\n consts: [[3, \"title\", \"description\"]],\n template: function OnlineBoardArrivalMetaTagsComponent_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/arrival/components/meta-tags/online-board-arrival-meta-tags.component.ts"],"names":["i0","i1","i2","i3","OnlineBoardArrivalMetaTagsComponent","constructor","route","metaTagsService","title","description","ngOnInit","data","subscribe","urlParams","metaTags","getArrivalMetaTags","ɵfac","OnlineBoardArrivalMetaTagsComponent_Factory","t","ɵɵdirectiveInject","ActivatedRoute","OnlineBoardMetaTagsService","ɵcmp","ɵɵdefineComponent","type","selectors","decls","vars","consts","template","OnlineBoardArrivalMetaTagsComponent_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,mCAAN,CAA0C;AAC7CC,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,kBAArB,CAAwCJ,IAAI,CAACE,SAAL,CAAeP,KAAvD,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;;AAf4C;;AAiBjDL,mCAAmC,CAACY,IAApC,GAA2C,SAASC,2CAAT,CAAqDC,CAArD,EAAwD;AAAE,SAAO,KAAKA,CAAC,IAAId,mCAAV,EAA+CJ,EAAE,CAACmB,iBAAH,CAAqBlB,EAAE,CAACmB,cAAxB,CAA/C,EAAwFpB,EAAE,CAACmB,iBAAH,CAAqBjB,EAAE,CAACmB,0BAAxB,CAAxF,CAAP;AAAsJ,CAA3P;;AACAjB,mCAAmC,CAACkB,IAApC,GAA2C,aAActB,EAAE,CAACuB,iBAAH,CAAqB;AAAEC,EAAAA,IAAI,EAAEpB,mCAAR;AAA6CqB,EAAAA,SAAS,EAAE,CAAC,CAAC,gCAAD,CAAD,CAAxD;AAA8FC,EAAAA,KAAK,EAAE,CAArG;AAAwGC,EAAAA,IAAI,EAAE,CAA9G;AAAiHC,EAAAA,MAAM,EAAE,CAAC,CAAC,CAAD,EAAI,OAAJ,EAAa,aAAb,CAAD,CAAzH;AAAwJC,EAAAA,QAAQ,EAAE,SAASC,4CAAT,CAAsDC,EAAtD,EAA0DC,GAA1D,EAA+D;AAAE,QAAID,EAAE,GAAG,CAAT,EAAY;AACrT/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,GAJuE;AAIrE0B,EAAAA,UAAU,EAAE,CAAChC,EAAE,CAACiC,iBAAJ,CAJyD;AAIjCC,EAAAA,aAAa,EAAE;AAJkB,CAArB,CAAzD","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 OnlineBoardArrivalMetaTagsComponent {\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.getArrivalMetaTags(data.urlParams.route);\n this.title = metaTags.title;\n this.description = metaTags.description;\n }\n });\n }\n}\nOnlineBoardArrivalMetaTagsComponent.ɵfac = function OnlineBoardArrivalMetaTagsComponent_Factory(t) { return new (t || OnlineBoardArrivalMetaTagsComponent)(i0.ɵɵdirectiveInject(i1.ActivatedRoute), i0.ɵɵdirectiveInject(i2.OnlineBoardMetaTagsService)); };\nOnlineBoardArrivalMetaTagsComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: OnlineBoardArrivalMetaTagsComponent, selectors: [[\"online-board-arrival-meta-tags\"]], decls: 1, vars: 2, consts: [[3, \"title\", \"description\"]], template: function OnlineBoardArrivalMetaTagsComponent_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"}