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AMC,kEAAqEC,KAAKC,GAAKA,EAAE2B,yBACrGvB,YAAa,CAACC,MAGhB,CACEX,KAAM,iCACNG,aAAc,IAAMC,4EAA2EC,KAAKC,GAAKA,EAAE4B,4BAC3GxB,YAAa,CAACC,MAEhB,CACEX,KAAM,gBACNG,aAAc,IAAMC,gEAA2DC,KAAKC,GAAKA,EAAE6B,sBAE7F,CACEnC,KAAM,QACNG,aAAc,IAAMC,0GAAyCC,KAAKC,GAAKA,EAAE0B,cAG3E,CACEhC,KAAM,yBACNG,aAAc,IAAMC,sIAA+DC,KAAKC,GAAKA,EAAE8B,0BAUhG,IAAMC,EAAb,MAAM,sDAAOA,4DAHF,CAACC,cAAsBvC,IACtBuC,QAECD,GAAb,oCGzGO,IAAME,EAAb,MAAM,sDAAOA,4DARF,CACPC,KACAH,EACAI,IACAC,IACAC,QAGSJ,GAAb,EAAaA","names":["i0","MainComponent","constructor","authService","this","ngOnInit","environment","fengIntegration","hideHeaderFooter","getCustomer","selectors","routes","path","component","children","loadChildren","Promise","then","m","ConsultaMapleBearModule","PaymentMethodModule","MyProfileModule","canActivate","LoginGuard","MyOrdersModule","MySellsModule","t","FacialRekognitionModule","router","l","navigate","EnableFacialRecognitionGuard","factory","ListUsersModule","ChangePasswordModule","FengGuard","TermsOfUseModule","TermsOfUsePorscheModule","PrivacyPolicyModule","AboutUsModule","SolutionsModule","EnableSolutionsLinkGuard","HalfPricePolicyModule","MapleBearModule","EventModule","ChangeOrderTicketModule","CustomerSelfTransferModule","CamaroteStageModule","EventMultiStepModule","MainRoutingModule","RouterModule","MainModule","CommonModule","HeaderModule","CookieMessageModule","FooterModule"],"sourceRoot":"webpack:///","sources":["./src/app/views/layouts/main/main.component.html","./src/app/views/layouts/main/main.component.ts","./src/app/views/layouts/main/main-routing.module.ts","./src/app/guard/enable-facial-recognition.guard.ts","./src/app/guard/enable-solutions-link.guard.ts","./src/app/views/layouts/main/main.module.ts"],"sourcesContent":["
\n\n \n\n
\n \n
\n \n \n\n \n
\n","import { Component, OnInit } from '@angular/core';\nimport { environment } from '../../../../environments/environment';\nimport { AuthService } from '../../../services/auth.service'\n\n@Component({\n selector: 'app-main',\n templateUrl: './main.component.html',\n styleUrls: ['./main.component.scss']\n})\nexport class MainComponent implements OnInit {\n\n public link: string = '';\n public showFilter: boolean = false;\n public fengIntegration: boolean = false;\n public hideHeaderFooter: boolean = false;\n\n constructor(private authService: AuthService) { }\n\n ngOnInit(): void {\n //this.addChat()\n if (environment.fengIntegration == true) {\n this.fengIntegration = true\n }\n\n if (environment.hideHeaderFooter == true) {\n this.hideHeaderFooter = true\n }\n\n if (this.authService.getCustomer() != null && this.authService.getCustomer()['fengIntegration'] !=null && this.authService.getCustomer()['fengIntegration'] == true) {\n this.fengIntegration = true;\n }\n\n }\n\n // addChat() {\n // let dynamicScript = document.createElement(\"script\");\n // dynamicScript.setAttribute('id', 'ze-snippet')\n // dynamicScript.setAttribute('src', \"https://static.zdassets.com/ekr/snippet.js?key=b090e806-d665-43d6-b28c-94c793e1bc1c\")\n // document.head.appendChild(dynamicScript);\n // }\n\n\n}\n","import { NgModule } from '@angular/core';\nimport { Routes, RouterModule } from '@angular/router';\nimport { MainComponent } from './main.component';\nimport { LoginGuard } from '../../../guard/loginguard.guard';\nimport { FengGuard } from '../../../guard/fengguard.guard';\nimport { EnableFacialRecognitionGuard } from 'src/app/guard/enable-facial-recognition.guard';\nimport { EnableSolutionsLinkGuard } from 'src/app/guard/enable-solutions-link.guard';\n\nconst routes: Routes = [\n {\n path: '',\n component: MainComponent,\n children: [\n {\n path: 'consulta-maple-bear',\n loadChildren: () => import('../../pages/consulta-maple-bear/consulta-maple-bear.module').then(m => m.ConsultaMapleBearModule),\n },\n {\n path: 'payment-method',\n loadChildren: () => import('../../pages/payment-method/payment-method.module').then(m => m.PaymentMethodModule),\n },\n {\n path: 'payment-method/:eventId',\n loadChildren: () => import('../../pages/payment-method/payment-method.module').then(m => m.PaymentMethodModule),\n },\n {\n path: 'my-profile',\n loadChildren: () => import('../../pages/my-account/my-profile/my-profile.module').then(m => m.MyProfileModule),\n canActivate: [LoginGuard]\n },\n {\n path: 'my-orders',\n loadChildren: () => import('../../pages/my-account/my-orders/my-orders.module').then(m => m.MyOrdersModule),\n },\n {\n path: 'my-sells',\n loadChildren: () => import('../../pages/my-account/my-sells/my-sells.module').then(m => m.MySellsModule),\n canActivate: [LoginGuard]\n },\n {\n path: 'reconhecimento-facial',\n loadChildren: () => import('../../pages/my-account/facial-rekognition/facial-rekognition.module').then(m => m.FacialRekognitionModule),\n canActivate: [LoginGuard, EnableFacialRecognitionGuard]\n },\n {\n path: 'list-users',\n loadChildren: () => import('../../pages/my-account/list-users/list-users.module').then(m => m.ListUsersModule),\n canActivate: [LoginGuard]\n },\n {\n path: 'recovery/:email/:token',\n loadChildren: () => import('../../pages/change-password/change-password.module').then(m => m.ChangePasswordModule),\n canActivate: [FengGuard]\n },\n {\n path: 'terms-of-use',\n loadChildren: () => import('../../pages/terms-of-use/terms-of-use.module').then(m => m.TermsOfUseModule),\n canActivate: [FengGuard]\n },\n {\n path: 'terms-of-use-porsche',\n loadChildren: () => import('../../pages/terms-of-use-porsche/terms-of-use-porsche.module').then(m => m.TermsOfUsePorscheModule),\n canActivate: [FengGuard]\n },\n {\n path: 'privacy-policy',\n loadChildren: () => import('../../pages/privacy-policy/privacy-policy.module').then(m => m.PrivacyPolicyModule),\n canActivate: [FengGuard]\n },\n {\n path: 'about-us',\n loadChildren: () => import('../../pages/about-us/about-us.module').then(m => m.AboutUsModule),\n canActivate: [FengGuard]\n },\n {\n path: 'solucoes',\n loadChildren: () => import('../../pages/solutions/solutions.module').then(m => m.SolutionsModule),\n canActivate: [FengGuard, EnableSolutionsLinkGuard]\n },\n {\n path: 'half-price-policy',\n loadChildren: () => import('../../pages/half-price-policy/half-price-policy.module').then(m => m.HalfPricePolicyModule),\n canActivate: [FengGuard]\n },\n {\n path: 'maplebear',\n loadChildren: () => import('../../pages/maple-bear/maple-bear.module').then(m => m.MapleBearModule),\n },\n\n {\n path: 'event/:id',\n loadChildren: () => import('../../pages/event/event.module').then(m => m.EventModule),\n },\n\n {\n path: 'trocar-setor/:orderId',\n loadChildren: () => import('../../pages/change-order-ticket/change-order-ticket.module').then(m => m.ChangeOrderTicketModule),\n canActivate: [LoginGuard]\n },\n\n {\n path: 'transfer-ticket/:orderTicketId',\n loadChildren: () => import('../../pages/customer-self-transfer/customer-self-transfer.module').then(m => m.CustomerSelfTransferModule),\n canActivate: [LoginGuard]\n },\n {\n path: 'camarotestage',\n loadChildren: () => import('../../pages/camarote-stage/camarote-stage.module').then(m => m.CamaroteStageModule), \n },\n {\n path: ':slug',\n loadChildren: () => import('../../pages/event/event.module').then(m => m.EventModule), \n },\n \n {\n path: 'event-multi-step/:slug',\n loadChildren: () => import('../../pages/event-multi-step/event-multi-step.module').then(m => m.EventMultiStepModule), \n },\n ]\n }\n];\n\n@NgModule({\n imports: [RouterModule.forChild(routes)],\n exports: [RouterModule]\n})\nexport class MainRoutingModule { }\n","import { Injectable } from '@angular/core';\nimport { CanActivate, Router } from '@angular/router';\nimport { environment } from 'src/environments/environment';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class EnableFacialRecognitionGuard implements CanActivate {\n constructor(private router: Router) {}\n\n async canActivate() {\n if (environment.enableFacialRecognition === false) {\n this.router.navigate(['/']);\n }\n return true;\n }\n}\n","import { Injectable } from '@angular/core';\nimport { CanActivate, Router } from '@angular/router';\nimport { environment } from 'src/environments/environment';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class EnableSolutionsLinkGuard implements CanActivate {\n constructor(private router: Router) {}\n\n async canActivate() {\n if (environment.enableSolutionsLink === false) {\n this.router.navigate(['/']);\n }\n return true;\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport { MainComponent } from './main.component';\nimport { MainRoutingModule } from './main-routing.module';\nimport { FooterModule } from '../../components/footer/footer.module';\nimport { HeaderModule } from '../../components/header/header.module';\nimport { CookieMessageModule } from '../../components/cookie-message/cookie-message.module';\n\n@NgModule({\n declarations: [\n MainComponent\n ],\n imports: [\n CommonModule,\n MainRoutingModule,\n HeaderModule,\n CookieMessageModule,\n FooterModule\n ]\n})\nexport class MainModule { }\n\n"]}