1import{a as F,b as D}from"./chunk-FJW46HBG.js";import{L as k,g as T,h as L,va as q}from"./chunk-IO2FMTG5.js";import{C,D as g,Hb as M,Jb as _,Mb as v,Qa as I,R as f,X as n,Y as w,Z as s,fa as x,g as y,ga as b,la as u,ma as a,na as m,oa as c,rb as S,ua as j,va as P,wa as h,y as r}from"./chunk-UXJOQQTQ.js";import{f as z,h as d}from"./chunk-DIQPMGB2.js";var N=z(L());var A=()=>({path:"/assets/lottie/searching.json",loop:!0});function O(e,t){if(e&1){let p=j();a(0,"div",0)(1,"button",2),P("click",function(){C(p);let o=h();return g(o.redirectTo())}),c(2,"i",3),m(),a(3,"div",4),c(4,"app-post-item",5),m()()}if(e&2){let p=h();f(4),u("post",p.post)("detectPostChanges",!0)}}function $(e,t){e&1&&(a(0,"div",1)(1,"div",6),c(2,"ng-lottie",7),m()()),e&2&&(f(2),u("options",I(1,A)))}var V=(()=>{let t=class t{constructor(i,o,l){this.route=i,this.router=o,this.requestService=l,this.params={}}ngOnInit(){return d(this,null,function*(){let i=this.route;for(;i!=null&&!("id"in i.snapshot.params||(i=i.parent,!i)););i&&(this.id=i.snapshot.params.id,this.params=this.route.snapshot.queryParams,this.pre=this.params.pre),this.id?yield this.loadPost():(this.router.navigate(["/home"]),N.default.fire("\xA1Error!","Lo sentimos, esta publicaci\xF3n ya no existe.","error"))})}loadPost(){return d(this,null,function*(){try{let i=yield y(this.requestService.get(`community/posts/optimized-v2/${this.id}/`));this.post=i}catch{}})}redirectTo(){this.router.navigate([this.pre?this.pre:"/home"],{queryParams:this.params})}};t.\u0275fac=function(o){return new(o||t)(n(M),n(_),n(T))},t.\u0275cmp=w({type:t,selectors:[["app-post-details"]],standalone:!1,decls:2,vars:1,consts:[[1,"row","justify-content-center","position-relative"],[1,"row","justify-content-center"],[1,"btn","btn-icon-only","btn-lg","btn-white","mb-0","position-absolute","start-3","top-5","z-index-3",3,"click"],["aria-hidden","true",1,"fa","fa-chevron-left"],[1,"col-6","my-3"],[3,"post","detectPostChanges"],[1,"col-3","col-md-2"],[1,"w-40",3,"options"]],template:function(o,l){o&1&&x(0,O,5,2,"div",0)(1,$,3,2,"div",1),o&2&&b(l.post?0:1)},dependencies:[k,F],encapsulation:2});let e=t;return e})();var B=[{path:"",component:V}],R=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=s({type:t}),t.\u0275inj=r({imports:[v.forChild(B),v]});let e=t;return e})();var st=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=s({type:t}),t.\u0275inj=r({imports:[S,R,q,D]});let e=t;return e})();export{st as PostDetailsModule};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.