"use strict";var __defProp=Object.defineProperty,__name=(target,value)=>__defProp(target,"name",{value,configurable:!0});exports.id=325,exports.ids=[325],exports.modules={77325:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{CustomizedPageModule:()=>CustomizedPageModule,routes:()=>routes});var common=__webpack_require__(89318),router=__webpack_require__(14195),shared_module=__webpack_require__(56319),abstract_component=__webpack_require__(85795),cjs=__webpack_require__(25095),operators=__webpack_require__(51138),page_service=__webpack_require__(43169),log_service=__webpack_require__(28667),core=__webpack_require__(40305);class CustomizedPageComponent extends abstract_component.k{constructor(activatedRoute,router2,pageService,logService){super(),this.activatedRoute=activatedRoute,this.router=router2,this.pageService=pageService,this.logService=logService,this.body$=new cjs.BehaviorSubject(""),this.unsub(this.activatedRoute.params.pipe((0,operators.wt)(params=>params.link?this.pageService.getPage$(params.link):(0,cjs.of)(null))).subscribe(page=>{page?this.body$.next(page.conteudo):this.router.navigate(["/"]).catch(error=>this.logService.error("Erro ao buscar pagina",error))}))}}__name(CustomizedPageComponent,"CustomizedPageComponent"),CustomizedPageComponent.\u0275fac=__name(function(t){return new(t||CustomizedPageComponent)(core.Y36(router.gz),core.Y36(router.F0),core.Y36(page_service.P),core.Y36(log_service.$V))},"CustomizedPageComponent_Factory"),CustomizedPageComponent.\u0275cmp=core.Xpm({type:CustomizedPageComponent,selectors:[["app-customized-page"]],features:[core.qOj],decls:2,vars:3,consts:[[3,"innerHTML"]],template:__name(function(rf,ctx){1&rf&&(core._UZ(0,"div",0),core.ALo(1,"async")),2&rf&&core.Q6J("innerHTML",core.lcZ(1,1,ctx.body$),core.oJD)},"CustomizedPageComponent_Template"),dependencies:[common.Ov],encapsulation:2,changeDetection:0});const routes=[{path:":link",component:CustomizedPageComponent,pathMatch:"full"}];class CustomizedPageModule{}__name(CustomizedPageModule,"CustomizedPageModule"),CustomizedPageModule.\u0275fac=__name(function(t){return new(t||CustomizedPageModule)},"CustomizedPageModule_Factory"),CustomizedPageModule.\u0275mod=core.oAB({type:CustomizedPageModule}),CustomizedPageModule.\u0275inj=core.cJS({imports:[common.ez,router.Bz.forChild(routes),shared_module.m]})}};