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AAC;oBACtB,MAAM;iBACP;gBACD,KAAK,YAAY,CAAC,CAAC;oBACjB,IAAI,CAAC,WAAW,GAAG,GAAG,CAAC;oBACvB,MAAM;iBACP;aAEF;QACH,CAAC,CAAC,CAAC;IACL,CAAC;;0EAvGU,aAAa;2GAAb,aAAa;QCjB1B,iHAsBU;QAKV,kHAwBU;QAKV,yEAA4B;QAExB,yEAAsB;QAKlB,0EAA0B;QACtB,yGAMM;QACV,4DAAO;QAGX,4DAAM;QAGN,yEAAuB;QAEnB,0EAAiD;QAErD,4DAAM;QACV,4DAAM;;QAlF2B,+HAA6B;QA2BzB,0DAAoC;QAApC,0IAAoC;QAqCvC,0DAAY;QAAZ,kFAAY;QAe3B,0DAAyB;QAAzB,sFAAyB;;;;;;;;;;;;;;;;;;;;;;AChFG;AACK;AACM;AACT;AACM;;AAahD,MAAM,UAAU;;oEAAV,UAAU;uGAAV,UAAU;2GAPV;YACL,yDAAY;YACZ,mEAAiB;YACjB,sDAAW;YACX,iEAAS;SACZ;mIAEQ,UAAU,mBATf,0DAAa,aAGb,yDAAY;QACZ,mEAAiB;QACjB,sDAAW;QACX,iEAAS","sources":["./src/app/Pages/component/HomeFolder/home/home-routing.module.ts","./src/app/Pages/component/HomeFolder/home/home.component.ts","./src/app/Pages/component/HomeFolder/home/home.component.html","./src/app/Pages/component/HomeFolder/home/home.module.ts"],"sourcesContent":["import { NgModule } from '@angular/core';\r\nimport { RouterModule, Routes } from '@angular/router';\r\nimport { HomeComponent } from './home.component';\r\n\r\n\r\nconst routes: Routes = [\r\n { path: '', component: HomeComponent }\r\n // { path: 'edit/new', component: HomeDetailComponent },\r\n // { path: 'edit/:id', component: HomeDetailComponent }\r\n\r\n];\r\n\r\n@NgModule({\r\n imports: [RouterModule.forChild(routes)],\r\n exports: [RouterModule],\r\n})\r\n\r\n\r\nexport class HomeRoutingModule {\r\n}\r\n","import { BannerSlider } from './../../../../Shared/model/banner.model';\r\nimport { Empresa } from './../../../../Shared/model/empresa.model';\r\nimport { Pagina } from 'src/app/Shared/model/pagina.model';\r\nimport { SiteService } from './../../../../site.service';\r\nimport { SideBar } from 'src/app/Shared/model/side-bar.model';\r\nimport { Main } from './../../../../Shared/model/main.model';\r\nimport { BaseSite } from 'src/app/Shared/model/base-site.model';\r\nimport { Component, OnInit } from '@angular/core';\r\n\r\nimport { Title } from '@angular/platform-browser';\r\nimport { NgbCarouselConfig } from '@ng-bootstrap/ng-bootstrap';\r\nimport { environment } from 'src/environments/environment.prod';\r\nimport { Dominio } from 'src/app/Shared/model/dominio.model';\r\n\r\n@Component({\r\n selector: 'app-home',\r\n templateUrl: './home.component.html',\r\n styleUrls: ['./home.component.css'],\r\n})\r\nexport class HomeComponent implements OnInit {\r\n\r\n // HOME\r\n\r\n itemsEmpresa: Empresa;\r\n empresaNome;\r\n itemsBanner: BannerSlider[];\r\n itemsApresentacao: BaseSite;\r\n itemsPagina: Pagina[];\r\n itemsMain: Main[];\r\n\r\n // ASIDE\r\n\r\n itemsAside: SideBar[];\r\n itemsAsideBanner: SideBar[];\r\n itemsAsideIncorporado: SideBar[];\r\n status = true;\r\n\r\n showNavigationArrows = false;\r\n showNavigationIndicators = false;\r\n\r\n constructor(config: NgbCarouselConfig, private titleService: Title, public siteService: SiteService) {\r\n config.showNavigationArrows = true;\r\n config.showNavigationIndicators = true;\r\n }\r\n\r\n ngOnInit(): void {\r\n // this.siteService.getDominio().subscribe((res: Dominio) => {\r\n // environment.tenet = res.codUnicoSchema;\r\n // environment.empresaId = res.idUnidade;\r\n\r\n this.buscarEmpresa();\r\n // });\r\n }\r\n\r\n buscarEmpresa() {\r\n if (window.location.hostname === 'localhost') {\r\n\r\n this.metodosHome();\r\n } else {\r\n if (window.location.hostname === 'site.conceitocloud.com.br') {\r\n\r\n this.metodosHome();\r\n } else {\r\n\r\n // this.siteService.getDominio().subscribe((res: Dominio) => {\r\n\r\n // environment.tenet = res.codUnicoSchema;\r\n // environment.empresaId = res.idUnidade;\r\n\r\n this.siteService.getEmpresa(environment.empresaId).subscribe((res2: Empresa) => {\r\n // environment.tenet = res2.codUnicoSchema;\r\n\r\n this.empresaNome = res2.nome;\r\n\r\n this.metodosHome();\r\n this.titleService.setTitle(res2.apelidoNomeFantasia);\r\n\r\n });\r\n // });\r\n }\r\n }\r\n }\r\n\r\n\r\n metodosHome() {\r\n this.titleService.setTitle('Home');\r\n this.buscarSite('basesite-web');\r\n this.buscarSite('banner-web');\r\n // this.buscarSite('pagina-web');\r\n this.buscarSite('main-web');\r\n this.buscarSite('sidebar-web');\r\n\r\n this.itemsApresentacao = this.siteService.baseSite;\r\n }\r\n\r\n buscarSite(parametro) {\r\n this.siteService.getSite(parametro).subscribe((res) => {\r\n switch (parametro) {\r\n case 'basesite-web': {\r\n this.itemsApresentacao = res;\r\n console.log(res, 'TEXT')\r\n break;\r\n }\r\n case 'pagina-web': {\r\n this.itemsPagina = res;\r\n break;\r\n }\r\n case 'main-web': {\r\n this.itemsMain = res;\r\n break;\r\n }\r\n case 'sidebar-web': {\r\n this.itemsAside = res;\r\n break;\r\n }\r\n case 'banner-web': {\r\n this.itemsBanner = res;\r\n break;\r\n }\r\n\r\n }\r\n });\r\n }\r\n\r\n\r\n}\r\n","\r\n\r\n
0\">\r\n\r\n \r\n \r\n\r\n\r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n\r\n
\r\n

{{item.titulo}}

\r\n

{{item.descricao}}

\r\n
\r\n\r\n
\r\n
\r\n\r\n
\r\n\r\n\r\n\r\n\r\n
\r\n\r\n
\r\n\r\n
\r\n \"\"\r\n
\r\n\r\n
\r\n\r\n

{{itemsApresentacao.tituloSobre}}

\r\n\r\n

{{itemsApresentacao.textoSobre}}

\r\n\r\n \r\n\r\n
\r\n\r\n
\r\n\r\n
\r\n\r\n\r\n\r\n\r\n
\r\n\r\n
\r\n\r\n \r\n\r\n
\r\n
\r\n \r\n\r\n \r\n\r\n \r\n
\r\n
\r\n\r\n\r\n
\r\n\r\n\r\n
\r\n\r\n \r\n\r\n
\r\n
","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { PagesModule } from '../../../pages.module';\r\nimport { HomeRoutingModule } from './home-routing.module';\r\nimport { HomeComponent } from './home.component';\r\nimport { NgbModule } from '@ng-bootstrap/ng-bootstrap';\r\n\r\n@NgModule({\r\n declarations: [\r\n HomeComponent\r\n ],\r\n imports: [\r\n CommonModule,\r\n HomeRoutingModule,\r\n PagesModule,\r\n NgbModule,\r\n ]\r\n})\r\nexport class HomeModule { }\r\n"],"names":[],"sourceRoot":"webpack:///"}