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CAAC,IAAIA,CAAC,CAACM,aAAa;CAC3E,EACD;EACE7B,IAAI,EAAE,iBAAiB;EACvBH,MAAM,EAAE,MAAM,6PAAmD,CAACM,IAAI,CAACoB,CAAC,IAAIA,CAAC,CAACO,qBAAqB;CACpG,CACF;;;;;;;;;;;;;;;;;;AC5B8C;AACmB;AACpB;;AAiBxC,MAAOjD,YAAY;AAAZA,YAAY;mBAAZA,YAAY;AAAA;AAAZA,YAAY;QAAZA;AAAY;AAAZA,YAAY;YAZrBP,yDAAY,EACZyD,uDAAW,EACXC,+DAAmB,EACnBC,wDAAY,EAGZ3D,yDAAY,EACZyD,uDAAW,EACXC,+DAAmB,EACnBC,wDAAY;AAAA;;sHAGHpD,YAAY;IAAAwC,UAZrB/C,yDAAY,EACZyD,uDAAW,EACXC,+DAAmB,EACnBC,wDAAY;IAAAC,UAGZ5D,yDAAY,EACZyD,uDAAW,EACXC,+DAAmB,EACnBC,wDAAY;EAAA;AAAA;;;;;;;;;;;;;;ACjBT,MAAME,WAAW,GAAG;EACzBC,UAAU,EAAE;CACb;;;;;;;;;;;;;;;;ACF8C;AAEF;AACY;AAEzD,IAAID,6EAAsB,EAAE;EAC1BE,6DAAc,EAAE;;AAGlBC,sEAAAA,EAAwB,CAACC,eAAe,CAACzD,sDAAS,CAAC,CAChD0D,KAAK,CAAClC,GAAG,IAAImC,OAAO,CAACC,KAAK,CAACpC,GAAG,CAAC,CAAC","sources":["./src/app/app.module.ts","./src/app/app.routing.ts","./src/app/modules/core/core.module.ts","./src/app/modules/lazy-modules.ts","./src/app/modules/shared/shared.module.ts","./src/environments/environment.local.ts","./src/main.ts"],"sourcesContent":["import { CommonModule } from '@angular/common';\r\nimport {\r\n ApplicationRef,\r\n Compiler,\r\n DoBootstrap,\r\n Injector,\r\n NgModule,\r\n NgModuleFactory,\r\n Type,\r\n} from '@angular/core';\r\nimport { BrowserModule } from '@angular/platform-browser';\r\nimport { RouterModule } from '@angular/router';\r\nimport { routes } from './app.routing';\r\nimport { CoreModule } from './modules/core/core.module';\r\nimport { modules } from './modules/lazy-modules';\r\nimport { SharedModule } from './modules/shared/shared.module';\r\n\r\n@NgModule({\r\n imports: [\r\n BrowserModule,\r\n RouterModule.forChild(routes),\r\n CommonModule,\r\n CoreModule,\r\n SharedModule,\r\n ],\r\n})\r\nexport class AppModule implements DoBootstrap {\r\n constructor(private injector: Injector, private compiler: Compiler) {}\r\n\r\n ngDoBootstrap(appRef: ApplicationRef): void {\r\n this.bootstrapComponents(appRef);\r\n }\r\n\r\n bootstrapComponents(appRef: ApplicationRef) {\r\n const widgets = document.querySelectorAll('[data-module-name]');\r\n for (const i in widgets) {\r\n if (widgets.hasOwnProperty(i)) {\r\n const widget = widgets[i];\r\n const moduleName = widget.getAttribute('data-module-name');\r\n if (moduleName) {\r\n const module = modules.find((x) => x.name === moduleName);\r\n if (module) {\r\n this.loadModule(module.module, widget, appRef);\r\n }\r\n }\r\n }\r\n }\r\n }\r\n\r\n loadModule(path: any, widget: any, appRef: ApplicationRef) {\r\n (path() as Promise | Type>)\r\n .then((elementModuleOrFactory) => {\r\n if (elementModuleOrFactory instanceof NgModuleFactory) {\r\n // if ViewEngine\r\n return elementModuleOrFactory;\r\n } else {\r\n try {\r\n // if Ivy\r\n return this.compiler.compileModuleAsync(elementModuleOrFactory);\r\n } catch (err) {\r\n throw err;\r\n }\r\n }\r\n })\r\n .then((moduleFactory) => {\r\n try {\r\n const ngModuleRef = moduleFactory.create(this.injector);\r\n ngModuleRef.injector\r\n .get('components')\r\n .forEach((components: Type<{}>[]) => {\r\n components.forEach((component: Type<{}>) => {\r\n const compFactory =\r\n ngModuleRef.componentFactoryResolver.resolveComponentFactory(\r\n component\r\n );\r\n if (widget.localName === compFactory.selector) {\r\n appRef.bootstrap(compFactory, widget);\r\n }\r\n });\r\n });\r\n } catch (err) {\r\n throw err;\r\n }\r\n });\r\n }\r\n}\r\n","import { Routes } from '@angular/router';\r\n\r\nexport const routes: Routes = [\r\n {\r\n loadChildren: () => import('./modules/swiperBanner/swiperBanner.module').then(m => m.SwiperBannerModule)\r\n },\r\n {\r\n loadChildren: () => import('./modules/microescapes/microescapes.module').then(m => m.MicroescapesModule)\r\n }, \r\n {\r\n loadChildren: () => import('./modules/bannerDetails/bannerDetails.module').then(m => m.BannerDetailsModule)\r\n },\r\n {\r\n loadChildren: () => import('./modules/productPlans/productPlans.module').then(m => m.ProductPlansModule)\r\n },\r\n {\r\n loadChildren: () => import('./modules/modalPay/modalPay.module').then(m => m.ModalPayModule)\r\n },\r\n {\r\n loadChildren: () => import('./modules/rewards/rewards.module').then(m => m.RewardsModule)\r\n },\r\n {\r\n loadChildren: () => import('./modules/recompensasRuta/recompensas-ruta.module').then(m => m.RecompensasRutaModule)\r\n },\r\n];\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\n\r\n@NgModule({\r\n declarations: [],\r\n imports: [\r\n CommonModule\r\n ]\r\n})\r\nexport class CoreModule { }\r\n","export const modules = [\r\n {\r\n name: 'BannerSwiper',\r\n module: () => import('./swiperBanner/swiperBanner.module').then(m => m.SwiperBannerModule)\r\n },\r\n {\r\n name: 'Microescapes',\r\n module: () => import('./microescapes/microescapes.module').then(m => m.MicroescapesModule)\r\n }, \r\n {\r\n name: 'BannerDetails',\r\n module: () => import('./bannerDetails/bannerDetails.module').then(m => m.BannerDetailsModule)\r\n },\r\n {\r\n name: 'ProductPlans',\r\n module: () => import('./productPlans/productPlans.module').then(m => m.ProductPlansModule)\r\n },\r\n {\r\n name: 'ModalPay',\r\n module: () => import('./modalPay/modalPay.module').then(m => m.ModalPayModule)\r\n },\r\n {\r\n name: 'Rewards',\r\n module: () => import('./rewards/rewards.module').then(m => m.RewardsModule)\r\n },\r\n {\r\n name: 'RecompensasRuta',\r\n module: () => import('./recompensasRuta/recompensas-ruta.module').then(m => m.RecompensasRutaModule)\r\n },\r\n];\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\r\nimport { SwiperModule } from 'swiper/angular';\r\n\r\n@NgModule({\r\n declarations: [],\r\n imports: [\r\n CommonModule,\r\n FormsModule,\r\n ReactiveFormsModule,\r\n SwiperModule,\r\n ],\r\n exports: [\r\n CommonModule,\r\n FormsModule,\r\n ReactiveFormsModule,\r\n SwiperModule,\r\n ]\r\n})\r\nexport class SharedModule { }\r\n","export const environment = {\r\n production: false\r\n};\r\n","import { enableProdMode } from '@angular/core';\r\nimport { platformBrowserDynamic } from '@angular/platform-browser-dynamic';\r\nimport { AppModule } from './app/app.module';\r\nimport { environment } from './environments/environment';\r\n\r\nif (environment.production) {\r\n enableProdMode();\r\n}\r\n\r\nplatformBrowserDynamic().bootstrapModule(AppModule)\r\n .catch(err => console.error(err));\r\n"],"names":["CommonModule","NgModuleFactory","BrowserModule","RouterModule","routes","CoreModule","modules","SharedModule","AppModule","constructor","injector","compiler","ngDoBootstrap","appRef","bootstrapComponents","widgets","document","querySelectorAll","i","hasOwnProperty","widget","moduleName","getAttribute","module","find","x","name","loadModule","path","then","elementModuleOrFactory","compileModuleAsync","err","moduleFactory","ngModuleRef","create","get","forEach","components","component","compFactory","componentFactoryResolver","resolveComponentFactory","localName","selector","bootstrap","forChild","imports","loadChildren","m","SwiperBannerModule","MicroescapesModule","BannerDetailsModule","ProductPlansModule","ModalPayModule","RewardsModule","RecompensasRutaModule","FormsModule","ReactiveFormsModule","SwiperModule","exports","environment","production","enableProdMode","__NgCli_bootstrap_1","bootstrapModule","catch","console","error"],"sourceRoot":"webpack:///","x_google_ignoreList":[]}