PageSourceSearch

https://www.sdabocconi.it/_next/static/chunks/6617.468e0ea9e0a00715.js?dpl=dpl_2cYjvZJ245YNqzJEQJWKeFHaqu7a

js sdabocconi.it collected 2026-10-01 10:19:13 UTC 14,526 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6617],{76617:function(e,t,l){"use strict";l.r(t),l.d(t,{default:function(){return T}});var n=l(85893),o=l(24909),i=l.n(o),a=l(67294),r=l(57496),s=l(83940),u=l(94302),d=l(73119),c=l(16887),m=l(98997),v=l(80008),_=l.n(v),h=l(31660),f=l(11163);function g(e){var t,l,o,i;let{item:a,layout:r,template:s,tag:v="li",mobileSize:g,extraButtons:b,infoBulletsAlign:p}=e,{t:y}=(0,c.$G)("common"),{locale:x}=(0,f.useRouter)(),j=null!==(o=(0,d.Vb)(null==a?void 0:a.timezone_offset))&&void 0!==o?o:_().tz.guess(),w=parseInt((0,d.Vb)(null==a?void 0:a.start_date))+parseInt((0,d.Vb)(null==a?void 0:a.start_time)),M=parseInt((0,d.Vb)(null==a?void 0:a.end_date))+parseInt((0,d.Vb)(null==a?void 0:a.end_time)),z=_().tz(_().unix(w),"UTC").tz(j),k=_().tz(_().unix(M),"UTC"),L=z.isSame(k,"day")?null:{label:y("date_to"),day:k.format("DD"),month:k.format("MMMM"),year:k.format("YYYY")},A=(0,d.Vb)(null==a?void 0:a.status_option),C=(0,d.Vb)(null==a?void 0:a.signup_link),N="".concat((0,d.Vb)(null==a?void 0:a.url),"/eventsignup"),S=!1;"off"===A?S=!1:"route:"===C?S=!1:"on"===A?S=!0:"auto"===A&&(S=z.isAfter());let Z=(0,d.Vb)(null==a?void 0:a.hide_page),Y={eventName:(0,d.Vb)(null==a?void 0:a.title),startDate:{timestamp:(0,d.Vb)(null==a?void 0:a.start_date)},endDate:{timestamp:(0,d.Vb)(null==a?void 0:a.end_date)},abstract:{processed:(0,d.Vb)(null==a?void 0:a.teaser_description)||(0,d.Vb)(null==a?void 0:a.teaser_text)},infoBullets:[],badgeSchedule:{fromDate:{label:L?y("date_from"):null,day:z.format("DD"),month:z.format("MMMM"),year:z.format("YYYY")},toDate:L},clusterMaster:"".concat((0,m.RU)(a.program_ref_name||[]),"-").concat(_().unix(null==a?void 0:a.start_time[0]).format("YMMDD"),"-").concat("en"===x?"ENGLISH":"ITALIAN"),hidePage:Z,eventType:(0,m._n)(null==a?void 0:a.location),timezoneOffset:(0,d.Vb)(null==a?void 0:a.timezone_offset),media:(0,d.ni)((null==a?void 0:a.teaser_image)||(null==a?void 0:a.media)),highlightLink:S?{title:y("register_now"),url:C||N}:null,textLink:Z?null:{title:y("discover_more"),url:null!==(i=a.url[0])&&void 0!==i?i:"#"},size:s,mobileSize:g,startTime:{timestamp:(null==a?void 0:a.start_time)?null==a?void 0:a.start_time[0]:null},location:null==a?void 0:null===(t=a.location)||void 0===t?void 0:t.filter(e=>0===e.level),language:null==a?void 0:a.language,endTime:{timestamp:(null==a?void 0:a.end_time)?null==a?void 0:a.end_time[0]:null},layout:r};return(0,n.jsx)(u.Z,{tag:v,...Y,extraButtons:(0,n.jsxs)(n.Fragment,{children:[b,a.links?(0,n.jsx)("ul",{children:null===(l=a.links)||void 0===l?void 0:l.map((e,t)=>(0,n.jsx)("li",{children:(0,n.jsx)(h.gE,{variant:"text",link:e})},t))}):null]}),infoBulletsAlign:p})}var b=l(65209),p=l(30381),y=l.n(p),x=l(1224),j=l(90512),w=l(15504),M=l(61526),z=l(7063);function k(e){var t,l,o,i,a,r,s,u,d,m,v,_,h,f,g;let{initAggs:b,setFilters:p,filters:y,filterAreaThematic:x,filterProgram:j,setLastChecked:w}=e,{t:k}=(0,c.$G)("common"),{sendEvent:A}=(0,z.C)();return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(M.Z,{searchProps:{show:!0},showDefault:!0,buttonText:k("thematic_area"),options:null!==(t=b.thematic_area)&&void 0!==t?t:[],onChange:e=>{let t=L(b.thematic_area,e.currentKey);t&&A({eventName:"filtri_ricerca",position:"eventi",filter_category:"thematic_area",eventLabel:t}),p({...y,"thematic_area.id":Array.from(e)}),Array.from(e).length>0?w("thematic_area"):w(null)},selected:null!==(l=y["thematic_area.id"])&&void 0!==l?l:null,show:!x}),(0,n.jsx)(M.Z,{selected:null!==(o=y.environment)&&void 0!==o?o:null,showDefault:!0,buttonText:k("environment"),options:b.environment?b.environment:[],onChange:e=>{let t=L(b.environment,e.currentKey);t&&A({eventName:"filtri_ricerca",position:"eventi",filter_category:"environment",eventLabel:t}),p({...y,environment:Array.from(e)}),Array.from(e).length>0?w("environment"):w(null)},show:!0}),(0,n.jsx)(M.Z,{searchProps:{show:!0},showDefault:!0,buttonText:k("organizer"),options:null!==(i=b.organized_by)&&void 0!==i?i:[],onChange:e=>{let t=L(b.organized_by,e.currentKey);t&&A({eventName:"filtri_ricerca",position:"eventi",filter_category:"organizer",eventLabel:t}),p({...y,organized_by:Array.from(e)}),Array.from(e).length>0?w("organized_by"):w(null)},selected:null!==(a=y.organized_by)&&void 0!==a?a:null,show:!0}),(0,n.jsx)(M.Z,{showDefault:!0,buttonText:k("event_type"),options:null!==(r=b.event_type)&&void 0!==r?r:[],onChange:e=>{let t=L(b.event_type,e.currentKey);t&&A({eventName:"filtri_ricerca",position:"eventi",filter_category:"event_type",eventLabel:t}),p({...y,"event_type.id":Array.from(e)}),Array.from(e).length>0?w("event_type"):w(null)}
1,selected:null!==(s=y["event_type.id"])&&void 0!==s?s:null,show:!0}),(0,n.jsx)(M.Z,{showDefault:!0,buttonText:k("event_format"),options:null!==(u=b.event_format)&&void 0!==u?u:[],onChange:e=>{let t=L(b.event_format,e.currentKey);t&&A({eventName:"filtri_ricerca",position:"eventi",filter_category:"event_format",eventLabel:t}),p({...y,"event_format.id":Array.from(e)}),w("event_format")},selected:null!==(d=y["event_format.id"])&&void 0!==d?d:null,show:!0}),(0,n.jsx)(M.Z,{showDefault:!0,buttonText:k("language"),options:null!==(m=b.language)&&void 0!==m?m:[],onChange:e=>{let t=L(b.language,e.currentKey);t&&A({eventName:"filtri_ricerca",position:"eventi",filter_category:"language",eventLabel:t}),p({...y,"language.id":Array.from(e)}),w("language")},selected:null!==(v=y["language.id"])&&void 0!==v?v:null,show:!0}),(0,n.jsx)(M.Z,{showDefault:!0,buttonText:k("where"),options:null!==(_=b.location)&&void 0!==_?_:[],onChange:e=>{let t=L(b.location,e.currentKey);t&&A({eventName:"filtri_ricerca",position:"eventi",filter_category:"where",eventLabel:t}),p({...y,"location.id":Array.from(e)}),w("location")},selected:null!==(h=y["location.id"])&&void 0!==h?h:null,show:!0}),(0,n.jsx)(M.Z,{showDefault:!0,buttonClassName:"capitalize",popOverClass:"capitalize",buttonText:k("order_date"),selected:null!==(f=y.month)&&void 0!==f?f:null,options:null!==(g=b.month)&&void 0!==g?g:[],onChange:e=>{let t=L(b.month,e.currentKey);t&&A({eventName:"filtri_ricerca",position:"eventi",filter_category:"order_date",eventLabel:t}),p({...y,month:Array.from(e)}),w("month")},show:!0})]})}function L(e,t){var l;return null===(l=e.find(e=>e.key===t))||void 0===l?void 0:l.value}var A=l(55991),C=l(40807),N=l(90760),S=l(37034);let Z=[];function Y(e){let{items:t,months:l,loading:o}=e,a=new Set;return l?(0,n.jsx)("div",{className:(0,j.W)("container",i().container),children:t.map((e,t)=>{var r;let s=y().unix(null==e?void 0:null===(r=e.start_date)||void 0===r?void 0:r[0]).format("MMMM YYYY"),d=s.charAt(0).toUpperCase()+s.slice(1),c=!a.has(s);c&&a.add(s);let m=l.find(e=>e.value===d);return(0,n.jsxs)("div",{className:0===t?"":i().gap,children:[(0,n.jsx)(D,{show:c,date:m}),o?(0,n.jsx)(u.w,{layout:"inline",size:"_4xl"}):(0,n.jsx)(g,{tag:"div",layout:"inline",template:"_4xl",item:e})]},e.uuid)})}):null}function D(e){let{date:t,show:l}=e,{t:o}=(0,c.$G)("common");return l?(0,n.jsxs)("div",{className:i().list_title,children:[(0,n.jsx)("div",{className:(0,j.W)(i().list_title__title,"capitalize"),children:null==t?void 0:t.value}),(0,n.jsx)(x.Z,{number:null==t?void 0:t.count,label:o("events")})]}):null}var T=function(e){let{paragraphTitle:t,contents:l=Z,filterProgram:o=!1,nrElements:v,showFilters:_,parentRefName:h,parentRef:p,parentRefId:x,layout:M,caption:z,concept:L=null,cardLayout:D="thumb",filterAreaThematic:T=!1,parentAreaThematic:P,parentProgramType:O=null,template:V,bg:I,tpl:E,exclude:F=[],disableRefill:R=!1,qsUpdate:K=!1,q:X,thematicArea:B=null,labReference:G=null}=e,{t:U}=(0,c.$G)("common"),{locale:W,push:$,query:q,pathname:H}=(0,f.useRouter)(),[J,Q]=(0,a.useState)([]),[ee,et]=(0,a.useState)(0),[el,en]=(0,a.useState)(""),[eo,ei]=(0,a.useState)(0),[ea,er]=(0,a.useState)(!0),[es,eu]=(0,a.useState)({}),{queryBuilder:ed}=(0,C.gu)({showFilters:_,disableRefill:R}),[ec,em]=(0,a.useState)({}),[ev,e_]=(0,a.useState)([]),[eh,ef]=(0,a.useState)({}),[eg,eb]=(0,a.useState)(null);(0,a.useRef)(!0);let[ep,ey]=(0,a.useState)(()=>"search"===L?"score":"date"),ex=[..."search"===L?[{key:"score",value:U("relevance")}]:[],{key:"date",value:U("order_date")}],ej=null!=v?v:6,ew={thematic_area:!0,environment:!0,month:!0,event_type:!0,event_format:!0,organized_by:!0,location:!0,language:!0},[eM,ez]=(0,a.useState)(()=>{let e={};return _&&((0,m.uX)("thematic_area",ew)&&(e["thematic_area.id"]=(0,N.PL)("thematic_area",!0)),(0,m.uX)("environment",ew)&&(e.environment=(0,N.PL)("environment",!1)),(0,m.uX)("month",ew)&&(e.month=(0,N.PL)("month",!0)),(0,m.uX)("event_type",ew)&&(e["event_type.id"]=(0,N.PL)("event_type",!0)),(0,m.uX)("event_format",ew)&&(e["event_format.id"]=(0,N.PL)("event_format",!0)),(0,m.uX)("organized_by",ew)&&(e.organized_by=(0,N.PL)("organized_by",!1)),(0,m.uX)("location",ew)&&(e["location.id"]=(0,N.PL)("location",!0)),(0,m.uX)("language",ew)&&(e["language.id"]=(0,N.PL)("language",!0))),e}),ek=e=>{ed.from(0);let{month:t,...l}=e;if(ed.resetFilters(),ed.boolFilter(l),t){let e={bool:{should:[],minimum_should_match:1}};t.forEach(t=>{let{gte:l,lte:n}=(0,m.Pn)(t);e.bool.should.push({range:{start_date:{gte:l,lte:n}}})}),ed.addFilterRaw(e)}};(0,a.useEffect)(()=>
1{if(!K||!eg)return;let e=Object.keys(q).reduce((e,t)=>(t in ew||(e[t]=q[t]),e),{}),t={};Object.keys(eM).forEach(e=>{eM[e].length>0&&(t[e.replace(".id","")]=eM[e].join(","))}),$({pathname:H,query:{...e,...t}},void 0,{shallow:!0}).then()},[ev]);let eL=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];ed&&(er(!0),ed.execute().then(t=>{var l;let{hits:n,aggregations:o}=t,i=n.hits.map(e=>{let{_source:t}=e;return t}),a=null===(l=n.total)||void 0===l?void 0:l.value,r=J;e?(et(a),r=i):r=[...r,...i],Q(r),en(U("events_result_view_count",{viewed:r.length,total:a})),e&&em(o),er(!1)}).catch(()=>{er(!1),Q([]),et(0)}))};(0,a.useEffect)(()=>{ed&&(ed.resetFilters(),0===Object.keys(eM).length&&e_([]),ei(0),ek(eM),eL(!0))},[eM]),(0,a.useEffect)(()=>{ed&&(ed.reset(),ed.size(ej),ed.from(eo),X&&ed.boolMustMatch(X),P&&T&&ed.boolMust({"thematic_area.id":P}),h&&p&&x&&("only"===p&&ed.boolMust({[h]:x}),"boost"===p&&ed.sortByParentRef(h,x)),"expired_events_lab"===E?(ed.boolMustPush({terms:{lab_reference:G}}),ed.boolMustPush({range:{end_date:{lte:"now/h"}}}),ed.addSort({start_date:{order:"desc"}})):(ed.boolMustPush({range:{end_date:{gte:"now/d"}}}),eC(ep,!1),l&&R||ed.boolMustNot({delist:!0})),h&&p&&x&&ed.boolMust({[h]:x}),ed.source(["uuid","title","url","media","timezone_offset","teaser_image","start_time","end_time","location","teaser_text","teaser_description","language","start_date","status_option","program_ref_name","end_date","hide_page","signup_link","links"]),F&&ed.boolMustNot({uuid:F}),o&&"none"!==o&&("inherit"===o?O&&ed.boolMust({program_reference:O}):ed.boolMust({program_reference:o})),(null==l?void 0:l.length)&&(ed.manualItems(l.map(e=>e.id)),ed.boolMustToShouldMust()),ed.boolMust({type:"event",status:!0,langcode:W}),_?(ed.aggs(["thematic_area.id","environment","event_type.id","event_format.id","organized_by","location.id","language.id","month"]),ed.executeAggs().then(e=>{ef({}),ek(eM),eu(()=>(Object.keys(e).forEach(t=>{"month"===t&&(e[t]=e[t].map(e=>{let t=y()(e.value).format("MMMM YYYY");return t=t.charAt(0).toUpperCase()+t.slice(1),{...e,value:t}})),"environment"===t&&(e[t]=e[t].map(e=>({...e,value:U(e.value)}))),"location"===t&&(e[t]=e[t].filter(e=>0===e.level).sort((e,t)=>"Online"===e.value&&"Online"!==t.value?-1:"Online"!==e.value&&"Online"===t.value?1:e.value.localeCompare(t.value))),"environment"===t&&(e[t]=e[t].map(e=>({...e,value:U(e.value)})))}),e)),eL(!0)})):(ek(eM),eL(!0)))},[ed,W,X,P,l,p,x]),(0,a.useEffect)(()=>{es&&0!==Object.keys(ec).length&&0!==Object.keys(es).length&&(ef(e=>{let t=0===Object.keys(e).length?{...es}:{...e};return Object.keys(t).forEach(e=>{t[e]=t[e].map(t=>{if(eg&&e===eg)return t;if(e in ec){var l;let n=ec[e].find(e=>e.key===t.key);return{...t,disabled:!n,count:null!==(l=null==n?void 0:n.count)&&void 0!==l?l:t.count}}return t})}),t}),e_((0,d.De)(es,eM)))},[es,ec]),(0,a.useEffect)(()=>{ed&&0!==eo&&(ed.from(eo),eL(!1))},[eo]);let eA=()=>{ei(eo+ej)},eC=function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];switch(ed.from(0),ey(e),e){case"score":ed.sort([{_score:{order:"desc"}}]);break;case"date":ed.sort([{start_date:{order:"asc"}}])}t&&eL(!0)};return(0,n.jsxs)(n.Fragment,{children:["carousel"===M&&(0,n.jsx)(s.Z,{items:ea?Array(ej).fill(0):J,bg:I,title:(0,n.jsx)(A.Z,{suffix:z,...t}),renderItem:e=>{let{item:t}=e;return ea?(0,n.jsx)(u.w,{layout:D,size:V,mobileSize:"md"},t.uuid):(0,n.jsx)(g,{mobileSize:"md",layout:D,template:V,item:t,infoBulletsAlign:"left"},t.uuid)}}),"vertical"===M&&(0,n.jsxs)(r.Z,{bgColor:I,withFilters:_,items:ea?Array(ej).fill(0):J,totalItems:ee,loadMoreLabel:U("load_more"),onLoadMore:ee>ej?eA:null,numberOfItemsLoadedLabel:U("events_result_view_count",{viewed:J.length,total:ee}),title:(0,n.jsx)(A.Z,{suffix:z,...t}),renderItem:e=>{let{item:t}=e;return ea?(0,n.jsx)(u.w,{size:V,layout:D,mobileSize:"lg"},t.uuid):(0,n.jsx)(g,{mobileSize:"lg",layout:D,template:V,item:t,infoBulletsAlign:"left"},t.uuid)},children:[(0,n.jsxs)(b.Z,{show:_,children:[(0,n.jsx)(b.Z.Items,{children:(0,n.jsx)(k,{filterAreaThematic:!1,filterProgram:"",setFilters:ez,filters:eM,setLastChecked:eb,initAggs:eh})}),(0,n.jsx)(b.Z.Order,{show:_&&ex.length>1,children:(0,n.jsx)(S.V,{options:ex,selected:ep,onChange:eC})})]}),(0,n.jsx)(b.Z.CurrentFilters,{show:!0,onRemove:e=>{ez({...eM,[e.group]:eM[e.group].filter(t=>t!==e.value)})},onReset:()=>{ez({})},filters:ev})]}),"hub"===M&&(0,n.jsxs)("div",{className:(0,j.W)(i().hub),children:[(0,n.jsxs)("div",{className:(0,j.W)("container-max-width-padding",i().active_filters),children:[(0,n.jsx)(b.Z,{show:_,children:(0,n.jsx)(b.Z.Items,{children:(0,n.jsx)(k,{filterAreaThematic:!1,filterProgram:"",setFilters:ez,filters:eM,setLastChecked:eb,initAggs:eh})})}),(0,n.jsx)(b.Z.CurrentFilters,{show:!0,onRemove:e=>{eb("clear"),ez({...eM,[e.group]:eM[e.group].filter(t=>t!==e.value)})},onReset:()=>{eb("clear"),ez({})},filters:ev})]}),(0,n.jsx)(Y,{loading:ea,months:eh.month,items:J}),(0,n.jsx)(w.Z,{className:(0,j.W)(i().loadMore),itemsLoaded:J.length,totalItems:ee,onLoadMoreClick:eA,loadMoreLabel:U("load_more"),label:el})]})]})}},24909:function(e){e.exports={list_title:"event-list_list_title__BGsMG",list_title__title:"event-list_list_title__title__uJYnU",gap:"event-list_gap__yEWl3",container:"event-list_container__5FzY5",hub:"event-list_hub__vnShQ",active_filters:"event-list_active_filters__7kiTm"}}}]);

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.