PageSourceSearch

https://myfai.fondoambiente.it/_next/static/chunks/pages/myfai/gestioneAccount-8162a54e2abc6454ddf4.js

js fondoambiente.it collected 2026-10-01 10:25:09 UTC 13,655 bytes, 1 lines download raw bytes

1_N_E=(window.webpackJsonp_N_E=window.webpackJsonp_N_E||[]).push([[77],{"3bxY":function(t,n,e){(window.__NEXT_P=window.__NEXT_P||[]).push(["/myfai/gestioneAccount",function(){return e("P1hX")}])},P1hX:function(t,n,e){"use strict";e.r(n);var o=e("ERkP"),r=e.n(o),a=e("QtE3"),c=e("uPMs"),i=e("QsI/"),u=e("9fIP"),l=e("MMYH"),s=e("K/z8"),d=e("sRHE"),f=e("8K1b"),p=e("luEP"),h=e("lw1E"),m=e("PmxH"),b=e("PI8s"),g=e("voCV"),w=e("uDfI"),v=e("niJQ"),O=e("8CSu"),y=e("iuh3"),j=e("Fz4j"),_=r.a.createElement;function F(){var t,n,e="function"==typeof Symbol?Symbol:{},o=e.iterator||"@@iterator",r=e.toStringTag||"@@toStringTag";function a(e,o,r,a){var u=o&&o.prototype instanceof i?o:i,l=Object.create(u.prototype);return C(l,"_invoke",function(e,o,r){var a,i,u,l=0,s=r||[],d=!1,f={p:0,n:0,v:t,a:p,f:p.bind(t,4),d:function(n,e){return a=n,i=0,u=t,f.n=e,c}};function p(e,o){for(i=e,u=o,n=0;!d&&l&&!r&&n<s.length;n++){var r,a=s[n],p=f.p,h=a[2];e>3?(r=h===o)&&(u=a[(i=a[4])?5:(i=3,3)],a[4]=a[5]=t):a[0]<=p&&((r=e<2&&p<a[1])?(i=0,f.v=o,f.n=a[1]):p<h&&(r=e<3||a[0]>o||o>h)&&(a[4]=e,a[5]=o,f.n=h,i=0))}if(r||e>1)return c;throw d=!0,o}return function(r,s,h){if(l>1)throw TypeError("Generator is already running");for(d&&1===s&&p(s,h),i=s,u=h;(n=i<2?t:u)||!d;){a||(i?i<3?(i>1&&(f.n=-1),p(i,u)):f.n=u:f.v=u);try{if(l=2,a){if(i||(r="next"),n=a[r]){if(!(n=n.call(a,u)))throw TypeError("iterator result is not an object");if(!n.done)return n;u=n.value,i<2&&(i=0)}else 1===i&&(n=a.return)&&n.call(a),i<2&&(u=TypeError("The iterator does not provide a '"+r+"' method"),i=1);a=t}else if((n=(d=f.n<0)?u:e.call(o,f))!==c)break}catch(n){a=t,i=1,u=n}finally{l=1}}return{value:n,done:d}}}(e,r,a),!0),l}var c={};function i(){}function u(){}function l(){}n=Object.getPrototypeOf;var s=[][o]?n(n([][o]())):(C(n={},o,(function(){return this})),n),d=l.prototype=i.prototype=Object.create(s);function f(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,l):(t.__proto__=l,C(t,r,"GeneratorFunction")),t.prototype=Object.create(d),t}return u.prototype=l,C(d,"constructor",l),C(l,"constructor",u),u.displayName="GeneratorFunction",C(l,r,"GeneratorFunction"),C(d),C(d,r,"Generator"),C(d,o,(function(){return this})),C(d,"toString",(function(){return"[object Generator]"})),(F=function(){return{w:a,m:f}})()}function C(t,n,e,o){var r=Object.defineProperty;try{r({},"",{})}catch(t){r=0}(C=function(t,n,e,o){function a(n,e){C(t,n,(function(t){return this._invoke(n,e,t)}))}n?r?r(t,n,{value:e,enumerable:!o,configurable:!o,writable:!o}):t[n]=e:(a("next",0),a("throw",1),a("return",2))})(t,n,e,o)}function P(t,n,e){return n=Object(d.a)(n),Object(s.a)(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}()?Reflect.construct(n,e||[],Object(d.a)(t).constructor):n.apply(t,e))}var k=function(t){function n(t){var e;return Object(u.a)(this,n),(e=P(this,n,[t])).state={status:null},e.handleFormSubmit=e.handleFormSubmit.bind(e),e}return Object(f.a)(n,t),Object(l.a)(n,[{key:"handleFormSubmit",value:function(){var t=Object(i.a)(F().m((function t(n){var e,o,r;return F().w((function(t){for(;;)switch(t.n){case 0:return e=this.props.tokenId,this.setState({status:"LOADING"}),o={current_password:n.current_password,new_password:n.new_password,new_password_confirmation:n.new_password_confirmation},t.n=1,Object(v.g)({data:o,tokenId:e});case 1:if(null===(r=t.v)||void 0===r||!r.errors){t.n=2;break}throw this.setState({status:null}),new h.a(r.errors);case 2:if(null===r||void 0===r||!r.errorMessage){t.n=3;break}throw this.setState({status:null}),new h.a({current_password:r.errorMessage});case 3:this.setState({status:"SUCCESS"});case 4:return t.a(2)}}),t,this)})));return function(n){return t.apply(this,arguments)}}()},{key:"render",value:function(){var t=this.props,n=t.handleSubmit,e=(t.invali
1d,this.state.status);return _("form",{onSubmit:n(this.handleFormSubmit)},_(m.a,{name:"current_password",label:"Password Attuale",component:y.e,type:"password"}),_(m.a,{name:"new_password",label:"Nuova Password",component:y.e,type:"password"}),_(m.a,{name:"new_password_confirmation",label:"Ripeti Password",component:y.e,type:"password"}),_("div",null,_(a.Button,{type:"submit",small:!0,orange:!0,onClick:n(this.handleFormSubmit),disabled:"LOADING"===e},"LOADING"===e&&"Carico...",null===e&&"Salva Nuova Password","SUCCESS"===e&&"Dati salvati!")))}}])}(o.Component),S={FormMyPassword:p.object().shape({current_password:p.string().min(8).required(),new_password:p.string().min(8).required(),new_password_confirmation:p.string().equalTo(p.ref("new_password_confirmation"))})},x=Object(g.a)(Object(b.a)({form:"FormMyPassword",validate:Object(j.a)({form:"FormMyPassword",schema:S})}),Object(w.b)((function(t){return{tokenId:Object(O.b)(t)}})))(k),E=e("Lm5w"),I=e("g8lC"),T=e("j/s1"),N=e("zjfJ"),A=e("q5Eu"),M=e("OZdK"),B=e("Q5fB"),D=r.a.createElement;function G(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,o)}return e}function R(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{};n%2?G(Object(e),!0).forEach((function(n){Object(N.a)(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):G(Object(e)).forEac
1h((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}))}return t}function z(t,n,e){return n=Object(d.a)(n),Object(s.a)(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}()?Reflect.construct(n,e||[],Object(d.a)(t).constructor):n.apply(t,e))}var q=function(t){function n(t){return Object(u.a)(this,n),z(this,n,[t])}return Object(f.a)(n,t),Object(l.a)(n,[{key:"render",value:function(){var t=this.props,n=t.userDelete,e=t.tokenId;return D(r.a.Fragment,null,D(a.TitleGroup,{title:"Cancella account",subtitle:"Sei sicuro di voler procedere con la cancellazione del tuo account? ATTENZIONE! L'azione sar\xe0 irreversibile."}),D(L,null,D(a.Button,{onClick:function(){return n(e)}},"Cancella account")))}}])}(o.Component),L=T.d.div.withConfig({displayName:"DeleteAccount__ButtonWrapper",componentId:"sc-1std7tf-0"})(["text-align:center;margin-top:20px;"]),Q=Object(w.b)((function(t){return{user:Object(B.c)(t),tokenId:Object(O.b)(t)}}),R(R({},A),M))(q),U=r.a.createElement;function H(t,n,e){return n=Object(d.a)(n),Object(s.a)(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}()?Reflect.construct(n,e||[],Object(d.a)(t).constructor):n.apply(t,e))}var J=function(t){function n(){var t;return Object(u.a)(this,n),(t=H(this,n)).state={showUp:!1},t.handleClick=t.handleClick.bind(t),t}return Object(f.a)(n,t),Object(l.a)(n,[{key:"handleClick",value:function(){this.setState((function(t){return{showUp:!t.showUp}}))}},{key:"render",value:function(){var t=this.state.showUp;return U(r.a.Fragment,null,U("div",null,U(a.TitleGroup,{title:"Cancella account",subtitle:"Clicca per cancellare il tuo account"}),U(X,null,U(a.Button,{onClick:this.handleClick},"Cancella account"))),t&&U(a.ModalOverlay,{onClose:this.handleClick},U(W,null,U(Q,null),U(K,null,U(a.PadderMobile,null,U(X,null,U(a.Button,{onClick:this.handleClick},"Annulla")))))))}}])}(o.Component),X=T.d.div.withConfig({displayName:"ContainerDeleteAccount__ButtonWrapper",componentId:"sc-1ixw5lq-0"})(["text-align:center;margin-top:20px;"]),K=T.d.div.withConfig({displayName:"ContainerDeleteAccount__ShowConfirmContainer",componentId:"sc-1ixw5lq-1"})(["display:flex;justify-content:center;"]),W=T.d.div.withConfig({displayName:"ContainerDeleteAccount__ModalOverlayContent",componentId:"sc-1ixw5lq-2"})(["padding:4rem 5rem;margin:0 auto;img{width:100%;}"]),Y=J,V=r.a.createElement,Z={title:"myFAI - Gestione account"},$=Object(E.a)({auth:{requiresAuth:!0},header:{hasCustomHeader:!0,headerType:"myfai"}})((function(t){return V(c.a,{seo:Z},V(a.AlternateHero,{title:"myFAI",subtitle:"Benvenuto nella tua pagina personale"}),V(I.a,{selectedId:3}
1),V(a.Background,{color:"grey"},V(a.Wrapper,{size:"extrasmall"},V(a.Padder,{size:"medium"},V(a.PadderMobile,null,V(a.TitleGroup,{title:"Modifica password"}),V(x,t))),V(a.Padder,{size:"medium"},V(a.PadderMobile,null,V(Y,t))))))}));n.default=$},g8lC:function(t,n,e){"use strict";var o=e("ERkP"),r=e.n(o),a=e("QtE3"),c=r.a.createElement;n.a=function(t){var n=t.selectedId;return c(a.TabsNavigation,{tabs:[{id:1,label:"Vicino a me"},{id:2,label:"I miei dati"},{id:3,label:"Gestione account"}],selectedId:n,onTabClick:function(t){1===t&&window&&(window.location.href="/myfai/vicino-a-me"),2===t&&window&&(window.location.href="/myfai/i-miei-dati"),3===t&&window&&(window.location.href="/myfai/gestione-account")}})}},mtjO:function(t,n,e){"use strict";e.d(n,"e",(function(){return i})),e.d(n,"d",(function(){return l})),e.d(n,"c",(function(){return s})),e.d(n,"f",(function(){return u})),e.d(n,"b",(function(){return d}));var o=e("r4FT"),r=e("0D0S"),a=e.n(r)()().publicRuntimeConfig.PLATFORM,c="eventi?with=content,alert,related,settore,news,tema,tipologia,categoria,media,luogo,luogo.regione,luogo.provincia&limit=150",i=function(t){return o.a.get("".concat(a,"/").concat(c).concat(t)).then((function(t){return t.data}))},u=function(t){return o.a.get("".concat(a,"/ldc/eventi/?with=calendar,luogo,luogo.ldc").concat(t||"")).then((function(t){return t.data}))},l=function(){return o.a.get("".concat(a,"/").concat("eventi/target")).then((function(t){return t.data.data}))},s=function(){return o.a.get("".concat(a,"/").concat("eventi/settori?fl_filtro=true")).then((function(t){return t.data.data}))},d=function(t,n){var e="";null!==t&&void 0!==t&&t.length&&(e="&search=".concat(t[0].toLowerCase()));var r="";return n&&(r="&ownersmodel=".concat(n.filter((function(t){return 0!==t})).join(","))),o.a.get("".concat(a,"/").concat(c,"&date_from=now&orderby=date_to_show+").concat(e).concat(r)).then((function(t){return t.data.data}))};n.a=function(t){return o.a.get("".concat(a,"/").concat(c).concat(t)).then((function(t){return t.data.data}))}},niJQ:function(t,n,e){"use strict";e.d(n,"a",(function(){return s})),e.d(n,"c",(function(){return d})),e.d(n,"b",(function(){return f})),e.d(n,"d",(function(){return p})),e.d(n,"e",(function(){return h})),e.d(n,"f",(function(){return m})),e.d(n,"g",(function(){return b}));var o=e("fGyu"),r=e("zygG"),a=e("r4FT"),c=e("0D0S"),i=e.n(c),u=e("mtjO"),l=i()().publicRuntimeConfig.PLATFORM,s=function(t){var n=t.coords,e=n.lat,o=n.lng,r=t.page,c=void 0===r?1:r;return a.a.get("".concat(l,"/luoghi/?with=bene,provincia,comune,bene.tipologia,bene.media,bene.luogo&has=bene&bene.id_tipologia_bene=1&bene.fl_online=1&radius[coords]=").concat(parseFloat(e).toFixed(2),",").concat(parseFloat(o).toFixed(2),"&radius[distance]=100&limit=4&page=").concat(c)).then((function(t){return t.data.data})).then((function(t){return t.map((function(t){return t.bene}))})).catch((function(){return[]}))},d=function(t){var n=t.coords,e=n.lat,o=n.lng,r=t.page,c=void 0===r?1:r;return a.a.get("".concat(l,"/rete?with=luogo,father&radius[coords]=").concat(parseFloat(e).toFixed(2),",").concat(parseFloat(o).toFixed(2),"&radius[distance]=100&limit=4&page=").concat(c)).then((function(t){return t.data.data})).catch((function(){return[]}))},f=function(t){var n=t.coords,e=n.lat,o=n.lng,r=t.page,c=void 0===r?1:r;return a.a.get("".concat(l,"/luoghi/faixme/?with=luogo,media,categorie,sottocategorie&has=sottocategorie&slug=null|NOT&radius[coords]=").concat(parseFloat(e).toFixed(2),",").concat(parseFloat(o).toFixed(2),"&radius[distance]=100&limit=4&page=").concat(c)).then((function(t){return t.data.data})).catch((function(){return[]}))},p=function(t){var n=t.coords,e=n.lat,o=n.lng,r=t.page,a=void 0===r?1:r;return Object(u.a)("&date_from=now&radius[coords]=".concat(parseFloat(e).toFixed(2),",").concat(parseFloat(o).toFixed(2),"&radius[distance]=100&limit=4&page=").concat(a)).catch((function(){return[]}))},h=function(t){var n=t.coords,e=n.lat,c=n.lng,i=t.page,u=void 0===i?1:i,s=t.limit,d=void 0===s?4:s,f="radius[coords]=".concat(parseFloat(e).toFixed(2),",").concat(parseFloat(c).toFixed(2),"&radius[distance]=100"),p="".concat(l,"/luoghi/?with=gfp,gfp.media&has=gfp&").concat(f,"&limit=").concat(d,"&page=").concat(u),h="".concat(l,"/luoghi/?with=gfa,gfa.media&has=gfa&").concat(f,"&limit=").concat(d,"&page=").concat(u);return Promise.all([a.a.get(p).then((function(t){return t.data.data}
1)).catch((function(){return[]})),a.a.get(h).then((function(t){return t.data.data})).catch((function(){return[]}))]).then((function(t){var n=Object(r.a)(t,2),e=n[0],a=n[1];return[].concat(Object(o.a)(e),Object(o.a)(a)).slice(0,d)})).catch((function(){return[]}))},m=function(t){var n=t.coords,e=n.lat,o=n.lng,r=t.page,c=void 0===r?1:r,i=t.limit,u=void 0===i?4:i,s="radius[coords]=".concat(parseFloat(e).toFixed(2),",").concat(parseFloat(o).toFixed(2),"&radius[distance]=100"),d="".concat(l,"/luoghi/?with=ldc,ldc.media,tipologia,comune,provincia,regione&has=ldc_tipologia,ldc&").concat(s,"&orderby=rank&limit=").concat(u,"&page=").concat(c);return a.a.get(d).then((function(t){return t.data.data})).catch((function(){return[]}))},b=function(t){var n=t.data,e=t.tokenId;return Object(a.a)({method:"patch",url:"".concat(l,"/users/me"),data:n,headers:{Authorization:"Bearer ".concat(e)}}).then((function(t){return t.data.data})).catch((function(t){return{errorMessage:t.response.data.message,errors:t.response.data.errors}}))}}},[["3bxY",1,0,4,6,3,2,5,7,8,9,10,12,11,14,13,15,17,27,29]]]);

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.