PageSourceSearch

https://www.treccani.it/_next/static/chunks/pages/user/forgotPassword-c1acb35e0d369ebd.js

js treccani.it collected 2026-09-24 08:28:47 UTC 16,761 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6834],{7192:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=n(78228).A},25539:function(e,t,n){"use strict";var r;!function(i){if("function"!=typeof o){var o=function(e){return e};o.nonNative=!0}let a=o("plaintext"),l=o("html"),s=o("comment"),c=/<(\w*)>/g,d=/<\/?([^\s\/>]+)/;function u(e,t,n){return m(e=e||"",p(t=t||[],n=n||""))}function p(e,t){return{allowable_tags:e=function(e){let t=new Set;if("string"==typeof e){let n;for(;n=c.exec(e);)t.add(n[1])}else o.nonNative||"function"!=typeof e[o.iterator]?"function"==typeof e.forEach&&e.forEach(t.add,t):t=new Set(e);return t}(e),tag_replacement:t,state:a,tag_buffer:"",depth:0,in_quote_char:""}}function m(e,t){if("string"!=typeof e)throw TypeError("'html' parameter must be a string");let n=t.allowable_tags,r=t.tag_replacement,i=t.state,o=t.tag_buffer,c=t.depth,u=t.in_quote_char,p="";for(let t=0,m=e.length;t<m;t++){let m=e[t];if(i===a)"<"===m?(i=l,o+=m):p+=m;else if(i===l)switch(m){case"<":if(u)break;c++;break;case">":if(u)break;if(c){c--;break}u="",i=a,o+=">",n.has(function(e){let t=d.exec(e);return t?t[1].toLowerCase():null}(o))?p+=o:p+=r,o="";break;case'"':case"'":u=m===u?"":u||m,o+=m;break;case"-":"<!-"===o&&(i=s),o+=m;break;case" ":case"\n":if("<"===o){i=a,p+="< ",o="";break}o+=m;break;default:o+=m}else i===s&&(">"===m?("--"==o.slice(-2)&&(i=a),o=""):o+=m)}return t.state=i,t.tag_buffer=o,t.depth=c,t.in_quote_char=u,p}u.init_streaming_mode=function(e,t){let n=p(e=e||[],t=t||"");return function(e){return m(e||"",n)}},void 0===(r=(function(){return u}).call(t,n,t,e))||(e.exports=r)}(0)},26608:(e,t,n)=>{"use strict";n.d(t,{Dy:()=>a,Sr:()=>i,l0:()=>o,mU:()=>r});let r=()=>{let e=document.createElement("script");e.setAttribute("id","clean-cmp"),e.setAttribute("src","//clickiocmp.com/t/consent_235255.js"),e.async=!0,e.type="text/javascript",document.head.appendChild(e);let t=document.createElement("style");return t.innerHTML="\n    .cl-consent-settings__btn {\n      display: none !important;\n    }\n  ",document.head.appendChild(t),()=>{document.head.removeChild(e),document.head.removeChild(t)}},i=()=>{let e=document.createElement("script");return e.setAttribute("id","privacy-button"),e.innerHTML='!function(){var M=document.createElement("div");M.className="azerion_privacy_privacy",M.style.position="fixed",M.style.padding="0",M.style.zIndex="9999",M.style.background="#f7f7f7",M.style.bottom="150px",M.style.left="0",M.style.boxSizing="border-box",M.style.fontFamily="Helvetica Neue,arial,sans-serif",M.style.fontWeight="400",M.style.fontSize="14px",M.style.lineHeight="14px",M.style["border-top-left-radius"]="3px",M.style["border-top-right-radius"]="3px",M.style["border-bottom-right-radius"]="3px",M.style["-webkit-border-top-left-radius"]="3px",M.style["-webkit-border-top-right-radius"]="3px",M.style["-webkit-border-bottom-right-radius"]="3px",M.style["-moz-border-radius-topleft"]="3px",M.style["-moz-border-radius-topright"]="3px",M.style["-moz-border-radius-bottomright"]="3px",M.style["writing-mode"]="tb-rl";var t=document.createElement("a");t.className="azerion_privacy_privacybutton",t.href="javascript:void(0)",t.onclick=function(){return void 0!==window.__lxG__consent__&&null!==window.__lxG__consent__.getState()&&window.__lxG__consent__.showConsent(),!1},t.style.padding="5px",t.style.display="block",t.style.textDecoration="none",t.style.color="#000",t.style.cursor="pointer",t.style.boxSizing="border-box",t.style.backgroundColor="transparent",M.appendChild(t);t.innerHTML+="Privacy";var D=0;window.onscroll=function(){0==D&&(D++,document.body.appendChild(M))}}();',document.head.appendChild(e),()=>{document.head.removeChild(e)}},o=e=>{let t=document.createElement("script");return t.setAttribute("id","ads-azerion"),t.innerHTML="window._gmp = window._gmp || {};\n    window._gmp.pageType = '".concat(e,"';"),document.head.appendChild(t),()=>{document.head.removeChild(t)}},a=()=>{let e=document.createElement("script");return e.setAttribute("id","adplay"),e.setAttribute("src","https://s.adplay.it/treccani/adplay.js"),e.async=!0,e.type="text/javascript",document.body.appendChild(e),()=>{document.body.removeChild(e)}}},28824:(e,t,n)=>{"use strict";n.d(t,{Y:()=>l});var r=n(6029),i=n(55729),o=n(46238),a=n(83868);let l=(0,i.memo)(e=>{let{name:t,authError:n,helperText:l,placeholder:s,label:c,...d}=e,{value:u,setValue:p,error:m}=(0,a.A)({name:t}),g=(0,i.useCallback)(e=>{p(e.target.value)},[p]);return(0,r.jsx)(o.A,{name:t,variant:"outlined",onChange:g,value:u,error:!!m||!!n,helperText:n||(null!=m?m:l),style:{backgroundColor:"#FFF"},placeholder:s,label:c,...d})});l.displayName="FormTextField"},32519:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>q});var r=n(6029),i=n(81278),o=n(87755),a=n(33904),l=n(39661),s=n(99943),c=n(1909),d=n(31607),u=n(46800),p=n(8289),m=n(17377),g=n(79637),f=n(26927),h=n(34837),_=n(44316),x=n(44981),v=n(23300),y=n(55729);let b=()=>{let e=(0,c.mN)({mode:"onChange",defaultValues:{email:""},resolver:(0,x.t)(v.E9)}),{handleSubmit:t,formState:n}=e,{errors:r}=n,{authError:i,forgotPassword:o,loader:a}=(0,l.A)(),[s,d]=(0,y.useState)(!1);return{onSubmit:(0,y.useMemo)(()=>t(async e=>{try{await o(e.email)&&d(!0)}catch(e){console.error("Error during forgot password:",e)}}),[t]),formData:e,authError:i,errors:r,submitted:s}};var w=n(28824),j=n(56752);let A=()=>"Hai dimenticato la password?",M=function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(j.F9&&!1===j.S$)return globalThis.__paraglide_ssr.forgotpassword_title1(t);let r=null!=(e=n.locale)?e:(0,j.JK)();return((0,j.fQ)("forgotpassword_title1",r),"it"===r)?A(t):"forgotPassword_title"},S=()=>"Inserisci l'indirizzo e-mail usato al momento della registrazione e ti sar\xe0 inviata una e-mail con la nuova password!",k=function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(j.F9&&!1===j.S$)return globalThis.__paraglide_ssr.forgotpassword_description1(t);let r=null!=(e=n.locale)?e:(0,j.JK)();return((0,j.fQ)("forgotpassword_description1",r),"it"===r)?S(t):"forgotPassword_description"},T=()=>"Email",C=function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(j.F9&&!1===j.S$)return globalThis.__paraglide_ssr.forgotpassword_emaillabel2(t);let r=null!=(e=n.locale)?e:(0,j.JK)();return((0,j.fQ)("forgotpassword_emaillabel2",r),"it"===r)?T(t):"forgotPassword_emailLabel"},E=()=>"Inserisci la tua email",F=function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(j.F9&&!1===j.S$)return globalThis.__paraglide_ssr.forgotpassword_emailplaceholder2(t);let r=null!=(e=n.locale)?e:(0,j.JK)();return((0,j.fQ)("forgotpassword_emailplaceholder2",r),"it"===r)?E(t):"forgotPassword_emailPlaceholder"},z=()=>"Invia",P=function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(j.F9&&!1===j.S$)return globalThis.__paraglide_ssr.forgotpassword_submit1(t);let r=null!=(e=n.locale)?e:(0,j.JK)();return((0,j.fQ)("forgotpassword_submit1",r),"it"===r)?z(t):"forgotPassword_submit"},I=()=>"Mail inviata con successo.",N=function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(j.F9&&!1===j.S$)return globalThis.__paraglide_ssr.forgotpassword_successtitle2(t);let r=null!=(e=n.locale)?e:(0,j.JK)();return((0,j.fQ)("forgotpassword_successtitle2",r),"it"===r)?I(t):"forgotPassword_successTitle"},L=()=>"Ti abbiamo appena inviato una mail all'indirizzo da te inserito per poter procedere con il cambio password.",$=function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(j.F9&&!1===j.S$)return globalThis.__paraglide_ssr.forgotpassword_successdescription2(t);let r=null!=(e=n.locale)?e:(0,j.JK)();return((0,j.fQ)("forgotpassword_successdescription2",r),"it"===r)?L(t):"forgotPassword_successDescription"},H=()=>"Non hai ricevuto nessuna email?",K=function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(j.F9&&!1===j.S$)return globalThis.__paraglide_ssr.forgotpassword_noemailreceived3(t);let r=null!=(e=n.locale)?e:(0,j.JK)();return((0,j.fQ)("forgotpassword_noemailreceived3",r),"it"===r)?H(t):"forgotPassword_noEmailReceived"},D=()=>"Invia di nuovo",J=function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(j.F9&&!1===j.S$)return globalThis.__paraglide_ssr.forgotpassword_resend1(t);let r=null!=(e=n.locale)?e:(0,j.JK)();return((0,j.fQ)("forgotpassword_resend1",r),"it"===r)?D(t):"forgotPassword_resend"},Q=()=>{let{onSubmit:e,formData:t,authError:n,submitted:i}=b();return(0,r.jsx)(c.Op,{...t,children:(0,r.jsx)("form",{onSubmit:e,children:(0,r.jsx)(g.A,{children:(0,r.jsx)(h.A,{justifyContent:"center",children:i?(0,r.jsx)(_.Ay,{item:!0,xs:12,lg:10,children:(0,r.jsxs)(m.A,{justifyContent:"center",alignContent:"center",alignItems:"center",gap:f.A.spacing(32),children:[(0,r.jsx)(p.A,{className:"icon-c-check",sx:{fontSize:f.A.spacing(128)}}),(0,r.jsx)(u.A,{variant:"h2Secondary",textTransform:"none",children:N()}),(0,r.jsx)(u.A,{variant:"bodyL",textTransform:"none",children:$()}),(0,r.jsxs)(u.A,{variant:"bodyL",children:[K()," ",(0,r.jsx)(d.A,{type:"submit",variant:"inline",disabled:!!(null==n?void 0:n.confirmation),children:J()})]})]})}):(0,r.jsxs)(_.Ay,{item:!0,xs:12,lg:10,children:[(0,r.jsx)(u.A,{variant:"h1Secondary",textTransform:"none",children:M()}),(0,r.jsxs)(h.A,{mt:{xs:f.A.spacing(40),lg:f.A.spacing(80)},gap:f.A.spacing(16),children:[(0,r.jsx)(_.Ay,{item:!0,xs:12,lg:8,children:(0,r.jsx)(u.A,{variant:"leadP",textTransform:"none",children:k()})}),(0,r.jsx)(_.Ay,{item:!0,xs:12,lg:6,children:(0,r.jsx)(w.Y,{name:"email",label:C(),placeholder:F(),authError:(null==n?void 0:n.forgotPassword)||(null==n?void 0:n.pending)})}),(0,r.jsx)(_.Ay,{mt:f.A.spacing(24),item:!0,xs:12,children:(0,r.jsx)(d.A,{type:"submit",size:"small",children:P()})})]})]})})})})})},q=()=>{let e=(0,i.useRouter)(),{isAuthenticated:t}=(0,l.A)();return t&&e.push("/user"),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(s.A,{blok:{title:"Recupero password - Treccani"}}),(0,r.jsx)(o.A,{my:{xs:a.A.spacing(80),lg:a.A.spacing(116)},children:(0,r.jsx)(Q,{})})]})}},50294:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var r=n(55729),i=n(56760),o=n(3126),a=n(78002),l=n(42752),s=n(59716),c=n(6029);let d=r.forwardRef(function(e,t){let{children:n,container:d,disablePortal:u=!1}=e,[p,m]=r.useState(null),g=(0,o.A)(r.isValidElement(n)?(0,a.A)(n):null,t);return((0,l.A)(()=>{u||m(("function"==typeof d?d():d)||document.body)},[d,u]),(0,l.A)(()=>
1{if(p&&!u)return(0,s.A)(t,p),()=>{(0,s.A)(t,null)}},[t,p,u]),u)?r.isValidElement(n)?r.cloneElement(n,{ref:g}):(0,c.jsx)(r.Fragment,{children:n}):(0,c.jsx)(r.Fragment,{children:p?i.createPortal(n,p):p})})},69577:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/user/forgotPassword",function(){return n(32519)}])},76116:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r,i=n(55729);let o=0,a=(r||(r=n.t(i,2)))["useId".toString()];function l(e){if(void 0!==a){let t=a();return null!=e?e:t}let[t,n]=i.useState(e),r=e||t;return i.useEffect(()=>{null==t&&(o+=1,n(`mui-${o}`))},[t]),r}},78228:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(55729);function i({controlled:e,default:t,name:n,state:i="value"}){let{current:o}=r.useRef(void 0!==e),[a,l]=r.useState(t),s=r.useCallback(e=>{o||l(e)},[]);return[o?e:a,s]}},83868:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(55729),i=n(1909);class o{static accessObjectByDotSeparatedKeys(e,t){return t.split(".").reduce((e,t)=>{var n,r,i;return null!=(i=null==(n=null!=e?e:{})?void 0:n[t])?i:null==(r=null!=e?e:{})?void 0:r[parseInt(t,10)]},e)}}let a=e=>{let{name:t}=e,{control:n,formState:{errors:a,isSubmitted:l},setValue:s,trigger:c}=(0,i.xW)(),d=(0,i.FH)({control:n,name:t}),u=(0,r.useCallback)(e=>{s(t,e),c(t)},[t,s,c]),p=o.accessObjectByDotSeparatedKeys(a,t);return{value:d,setValue:u,error:(0,r.useMemo)(()=>null==p?void 0:p.message,[p]),isSubmitted:l}}},95669:(e,t,n)=>{e.exports=n(97186)},99943:(e,t,n)=>{"use strict";n.d(t,{A:()=>g});var r=n(6029),i=n(55729),o=n(95669),a=n.n(o),l=n(26927),s=n(81278),c=n(6772),d=n.n(c),u=n(25539),p=n.n(u),m=n(26608);let g=e=>{var t;let{blok:n,story:o}=e,{title:c,description:u,scriptWebTV:g,keywords:f,image:h="https://www.treccani.it/assets/images/treccani_social_share.jpg",noIndex:_}=n,x=(0,s.useRouter)();null==o||null==(t=o.content)||t.component,(0,i.useEffect)(()=>{(0,m.mU)(),(0,m.Sr)();let e=()=>{let e=document.getElementById("qc-cmp2-ui");if(!e)return!1;let t=e.querySelector(".qc-cmp2-footer"),n=e.querySelector(".qc-cmp2-close");return!!t&&!!n&&(!!t.contains(n)||(t.appendChild(n),n.classList.add("moved-to-footer"),!0))},t=setInterval(()=>{e()&&clearInterval(t)},100),n=setTimeout(()=>{clearInterval(t)},15e3),r=new MutationObserver(()=>{e()&&clearInterval(t)});return r.observe(document.body,{childList:!0,subtree:!0}),()=>{clearInterval(t),clearTimeout(n),r.disconnect()}},[!1]);let v=c&&"treccani"!==c.toLowerCase()?"".concat(c," - Treccani"):"Treccani",y=(null==o||o.is_startpage,"".concat("https://www.treccani.it/").concat(x.asPath.split("?")[0]).concat("").replace(/([^:]\/)\/+/g,"$1").replace(/\/\./g,".").replace(/\.html\/$/,".html"));return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(d(),{id:"google-analytics",strategy:"afterInteractive",dangerouslySetInnerHTML:{__html:"(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':\n                  new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],\n                  j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=\n                  'https://www.googletagmanager.com/gtm.js?id='
1+i+dl+'".concat("","';f.parentNode.insertBefore(j,f);\n                  })(window,document,'script','dataLayer', \"").concat("GTM-MNG6HS2",'")')}}),(0,r.jsxs)(a(),{children:[(0,r.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1, maximum-scale=5"}),(0,r.jsx)("meta",{name:"robots",content:_?"noindex, follow":"index, follow"}),!1,(0,r.jsx)("title",{children:p()(v)}),u&&(0,r.jsx)("meta",{name:"description",content:u}),(0,r.jsx)("link",{rel:"canonical",href:y}),f&&(0,r.jsx)("meta",{name:"keywords",content:f}),(0,r.jsx)("meta",{property:"og:site_name",content:"Treccani"}),c&&(0,r.jsx)("meta",{property:"og:title",content:v}),u&&(0,r.jsx)("meta",{property:"og:description",content:u}),(0,r.jsx)("meta",{property:"og:image",content:h}),(0,r.jsx)("link",{rel:"manifest",href:"/manifest.json",crossOrigin:"use-credentials"}),(0,r.jsx)("link",{rel:"apple-touch-icon",href:"/logo-96x96.png"}),(0,r.jsx)("meta",{name:"theme-color",content:l.A.palette.primary.main}),(0,r.jsx)("meta",{name:"apple-mobile-web-app-status-bar",content:l.A.palette.primary.main}),!1,(0,r.jsx)("style",{dangerouslySetInnerHTML:{__html:"\n          @media only screen and (max-width: 970px) {\n            #gmp-topmobile {\n              min-height: 280px;\n              display: flex;\n              flex-direction: column;\n              justify-content: center;\n              align-items: center;\n            }\n            #gmp-sticky-middlemobile {\n              min-height: 280px;\n            }\n            #gmp-middlemobile {\n              top: 100px !important;\n              position: sticky !important;\n              margin: 0 auto;\n            }\n            #gmpSkinMobileSpacer {\n              min-height: 100px;\n              position: sticky;\n              top: 0;\n              z-index: 999;\n            }\n            #gmp-intext-vip_mob {\n              min-height: 144px;\n            }\n          }\n          @media only screen and (min-width: 971px) {\n            #gmp-masthead,\n            #gmp-masthead_home {\n              min-height: 250px;\n            }\n            #gmp-topright {\n              min-height: 600px;\n            }\n            #gmp-insidepostmiddle,\n            #gmp-insideposttop {\n              min-height: 280px;\n              display: flex;\n              flex-direction: column;\n              justify-content: center;\n              align-items: center;\n            }\n            #gmp-intext-vip_desk {\n              min-height: 169px;\n            }\n          }\n        "}})]})]})}}},e=>{var t=t=>e(e.s=t);e.O(0,[9694,4316,6238,2940,3300,636,6593,8792],()=>t(69577)),_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.