PageSourceSearch

https://myfai.fondoambiente.it/_next/static/chunks/402308651159ac4…6ad4aff3d1cd80e880e.1d051b2e1e892ef33dac.js

js fondoambiente.it collected 2026-10-01 10:22:51 UTC 49,537 bytes, 1 lines download raw bytes

1(window.webpackJsonp_N_E=window.webpackJsonp_N_E||[]).push([[7],{"0Fdf":function(r,t,e){"use strict";(function(r){e.d(t,"b",(function(){return m})),e.d(t,"a",(function(){return _})),e.d(t,"c",(function(){return h})),e.d(t,"d",(function(){return w}));var n=e("JSET"),o=e("f93t"),a=e("GpW5"),i=e("7fPt"),c=e("pIK3"),u=e("scPO"),l=e("WOHs"),s=e("jPgV"),f="true"===r.env.NEXT_PUBLIC_USE_MOCKS,p=parseInt(r.env.NEXT_PUBLIC_MOCK_LATENCY||"500",10),d=parseFloat(r.env.NEXT_PUBLIC_MOCK_ERROR_RATE||"0"),g="true"===r.env.NEXT_PUBLIC_MOCK_SETTINGS_EMPTY;var v=null,m=function(){return v||(f?(console.log("[ServiceFactory] Creating MOCK ProfileService"),v=Object(n.a)({latency:p,errorRate:d})):(console.log("[ServiceFactory] Creating REAL ProfileService"),v=Object(o.a)())),v},y=null,_=function(){return y||(f?(console.log("[ServiceFactory] Creating MOCK NotiziariService"),y=Object(a.a)({latency:p,errorRate:d})):(console.log("[ServiceFactory] Creating REAL NotiziariService"),y=Object(i.a)())),y},b=null,h=function(){return b||(b=f?Object(c.a)({latency:p,empty:g}):Object(u.a)()),b},O=null,w=function(){return O||(O=f?Object(l.a)({latency:p}):Object(s.a)()),O}}).call(this,e("F63i"))},"2MKL":function(r,t,e){"use strict";e.d(t,"c",(function(){return o})),e.d(t,"b",(function(){return a})),e.d(t,"a",(function(){return i}));var n=function(){try{var r="__localStorage_test__";return window.localStorage.setItem(r,r),window.localStorage.removeItem(r),!0}catch(t){return!1}},o=function(r){if(!r||"object"!==typeof r)return{success:!1,error:"invalid_params"};if(!n())return{success:!1,error:"storage_disabled"};try{var t={anagr:r,timestamp:Date.now()};return window.localStorage.setItem("myfai_anagr",JSON.stringify(t)),{success:!0}}catch(e){return"QuotaExceededError"===e.name||22===e.code?{success:!1,error:"storage_quota_exceeded"}:"SecurityError"===e.name?{success:!1,error:"storage_disabled"}:{success:!1,error:"storage_error"}}},a=function(){if(!n())return{success:!1,data:null,error:"storage_disabled"};try{var r=window.localStorage.getItem("myfai_anagr");if(!r)return{success:!0,data:null};var t=JSON.parse(r);return{success:!0,data:t.anagr||null,cacheTimestamp:t.timestamp}}catch(e){return{success:!1,data:null,error:"parse_error"}}},i=function(){if(!n())return{success:!1};try{return window.localStorage.removeItem("myfai_anagr"),{success:!0}}catch(r){return{success:!1}}}},"7fPt":function(r,t,e){"use strict";e.d(t,"a",(function(){return O}));var n=e("fGyu"),o=e("QsI/"),a=e("zygG"),i=e("vDqi"),c=e.n(i),u=e("0D0S");function l(){var r,t,e="function"==typeof Symbol?Symbol:{},n=e.iterator||"@@iterator",o=e.toStringTag||"@@toStringTag";function a(e,n,o,a){var u=n&&n.prototype instanceof c?n:c,l=Object.create(u.prototype);return s(l,"_invoke",function(e,n,o){var a,c,u,l=0,s=o||[],f=!1,p={p:0,n:0,v:r,a:d,f:d.bind(r,4),d:function(t,e){return a=t,c=0,u=r,p.n=e,i}};function d(e,n){for(c=e,u=n,t=0;!f&&l&&!o&&t<s.length;t++){var o,a=s[t],d=p.p,g=a[2];e>3?(o=g===n)&&(u=a[(c=a[4])?5:(c=3,3)],a[4]=a[5]=r):a[0]<=d&&((o=e<2&&d<a[1])?(c=0,p.v=n,p.n=a[1]):d<g&&(o=e<3||a[0]>n||n>g)&&(a[4]=e,a[5]=n,p.n=g,c=0))}if(o||e>1)return i;throw f=!0,n}return function(o,s,g){if(l>1)throw TypeError("Generator is already running");for(f&&1===s&&d(s,g),c=s,u=g;(t=c<2?r:u)||!f;){a||(c?c<3?(c>1&&(p.n=-1),d(c,u)):p.n=u:p.v=u);try{if(l=2,a){if(c||(o="next"),t=a[o]){if(!(t=t.call(a,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,c<2&&(c=0)}else 1===c&&(t=a.return)&&t.call(a),c<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),c=1);a=r}else if((t=(f=p.n<0)?u:e.call(n,p))!==i)break}catch(t){a=r,c=1,u=t}finally{l=1}}return{value:t,done:f}}}(e,o,a),!0),l}var i={};function c(){}function u(){}function f(){}t=Object.getPrototypeOf;var p=[][n]?t(t([][n]())):(s(t={},n,(function(){return this})),t),d=f.prototype=c.prototype=Object.create(p);function g(r){return Object.setPrototypeOf?Object.setPrototypeOf(r,f):(r.__proto__=f,s(r,o,"GeneratorFunction")),r.prototype=Object.create(d),r}return u.prototype=f,s(d,"constructor",f),s(f,"constructor",u),u.displayName="GeneratorFunction",s(f,o,"GeneratorFunction"),s(d),s(d,o,"Generator"),s(d,n,(function(){return this})),s(d,"toString",(function(){return"[object Generator]"})),(l=function(){return{w:a,m:g}})()}function s(r,t,e,n){var o=Object.defineProperty;try{o({},"",{})}catch(r){o=0}(s=function(r,t,e,n){function a(t,e){s(r,t,(function(r){return this._invoke(t,e,r)}))}t?o?o(r,t,{value:e,enumerable:!n,configurable:!n,writable:!n}):r[t]=e:(a("next",0),a("throw",1),a("return",2))})(r,t,e,n)}var f=(e.n(u)()()||{}).publicRuntimeConfig,p=(void 0===f?{}:f).PLATFORM,d={gennaio:0,febbraio:1,marzo:2,aprile:3,maggio:4,giugno:5,luglio:6,agosto:7,settembre:8,ottobre:9,novembre:10,dicembre:11},g=function(r,t){var e=t||(new Date).getFullYear(),n=function(r){var t;if(!r||"string"!==typeof r)return 0;var e=r.split(/[,/]/)[0].trim().toLowerCase();return null!==(t=d[e])&&void 0!==t?t:0}(r);return new Date(Date.UTC(e,n,15)).toISOString()},v=function(r){return{id:r.id,number:r.numero,mese:r.mese||"",anno:r.nr_anno||(new Date).getFullYear(),coverImage:r.url_cover||"",publishDate:g(r.mese,r.nr_anno),pdfUrl:r.url_download||"",flipbookUrl:r.url_numero||"",inEvidenza:Boolean(r.fl_in_evidenza)}},m=function(r){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=r.notiziario||t[r.id_notiziario]||{},n="string"===typeof r.tags?r.tags.split(",").map((function(r){return r.trim()}
1)).filter(Boolean).slice(0,3):[],o=r.titolo||r.topic||"";return{id:r.id,number:e.numero||null,notiziarioId:e.id||r.id_notiziario||null,title:o,articleTitle:o,category:"string"===typeof r.categoria?r.categoria.trim():"",focusTags:n,coverImage:e.url_cover||"",publishDate:g(e.mese,e.nr_anno),pdfUrl:r.url_articolo||e.url_download||"",flipbookUrl:e.url_numero||"",articleUrl:r.url_articolo||e.url_numero||""}},y=function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Array.isArray(r.categoryIds)?r.categoryIds.length>0:Array.isArray(r.categories)&&r.categories.length>0,e=Array.isArray(r.yearRanges)&&r.yearRanges.length>0,n="string"===typeof r.search&&r.search.trim().length>=3,o=Array.isArray(r.notiziarioIds)&&r.notiziarioIds.length>0;return t||e||n||o},_=function(r){if("string"!==typeof r)return[];var t=r.split("-"),e=Object(a.a)(t,2),n=e[0],o=e[1],i=parseInt(n,10),c=parseInt(o,10);if(!Number.isFinite(i)||!Number.isFinite(c)||c<i)return[];for(var u=[],l=i;l<=c;l+=1)u.push(l);return u},b=function(r,t){var e=new URLSearchParams;return e.set("page",String(r)),e.set("per_page",String(t)),e.set("orderby","nr_display_order-"),e},h=function(r,t){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=e.categoryIds,o=e.idNotiziariByYear,a=e.notiziarioIds,i=e.search,c=new URLSearchParams;c.set("page",String(r)),c.set("per_page",String(t)),c.set("with","notiziario");var u="string"===typeof i&&i.trim().length>=3;c.set("orderby","id-"),Array.isArray(n)&&n.length>0&&n.forEach((function(r){return c.append("attributes[id_categoria][]",String(r))}));var l=new Set;return Array.isArray(o)&&o.forEach((function(r){return l.add(String(r))})),Array.isArray(a)&&a.forEach((function(r){return l.add(String(r))})),l.forEach((function(r){return c.append("attributes[id_notiziario][]",r)})),u&&c.set("search",i.trim()),c},O=function(){var r=null,t=null,i=function(){var t=Object(o.a)(l().m((function t(){var e,n,o,a,i,u;return l().w((function(t){for(;;)switch(t.p=t.n){case 0:if(!r){t.n=1;break}return t.a(2,r);case 1:return t.p=1,t.n=2,c.a.get("".concat(p,"/notiziari/categorie"));case 2:return n=t.v,o=Array.isArray(null===(e=n.data)||void 0===e?void 0:e.data)?n.data.data:[],a=o.filter((function(r){return r&&r.id&&r.categoria})).map((function(r){return{id:Number(r.id),name:String(r.categoria).trim()}})),i=a.reduce((function(r,t){return r[t.name.toLowerCase()]=t.id,r}),{}),r={items:a,nameToId:i},t.a(2,r);case 3:return t.p=3,u=t.v,console.error("[RealNotiziariService] ensureCategories error:",u),r={items:[],nameToId:{}},t.a(2,r)}}),t,null,[[1,3]])})));return function(){return t.apply(this,arguments)}}(),u=function(){var r=Object(o.a)(l().m((function r(t){var e,n;return l().w((function(r){for(;;)switch(r.n){case 0:if(!(Array.isArray(null===t||void 0===t?void 0:t.categoryIds)&&t.categoryIds.length>0)){r.n=1;break}return r.a(2,t.categoryIds.map(Number).filter(Number.isFinite));case 1:if(Array.isArray(null===t||void 0===t?void 0:t.categories)&&0!==t.categories.length){r.n=2;break}return r.a(2,[]);case 2:return r.n=3,i();case 3:return e=r.v,n=e.nameToId,r.a(2,t.categories.map((function(r){return n[String(r).trim().toLowerCase()]})).filter((function(r){return Number.isFinite(r)})))}}),r)})));return function(t){return r.apply(this,arguments)}}(),s=function(){var r=Object(o.a)(l().m((function r(t){var e,n,o,a,i,u,s;return l().w((function(r){for(;;)switch(r.p=r.n){case 0:if(Array.isArray(t)&&0!==t.length){r.n=1;break}return r.a(2,[]);case 1:if(0!==(e=t.flatMap(_)).length){r.n=2;break}return r.a(2,[]);case 2:return n=new URLSearchParams,e.forEach((function(r){return n.append("attributes[nr_anno][]",String(r))})),n.set("fields[Notiziario]","id"),n.set("per_page","200"),r.p=3,r.n=4,c.a.get("".concat(p,"/notiziari?").concat(n.toString()));case 4:return a=r.v,i=Array.isArray(null===(o=a.data)||void 0===o?void 0:o.data)?a.data.data:[],u=i.map((function(r){return Number(r.id)})).filter(Number.isFinite),r.a(2,0===u.length?null:u);case 5:throw r.p=5,s=r.v,console.error("[RealNotiziariService] resolveIdNotiziariByYear error:",s),new Error("Errore nel caricamento dei notiziari per anno: ".concat(s.message));case 6:return r.a(2)}}),r,null,[[3,5]])})));return function(t){return r.apply(this,arguments)}}(),f=function(){var r=Object(o.a)(l().m((function r(t,e,n){var o,i,f,d,g,v,y,_,b;return l().w((function(r){for(;;)switch(r.n){case 0:return r.n=1,Promise.all([u(n),s(null===n||void 0===n?void 0:n.yearRanges)]);case 1:if(o=r.v,i=Object(a.a)(o,2),f=i[0],null!==(d=i[1])){r.n=2;break}return r.a(2,{data:{items:[],pagination:{currentPage:1,itemsPerPage:e,totalItems:0,totalPages:0}},meta:{timestamp:(new Date).toISOString()}});case 2:return g=Array.isArray(null===n||void 0===n?void 0:n.notiziarioIds)?n.notiziarioIds.map((function(r){return null==r?"":String(r)}
1)).filter(Boolean):[],v=h(t,e,{categoryIds:f,idNotiziariByYear:d,notiziarioIds:g,search:null===n||void 0===n?void 0:n.search}),r.n=3,c.a.get("".concat(p,"/notiziari/articoli?").concat(v.toString()));case 3:return y=r.v,_=y.data||{},b=Array.isArray(_.data)?_.data:[],r.a(2,{data:{items:b.map((function(r){return m(r)})),pagination:{currentPage:_.current_page||t,itemsPerPage:_.per_page||e,totalItems:_.total||b.length,totalPages:_.last_page||1}},meta:{timestamp:(new Date).toISOString()}})}}),r)})));return function(t,e,n){return r.apply(this,arguments)}}();return{getNotiziari:function(){var r=Object(o.a)(l().m((function r(){var t,e,n,o,a,i,u,s,d=arguments;return l().w((function(r){for(;;)switch(r.p=r.n){case 0:if(t=d.length>0&&void 0!==d[0]?d[0]:1,e=d.length>1&&void 0!==d[1]?d[1]:8,n=d.length>2&&void 0!==d[2]?d[2]:{},r.p=1,!y(n)){r.n=3;break}return r.n=2,f(t,4,n);case 2:return r.a(2,r.v);case 3:return o=b(t,e),r.n=4,c.a.get("".concat(p,"/notiziari?").concat(o.toString()));case 4:return a=r.v,i=a.data||{},u=Array.isArray(i.data)?i.data:[],r.a(2,{data:{items:u.map(v),pagination:{currentPage:i.current_page||t,itemsPerPage:i.per_page||e,totalItems:i.total||u.length,totalPages:i.last_page||1}},meta:{timestamp:(new Date).toISOString()}});case 5:throw r.p=5,s=r.v,console.error("[RealNotiziariService] getNotiziari error:",s),new Error("Errore nel caricamento dei notiziari: ".concat(s.message));case 6:return r.a(2)}}),r,null,[[1,5]])})));return function(){return r.apply(this,arguments)}}(),getNotiziarioById:function(){var r=Object(o.a)(l().m((function r(t){var e,n;return l().w((function(r){for(;;)switch(r.p=r.n){case 0:return r.p=0,r.n=1,c.a.get("".concat(p,"/notiziari/").concat(t));case 1:if((e=r.v).data&&e.data.id){r.n=2;break}return r.a(2,null);case 2:return r.a(2,v(e.data));case 3:if(r.p=3,!(n=r.v).response||404!==n.response.status){r.n=4;break}return r.a(2,null);case 4:throw console.error("[RealNotiziariService] getNotiziarioById error:",n),new Error("Errore nel caricamento del notiziario: ".concat(n.message));case 5:return r.a(2)}}),r,null,[[0,3]])})));return function(t){return r.apply(this,arguments)}}(),getCategories:function(){var r=Object(o.a)(l().m((function r(){var t,e;return l().w((function(r){for(;;)switch(r.n){case 0:return r.n=1,i();case 1:return t=r.v,e=t.items,r.a(2,Object(n.a)(e).sort((function(r,t){return r.name.localeCompare(t.name,"it")})))}}),r)})));return function(){return r.apply(this,arguments)}}(),getYearRanges:function(){var r=Object(o.a)(l().m((function r(){var n,i,u,s,f,d,g,v,m,y,_,b,h,O,w;return l().w((function(r){for(;;)switch(r.p=r.n){case 0:if(!t){r.n=1;break}return r.a(2,t);case 1:return r.n=2,Promise.resolve().then(e.bind(null,"QoCk"));case 2:return n=r.v,i=n.buildYearRanges,u=n.getNotiziariYearRangesFallback,s=n.NOTIZIARI_FALLBACK_MIN_YEAR,f=function(){var r=Object(o.a)(l().m((function r(t){var e,n,o,a,i;return l().w((function(r){for(;;)switch(r.n){case 0:return(o=new URLSearchParams).set("orderby",t),o.set("fields[Notiziario]","nr_anno"),o.set("per_page","1"),r.n=1,c.a.get("".concat(p,"/notiziari?").concat(o.toString()));case 1:return a=r.v,i=Array.isArray(null===(e=a.data)||void 0===e?void 0:e.data)?a.data.data:[],r.a(2,Number(null===(n=i[0])||void 0===n?void 0:n.nr_anno))}}),r)})));return function(t){return r.apply(this,arguments)}}(),r.p=3,r.n=4,Promise.all([f("nr_anno"),f("nr_anno-")]);case 4:return d=r.v,g=Object(a.a)(d,2),v=g[0],m=g[1],y=(new Date).getFullYear(),b=(_=function(r){return Number.isFinite(r)&&r>=1900&&r<=y+10})(v)?v:s,h=Math.max(y,_(m)?m:y),O=i(b,h),t=O.length>0?O:u(),r.a(2,t);case 5:throw r.p=5,w=r.v,console.error("[RealNotiziariService] getYearRanges error:",w),new Error("Errore nel caricamento dei range anno: ".concat(w.message));case 6:return r.a(2)}}),r,null,[[3,5]])})));return function(){return r.apply(this,arguments)}}()}}},B95B:function(r,t,e){"use strict";function n(r,t){if(!r)return null;var e=t.toLowerCase(),n=Object.keys(r).find((function(r){return r.toLowerCase()===e}));if(!n)return null;var o=r[n];return void 0===o||null===o||""===o?null:o}function o(r,t,e){var o=n(r,"fl_".concat(t).concat(e)),a=n(r,"".concat(t,"_label").concat(e)),i=n(r,"".concat(t,"_icon").concat(e)),c=n(r,"".concat(t,"_url").concat(e)),u=n(r,"".concat(t,"_bg_color").concat(e)),l=n(r,"".concat(t,"_fg_color").concat(e));return{enabled:"S"===String(o).trim().toUpperCase()&&Boolean(c),label:a||null,icon:i||null,url:c||null,bgColor:u||null,fgColor:l||null}}e.d(t,"a",(function(){return f}));var a="walleta",i="walletg",c="print",u="dwnld";function l(r,t){return{apple:o(r,a,t),google:o(r,i,t),stampa:o(r,c,t),scarica:o(r,u,t)}}function s(r){return!!r&&Object.keys(r).some((function(r){return r.toLowerCase().endsWith("_coll")}))}function f(r){return r&&"object"===typeof r?{principale:l(r,""),collegata:s(r)?l(r,"_coll"):null}:null}},GpW5:function(r,t,e){"use strict";e.d(t,"a",(function(){return v}));var n=e("QsI/"),o=e("fGyu"),a=e("zygG"),i=e("QoCk");function c(){var r,t,e="function"==typeof Symbol?Symbol:{},n=e.iterator||"@@iterator",o=e.toStringTag||"@@toStringTag";function a(e,n,o,a){var c=n&&n.prototype instanceof l?n:l,s=Object.create(c.prototype);return u(s,"_invoke",function(e,n,o){var a,c,u,l=0,s=o||[],f=!1,p={p:0,n:0,v:r,a:d,f:d.bind(r,4),d:function(t,e){return a=t,c=0,u=r,p.n=e,i}};function d(e,n){for(c=e,u=n,t=0;!f&&l&&!o&&t<s.length;t++){var o,a=s[t],d=p.p,g=a[2];e>3?(o=g===n)&&(u=a[(c=a[4])?5:(c=3,3)],a[4]=a[5]=r):a[0]<=d&&((o=e<2&&d<a[1])?(c=0,p.v=n,p.n=a[1]):d<g&&(o=e<3||a[0]>n||n>g)&&(a[4]=e,a[5]=n,p.n=g,c=0))}if(o||e>1)return i;throw f=!0,n}return function(o,s,g){if(l>1)throw TypeError("Generator is already running");for(f&&1===s&&d(s,g),c=s,u=g;(t=c<2?r:u)||!f;){a||(c?c<3?(c>1&&(p.n=-1),d(c,u)):p.n=u:p.v=u);try{if(l=2,a){if(c||(o="next"),t=a[o]){if(!(t=t.call(a,u)))throw TypeError("iterator result is not an object");
1if(!t.done)return t;u=t.value,c<2&&(c=0)}else 1===c&&(t=a.return)&&t.call(a),c<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),c=1);a=r}else if((t=(f=p.n<0)?u:e.call(n,p))!==i)break}catch(t){a=r,c=1,u=t}finally{l=1}}return{value:t,done:f}}}(e,o,a),!0),s}var i={};function l(){}function s(){}function f(){}t=Object.getPrototypeOf;var p=[][n]?t(t([][n]())):(u(t={},n,(function(){return this})),t),d=f.prototype=l.prototype=Object.create(p);function g(r){return Object.setPrototypeOf?Object.setPrototypeOf(r,f):(r.__proto__=f,u(r,o,"GeneratorFunction")),r.prototype=Object.create(d),r}return s.prototype=f,u(d,"constructor",f),u(f,"constructor",s),s.displayName="GeneratorFunction",u(f,o,"GeneratorFunction"),u(d),u(d,o,"Generator"),u(d,n,(function(){return this})),u(d,"toString",(function(){return"[object Generator]"})),(c=function(){return{w:a,m:g}})()}function u(r,t,e,n){var o=Object.defineProperty;try{o({},"",{})}catch(r){o=0}(u=function(r,t,e,n){function a(t,e){u(r,t,(function(r){return this._invoke(t,e,r)}))}t?o?o(r,t,{value:e,enumerable:!n,configurable:!n,writable:!n}):r[t]=e:(a("next",0),a("throw",1),a("return",2))})(r,t,e,n)}var l=function(r,t){var e=t.split("-").map(Number),n=Object(a.a)(e,2),o=n[0],i=n[1];return r>=o&&r<=i},s=function(r,t){var e=Math.floor(Math.random()*(t-r+1))+r;return new Promise((function(r){return setTimeout(r,e)}))},f=function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(Math.random()<r)throw new Error("Errore nel caricamento dei notiziari")},p=function(r){var t=["Ville e Giardini del FAI","Tesori d'Italia","Natura e Paesaggio","Eventi Straordinari","Storia e Cultura"],e=["Villa Necchi Campiglio: restauro e rinascita","Il giardino della Kolymbethra nella Valle dei Templi","I boschi del FAI: biodiversita e conservazione","Le Giornate FAI di Primavera 2025","Castello di Masino: mille anni di storia","Villa dei Vescovi e il Rinascimento veneto","Il Parco Villa Gregoriana a Tivoli","Monastero di Torba: testimonianza longobarda","Villa Panza e la collezione di arte contemporanea","Abbazia di San Fruttuoso tra mare e montagna"],n=[["Villa Necchi","Milano","Restauro"],["Kolymbethra","Sicilia","Archeologia"],["Biodiversita","Boschi","Ambiente"],["Giornate FAI","Volontariato","Aperture"],["Castello Masino","Piemonte","Medioevo"],["Villa Vescovi","Veneto","Rinascimento"],["Villa Gregoriana","Tivoli","Cascate"],["Monastero Torba","Lombardia","Longobardi"],["Villa Panza","Arte Contemporanea","Varese"],["San Fruttuoso","Liguria","Abbazia"]],o=function(r){return r<=2||12===r?"Inverno":r<=5?"Primavera":r<=8?"Estate":"Autunno"};return Array.from({length:r},(function(r,a){var c=2026-Math.floor(a/12),u=12-a%12,l=170-a,s="notiziario-".concat(c,"-").concat(String(u).padStart(2,"0"));return{id:s,notiziarioId:s,title:"".concat(t[a%t.length]," - ").concat(o(u)," ").concat(c),number:l>0?l:1,articleTitle:e[a%e.length],category:i.NOTIZIARI_CATEGORIES[a%i.NOTIZIARI_CATEGORIES.length],focusTags:n[a%n.length],coverImage:"https://picsum.photos/seed/".concat(a,"/300/400"),inEvidenza:0===a||3===a,publishDate:new Date(c,u-1,15).toISOString(),pdfUrl:"/downloads/notiziari/".concat(c,"/").concat(u,".pdf"),flipbookUrl:0===a?"https://heyzine.com/flip-book/0811b70435.html":"https://heyzine.com/flip-book/".concat((a+1).toString(16).padStart(10,"0"),".html"),articleUrl:0===a?"https://heyzine.com/flip-book/0811b70435.html":"https://heyzine.com/flip-book/".concat((a+1).toString(16).padStart(10,"0"),".html")}}))}(150),d=p.map((function(r){return new Date(r.publishDate).getFullYear()})),g=Object(i.buildYearRanges)(Math.min.apply(Math,Object(o.a)(d)),Math.max.apply(Math,Object(o.a)(d))),v=function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(r.latency,r.errorRate),e=void 0===t?0:t;return{getNotiziari:function(){var r=Object(n.a)(c().m((function r(){var t,n,o,a,i,u,d,g,v,m=arguments;return c().w((function(r){for(;;)switch(r.n){case 0:return t=m.length>0&&void 0!==m[0]?m[0]:1,n=m.length>1&&void 0!==m[1]?m[1]:12,o=m.length>2&&void 0!==m[2]?m[2]:{},r.n=1,s(300,800);case 1:return f(e),a=p,o.categories&&o.categories.length>0&&(a=a.filter((function(r){return o.categories.includes(r.category)}))),o.yearRanges&&o.yearRanges.length>0&&(a=a.filter((function(r){var t=new Date(r.publishDate).getFullYear();return o.yearRanges.some((function(r){return l(t,r)}))}))),o.search&&o.search.trim().length>=3&&(i=o.search.trim().toLowerCase(),a=a.filter((function(r){return r.title.toLowerCase().includes(i)}))),o.notiziarioIds&&o.notiziarioIds.length>0&&(u=new Set(o.notiziarioIds.map(String)),a=a.filter((function(r){return u.has(String(r.notiziarioId||r.id))}))),d=(t-1)*n,g=a.slice(d,d+n),v=Math.ceil(a.length/n),r.a(2,{data:{items:g,pagination:{currentPage:t,itemsPerPage:n,totalItems:a.length,totalPages:v}},meta:{timestamp:(new Date).toISOString()}})}}),r)})));return function(){return r.apply(this,arguments)}}(),getNotiziarioById:function(){var r=Object(n.a)(c().m((function r(t){var n;return c().w((function(r){for(;;)switch(r.n){case 0:return r.n=1,s(200,500);case 1:if(f(e),n=p.find((function(r){return r.id===t}))){r.n=2;break}return r.a(2,null);case 2:return r.a(2,n)}}),r)})));return function(t){return r.apply(this,arguments)}}(),getCategories:function(){return Object(o.a)(new Set(p.map((function(r){return r.category})))).sort().map((function(r,t){return{id:t+1,name:r}}))},getYearRanges:function(){return g}}}},JSET:function(r,t,e){"use strict";e.d(t,"a",(function(){return p}));var n=e("zjfJ"),o=e("QsI/");function a(){var r,t,e="function"==typeof Symbol?Symbol:{},n=e.iterator||"@@iterator",o=e.toStringTag||"@@toStringTag";function c(e,n,o,a){var c=n&&n.prototype instanceof l?n:l,s=Object.create(c.prototype);return i(s,"_invoke",function(e,n,o){var a,i,c,l=0,s=o||[],f=!1,p={p:0,n:0,v:r,a:d,f:d.bind(r,4),d:function(t,e){return a=t,i=0,c=r,p.n=e,u}};function d(e,n){for(i=e,c=n,t=0;!f&&l&&!o&&t<s.length;t++){var o,a=s[t],d=p.p,g=a[2];e>3?(o=g===n)&&(c=a[(i=a[4])?5:(i=3,3)],a[4]=a[5]=r):a[0]<=d&&((o=e<2&&d<a[1])?(i=0,p.v=n,p.n=a[1]):d<g&&(o=e<3||a[0]>n||n>g)&&(a[4]=e,a[5]=n,p.n=g,i=0))}if(o||e>1)return u;throw f=!0,n}return function(o,s,g){if(l>1)throw TypeError("Generator is already running");for(f&&1===s&&d(s,g),i=s,c=g;(t=i<2?r:c)||!f;){a||(i?i<3?(i>1&&(p.n=-1),d(i,c)):p.n=c:p.v=c);try{if(l=2,a){if(i||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");
1if(!t.done)return t;c=t.value,i<2&&(i=0)}else 1===i&&(t=a.return)&&t.call(a),i<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),i=1);a=r}else if((t=(f=p.n<0)?c:e.call(n,p))!==u)break}catch(t){a=r,i=1,c=t}finally{l=1}}return{value:t,done:f}}}(e,o,a),!0),s}var u={};function l(){}function s(){}function f(){}t=Object.getPrototypeOf;var p=[][n]?t(t([][n]())):(i(t={},n,(function(){return this})),t),d=f.prototype=l.prototype=Object.create(p);function g(r){return Object.setPrototypeOf?Object.setPrototypeOf(r,f):(r.__proto__=f,i(r,o,"GeneratorFunction")),r.prototype=Object.create(d),r}return s.prototype=f,i(d,"constructor",f),i(f,"constructor",s),s.displayName="GeneratorFunction",i(f,o,"GeneratorFunction"),i(d),i(d,o,"Generator"),i(d,n,(function(){return this})),i(d,"toString",(function(){return"[object Generator]"})),(a=function(){return{w:c,m:g}})()}function i(r,t,e,n){var o=Object.defineProperty;try{o({},"",{})}catch(r){o=0}(i=function(r,t,e,n){function a(t,e){i(r,t,(function(r){return this._invoke(t,e,r)}))}t?o?o(r,t,{value:e,enumerable:!n,configurable:!n,writable:!n}):r[t]=e:(a("next",0),a("throw",1),a("return",2))})(r,t,e,n)}function c(r,t){var e=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),e.push.apply(e,n)}return e}function u(r){for(var t=1;t<arguments.length;t++){var e=null!=arguments[t]?arguments[t]:{};t%2?c(Object(e),!0).forEach((function(t){Object(n.a)(r,t,e[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(e)):c(Object(e)).forEac
1h((function(t){Object.defineProperty(r,t,Object.getOwnPropertyDescriptor(e,t))}))}return r}var l={nome:"Federica",cognome:"Rossi",email:"[email protected]",telefono:"334 0233456",telefonoFisso:"",dataNascita:"1986-08-08T00:00:00Z",genere:"Donna",codiceFiscale:"",indirizzo:{via:"Via Pisino, 54",citta:"Roma",cap:"00132",provincia:"RM",nazione:"Italia"}},s=function(r){return new Promise((function(t){return setTimeout(t,r)}))},f=function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Errore di rete";if(Math.random()<r)throw new Error(t)},p=function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=r.latency,e=void 0===t?500:t,n=r.errorRate,i=void 0===n?0:n;return{getProfile:function(){var r=Object(o.a)(a().m((function r(){return a().w((function(r){for(;;)switch(r.n){case 0:return console.log("[MockProfileService] getProfile"),r.n=1,s(e);case 1:return f(i,"Errore caricamento profilo"),r.a(2,u(u({},l),{},{indirizzo:u({},l.indirizzo)}))}}),r)})));return function(){return r.apply(this,arguments)}}(),updateProfile:function(){var r=Object(o.a)(a().m((function r(t){var n;return a().w((function(r){for(;;)switch(r.n){case 0:return console.log("[MockProfileService] updateProfile",t),r.n=1,s(e);case 1:return f(i,"Errore aggiornamento profilo"),(n=u(u({},l),t)).indirizzo=u(u({},l.indirizzo),t.indirizzo||{}),r.a(2,n)}}),r)})));return function(t){return r.apply(this,arguments)}}()}}},QoCk:function(r,t,e){"use strict";e.r(t),e.d(t,"MEMBERSHIP_STATUS",(function(){return n})),e.d(t,"MEMBERSHIP_TYPE",(function(){return o})),e.d(t,"NOTIZIARI_CATEGORIES",(function(){return a})),e.d(t,"NOTIZIARI_FALLBACK_MIN_YEAR",(function(){return i})),e.d(t,"buildYearRanges",(function(){return c})),e.d(t,"getNotiziariYearRangesFallback",(function(){return u}));var n={ACTIVE:"active",EXPIRING:"expiring",EXPIRED:"expired"},o={ORDINARIO:"Ordinario",FAMIGLIA:"Famiglia",GIOVANE:"Giovane",SOSTENITORE:"Sostenitore",BENEMERITO:"Benemerito"},a=["Ambiente","Beni FAI","Convegno Nazionale","Corsi","Eventi FAI","Giornate FAI","Luoghi del cuore","Mostre","Restauri","Rete Territoriale e volontari","Scuola","Viaggi"],i=1980,c=function(r,t){if(!Number.isFinite(r)||!Number.isFinite(t)||t<r)return[];for(var e=5*Math.floor(r/5),n=[],o=5*Math.floor(t/5);o>=e;o-=5)n.push("".concat(o,"-").concat(o+4));return n},u=function(){return c(i,(new Date).getFullYear())};t.default={MEMBERSHIP_STATUS:n,MEMBERSHIP_TYPE:o}},U2VP:function(r,t,e){"use strict";e.d(t,"d",(function(){return n})),e.d(t,"e",(function(){return o})),e.d(t,"a",(function(){return a})),e.d(t,"b",(function(){return i})),e.d(t,"c",(function(){return c})),e.d(t,"f",(function(){return u})),e.d(t,"g",(function(){return l})),e.d(t,"h",(function(){return s})),e.d(t,"I",(function(){return f})),e.d(t,"H",(function(){return p})),e.d(t,"i",(function(){return d})),e.d(t,"k",(function(){return g})),e.d(t,"j",(function(){return v})),e.d(t,"G",(function(){return m})),e.d(t,"E",(function(){return y})),e.d(t,"F",(function(){return _})),e.d(t,"y",(function(){return b})),e.d(t,"A",(function(){return h})),e.d(t,"z",(function(){return O})),e.d(t,"B",(function(){return w})),e.d(t,"D",(function(){return S})),e.d(t,"C",(function(){return I})),e.d(t,"p",(function(){return E})),e.d(t,"r",(function(){return j})),e.d(t,"q",(function(){return F})),e.d(t,"t",(function(){return A})),e.d(t,"u",(function(){return T})),e.d(t,"o",(function(){return P})),e.d(t,"s",(function(){return R})),e.d(t,"l",(function(){return C})),e.d(t,"n",(function(){return N})),e.d(t,"m",(function(){return M})),e.d(t,"v",(function(){return G})),e.d(t,"x",(function(){return z})),e.d(t,"w",(function(){return k}));var n="MYFAI_LOGIN_REQUEST",o="MYFAI_LOGIN_SUCCESS",a="MYFAI_LOGIN_ERROR",i="MYFAI_LOGIN_RATE_LIMITED",c="MYFAI_LOGIN_RATE_LIMIT_RESET",u="MYFAI_LOGOUT",l="MYFAI_LOGOUT_REQUEST",s="MYFAI_LOGOUT_SUCCESS",f="MYFAI_SESSION_EXPIRED",p="MYFAI_SESSION_CLEAR_MESSAGE",d="MYFAI_MEMBERSHIP_FETCH",g="MYFAI_MEMBERSHIP_FETCH_SUCCESS",v="MYFAI_MEMBERSHIP_FETCH_ERROR",m="MYFAI_QR_CACHE_SUCCESS",y="MYFAI_QR_CACHE_ERROR",_="MYFAI_QR_CACHE_LOADED",b="MYFAI_PROFILE_FETCH",h="MYFAI_PROFILE_FETCH_SUCCESS",O="MYFAI_PROFILE_FETCH_ERROR",w="MYFAI_PROFILE_UPDATE",S="MYFAI_PROFILE_UPDATE_SUCCESS",I="MYFAI_PROFILE_UPDATE_ERROR",E="MYFAI_NOTIZIARI_FETCH",j="MYFAI_NOTIZIARI_FETCH_SUCCESS",F="MYFAI_NOTIZIARI_FETCH_ERROR",A="MYFAI_NOTIZIARI_LOAD_MORE",T="MYFAI_NOTIZIARI_LOAD_MORE_SUCCESS",P="MYFAI_NOTIZIARI_CHANGE_PAGE",R="MYFAI_NOTIZIARI_FILTER",C="MYFAI_NOTIZIARI_CATEGORIES_FETCH",N="MYFAI_NOTIZIARI_CATEGORIES_FETCH_SUCCESS",M="MYFAI_NOTIZIARI_CATEGORIES_FETCH_ERROR",G="MYFAI_NOTIZIARI_YEAR_RANGES_FETCH",z="MYFAI_NOTIZIARI_YEAR_RANGES_FETCH_SUCCESS",k="MYFAI_NOTIZIARI_YEAR_RANGES_FETCH_ERROR"},WOHs:function(r,t,e){"use strict";e.d(t,"a",(function(){return p}));var n=e("zjfJ"),o=e("QsI/"),a=e("B95B");function i(){var r,t,e="function"==typeof Symbol?Symbol:{},n=e.iterator||"@@iterator",o=e.toStringTag||"@@toStringTag";function a(e,n,o,a){var i=n&&n.prototype instanceof l?n:l,s=Object.create(i.prototype);return c(s,"_invoke",function(e,n,o){var a,i,c,l=0,s=o||[],f=!1,p={p:0,n:0,v:r,a:d,f:d.bind(r,4),d:function(t,e){return a=t,i=0,c=r,p.n=e,u}};function d(e,n){for(i=e,c=n,t=0;!f&&l&&!o&&t<s.length;t++){var o,a=s[t],d=p.p,g=a[2];e>3?(o=g===n)&&(c=a[(i=a[4])?5:(i=3,3)],a[4]=a[5]=r):a[0]<=d&&((o=e<2&&d<a[1])?(i=0,p.v=n,p.n=a[1]):d<g&&(o=e<3||a[0]>n||n>g)&&(a[4]=e,a[5]=n,p.n=g,i=0))}if(o||e>1)return u;throw f=!0,n}return function(o,s,g){if(l>1)throw TypeError("Generator is already running");for(f&&1===s&&d(s,g),i=s,c=g;(t=i<2?r:c)||!f;){a||(i?i<3?(i>1&&(p.n=-1),d(i,c)):p.n=c:p.v=c);try{if(l=2,a){if(i||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");
1if(!t.done)return t;c=t.value,i<2&&(i=0)}else 1===i&&(t=a.return)&&t.call(a),i<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),i=1);a=r}else if((t=(f=p.n<0)?c:e.call(n,p))!==u)break}catch(t){a=r,i=1,c=t}finally{l=1}}return{value:t,done:f}}}(e,o,a),!0),s}var u={};function l(){}function s(){}function f(){}t=Object.getPrototypeOf;var p=[][n]?t(t([][n]())):(c(t={},n,(function(){return this})),t),d=f.prototype=l.prototype=Object.create(p);function g(r){return Object.setPrototypeOf?Object.setPrototypeOf(r,f):(r.__proto__=f,c(r,o,"GeneratorFunction")),r.prototype=Object.create(d),r}return s.prototype=f,c(d,"constructor",f),c(f,"constructor",s),s.displayName="GeneratorFunction",c(f,o,"GeneratorFunction"),c(d),c(d,o,"Generator"),c(d,n,(function(){return this})),c(d,"toString",(function(){return"[object Generator]"})),(i=function(){return{w:a,m:g}})()}function c(r,t,e,n){var o=Object.defineProperty;try{o({},"",{})}catch(r){o=0}(c=function(r,t,e,n){function a(t,e){c(r,t,(function(r){return this._invoke(t,e,r)}))}t?o?o(r,t,{value:e,enumerable:!n,configurable:!n,writable:!n}):r[t]=e:(a("next",0),a("throw",1),a("return",2))})(r,t,e,n)}function u(r,t){var e=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),e.push.apply(e,n)}return e}function l(r){for(var t=1;t<arguments.length;t++){var e=null!=arguments[t]?arguments[t]:{};t%2?u(Object(e),!0).forEach((function(t){Object(n.a)(r,t,e[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(e)):u(Object(e)).forEac
1h((function(t){Object.defineProperty(r,t,Object.getOwnPropertyDescriptor(e,t))}))}return r}var s=function(r){return new Promise((function(t){return setTimeout(t,r)}))},f={fl_walleta:"S",walleta_label:"Apple Wallet",walleta_icon:"",walleta_url:"https://crm.fondoambiente.it/lamiatesserafai-v2/?wallet=apple",walleta_bg_color:"#054238",walleta_fg_color:"#FFFFFF",fl_walletg:"S",walletg_label:"Google Wallet",walletg_icon:"",walletg_url:"https://crm.fondoambiente.it/lamiatesserafai-v2/?wallet=google",walletg_bg_color:"#054238",walletg_fg_color:"#FFFFFF",fl_print:"S",print_label:"Stampa",print_icon:"",print_url:"https://crm.fondoambiente.it/lamiatesserafai-v2/?print=1",print_bg_color:"",print_fg_color:"",fl_dwnld:"S",dwnld_label:"Scarica",dwnld_icon:"",dwnld_url:"https://crm.fondoambiente.it/lamiatesserafai-v2/?pdf=1",dwnld_bg_color:"",dwnld_fg_color:"",fl_walleta_coll:"S",walleta_label_coll:"Apple Wallet",walleta_url_coll:"https://crm.fondoambiente.it/lamiatesserafai-v2/?wallet=apple&coll=1",walleta_bg_color_coll:"#054238",walleta_fg_color_coll:"#FFFFFF",fl_walletg_coll:"S",walletg_label_coll:"Google Wallet",walletg_url_coll:"https://crm.fondoambiente.it/lamiatesserafai-v2/?wallet=google&coll=1",walletg_bg_color_coll:"#054238",walletg_fg_color_coll:"#FFFFFF",fl_print_coll:"S",print_label_coll:"Stampa",print_url_coll:"https://crm.fondoambiente.it/lamiatesserafai-v2/?print=1&coll=1",fl_dwnld_coll:"S",dwnld_label_coll:"Scarica",dwnld_url_coll:"https://crm.fondoambiente.it/lamiatesserafai-v2/?pdf=1&coll=1"},p=function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=r.latency,e=void 0===t?200:t,c=r.empty,u=void 0!==c&&c,p=r.noCollegata,d=void 0!==p&&p;return{getWallet:function(){var r=Object(o.a)(i().m((function r(){var t;return i().w((function(r){for(;;)switch(r.n){case 0:if(!(e>0)){r.n=1;break}return r.n=1,s(e);case 1:if(!u){r.n=2;break}return r.a(2,null);case 2:return t=f,d&&(t=Object.keys(f).filter((function(r){return!r.toLowerCase().endsWith("_coll")})).reduce((function(r,t){return l(l({},r),{},Object(n.a)({},t,f[t]))}),{})),r.a(2,Object(a.a)(t))}}),r)})));return function(){return r.apply(this,arguments)}}()}}},f93t:function(r,t,e){"use strict";e.d(t,"a",(function(){return u}));var n=e("QsI/"),o=e("r4FT"),a=e("mJUT");function i(){var r,t,e="function"==typeof Symbol?Symbol:{},n=e.iterator||"@@iterator",o=e.toStringTag||"@@toStringTag";function a(e,n,o,a){var i=n&&n.prototype instanceof l?n:l,s=Object.create(i.prototype);return c(s,"_invoke",function(e,n,o){var a,i,c,l=0,s=o||[],f=!1,p={p:0,n:0,v:r,a:d,f:d.bind(r,4),d:function(t,e){return a=t,i=0,c=r,p.n=e,u}};function d(e,n){for(i=e,c=n,t=0;!f&&l&&!o&&t<s.length;t++){var o,a=s[t],d=p.p,g=a[2];e>3?(o=g===n)&&(c=a[(i=a[4])?5:(i=3,3)],a[4]=a[5]=r):a[0]<=d&&((o=e<2&&d<a[1])?(i=0,p.v=n,p.n=a[1]):d<g&&(o=e<3||a[0]>n||n>g)&&(a[4]=e,a[5]=n,p.n=g,i=0))}if(o||e>1)return u;throw f=!0,n}return function(o,s,g){if(l>1)throw TypeError("Generator is already running");for(f&&1===s&&d(s,g),i=s,c=g;(t=i<2?r:c)||!f;){a||(i?i<3?(i>1&&(p.n=-1),d(i,c)):p.n=c:p.v=c);try{if(l=2,a){if(i||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,i<2&&(i=0)}else 1===i&&(t=a.return)&&t.call(a),i<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),i=1);a=r}else if((t=(f=p.n<0)?c:e.call(n,p))!==u)break}catch(t){a=r,i=1,c=t}finally{l=1}}return{value:t,done:f}}}(e,o,a),!0),s}var u={};function l(){}function s(){}function f(){}t=Object.getPrototypeOf;var p=[][n]?t(t([][n]())):(c(t={},n,(function(){return this})),t),d=f.prototype=l.prototype=Object.create(p);function g(r){return Object.setPrototypeOf?Object.setPrototypeOf(r,f):(r.__proto__=f,c(r,o,"GeneratorFunction")),r.prototype=Object.create(d),r}return s.prototype=f,c(d,"constructor",f),c(f,"constructor",s),s.displayName="GeneratorFunction",c(f,o,"GeneratorFunction"),c(d),c(d,o,"Generator"),c(d,n,(function(){return this})),c(d,"toString",(function(){return"[object Generator]"})),(i=function(){return{w:a,m:g}})()}function c(r,t,e,n){var o=Object.defineProperty;try{o({},"",{})}catch(r){o=0}(c=function(r,t,e,n){function a(t,e){c(r,t,(function(r){return this._invoke(t,e,r)}))}t?o?o(r,t,{value:e,enumerable:!n,configurable:!n,writable:!n}):r[t]=e:(a("next",0),a("throw",1),a("return",2))})(r,t,e,n)}var u=function(){return{getProfile:function(){var r=Object(n.a)(i().m((function r(){var t,e,n,o;return i().w((function(r){for(;;)switch(r.n){case 0:if(t=Object(a.b)(),e=t.success,n=t.data,o=t.error,!e||!n){r.n=1;break}return r.a(2,n);case 1:throw console.error("[RealProfileService] getProfile: no cac
1hed profile",o),new Error("Impossibile caricare i dati. Ricarica la pagina oppure effettua nuovamente il login.");case 2:return r.a(2)}}),r)})));return function(){return r.apply(this,arguments)}}(),updateProfile:function(){var r=Object(n.a)(i().m((function r(t){var e,n,a,c,u,l,s,f,p,d;return i().w((function(r){for(;;)switch(r.p=r.n){case 0:return r.p=0,r.n=1,o.a.put("/api/auth/me/profile",t);case 1:return e=r.v,r.a(2,e.data.data);case 2:if(r.p=2,d=r.v,console.error("[RealProfileService] updateProfile error:",d.message),401!==(null===(n=d.response)||void 0===n?void 0:n.status)){r.n=3;break}throw new Error("Sessione scaduta. Effettua nuovamente il login.");case 3:if(422!==(null===(a=d.response)||void 0===a?void 0:a.status)){r.n=4;break}throw new Error((null===(s=d.response)||void 0===s||null===(f=s.data)||void 0===f||null===(p=f.error)||void 0===p?void 0:p.message)||"Dati non validi. Controlla i campi e riprova.");case 4:throw new Error((null===(c=d.response)||void 0===c||null===(u=c.data)||void 0===u||null===(l=u.error)||void 0===l?void 0:l.message)||"Errore nell'aggiornamento del profilo.");case 5:return r.a(2)}}),r,null,[[0,2]])})));return function(t){return r.apply(this,arguments)}}()}}},jPgV:function(r,t,e){"use strict";e.d(t,"a",(function(){return l}));var n=e("QsI/"),o=e("vDqi"),a=e.n(o),i=e("B95B");function c(){var r,t,e="function"==typeof Symbol?Symbol:{},n=e.iterator||"@@iterator",o=e.toStringTag||"@@toStringTag";function a(e,n,o,a){var c=n&&n.prototype instanceof l?n:l,s=Object.create(c.prototype);return u(s,"_invoke",function(e,n,o){var a,c,u,l=0,s=o||[],f=!1,p={p:0,n:0,v:r,a:d,f:d.bind(r,4),d:function(t,e){return a=t,c=0,u=r,p.n=e,i}};function d(e,n){for(c=e,u=n,t=0;!f&&l&&!o&&t<s.length;t++){var o,a=s[t],d=p.p,g=a[2];e>3?(o=g===n)&&(u=a[(c=a[4])?5:(c=3,3)],a[4]=a[5]=r):a[0]<=d&&((o=e<2&&d<a[1])?(c=0,p.v=n,p.n=a[1]):d<g&&(o=e<3||a[0]>n||n>g)&&(a[4]=e,a[5]=n,p.n=g,c=0))}if(o||e>1)return i;throw f=!0,n}return function(o,s,g){if(l>1)throw TypeError("Generator is already running");for(f&&1===s&&d(s,g),c=s,u=g;(t=c<2?r:u)||!f;){a||(c?c<3?(c>1&&(p.n=-1),d(c,u)):p.n=u:p.v=u);try{if(l=2,a){if(c||(o="next"),t=a[o]){if(!(t=t.call(a,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,c<2&&(c=0)}else 1===c&&(t=a.return)&&t.call(a),c<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),c=1);a=r}else if((t=(f=p.n<0)?u:e.call(n,p))!==i)break}catch(t){a=r,c=1,u=t}finally{l=1}}return{value:t,done:f}}}(e,o,a),!0),s}var i={};function l(){}function s(){}function f(){}t=Object.getPrototypeOf;var p=[][n]?t(t([][n]())):(u(t={},n,(function(){return this})),t),d=f.prototype=l.prototype=Object.create(p);function g(r){return Object.setPrototypeOf?Object.setPrototypeOf(r,f):(r.__proto__=f,u(r,o,"GeneratorFunction")),r.prototype=Object.create(d),r}return s.prototype=f,u(d,"constructor",f),u(f,"constructor",s),s.displayName="GeneratorFunction",u(f,o,"GeneratorFunction"),u(d),u(d,o,"Generator"),u(d,n,(function(){return this})),u(d,"toString",(function(){return"[object Generator]"})),(c=function(){return{w:a,m:g}})()}function u(r,t,e,n){var o=Object.defineProperty;try{o({},"",{})}catch(r){o=0}(u=function(r,t,e,n){function a(t,e){u(r,t,(function(r){return this._invoke(t,e,r)}))}t?o?o(r,t,{value:e,enumerable:!n,configurable:!n,writable:!n}):r[t]=e:(a("next",0),a("throw",1),a("return",2))})(r,t,e,n)}var l=function(){return{getWallet:function(){var r=Object(n.a)(c().m((function r(){var t,e;return c().w((function(r){for(;;)switch(r.p=r.n){case 0:return r.p=0,r.n=1,a.a.post("/api/myfai/wallet");case 1:return t=r.v,r.a(2,Object(i.a)(t.data));case 2:return r.p=2,e=r.v,console.warn("[RealWalletService] getWallet failed:",e.message),r.a(2,null)}}),r,null,[[0,2]])})));return function(){return r.apply(this,arguments)}}()}}},mJUT:function(r,t,e){"use strict";e.d(t,"c",(function(){return o})),e.d(t,"b",(function(){return a})),e.d(t,"a",(function(){return i}));var n=function(){try{var r="__localStorage_test__";return window.localStorage.setItem(r,r),window.localStorage.removeItem(r),!0}catch(t){return!1}},o=function(r){if(!r||"object"!==typeof r)return{success:!1,error:"invalid_params"};if(!n())return{success:!1,error:"storage_disabled"};try{var t={profile:r,timestamp:Date.now()};return window.localStorage.setItem("myfai_profile",JSON.stringify(t)),{success:!0}}catch(e){return"QuotaExceededError"===e.name||22===e.code?{success:!1,error:"storage_quota_exceeded"}:"SecurityError"===e.name?{success:!1,error:"storage_disabled"}:{success:!1,error:"storage_error"}}},a=function(){if(!n())return{success:!1,data:null,error:"storage_disabled"};try{var r=window.localStorage.getItem("myfai_profile");if(!r)return{success:!0,data:null};var t=JSON.parse(r);return{success:!0,data:t.profile||null,cacheTimestamp:t.timestamp}}catch(e){return{success:!1,data:null,error:"parse_error"}}},i=function(){if(!n())return{success:!1};try{return window.localStorage.removeItem("myfai_profile"),{success:!0}}catch(r){return{success:!1}}}},pIK3:function(r,t,e){"use strict";e.d(t,"a",(function(){return p}));var n=e("zjfJ"),o=e("QsI/");function a(){var r,t,e="function"==typeof Symbol?Symbol:{},n=e.iterator||"@@iterator",o=e.toStringTag||"@@toStringTag";function c(e,n,o,a){var c=n&&n.prototype instanceof l?n:l,s=Object.create(c.prototype);return i(s,"_invoke",function(e,n,o){var a,i,c,l=0,s=o||[],f=!1,p={p:0,n:0,v:r,a:d,f:d.bind(r,4),d:function(t,e){return a=t,i=0,c=r,p.n=e,u}};function d(e,n){for(i=e,c=n,t=0;!f&&l&&!o&&t<s.length;t++){var o,a=s[t],d=p.p,g=a[2];e>3?(o=g===n)&&(c=a[(i=a[4])?5:(i=3,3)],a[4]=a[5]=r):a[0]<=d&&((o=e<2&&d<a[1])?(i=0,p.v=n,p.n=a[1]):d<g&&(o=e<3||a[0]>n||n>g)&&(a[4]=e,a[5]=n,p.n=g,i=0))}if(o||e>1)return u;throw f=!0,n}return function(o,s,g){if(l>1)throw TypeError("Generator is already running");for(f&&1===s&&d(s,g),i=s,c=g;(t=i<2?r:c)||!f;){a||(i?i<3?(i>1&&(p.n=-1),d(i,c)):p.n=c:p.v=c);try{if(l=2,a){if(i||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");
1if(!t.done)return t;c=t.value,i<2&&(i=0)}else 1===i&&(t=a.return)&&t.call(a),i<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),i=1);a=r}else if((t=(f=p.n<0)?c:e.call(n,p))!==u)break}catch(t){a=r,i=1,c=t}finally{l=1}}return{value:t,done:f}}}(e,o,a),!0),s}var u={};function l(){}function s(){}function f(){}t=Object.getPrototypeOf;var p=[][n]?t(t([][n]())):(i(t={},n,(function(){return this})),t),d=f.prototype=l.prototype=Object.create(p);function g(r){return Object.setPrototypeOf?Object.setPrototypeOf(r,f):(r.__proto__=f,i(r,o,"GeneratorFunction")),r.prototype=Object.create(d),r}return s.prototype=f,i(d,"constructor",f),i(f,"constructor",s),s.displayName="GeneratorFunction",i(f,o,"GeneratorFunction"),i(d),i(d,o,"Generator"),i(d,n,(function(){return this})),i(d,"toString",(function(){return"[object Generator]"})),(a=function(){return{w:c,m:g}})()}function i(r,t,e,n){var o=Object.defineProperty;try{o({},"",{})}catch(r){o=0}(i=function(r,t,e,n){function a(t,e){i(r,t,(function(r){return this._invoke(t,e,r)}))}t?o?o(r,t,{value:e,enumerable:!n,configurable:!n,writable:!n}):r[t]=e:(a("next",0),a("throw",1),a("return",2))})(r,t,e,n)}function c(r,t){var e=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),e.push.apply(e,n)}return e}function u(r){for(var t=1;t<arguments.length;t++){var e=null!=arguments[t]?arguments[t]:{};t%2?c(Object(e),!0).forEach((function(t){Object(n.a)(r,t,e[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(e)):c(Object(e)).forEac
1h((function(t){Object.defineProperty(r,t,Object.getOwnPropertyDescriptor(e,t))}))}return r}var l={telefonoCustomerCare:"02467615.1",mailCustomerCare:"[email protected]"},s={telefonoCustomerCare:null,mailCustomerCare:null},f=function(r){return new Promise((function(t){return setTimeout(t,r)}))},p=function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=r.latency,e=void 0===t?200:t,n=r.empty,i=void 0!==n&&n;return{getSettings:function(){var r=Object(o.a)(a().m((function r(){return a().w((function(r){for(;;)switch(r.n){case 0:if(!(e>0)){r.n=1;break}return r.n=1,f(e);case 1:return r.a(2,u({},i?s:l))}}),r)})));return function(){return r.apply(this,arguments)}}()}}},scPO:function(r,t,e){"use strict";e.d(t,"a",(function(){return u}));var n=e("QsI/"),o=e("vDqi"),a=e.n(o);function i(){var r,t,e="function"==typeof Symbol?Symbol:{},n=e.iterator||"@@iterator",o=e.toStringTag||"@@toStringTag";function a(e,n,o,a){var i=n&&n.prototype instanceof l?n:l,s=Object.create(i.prototype);return c(s,"_invoke",function(e,n,o){var a,i,c,l=0,s=o||[],f=!1,p={p:0,n:0,v:r,a:d,f:d.bind(r,4),d:function(t,e){return a=t,i=0,c=r,p.n=e,u}};function d(e,n){for(i=e,c=n,t=0;!f&&l&&!o&&t<s.length;t++){var o,a=s[t],d=p.p,g=a[2];e>3?(o=g===n)&&(c=a[(i=a[4])?5:(i=3,3)],a[4]=a[5]=r):a[0]<=d&&((o=e<2&&d<a[1])?(i=0,p.v=n,p.n=a[1]):d<g&&(o=e<3||a[0]>n||n>g)&&(a[4]=e,a[5]=n,p.n=g,i=0))}if(o||e>1)return u;throw f=!0,n}return function(o,s,g){if(l>1)throw TypeError("Generator is already running");for(f&&1===s&&d(s,g),i=s,c=g;(t=i<2?r:c)||!f;){a||(i?i<3?(i>1&&(p.n=-1),d(i,c)):p.n=c:p.v=c);try{if(l=2,a){if(i||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,i<2&&(i=0)}else 1===i&&(t=a.return)&&t.call(a),i<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),i=1);a=r}else if((t=(f=p.n<0)?c:e.call(n,p))!==u)break}catch(t){a=r,i=1,c=t}finally{l=1}}return{value:t,done:f}}}(e,o,a),!0),s}var u={};function l(){}function s(){}function f(){}t=Object.getPrototypeOf;var p=[][n]?t(t([][n]())):(c(t={},n,(function(){return this})),t),d=f.prototype=l.prototype=Object.create(p);function g(r){return Object.setPrototypeOf?Object.setPrototypeOf(r,f):(r.__proto__=f,c(r,o,"GeneratorFunction")),r.prototype=Object.create(d),r}return s.prototype=f,c(d,"constructor",f),c(f,"constructor",s),s.displayName="GeneratorFunction",c(f,o,"GeneratorFunction"),c(d),c(d,o,"Generator"),c(d,n,(function(){return this})),c(d,"toString",(function(){return"[object Generator]"})),(i=function(){return{w:a,m:g}})()}function c(r,t,e,n){var o=Object.defineProperty;try{o({},"",{})}catch(r){o=0}(c=function(r,t,e,n){function a(t,e){c(r,t,(function(r){return this._invoke(t,e,r)}))}t?o?o(r,t,{value:e,enumerable:!n,configurable:!n,writable:!n}):r[t]=e:(a("next",0),a("throw",1),a("return",2))})(r,t,e,n)}var u=function(){return{getSettings:function(){var r=Object(n.a)(i().m((function r(){var t,e,n;return i().w((function(r){for(;;)switch(r.p=r.n){case 0:return r.p=0,r.n=1,a.a.get("/api/myfai/settings");case 1:return t=r.v,e=t.data||{},r.a(2,{telefonoCustomerCare:e.telefono_customer_care||null,mailCustomerCare:e.mail_customer_care||null});case 2:return r.p=2,n=r.v,console.warn("[RealSettingsService] getSettings failed:",n.message),r.a(2,{telefonoCustomerCare:null,mailCustomerCare:null})}}),r,null,[[0,2]])})));return function(){return r.apply(this,arguments)}}()}}},tLXs:function(r,t,e){"use strict";e.d(t,"d",(function(){return o})),e.d(t,"b",(function(){return a})),e.d(t,"a",(function(){return i})),e.d(t,"c",(function(){return c}));var n=function(){try{var r="__localStorage_test__";return window.localStorage.setItem(r,r),window.localStorage.removeItem(r),!0}catch(t){return!1}},o=function(r,t){if(!r||!t)return{success:!1,error:"invalid_params"};if(!n())return{success:!1,error:"storage_disabled"};var e=t;if("string"===typeof t)try{e=JSON.parse(t)}catch(c){e={rawData:t}}var o={qrData:t,timestamp:Date.now(),validUntil:e.validUntil||null,isValid:!0},a=JSON.stringify(o);if(new Blob([a]).size>51200)return{success:!1,error:"data_too_large"};var i="".concat("myfai_qr_").concat(r);try{return window.localStorage.setItem(i,a),{success:!0}}catch(u){return"QuotaExceededError"===u.name||22===u.code?{success:!1,error:"storage_quota_exceeded"}:"SecurityError"===u.name?{success:!1,error:"storage_disabled"}:{success:!1,error:"storage_error"}}}
1,a=function(r){if(!r)return{success:!1,data:null,isFromCache:!1,error:"invalid_params"};if(!n())return{success:!1,data:null,isFromCache:!1,error:"storage_disabled"};var t,e="".concat("myfai_qr_").concat(r);try{var o=window.localStorage.getItem(e);if(!o)return{success:!0,data:null,isFromCache:!1};var a=JSON.parse(o);return!1===a.isValid||a.validUntil&&((t=a.validUntil)&&new Date(t)<new Date)?{success:!0,data:null,isFromCache:!0}:{success:!0,data:a,isFromCache:!0,cacheTimestamp:a.timestamp}}catch(i){return{success:!1,data:null,isFromCache:!1,error:"parse_error"}}},i=function(){if(!n())return{success:!1,clearedCount:0};try{for(var r=[],t=0;t<window.localStorage.length;t++){var e=window.localStorage.key(t);e&&e.startsWith("myfai_qr_")&&r.push(e)}return r.forEach((function(r){window.localStorage.removeItem(r)})),{success:!0,clearedCount:r.length}}catch(o){return{success:!1,clearedCount:0}}},c=function(r){if(!r||!n())return{success:!1};var t="".concat("myfai_qr_").concat(r);try{var e=window.localStorage.getItem(t);if(!e)return{success:!0};var o=JSON.parse(e);return o.isValid=!1,window.localStorage.setItem(t,JSON.stringify(o)),{success:!0}}catch(a){return{success:!1}}}}}]);

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.