PageSourceSearch

https://www.sdabocconi.it/_next/static/chunks/5374.f8d894d85802a242.js

js sdabocconi.it collected 2026-09-24 08:53:00 UTC 11,022 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5374,8322,1846],{15374:function(e,n,t){"use strict";t.r(n),t.d(n,{DownloadBrochureModal:function(){return A}});var o=t(85893),i=t(16887),r=t(32453),l=t(55399),a=t(65746),d=t(67294),c=t(35121),s=t(82108),u=t(68573),h=t.n(u),m=t(18998),b=t(11163),v=t(88754),f=t(94581),p=t(78322),_=t(62524),g=t(1604),w=t(59814),x=t(7063),k=t(88410),j=t(59040),L=t(98952),y=t(98997),N=t(28195);function A(e){let{isOpen:n,setIsOpen:t,contentType:l,image:a,pageTitle:c,pageText:s,formData:u,className:h,badge:m,dimension14:b,dimension15:v}=e,{t:f}=(0,i.$G)(),{sendEvent:p}=(0,x.C)(),_=(0,d.useRef)(!1);return((0,d.useEffect)(()=>{_.current||(p({eventName:"downloadbrochure_step1",eventAction:"downloadbrochure",dimension15:v,dimension14:b}),_.current=!0)},[p]),l&&u)?(0,o.jsx)(r.z,{title:f("download_brochure_modal.title"),isOpen:n,setIsOpen:t,pageTitle:c,pageText:s,image:a,badge:m,className:h,children:(0,o.jsx)(C,{pageTitle:c,contentType:l,formData:u,dimension14:b,dimension15:v})},"download-brochure"):null}function C(e){let{contentType:n,formData:t,dimension14:i,dimension15:r,pageTitle:l}=e,[a,c]=(0,d.useState)(null);return(0,o.jsx)(o.Fragment,{children:a?(0,o.jsx)(E,{pdfLinks:a.pdfLinks,emailPending:a.emailPending,registrationEmail:a.email,dimension14:i,dimension15:r}):(0,o.jsx)(S,{contentType:n,formData:t,onSuccess:(e,n,t)=>c({email:e,pdfLinks:n,emailPending:t}),pageTitle:l,dimension14:i,dimension15:r})})}function E(e){let{registrationEmail:n,emailPending:t,pdfLinks:r,dimension14:l,dimension15:a}=e,{t:s}=(0,i.$G)(),{sendEvent:u}=(0,x.C)(),m=(0,c.w)(),b=(0,d.useRef)(!1);return(0,d.useEffect)(()=>{b.current||((null==m?void 0:m.isAuthenticated)&&u({eventName:"downloadbrochure_completato",eventAction:"downloadbrochure",dimension15:a,dimension14:l,method:"utente_gia_registrato",pageType:"thank_you_page_download_brochure"}),b.current=!0)},[u]),(0,d.useEffect)(()=>{null==r||r.forEach(e=>{fetch(e.pdfLink).catch(n=>{console.error(n);let t=e.pdfLink,o=document.createElement("a");o.href=t,o.setAttribute("download",e.title),o.setAttribute("target","_blank"),document.body.appendChild(o),o.click(),document.body.removeChild(o)}).then(e=>{if(e)return e.blob()}).then(n=>{if(n){let t=window.URL.createObjectURL(n),o=document.createElement("a");o.href=t,o.setAttribute("download",e.title),o.setAttribute("target","_blank"),document.body.appendChild(o),o.click(),document.body.removeChild(o),window.URL.revokeObjectURL(t)}})})},[]),(0,o.jsxs)("div",{className:h().downloadBrochureSuccessContainer,children:[(0,o.jsx)("h3",{children:s("form.success.title")}),(0,o.jsxs)("div",{children:[(0,o.jsx)("p",{children:s("download_brochure.form.success.text")}),(0,o.jsx)("ul",{children:null==r?void 0:r.map(e=>(0,o.jsx)("li",{children:(0,o.jsx)("a",{href:e.pdfLink,target:"_blank",rel:"noreferrer",download:"brochure.pdf",children:e.title})},e.title))})]}),n?(0,o.jsx)(f.F,{email:n}):null,(0,o.jsx)(L.Qj,{href:"https://bocconi-privacy.my.onetrust.com/hosted-webform/consent/a5896919-f3b0-4d23-a771-15b38aa12cdb/f1edd7ba-dcd2-45ab-a4cc-8cc04e666b1d",style:{width:"fit-content"},target:"_blank",variant:"none",children:s("form.success.privacylink")})]})}function S(e){var n,t,r;let{contentType:u,onSuccess:f,formData:L,dimension14:A,dimension15:C,pageTitle:E}=e,{ref:S,isOpen:P,setIsOpen:B,openBeforeSubmit:I}=(0,j.c)(),{locale:M,asPath:R}=(0,b.useRouter)(),[O,z]=(0,d.useState)(!0),[D,G]=(0,d.useState)(!1),{sendEvent:T}=(0,x.C)(),{t:V}=(0,i.$G)(),U=(0,a.cI)(),{onLoginClick:q}=(0,s.S)({key:"download-brochure-".concat(R),setValue:U.setValue,getValues:U.getValues}),F=(0,c.w)(),W=U.watch("interested_in"),Z=null==W?void 0:W.map(e=>L.find(n=>n.title===e)),K=(null==L?void 0:L.length)>1,[$,H]=(0,d.useState)((null==F?void 0:F.isAuthenticated)&&!K);(0,d.useEffect)(()=>{H(!K&&(null==F?void 0:F.isAuthenticated))},[K,null==F?void 0:F.isAuthenticated]);let X=m.W.useMutation("post","/brochure/subscription",{onSuccess:()=>{let e=[];e=K?Z.filter(e=>null==e?void 0:e.pdfLink).map(e=>({pdfLink:e.pdfLink,title:e.title})):[{pdfLink:L[0].pdfLink,title:L[0].title}],T({eventName:"downloadbrochure_interazione_form",eventAction:"downloadbrochure",method:"utente_gia_registrato",dimension15:C,dimension14:A,eventLabel:"login",cta:"avanti"}),f(void 0,e,!1)},onError(){H(!1)}}),Y=m.W.useMutation("post","/brochure/registration",{onSuccess(e,n,t){var o,i;let r=[];r=K?Z.filter(e=>null==e?void 0:e.pdfLink).map(e=>({pdfLink:e.pdfLink,title:e.title})):[{pdfLink:L[0].pdfLink,title:L[0].title}],T({eventName:"downloadbrochure_interazione_form",eventAction:"downloadbrochure",method:"nuovo_utente",dimension15:C,dimension14:A,eventLabel:"signup",cta:"avanti"}),(0,w.cY)((null==n?void 0:null===(o=n.body)||void 0===o?void 0:o.user.email)||null),f(null==n?void 0:null===(i=n.body)||void 0===i?void 0:i.user.email,r,!1)},onError(){H(!1)}}),J=m.W.useMutation("post","/brochure/unconfirmed",{onSuccess(e,n,t){var o;let i=[];i=K?Z.filter(e=>null==e?void 0:e.pdfLink).map(e=>({pdfLink:e.pdfLink,title:e.title})):[{pdfLink:L[0].pdfLink,title:L[0].title}],T({eventName:"downloadbrochure_interazione_form",eventAction:"downloadbrochure",method:"utente_non_verificato",dimension15:C,dimension14:A,eventLabel:"signup",cta:"avanti"}),f(null==n?void 0:null===(o=n.body)||void 0===o?void 0:o.email,i,!0)},onError(){H(!1)}}),Q=(0,d.useRef)(!1);return(0,d.useEffect)(()=>
1{if($&&!Q.current){Q.current=!0;let e=document.getElementById("form");e?e.dispatchEvent(new Event("submit",{cancelable:!0,bubbles:!0})):H(!1)}},[$]),(0,o.jsxs)(a.l0,{...U,withOneTrustScript:!0,className:h().formContainer,onSubmit:async e=>{if(I())return;let{clientId:n,sessionId:t}=await (0,y.Gw)(),o=new URL(window.location.href),i="".concat(o.origin,"/").concat(M)+"?registration-success",r=[],l=[];if(K?(r=Z.filter(e=>null==e?void 0:e.actProf).map(e=>e.actProf),l=Z.filter(e=>null==e?void 0:e.sap).map(e=>e.sap)):(r=L[0].actProf?[L[0].actProf]:[],l=L[0].sap?[L[0].sap]:[]),null==F?void 0:F.isAuthenticated){var a;X.mutate({body:{contentType:u,sap:l,actProf:r},headers:{Authorization:"Bearer ".concat(null==F?void 0:null===(a=F.user)||void 0===a?void 0:a.id_token)}})}else D?J.mutate({body:{contentType:u,sap:l,actProf:r,tracking:{client_id:n,session_id:t,events:[{name:"downloadbrochure_completato",params:{method:"nuovo_utente",eventAction:"downloadbrochure",dimension15:C,dimension14:A}}]},email:e.email}}):Y.mutate({body:{contentType:u,sap:l,actProf:r,user:{dob:e.dob,email:e.email,gender:e.gender,firstName:e.firstName,lastName:e.lastName,password:e.password,workAddress:{country:e.country,city:e.city,province:e.province},phoneNumber:e.phone,returnUrl:i,lang:"it"===M?"I":"E",tracking:{client_id:n,session_id:t,events:[{name:"downloadbrochure_completato",params:{method:"nuovo_utente",eventAction:"downloadbrochure",dimension15:C,dimension14:A}}]}}}})},children:[!(null==F?void 0:F.isAuthenticated)&&(0,o.jsx)("h5",{className:"Headings/H6",children:V("download_brochure.form.title")}),(0,o.jsx)(a.gN,{label:V("event_registration.form.products.label"),name:"interested_in",hide:!K,defaultValue:[],validation:g.z.array(g.z.string()).min(1,{message:V("form.validation.required")}),render:e=>{let{value:n,onChange:t,id:i,error:r,onBlur:l}=e;return(0,o.jsx)(_.cO,{"aria-labelledby":i,value:n,onChange:t,className:h().checkboxGroup,onBlur:l,children:L.map(e=>(0,o.jsx)(p.CheckboxButton,{value:e.title||void 0,errorMessage:null==r?void 0:r.message,withoutErrorIcon:!0,children:e.title},e.title))})}}),!(null==F?void 0:F.isAuthenticated)&&(0,o.jsx)(l.g,{onEmailCheckChange:e=>{z("CONFIRMED"===e||void 0===e),G("PENDING"===e)},onLoginClick:q,recoverPasswordEventData:{eventAction:"downloadbrochure",dimension14:A,dimension15:C}}),(0,o.jsx)(j.$,{_ref:S,isModalOpen:P,setIsModalOpen:B,isAuthenticated:null==F?void 0:F.isAuthenticated,submitHidden:O||D}),(0,o.jsx)(N.m,{dimension14:A,dimension15:C,hideSubmit:O,eventAction:"downloadbrochure"}),(O||$)&&(null==F||!F.isAuthenticated||$)?null:(0,o.jsx)(k.M,{isDisabled:Y.isPending||X.isPending||J.isPending,children:"Download brochure"}),Y.isPending||X.isPending||J.isPending?(0,o.jsx)(v.b,{label:V("common.loading")}):null,(null===(n=J.error)||void 0===n?void 0:n.message)?(0,o.jsx)("div",{children:V("form.error.generic")}):null,(null===(t=Y.error)||void 0===t?void 0:t.message)?(0,o.jsx)("div",{children:V("form.error.generic")}):null,(null===(r=X.error)||void 0===r?void 0:r.message)?(0,o.jsx)("div",{children:V("form.error.generic")}):null]})}},28195:function(e,n,t){"use strict";t.d(n,{m:function(){return d}});var o=t(67294),i=t(7063),r=t(1604),l=t(65746),a=t(87536);function d(e){let{dimension15:n,dimension14:t,hideSubmit:d,eventAction:c}=e,{sendEvent:s}=(0,i.C)(),u=(0,l.Cl)(),h=(0,a.Gc)();return(0,o.useEffect)(()=>{let e=()=>{var e;let o=h.getValues(),i=u.getState(),l=r.z.object(i).safeParse(o);s({cta:"chiudi_form",eventName:d?"form_close_landing_email":"form_close_interazione_form",eventAction:c,dimension15:n,dimension14:t,dimension12:l.error?null===(e=l.error)||void 0===e?void 0:e.errors.map(e=>e.path[0]).join("|"):void 0})};return window.addEventListener("fullPageModalClose",e),()=>{window.removeEventListener("fullPageModalClose",e)}},[n,t,d,s]),null}},78322:function(e,n,t){"use strict";t.r(n),t.d(n,{CheckboxButton:function(){return c}});var o=t(85893),i=t(62524),r=t(84332),l=t.n(r),a=t(64360),d=t(90512);let c=e=>{let{children:n,className:t,removeRing:r=!1,checkboxPosition:c="left",errorMessage:h,style:m="simple",count:b,withoutErrorIcon:v,...f}=e;return(0,o.jsxs)(i.XZ,{validationBehavior:"aria",className:(0,d.Z)(l().container,h?l().error:void 0,f.isDisabled?l().disabled:void 0,f.value?l().compiled:void 0,"button"===m?l().button:void 0,t),isSelected:!!f.value,...f,children:["left"===c&&(0,o.jsx)("div",{className:l().checkbox,children:(0,o.jsx)(u,{})}),(0,o.jsx)("div",{style:{flex:1},children:n}),void 0!==b&&(0,o.jsx)(s,{count:b}),!!h&&!v&&(0,o.jsx)(a.Z,{name:"error",className:l().errorIcon}),"right"===c&&(0,o.jsx)("div",{className:l().checkbox,children:(0,o.jsx)(u,{})})]})},s=e=>{let{count:n}=e;return(0,o.jsx)("div",{className:l().counter,children:n})},u=()=>(0,o.jsx)("svg",{viewBox:"0 0 16 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:(0,o.jsx)("path",{d:"M5.5702 11.5327L0.376953 6.33943L1.37788 5.33848L5.5702 9.53561L14.6269 0.478882L15.6231 1.47981L5.5702 11.5327Z",fill:"#002855"})})},68573:function(e){e.exports={formContainer:"download-brochure_formContainer__0KbtV",downloadBrochureSuccessContainer:"download-brochure_downloadBrochureSuccessContainer__Ko1gB",checkboxGroup:"download-brochure_checkboxGroup__upK0h"}},84332:function(e){e.exports={container:"checkbox-button_container__FBKAq",checkbox:"checkbox-button_checkbox__F6WA5",button:"checkbox-button_button__q4gmo",compiled:"checkbox-button_compiled__JRwgO",error:"checkbox-button_error__XCCmt",disabled:"checkbox-button_disabled__uYpqI",icon:"checkbox-button_icon__9yqNy",errorIcon:"checkbox-button_errorIcon__NZTuW",counter:"checkbox-button_counter__RUBSw"}}}]);

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.