"use strict";(self.webpackChunksound_and_light=self.webpackChunksound_and_light||[]).push([[767],{8767:(y,l,s)=>{s.r(l),s.d(l,{SingleEventComponent:()=>D});var _=s(6814),g=s(7394),d=s(4534),v=s(4846),c=s(8158),e=s(5879),h=s(3282),p=s(1934),E=s(3543),u=s(7049),m=s(4119),b=s(8999);let D=(()=>{class a{constructor(r,t,n,i,o,M,O,P){this.el=r,this.scrollService=t,this._backgroundService=n,this._Active=i,this._EventService=o,this.translate=M,this.seo=O,this.cdr=P,this.breadcrumbs=[],this.subscription=new g.w0,this.gallery=[]}ngOnInit(){this.scrollService.setSectionStart(600),this._backgroundService.setBodyBackground("../../../../../assets/images/virtual-reality/body.webp"),this.subscription.add(this._Active.paramMap.subscribe(t=>{this.slug=t.get("slug");const n=encodeURIComponent(this.slug);this.subscription.add(this._EventService.getSingleEvent(n).subscribe({next:i=>{this.getSeo(i),this.project=i.data[0],this.gallery=[],this.project?.gallery.forEach(o=>{this.gallery.push(new c.vE({src:o,thumb:o}))}),this.breadcrumbs=[{label:"Home",url:"/"},{label:"Events",url:"en"===this.translate.currentLang?"/events":"/\u062d\u0641\u0644\u0627\u062a"},{label:this.project?.name||"Events",url:`/category/subcategory/${this.slug}`}],this.cdr.detectChanges()},error:i=>{console.error("Error fetching event data",i)}}))}))}getSeo(r){const t=r.data[0].seo;this.seo.data={title:t.title,description:t.description,robots:t.robots,keywords:t.keywords,fbDes:t.facebook_description,fbImg:t.facebook_image,fbTit:t.facebook_title,twitterDes:t.twitter_description,twitterImage:t.twitter_image,twitterTit:t.twitter_title},this.seo.updateTags(this.seo.data)}ngAfterViewInit(){}ngOnDestroy(){this.subscription.unsubscribe()}static#e=this.\u0275fac=function(t){return new(t||a)(e.Y36(e.SBq),e.Y36(h.a),e.Y36(p.J),e.Y36(E.gz),e.Y36(u.P),e.Y36(m.sK),e.Y36(b.v),e.Y36(e.sBO))};static#t=this.\u0275cmp=e.Xpm({type:a,selectors:[["app-single-event"]],standalone:!0,features:[e.jDz],decls:6,vars:5,consts:[[3,"imageUrl","title","breadcrumbs"],[1,"container"],[1,"content-inner"],[3,"innerHTML"],[3,"images"]],template:function(t,n){1&t&&(e._UZ(0,"app-dynamic-banner",0),e.TgZ(1,"div",1)(2,"div",2),e._UZ(3,"div",3),e.qZA(),e._UZ(4,"app-swiper-gallery",4)(5,"hr"),e.qZA()),2&t&&(e.Q6J("imageUrl",null==n.project?null:n.project.banner)("title",null==n.project?null:n.project.name)("breadcrumbs",n.breadcrumbs),e.xp6(3),e.Q6J("innerHTML",null==n.project?null:n.project.overview,e.oJD),e.xp6(1),e.Q6J("images",n.gallery))},dependencies:[_.ez,d.V,v.y,c.Uo]})}return a})()}}]);