import{a as n}from"./chunk-3UAMWNPB.js";import{d as u}from"./chunk-ZSVIZXE3.js";import{M as O,ba as S,la as A,oa as C,qg as R,s as l,t as N}from"./chunk-N6B2OJOY.js";var e=function(o){return o[o.PRIVACY=0]="PRIVACY",o[o.IMPRINT=1]="IMPRINT",o[o.TERMS_AND_CONDITIONS=2]="TERMS_AND_CONDITIONS",o[o.INCIDENT_ORDINANCE=3]="INCIDENT_ORDINANCE",o[o.COOKIES=4]="COOKIES",o[o.CONSENTS=5]="CONSENTS",o[o.VALUES=6]="VALUES",o}(e||{}),T=[[{baseSiteUid:n.GERMANY,languageCode:"de_DE"},new Map([[e.PRIVACY,{translationKey:"footerLinks.privacy",url:"/privacy"}],[e.IMPRINT,{translationKey:"footerLinks.imprint",url:"/impressum"}],[e.TERMS_AND_CONDITIONS,{translationKey:"footerLinks.AGB",url:"/termsAndConditions"}],[e.INCIDENT_ORDINANCE,{translationKey:"footerLinks.incidentOrdinance",url:"/stoerfallverordnung"}],[e.COOKIES,{translationKey:"footerLinks.cookies",url:"/cookies"}],[e.CONSENTS,{translationKey:"consents.preferences"}]])],[{baseSiteUid:n.AUSTRIA,languageCode:"de_AT"},new Map([[e.PRIVACY,{translationKey:"footerLinks.privacy",url:"/privacy"}],[e.IMPRINT,{translationKey:"footerLinks.imprint",url:"/impressum"}],[e.TERMS_AND_CONDITIONS,{translationKey:"footerLinks.AGB",url:"/termsAndConditions"}],[e.INCIDENT_ORDINANCE,{translationKey:"footerLinks.incidentOrdinance",url:"/stoerfallverordnung"}],[e.COOKIES,{translationKey:"footerLinks.cookies",url:"/cookies"}],[e.CONSENTS,{translationKey:"consents.preferences"}]])],[{baseSiteUid:n.ITALY,languageCode:"it_IT"},new Map([[e.PRIVACY,{translationKey:"footerLinks.privacy",url:"/privacy"}],[e.IMPRINT,{translationKey:"footerLinks.imprint",url:"/impressum"}],[e.TERMS_AND_CONDITIONS,{translationKey:"footerLinks.AGB",url:"/termini-e-condizioni"}],[e.VALUES,{translationKey:"footerLinks.values",url:"/i-valori-di-forch"}],[e.COOKIES,{translationKey:"footerLinks.cookies",url:"/utilizzo-dei-cookie"}],[e.CONSENTS,{translationKey:"consents.preferences"}]])],[{baseSiteUid:n.SPAIN,languageCode:"es_ES"},new Map([[e.PRIVACY,{translationKey:"footerLinks.privacy",url:"/privacidad"}],[e.IMPRINT,{translationKey:"footerLinks.imprint",url:"/avisoLegal"}],[e.TERMS_AND_CONDITIONS,{translationKey:"footerLinks.AGB",url:"/garantia"}],[e.COOKIES,{translationKey:"footerLinks.cookies",url:"/cookies"}],[e.CONSENTS,{translationKey:"consents.preferences"}]])],[{baseSiteUid:n.BELGIUM,languageCode:"nl_BE"},new Map([[e.PRIVACY,{translationKey:"footerLinks.privacy",url:"/gegevensbescherming"}],[e.IMPRINT,{translationKey:"footerLinks.imprint",url:"/colofon"}],[e.TERMS_AND_CONDITIONS,{translationKey:"footerLinks.AGB",url:"/avv"}],[e.COOKIES,{translationKey:"footerLinks.cookies",url:"/cookies"}],[e.CONSENTS,{translationKey:"consents.preferences"}]])],[{baseSiteUid:n.BELGIUM,languageCode:"fr_BE"},new Map([[e.PRIVACY,{translationKey:"footerLinks.privacy",url:"/protectiondesdonnees"}],[e.IMPRINT,{translationKey:"footerLinks.imprint",url:"/colophon"}],[e.TERMS_AND_CONDITIONS,{translationKey:"footerLinks.AGB",url:"/cgv"}],[e.COOKIES,{translationKey:"footerLinks.cookies",url:"/cookies"}],[e.CONSENTS,{translationKey:"consents.preferences"}]])],[{baseSiteUid:n.SWITZERLAND,languageCode:"de_CH"},new Map([[e.PRIVACY,{translationKey:"footerLinks.privacy",url:"/privacy"}],[e.IMPRINT,{translationKey:"footerLinks.imprint",url:"/impressum"}],[e.TERMS_AND_CONDITIONS,{translationKey:"footerLinks.AGB",url:"/termsAndConditions"}],[e.COOKIES,{translationKey:"footerLinks.cookies",url:"/cookies"}],[e.CONSENTS,{translationKey:"consents.preferences"}]])],[{baseSiteUid:n.SWITZERLAND,languageCode:"fr_CH"},new Map([[e.PRIVACY,{translationKey:"footerLinks.privacy",url:"/privacy"}],[e.IMPRINT,{translationKey:"footerLinks.imprint",url:"/impressum"}],[e.TERMS_AND_CONDITIONS,{translationKey:"footerLinks.AGB",url:"/termsAndConditions"}],[e.COOKIES,{translationKey:"footerLinks.cookies",url:"/cookies"}],[e.CONSENTS,{translationKey:"consents.preferences"}]])],[{baseSiteUid:n.SWITZERLAND,languageCode:"it_CH"},new Map([[e.PRIVACY,{translationKey:"footerLinks.privacy",url:"/privacy"}],[e.IMPRINT,{translationKey:"footerLinks.imprint",url:"/impressum"}],[e.TERMS_AND_CONDITIONS,{translationKey:"footerLinks.AGB",url:"/termsAndConditions"}],[e.COOKIES,{translationKey:"footerLinks.cookies",url:"/cookies"}],[e.CONSENTS,{translationKey:"consents.preferences"}]])],[{baseSiteUid:n.FRANCE,languageCode:"fr_FR"},new Map([[e.PRIVACY,{translationKey:"footerLinks.privacy",url:"/protectiondesdonnees"}],[e.IMPRINT,{translationKey:"footerLinks.imprint",url:"/mentionslegales"}],[e.TERMS_AND_CONDITIONS,{translationKey:"footerLinks.AGB",url:"/conditionsgenerales"}],[e.COOKIES,{translationKey:"footerLinks.cookies",url:"/cookies"}],[e.CONSENTS,{translationKey:"consents.preferences"}]])],[{baseSiteUid:n.POLAND,languageCode:"pl_PL"},new Map([[e.PRIVACY,{translationKey:"footerLinks.privacy",url:"/privacy"}],[e.IMPRINT,{translationKey:"footerLinks.imprint",url:"/impressum"}],[e.TERMS_AND_CONDITIONS,{translationKey:"footerLinks.AGB",url:"/termsAndConditions"}],[e.INCIDENT_ORDINANCE,{translationKey:"footerLinks.incidentOrdinance",url:"/stoerfallverordnung"}],[e.COOKIES,{translationKey:"footerLinks.cookies",url:"/cookies"}],[e.CONSENTS,{translationKey:"consents.preferences"}]])],[{baseSiteUid:n.PORTUGAL,languageCode:"pt_PT"},new Map([[e.PRIVACY,{translationKey:"footerLinks.privacy",url:"/protecaoDeDados"}],[e.IMPRINT,{translationKey:"footerLinks.imprint",url:"/impressao"}],[e.TERMS_AND_CONDITIONS,{translationKey:"footerLinks.AGB",url:"/condicoes-gerais"}],[e.COOKIES,{translationKey:"footerLinks.cookies",url:"/cookies"}],[e.CONSENTS,{translationKey:"consents.preferences"}]])],[{baseSiteUid:n.ROMANIA,languageCode:"ro_RO"},new Map([[e.PRIVACY,{translationKey:"footerLinks.privacy",url:"/privacy"}],[e.IMPRINT,{translationKey:"footerLinks.imprint",url:"/impressum"}],[e.TERMS_AND_CONDITIONS,{translationKey:"footerLinks.AGB",url:"/termsAndConditions"}],[e.COOKIES,{translationKey:"footerLinks.cookies",url:"/cookies"}],[e.CONSENTS,{translationKey:"consents.preferences"}]])],[{baseSiteUid:n.RUSSIA,languageCode:"ru_RU"},new Map([[e.PRIVACY,{translationKey:"footerLinks.privacy",url:"/privacy"}],[e.IMPRINT,{translationKey:"footerLinks.imprint",url:"/impressum"}],[e.TERMS_AND_CONDITIONS,{translationKey:"footerLinks.AGB",url:"/termsAndConditions"}],[e.COOKIES,{translationKey:"footerLinks.cookies",url:"/cookies"}],[e.CONSENTS,{translationKey:"consents.preferences"}]])],[{baseSiteUid:n.UNITEDKINGDOM,languageCode:"en_GB"},new Map([[e.PRIVACY,{translationKey:"footerLinks.privacy",url:"/privacy"}],[e.IMPRINT,{translationKey:"footerLinks.imprint",url:"/impressum"}],[e.TERMS_AND_CONDITIONS,{translationKey:"footerLinks.AGB",url:"/termsAndConditions"}],[e.COOKIES,{translationKey:"footerLinks.cookies",url:"/cookies"}],[e.CONSENTS,{translationKey:"consents.preferences"}]])],[{baseSiteUid:n.HUNGARY,languageCode:"hu_HU"},new Map([[e.PRIVACY,{translationKey:"footerLinks.privacy",url:"/privacy"}],[e.IMPRINT,{translationKey:"footerLinks.imprint",url:"/impressum"}],[e.TERMS_AND_CONDITIONS,{translationKey:"footerLinks.AGB",url:"/termsAndConditions"}],[e.COOKIES,{translationKey:"footerLinks.cookies",url:"/cookies"}],[e.CONSENTS,{translationKey:"consents.preferences"}]])],[{baseSiteUid:n.CROATIA,languageCode:"hr_HR"},new Map([[e.PRIVACY,{translationKey:"footerLinks.privacy",url:"/privacy"}],[e.IMPRINT,{translationKey:"footerLinks.imprint",url:"/impressum"}],[e.TERMS_AND_CONDITIONS,{translationKey:"footerLinks.AGB",url:"/termsAndConditions"}],[e.COOKIES,{translationKey:"footerLinks.cookies",url:"/cookies"}],[e.CONSENTS,{translationKey:"consents.preferences"}]])],[{baseSiteUid:n.SLOVENIA,languageCode:"sl_SI"},new Map([[e.PRIVACY,{translationKey:"footerLinks.privacy",url:"/privacy"}],[e.IMPRINT,{translationKey:"footerLinks.imprint",url:"/impressum"}],[e.TERMS_AND_CONDITIONS,{translationKey:"footerLinks.AGB",url:"/termsAndConditions"}],[e.COOKIES,{translationKey:"footerLinks.cookies",url:"/cookies"}],[e.CONSENTS,{translationKey:"consents.preferences"}]])],[{baseSiteUid:n.TURKEY,languageCode:"tr_TR"},new Map([[e.PRIVACY,{translationKey:"footerLinks.privacy",url:"/privacy"}],[e.IMPRINT,{translationKey:"footerLinks.imprint",url:"/impressum"}],[e.TERMS_AND_CONDITIONS,{translationKey:"footerLinks.AGB",url:"/termsAndConditions"}],[e.COOKIES,{translationKey:"footerLinks.cookies",url:"/cookies"}],[e.CONSENTS,{translationKey:"consents.preferences"}]])],[{baseSiteUid:n.NETHERLANDS,languageCode:"nl_NL"},new Map([[e.PRIVACY,{translationKey:"footerLinks.privacy",url:"/privacyverklaring"}],[e.IMPRINT,{translationKey:"footerLinks.imprint",url:"/disclaimer"}],[e.TERMS_AND_CONDITIONS,{translationKey:"footerLinks.AGB",url:"/algemenevoorwaarden"}],[e.INCIDENT_ORDINANCE,{translationKey:"footerLinks.incidentOrdinance",url:"/stoerfallverordnung"}],[e.COOKIES,{translationKey:"footerLinks.cookies",url:"/cookies"}],[e.CONSENTS,{translationKey:"consents.preferences"}]])],[{baseSiteUid:n.UKRAINE,languageCode:"uk_UA"},new Map([[e.PRIVACY,{translationKey:"footerLinks.privacy",url:"/privacy"}],[e.IMPRINT,{translationKey:"footerLinks.imprint",url:"/impressum"}],[e.TERMS_AND_CONDITIONS,{translationKey:"footerLinks.AGB",url:"/termsAndConditions"}],[e.INCIDENT_ORDINANCE,{translationKey:"footerLinks.incidentOrdinance",url:"/stoerfallverordnung"}],[e.COOKIES,{translationKey:"footerLinks.cookies",url:"/cookies"}],[e.CONSENTS,{translationKey:"consents.preferences"}]])],[{baseSiteUid:n.TESLA,languageCode:"en_GB"},new Map([[e.PRIVACY,{translationKey:"footerLinks.privacy",url:"/privacy"}],[e.IMPRINT,{translationKey:"footerLinks.imprint",url:"/imprint"}],[e.TERMS_AND_CONDITIONS,{translationKey:"footerLinks.AGB",url:"/termsAndConditions"}],[e.INCIDENT_ORDINANCE,{translationKey:"footerLinks.incidentOrdinance",url:"/stoerfallverordnung"}],[e.COOKIES,{translationKey:"footerLinks.cookies",url:"/cookies"}],[e.CONSENTS,{translationKey:"consents.preferences"}]])]],y=new Map([[n.GERMANY,[e.PRIVACY,e.IMPRINT,e.TERMS_AND_CONDITIONS,e.INCIDENT_ORDINANCE,e.COOKIES]],[n.AUSTRIA,[e.PRIVACY,e.IMPRINT,e.TERMS_AND_CONDITIONS,e.INCIDENT_ORDINANCE,e.COOKIES]],[n.ITALY,[e.PRIVACY,e.IMPRINT,e.TERMS_AND_CONDITIONS,e.VALUES,e.COOKIES]],[n.SPAIN,[e.PRIVACY,e.IMPRINT,e.TERMS_AND_CONDITIONS,e.INCIDENT_ORDINANCE,e.COOKIES]],[n.BELGIUM,[e.PRIVACY,e.IMPRINT,e.TERMS_AND_CONDITIONS,e.COOKIES]],[n.FRANCE,[e.PRIVACY,e.IMPRINT,e.TERMS_AND_CONDITIONS,e.COOKIES]],[n.NETHERLANDS,[e.PRIVACY,e.IMPRINT,e.TERMS_AND_CONDITIONS,e.VALUES,e.COOKIES]],[n.POLAND,[e.PRIVACY,e.IMPRINT,e.TERMS_AND_CONDITIONS,e.COOKIES]],[n.PORTUGAL,[e.PRIVACY,e.IMPRINT,e.TERMS_AND_CONDITIONS,e.COOKIES]],[n.UKRAINE,[e.PRIVACY,e.IMPRINT,e.TERMS_AND_CONDITIONS,e.COOKIES]],[n.TESLA,[e.PRIVACY,e.IMPRINT,e.TERMS_AND_CONDITIONS,e.INCIDENT_ORDINANCE,e.COOKIES]],[n.SWITZERLAND,[e.PRIVACY,e.IMPRINT,e.TERMS_AND_CONDITIONS,e.COOKIES]],[n.SLOVENIA,[e.PRIVACY,e.IMPRINT,e.TERMS_AND_CONDITIONS,e.COOKIES]],[n.CROATIA,[e.PRIVACY,e.IMPRINT,e.TERMS_AND_CONDITIONS,e.COOKIES]],[n.HUNGARY,[e.PRIVACY,e.IMPRINT,e.TERMS_AND_CONDITIONS,e.COOKIES]],[n.TURKEY,[e.PRIVACY,e.IMPRINT,e.TERMS_AND_CONDITIONS,e.COOKIES]],[n.ROMANIA,[e.PRIVACY,e.IMPRINT,e.TERMS_AND_CONDITIONS,e.COOKIES]],[n.RUSSIA,[e.PRIVACY,e.IMPRINT,e.TERMS_AND_CONDITIONS,e.COOKIES]],[n.UNITEDKINGDOM,[e.PRIVACY,e.IMPRINT,e.TERMS_AND_CONDITIONS,e.COOKIES]]]);var m=(()=>{let s=class s{constructor(r,i){this._baseSiteService=r,this._languageService=i}getContentLinkForBaseSite(r){return N([this._baseSiteService.getActive(),this._languageService.getActive()]).pipe(S(([i,t])=>!i&&!t),O(300),l(([i,t])=>this.getContentLink(r,i,t)))}getFooterLinksForBaseSite(){return N([this._baseSiteService.getActive(),this._languageService.getActive()]).pipe(S(([r,i])=>!r&&!i),O(300),l(([r,i])=>(y.get(r)||[]).map(t=>this.getContentLink(t,r,i)).filter(t=>!!t)))}getConsentDialogLinksForBaseSite(){return N([this._baseSiteService.getActive(),this._languageService.getActive()]).pipe(S(([r,i])=>!r&&!i),l(([r,i])=>[e.PRIVACY,e.IMPRINT,e.TERMS_AND_CONDITIONS,e.COOKIES].map(a=>this.getContentLink(a,r,i)).filter(a=>!!a)))}getContentLink(r,i,t){let a={baseSiteUid:i,languageCode:t},I=T.find(c=>c[0].baseSiteUid===a.baseSiteUid&&c[0].languageCode===a.languageCode),K=!!I&&I[1].has(r);if(!(!I&&K===!1))return I[1].get(r)}};s.\u0275fac=function(i){return new(i||s)(C(u),C(R))},s.\u0275prov=A({token:s,factory:s.\u0275fac,providedIn:"root"});let o=s;return o})();export{e as a,m as b};