PageSourceSearch

https://www.quotidiano.net/_next/static/chunks/3365-f1afc4ff8a964def.js

js quotidiano.net collected 2026-10-01 10:16:19 UTC 12,332 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3365],{33365:function(e,t,a){a.r(t),a.d(t,{__N_SSP:function(){return m}});var i=a(11527),n=a(50959),s=a(31217),r=a(58207),l=a(23968),o=a(48521),d=a(78499),c=a(23203),u=a(15637),m=!0;t.default=()=>{let[e,t]=(0,n.useState)(s.QuizState.INTRO),[a,m]=(0,n.useState)(0),[x,p]=(0,n.useState)(0),[b,g]=(0,n.useState)(0),[f,h]=(0,n.useState)(0),[w,v]=(0,n.useState)(null),[j,N]=(0,n.useState)(null),[S,z]=(0,n.useState)(0),k=(0,n.useCallback)(()=>{t(s.QuizState.QUIZ),m(0),p(0),g(0),h(0),v(Date.now()),N(null),z(0),(0,u.dispatchQuizEvent)({quiz_id:"green-deal",quiz_title:"Green Deal, energia e futuro: quanto sei pronto per la transizione verde?",event:"quiz_start",quiz_total_questions:r.questions.length}),window.scrollTo({top:0,behavior:"smooth"})},[]),C=(0,n.useCallback)((e,a)=>{m(t=>t+e),"wrong"===a?g(e=>e+1):"skipped"===a&&h(e=>e+1),x<r.questions.length-1?p(e=>e+1):(null!==w&&z(Math.round((Date.now()-w)/1e3)),N(new Date().toISOString()),t(s.QuizState.RESULT)),window.scrollTo({top:0,behavior:"smooth"})},[x,w]),_=(0,n.useMemo)(()=>l.profiles.find(e=>a>=e.minScore&&a<=e.maxScore)||l.profiles[l.profiles.length-1],[a]);return(0,i.jsx)("div",{className:"euroquiz-wrapper font-sans text-slate-900",style:{minHeight:"400px"},children:(0,i.jsx)("main",{className:"flex flex-col items-center justify-center w-full",children:(0,i.jsxs)("div",{className:"w-full max-w-2xl bg-white overflow-hidden",children:[e===s.QuizState.INTRO&&(0,i.jsx)(o.default,{onStart:k}),e===s.QuizState.QUIZ&&r.questions[x]&&(0,i.jsx)(d.default,{question:r.questions[x],totalQuestions:r.questions.length,currentIndex:x,onAnswer:C}),e===s.QuizState.RESULT&&(0,i.jsx)(c.default,{profile:_,score:a,wrongAnswers:b,skippedQuestions:f,timeTakenSeconds:S,completionDate:j||new Date().toISOString(),onRestart:k})]})})})}},48521:function(e,t,a){a.r(t),a.d(t,{__N_SSP:function(){return r}});var i=a(11527),n=a(50959);let s=()=>{let[e,t]=n.useState(!1);return(0,i.jsx)("a",{href:"https://www.quotidiano.net/speciali/cohesion-challenge",className:"w-full flex justify-center mb-6 md:mb-8 px-2 md:px-4 cursor-pointer hover:opacity-90 transition-opacity",target:"_blank",rel:"noopener noreferrer",children:e?(0,i.jsx)("div",{className:"bg-brand-blue text-white px-6 py-3 md:px-8 rounded-2xl font-black text-lg md:text-xl uppercase tracking-tighter shadow-lg",children:"COHESION Challenge"}):(0,i.jsx)("img",{src:"/punti-di-vista/logo_challenge.png",alt:"Cohesion Challenge",className:"w-full max-w-[380px] md:max-w-[380px] h-auto object-contain drop-shadow-sm",onError:()=>t(!0)})})};var r=!0;t.default=e=>{let{onStart:t}=e;return(0,i.jsxs)("div",{className:"p-6 md:p-14 text-center",children:[(0,i.jsx)(s,{}),(0,i.jsxs)("h1",{className:"text-2xl md:text-4xl font-extrabold text-slate-900 mb-4 md:mb-5 leading-tight tracking-tight",children:["Green Deal, energia e futuro: ",(0,i.jsx)("br",{className:"hidden xs:block"}),(0,i.jsx)("span",{className:"text-brand-blue",children:"quanto sei pronto per la transizione verde?"})]}),(0,i.jsx)("p",{className:"text-base md:text-lg text-slate-500 mb-8 md:mb-10 max-w-xl mx-auto leading-relaxed",children:"Pi\xf9 che una sigla, il Green Deal \xe8 il nostro futuro. Clima, industria e qualit\xe0 della vita: fai il quiz e scopri quanto ne sai!"}),(0,i.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-3 md:gap-4 mb-10 md:mb-12 text-sm",children:[(0,i.jsxs)("div",{className:"flex flex-row sm:flex-col items-center justify-start sm:justify-center gap-3 sm:gap-0 p-4 sm:p-5 bg-slate-50 rounded-2xl md:rounded-3xl border border-slate-100 shadow-sm transition-all duration-300",children:[(0,i.jsx)("span",{className:"text-xl md:text-2xl sm:mb-2",children:"⏱️"}),(0,i.jsxs)("div",{className:"flex flex-col sm:items-center",children:[(0,i.jsx)("span",{className:"font-bold text-slate-800",children:"3 Minuti"}),(0,i.jsx)("span",{className:"text-[9px] md:text-[10px] uppercase font-black tracking-widest opacity-40",children:"Tempo stimato"})]})]}),(0,i.jsxs)("div",{className:"flex flex-row sm:flex-col items-center justify-start sm:justify-center gap-3 sm:gap-0 p-4 sm:p-5 bg-slate-50 rounded-2xl md:rounded-3xl border border-slate-100 shadow-sm transition-all duration-300",children:[(0,i.jsx)("span",{className:"text-xl md:text-2xl sm:mb-2",children:"\uD83D\uDCCB"}),(0,i.jsxs)("div",{className:"flex flex-col sm:items-center",children:[(0,i.jsx)("span",{className:"font-bold text-slate-800",children:"5 Domande"}),(0,i.jsx)("span",{className:"text-[9px] md:text-[10px] uppercase font-black tracking-widest opacity-40",children:"Mirate"})]})]}),(0,i.jsxs)("div",{className:"flex flex-row sm:flex-col items-center justify-start sm:justify-center gap-3 sm:gap-0 p-4 sm:p-5 bg-slate-50 rounded-2xl md:rounded-3xl border border-slate-100 shadow-sm transition-all duration-300",children:[(0,i.jsx)("span",{className:"text-xl md:text-2xl sm:mb-2",children:"\uD83C\uDFAF"}),(0,i.jsxs)("div",{className:"flex flex-col sm:items-center",children:[(0,i.jsx)("span",{className:"font-bold text-slate-800",children:"Profilo Unico"}),(0,i.jsx)("span",{className:"text-[9px] md:text-[10px] uppercase font-black tracking-widest opacity-40",children:"Analisi finale"})]})]})]}),(0,i.jsx)("button",{onClick:t,className:"w-full md:w-auto px-10 md:px-16 py-4 md:py-5 bg-brand-blue hover:bg-brand-blue-hover text-white font-black text-base md:text-lg rounded-xl md:rounded-2xl transition-all transform hover:scale-[1.02] shadow-xl shadow-brand-blue/20 active:scale-95 uppercase tracking-wider",children:"Inizia la Sfida"}),(0,i.jsx)("div",{className:"mt-10 md:mt-12 pt-6 md:pt-8 border-t border-slate-100",children:(0,i.jsx)("p",{className:"text-[8px] md:text-[9px] text-slate-400 uppercase tracking-[0.15em] md:tracking-[0.2em] font-black leading-relaxed",children:"Un'iniziativa cofinanziata dall'Unione Europea nell'ambito della Politica di Coesione"})})]})}},78499:function(e,t,a){a.r(t),a.d(t,{__N_SSP:function(){return r}});var i=a(11527),n=a(50959),s=a(15637),r=!0;t.default=e=>{let{question:t,currentIndex:a,totalQuestions:r,onAnswer:l}
1=e,[o,d]=(0,n.useState)(null),[c,u]=(0,n.useState)(!1),m=a/r*100,x=t.choices.some(e=>e.isCorrect),p=e=>{if(c)return;d(e);let i=t.choices.find(t=>t.id===e);if(!i)return;let n=!x||!!i.isCorrect,r=x?n?"correct":"wrong":"skipped";t.explanation?u(!0):setTimeout(()=>{l(i.points,r),d(null)},300),(0,s.dispatchQuizEvent)({quiz_id:"green-deal",quiz_title:"Green Deal, energia e futuro: quanto sei pronto per la transizione verde?",event:"quiz_answer",question_id:t.id.toString(),question_text:t.explanation||"",question_number:a+1,answer_given:i.id.toString(),is_correct:n,answer_status:r})};return(0,i.jsxs)("div",{className:"flex flex-col min-h-[480px] md:min-h-[550px]",children:[(0,i.jsx)("div",{className:"bg-slate-100 h-1.5 md:h-2 w-full",children:(0,i.jsx)("div",{className:"bg-brand-blue h-full transition-all duration-700 ease-out",style:{width:"".concat(m,"%")}})}),(0,i.jsxs)("div",{className:"p-5 md:p-10 flex-grow flex flex-col",children:[(0,i.jsxs)("div",{className:"mb-4 md:mb-6 flex justify-between items-center",children:[(0,i.jsx)("span",{className:"px-2.5 py-0.5 bg-brand-blue-light text-brand-blue text-[9px] md:text-[10px] font-extrabold rounded-full uppercase tracking-widest border border-brand-blue/10",children:t.theme}),(0,i.jsxs)("p",{className:"text-slate-400 text-[10px] md:text-xs font-bold uppercase tracking-tighter",children:[a+1," / ",r]})]}),(0,i.jsx)("h2",{className:"text-lg md:text-2xl font-bold text-slate-800 mb-6 md:mb-8 leading-snug",children:t.text}),(0,i.jsx)("div",{className:"space-y-2.5 md:space-y-3 mb-6 md:mb-8",children:t.choices.map(e=>(0,i.jsxs)("button",{onClick:()=>p(e.id),disabled:c,className:"w-full text-left p-3.5 md:p-4 rounded-xl border-2 transition-all flex items-center gap-3 md:gap-4 ".concat(o===e.id?"border-brand-blue bg-brand-blue-light text-brand-blue shadow-sm":"border-slate-100 hover:border-slate-200 hover:bg-slate-50 text-slate-700"," ").concat(c&&x&&!e.isCorrect&&o===e.id?"border-red-500 bg-red-50":""," ").concat(c&&x&&e.isCorrect?"border-green-500 bg-green-50 !opacity-100":""," ").concat(c&&x&&!e.isCorrect&&o!==e.id?"opacity-40 grayscale-[0.5]":""),children:[(0,i.jsx)("div",{className:"w-7 h-7 md:w-8 md:h-8 flex-shrink-0 rounded-lg flex items-center justify-center font-bold text-xs md:text-sm ".concat(o===e.id?x&&!1===e.isCorrect&&c?"bg-red-500 text-white":"bg-brand-blue text-white":x&&e.isCorrect&&c?"bg-green-500 text-white":"bg-slate-100 text-slate-500"),children:e.id.toUpperCase()}),(0,i.jsx)("span",{className:"font-semibold text-xs md:text-base leading-tight md:leading-normal",children:e.text}),c&&x&&e.isCorrect&&(0,i.jsx)("span",{className:"ml-auto text-green-600 font-bold shrink-0",children:"✓"}),c&&x&&!e.isCorrect&&o===e.id&&(0,i.jsx)("span",{className:"ml-auto text-red-600 font-bold shrink-0",children:"✕"})]},e.id))}),c&&(0,i.jsxs)("div",{className:"mt-auto p-5 md:p-6 bg-blue-50 border border-blue-200 rounded-2xl md:rounded-3xl mb-4 animate-in fade-in slide-in-from-bottom-2 duration-300 shadow-sm",children:[(0,i.jsxs)("p",{className:"text-xs md:text-sm text-blue-900 leading-relaxed",children:[(0,i.jsx)("span",{className:"font-black text-[10px] md:text-xs uppercase tracking-widest text-brand-blue block mb-1.5 md:mb-2",children:"\uD83D\uDCA1 Lo sapevi che?"}),t.explanation]}),(0,i.jsx)("button",{onClick:()=>{let e=t.choices.find(e=>e.id===o);if(e){let t=!x||!!e.isCorrect,a=x?t?"correct":"wrong":"skipped";l(e.points,a),d(null),u(!1)}},className:"mt-4 md:mt-6 w-full py-3.5 md:py-4 bg-brand-blue text-white rounded-xl font-black text-xs md:text-sm uppercase tracking-widest shadow-lg shadow-brand-blue/20 hover:bg-brand-blue-hover transition-all active:scale-95",children:"Continua la sfida"})]})]})]})}},23968:function(e,t,a){a.r(t),a.d(t,{__N_SSP:function(){return i},default:function(){return s},profiles:function(){return n}});var i=!0;let n=[{minScore:4,maxScore:5,title:"Ambasciatore del futuro verde",icon:"\uD83C\uDF31",color:"bg-green-100 border-green-400 text-green-800",description:"Hai colto bene i pilastri della strategia europea sul clima. Il Green Deal, per te, non \xe8 uno slogan ma una trasformazione concreta gi\xe0 in corso.",personalizedMessage:"Sei un vero esperto della transizione! Continua a diffondere consapevolezza sulla sostenibilit\xe0."},{minScore:3,maxScore:3.9,title:"Cittadino della transizione",icon:"⚡",color:"bg-yellow-100 border-yellow-400 text-yellow-800",description:"Sai che la sostenibilit\xe0 non riguarda solo l’ecologia, ma anche innovazione, economia e territori. Una buona chiave per leggere il presente.",personalizedMessage:"Hai un'ottima base, con qualche approfondimento in pi\xf9 sarai pronto per ogni sfida verde."},{minScore:2,maxScore:2.9,title:"Attento osservatore del cambiamento",icon:"\uD83E\uDDD0",color:"bg-blue-100 border-blue-400 text-blue-800",de
1scription:"Hai gi\xe0 messo a fuoco alcuni concetti essenziali. Ti manca ancora qualche connessione per vedere tutto il disegno della transizione.",personalizedMessage:"La curiosit\xe0 \xe8 il primo passo: scopri come l'energia sta cambiando il nostro modo di vivere."},{minScore:1,maxScore:1.9,title:"Sensibile ma incerto",icon:"\uD83E\uDD14",color:"bg-orange-100 border-orange-400 text-orange-800",description:"Cogli l’importanza del tema, ma non ancora i suoi strumenti concreti. Ambiente, energia e coesione meritano di essere letti come un unico racconto.",personalizedMessage:"Non scoraggiarti, la transizione \xe8 un viaggio complesso. Informati sui nuovi progetti europei nel tuo territorio."},{minScore:0,maxScore:.9,title:"Clima? Da ripassare",icon:"\uD83D\uDCDA",color:"bg-gray-100 border-gray-400 text-gray-800",description:"La transizione verde ti passa accanto, ma non ti \xe8 ancora davvero familiare. Questo \xe8 il punto da cui cominciare per capire una delle sfide decisive dell’Europa.",personalizedMessage:"L'Unione Europea lavora ogni giorno per il nostro clima: scopri da dove partono i finanziamenti per un futuro migliore."}];function s(){return null}},31217:function(e,t,a){a.r(t),a.d(t,{QuizState:function(){return n},__N_SSP:function(){return s},default:function(){return r}});var i,n,s=!0;function r(){return null}(i=n||(n={})).INTRO="INTRO",i.QUIZ="QUIZ",i.RESULT="RESULT"}}]);

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.