@itcenteratunihelsinki/huds-lib 0.8.81 → 0.8.83

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- import{r as e,h as i,F as a,H as t}from"./index-2ffe17c9.js";import{d as n}from"./utils-1e7f5184.js";let o;const r=class{constructor(i){e(this,i),this.personDataJson=void 0,this.showFullAboutText=void 0,this.hideFullAboutText=void 0,this.organizationItemsLabelText=void 0,this.peopleFinderReturnLink=void 0,this.peopleFinderReturnLabel=void 0,this.isFullAboutTextHidden=!1,this.viewportSize=void 0}componentWillLoad(){this.viewportSize=window.innerWidth}toggleShowFullAboutText(){this.isFullAboutTextHidden=!this.isFullAboutTextHidden}disconnectedCallback(){clearTimeout(o)}render(){const{name:e,job_title:r,additional_information:l,image_url:c,contact_information:p,organization_units:f,about:s,research:d,person_content:h}=JSON.parse(this.personDataJson),{organizations:g,research_organizations:b}=f.items,y=s.description,m=y.length;let _="";m>650&&(_=this.isFullAboutTextHidden?y+"...":y.substring(0,650)+"..."),window.addEventListener("resize",(()=>{clearTimeout(o),o=setTimeout((()=>{this.viewportSize=window.innerWidth}),250)}));const x=`${d.research_portal_label}: ${e}`;return i(t,{key:"00fd25afa47ffc45c90c63dcf81ff0b955528d1d"},i("section",{key:"d231c98b8e4d318fd5fbb59d94e976b24b0d799c",class:"hy-profile-page"},i("a",{key:"082a752959d108b24c29082c0fe57ee54c8b4269",href:this.peopleFinderReturnLink,class:"hy-profile-page__back-button"},i("hy-icon",{key:"fe8b9f105fbff4845ec44bfa8cc47f6447f413ea",icon:"hy-icon-arrow-left",size:24}),i("span",{key:"631531abb7f234a7ca94cccc5b6e26bc2982d807"},this.peopleFinderReturnLabel)),i("section",{key:"b77d57951539d96a91cf7cd62501c5bd91c13d93",class:"hy-profile-page__section"},i("div",{key:"cef2e3cd80ce41e6091b8c1889e910c8dbe3851f",class:"hy-profile-page__person-information"},i("div",{key:"e7552781e25d46a5801a83b23c08612aff69f1c6"},i("h1",{key:"b3398968093121dd07f30368c315dde2ad0f5b2d",class:"hy-profile-page__name"},e),r&&i("p",{key:"11c9eaf8f00b2e017f6efd17e8799800104b573e",class:"hy-profile-page__job-title"},r),l&&i("p",{key:"efcad32ce03672da7f4f914478b3bc024e785156",class:"hy-profile-page__additional-information"},l)),c?i("img",{src:c,alt:"",class:"hy-profile-page__image"}):i("div",{class:"hy-profile-page__image","aria-hidden":"true"})),p&&i("div",{key:"550e9dfe4d9c743197f2f837e31e07a7c2bdc67f",class:"hy-profile-page__contact-information"},p.label&&i("h2",{key:"a521f18d072cdb5f96781f0ce7fc8b676b0e3820"},p.label),p.items&&i("hy-person-profile-listing",{key:"07a50c12144effd9bc73d8c5a8c062e31061f765",items:p.items,col:"col-4",withoutIcons:!0,textSpacingTight:!0}))),(g.items.length>0||Object.keys(b.items).length>0)&&i("section",{key:"6d32a234f4afa28e05eff4297b8b09dbaf6ef32a",class:"hy-profile-page__section"},f.label&&i("h2",{key:"7813840565525edf5ecefa2f4130697c4e98d28a"},f.label),g.items.length>0&&i("section",{key:"06c28944da1ce5485e10b6d90747415ddac58399",class:"hy-profile-page__organization-units-section"},i("h3",{key:"6e50a953faf84296b5eb64d151d210833407ed0a"},g.label),i("ul",{key:"9507e35ee39f43f80aef643b6d1a420fe91af1b1",class:"hy-profile-page__organizations"},i("li",{key:"6a3ac8a036e6f7574a2a3ffc4a56def8f0a4e3e7"},g.items.map(((e,a)=>i("span",null,a>1&&i("hy-icon",{icon:"hy-icon-caret-right",size:10}),0!==a&&i("span",null,i("a",{href:f.people_finder_path[f.lang]+"?researchOrganizations.id[]="+e.id,target:"_blank"},e.name[f.lang])))))))),Object.keys(b.items).length>0&&i("section",{key:"039d9253b10acb9275a6a4dee087ebdc3ce77a28",class:"hy-profile-page__organization-units-section"},i("h3",{key:"58c84e81bb3881bfb7c36e4d0686122f909bf802"},b.label),i("ul",{key:"dff96020016cc6ff854b011c9233fa2ac284b402",class:"hy-profile-page__research-organizations"},Object.values(b.items).map((([...e])=>i("li",null,e.map(((e,t)=>i(a,null,t>1&&i("ul",null,i("li",null,i("span",null,i("hy-icon",{icon:"hy-icon-caret-right",size:10}),i("span",null,i("a",{href:f.people_finder_path[f.lang]+"?researchOrganizations.id[]="+e.id,target:"_blank"},e.name[f.lang]))))),1==t&&i("span",null,i("a",{href:f.people_finder_path[f.lang]+"?researchOrganizations.id[]="+e.id,target:"_blank"},e.name[f.lang]))))))))))),s&&0!==m&&i("section",{key:"6611936f1ad88960f7c297153423c4d8d394acc5",class:"hy-profile-page__section"},s.description&&i(a,{key:"661961252af443ec942ef21f8407f60f4a0c760d"},i("h2",{key:"0df70feef652e63b6570a145054c775591354199"},s.label),i("div",{key:"bfc3f40f42708d9667c9aabf51f3491e22eac572",class:"hy-profile-page__person-about-text",innerHTML:!this.isFullAboutTextHidden&&m>650?_:s.description})),m>650&&i("button",{key:"ba0a3ab0ea3294629c4a7c0b47e4286bd94c6b0f",class:"hy-profile-page__person-about-text-toggle",onClick:()=>this.toggleShowFullAboutText(),"aria-expanded":this.isFullAboutTextHidden?"true":"false"},this.isFullAboutTextHidden?this.hideFullAboutText:this.showFullAboutText)),(d&&d.items.length>0||h&&h.research_url.length>0)&&i("section",{key:"2c237919b3c75504349308a575ce1ff3eb05320e",class:"hy-profile-page__section"},i("div",{key:"5050c3d07cd642b29efb4eb5e1aecbb0d8c7d3a1",class:"hy-profile-page__section__research_title"},d.label&&i("h2",{key:"1b6fa2653211e9d566688d3efeeaf033b0286c2a"},d.label),d.label&&h.research_url.length>0&&i("hy-cta-button",{key:"2699d3035c73d3fc6eefa0a24d7d7424a5e24687","link-content":x,"sc-label":x,url:h.research_url,"is-external":"true",variant:n.onWhiteBkgd})),d.items&&i("hy-person-profile-listing",{key:"4d5ad95c80c514ad80342b13c5ab508cde82dbd5",items:d.items,col:"col-1",textSpacingTight:!0,"is-research":!0,inline:!0}),h.research_url.length>0&&i("div",{key:"0eae84935f45a141e262a25c0bdf03d772846dee",class:"hy-profile-page__loader",role:"presentation"},i("div",{key:"7f99c31162e6888b58e3cd87fab2f88f77faf6cd"}),i("div",{key:"9fd0df58bd6be0c4c5fe71c49cde485a0089f772"}),i("div",{key:"7f69774406429930084baa7750d6f641e3685d06"}),i("div",{key:"16214be9989569be8f3e6928cbd9bee5186a0a62"})),h.research_url.length>0&&this.viewportSize<768&&i("div",{key:"bc4ce938c83ae22398b345a5fad6a8e1c3f2c947",class:"hy-profile-page__person-content-container"},i("hy-accordion-container",{key:"7e87dac1a6aa86a428b9e51212503490e18a375a",accordionid:"accordion-container-person-content"},h.publications&&i("hy-accordion-item",{key:"2cab1dcfd03f46fd4d0f0640fd0b15a2613b6191","data-accordion-id":"publications",accordiontitle:h.publications.label}),h.projects&&i("hy-accordion-item",{key:"a376254683ee8b9c4b67863496fc3683ff1afb2b","data-accordion-id":"projects",accordiontitle:h.projects.label}),h.activities&&i("hy-accordion-item",{key:"5622332d128feafe8dad4f0adc51e11e794852ec","data-accordion-id":"activities",accordiontitle:h.activities.label}))),h.research_url.length>0&&this.viewportSize>=768&&i("div",{key:"9ba95c0264ad1832c30a1da39efc3655df57030d",class:"hy-profile-page__person-content-container"},i("hy-tabs",{key:"dc956780d9ef85d801347a53eec4c8c0bcdccc62","tab-id":"tabs-container-person-content"},h.publications&&i("hy-tabs-item",{key:"a0b9afcd88cc83ebcba3b75507d2df6fcff7c98a","data-tab-id":"publications","tab-title":h.publications.label}),h.projects&&i("hy-tabs-item",{key:"e5e93e568b57b33955bf48cfc6aed7d4bae5d63d","data-tab-id":"projects","tab-title":h.projects.label}),h.activities&&i("hy-tabs-item",{key:"c050c2d7336828642c566fa2b10117ee677df8bc","data-tab-id":"activities","tab-title":h.activities.label}))))))}};r.style="*{-webkit-box-sizing:border-box;box-sizing:border-box}.hy-profile-page__back-button{font-size:1rem;line-height:20px;font-weight:600;font-family:var(--main-font-family);letter-spacing:-0.5px;color:var(--brand-main-light);padding:12px 10px;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;text-decoration:none;margin-left:-10px;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin-bottom:16px}@media (min-width: 48rem){.hy-profile-page__back-button{margin-bottom:24px}}.hy-profile-page__back-button hy-icon{margin-right:16px}.hy-profile-page__back-button hy-icon svg{fill:var(--brand-main-light)}.hy-profile-page__section{padding:32px 0}.hy-profile-page__section:first-of-type{padding:0 0 32px}.hy-profile-page__section:not(:first-of-type){border-top:1px solid var(--grayscale-medium)}.hy-profile-page__section__research_title>h2,.hy-profile-page__section>h2{font-size:1.625rem;line-height:32px;font-weight:700;font-family:var(--main-font-family);letter-spacing:-0.52px;color:var(--grayscale-black);margin:0 0 32px}@media (min-width: 48rem){.hy-profile-page__section__research_title>h2,.hy-profile-page__section>h2{font-size:2.125rem;line-height:40px;letter-spacing:-0.68px}}.hy-profile-page__section__research_title{display:block;-webkit-box-align:center;-ms-flex-align:center;align-items:center}@media (min-width: 48rem){.hy-profile-page__section__research_title{display:-webkit-box;display:-ms-flexbox;display:flex}}.hy-profile-page__section__research_title>hy-cta-button{margin:0 0 32px 0}@media (min-width: 48rem){.hy-profile-page__section__research_title>hy-cta-button{margin:0 0 32px auto}}.hy-profile-page__organization-units-section{font-family:var(--main-font-family);padding:0;margin:0;list-style:none}.hy-profile-page__organization-units-section h3{font-size:0.9375rem;line-height:18px;font-weight:700;letter-spacing:-0.28px;color:var(--grayscale-black);margin:0 0 8px}@media (min-width: 48rem){.hy-profile-page__organization-units-section h3{font-size:1.0625rem;line-height:20px;letter-spacing:-0.32px}}.hy-profile-page__organization-units-section{margin-top:24px}@media (min-width: 48rem){.hy-profile-page__organization-units-section{margin-top:32px}}.hy-profile-page__organization-units-section a{text-decoration:none;color:var(--link-blue)}.hy-profile-page__organization-units-section a:hover{text-decoration:underline}.hy-profile-page__organizations,.hy-profile-page__organizations ul,.hy-profile-page__research-organizations,.hy-profile-page__research-organizations ul{list-style:none;margin:0;padding:0;display:grid;gap:8px}.hy-profile-page__organizations li,.hy-profile-page__research-organizations li{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.hy-profile-page__organizations li span,.hy-profile-page__research-organizations li span{font-size:0.9375rem;line-height:22px;font-weight:400;color:var(--grayscale-black)}@media (min-width: 48rem){.hy-profile-page__organizations li span,.hy-profile-page__research-organizations li span{font-size:1.0625rem;line-height:26px}}.hy-profile-page__organizations li>span,.hy-profile-page__research-organizations li>span{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex}.hy-profile-page__organizations li hy-icon,.hy-profile-page__research-organizations li hy-icon{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;height:22px;width:28px}@media (min-width: 48rem){.hy-profile-page__organizations li hy-icon,.hy-profile-page__research-organizations li hy-icon{height:26px}}.hy-profile-page__person-about-text{font-size:0.9375rem;line-height:22px;font-weight:400;font-family:var(--main-font-family);color:var(--grayscale-black)}@media (min-width: 48rem){.hy-profile-page__person-about-text{font-size:1.0625rem;line-height:26px}}.hy-profile-page__person-about-text-toggle{font-size:0.9375rem;line-height:22px;font-weight:400;font-family:var(--main-font-family);color:var(--link-blue);background-color:transparent;border:0;padding:0;margin:0}@media (min-width: 48rem){.hy-profile-page__person-about-text-toggle{font-size:1.0625rem;line-height:26px}}.hy-profile-page__person-about-text-toggle:hover{cursor:pointer}.hy-profile-page__person-information{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:16px;margin-bottom:24px}@media (min-width: 48rem){.hy-profile-page__person-information{-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin-bottom:40px;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}}.hy-profile-page__image{aspect-ratio:328/425;width:100%;max-width:328px;-o-object-fit:cover;object-fit:cover;background-color:var(--grayscale-background-box)}@media (min-width: 48rem){.hy-profile-page__image{max-width:194px}}.hy-profile-page__contact-information>h2{font-size:1.625rem;line-height:32px;font-weight:700;font-family:var(--main-font-family);letter-spacing:-0.52px;color:var(--grayscale-black);margin:0 0 32px}@media (min-width: 48rem){.hy-profile-page__contact-information>h2{font-size:2.125rem;line-height:40px;letter-spacing:-0.68px}}.hy-profile-page__name{font-size:2rem;line-height:38px;font-weight:700;font-family:var(--main-font-family);letter-spacing:-0.8px;color:var(--grayscale-black);margin:0 0 4px;text-transform:uppercase}@media (min-width: 60rem){.hy-profile-page__name{font-size:2.875rem;line-height:54px;letter-spacing:-1.15px;margin:0 0 8px}}@media (min-width: 120.0625rem){.hy-profile-page__name{font-size:3.25rem;line-height:60px;letter-spacing:-1.3px}}.hy-profile-page__job-title{font-size:1rem;line-height:20px;font-weight:700;font-family:var(--main-font-family);letter-spacing:-0.32px;color:var(--grayscale-black);margin:0 0 4px;text-transform:capitalize}@media (min-width: 60rem){.hy-profile-page__job-title{font-size:1.125rem;line-height:24px;letter-spacing:-0.36px}}.hy-profile-page__additional-information{font-size:0.9375rem;line-height:22px;font-weight:400;font-family:var(--main-font-family);color:var(--grayscale-dark-text);margin:0}@media (min-width: 60rem){.hy-profile-page__additional-information{font-size:1.0625rem;line-height:26px}}.hy-profile-page__person-content-container{display:none;margin-top:32px}@media (min-width: 48rem){.hy-profile-page__person-content-container{margin-top:44px}}.hy-profile-page__person-content-listing{display:grid;gap:32px;list-style:none;padding:0;margin:0}.hy-profile-page__person-content>h2{margin:0 0 8px}.hy-profile-page__person-content>h2 a{font-size:1.125rem;line-height:24px;font-weight:700;font-family:var(--main-font-family);letter-spacing:-0.36px;color:var(--link-blue);text-decoration:none}@media (min-width: 48rem){.hy-profile-page__person-content>h2 a{font-size:1.375rem;line-height:28px;letter-spacing:-0.44px}}.hy-profile-page__person-content>span,.hy-profile-page__person-content>p{font-size:0.9375rem;line-height:22px;font-weight:400;font-family:var(--main-font-family);color:var(--grayscale-dark-text)}@media (min-width: 48rem){.hy-profile-page__person-content>span,.hy-profile-page__person-content>p{font-size:1.0625rem;line-height:26px;letter-spacing:-0.44px}}.hy-profile-page__person-content>p{margin:8px 0 0}.hy-profile-page__loader{display:inline-block;position:relative;width:80px;height:80px;margin-top:32px}.hy-profile-page__loader.visible{display:block}.hy-profile-page__loader.hidden{display:none}@media (min-width: 48rem){.hy-profile-page__loader{margin-top:44px}}.hy-profile-page__loader div{-webkit-box-sizing:border-box;box-sizing:border-box;display:block;position:absolute;width:64px;height:64px;margin:8px;border:6px solid #fff;border-radius:50%;-webkit-animation:loader-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;animation:loader-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;border-color:var(--brand-main-light) transparent transparent transparent}.hy-profile-page__loader div:nth-child(1){-webkit-animation-delay:-0.45s;animation-delay:-0.45s}.hy-profile-page__loader div:nth-child(2){-webkit-animation-delay:-0.3s;animation-delay:-0.3s}.hy-profile-page__loader div:nth-child(3){-webkit-animation-delay:-0.15s;animation-delay:-0.15s}@-webkit-keyframes loader-ring{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes loader-ring{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.hidden{display:none;visibility:hidden}";export{r as hy_person_profile}
1
+ import{r as e,h as i,F as a,H as t}from"./index-2ffe17c9.js";import{d as n}from"./utils-1e7f5184.js";let o;const r=class{constructor(i){e(this,i),this.personDataJson=void 0,this.showFullAboutText=void 0,this.hideFullAboutText=void 0,this.organizationItemsLabelText=void 0,this.peopleFinderReturnLink=void 0,this.peopleFinderReturnLabel=void 0,this.isFullAboutTextHidden=!1,this.viewportSize=void 0}componentWillLoad(){this.viewportSize=window.innerWidth}toggleShowFullAboutText(){this.isFullAboutTextHidden=!this.isFullAboutTextHidden}disconnectedCallback(){clearTimeout(o)}render(){const{name:e,job_title:r,additional_information:l,image_url:c,contact_information:p,organization_units:f,about:s,research:d,person_content:h}=JSON.parse(this.personDataJson),{organizations:g,research_organizations:b}=f.items,y=s.description,m=y.length;let _="";m>650&&(_=this.isFullAboutTextHidden?y+"...":y.substring(0,650)+"..."),window.addEventListener("resize",(()=>{clearTimeout(o),o=setTimeout((()=>{this.viewportSize=window.innerWidth}),250)}));const x=`${d.research_portal_label}: ${e}`;return i(t,{key:"00fd25afa47ffc45c90c63dcf81ff0b955528d1d"},i("section",{key:"d231c98b8e4d318fd5fbb59d94e976b24b0d799c",class:"hy-profile-page"},i("a",{key:"082a752959d108b24c29082c0fe57ee54c8b4269",href:this.peopleFinderReturnLink,class:"hy-profile-page__back-button"},i("hy-icon",{key:"fe8b9f105fbff4845ec44bfa8cc47f6447f413ea",icon:"hy-icon-arrow-left",size:24}),i("span",{key:"631531abb7f234a7ca94cccc5b6e26bc2982d807"},this.peopleFinderReturnLabel)),i("section",{key:"b77d57951539d96a91cf7cd62501c5bd91c13d93",class:"hy-profile-page__section"},i("div",{key:"cef2e3cd80ce41e6091b8c1889e910c8dbe3851f",class:"hy-profile-page__person-information"},i("div",{key:"e7552781e25d46a5801a83b23c08612aff69f1c6"},i("h1",{key:"b3398968093121dd07f30368c315dde2ad0f5b2d",class:"hy-profile-page__name"},e),r&&i("p",{key:"11c9eaf8f00b2e017f6efd17e8799800104b573e",class:"hy-profile-page__job-title"},r),l&&i("p",{key:"efcad32ce03672da7f4f914478b3bc024e785156",class:"hy-profile-page__additional-information"},l)),c?i("img",{src:c,alt:"",class:"hy-profile-page__image"}):i("div",{class:"hy-profile-page__image","aria-hidden":"true"})),p&&i("div",{key:"550e9dfe4d9c743197f2f837e31e07a7c2bdc67f",class:"hy-profile-page__contact-information"},p.label&&i("h2",{key:"a521f18d072cdb5f96781f0ce7fc8b676b0e3820"},p.label),p.items&&i("hy-person-profile-listing",{key:"07a50c12144effd9bc73d8c5a8c062e31061f765",items:p.items,col:"col-4",withoutIcons:!0,textSpacingTight:!0}))),(g.items.length>0||Object.keys(b.items).length>0)&&i("section",{key:"6d32a234f4afa28e05eff4297b8b09dbaf6ef32a",class:"hy-profile-page__section"},f.label&&i("h2",{key:"7813840565525edf5ecefa2f4130697c4e98d28a"},f.label),g.items.length>0&&i("section",{key:"06c28944da1ce5485e10b6d90747415ddac58399",class:"hy-profile-page__organization-units-section"},i("h3",{key:"6e50a953faf84296b5eb64d151d210833407ed0a"},g.label),i("ul",{key:"9507e35ee39f43f80aef643b6d1a420fe91af1b1",class:"hy-profile-page__organizations"},i("li",{key:"6a3ac8a036e6f7574a2a3ffc4a56def8f0a4e3e7"},g.items.map(((e,a)=>i("span",null,a>1&&i("hy-icon",{icon:"hy-icon-caret-right",size:10}),0!==a&&i("span",null,i("a",{href:f.people_finder_path[f.lang]+"?researchOrganizations.id[]="+e.id,target:"_blank"},e.name[f.lang])))))))),Object.keys(b.items).length>0&&i("section",{key:"039d9253b10acb9275a6a4dee087ebdc3ce77a28",class:"hy-profile-page__organization-units-section"},i("h3",{key:"58c84e81bb3881bfb7c36e4d0686122f909bf802"},b.label),i("ul",{key:"dff96020016cc6ff854b011c9233fa2ac284b402",class:"hy-profile-page__research-organizations"},Object.values(b.items).map((([...e])=>i("li",null,e.map(((e,t)=>i(a,null,t>1&&i("ul",null,i("li",null,i("span",null,i("hy-icon",{icon:"hy-icon-caret-right",size:10}),i("span",null,i("a",{href:f.people_finder_path[f.lang]+"?researchOrganizations.id[]="+e.id,target:"_blank"},e.name[f.lang]))))),1==t&&i("span",null,i("a",{href:f.people_finder_path[f.lang]+"?researchOrganizations.id[]="+e.id,target:"_blank"},e.name[f.lang]))))))))))),s&&0!==m&&i("section",{key:"6611936f1ad88960f7c297153423c4d8d394acc5",class:"hy-profile-page__section"},s.description&&i(a,{key:"661961252af443ec942ef21f8407f60f4a0c760d"},i("h2",{key:"0df70feef652e63b6570a145054c775591354199"},s.label),i("div",{key:"bfc3f40f42708d9667c9aabf51f3491e22eac572",class:"hy-profile-page__person-about-text",innerHTML:!this.isFullAboutTextHidden&&m>650?_:s.description})),m>650&&i("button",{key:"ba0a3ab0ea3294629c4a7c0b47e4286bd94c6b0f",class:"hy-profile-page__person-about-text-toggle",onClick:()=>this.toggleShowFullAboutText(),"aria-expanded":this.isFullAboutTextHidden?"true":"false"},this.isFullAboutTextHidden?this.hideFullAboutText:this.showFullAboutText)),(d&&d.items.length>0||h&&h.research_url.length>0)&&i("section",{key:"2c237919b3c75504349308a575ce1ff3eb05320e",class:"hy-profile-page__section"},i("div",{key:"5050c3d07cd642b29efb4eb5e1aecbb0d8c7d3a1",class:"hy-profile-page__section__research_title"},d.label&&i("h2",{key:"1b6fa2653211e9d566688d3efeeaf033b0286c2a"},d.label),d.label&&h.research_url.length>0&&i("hy-cta-button",{key:"2699d3035c73d3fc6eefa0a24d7d7424a5e24687","link-content":x,"sc-label":x,url:h.research_url,"is-external":"true",variant:n.onWhiteBkgd})),d.items&&i("hy-person-profile-listing",{key:"4d5ad95c80c514ad80342b13c5ab508cde82dbd5",items:d.items,col:"col-1",textSpacingTight:!0,"is-research":!0,inline:!0}),h.research_url.length>0&&i("div",{key:"0eae84935f45a141e262a25c0bdf03d772846dee",class:"hy-profile-page__loader",role:"presentation"},i("div",{key:"7f99c31162e6888b58e3cd87fab2f88f77faf6cd"}),i("div",{key:"9fd0df58bd6be0c4c5fe71c49cde485a0089f772"}),i("div",{key:"7f69774406429930084baa7750d6f641e3685d06"}),i("div",{key:"16214be9989569be8f3e6928cbd9bee5186a0a62"})),h.research_url.length>0&&this.viewportSize<768&&i("div",{key:"bc4ce938c83ae22398b345a5fad6a8e1c3f2c947",class:"hy-profile-page__person-content-container"},i("hy-accordion-container",{key:"7e87dac1a6aa86a428b9e51212503490e18a375a",accordionid:"accordion-container-person-content"},h.publications&&i("hy-accordion-item",{key:"2cab1dcfd03f46fd4d0f0640fd0b15a2613b6191","data-accordion-id":"publications",accordiontitle:h.publications.label}),h.projects&&i("hy-accordion-item",{key:"a376254683ee8b9c4b67863496fc3683ff1afb2b","data-accordion-id":"projects",accordiontitle:h.projects.label}),h.activities&&i("hy-accordion-item",{key:"5622332d128feafe8dad4f0adc51e11e794852ec","data-accordion-id":"activities",accordiontitle:h.activities.label}))),h.research_url.length>0&&this.viewportSize>=768&&i("div",{key:"9ba95c0264ad1832c30a1da39efc3655df57030d",class:"hy-profile-page__person-content-container"},i("hy-tabs",{key:"dc956780d9ef85d801347a53eec4c8c0bcdccc62","tab-id":"tabs-container-person-content"},h.publications&&i("hy-tabs-item",{key:"a0b9afcd88cc83ebcba3b75507d2df6fcff7c98a","data-tab-id":"publications","tab-title":h.publications.label}),h.projects&&i("hy-tabs-item",{key:"e5e93e568b57b33955bf48cfc6aed7d4bae5d63d","data-tab-id":"projects","tab-title":h.projects.label}),h.activities&&i("hy-tabs-item",{key:"c050c2d7336828642c566fa2b10117ee677df8bc","data-tab-id":"activities","tab-title":h.activities.label}))))))}};r.style="*{-webkit-box-sizing:border-box;box-sizing:border-box}.hy-profile-page__back-button{font-size:1rem;line-height:20px;font-weight:600;font-family:var(--main-font-family);letter-spacing:-0.5px;color:var(--brand-main-light);padding:12px 10px;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;text-decoration:none;margin-left:-10px;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin-bottom:16px}@media (min-width: 48rem){.hy-profile-page__back-button{margin-bottom:24px}}.hy-profile-page__back-button hy-icon{margin-right:16px}.hy-profile-page__back-button hy-icon svg{fill:var(--brand-main-light)}.hy-profile-page__section{padding:32px 0}.hy-profile-page__section:first-of-type{padding:0 0 32px}.hy-profile-page__section:not(:first-of-type){border-top:1px solid var(--grayscale-medium)}.hy-profile-page__section__research_title>h2,.hy-profile-page__section>h2{font-size:1.625rem;line-height:32px;font-weight:700;font-family:var(--main-font-family);letter-spacing:-0.52px;color:var(--grayscale-black);margin:0 0 32px}@media (min-width: 48rem){.hy-profile-page__section__research_title>h2,.hy-profile-page__section>h2{font-size:2.125rem;line-height:40px;letter-spacing:-0.68px}}.hy-profile-page__section__research_title{display:block;-webkit-box-align:center;-ms-flex-align:center;align-items:center}@media (min-width: 48rem){.hy-profile-page__section__research_title{display:-webkit-box;display:-ms-flexbox;display:flex}}.hy-profile-page__section__research_title>hy-cta-button{margin:0 0 32px 0}@media (min-width: 48rem){.hy-profile-page__section__research_title>hy-cta-button{margin:0 0 32px auto}}.hy-profile-page__organization-units-section{font-family:var(--main-font-family);padding:0;margin:0;list-style:none}.hy-profile-page__organization-units-section h3{font-size:0.9375rem;line-height:18px;font-weight:700;letter-spacing:-0.28px;color:var(--grayscale-black);margin:0 0 8px}@media (min-width: 48rem){.hy-profile-page__organization-units-section h3{font-size:1.0625rem;line-height:20px;letter-spacing:-0.32px}}.hy-profile-page__organization-units-section{margin-top:24px}@media (min-width: 48rem){.hy-profile-page__organization-units-section{margin-top:32px}}.hy-profile-page__organization-units-section a{text-decoration:none;color:var(--link-blue)}.hy-profile-page__organization-units-section a:hover{text-decoration:underline}.hy-profile-page__organizations,.hy-profile-page__organizations ul,.hy-profile-page__research-organizations,.hy-profile-page__research-organizations ul{list-style:none;margin:0;padding:0;display:grid;gap:8px}.hy-profile-page__organizations li,.hy-profile-page__research-organizations li{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.hy-profile-page__organizations li span,.hy-profile-page__research-organizations li span{font-size:0.9375rem;line-height:22px;font-weight:400;color:var(--grayscale-black)}@media (min-width: 48rem){.hy-profile-page__organizations li span,.hy-profile-page__research-organizations li span{font-size:1.0625rem;line-height:26px}}.hy-profile-page__organizations li>span,.hy-profile-page__research-organizations li>span{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex}.hy-profile-page__organizations li hy-icon,.hy-profile-page__research-organizations li hy-icon{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;height:22px;width:28px}@media (min-width: 48rem){.hy-profile-page__organizations li hy-icon,.hy-profile-page__research-organizations li hy-icon{height:26px}}.hy-profile-page__person-about-text{font-size:0.9375rem;line-height:22px;font-weight:400;font-family:var(--main-font-family);color:var(--grayscale-black)}@media (min-width: 48rem){.hy-profile-page__person-about-text{font-size:1.0625rem;line-height:26px}}.hy-profile-page__person-about-text a{color:var(--link-blue);text-decoration:none}.hy-profile-page__person-about-text a:hover{text-decoration:underline}.hy-profile-page__person-about-text-toggle{font-size:0.9375rem;line-height:22px;font-weight:400;font-family:var(--main-font-family);color:var(--link-blue);background-color:transparent;border:0;padding:0;margin:0}@media (min-width: 48rem){.hy-profile-page__person-about-text-toggle{font-size:1.0625rem;line-height:26px}}.hy-profile-page__person-about-text-toggle:hover{cursor:pointer}.hy-profile-page__person-information{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:16px;margin-bottom:24px}@media (min-width: 48rem){.hy-profile-page__person-information{-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin-bottom:40px;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}}.hy-profile-page__image{aspect-ratio:328/425;width:100%;max-width:328px;-o-object-fit:cover;object-fit:cover;background-color:var(--grayscale-background-box)}@media (min-width: 48rem){.hy-profile-page__image{max-width:194px}}.hy-profile-page__contact-information>h2{font-size:1.625rem;line-height:32px;font-weight:700;font-family:var(--main-font-family);letter-spacing:-0.52px;color:var(--grayscale-black);margin:0 0 32px}@media (min-width: 48rem){.hy-profile-page__contact-information>h2{font-size:2.125rem;line-height:40px;letter-spacing:-0.68px}}.hy-profile-page__name{font-size:2rem;line-height:38px;font-weight:700;font-family:var(--main-font-family);letter-spacing:-0.8px;color:var(--grayscale-black);margin:0 0 4px;text-transform:uppercase}@media (min-width: 60rem){.hy-profile-page__name{font-size:2.875rem;line-height:54px;letter-spacing:-1.15px;margin:0 0 8px}}@media (min-width: 120.0625rem){.hy-profile-page__name{font-size:3.25rem;line-height:60px;letter-spacing:-1.3px}}.hy-profile-page__job-title{font-size:1rem;line-height:20px;font-weight:700;font-family:var(--main-font-family);letter-spacing:-0.32px;color:var(--grayscale-black);margin:0 0 4px;text-transform:capitalize}@media (min-width: 60rem){.hy-profile-page__job-title{font-size:1.125rem;line-height:24px;letter-spacing:-0.36px}}.hy-profile-page__additional-information{font-size:0.9375rem;line-height:22px;font-weight:400;font-family:var(--main-font-family);color:var(--grayscale-dark-text);margin:0}@media (min-width: 60rem){.hy-profile-page__additional-information{font-size:1.0625rem;line-height:26px}}.hy-profile-page__person-content-container{display:none;margin-top:32px}@media (min-width: 48rem){.hy-profile-page__person-content-container{margin-top:44px}}.hy-profile-page__person-content-listing{display:grid;gap:32px;list-style:none;padding:0;margin:0}.hy-profile-page__person-content>h2{margin:0 0 8px}.hy-profile-page__person-content>h2 a{font-size:1.125rem;line-height:24px;font-weight:700;font-family:var(--main-font-family);letter-spacing:-0.36px;color:var(--link-blue);text-decoration:none}@media (min-width: 48rem){.hy-profile-page__person-content>h2 a{font-size:1.375rem;line-height:28px;letter-spacing:-0.44px}}.hy-profile-page__person-content>span,.hy-profile-page__person-content>p{font-size:0.9375rem;line-height:22px;font-weight:400;font-family:var(--main-font-family);color:var(--grayscale-dark-text)}@media (min-width: 48rem){.hy-profile-page__person-content>span,.hy-profile-page__person-content>p{font-size:1.0625rem;line-height:26px;letter-spacing:-0.44px}}.hy-profile-page__person-content>p{margin:8px 0 0}.hy-profile-page__loader{display:inline-block;position:relative;width:80px;height:80px;margin-top:32px}.hy-profile-page__loader.visible{display:block}.hy-profile-page__loader.hidden{display:none}@media (min-width: 48rem){.hy-profile-page__loader{margin-top:44px}}.hy-profile-page__loader div{-webkit-box-sizing:border-box;box-sizing:border-box;display:block;position:absolute;width:64px;height:64px;margin:8px;border:6px solid #fff;border-radius:50%;-webkit-animation:loader-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;animation:loader-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;border-color:var(--brand-main-light) transparent transparent transparent}.hy-profile-page__loader div:nth-child(1){-webkit-animation-delay:-0.45s;animation-delay:-0.45s}.hy-profile-page__loader div:nth-child(2){-webkit-animation-delay:-0.3s;animation-delay:-0.3s}.hy-profile-page__loader div:nth-child(3){-webkit-animation-delay:-0.15s;animation-delay:-0.15s}@-webkit-keyframes loader-ring{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes loader-ring{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.hidden{display:none;visibility:hidden}";export{r as hy_person_profile}
@@ -50,7 +50,6 @@ export declare class SiteHeader {
50
50
  headerScrollDown: EventEmitter;
51
51
  menuMobileToggled: EventEmitter;
52
52
  menuMobileTopToggled: EventEmitter;
53
- private ro;
54
53
  private bottomObserver;
55
54
  private topObserver;
56
55
  private donateLink;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itcenteratunihelsinki/huds-lib",
3
- "version": "0.8.81",
3
+ "version": "0.8.83",
4
4
  "description": "Helsinki University Design System library",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.js",
@@ -70,5 +70,5 @@
70
70
  "pre-commit": "pretty-quick --staged"
71
71
  }
72
72
  },
73
- "gitHead": "cba58eda836b350567ecd35517aba67084bccebb"
73
+ "gitHead": "05742100d08eeaeebbfde63e48eaadad91f8d1df"
74
74
  }