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ACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;;;;;;;;;;;;;;;AC9OA,iEAAe,+EAA+E","sources":["./src/app/app-routing.module.ts","./src/app/app.component.ts","./src/app/app.module.ts","./src/app/guards/auth/auth.guard.ts","./src/app/services/auth.service.ts","./src/app/services/cartera-config.service.ts","./src/app/services/color.service.ts","./src/app/services/conexionApi.service.ts","./src/app/services/productos.service.ts","./src/environments/environment.ts","./src/main.ts","./node_modules/@ionic/core/dist/esm|lazy|/^/.*/.entry/.js$/|include: /.entry/.js$/|exclude: /.system/.entry/.js$/|groupOptions: {}|namespace object","./src/app/app.component.html"],"sourcesContent":["\r\nimport { NgModule } from '@angular/core';\r\nimport { PreloadAllModules, RouterModule, Routes } from '@angular/router';\r\nimport { AuthGuard } from './guards/auth/auth.guard';\r\nimport { AppComponent } from './app.component';\r\n\r\nconst routes: Routes = [\r\n {\r\n path: ':idEmpresa',\r\n children: [\r\n {\r\n path: 'sign-in',\r\n loadChildren: () => import('./pages/sign-in/sign-in.module').then(m => m.SignInPageModule)\r\n },\r\n {\r\n path: 'onboard',\r\n canActivate: [AuthGuard],\r\n loadChildren: () => import('./pages/onboard/onboard.module').then(m => m.OnboardPageModule)\r\n },\r\n {\r\n path: '',\r\n canActivate: [AuthGuard],\r\n loadChildren: () => import('./pages/tabs/tabs.module').then(m => m.TabsPageModule)\r\n },\r\n {\r\n path: 'home',\r\n loadChildren: () => import('./pages/home/home.module').then(m => m.HomePageModule)\r\n },\r\n {\r\n path: 'navigation',\r\n loadChildren: () => import('./pages/navigation/navigation.module').then(m => m.NavigationPageModule)\r\n },\r\n {\r\n path: 'my-orders',\r\n loadChildren: () => import('./pages/my-orders/my-orders.module').then(m => m.MyOrdersPageModule)\r\n },\r\n {\r\n path: 'my-saved',\r\n loadChildren: () => import('./pages/my-saved/my-saved.module').then(m => m.MySavedPageModule)\r\n },\r\n {\r\n path: 'profile',\r\n loadChildren: () => import('./pages/profile/profile.module').then(m => m.ProfilePageModule)\r\n },\r\n {\r\n path: 'sign-up',\r\n loadChildren: () => import('./pages/sign-up/sign-up.module').then(m => m.SignUpPageModule)\r\n },\r\n {\r\n path: 'forgot-password',\r\n loadChildren: () => import('./pages/forgot-password/forgot-password.module').then(m => m.ForgotPasswordPageModule)\r\n },\r\n {\r\n path: 'favourite',\r\n loadChildren: () => import('./pages/favourite/favourite.module').then(m => m.FavouritePageModule)\r\n },\r\n {\r\n path: 'add-items',\r\n loadChildren: () => import('./pages/add-items/add-items.module').then(m => m.AddItemsPageModule)\r\n },\r\n {\r\n path: 'my-cart',\r\n loadChildren: () => import('./pages/my-cart/my-cart.module').then(m => m.MyCartPageModule)\r\n },\r\n {\r\n path: 'checkout',\r\n loadChildren: () => import('./pages/checkout/checkout.module').then(m => m.CheckoutPageModule)\r\n },\r\n {\r\n path: 'payment-method',\r\n loadChildren: () => import('./pages/payment-method/payment-method.module').then(m => m.PaymentMethodPageModule)\r\n },\r\n {\r\n path: 'confirm-order',\r\n loadChildren: () => import('./pages/confirm-order/confirm-order.module').then(m => m.ConfirmOrderPageModule)\r\n },\r\n {\r\n path: 'my-cards',\r\n loadChildren: () => import('./pages/my-cards/my-cards.module').then(m => m.MyCardsPageModule)\r\n },\r\n {\r\n path: 'help',\r\n loadChildren: () => import('./pages/help/help.module').then(m => m.HelpPageModule)\r\n },\r\n {\r\n path: 'filter',\r\n loadChildren: () => import('./pages/filter/filter.module').then(m => m.FilterPageModule)\r\n },\r\n {\r\n path: 'manage-profile',\r\n loadChildren: () => import('./pages/manage-profile/manage-profile.module').then(m => m.ManageProfilePageModule)\r\n },\r\n {\r\n path: 'my-address',\r\n loadChildren: () => import('./pages/my-address/my-address.module').then(m => m.MyAddressPageModule)\r\n },\r\n {\r\n path: 'reviews',\r\n loadChildren: () => import('./pages/reviews/reviews.module').then(m => m.ReviewsPageModule)\r\n },\r\n {\r\n path: 'order-tracking',\r\n loadChildren: () => import('./pages/order-tracking/order-tracking.module').then(m => m.OrderTrackingPageModule)\r\n },\r\n {\r\n path: 'track-order',\r\n loadChildren: () => import('./pages/track-order/track-order.module').then(m => m.TrackOrderPageModule)\r\n },\r\n {\r\n path: 'search',\r\n loadChildren: () => import('./pages/search/search.module').then(m => m.SearchPageModule)\r\n },\r\n {\r\n path: 'error',\r\n loadChildren: () => import('./pages/error/error.module').then(m => m.ErrorPageModule)\r\n },\r\n {\r\n path: 'finalizar-pedido',\r\n loadChildren: () => import('./pages/my-orders/finalizar-pedido/finalizar-pedido.module').then(m => m.FinalizarPedidoPageModule)\r\n },\r\n {\r\n path: 'elige-provincia',\r\n loadChildren: () => import('./pages/provincia/provincia.module').then(m => m.ProvinciaPageModule)\r\n },\r\n {\r\n path: 'modal-qr',\r\n loadChildren: () => import('./pages/modal-qr/modal-qr.module').then( m => m.ModalQRPageModule)\r\n },\r\n {\r\n path: 'cupones',\r\n canActivate: [AuthGuard],\r\n loadChildren: () => import('./pages/cupones/cupones.module').then( m => m.CuponesPageModule)\r\n },\r\n {\r\n path: 'ofertas',\r\n canActivate: [AuthGuard],\r\n loadChildren: () => import('./pages/ofertas/ofertas.module').then( m => m.OfertasPageModule)\r\n },\r\n {\r\n path: 'user',\r\n canActivate: [AuthGuard],\r\n loadChildren: () => import('./pages/user/user.module').then( m => m.UserPageModule)\r\n },\r\n {\r\n path: 'productos',\r\n canActivate: [AuthGuard],\r\n loadChildren: () => import('./pages/productos/productos.module').then( m => m.ProductosPageModule)\r\n },\r\n {\r\n path: 'plantilla-productos',\r\n canActivate: [AuthGuard],\r\n loadChildren: () => import('./pages/plantilla-productos/plantilla-productos.module').then( m => m.PlantillaProductosPageModule)\r\n },\r\n {\r\n path: 'plantilla-productos-vertical',\r\n canActivate: [AuthGuard],\r\n loadChildren: () => import('./pages/plantilla-productos-vertical/plantilla-productos-vertical.module').then( m => m.PlantillaProductosVerticalPageModule)\r\n },\r\n {\r\n path: 'producto-completo',\r\n canActivate: [AuthGuard],\r\n loadChildren: () => import('./pages/producto-completo/producto-completo.module').then( m => m.ProductoCompletoPageModule)\r\n },\r\n {\r\n path: 'cupon-modal',\r\n canActivate: [AuthGuard],\r\n loadChildren: () => import('./pages/cupon-modal/cupon-modal.module').then( m => m.CuponModalPageModule)\r\n },\r\n {\r\n path: 'acceso-denegado',\r\n loadChildren: () => import('./pages/acceso-denegado/acceso-denegado.module').then( m => m.AccesoDenegadoModule)\r\n },\r\n {\r\n path: 'history-user',\r\n loadChildren: () => import('./pages/home/history-user/history-user.module').then( m => m.HistoryUserPageModule)\r\n },\r\n {\r\n path: 'puntos-user',\r\n loadChildren: () => import('./pages/home/puntos-user/puntos-user.module').then( m => m.PuntosUserPageModule)\r\n },\r\n {\r\n path: 'codigo-referido',\r\n loadChildren: () => import('./pages/home/codigo-referido/codigo-referido.module').then( m => m.CodigoReferidoPageModule)\r\n },\r\n {\r\n path: 'error2',\r\n loadChildren: () => import('./pages/error2/error2.module').then( m => m.Error2PageModule)\r\n }\r\n ]\r\n}\r\n\r\n];\r\n@NgModule({\r\n imports: [\r\n RouterModule.forRoot(routes, { preloadingStrategy: PreloadAllModules })\r\n ],\r\n exports: [RouterModule]\r\n})\r\nexport class AppRoutingModule { }\r\n"," \r\nimport { AuthService } from 'src/app/services/auth.service'; \r\nimport { Component, OnInit } from '@angular/core'; \r\nimport { Router, ActivatedRoute, NavigationEnd } from '@angular/router';\r\nimport { Storage } from '@ionic/storage';\r\nimport { ColorService } from './services/color.service';\r\nimport { Renderer2 } from '@angular/core';\r\nimport { ProductosService } from './services/productos.service';\r\nimport { Platform } from '@ionic/angular';\r\nimport { filter } from 'rxjs/operators';\r\nimport { CarteraConfigService } from './services/cartera-config.service';\r\nimport { CookieService } from 'ngx-cookie-service';\r\n\r\n@Component({\r\n selector: 'app-root',\r\n templateUrl: 'app.component.html',\r\n styleUrls: ['app.component.scss'],\r\n})\r\nexport class AppComponent implements OnInit {\r\n idEmpresa: any; \r\n url: string;\r\n datosEmpresa: any;\r\n idProf: any;\r\n primaryColor: string;\r\n gradient: string;\r\n constructor( \r\n private authService: AuthService, \r\n private route: ActivatedRoute,\r\n private storage: Storage,\r\n private productosService: ProductosService,\r\n private renderer: Renderer2,\r\n private carteraConfigService: CarteraConfigService,\r\n private platform: Platform,\r\n private cookieService: CookieService,\r\n private colorService: ColorService,\r\n private router: Router \r\n ) {\r\n this.router.events.pipe(\r\n filter(event => event instanceof NavigationEnd)\r\n ).subscribe(() => {\r\n this.applyGlobalColor();\r\n });\r\n }\r\n \r\n // async ngOnInit() {\r\n // // Intentar capturar el ID de empresa desde la URL actual\r\n // const urlParts = window.location.href.split('/');\r\n // const pathId = urlParts[3]; // Asume que el ID siempre está en esta posición\r\n\r\n // // Comprobar si el ID es un número (ajusta según tus necesidades)\r\n // if (!isNaN(Number(pathId)) && pathId !== 'sign-in' && pathId !== 'home') {\r\n // this.idEmpresa = pathId;\r\n // localStorage.setItem('id_empresa', this.idEmpresa);\r\n // // console.log('ID de la empresa capturado:', this.idEmpresa);\r\n // } else {\r\n // // Intentar recuperar el ID de empresa desde localStorage si no se encontró en la URL\r\n // this.idEmpresa = localStorage.getItem('id_empresa');\r\n // if (!this.idEmpresa) {\r\n // // console.log(\"No se pudo capturar el ID de empresa o ruta no válida\");\r\n // // Opcional: Redirigir a una página de error o inicio si no hay un ID válido\r\n // this.router.navigate(['error']); // Asegúrate de tener una ruta 'error' configurada\r\n // return;\r\n // }\r\n // }\r\n\r\n // if(await this.comprobarActivo() != 0) {\r\n // const isLoggedIn = await this.authService.isAuthenticated(); \r\n // this.authService.setLoggedIn(isLoggedIn);\r\n\r\n // if (isLoggedIn) { \r\n // this.router.navigate(['home']);\r\n // } else {\r\n // this.router.navigate(['sign-in']);\r\n // }\r\n\r\n // this.colorService.currentPrimaryColor.subscribe(color => {\r\n // this.primaryColor = color;\r\n // this.updatePrimaryColorVariable(color);\r\n // });\r\n // this.colorService.currentColor.subscribe(gradient => {\r\n // this.gradient = gradient;\r\n // this.updateGradientVariable(gradient);\r\n // });\r\n\r\n // this.obtenerDatosEmpresa();\r\n\r\n // } else {\r\n // this.router.navigate(['error']);\r\n // }\r\n\r\n // if(pathId == '') {\r\n // this.router.navigate(['error2']);\r\n // }\r\n\r\n \r\n // }\r\n\r\n // async ngOnInit() { \r\n // this.idEmpresa = localStorage.getItem('id_empresa'); // Intentar recuperar el ID de empresa desde localStorage\r\n\r\n // if (!this.idEmpresa) { // Si no está en localStorage, obtenerlo de la URL\r\n // const urlParts = window.location.href.split('/');\r\n // const pathId = urlParts[3]; // Asume que el ID siempre está en esta posición\r\n\r\n // if (!isNaN(Number(pathId)) && pathId !== 'sign-in' && pathId !== 'home') {\r\n // this.idEmpresa = pathId;\r\n // localStorage.setItem('id_empresa', this.idEmpresa);\r\n // } else {\r\n // this.router.navigate(['sign-in']); // Redirigir si no se encuentra un ID válido\r\n // return;\r\n // }\r\n // }\r\n \r\n // if(await this.comprobarActivo() != 0) { \r\n // const isLoggedIn = await this.authService.isAuthenticated(); \r\n // this.authService.setLoggedIn(isLoggedIn); \r\n \r\n // if (isLoggedIn) { \r\n // this.router.navigate(['home']); \r\n // } else { \r\n // this.router.navigate(['sign-in']); \r\n // } \r\n \r\n // this.colorService.currentPrimaryColor.subscribe(color => { \r\n // this.primaryColor = color; \r\n // this.updatePrimaryColorVariable(color); \r\n // }); \r\n // this.colorService.currentColor.subscribe(gradient => { \r\n // this.gradient = gradient; \r\n // this.updateGradientVariable(gradient); \r\n // }); \r\n \r\n // this.obtenerDatosEmpresa(); \r\n // } else { \r\n // this.router.navigate(['error']);\r\n // } \r\n // }\r\n\r\n async ngOnInit() { \r\n this.loadCompanyId();\r\n \r\n if(await this.comprobarActivo() != 0) { \r\n const isLoggedIn = await this.authService.isAuthenticated(); \r\n this.authService.setLoggedIn(isLoggedIn); \r\n \r\n // if (isLoggedIn) { \r\n // this.router.navigate([`${this.idEmpresa}/home`]); \r\n // } else { \r\n // this.router.navigate([`${this.idEmpresa}/sign-in`]); \r\n // } \r\n \r\n this.colorService.currentPrimaryColor.subscribe(color => { \r\n this.primaryColor = color; \r\n this.updatePrimaryColorVariable(color); \r\n }); \r\n this.colorService.currentColor.subscribe(gradient => { \r\n this.gradient = gradient; \r\n this.updateGradientVariable(gradient); \r\n }); \r\n \r\n this.obtenerDatosEmpresa(); \r\n } else { \r\n this.router.navigate(['error']);\r\n } \r\n }\r\n\r\n loadCompanyId() {\r\n \r\n // Intentar obtener el ID de la empresa de las cookies\r\n this.idEmpresa = this.cookieService.get('companyId');\r\n\r\n if (!this.idEmpresa) {\r\n const urlParts = window.location.href.split('/');\r\n const url = window.location.href;\r\n this.idEmpresa = urlParts[3]; // Asume que el ID siempre está en esta posición\r\n // Si no se encuentra en las cookies, obtenerlo de la URL\r\n this.updateCompanyIdFromUrl(url);\r\n }\r\n }\r\n\r\n updateCompanyIdFromUrl(url: string) {\r\n const urlSegments = url.split('/');\r\n const potentialId = urlSegments[3]; // Asumiendo que el ID está en la tercera posición\r\n if (potentialId && !isNaN(Number(potentialId))) {\r\n this.idEmpresa = potentialId;\r\n localStorage.setItem('id_empresa', this.idEmpresa); // Guardar en localStorage\r\n this.cookieService.set('companyId', this.idEmpresa, 30, '/'); // Guardar en cookies por 30 días\r\n } else {\r\n this.router.navigate(['error']); // Redirigir si no se encuentra un ID válido\r\n }\r\n }\r\n \r\n\r\n async obtenerDatosEmpresa() {\r\n try {\r\n const empresa = await this.productosService.obtenerDatosEmpresa(this.idEmpresa).toPromise();\r\n this.datosEmpresa = empresa[0];\r\n this.idProf = this.datosEmpresa.id_profesional;\r\n localStorage.setItem('id_prof', this.idProf);\r\n this.obtenerColor(this.idProf);\r\n } catch (err) {\r\n console.log(err);\r\n }\r\n }\r\n\r\n obtenerColor(idProf: string) {\r\n this.platform.ready().then(() => {\r\n if (idProf) {\r\n this.colorService.fetchColor(idProf);\r\n }\r\n\r\n this.colorService.currentColor.subscribe(color => {\r\n this.setGlobalColor(color);\r\n localStorage.setItem('globalColor', color);\r\n });\r\n\r\n // Aplicar el color guardado al iniciar\r\n const savedColor = localStorage.getItem('globalColor');\r\n if (savedColor) {\r\n this.setGlobalColor(savedColor);\r\n }\r\n });\r\n }\r\n\r\n applyGlobalColor() {\r\n // Aplicar el color guardado al cambiar la vista\r\n const savedColor = localStorage.getItem('globalColor');\r\n if (savedColor) {\r\n this.setGlobalColor(savedColor);\r\n }\r\n }\r\n\r\n setGlobalColor(color: string) {\r\n // Aquí puedes establecer el color de fondo para cualquier elemento\r\n const elements = document.querySelectorAll('.componente');\r\n elements.forEach(element => {\r\n this.renderer.setStyle(element, 'background-color', color);\r\n this.renderer.setStyle(element, 'background', color);\r\n });\r\n\r\n const elements2 = document.querySelectorAll('.salon_detail_div');\r\n elements2.forEach(element => {\r\n this.renderer.setStyle(element, '--background-color', color);\r\n });\r\n }\r\n\r\n updatePrimaryColorVariable(color: string) {\r\n document.documentElement.style.setProperty('--primary-color', color);\r\n }\r\n\r\n updateGradientVariable(gradient: string) {\r\n document.documentElement.style.setProperty('--gradient', gradient);\r\n }\r\n\r\n async comprobarActivo() {\r\n try {\r\n const data:any = await this.carteraConfigService.obtenerActivoCartera(this.idEmpresa).toPromise();\r\n return data.activo;\r\n } catch (error) {\r\n console.error('Error al obtener la configuración de la cartera:', error);\r\n // Manejo de errores si es necesario\r\n }\r\n }\r\n\r\n}","import { NgModule, CUSTOM_ELEMENTS_SCHEMA, isDevMode } from '@angular/core';\r\nimport { BrowserModule } from '@angular/platform-browser';\r\nimport { RouteReuseStrategy } from '@angular/router';\r\nimport { SocialSharing } from '@ionic-native/social-sharing/ngx';\r\nimport { IonicModule, IonicRouteStrategy } from '@ionic/angular';\r\nimport { NgOtpInputModule } from 'ng-otp-input';\r\nimport { HttpClientModule } from '@angular/common/http';\r\nimport { AppRoutingModule } from './app-routing.module';\r\nimport { AppComponent } from './app.component';\r\nimport { register } from 'swiper/element/bundle';\r\nimport { IonicStorageModule } from '@ionic/storage-angular';\r\nimport { ServiceWorkerModule } from '@angular/service-worker';\r\nimport { CookieService } from 'ngx-cookie-service';\r\n\r\nregister();\r\n@NgModule({\r\n declarations: [AppComponent],\r\n entryComponents: [],\r\n imports: [\r\n BrowserModule,\r\n IonicModule.forRoot(),\r\n AppRoutingModule,\r\n NgOtpInputModule,\r\n HttpClientModule,\r\n IonicStorageModule.forRoot(),\r\n ServiceWorkerModule.register('ngsw-worker.js', {\r\n enabled: !isDevMode(),\r\n // Register the ServiceWorker as soon as the application is stable\r\n // or after 30 seconds (whichever comes first).\r\n registrationStrategy: 'registerWhenStable:30000'\r\n })\r\n ],\r\n providers: [\r\n SocialSharing,\r\n { provide: RouteReuseStrategy, useClass: IonicRouteStrategy },\r\n CookieService\r\n ],\r\n bootstrap: [AppComponent],\r\n schemas: [CUSTOM_ELEMENTS_SCHEMA]\r\n})\r\nexport class AppModule {}\r\n","import { Injectable } from '@angular/core'; \r\nimport { ActivatedRouteSnapshot, CanActivate, Router, RouterStateSnapshot, UrlTree } from '@angular/router'; \r\nimport { Observable } from 'rxjs'; \r\nimport { AuthService } from 'src/app/services/auth.service'; \r\n \r\n \r\n@Injectable({ \r\n providedIn: 'root' \r\n}) \r\nexport class AuthGuard implements CanActivate {\r\n url: string;\r\n constructor( \r\n private authService: AuthService, \r\n private router: Router \r\n ) {} \r\n canActivate( \r\n next: ActivatedRouteSnapshot, \r\n state: RouterStateSnapshot): Observable | Promise | boolean | UrlTree { \r\n return this.authService.isAuthenticated().then(isAuthenticated => { \r\n if (isAuthenticated) { \r\n return true; \r\n } else { \r\n this.router.navigate([`sign-in`]);\r\n return false; \r\n } \r\n }); \r\n } \r\n }","import { Injectable } from '@angular/core'; \r\nimport { HttpClient, HttpErrorResponse } from '@angular/common/http'; \r\nimport { BehaviorSubject, Observable, throwError } from 'rxjs'; \r\nimport { catchError, tap } from 'rxjs/operators'; \r\nimport { BASE_URL_API } from '../../environments/environment'; \r\nimport { Router } from '@angular/router'; \r\nimport { Storage } from '@ionic/storage-angular'; \r\n \r\n@Injectable({ \r\n providedIn: 'root' \r\n}) \r\nexport class AuthService { \r\n private isLoggedInSubject = new BehaviorSubject(false); \r\n isLoggedIn$ = this.isLoggedInSubject.asObservable(); \r\n private _storage: Storage | null = null;\r\n idEmpresa: any;\r\n \r\n constructor( \r\n private http: HttpClient, \r\n private router: Router, \r\n private storage: Storage \r\n ) { \r\n this.initStorage().then(() => { \r\n this.checkInitialAuthentication(); \r\n }); \r\n } \r\n \r\n async initStorage() { \r\n const storage = await this.storage.create(); \r\n this._storage = storage; \r\n } \r\n \r\n async checkInitialAuthentication() { \r\n const token = await this.getToken(); \r\n const isLoggedIn = token != null; \r\n this.setLoggedIn(isLoggedIn);\r\n \r\n if (isLoggedIn) { \r\n this.router.navigate(['home']); \r\n } else { \r\n // this.router.navigate([`${this.idEmpresa}/sign-in`]); \r\n } \r\n } \r\n \r\n login(data: any): Observable { \r\n return this.http.post(`${BASE_URL_API}cartera_logs/login`, data).pipe( \r\n tap(async response => { \r\n // console.log(response)\r\n await this._storage?.set('auth_token', response.token); \r\n await this._storage?.set('id_empresa', response.userDetails.empresa); \r\n // console.log(response.userDetails.empresa)\r\n\r\n \r\n this.isLoggedInSubject.next(true); \r\n }), \r\n catchError(this.handleError) \r\n ); \r\n } \r\n \r\n async logout(): Promise { \r\n const urlParts = window.location.href.split('/');\r\n this.idEmpresa = urlParts[3]; // Asume que el ID siempre está en esta posición\r\n // console.log(\"Intentando eliminar el token...\"); \r\n await this._storage?.remove('auth_token'); \r\n this.isLoggedInSubject.next(false); \r\n // console.log(\"Token eliminado.\");\r\n \r\n this.router.navigate([`${this.idEmpresa}/sign-in`]); \r\n localStorage.removeItem('auth_user');\r\n await this._storage?.remove('id_empresa'); \r\n // console.log('ID de la empresa recuperado para redirección:', idEmpresa);\r\n } \r\n \r\n async isAuthenticated() { \r\n const token = await this._storage?.get('auth_token'); \r\n return token != null; \r\n } \r\n \r\n setLoggedIn(value: boolean) { \r\n this.isLoggedInSubject.next(value); \r\n } \r\n \r\n async getToken() { \r\n return await this._storage?.get('auth_token'); \r\n } \r\n \r\n private handleError(error: HttpErrorResponse) { \r\n console.error(`Backend returned code ${error.status}, body was:`, error.error); \r\n let errorMessage = error.error; \r\n if (error.status === 401) { \r\n errorMessage = error.error || 'Credenciales inválidas. Por favor, verifica tu correo y contraseña.'; \r\n } \r\n return throwError(errorMessage); \r\n } \r\n}","import { Injectable } from '@angular/core';\r\nimport { HttpClient, HttpErrorResponse, HttpHeaders } from '@angular/common/http';\r\nimport { Observable, throwError } from 'rxjs';\r\nimport { catchError, tap } from 'rxjs/operators';\r\nimport { BASE_URL_API } from '../../environments/environment';\r\nimport { ApiService } from './conexionApi.service';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class CarteraConfigService {\r\n authUserItem = localStorage.getItem('auth_user');\r\n\r\n constructor(private http: HttpClient, private https: ApiService) { }\r\n\r\n private getHeaders(): HttpHeaders {\r\n let headers = new HttpHeaders().set('Content-Type', 'application/json');\r\n\r\n if (this.authUserItem) {\r\n const token = JSON.parse(this.authUserItem).token;\r\n if (token) {\r\n headers = headers.set('Authorization', `Bearer ${token}`);\r\n }\r\n }\r\n \r\n return headers;\r\n }\r\n\r\n private handleError(error: HttpErrorResponse) {\r\n console.error(`Backend returned code ${error.status}, body was: ${error.error}`);\r\n console.log(error);\r\n return throwError('Algo malo ocurrió; por favor, inténtalo de nuevo más tarde.');\r\n }\r\n\r\n // AQUI ESTA EL TRUCO RUMANO PARA EL TOKEN\r\n // FIRMADO: EL BÚHO POLACO\r\n obtenerConfiguracionCartera(id_empresa: any, miToken: any) {\r\n // Desestructuramos para extraer 'token' y guardar el resto en 'restOfAuthUser'\r\n const { token, ...restOfAuthUser } = miToken;\r\n\r\n // Creamos un nuevo objeto con 'value' en lugar de 'token', usando el mismo valor que tenía 'token'\r\n let modifiedAuthUserItem = { ...restOfAuthUser, value: token };\r\n \r\n //Convertir a texto el modifiedAuthUserItem\r\n modifiedAuthUserItem = JSON.stringify(modifiedAuthUserItem);\r\n\r\n\r\n // Enviamos el nuevo objeto como headers o como sea necesario en tu implementación\r\n return this.https.getRespuesta(`${BASE_URL_API}cartera_config/config/${id_empresa}`, modifiedAuthUserItem)\r\n .pipe(\r\n // tap(data => console.log('Configuración de cartera recuperada')),\r\n catchError(this.handleError)\r\n );\r\n }\r\n\r\n comprobarClienteExisteERP(idEmpresa:any, telefono: any, miToken: any) {\r\n // Desestructuramos para extraer 'token' y guardar el resto en 'restOfAuthUser'\r\n const { token, ...restOfAuthUser } = miToken;\r\n\r\n // Creamos un nuevo objeto con 'value' en lugar de 'token', usando el mismo valor que tenía 'token'\r\n let modifiedAuthUserItem = { ...restOfAuthUser, value: token };\r\n \r\n //Convertir a texto el modifiedAuthUserItem\r\n modifiedAuthUserItem = JSON.stringify(modifiedAuthUserItem);\r\n return this.https.getRespuesta(`${BASE_URL_API}clientes/buscadorWebApp/${idEmpresa}/${telefono}`,modifiedAuthUserItem)\r\n .pipe(\r\n // tap(data => console.log('Cliente recuperado')),\r\n catchError(this.handleError)\r\n );\r\n }\r\n\r\n canjearTelefonoReferidos(body:any): Observable {\r\n return this.http.post(`${BASE_URL_API}cartera_clientes/oportunidad/canjear-telefono`, body)\r\n .pipe(\r\n catchError(this.handleError)\r\n );\r\n }\r\n\r\n obtenerActivoCartera(id_empresa: any) {\r\n return this.http.get(`${BASE_URL_API}cartera_config/activo/${id_empresa}`)\r\n .pipe(\r\n // tap(data => console.log('Activo de cartera recuperado')),\r\n catchError(this.handleError)\r\n );\r\n }\r\n\r\n obtenerOportunidades(telefono: any, id:any) {\r\n return this.http.get(`${BASE_URL_API}cartera_config/oportunidad/${telefono}/${id}`)\r\n .pipe(\r\n // tap(data => console.log('Oportunidades recuperadas')),\r\n catchError(this.handleError)\r\n );\r\n }\r\n\r\n actualizarEstadoOportunidad(status:any, telefono_cliente: any, telefono_invitado:any) {\r\n const body = {\r\n status: status,\r\n telefono_cliente: telefono_cliente,\r\n telefono_invitado: telefono_invitado\r\n };\r\n\r\n return this.http.put(`${BASE_URL_API}cartera_clientes/oportunidad/puntos-espera`, body)\r\n .pipe(\r\n // tap(data => console.log('Estado de oportunidad actualizado')),\r\n catchError(this.handleError)\r\n );\r\n }\r\n\r\n sumarPuntos(body:any) {\r\n return this.http.post(`${BASE_URL_API}cartera_clientes/gestionar-puntos`, body)\r\n .pipe(\r\n // tap(data => console.log('Puntos sumados')),\r\n catchError(this.handleError)\r\n );\r\n }\r\n\r\n obtenerUsuariosPorEmpresa(id_empresa:any, miToken:any) {\r\n // Desestructuramos para extraer 'token' y guardar el resto en 'restOfAuthUser'\r\n const { token, ...restOfAuthUser } = miToken;\r\n\r\n // Creamos un nuevo objeto con 'value' en lugar de 'token', usando el mismo valor que tenía 'token'\r\n let modifiedAuthUserItem = { ...restOfAuthUser, value: token };\r\n \r\n //Convertir a texto el modifiedAuthUserItem\r\n modifiedAuthUserItem = JSON.stringify(modifiedAuthUserItem);\r\n return this.https.getRespuesta(`${BASE_URL_API}cartera_clientes/empresa/${id_empresa}`, modifiedAuthUserItem)\r\n\r\n }\r\n\r\n actualizarPuntosEspera(body:any) {\r\n return this.http.put(`${BASE_URL_API}cartera_clientes/oportunidad/puntos-espera`, body)\r\n .pipe(\r\n // tap(data => console.log('Puntos de espera actualizados')),\r\n catchError(this.handleError)\r\n );\r\n }\r\n\r\n}\r\n","import { HttpClient } from '@angular/common/http';\r\nimport { Injectable } from '@angular/core';\r\nimport { BehaviorSubject } from 'rxjs';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class ColorService {\r\n private colorSource = new BehaviorSubject('linear-gradient(135deg, #44d9e6 20%, #00a3b5 100%)'); // Gradiente por defecto\r\n currentColor = this.colorSource.asObservable();\r\n \r\n private primaryColorSource = new BehaviorSubject('#44d9e6'); // Color principal por defecto\r\n currentPrimaryColor = this.primaryColorSource.asObservable();\r\n\r\n constructor(private http: HttpClient) { }\r\n\r\n fetchColor(idProf: any) {\r\n this.http.get(`https://api-v2.wilapp.com/appointment_plugin/professional/${idProf}`)\r\n .subscribe((data: any) => {\r\n const color = data[0].color;\r\n // console.log('Color obtenido:', color);\r\n localStorage.setItem('globalColor', color); // Guardar el color en localStorage\r\n const adjustedColor = this.adjustColor(color, -90); // Ajustar la luminosidad del color\r\n const gradient = `linear-gradient(135deg, ${color} 20%, ${adjustedColor} 100%)`;\r\n this.colorSource.next(gradient);\r\n this.primaryColorSource.next(color); // Guardar el color principal\r\n });\r\n }\r\n\r\n adjustColor(color: string, amount: number): string {\r\n return '#' + color.replace(/^#/, '').replace(/../g, (color) =>\r\n ('0' + Math.min(255, Math.max(0, parseInt(color, 16) + amount)).toString(16)).substr(-2));\r\n }\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { Observable } from 'rxjs';\r\nimport { HttpClient, HttpHeaders } from '@angular/common/http';\r\nimport { Respuesta } from './respuesta';\r\nimport { Peticion } from './peticion';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class ApiService {\r\n // post(arg0: string, body: Peticion, t: string) {\r\n // throw new Error('Method not implemented.');\r\n // }\r\n private url: string = \"\";\r\n private ArrayG: Array;\r\n constructor(private http: HttpClient) { }\r\n\r\n postRespuesta(_body: any, url:string): Observable {\r\n \tthis.url=url;\r\n return this.http.post(this.url, _body);\r\n }\r\n\r\n post(url: string, _body?: any,token?: any): Observable {\r\n const httpOptions = {\r\n headers: new HttpHeaders({\r\n 'Content-Type': 'application/json',\r\n 'Authorization': `Bearer ${token}` // Incluir el token de autorización en el encabezado\r\n })\r\n };\r\n\r\n return this.http.post(url, _body, httpOptions);\r\n }\r\n getRespuesta(url: string, token: any,_body?: any): Observable {\r\n const httpOptions = {\r\n headers: new HttpHeaders({\r\n 'Content-Type': 'application/json',\r\n 'Authorization': `Bearer ${token}` // Incluir el token de autorización en el encabezado\r\n })\r\n };\r\n\r\n return this.http.get(url, httpOptions);\r\n }\r\n\r\n putRespuesta(url: string, token: any, _body: Peticion): Observable {\r\n let urlcom = url;\r\n return this.http.put(urlcom, _body, { headers: { Authorization: `Bearer ${token}` } });\r\n }\r\n\r\n deleteRespuesta(url: string, token:any): Observable {\r\n this.url = url;\r\n const httpOptions = {\r\n headers: new HttpHeaders({\r\n 'Content-Type': 'application/json',\r\n 'Authorization': `Bearer ${token}` // Incluir el token de autorización en el encabezado\r\n })\r\n };\r\n return this.http.delete(this.url,httpOptions);\r\n }\r\n\r\n\r\n //Recibe la suscripción push del service-worker cuando se suscribe, toma la key, el token y el contentEncoding y cifra el token de la suscripcion y la key para mandarla a la API.\r\n\r\n addSubscription(sub: PushSubscription, body: any, url: string){\r\n this.url=url;\r\n const key = sub.getKey('p256dh');\r\n const token = sub.getKey('auth');\r\n const contentEncoding = (PushManager.supportedContentEncodings || ['aesgcm'])[0];\r\n let jsonKey: string = \"\";\r\n let jsonToken: string = \"\";\r\n\r\n (new Uint8Array(key!)).forEach(function (byte: number) {\r\n jsonKey += String.fromCharCode(byte);\r\n });\r\n\r\n (new Uint8Array(token!)).forEach(function (byte: number) {\r\n jsonToken += String.fromCharCode(byte);\r\n });\r\n\r\n return this.http.post(this.url, JSON.stringify({\r\n endpoint: sub.endpoint,\r\n publicKey: jsonKey ? btoa(jsonKey): null,\r\n authToken: jsonToken ? btoa(jsonToken): null,\r\n contentEncoding,\r\n token: body\r\n })\r\n\r\n\r\n );\r\n }\r\n\r\n\r\n uploadImage(url: string, formData: FormData, token: string): Observable {\r\n const httpOptions = {\r\n headers: new HttpHeaders({\r\n 'Authorization': `Bearer ${token}`\r\n // No establecer 'Content-Type' aquí, ya que el navegador establecerá el 'Content-Type' correcto para FormData\r\n })\r\n };\r\n\r\n return this.http.post(url, formData, httpOptions);\r\n }\r\n\r\n actualizarEstadoWhatsApp(url: string, settings: any, token: string): Observable {\r\n const httpOptions = {\r\n headers: new HttpHeaders({\r\n 'Content-Type': 'application/json',\r\n 'Authorization': `Bearer ${token}`\r\n })\r\n };\r\n\r\n return this.http.post(url, settings, httpOptions);\r\n }\r\n\r\n saveConfig(url: string, settings: any, token: string): Observable {\r\n const httpOptions = {\r\n headers: new HttpHeaders({\r\n 'Content-Type': 'application/json',\r\n 'Authorization': `Bearer ${token}`\r\n })\r\n };\r\n\r\n return this.http.put(url, settings, httpOptions);\r\n }\r\n\r\n\r\n\r\n\r\n\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { HttpClient, HttpErrorResponse, HttpHeaders } from '@angular/common/http';\r\nimport { Observable, throwError } from 'rxjs';\r\nimport { catchError, tap } from 'rxjs/operators';\r\nimport { BASE_URL_API } from '../../environments/environment';\r\nimport { Producto } from '../model/product.model';\r\nimport { ApiService } from './conexionApi.service';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class ProductosService {\r\n\r\n constructor(private http: HttpClient, private https: ApiService) { }\r\n\r\n obtenerServicios(userId:any) {\r\n return this.https.getRespuesta(`${BASE_URL_API}professional_service/professional/${userId}`, { headers: this.getHeaders() })\r\n .pipe(\r\n catchError(this.handleError)\r\n );\r\n }\r\n\r\n obtenerDatosEmpresa(empresaId:any) {\r\n return this.https.getRespuesta(`${BASE_URL_API}empresas/${empresaId}`, { headers: this.getHeaders() })\r\n .pipe(\r\n catchError(this.handleError)\r\n );\r\n }\r\n\r\n \r\n private getHeaders(): HttpHeaders {\r\n let headers = new HttpHeaders().set('Content-Type', 'application/json');\r\n const authUserItem = localStorage.getItem('auth_user');\r\n \r\n if (authUserItem) {\r\n const token = JSON.parse(authUserItem).token;\r\n if (token) {\r\n headers = headers.set('Authorization', `Bearer ${token}`);\r\n }\r\n }\r\n \r\n return headers;\r\n }\r\n\r\n private handleError(error: HttpErrorResponse) {\r\n console.error(`Backend returned code ${error.status}, body was: ${error.error}`);\r\n console.log(error);\r\n return throwError('Algo malo ocurrió; por favor, inténtalo de nuevo más tarde.');\r\n }\r\n}\r\n\r\n","\r\nexport const environment = {\r\n production: false,\r\n googleClientId:'237056645631-oloq16epaaj3m28b1a8k65vlcukl1g4a.apps.googleusercontent.com',\r\n googleClientSecret:'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',\r\n // stripe: {\r\n // publishableKey: 'pk_test_51NQAAEGNXSAYunDVGZDTXze8ZkL4lU46BGnFED7vyBvYf1jCMTvZ2pty9cNFvFgayYg9wkq7zkGGHK8A2GNQsRV200vD8Oc0cc',\r\n // secretKey: 'sk_test_51NQAAEGNXSAYunDVYzneLugDAQIs1hyM1v9C69HRqEBHqtlpC2srFqKbKJyemnORMOxBOYEZNdm4WoXTRTPae9uq00MesICk76',\r\n // },\r\n};\r\n// export const BASE_URL_API = 'https://api-layaya.acciosoft.com';\r\nexport const BASE_URL_API = 'https://api-v2.wilapp.com/';\r\n// export const BASE_URL_API = 'http://localhost:3001/';\r\n// export const id_empresa = '1545';\r\n\r\n"," \r\nimport { enableProdMode } from '@angular/core';\r\nimport { platformBrowserDynamic } from '@angular/platform-browser-dynamic';\r\n\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.log(err));\r\n","var map = {\n\t\"./ion-accordion_2.entry.js\": [\n\t\t83477,\n\t\t\"common\",\n\t\t\"node_modules_ionic_core_dist_esm_ion-accordion_2_entry_js\"\n\t],\n\t\"./ion-action-sheet.entry.js\": [\n\t\t67196,\n\t\t\"common\",\n\t\t\"node_modules_ionic_core_dist_esm_ion-action-sheet_entry_js\"\n\t],\n\t\"./ion-alert.entry.js\": [\n\t\t38081,\n\t\t\"common\",\n\t\t\"node_modules_ionic_core_dist_esm_ion-alert_entry_js\"\n\t],\n\t\"./ion-app_8.entry.js\": [\n\t\t75017,\n\t\t\"common\",\n\t\t\"node_modules_ionic_core_dist_esm_ion-app_8_entry_js\"\n\t],\n\t\"./ion-avatar_3.entry.js\": [\n\t\t69721,\n\t\t\"node_modules_ionic_core_dist_esm_ion-avatar_3_entry_js\"\n\t],\n\t\"./ion-back-button.entry.js\": [\n\t\t99216,\n\t\t\"common\",\n\t\t\"node_modules_ionic_core_dist_esm_ion-back-button_entry_js\"\n\t],\n\t\"./ion-backdrop.entry.js\": [\n\t\t96612,\n\t\t\"node_modules_ionic_core_dist_esm_ion-backdrop_entry_js\"\n\t],\n\t\"./ion-breadcrumb_2.entry.js\": [\n\t\t42694,\n\t\t\"common\",\n\t\t\"node_modules_ionic_core_dist_esm_ion-breadcrumb_2_entry_js\"\n\t],\n\t\"./ion-button_2.entry.js\": [\n\t\t22938,\n\t\t\"node_modules_ionic_core_dist_esm_ion-button_2_entry_js\"\n\t],\n\t\"./ion-card_5.entry.js\": [\n\t\t51379,\n\t\t\"node_modules_ionic_core_dist_esm_ion-card_5_entry_js\"\n\t],\n\t\"./ion-checkbox.entry.js\": [\n\t\t97552,\n\t\t\"node_modules_ionic_core_dist_esm_ion-checkbox_entry_js\"\n\t],\n\t\"./ion-chip.entry.js\": [\n\t\t37218,\n\t\t\"node_modules_ionic_core_dist_esm_ion-chip_entry_js\"\n\t],\n\t\"./ion-col_3.entry.js\": [\n\t\t97479,\n\t\t\"node_modules_ionic_core_dist_esm_ion-col_3_entry_js\"\n\t],\n\t\"./ion-datetime-button.entry.js\": [\n\t\t70171,\n\t\t\"default-node_modules_ionic_core_dist_esm_data-caf38df0_js-node_modules_ionic_core_dist_esm_th-d3ab8e\",\n\t\t\"node_modules_ionic_core_dist_esm_ion-datetime-button_entry_js\"\n\t],\n\t\"./ion-datetime_3.entry.js\": [\n\t\t64134,\n\t\t\"default-node_modules_ionic_core_dist_esm_data-caf38df0_js-node_modules_ionic_core_dist_esm_th-d3ab8e\",\n\t\t\"common\",\n\t\t\"node_modules_ionic_core_dist_esm_ion-datetime_3_entry_js\"\n\t],\n\t\"./ion-fab_3.entry.js\": [\n\t\t71439,\n\t\t\"common\",\n\t\t\"node_modules_ionic_core_dist_esm_ion-fab_3_entry_js\"\n\t],\n\t\"./ion-img.entry.js\": [\n\t\t76397,\n\t\t\"node_modules_ionic_core_dist_esm_ion-img_entry_js\"\n\t],\n\t\"./ion-infinite-scroll_2.entry.js\": [\n\t\t33296,\n\t\t\"common\",\n\t\t\"node_modules_ionic_core_dist_esm_ion-infinite-scroll_2_entry_js\"\n\t],\n\t\"./ion-input.entry.js\": [\n\t\t12413,\n\t\t\"common\",\n\t\t\"node_modules_ionic_core_dist_esm_ion-input_entry_js\"\n\t],\n\t\"./ion-item-option_3.entry.js\": [\n\t\t39411,\n\t\t\"common\",\n\t\t\"node_modules_ionic_core_dist_esm_ion-item-option_3_entry_js\"\n\t],\n\t\"./ion-item_8.entry.js\": [\n\t\t99133,\n\t\t\"common\",\n\t\t\"node_modules_ionic_core_dist_esm_ion-item_8_entry_js\"\n\t],\n\t\"./ion-loading.entry.js\": [\n\t\t79003,\n\t\t\"node_modules_ionic_core_dist_esm_ion-loading_entry_js\"\n\t],\n\t\"./ion-menu_3.entry.js\": [\n\t\t96065,\n\t\t\"common\",\n\t\t\"node_modules_ionic_core_dist_esm_ion-menu_3_entry_js\"\n\t],\n\t\"./ion-modal.entry.js\": [\n\t\t86991,\n\t\t\"common\",\n\t\t\"node_modules_ionic_core_dist_esm_ion-modal_entry_js\"\n\t],\n\t\"./ion-nav_2.entry.js\": [\n\t\t82947,\n\t\t\"common\",\n\t\t\"node_modules_ionic_core_dist_esm_ion-nav_2_entry_js\"\n\t],\n\t\"./ion-picker-column-internal.entry.js\": [\n\t\t25919,\n\t\t\"common\",\n\t\t\"node_modules_ionic_core_dist_esm_ion-picker-column-internal_entry_js\"\n\t],\n\t\"./ion-picker-internal.entry.js\": [\n\t\t93109,\n\t\t\"node_modules_ionic_core_dist_esm_ion-picker-internal_entry_js\"\n\t],\n\t\"./ion-popover.entry.js\": [\n\t\t99459,\n\t\t\"common\",\n\t\t\"node_modules_ionic_core_dist_esm_ion-popover_entry_js\"\n\t],\n\t\"./ion-progress-bar.entry.js\": [\n\t\t20301,\n\t\t\"node_modules_ionic_core_dist_esm_ion-progress-bar_entry_js\"\n\t],\n\t\"./ion-radio_2.entry.js\": [\n\t\t43799,\n\t\t\"node_modules_ionic_core_dist_esm_ion-radio_2_entry_js\"\n\t],\n\t\"./ion-range.entry.js\": [\n\t\t12140,\n\t\t\"common\",\n\t\t\"node_modules_ionic_core_dist_esm_ion-range_entry_js\"\n\t],\n\t\"./ion-refresher_2.entry.js\": [\n\t\t86197,\n\t\t\"common\",\n\t\t\"node_modules_ionic_core_dist_esm_ion-refresher_2_entry_js\"\n\t],\n\t\"./ion-reorder_2.entry.js\": [\n\t\t41975,\n\t\t\"common\",\n\t\t\"node_modules_ionic_core_dist_esm_ion-reorder_2_entry_js\"\n\t],\n\t\"./ion-ripple-effect.entry.js\": [\n\t\t58387,\n\t\t\"node_modules_ionic_core_dist_esm_ion-ripple-effect_entry_js\"\n\t],\n\t\"./ion-route_4.entry.js\": [\n\t\t98659,\n\t\t\"node_modules_ionic_core_dist_esm_ion-route_4_entry_js\"\n\t],\n\t\"./ion-searchbar.entry.js\": [\n\t\t26404,\n\t\t\"common\",\n\t\t\"node_modules_ionic_core_dist_esm_ion-searchbar_entry_js\"\n\t],\n\t\"./ion-segment_2.entry.js\": [\n\t\t85253,\n\t\t\"common\",\n\t\t\"node_modules_ionic_core_dist_esm_ion-segment_2_entry_js\"\n\t],\n\t\"./ion-select_3.entry.js\": [\n\t\t92619,\n\t\t\"node_modules_ionic_core_dist_esm_ion-select_3_entry_js\"\n\t],\n\t\"./ion-slide_2.entry.js\": [\n\t\t82871,\n\t\t\"node_modules_ionic_core_dist_esm_ion-slide_2_entry_js\"\n\t],\n\t\"./ion-spinner.entry.js\": [\n\t\t17668,\n\t\t\"common\",\n\t\t\"node_modules_ionic_core_dist_esm_ion-spinner_entry_js\"\n\t],\n\t\"./ion-split-pane.entry.js\": [\n\t\t55342,\n\t\t\"node_modules_ionic_core_dist_esm_ion-split-pane_entry_js\"\n\t],\n\t\"./ion-tab-bar_2.entry.js\": [\n\t\t174,\n\t\t\"common\",\n\t\t\"node_modules_ionic_core_dist_esm_ion-tab-bar_2_entry_js\"\n\t],\n\t\"./ion-tab_2.entry.js\": [\n\t\t86185,\n\t\t\"common\",\n\t\t\"node_modules_ionic_core_dist_esm_ion-tab_2_entry_js\"\n\t],\n\t\"./ion-text.entry.js\": [\n\t\t97337,\n\t\t\"node_modules_ionic_core_dist_esm_ion-text_entry_js\"\n\t],\n\t\"./ion-textarea.entry.js\": [\n\t\t4833,\n\t\t\"node_modules_ionic_core_dist_esm_ion-textarea_entry_js\"\n\t],\n\t\"./ion-toast.entry.js\": [\n\t\t9468,\n\t\t\"node_modules_ionic_core_dist_esm_ion-toast_entry_js\"\n\t],\n\t\"./ion-toggle.entry.js\": [\n\t\t25705,\n\t\t\"common\",\n\t\t\"node_modules_ionic_core_dist_esm_ion-toggle_entry_js\"\n\t],\n\t\"./ion-virtual-scroll.entry.js\": [\n\t\t87463,\n\t\t\"node_modules_ionic_core_dist_esm_ion-virtual-scroll_entry_js\"\n\t]\n};\nfunction webpackAsyncContext(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\treturn Promise.resolve().then(() => {\n\t\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\t\te.code = 'MODULE_NOT_FOUND';\n\t\t\tthrow e;\n\t\t});\n\t}\n\n\tvar ids = map[req], id = ids[0];\n\treturn Promise.all(ids.slice(1).map(__webpack_require__.e)).then(() => {\n\t\treturn __webpack_require__(id);\n\t});\n}\nwebpackAsyncContext.keys = () => (Object.keys(map));\nwebpackAsyncContext.id = 50863;\nmodule.exports = webpackAsyncContext;","export default \" \\r\\n\\r\\n \\r\\n\\r\\n\";"],"names":[],"sourceRoot":"webpack:///"}