PageSourceSearch

https://fondoambiente.it/_next/static/chunks/pages/collezioni/opera-8c8be00e421e9f32ab94.js

js fondoambiente.it collected 2026-09-24 08:51:40 UTC 15,026 bytes, 1 lines download raw bytes

1_N_E=(window.webpackJsonp_N_E=window.webpackJsonp_N_E||[]).push([[49],{MJc2:function(t,e,r){var n=r("KEM+");function o(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function a(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?o(Object(r),!0).forEach((function(e){n(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var i=r("ERkP"),c=r("8cHP").Link;t.exports=function(t){return i.createElement(t.route?c:"a",a(a({},t),{},{href:t.route||t.to||""}),t.children)}},Xhfp:function(t,e,r){"use strict";var n=r("QsI/"),o=r("r4FT"),a=r("0D0S");function i(){var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function a(r,n,o,a){var i=n&&n.prototype instanceof l?n:l,f=Object.create(i.prototype);return c(f,"_invoke",function(r,n,o){var a,i,c,l=0,f=o||[],s=!1,p={p:0,n:0,v:t,a:y,f:y.bind(t,4),d:function(e,r){return a=e,i=0,c=t,p.n=r,u}};function y(r,n){for(i=r,c=n,e=0;!s&&l&&!o&&e<f.length;e++){var o,a=f[e],y=p.p,d=a[2];r>3?(o=d===n)&&(c=a[(i=a[4])?5:(i=3,3)],a[4]=a[5]=t):a[0]<=y&&((o=r<2&&y<a[1])?(i=0,p.v=n,p.n=a[1]):y<d&&(o=r<3||a[0]>n||n>d)&&(a[4]=r,a[5]=n,p.n=d,i=0))}if(o||r>1)return u;throw s=!0,n}return function(o,f,d){if(l>1)throw TypeError("Generator is already running");for(s&&1===f&&y(f,d),i=f,c=d;(e=i<2?t:c)||!s;){a||(i?i<3?(i>1&&(p.n=-1),y(i,c)):p.n=c:p.v=c);try{if(l=2,a){if(i||(o="next"),e=a[o]){if(!(e=e.call(a,c)))throw TypeError("iterator result is not an object");if(!e.done)return e;c=e.value,i<2&&(i=0)}else 1===i&&(e=a.return)&&e.call(a),i<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),i=1);a=t}else if((e=(s=p.n<0)?c:r.call(n,p))!==u)break}catch(e){a=t,i=1,c=e}finally{l=1}}return{value:e,done:s}}}(r,o,a),!0),f}var u={};function l(){}function f(){}function s(){}e=Object.getPrototypeOf;var p=[][n]?e(e([][n]())):(c(e={},n,(function(){return this})),e),y=s.prototype=l.prototype=Object.create(p);function d(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,c(t,o,"GeneratorFunction")),t.prototype=Object.create(y),t}return f.prototype=s,c(y,"constructor",s),c(s,"constructor",f),f.displayName="GeneratorFunction",c(s,o,"GeneratorFunction"),c(y),c(y,o,"Generator"),c(y,n,(function(){return this})),c(y,"toString",(function(){return"[object Generator]"})),(i=function(){return{w:a,m:d}})()}function c(t,e,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}(c=function(t,e,r,n){function a(e,r){c(t,e,(function(t){return this._invoke(e,r,t)}))}e?o?o(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))})(t,e,r,n)}var u=r.n(a)()().publicRuntimeConfig,l=u.COMWORK_URL,f=u.COMWORK_CLIENT_ID,s=u.COMWORK_CLIENT_SECRET,p=u.COMWORK_APP_ID,y="".concat(l,"/oauth/token?grant_type=client_credentials&scope=read&client_id=").concat(f,"&client_secret=").concat(s),d=function(){var t=Object(n.a)(i().m((function t(){var e;return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,o.a.post(y);case 1:return e=t.v,t.a(2,e.data.access_token)}}),t)})));return function(){return t.apply(this,arguments)}}(),b=function(){var t=Object(n.a)(i().m((function t(e,r,n){var a;return i().w((function(t){for(;;)switch(t.n){case 0:if(r){t.n=2;break}return t.n=1,d();case 1:r=t.v;case 2:return e+="?appid=".concat(p).concat(n?"&"+n:""),t.n=3,o.a.get(e,{headers:{Authorization:"Bearer ".concat(r)}}).then((function(t){return t.data})).catch((function(){return!1}));case 3:if(a=t.v){t.n=6;break}return t.n=4,d();case 4:return r=t.v,t.n=5,o.a.get(e,{headers:{Authorization:"Bearer ".concat(r)}}).then((function(t){return t.data}));case 5:a=t.v;case 6:return t.a(2,{token:r,response:a})}}),t)})));return function(e,r,n){return t.apply(this,arguments)}}();e.a=b},YaWw:function(t,e,r){"use strict";r.r(e);var n=r("QsI/"),o=r("9fIP"),a=r("MMYH"),i=r("K/z8"),c=r("sRHE"),u=r("8K1b"),l=r("ERkP"),f=r.n(l),s=r("QtE3"),p=r("PZBX"),y=r("s+D9"),d=r("uPMs"),b=r("Lm5w"),h=r("0D0S"),v=r.n(h),m=r("Xhfp");function O(){var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function a(r,n,o,a){var u=n&&n.prototype instanceof c?n:c,l=Object.create(u.prototype);return g(l,"_invoke",function(r,n,o){var a,c,u,l=0,f=o||[],s=!1,p={p:0,n:0,v:t,a:y,f:y.bind(t,4),d:function(e,r){return a=e,c=0,u=t,p.n=r,i}};function y(r,n){for(c=r,u=n,e=0;!s&&l&&!o&&e<f.length;e++){var o,a=f[e],y=p.p,d=a[2];r>3?(o=d===n)&&(u=a[(c=a[4])?5:(c=3,3)],a[4]=a[5]=t):a[0]<=y&&((o=r<2&&y<a[1])?(c=0,p.v=n,p.n=a[1]):y<d&&(o=r<3||a[0]>n||n>d)&&(a[4]=r,a[5]=n,p.n=d,c=0))}if(o||r>1)return i;throw s=!0,n}return function(o,f,d){if(l>1)throw TypeError("Generator is already running");
1for(s&&1===f&&y(f,d),c=f,u=d;(e=c<2?t:u)||!s;){a||(c?c<3?(c>1&&(p.n=-1),y(c,u)):p.n=u:p.v=u);try{if(l=2,a){if(c||(o="next"),e=a[o]){if(!(e=e.call(a,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,c<2&&(c=0)}else 1===c&&(e=a.return)&&e.call(a),c<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),c=1);a=t}else if((e=(s=p.n<0)?u:r.call(n,p))!==i)break}catch(e){a=t,c=1,u=e}finally{l=1}}return{value:e,done:s}}}(r,o,a),!0),l}var i={};function c(){}function u(){}function l(){}e=Object.getPrototypeOf;var f=[][n]?e(e([][n]())):(g(e={},n,(function(){return this})),e),s=l.prototype=c.prototype=Object.create(f);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,l):(t.__proto__=l,g(t,o,"GeneratorFunction")),t.prototype=Object.create(s),t}return u.prototype=l,g(s,"constructor",l),g(l,"constructor",u),u.displayName="GeneratorFunction",g(l,o,"GeneratorFunction"),g(s),g(s,o,"Generator"),g(s,n,(function(){return this})),g(s,"toString",(function(){return"[object Generator]"})),(O=function(){return{w:a,m:p}})()}function g(t,e,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}(g=function(t,e,r,n){function a(e,r){g(t,e,(function(t){return this._invoke(e,r,t)}))}e?o?o(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))})(t,e,r,n)}var w=v()().publicRuntimeConfig.COMWORK_URL,j="".concat(w,"/public/api/catalogue"),S=function(){var t=Object(n.a)(O().m((function t(e,r){return O().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,Object(m.a)("".concat(j,"/").concat(r),e);case 1:return t.a(2,t.v)}}),t)})));return function(e,r){return t.apply(this,arguments)}}(),_=r("fwig"),k=f.a.createElement;function E(){var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function a(r,n,o,a){var u=n&&n.prototype instanceof c?n:c,l=Object.create(u.prototype);return T(l,"_invoke",function(r,n,o){var a,c,u,l=0,f=o||[],s=!1,p={p:0,n:0,v:t,a:y,f:y.bind(t,4),d:function(e,r){return a=e,c=0,u=t,p.n=r,i}};function y(r,n){for(c=r,u=n,e=0;!s&&l&&!o&&e<f.length;e++){var o,a=f[e],y=p.p,d=a[2];r>3?(o=d===n)&&(u=a[(c=a[4])?5:(c=3,3)],a[4]=a[5]=t):a[0]<=y&&((o=r<2&&y<a[1])?(c=0,p.v=n,p.n=a[1]):y<d&&(o=r<3||a[0]>n||n>d)&&(a[4]=r,a[5]=n,p.n=d,c=0))}if(o||r>1)return i;throw s=!0,n}return function(o,f,d){if(l>1)throw TypeError("Generator is already running");for(s&&1===f&&y(f,d),c=f,u=d;(e=c<2?t:u)||!s;){a||(c?c<3?(c>1&&(p.n=-1),y(c,u)):p.n=u:p.v=u);try{if(l=2,a){if(c||(o="next"),e=a[o]){if(!(e=e.call(a,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,c<2&&(c=0)}else 1===c&&(e=a.return)&&e.call(a),c<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),c=1);a=t}else if((e=(s=p.n<0)?u:r.call(n,p))!==i)break}catch(e){a=t,c=1,u=e}finally{l=1}}return{value:e,done:s}}}(r,o,a),!0),l}var i={};function c(){}function u(){}function l(){}e=Object.getPrototypeOf;var f=[][n]?e(e([][n]())):(T(e={},n,(function(){return this})),e),s=l.prototype=c.prototype=Object.create(f);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,l):(t.__proto__=l,T(t,o,"GeneratorFunction")),t.prototype=Object.create(s),t}return u.prototype=l,T(s,"constructor",l),T(l,"constructor",u),u.displayName="GeneratorFunction",T(l,o,"GeneratorFunction"),T(s),T(s,o,"Generator"),T(s,n,(function(){return this})),T(s,"toString",(function(){return"[object Generator]"})),(E=function(){return{w:a,m:p}})()}function T(t,e,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}(T=function(t,e,r,n){function a(e,r){T(t,e,(function(t){return this._invoke(e,r,t)}))}e?o?o(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))})(t,e,r,n)}function P(t,e,r){return e=Object(c.a)(e),Object(i.a)(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}()?Reflect.construct(e,r||[],Object(c.a)(t).constructor):e.apply(t,r))}var C=v()().publicRuntimeConfig.APP_DOMAIN,Y=function(t){if("undefined"===typeof t||"undefined"===typeof t.creator||null===t||null===t.creator||!t.creator.length)return"";for(var e="",r=0;r<t.creator.length;r++)t.creator[r].name&&(e+=" ".concat(t.creator[r].name)),t.creator[r].culture&&(e+=" ".concat(t.creator[r].culture));return e},x=function(t){function e(t){return Object(o.a)(this,e),P(this,e,[t])}return Object(u.a)(e,t),Object(a.a)(e,[{key:"render",value:function(){var t=this.props,e=t.catalogo,r=t.breadcrumbs,n=t.seo;return k(d.a,{seo:n},k(s.CollectionsHero,{title:"Il patrimonio e le collezioni del FAI",breadCrumbs:r,height:"extra-small",seo:n}),k(s.Wrapper,{size:"big"}
1,k(s.Background,{color:"grey"},k(s.FogliaEvento,null,k(p.c,null,k(s.Padder,{size:"medium"},k(s.Wrapper,{size:"small"},k(s.CollectionsTitleAndCTA,function(t){return{title:t.title,author:Y(t),authorDate:"",date:Object(y.a)(t)}}(e)),k(s.CollectionsDetail,e))))))),k(s.FasciaNewsletterApp,null),k(s.FasciaSupporto,null))}}],[{key:"getInitialProps",value:function(){var t=Object(n.a)(E().m((function t(e){var r,n,o,a,i,c,u,l,f,s,p,y,d,b,h;return E().w((function(t){for(;;)switch(t.n){case 0:return r=e.req,n=e.res,o=e.query,a=o.idCatalogo,t.n=1,S(Object(_.b)(r),a);case 1:if(i=t.v,c=i.token,u=i.response,n.setHeader("Set-Cookie",Object(_.a)(c)),"undefined"!==typeof u){t.n=2;break}return t.a(2,{statusCode:404});case 2:if(l=u.title,f=u.description,s=u.collections,!o.id){t.n=3;break}return p=s.find((function(t){return t.id==o.id})),y=[["/","Home"],["/collezioni","Collezioni"],["/collezioni/".concat(o.id),p.title||o.id],["/catalogo/".concat(o.id,"/").concat(a),l||a]],d={url:"".concat(C,"/catalogo/").concat(a),title:l,description:f},t.a(2,{catalogo:u,breadcrumbs:y,seo:d});case 3:return b=[["/","Home"],["/collezioni","Collezioni"],["/collezioniCatalogo","Catalogo"],["/collezioniCatalogo/".concat(a),l||a]],h={url:"".concat(C,"/collezioniCatalogo/").concat(a),title:l,description:f},t.a(2,{catalogo:u,breadcrumbs:b,seo:h})}}),t)})));return function(e){return t.apply(this,arguments)}}()}])}(l.Component),G=Object(b.b)(x);e.default=G},eG05:function(t,e,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/collezioni/opera",function(){return r("YaWw")}])},fwig:function(t,e,r){"use strict";r.d(e,"b",(function(){return o})),r.d(e,"a",(function(){return a}));var n=r("s9SB"),o=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(!t.headers.cookie)return e;var r=Object(n.parse)(t.headers.cookie);return r.comworkToken}
1,a=function(t){return Object(n.serialize)("comworkToken",String(t,{httpOnly:!0,maxAge:2592e3,path:"/",sameSite:"Strict",secure:!0}))}},"s+D9":function(t,e,r){"use strict";e.a=function(t){if(t.date&&t.date.length){var e,r,n=t.date[0];if("SINGLE"===n.periodMode){if(n.earliestYear)return"".concat(n.earliestYear.day?n.earliestYear.day:"").concat(n.earliestYear.month?n.earliestYear.day?"/"+n.earliestYear.month:" ".concat(n.earliestYear.month):"").concat(n.earliestYear.year?n.earliestYear.month?"/"+n.earliestYear.year:" ".concat(n.earliestYear.year):"").concat(n.earliestYear.qualifier?" "+n.earliestYear.qualifier:"");var o;if(n.earliestCentury)return"".concat(null!==(o=n.earliestCentury.century)&&void 0!==o?o:"")}if("TIMESPAN"===n.periodMode)if(n.earliestYear&&n.latestYear)return"".concat(n.earliestYear.day?" "+n.earliestYear.day:"").concat(n.earliestYear.month?" "+n.earliestYear.month:"").concat(null!==(e=n.earliestYear.year)&&void 0!==e?e:"").concat(n.earliestYear.qualifier?" "+n.earliestYear.qualifier:""," - ").concat(n.latestYear.day?" "+n.latestYear.day:"").concat(n.latestYear.month?" "+n.latestYear.month:"").concat(null!==(r=n.latestYear.year)&&void 0!==r?r:"").concat(n.latestYear.qualifier?" "+n.latestYear.qualifier:"")}}},s9SB:function(t,e,r){"use strict";e.parse=function(t,e){if("string"!==typeof t)throw new TypeError("argument str must be a string");var r={},n=(e||{}).decode||a,o=0;for(;o<t.length;){var i=t.indexOf("=",o);if(-1===i)break;var u=t.indexOf(";",o);if(-1===u)u=t.length;else if(u<i){o=t.lastIndexOf(";",i-1)+1;continue}var l=t.slice(o,i).trim();if(void 0===r[l]){var f=t.slice(i+1,u).trim();34===f.charCodeAt(0)&&(f=f.slice(1,-1)),r[l]=c(f,n)}o=u+1}return r},e.serialize=function(t,e,r){var a=r||{},c=a.encode||i;if("function"!==typeof c)throw new TypeError("option encode is invalid");if(!o.test(t))throw new TypeError("argument name is invalid");var u=c(e);if(u&&!o.test(u))throw new TypeError("argument val is invalid");var l=t+"="+u;if(null!=a.maxAge){var f=a.maxAge-0;if(isNaN(f)||!isFinite(f))throw new TypeError("option maxAge is invalid");l+="; Max-Age="+Math.floor(f)}if(a.domain){if(!o.test(a.domain))throw new TypeError("option domain is invalid");l+="; Domain="+a.domain}if(a.path){if(!o.test(a.path))throw new TypeError("option path is invalid");l+="; Path="+a.path}if(a.expires){var s=a.expires;if(!function(t){return"[object Date]"===n.call(t)||t instanceof Date}(s)||isNaN(s.valueOf()))throw new TypeError("option expires is invali
1d");l+="; Expires="+s.toUTCString()}a.httpOnly&&(l+="; HttpOnly");a.secure&&(l+="; Secure");if(a.priority){switch("string"===typeof a.priority?a.priority.toLowerCase():a.priority){case"low":l+="; Priority=Low";break;case"medium":l+="; Priority=Medium";break;case"high":l+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}}if(a.sameSite){switch("string"===typeof a.sameSite?a.sameSite.toLowerCase():a.sameSite){case!0:l+="; SameSite=Strict";break;case"lax":l+="; SameSite=Lax";break;case"strict":l+="; SameSite=Strict";break;case"none":l+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return l};var n=Object.prototype.toString,o=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function a(t){return-1!==t.indexOf("%")?decodeURIComponent(t):t}function i(t){return encodeURIComponent(t)}function c(t,e){try{return e(t)}catch(r){return t}}}},[["eG05",1,0,5,7,3,2,6,4,8,9,10,11,13,12,15,14,16]]]);

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.