1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5339],{6662:function(e,t,i){"use strict";i.d(t,{Z:function(){return c}});var l=i(85893),a=i(25675),n=i.n(a),s=i(96341),r=i(73241);let d=e=>{if("number"==typeof e||void 0===e)return e;{let t=Number.parseInt(e);if(Number.isNaN(t))return;return t}},o=e=>{let t=new URL(e.src),i={fit:t.searchParams.get("fit")||"max",w:e.width,h:void 0};return e.quality&&(i.q=e.quality),(0,s.KV)(e.src,i)},c=({field:e,imgixParams:t={},alt:i,fallbackAlt:a,layout:c="intrinsic",...u})=>{if(!r.S$(e))return null;{let m=(0,s.KV)(e.url,t),p=e.dimensions.width/e.dimensions.height,x=e.dimensions.width,h=e.dimensions.height;if(("intrinsic"===c||"fixed"===c)&&("width"in u||"height"in u)){let v=d(u.width),f=d(u.height);v?x=v:f&&(x=p*f),h=x/p}return(0,l.jsx)(n(),{src:m,width:"fill"===c?void 0:x,height:"fill"===c?void 0:h,alt:null!=i?i:e.alt||a,loader:o,layout:c,...u})}}},18339:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/[uid]",function(){return i(32577)}])},63448:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return m}});var l=i(85893),a=i(45697),n=i.n(a),s=i(2261);i(25194);var r=i(88644),d=i(66832),o=i(68854),c=i(32554),u=i(55101);function m(e){var t=e.partners,i=e.align,a=void 0===i?"center":i;return(0,l.jsx)("div",{className:"-mx-5 md:mx-0",children:(0,l.jsx)(s.tq,{autoplay:{delay:2e3,disableOnInteraction:!1,pauseOnMouseEnter:!0},modules:[d.pt],breakpoints:{0:{loop:!0,slidesPerView:"auto",spaceBetween:0,loopAddBlankSlides:!1},1024:{loop:!1,slidesPerView:4,spaceBetween:20}},children:(void 0===t?[]:t).map(function(e,t){return(0,l.jsx)(s.o5,{className:"min-w-64 w-auto-only-mobile !h-auto",children:(0,l.jsxs)("div",{className:"space-y-5",children:[(0,l.jsx)(r.Z,{title:null==e?void 0:e.partners_gallery_name,image:null==e?void 0:e.partners_gallery_image,align:a}),(0,l.jsxs)("div",{className:"space-y-2 mx-5 md:mx-0",children:[(null==e?void 0:e.partner_title)&&(0,l.jsx)("h3",{className:"text-lg leading-6 font-bold whitespace-pre-wrap",children:null==e?void 0:e.partner_title}),(0,u.Z)(null==e?void 0:e.partner_description)&&(0,l.jsx)("div",{className:"text-lg leading-6 whitespace-pre-wrap space-y-6 max-w-56",dangerouslySetInnerHTML:{__html:(0,o.D)(null==e?void 0:e.partner_description,null,c.j)}})]})]})},t)})})})}m.propTypes={partners:n().array}},88644:function(e,t,i){"use strict";i.d(t,{Z:function(){return c}});var l=i(85893),a=i(93967),n=i.n(a),s=i(32554),r=i(68854),d=i(6662),o=i(55101);function c(e){var t=e.title,i=e.description,a=e.image,c=e.align,u=void 0===c?"center":c;return(0,l.jsx)(l.Fragment,{children:a?(0,l.jsxs)("div",{className:n()("w-full h-full p-5 pt-7 bg-grey-3 flex flex-col justify-between min-h-[148px]",{"items-center":"center"===u,"items-start":"start"===u,"items-end":"end"===u}),children:[(0,l.jsx)("div",{className:"text-sm",children:t}),(0,l.jsx)("div",{className:"relative h-20 w-full overflow-hidden",children:(0,l.jsx)(d.Z,{field:a,sizes:"(max-width: 768px) 600px, 300px",layout:"fill",objectFit:"contain",objectPosition:function(){switch(u){case"center":return"center";case"start":return"left";case"end":return"right"}}()})})]}):(0,l.jsx)("article",{children:(0,l.jsxs)("div",{className:n()("p-4 bg-grey-3 overflow-hidden",{"text-center":"center"===u}),children:[t&&(0,l.jsx)("h4",{className:"font-bold whitespace-pre-line mb-2 text-lg leading-6",children:t}),(null==i?void 0:i.length)>0&&""!==(0,o.Z)(i)&&(0,l.jsx)("div",{className:"text-sm leading-[18px] text-black-1 whitespace-pre-line",dangerouslySetInnerHTML:{__html:(0,r.D)(i,null,s.j)}})]})})})}},32577:function(e,t,i){"use strict";i.r(t),i.d(t,{__N_SSP:function(){return y},default:function(){return b}});var l=i(85893),a=i(9008),n=i.n(a),s=i(82791),r=i(30493),d=i(68854),o=i(24735),c=i(6662),u=i(32554),m=i(96749),p=i(49822),x=i(37673),h=i(21702),v=i(4433),f=i(52077),_=i(63448),g=i(93967),w=i.n(g),j=i(55101),y=!0;function b(e){var t,i,a=(0,s.$G)("common").t;return(null==e?void 0:e.error)?(0,l.jsx)(m.Z,{data:e}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(n(),{children:(0,l.jsx)("title",{children:e.title.text+" | Triennale Milano"})}),(0,l.jsxs)(p.Z,{layoutData:e,children:[(0,l.jsx)(x.Z,{left:{label:e.title.text},right:{start_date:e.start_date,end_date:e.end_date,specific_date:null},divider:!0,locale:null==e?void 0:e.locale}),(null==e?void 0:e.embedVideo)?(0,l.jsx)("div",{suppressHydrationWarning:!0,className:"mt-5 w-full [&>iframe]:h-full [&>iframe]:w-full [&>iframe]:max-h-full",style:{aspectRatio:e.aspectRatio},dangerouslySetInnerHTML:{__html:e.embedVideo}}):(0,l.jsxs)("div",{className:"mt-5 space-y-1",children:[(0,l.jsx)("div",{className:w()({"block nm:hidden":(0,r.D)(e.cover_image_mobile)}
1),children:(0,l.jsx)(c.Z,{field:e.cover_image_mobile,sizes:"(max-width: 768px) 100vw, (max-width: 1525px) calc(100vw - 250px), 1250px",layout:"responsive"})}),(0,l.jsx)("div",{className:w()({"hidden nm:block":(0,r.D)(e.cover_image_mobile)}),children:(0,l.jsx)(c.Z,{field:e.cover_image,sizes:"(max-width: 768px) 100vw, (max-width: 1525px) calc(100vw - 250px), 1250px",layout:"responsive"})}),e.cover_image_caption&&(0,l.jsx)("div",{className:"text-xs leading-4",dangerouslySetInnerHTML:{__html:(0,d.D)(e.cover_image_caption,null,u.j)}})]}),(0,l.jsx)(v.Z,{}),(0,l.jsxs)("div",{className:"grid grid-cols-2 gap-5",children:[(0,l.jsxs)("div",{className:"col-span-2 nm:col-span-1 my-2 nm:max-w-[515px] space-y-6",children:[(0,l.jsx)("div",{className:"text-lg leading-6 whitespace-pre-line space-y-2.5",dangerouslySetInnerHTML:{__html:(0,d.D)(e.description,null,u.j)}}),(0,l.jsx)("div",{className:"w-full md:w-auto flex flex-wrap gap-4",children:e.additional_text.map(function(e,t){if((0,o.s)(e.abstract_link_link)&&(0,j.Z)(e.abstract_link_label))return(0,l.jsx)(f.Z,{label:(0,j.Z)(e.abstract_link_label),variant:t?"secondary":"primary",customClass:"w-full md:w-fit md:min-w-60 justify-center py-[14px] px-8 text-sm leading-[18px] font-bold",href:(0,o.s)(e.abstract_link_link),textColor:t?"black-1":"white",bgColor:t?"white":"black-1",redirect:"Sito web esterno"===e.abstract_link_type},t)})})]}),(0,j.Z)(null==e?void 0:e.abstract_video)?(0,l.jsx)("div",{suppressHydrationWarning:!0,className:"col-span-2 nm:col-span-1 md:pl-3 md:pt-3 w-full [&>iframe]:h-full [&>iframe]:w-full [&>iframe]:max-h-full aspect-video",dangerouslySetInnerHTML:{__html:(0,j.Z)(null==e?void 0:e.abstract_video)}}):e.abstract_image&&(0,l.jsxs)("div",{className:"col-span-2 nm:col-span-1 md:pl-3 md:pt-3 space-y-1",children:[(0,l.jsx)(c.Z,{field:e.abstract_image,sizes:"(max-width: 768px) 100vw, (max-width: 1024px) calc(100vw - 250px), (max-width: 1525px) calc((100vw - 250px) / 2), 625px",layout:"responsive"}),(0,l.jsx)("div",{className:"text-xs leading-4",dangerouslySetInnerHTML:{__html:(0,d.D)(e.abstract_image_caption,null,u.j)}})]})]}),e.related_events.map(function(t,i){var a,n;return(0,l.jsx)("div",{id:null===(n=null===(a=(0,j.Z)(t.title))||void 0===a?void 0:a.replaceAll(/[^\w\d]/g,"_"))||void 0===n?void 0:n.toLocaleLowerCase(),children:(0,l.jsx)(h.Z,{header:{title:t.title,eventType:t.cardType,start_date:t.date.start_date,end_date:t.date.end_date,specific_date:t.date.specific_date,only_month:t.date.only_month,additional_info:t.additional_info,sold_out:t.sold_out,entrance:t.entrance,author:t.author,description:t.description,location:t.location},slug:t.slug,image:t.cover_image,imageCaption:t.cover_image_caption,horizontal:!0,type:"container",locale:null==e?void 0:e.locale})},i)}),e.related_articles.length>0&&(0,l.jsxs)("div",{className:"mb-10",children:[(0,l.jsx)(v.Z,{}),(0,l.jsx)("h2",{className:"font-bold whitespace-pre-line my-10 text-2xl lg:text-3xl",children:a("Articoli correlati")}),(0,l.jsx)("div",{className:"grid grid-cols-1 nm:grid-cols-2 gap-x-4 gap-y-14",children:e.related_articles.map(function(t,i){return(0,l.jsx)("div",{className:"col-span-1",children:(0,l.jsx)(h.Z,{header:{title:t.title,author:t.author,eventType:t.cardType,start_date:t.date,end_date:null,specific_date:null},slug:t.slug,image:t.cover_image,horizontal:!0,square:!0,locale:null==e?void 0:e.locale})},i)})})]}),(null==e?void 0:null===(t=e.international_participations)||void 0===t?void 0:t.find(function(e){return!!e.nation}))&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:"py-10 font-bold text-3xl leading-9",children:a("Partecipazioni Internazionali")}),(0,l.jsx)("div",{className:"sm:columns-2 nm:columns-4 space-y-3 mb-8",children:null==e?void 0:null===(i=e.international_participations)||void 0===i?void 0:i.map(function(t,i){var a,n,s;return(0,l.jsx)("div",{id:null===(n=null==t?void 0:null===(a=t.nation)||void 0===a?void 0:a.replaceAll(/[^\w\d]/g,"_"))||void 0===n?void 0:n.toLowerCase(),className:"col-span-1",children:(0,l.jsx)(f.Z,{variant:"text",href:"".concat(null==t?void 0:null===(s=t.value)||void 0===s?void 0:s.url,"?parentId=").concat(null==e?void 0:e.id),label:null==t?void 0:t.nation,customClass:"font-bold text-xl"})},i)})})]}),e.sponsors&&e.sponsors.length>0&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(v.Z,{margin:"big"}),(0,l.jsx)(_.default,{partners:e.sponsors})]})]})]})}},30493:function(e,t,i){"use strict";i.d(t,{D:function(){return n}});var l=i(96341),a=i(73241);let n=(e,t={})=>e&&(0,a.S$)(e)?(0,l.KV)(e.url,t):null},73241:function(e,t,i){"use strict";i.d(t,{S$:function(){return a}});let l=e=>null!=e,a=e=>l(e)&&!!e.url,n=e=>l(n)&&!!e},96341:function(e,t,i){"use strict";i.d(t,{KV:function(){return a}});let l=e=>e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`),a=(e,t)=>{let i=new URL(e);for(let a in t){let n=l(a),s=t[a];void 0===s?i.searchParams.delete(n):Array.isArray(s)?i.searchParams.set(n,s.join(",")):i.searchParams.set(n,`${s}`)}let r=i.searchParams.get("s");return r&&(i.searchParams.delete("s"),i.searchParams.append("s",r)),i.toString()}}},function(e){e.O(0,[1606,372,6832,9613,6540,9774,2888,179],function(){return e(e.s=18339)}),_N_E=e.O()}]);
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.