UNPKG

@postnord/web-components

Version:

PostNord Web Components

6 lines 4.92 kB
/*! * Built with Stencil * By PostNord. */ import{r as t,g as o,h as s,a as e}from"./p-c2c6299e.js";import{o as n}from"./p-773aa70a.js";import{j as i,S as r,e as p,N as a}from"./p-c511b4fb.js";const w={SE:{domain:{sv:"https://www.postnord.se",en:"https://www.postnord.se/en"},contact:{sv:"https://www.postnord.se/kundservice",en:"https://www.postnord.se/en/help-and-support/contact-us"},cookies:{sv:"https://www.postnord.se/cookies",en:"https://www.postnord.se/en/cookies"},privacy:{sv:"https://www.postnord.se/integritetspolicy",en:"https://www.postnord.se/en/privacy-policy"},terms:{sv:"https://www.postnord.se/siteassets/pdf/villkor/anvandarvillkor-postnord-konto.pdf",en:"https://www.postnord.se/siteassets/pdf/villkor/anvandarvillkor-postnord-konto.pdf"}},DK:{domain:{da:"https://www.postnord.dk",en:"https://www.postnord.com/en"},contact:{da:"https://www.postnord.dk/kundeservice",en:"https://www.postnord.dk/en/help-and-support"},cookies:{da:"https://www.postnord.dk/cookies",en:"https://www.postnord.dk/en/cookies"},privacy:{da:"https://www.postnord.dk/personlige-oplysninger",en:"https://www.postnord.se/en/privacy-policy"},terms:{da:"https://www.postnord.dk/contentassets/4806069a7d6c44959c94b13417d78f22/kundeportalen.pdf",en:"https://www.postnord.dk/kundeservice/kundeservice-erhverv/forretningsbetingelser"}},FI:{domain:{fi:"https://www.postnord.fi",sv:"https://www.postnord.fi/sv",en:"https://www.postnord.fi/en"},contact:{fi:"https://www.postnord.fi/asiakaspalvelu/ota-yhteytta",sv:"https://www.postnord.fi/sv/kundtjanst",en:"https://www.postnord.fi/en/customer-service"},cookies:{fi:"https://www.postnord.fi/yksityisyydensuoja/tietoa-evasteista",sv:"https://www.postnord.fi/sv/integritetspolicy/information-om-cookies",en:"https://www.postnord.fi/en/privacy-policy/information-about-the-cookies"},privacy:{fi:"https://www.postnord.fi/yksityisyydensuoja",sv:"https://www.postnord.fi/sv/integritetspolicy",en:"https://www.postnord.se/en/privacy-policy"},terms:{fi:"https://www.postnord.fi/laheta/sopimusehdot",sv:"https://www.postnord.fi/sv/skicka/villkor",en:"https://www.postnord.fi/en/sending/terms"}},NO:{domain:{no:"https://www.postnord.no",en:"https://www.postnord.no/en"},contact:{no:"https://www.postnord.no/kundeservice",en:"https://www.postnord.no/en/contact-postnord"},cookies:{no:"https://www.postnord.no/cookies",en:"https://www.postnord.no/en/cookies"},privacy:{no:"https://www.postnord.no/personvernerklaering",en:"https://www.postnord.se/en/privacy-policy"}},contact:"https://portal.postnord.com/customerservice"};const d={cookies:{sv:"Cookies",en:"Cookies",da:"Cookies",fi:"Evästeet",no:"Cookies"},questions:{sv:"Undrar du över något?",en:"Do you have any questions?",da:"Har du nogen spørgsmål?",fi:"Onko sinulla kysyttävää?",no:"Har du noen spørsmål?"},contact:{sv:"Kontakta oss",en:"Get in touch",da:"Kontakt os",fi:"Ota yhteyttä",no:"Ta kontakt"},info:{sv:"Mer information om PostNord hittar du på",en:"More information about PostNord can be found at",da:"Mere information om PostNord findes på",fi:"Lisää tietoa PostNordista löydät osoitteesta",no:"Du finner mer informasjon om PostNord på"},privacy:{sv:"Integritetspolicy",en:"Privacy policy",da:"Integritetspolitik",fi:"Yksityisyysasetukset",no:"Privacy policy"},terms:{sv:"Villkor",en:"Terms and conditions",da:"Vilkår og betingelser",fi:"Sopimusehdot",no:"Betingelser og vilkår"}};const c="pn-footer{color:#5e554a;padding-bottom:2em;display:block}pn-footer .pn-footer-row{padding:0.2em 0;font-size:0.9em;text-align:center}pn-footer .pn-footer-row p{margin:0 0.2em 0 0;display:inline-block}pn-footer pn-text-link{margin-right:0.5em}pn-footer pn-text-link:last-child{margin-right:0}";const h=c;const f=class{constructor(o){t(this,o)}get hostElement(){return o(this)}market=null;language=null;async componentWillLoad(){if(this.market&&this.language)return;await i(this.hostElement)}getLink(t){return w?.[this.market||r]?.[t]?.[this.language||p]}getText(t){if(t==="domain")return this.getLink(t)?.replace("https://www.","");return d?.[t]?.[this.language]}renderLink(t){const o=this.getLink(t);const e=this.getText(t);if(o&&e){return s("pn-text-link",{label:e,target:"_blank",rel:"noopener noreferrer",href:o,icon:n})}}render(){return s(e,{key:"9eeb6c90b62d1e6c20c55040a75e6277c7fd054d"},s("div",{key:"aed5a2a818db6e882145cab89f8d5890a8ee6e9a",class:"pn-footer-row"},s("p",{key:"6722217eb5c38f377934be571be2126901545a2e"},this.getText("questions")),this.renderLink("contact")),s("div",{key:"e3e49c49d385926f1c994596649bcbe0b79fc553",class:"pn-footer-row"},this.market!==a&&this.renderLink("terms"),this.renderLink("privacy"),this.renderLink("cookies")),s("div",{key:"d9eabd2ef302e2f04bb2f054c56b4e905aa7e3ba",class:"pn-footer-row"},s("p",{key:"0ea955a6a08e86fdad902890c6630ada7c004f9a"},this.getText("info")),this.renderLink("domain")))}};f.style=h;export{f as pn_footer}; //# sourceMappingURL=p-fc3cf6a1.entry.js.map