"use strict";(self.webpackChunksound_and_light=self.webpackChunksound_and_light||[]).push([[433],{6433:(C,c,s)=>{s.r(c),s.d(c,{SingleProjectComponent:()=>M});var l=s(6814),_=s(7394),g=s(4534),d=s(4846),h=s(8158),t=s(5879),p=s(3282),f=s(1934),v=s(3543),m=s(9584),b=s(4119),u=s(8999);let M=(()=>{class n{constructor(e,i,o,a,r,P,O,E){this.el=e,this.scrollService=i,this._backgroundService=o,this._Active=a,this._lightService=r,this.translate=P,this.seo=O,this.cdr=E,this.breadcrumbs=[],this.subscription=new _.w0,this.gallery=[]}ngOnInit(){this.scrollService.setSectionStart(600),this._backgroundService.setBodyBackground("../../../../../assets/images/virtual-reality/body.webp"),this.subscription.add(this._Active.paramMap.subscribe(i=>{this.slug=i.get("slug");const o=encodeURIComponent(this.slug);this.subscription.add(this._lightService.getSingleProject(o).subscribe({next:a=>{this.getSeo(a),this.project=a.data[0],this.gallery=[],this.project?.gallery.forEach(r=>{this.gallery.push(new h.vE({src:r,thumb:r}))}),this.breadcrumbs=[{label:"Home",url:"/"},{label:"lighting projects",url:"en"==this.translate.currentLang?"/lighting-projects":"/\u0645\u0634\u0627\u0631\u064a\u0639-\u0627\u0644\u0627\u0636\u0627\u0621\u0647"},{label:this.project?.name||"project overview",url:`/category/subcategory/${this.slug}`}],this.cdr.detectChanges()}}))}))}getSeo(e){this.seo.data.title=e.data[0].seo.title,this.seo.data.description=e.data[0].seo.description,this.seo.data.robots=e.data[0].seo.robots,this.seo.data.keywords=e.data[0].seo.keywords,this.seo.data.fbDes=e.data[0].seo.facebook_description,this.seo.data.fbImg=e.data[0].seo.facebook_image,this.seo.data.fbTit=e.data[0].seo.facebook_title,this.seo.data.twitterDes=e.data[0].seo.twitter_description,this.seo.data.twitterImage=e.data[0].seo.twitter_image,this.seo.data.twitterTit=e.data[0].seo.twitter_title,this.seo.updateTags(this.seo.data)}ngOnDestroy(){}static#t=this.\u0275fac=function(i){return new(i||n)(t.Y36(t.SBq),t.Y36(p.a),t.Y36(f.J),t.Y36(v.gz),t.Y36(m.B),t.Y36(b.sK),t.Y36(u.v),t.Y36(t.sBO))};static#e=this.\u0275cmp=t.Xpm({type:n,selectors:[["app-single-project"]],standalone:!0,features:[t.jDz],decls:6,vars:5,consts:[[3,"imageUrl","title","breadcrumbs"],[1,"container"],[1,"content-inner"],[3,"innerHTML"],[3,"images"]],template:function(i,o){1&i&&(t._UZ(0,"app-dynamic-banner",0),t.TgZ(1,"div",1)(2,"div",2),t._UZ(3,"div",3),t.qZA(),t._UZ(4,"app-swiper-gallery",4)(5,"hr"),t.qZA()),2&i&&(t.Q6J("imageUrl",null==o.project?null:o.project.banner)("title",null==o.project?null:o.project.name)("breadcrumbs",o.breadcrumbs),t.xp6(3),t.Q6J("innerHTML",null==o.project?null:o.project.overview,t.oJD),t.xp6(1),t.Q6J("images",o.gallery))},dependencies:[l.ez,g.V,d.y],styles:['.title[_ngcontent-%COMP%], .title[_ngcontent-%COMP%]   *[_ngcontent-%COMP%]{box-sizing:border-box}.title[_ngcontent-%COMP%]{position:relative}.under-header-150-px-1[_ngcontent-%COMP%]{width:1920px;height:150px;position:absolute;left:0;top:0;object-fit:cover}.div[_ngcontent-%COMP%]{color:#fff;text-align:right;font-family:LamaSans-Bold,sans-serif;font-size:42px;font-weight:700;position:absolute;left:1271px;top:81px}.div2[_ngcontent-%COMP%]{width:133.33px;height:32px;position:absolute;left:1488px;top:26px}.vector[_ngcontent-%COMP%]{width:13%;height:52.66%;position:absolute;inset:21.88% 0% 25.46% 87%;overflow:visible}.div3[_ngcontent-%COMP%]{color:#ffc30f;text-align:right;font-family:LamaSans-Medium,sans-serif;font-size:32px;font-weight:500;position:absolute;inset:0% 20.5% 0% 0%;width:79.5%;height:100%}.bg-header[_ngcontent-%COMP%]{background-image:url("under header-150px 1.2e7881011732efcc.png");width:100%;height:15rem;top:80px;position:absolute}.bg-header[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#ffc30f;font-size:32px;font-weight:500}.bg-header[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%]{color:#fff;font-size:3rem;font-weight:700}']})}return n})()}}]);