import{r as e,g as t,h as a,d as n}from"./p-b3a13b6a.js";const r={sv:{sharelabel:"Dela med"},en:{sharelabel:"Share to"},da:{sharelabel:"Del med"},no:{sharelabel:"Dele med"},fi:{sharelabel:"Jakaa"},zh:{sharelabel:"Share to"},it:{sharelabel:"Share to"},nl:{sharelabel:"Share to"}};const i='pn-button-dropdown .pn-button-dropdown>pn-button>.pn-button{min-height:initial}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}@media screen and (max-width: 767px){.sr-only-mobile{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}}pn-share .pn-share__container{display:flex;flex-direction:column;gap:0.8rem}pn-share .pn-share__heading{font-size:1.6rem;font-weight:500}pn-share .pn-share__heading:after{content:"";display:block;height:0.2rem;background-color:#f3f2f2;margin-top:0.4rem;margin-bottom:0.8rem}pn-share .pn-share__items{display:flex;flex-direction:row;gap:0.8rem;align-items:center}';const s=i;const o=[{platform:"linkedin",url:"https://www.linkedin.com/sharing/share-offsite/?url=",text:"LinkedIn"},{platform:"twitter",url:"https://twitter.com/intent/tweet?url=",text:"Twitter"},{platform:"facebook",url:"https://www.facebook.com/sharer/sharer.php?u=",text:"Facebook"}];const h=class{constructor(t){e(this,t);this.link=null;this.language="sv";this.i18n=undefined}get hostElement(){return t(this)}componentWillLoad(){this.setTranslations()}setTranslations(){if(this.language==="nb"){this.language="no"}if(this.language&&r[this.language]){this.i18n=r[this.language]}}onLanguageChange(){this.setTranslations()}render(){return a(n,{key:"87c86e64bc6e31b8ecb1f172005dc1fa2b2a821a"},a("div",{key:"b0ae9877a73c5b2a67a6fc03e91cae21062df823",class:"pn-share__container"},a("h3",{key:"b410f35c7a3e20951b6795c886e755d4c9cc6337",class:"pn-share__heading"},this.i18n.sharelabel,":"),a("div",{key:"e5b84fdc21fb4fcd5de996f55ef2b689d3385f80",class:"pn-share__items"},o.map((e=>a("pn-share-item",{link:`${e.url}${this.link}`,text:e.text},a("pn-icon",{slot:"icon",icon:e.platform})))))))}static get watchers(){return{language:["onLanguageChange"]}}};h.style=s;export{h as pn_share};
//# sourceMappingURL=p-4915b14a.entry.js.map