{"version":3,"file":"InstitutionConnections.BK9m1LS7.mjs","names":["React.useState","c","__esmMin","init_npm_react_18_3_1","_e","p","c","init_jsx_runtime","ce","url","u","value","connectionLabel","labels","locale","InstitutionLogo","failed","setFailed","src","InstitutionConnections","list","connections","tr","en","pt","es","education","groups","style","g","c$1","i","init_InstitutionConnections"],"sources":["https:/framerusercontent.com/modules/O7sX2xqJR45lQxmP0kIB/lAlFMDikoodhjIIt5yQ6/InstitutionConnections.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";const labels={MEMBER_PERFORMER:[\"Integrante / int\\xe9rprete\",\"Member / performer\",\"Integrante / int\\xe9rprete\"],CONDUCTOR:[\"Direcci\\xf3n musical\",\"Conductor\",\"Reg\\xeancia\"],RECORDINGS:[\"Grabaciones\",\"Recordings\",\"Grava\\xe7\\xf5es\"],DIRECTOR:[\"Direcci\\xf3n\",\"Director\",\"Dire\\xe7\\xe3o\"],GUEST_ARTIST:[\"Artista invitado/a\",\"Guest artist\",\"Artista convidado/a\"],GRADUATE:[\"Graduado/a\",\"Graduate\",\"Graduado/a\"],TEACHING:[\"Docencia\",\"Teaching\",\"Doc\\xeancia\"],GUEST_TEACHER:[\"Docente invitado/a\",\"Guest teacher\",\"Docente convidado/a\"],JURY:[\"Jurado\",\"Jury member\",\"J\\xfari\"],COMPETITION_WINNER:[\"Premio en concurso\",\"Competition winner\",\"Premia\\xe7\\xe3o em concurso\"],EDUCATION:[\"Formaci\\xf3n\",\"Education\",\"Forma\\xe7\\xe3o\"],PROFESSIONAL_APPOINTMENT:[\"Cargo profesional\",\"Professional appointment\",\"Cargo profissional\"],PERFORMANCES:[\"Presentaciones\",\"Performances\",\"Apresenta\\xe7\\xf5es\"]};function url(value){try{const u=new URL(value||\"\");return[\"https:\",\"http:\"].includes(u.protocol)?u.href:undefined;}catch{return undefined;}}function connectionLabel(value,locale){return(labels[value]||[\"Otra conexi\\xf3n\",\"Other connection\",\"Outra conex\\xe3o\"])[locale===\"en\"?1:locale===\"pt\"?2:0];}function InstitutionLogo({src}){const[failed,setFailed]=React.useState(false);React.useEffect(()=>setFailed(false),[src]);return failed?null:/*#__PURE__*/_jsx(\"img\",{src:src,alt:\"\",loading:\"lazy\",onError:()=>setFailed(true),style:{display:\"block\",width:88,height:56,objectFit:\"contain\",flexShrink:0}});}/** @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight auto */export default function InstitutionConnections({connections,locale=\"es\",style}){const list=Array.isArray(connections)?connections.filter(c=>c&&typeof c.institutionName===\"string\"&&c.institutionName.trim()):[];if(!list.length)return null;const tr=(es,en,pt)=>locale===\"en\"?en:locale===\"pt\"?pt:es;const education=c=>c.relationship===\"EDUCATION\"||c.relationship===\"GRADUATE\";const groups=[{title:tr(\"V\\xednculos actuales\",\"Current connections\",\"V\\xednculos atuais\"),items:list.filter(c=>!education(c)&&c.isCurrent===true)},{title:tr(\"Colaboraciones anteriores\",\"Past collaborations\",\"Colabora\\xe7\\xf5es anteriores\"),items:list.filter(c=>!education(c)&&c.isCurrent!==true)},{title:tr(\"Formaci\\xf3n\",\"Education\",\"Forma\\xe7\\xe3o\"),items:list.filter(education)}];return /*#__PURE__*/_jsxs(\"section\",{\"aria-label\":tr(\"V\\xednculos personales con instituciones\",\"Personal institution connections\",\"V\\xednculos pessoais com institui\\xe7\\xf5es\"),style:{...style,width:\"100%\",minWidth:0,boxSizing:\"border-box\",fontFamily:\"'Inter',sans-serif\",color:\"#141312\",overflowWrap:\"anywhere\"},children:[/*#__PURE__*/_jsx(\"h2\",{style:{fontFamily:\"'Cormorant Garamond',serif\",fontSize:32,fontWeight:400,lineHeight:1.15,margin:\"0 0 10px\"},children:tr(\"V\\xednculos con instituciones\",\"Institution connections\",\"V\\xednculos com institui\\xe7\\xf5es\")}),/*#__PURE__*/_jsx(\"p\",{style:{fontSize:12,lineHeight:1.6,color:\"#6b6661\",margin:\"0 0 24px\"},children:tr(\"V\\xednculos de la trayectoria personal; no representan alianzas ni respaldos institucionales a Vivat.\",\"Connections in this person’s career; they do not indicate institutional partnerships with or endorsement of Vivat.\",\"V\\xednculos da trajet\\xf3ria pessoal; n\\xe3o representam parcerias nem apoio institucional \\xe0 Vivat.\")}),groups.filter(g=>g.items.length).map(g=>/*#__PURE__*/_jsxs(\"div\",{style:{marginTop:24},children:[/*#__PURE__*/_jsx(\"h3\",{style:{fontSize:13,fontWeight:600,margin:\"0 0 12px\"},children:g.title}),/*#__PURE__*/_jsx(\"div\",{style:{display:\"grid\",gridTemplateColumns:\"repeat(auto-fit,minmax(min(100%,300px),1fr))\",gap:12},children:g.items.map((c,i)=>/*#__PURE__*/_jsxs(\"article\",{style:{minWidth:0,padding:20,border:\"1px solid #ded8ce\",borderRadius:12,background:\"#fff\"},children:[/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexWrap:\"wrap\",gap:16,alignItems:\"center\"},children:[url(c.logoUrl)&&/*#__PURE__*/_jsx(InstitutionLogo,{src:url(c.logoUrl)}),/*#__PURE__*/_jsxs(\"div\",{style:{minWidth:0,flex:\"1 1 160px\"},children:[/*#__PURE__*/_jsx(\"h4\",{style:{fontSize:16,fontWeight:600,lineHeight:1.4,margin:\"0 0 6px\"},children:c.institutionName}),/*#__PURE__*/_jsx(\"p\",{style:{color:\"#b91920\",fontSize:12,lineHeight:1.5,margin:0},children:connectionLabel(c.relationship,locale)})]})]}),c.description&&/*#__PURE__*/_jsx(\"p\",{style:{fontSize:14,lineHeight:1.6,whiteSpace:\"pre-line\",margin:\"14px 0 0\"},children:c.description}),c.institutionDescription&&/*#__PURE__*/_jsxs(\"details\",{style:{fontSize:12,color:\"#6b6661\",lineHeight:1.6,marginTop:12},children:[/*#__PURE__*/_jsx(\"summary\",{style:{cursor:\"pointer\",minHeight:44,display:\"list-item\",alignContent:\"center\"},children:tr(\"Sobre la instituci\\xf3n\",\"About the institution\",\"Sobre a institui\\xe7\\xe3o\")}),/*#__PURE__*/_jsx(\"p\",{style:{margin:\"4px 0 0\",whiteSpace:\"pre-line\"},children:c.institutionDescription})]}),url(c.websiteUrl)&&/*#__PURE__*/_jsxs(\"a\",{href:url(c.websiteUrl),target:\"_blank\",rel:\"noopener noreferrer\",\"aria-label\":tr(\"Sitio web de \",\"Website: \",\"Site de \")+c.institutionName,style:{display:\"inline-flex\",alignItems:\"center\",minHeight:44,fontSize:12,color:\"#141312\",textUnderlineOffset:4,marginTop:8},children:[tr(\"Sitio web\",\"Website\",\"Site\"),\" ↗\"]})]},c.id||i))})]},g.title))]});}\nexport const __FramerMetadata__ = {\"exports\":{\"ConnectionLocale\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"InstitutionConnection\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"reactComponent\",\"name\":\"InstitutionConnections\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any\",\"framerSupportedLayoutHeight\":\"\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./InstitutionConnections.map"],"mappings":"A,gIAAs8B,SAASS,EAAI,EAAM,CAAC,GAAG,CAAC,IAAMC,EAAE,IAAI,IAAIC,GAAO,EAAE,EAAE,MAAM,CAAC,SAAS,OAAO,CAAC,CAAC,SAASD,EAAE,QAAQ,EAAEA,EAAE,KAAK,IAAA,EAAU,MAAM,CAAC,MAAiB,CAAC,CAAC,SAASE,EAAgB,EAAM,EAAO,CAAC,OAAOC,EAAOF,IAAQ,CAAC,gBAAmB,mBAAmB,eAAkB,EAAA,CAAGG,IAAS,KAAK,EAAEA,IAAS,KAAK,EAAE,EAAG,CAAC,SAASC,EAAgB,CAAC,OAAK,CAAC,GAAK,CAACC,EAAOC,GAAWjB,EAAe,EAAK,EAA8C,OAA5CQ,MAAoBS,EAAU,EAAK,EAAE,CAACC,CAAG,CAAC,EAASF,EAAO,KAAkB,gBAAK,MAAM,CAAK,MAAI,IAAI,GA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