PageSourceSearch

https://account.ilmessaggero.it/assets/LoginClassroom-42l1S-1O.js

js ilmessaggero.it collected 2026-10-01 08:53:24 UTC 4,185 bytes, 1 lines download raw bytes

1import{b as o,m as e,a as s,r as a,N as i,j as t,t as l,B as r}from"./index-r-KClxtY.js";import{S as c}from"./SocialLogin-CObhtTaE.js";import{F as n}from"./FakeGoogleButton-DyXGC9Gt.js";import{H as p}from"./HelpText-djUlMn1P.js";const d={BASE_URL:"/",DEV:!1,LEGACY:!1,MODE:"production",PROD:!0,SSR:!1,VITE_ARCHIVE_URL:"https://api-arc.cedsdigital.it/v1",VITE_BACKEND_URL:"/",VITE_GOOGLE_LOGIN_CLASSROOM_CA_CLIENT_ID:"728420751048-o2nb93p668mb6ho726fih2c8drva6u2m.apps.googleusercontent.com",VITE_GOOGLE_LOGIN_CLASSROOM_EM_CLIENT_ID:"77376900442-si13b291f3id4ua54fmsib06g506h6nu.apps.googleusercontent.com",VITE_GOOGLE_LOGIN_CLASSROOM_GZ_CLIENT_ID:"294180640991-a690djhbemc2h6he2ilkstvf3ekfe12c.apps.googleusercontent.com",VITE_GOOGLE_LOGIN_CLASSROOM_MG_CLIENT_ID:"644574084908-pp6l2aflje14mescnkoilrbq9hb72e00.apps.googleusercontent.com",VITE_GOOGLE_LOGIN_CLASSROOM_QP_CLIENT_ID:"937887942649-hisior260fj83k943cktghr66h6tpnd0.apps.googleusercontent.com",VITE_HYDRA_CLIENT_ID_BASE:"ceds-client-",VITE_HYDRA_URL:"https://oauth.placeholder.it",VITE_MODULES_BACKEND_URL:"https://account.placeholder.it",VITE_RECAPTCHA_ID:"6LdK_UIsAAAAABKyyKdSSSVkZesKqozEQJe_s4Ic",VITE_SHOP_URL:"https://shop.placeholder.it"},m={ilmattino:"EM",ilmessaggero:"MG",ilgazzettino:"GZ",leggo:"LG",leggomilano:"LG",leggoroma:"LG",corriereadriatico:"CA",quotidianodipuglia:"QP"},g=()=>{const{extendedTestata:g,testata:h}=o(),u=l.sso,_=l.common,{redirect_uri:L,flow:E,inApp:w,error:I}=e(),{addNotice:O}=s(),C=(o=>{const e="VITE_GOOGLE_LOGIN_CLASSROOM_".concat(m[o]||"MG","_CLIENT_ID");return d[e]||"644574084908-pp6l2aflje14mescnkoilrbq9hb72e00.apps.googleusercontent.com"})(h),[S,A]=a.useState(!0);return a.useEffect((()=>{if(I){console.error("Login error:",I);O({title:{ERR_ASSOCIATION_FAILED:"C'è stato un errore durante l'associazione dell'account. Riprova",ERR_NOT_CLASSROOM_USER:"L'indirizzo email utilizzato non è associato a un account Classroom. Usa un indirizzo email scolastico valido per accedere."}[I]||"Si è verificato un errore sconosciuto durante il login. Accedere nuovamente.",type:i.error,timeout:3e3})}}),[O,I]),a.useEffect((()=>{const o=window.open("","_blank","popup=yes,width=1,height=1");o?(o.close(),A(!0)):A(!1)}),[]),t.jsx("div",{className:"LoginClassroom-wrapper route-wrapper",children:t.jsxs("div",{className:"LoginClassroom-grid",children:[t.jsxs("div",{className:"LoginClassroom-col LoginClassroom-col--left auth-wrapper",children:[t.jsxs("div",{children:[t.jsx("h1",{className:"page-title centered",children:u.titles.login}),t.jsx("p",{className:"centered",children:"Accedi con la mail del tuo istituto scolastico per fruire dei contenuti dedicati."})]}),t.jsx("div",{className:"SocialLogin-wrapper",children:!w||S?t.jsxs(t.Fragment,{children:[t.jsx(n,{client:C,flow:"classroom",additionalScopes:["https://www.googleapis.com/auth/userinfo.profile","https://www.googleapis.com/auth/classroom.courses.readonly","https://www.googleapis.com/auth/classroom.coursework.students","https://www.googleapis.com/auth/classroom.courseworkmaterials","https://www.googleapis.com/auth/classroom.announcements","https://www.googleapis.com/auth/classroom.coursework.me","https://www.googleapis.com/auth/classroom.addons.student","https://www.googleapis.com/auth/classroom.addons.teacher","https://www.googleapis.com/auth/classroom.profile.emails"],redirect_uri:L}),("classroom"!==E||"false"==w)&&t.jsx(c,{})]}):t.jsxs("div",{className:"SocialLoginNotice",children:[t.jsx("h4",{children:l.notices.no_popup_title}),t.jsx("p",{children:"Abilita i popup del browser e poi ricarica la pagina per continuare."}),t.jsx(r,{label:"Ricarica la pagina",onClick:()=>window.location.reload()})]})}),t.jsx(p,{label:_.help.label,url:_.help.url,cta:_.help.cta})]}),t.jsxs("div",{className:"LoginClassroom-col LoginClassroom-col--right",children:[t.jsxs("div",{className:"LoginClassroom-copy",children:[t.jsxs("h2",{children:[g," per la scuola"]}),t.jsx("h4",{children:"Notizie, video, lezioni, podcast, approfondimenti pensati per studenti e insegnanti"})]}),t.jsx("img",{className:"LoginClassroom-hero",src:"/images/classroom/classroom_bg.png",alt:"".concat(g," per la scuola")})]})]})})};export{g as default};

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.