1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6945],{6945:(e,l,t)=>{t.r(l),t.d(l,{default:()=>j});var a=t(23798),s=t(21462),i=t(74574),n=t.n(i),d=t(65860),r=t.n(d),c=t(91902),o=t(56013),m=t(61112),u=t(56802),x=t(44809),h=t(94515);t(30430),t(12819);var g=t(88779),v=t(60929),p=t(50207);t(65970),t(82202),t(17426),t(29292),t(67467),t(82186);var f=t(96038),w=t(27062),b=t(63518);function j(e){var l,t,i,d;let j=(null==e?void 0:e.editions)||[],[N,y]=(0,s.useState)(j[0]),[k,_]=(0,s.useState)(0),[C,A]=(0,s.useState)(0),S=e=>e>18?"w-2":e>14?"w-4":"w-6";return(0,a.jsxs)("div",{className:"w-full pt-10 sm:pb-[32px] lg:pb-[50px]",children:[(0,a.jsx)("div",{className:"w-full font-light leading-[42px] tracking-[-0.8px] sm:text-center sm:text-[24px] md:text-[32px] lg:text-left lg:text-[40px]",children:w.n[e.locale].Peditions.pastEditions}),(0,a.jsx)("div",{className:"my-5 flex gap-2 overflow-scroll",children:null==e||null==(l=e.editions)?void 0:l.map(e=>(0,a.jsx)(u.A,{active:(null==N?void 0:N.id)===e.id,onClick:()=>y(e),children:e.short_title},e.id))}),(null==N?void 0:N.id)?(0,a.jsx)("div",{className:"mx-auto flex max-w-[974px] sm:w-[328px] sm:flex-col md:w-full md:flex-row",children:(0,a.jsxs)("div",{className:" flex w-full flex-col bg-white sm:w-[328px] sm:text-center md:w-full md:text-left lg:h-full lg:w-full",children:[(0,a.jsx)("span",{className:"w-full font-bold leading-10 sm:text-[28px] md:text-[32px] lg:pb-4 lg:text-4xl",children:null==N?void 0:N.title}),(0,a.jsxs)("span",{className:"font-bold sm:text-[16px] sm:leading-8 md:text-xl md:leading-10 lg:pb-3 lg:text-2xl",children:[N.subtitle," | ",N.header,"\xa0"]}),(0,a.jsx)("span",{class:"leading-6 sm:mb-8 sm:text-base md:mb-10 lg:mb-8 lg:text-lg ",children:N.description}),(0,a.jsxs)("div",{className:"-mt-10 flex sm:flex-col sm:items-center md:flex-row md:items-start lg:flex-row ",children:[(null==N||null==(t=N.download_urls)?void 0:t.length)>0?(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)(v.W1,{as:"div",className:"relative w-[225px] sm:mt-5 lg:mr-6 lg:mt-10",children:[(0,a.jsx)(v.W1.Button,{as:g.A,color:"secondary-light",className:"h-[52px] w-full border border-neutral-900",label:w.n[e.locale].Peditions.downloadPrograms,trailingIcon:(0,a.jsx)(c.A,{width:32,height:32})}),(0,a.jsx)(v.W1.Items,{as:"div",className:"absolute z-10 w-full bg-white",children:null==N?void 0:N.download_urls.map((e,l)=>(0,a.jsx)(v.W1.Item,{children:l=>{let{active:t}=l;return(0,a.jsx)(r(),{href:null==e?void 0:e.download_url,target:"_blank",children:(0,a.jsxs)("div",{className:"flex cursor-pointer items-center border border-t-0 border-gray-500 p-3 active:bg-black active:text-white ".concat(t?"bg-neutral-50":""),children:[(0,a.jsx)("div",{className:"group grow ",children:(0,a.jsx)(p.JU,{size:"sm",as:"p",className:"text-neutral-1000 group-active:text-white",children:e.name})}),(0,a.jsx)("div",{className:"text-neutral-800 group-active:text-white/60",children:(0,a.jsx)(o.A,{className:"h-5 w-5"})})]})})}},l))})]})}):null,(null==N?void 0:N.link)&&(0,a.jsx)(r(),{href:null==N?void 0:N.link,passHref:!0,children:(0,a.jsx)(g.A,{color:"terciary-light",size:"lg",className:"w-[225px] sm:mt-5 md:ml-4 lg:mr-6 lg:mt-10",trailingIcon:(0,a.jsx)(m.A,{}),label:w.n[e.locale].Peditions.seeFilmCatalogue})},null==N?void 0:N.link)]}),(0,a.jsxs)("div",{id:"poster",className:"my-8 grid gap-4 md:grid-cols-12 ",children:[(0,a.jsx)("div",{className:"md:col-span-4",children:(0,a.jsx)(n(),{width:360,height:470,src:(0,b.RJ)(null==N?void 0:N.preview_image,"medium"),className:"h-96 w-80",alt:N.id})}),(0,a.jsx)("div",{id:"video",className:" h-full sm:max-w-[328px] md:col-span-8 md:max-w-none",children:N.video_url?(0,a.jsx)(f.default,{urlVideo:null==N?void 0:N.video_url},N.video_url):null}),(0,a.jsx)("div",{className:"relative h-full pt-4 sm:max-w-[328px] md:col-span-6 md:max-w-none",children:N.media&&N.media.length>0?(0,a.jsxs)(h.RC,{modules:[x.dK],spaceBetween:10,slidesPerView:"auto",pagination:{el:"#paginator1",clickable:!0,type:"bullets",currentClass:"bg-neutral-900 ",bulletClass:"inline-block ".concat(S(null==(i=N.media)?void 0:i.length)," h-1 bg-gray-200 mx-1"),bulletActiveClass:"bg-neutral-900"},onSlideChange:e=>_(e.activeIndex),children:[N.media.map((e,l)=>(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)(h.qr,{children:[(0,a.jsx)("h1",{className:"truncate font-bold sm:text-[16
1px] sm:leading-8 md:text-xl md:leading-10 lg:pb-3 lg:text-2xl",children:e.title}),(0,a.jsx)("div",{className:"relative h-80 w-full overflow-hidden",children:(0,a.jsx)("div",{className:"h-0 w-full pb-[56.25%]",children:(0,a.jsx)(n(),{src:(0,b.RJ)(null==e?void 0:e.image,"medium"),alt:"Media ".concat(l),layout:"fill",objectFit:"cover"})})})]},l)})),(0,a.jsx)("div",{children:(0,a.jsx)("div",{id:"paginator1",className:"cursor-pointer text-center"})}),null!==k&&N.media[k]&&(0,a.jsx)("p",{className:"text-wrap text-base",children:N.media[k].description})]}):null},"momentos"),(0,a.jsx)("div",{className:"relative h-full pt-4 sm:max-w-[328px] md:col-span-6 md:max-w-none",children:N.media2&&N.media2.length>0?(0,a.jsxs)(h.RC,{modules:[x.dK],spaceBetween:10,slidesPerView:"auto",pagination:{el:"#paginator2",clickable:!0,type:"bullets",currentClass:"bg-neutral-900 ",bulletClass:"inline-block ".concat(S(null==(d=N.media2)?void 0:d.length)," h-1 bg-gray-200 mx-1"),bulletActiveClass:"bg-neutral-900"},onSlideChange:e=>A(e.activeIndex),children:[N.media2.map((e,l)=>(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(h.qr,{children:(0,a.jsxs)("div",{className:" h-fit",children:[(0,a.jsx)("h1",{className:"truncate font-bold sm:text-[16px] sm:leading-8 md:text-xl md:leading-10 lg:pb-3 lg:text-2xl",children:e.title}),(0,a.jsx)("div",{className:"relative flex h-80 w-full overflow-hidden",children:(0,a.jsx)("div",{className:"h-0 w-full",children:(0,a.jsx)(n(),{src:(0,b.RJ)(null==e?void 0:e.image,"medium"),alt:"Media ".concat(l),layout:"fill",objectFit:"cover"})})})]})},l)})),(0,a.jsx)("div",{children:(0,a.jsx)("div",{id:"paginator2",className:"cursor-pointer text-center"})}),null!==C&&N.media2[C]&&(0,a.jsx)("p",{className:"text-wrap text-base",children:N.media2[C].description})]}):null},"invitades")]})]})}):null]})}},96038:(e,l,t)=>{t.r(l),t.d(l,{default:()=>c});var a=t(23798),s=t(21462),i=t(39364),n=t.n(i);let d={vimeoUrl:"https://vimeo.com/api/oembed.json?url=",youtubeUrl:"https://www.youtube.com/oembed?url=",removeDimensions:e=>e.replace(/width="\d+"/g,"").replace(/height="\d+"/g,"")},r=async e=>{try{let l=null;return e.includes("youtube")?l=(await n().get("".concat(d.youtubeUrl).concat(e))).data:e.includes("vimeo")&&(l=(await n().get("".concat(d.vimeoUrl).concat(e))).data),l.html=d.removeDimensions(l.html),l}catch(e){return console.error(e),null}};function c(e){let{urlVideo:l}=e,[t,i]=(0,s.useState)(null),[n,d]=(0,s.useState)(!1),c=(0,s.useRef)(null);async function o(e){e&&(i(await r(l)),d(!n))}return(0,s.useEffect)(()=>{o(l)},[]),(0,s.useEffect)(()=>{t&&t.html&&(t.html=t.html.replace("<iframe",'<iframe width="100%" height="100%"'))},[t]),(0,a.jsx)("div",{className:"relative w-full h-full overflow-hidden bg-no-repeat bg-cover aspect-video auto-resizable-iframe",children:n?(0,a.jsx)("div",{className:"object-cover w-full h-full max-w-full max-h-full",dangerouslySetInnerHTML:{__html:null==t?void 0:t.html},ref:c}):(0,a.jsx)("img",{src:null==t?void 0:t.thumbnail_url,alt:null==t?void 0:t.title,className:"object-cover w-full h-full overflow-hidden transition duration-500 ease-in-out cursor-pointer hover:scale-125",onClick:()=>d(!n)})})}}}]); 2//# sourceMappingURL=6945-a0dab6ce8ad77f84.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.