import{i as X}from"./chunk-WUWT5RYM.js";import{$ as M,$b as j,Ab as _,Bb as v,Ha as r,Hb as A,Ia as g,Nb as C,Ob as O,R as P,Sa as h,Sb as m,Tb as f,Vb as u,X as L,Yb as T,ba as E,bc as F,bf as V,cf as B,df as y,ef as w,eg as Z,fa as U,ff as q,fg as ee,gb as s,gf as G,hb as a,hf as $,ib as p,ig as te,j as I,je as N,jf as H,ke as z,kf as W,le as Q,lf as b,ne as D,nf as S,of as k,pa as R,pe as K,pf as Y,rf as J,vb as x,ya as l,zb as d}from"./chunk-ADESBKUW.js";var re=["label"],ae=["img"],se=["currentLang"],le=["polygon"],ce=["currentLangName"],Ee=(()=>{let i=class i{constructor(e,t,n,o,ne,ie){this._doc=e,this.langService=t,this.authService=n,this.httpService=o,this.sharedService=ne,this.translateService=ie,this.politics=y,this.deal=w,this.year=new Date().getFullYear(),this.language=new X,this.showLangs=!1,this.languages=[],this.currentFullLang="",this.instagramUrl="",this.facebookUrl="",this.tiktokUrl="",this.linkedInUrl=J,this.telegramUrl=Y,this.unsubscribeAll$=new I,this.languageCheck(this.translateService.currentLang)}ngOnChanges(e){e.isCurrentLangUpdated?.currentValue&&(this.currentFullLang=this.langService.currentLang,this.languages=this.langService.languages)}ngOnInit(){this.translateService.onLangChange.pipe(P(this.unsubscribeAll$)).subscribe(e=>{this.languageCheck(e.lang)})}ngOnDestroy(){this.unsubscribeAll$.next(),this.unsubscribeAll$.complete()}toggleLangSelect(){this.showLangs=!this.showLangs}updateLang(e,t){if(e.preventDefault(),this.language.setValue(t.code),this.authService.isAuthorized()){let n=this.sharedService.user?.userSettings.find(o=>o.settingType===Z.localization);this.httpService.udateUserSettings({id:n.id,value:t.code}).pipe(P(this.unsubscribeAll$)).subscribe(()=>{this.setLang(t.code)})}else this.setLang(t.code)}setLang(e){this.langService.useTranslate(e),this.showLangs=!1,this.languageCheck(e),this.langService.mapLangCodeToFullName(e),this.currentFullLang=this.langService.currentLang}languageCheck(e){e==="ru"||e==="uk"?(this.politics=y,this.deal=w,this.instagramUrl=$,this.facebookUrl=H,this.tiktokUrl=W):e==="pl"?(this.politics=q,this.deal=G,this.instagramUrl=b,this.facebookUrl=S,this.tiktokUrl=k):(this.politics=V,this.deal=B,this.instagramUrl=b,this.facebookUrl=S,this.tiktokUrl=k)}};i.\u0275fac=function(t){return new(t||i)(g(F),g(ee),g(D),g(K),g(te),g(N))},i.\u0275cmp=E({type:i,selectors:[["rewish-footer"]],viewQuery:function(t,n){if(t&1&&(f(re,5),f(ae,5),f(se,5),f(le,5),f(ce,5)),t&2){let o;m(o=u())&&(n.label=o.first),m(o=u())&&(n.img=o.first),m(o=u())&&(n.currentLang=o.first),m(o=u())&&(n.polygon=o.first),m(o=u())&&(n.currentLangName=o.first)}},inputs:{user:"user",isCurrentLangUpdated:"isCurrentLangUpdated"},standalone:!0,features:[U,A],decls:35,vars:20,consts:[[1,"grey-background"],[1,"rewish-container"],[1,"footer-info"],[1,"links"],[1,"instagram"],["target","_blank",3,"href"],["width","36","height","36","src","/assets/images/Instagram_big.png","alt",""],[1,"facebook"],["width","36","height","36","src","/assets/icons/Facebook.svg","alt",""],[1,"telegram"],["width","36","height","36","src","/assets/icons/telegram.svg","alt",""],[1,"tik-tok"],["width","36","height","36","src","/assets/icons/tik_tok.svg","alt",""],[1,"pinterest"],["width","36","height","36","src","/assets/icons/linkedin.svg","alt",""],[1,"politics"],["target","_blank",1,"deal",3,"href"],["target","_blank",1,"politic",3,"href"],[1,"rewish-is"],[1,"year"],[1,"text"]],template:function(t,n){t&1&&(p(0,"div",0),s(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"a",5),p(6,"img",6),a()(),s(7,"div",7)(8,"a",5),p(9,"img",8),a()(),s(10,"div",9)(11,"a",5),p(12,"img",10),a()(),s(13,"div",11)(14,"a",5),p(15,"img",12),a()(),s(16,"div",13)(17,"a",5),p(18,"img",14),a()()(),s(19,"div",15)(20,"a",16),d(21),C(22,"translate"),a(),s(23,"a",17),d(24),C(25,"translate"),a()()(),s(26,"div",18)(27,"span",19),d(28),a(),s(29,"span",20)(30,"span"),d(31),C(32,"translate"),a(),d(33),C(34,"translate"),a()()()),t&2&&(r(5),h("href",n.instagramUrl,l),r(3),h("href",n.facebookUrl,l),r(3),h("href",n.telegramUrl,l),r(3),h("href",n.tiktokUrl,l),r(3),h("href",n.linkedInUrl,l),r(3),x("href",n.deal,l),r(1),_(O(22,12,"FOOTER.DEAL")),r(2),x("href",n.politics,l),r(1),_(O(25,14,"FOOTER.POLITIC")),r(4),v("\xA9 ",n.year,""),r(3),_(O(32,16,"CONGRATULATIONS.REWISH")),r(2),v(" ",O(34,18,"FOOTER.PEOPLE_CREATE_EMOTION")," "))},dependencies:[Q,z],styles:["[_nghost-%COMP%]{width:100%;bottom:0;align-items:center;display:flex}@media screen and (max-width: 767px){[_nghost-%COMP%]{padding-bottom:80px}}.rewish-container[_ngcontent-%COMP%]{border-top:1px solid rgba(0,0,0,.1215686275)}.rewish-container.inherit[_ngcontent-%COMP%]{margin-left:0}.grey[_ngcontent-%COMP%]{position:absolute;background:#F8F8F8;min-width:100%;height:150px;z-index:-1}.footer-info[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;font-size:14px;line-height:16px;color:#373530;padding:30px 0}.footer-info[_ngcontent-%COMP%]   .politics[_ngcontent-%COMP%]{order:1;display:flex;align-items:center;font-size:16px;font-weight:500}.footer-info[_ngcontent-%COMP%]   .politics[_ngcontent-%COMP%]   .deal[_ngcontent-%COMP%], .footer-info[_ngcontent-%COMP%]   .politics[_ngcontent-%COMP%]   .politic[_ngcontent-%COMP%]{margin-right:40px}.rewish-is[_ngcontent-%COMP%]{order:0;display:flex;align-items:center;color:#8e8e93;font-size:14px;font-weight:500;padding-bottom:40px;gap:10px}.rewish-is[_ngcontent-%COMP%]   .year[_ngcontent-%COMP%]{order:0}.rewish-is[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]{order:1}.rewish-is[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]   .bold[_ngcontent-%COMP%]{font-weight:600}@media screen and (max-width: 1215px){.rewish-is[_ngcontent-%COMP%]{order:3;align-items:start;padding-bottom:0}.rewish-is[_ngcontent-%COMP%]   .year[_ngcontent-%COMP%]{margin-bottom:16px}}a[_ngcontent-%COMP%]{text-decoration-line:none}a[_ngcontent-%COMP%]:hover{text-decoration-line:underline;text-underline-position:under;color:#000}.lang-container[_ngcontent-%COMP%]{width:auto;height:33px;display:flex;flex-direction:column;justify-content:center}.lang-title[_ngcontent-%COMP%]{font-weight:400;font-size:14px;line-height:20px;color:silver;margin-bottom:6px;display:none}.custom-select[_ngcontent-%COMP%]{display:flex;flex-direction:column;position:relative;justify-content:center;align-items:center;cursor:pointer}.custom-select[_ngcontent-%COMP%]   .main-lang[_ngcontent-%COMP%]{display:flex;align-items:center;cursor:pointer;width:100%}.custom-select[_ngcontent-%COMP%]   .main-lang[_ngcontent-%COMP%]   .lang-icon[_ngcontent-%COMP%]{margin-left:15px;min-width:20px;width:20px;min-height:16px;height:16px}.custom-select[_ngcontent-%COMP%]   .main-lang[_ngcontent-%COMP%]   .polygon-icon[_ngcontent-%COMP%]{width:8px;height:7px;margin-left:3px}.custom-select[_ngcontent-%COMP%]   .container-langs[_ngcontent-%COMP%]{transition:all .3s;right:0;width:auto;min-width:86px;height:auto;position:absolute;display:flex;padding:17px 14px;top:-76px;align-items:center;justify-content:center;border-radius:8px;background:#ffffff;flex-direction:column;box-shadow:0 2px 8px #0000001a}.custom-select[_ngcontent-%COMP%]   .container-langs[_ngcontent-%COMP%]   .container-langs-lang[_ngcontent-%COMP%]{width:100%;height:100%;display:flex;align-items:center;justify-content:center}.custom-select[_ngcontent-%COMP%]   .container-langs[_ngcontent-%COMP%]   .container-langs-lang[_ngcontent-%COMP%]   .container-langs-hide[_ngcontent-%COMP%]{display:none}.custom-select[_ngcontent-%COMP%]   .container-langs[_ngcontent-%COMP%]   .container-langs-lang[_ngcontent-%COMP%]   .container-langs-option[_ngcontent-%COMP%]{width:100%;height:100%;display:flex;align-items:center;justify-content:center}.custom-select[_ngcontent-%COMP%]   .container-langs[_ngcontent-%COMP%]   .container-langs-lang[_ngcontent-%COMP%]   .container-langs-option[_ngcontent-%COMP%]   .language-name[_ngcontent-%COMP%]{font-family:Gilroy;font-style:normal;font-weight:400;font-size:16px;line-height:26px;margin-right:14px}.custom-select[_ngcontent-%COMP%]   .container-langs[_ngcontent-%COMP%]   .container-langs-lang[_ngcontent-%COMP%]   .container-langs-option[_ngcontent-%COMP%]   .container-langs-img[_ngcontent-%COMP%]{min-width:20px;width:20px;min-height:16px;height:16px}.links[_ngcontent-%COMP%]{display:flex}.instagram[_ngcontent-%COMP%], .facebook[_ngcontent-%COMP%], .telegram[_ngcontent-%COMP%], .pinterest[_ngcontent-%COMP%], .tik-tok[_ngcontent-%COMP%]{width:36px;min-width:36px;height:36px;min-height:36px;border-radius:50%;display:flex;align-items:center;justify-content:center;margin-right:10px}@media screen and (max-width: 1215px){.footer-info[_ngcontent-%COMP%]{flex-direction:column;align-items:start;padding:24px 0 16px}.footer-info[_ngcontent-%COMP%]   .politics[_ngcontent-%COMP%]{order:0;flex-direction:column;align-items:start}.footer-info[_ngcontent-%COMP%]   .politics[_ngcontent-%COMP%]   .deal[_ngcontent-%COMP%]{margin-bottom:16px}.links[_ngcontent-%COMP%]{order:1;margin:30px 0}.custom-select[_ngcontent-%COMP%]   .container-langs[_ngcontent-%COMP%]{top:30px}.lang-container[_ngcontent-%COMP%]{height:60px;margin-bottom:45px}.lang-title[_ngcontent-%COMP%]{display:flex}.footer-info[_ngcontent-%COMP%]{order:3}.footer-info[_ngcontent-%COMP%]   .politics[_ngcontent-%COMP%]   .deal[_ngcontent-%COMP%], .footer-info[_ngcontent-%COMP%]   .politics[_ngcontent-%COMP%]   .politic[_ngcontent-%COMP%]{max-width:100%}}"]});let c=i;return c})();var Fe=(()=>{let i=class i{constructor(e,t){this.appRef=e,this.injector=t,this.dialogRef=null}open(e,t){this.close(),this.dialogRef=j(e,{environmentInjector:this.injector}),this.dialogRef.instance&&"data"in this.dialogRef.instance&&(this.dialogRef.instance.data=t),document.body.appendChild(this.dialogRef.location.nativeElement),document.body.style.overflow="hidden",this.appRef.attachView(this.dialogRef.hostView)}close(){if(this.dialogRef){this.appRef.detachView(this.dialogRef.hostView);let e=this.dialogRef.location.nativeElement;e.parentNode&&e.parentNode.removeChild(e),document.body.style.overflow="",this.dialogRef.destroy(),this.dialogRef=null}}};i.\u0275fac=function(t){return new(t||i)(M(T),M(R))},i.\u0275prov=L({token:i,factory:i.\u0275fac,providedIn:"root"});let c=i;return c})();export{Fe as a,Ee as b};
