PageSourceSearch

https://www.realemutua.it/SiteAssets/js-dynamic-components/comunicati-stampa.js

js realemutua.it collected 2026-09-24 18:54:56 UTC 9,405 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_common_webparts=self.webpackChunk_common_webparts||[]).push([[200],{7724(t,e,n){n.r(e),n.d(e,{default:()=>g});var r=n(2374),o=n(7834),i=n(6247),a=n(6540),c=n(6942),l=n.n(c),s=n(4848);const u=function(t){var e,n=t.active,r=t.day,o=t.month,i=t.title,a=t.description,c=t.link;return(0,s.jsxs)("div",{className:l()("row comunicatistampa__dlist__item",n&&"comunicatistampa__dlist__item--featured"),children:[(0,s.jsxs)("div",{className:l()("icon-square-date col s12 m2",n&&"rma-bg-cyan rma-shadow-bl3"),children:[(0,s.jsx)("p",{className:n?"number rma-c-white":"number rma-c-cyan",children:r}),(0,s.jsx)("p",{className:n?"month rma-c-white":"month rma-c-cyan",children:o})]}),(0,s.jsxs)("div",{className:"col s12 m10",children:[(0,s.jsx)("p",{className:"dlist__item__title",dangerouslySetInnerHTML:{__html:null!=i?i:""}}),(0,s.jsx)("p",{className:"dlist__item__text",dangerouslySetInnerHTML:{__html:null!=a?a:""}}),(0,s.jsxs)("a",{target:"_blank",className:"lnk rma-c-cyan dlist__item__link",href:null!==(e=null==c?void 0:c.url)&&void 0!==e?e:"#",children:[(0,s.jsx)("span",{className:"rma-icon-monocolor-altro-documenti-comunicati-stampa"}),(0,s.jsx)("span",{className:"rma-mrg-icon",children:"Download"})]})]})]})};const d=function(t){var e=t.list;return(0,s.jsx)("div",{className:"static-container--margined",children:(0,s.jsx)("div",{className:"comunicatistampa__dlist",children:e.map(function(t,e){var n,r,o,i;return(0,s.jsx)(u,{active:0===e,day:null!==(n=new Date(t.date).toLocaleString("it-IT",{day:"2-digit"}))&&void 0!==n?n:"",month:null!==(r=new Date(t.date).toLocaleString("it-IT",{month:"short"}))&&void 0!==r?r:"",title:null!==(o=t.title)&&void 0!==o?o:"",description:null!==(i=t.description)&&void 0!==i?i:"",link:t.fileRef},e)})})})};var m=n(2337),f=n(2941);const p=function(t){var e=t.onYearSelect,n=t.year,r=t.listaAnni;return(0,a.useEffect)(function(){(0,f.gC)("anniSelect")},[r]),(0,s.jsxs)("div",{className:"row varagenzie__filter box-border-grey",children:[(0,s.jsx)("div",{className:"col s12 center-align",children:(0,s.jsxs)("p",{className:"rma-fs-16 rma-mrg-b0 center-align",children:["Filtra per ",(0,s.jsx)("b",{children:"anno"})]})}),(0,s.jsx)("div",{className:"col s12 m6 offset-m3 l4 offset-l4",children:(0,s.jsxs)("div",{className:"row",children:[(0,s.jsx)("div",{className:"col s6",children:(0,s.jsx)("p",{children:"Seleziona Anno:"})}),(0,s.jsx)("div",{className:"col s6",children:(0,s.jsx)("div",{className:"data",children:(0,s.jsx)("div",{className:"input-field w-select-no-focus",children:(0,s.jsx)(m.l,{id:"anniSelect",onChange:function(t){return e(t.currentTarget.value)},defaultValue:n,options:r})})})})]})})]})};const v=function(t){var e=t.onTabSelect,n=t.active,r=t.iconMonoColor,o=t.iconBiColor,i=t.titleTab,a=t.titleCard,c=t.description;return(0,s.jsx)("div",{className:"col s12 m4 center-align",children:(0,s.jsxs)("div",{className:l()("comunicatistampa__selection__item rma-shadow-c4",n&&"active"),onClick:function(){return e(i)},children:[(0,s.jsx)("span",{className:r}),(0,s.jsx)("span",{className:o}),(0,s.jsx)("p",{className:"comunicatistampa__selection__title",children:a}),(0,s.jsx)("p",{className:"comunicatistampa__selection__text",children:c})]})})};const h=function(t){var e=t.onTabSelect,n=t.selectedTab;return(0,s.jsxs)("div",{className:"row comunicatistampa__selection",children:[(0,s.jsx)(v,{onTabSelect:e,active:n===r.xU.ISTITUZIONALI,iconMonoColor:"rma-icon-monocolor-altro-agenzia icon-monocolor",iconBiColor:"rma-icon-bicolor-altro-agenzia icon-h30 icon-bicolor",titleTab:r.xU.ISTITUZIONALI,titleCard:"Istituzionali",description:"Comunicati che riguardano la società, i bilanci, il mercato e i valori aziendali."}),(0,s.jsx)(v,{onTabSelect:e,active:n===r.xU.INIZIATIVE,iconMonoColor:"rma-icon-monocolor-altro-special icon-monocolor",iconBiColor:"rma-icon-bicolor-altro-special icon-h30 icon-bicolor",titleTab:r.xU.INIZIATIVE,titleCard:"Iniziative",description:"Comunicazioni a proposito dell'impegno del Gruppo Reale Mutua in favore della cultura e del territorio e a sostegno dello sport."}),(0,s.jsx)(v,{onTabSelect:e,active:n===r.xU.PRODOTTI,iconMonoColor:"rma-icon-monocolor-prodotti-mezzi-generico icon-monocolor",iconBiColor:"rma-icon-bicolor-prodotti-mezzi-generico icon-h40 icon-bicolor",titleTab:r.xU.PRODOTTI,titleCard:"Prodotti",description:"Comunicati sull'offerta di nuove soluzioni per la tutela assicurativa e previdenziale."})]})};function b(){var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var l=r&&r.prototype instanceof c?r:c,s=Object.create(l.prototype);return x(s,"_invoke",function(n,r,o){var i,c,l,s=0,u=o||[],d=!1,m={p:0,n:0,v:t,a:f,f
1:f.bind(t,4),d:function(e,n){return i=e,c=0,l=t,m.n=n,a}};function f(n,r){for(c=n,l=r,e=0;!d&&s&&!o&&e<u.length;e++){var o,i=u[e],f=m.p,p=i[2];n>3?(o=p===r)&&(l=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=t):i[0]<=f&&((o=n<2&&f<i[1])?(c=0,m.v=r,m.n=i[1]):f<p&&(o=n<3||i[0]>r||r>p)&&(i[4]=n,i[5]=r,m.n=p,c=0))}if(o||n>1)return a;throw d=!0,r}return function(o,u,p){if(s>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,p),c=u,l=p;(e=c<2?t:l)||!d;){i||(c?c<3?(c>1&&(m.n=-1),f(c,l)):m.n=l:m.v=l);try{if(s=2,i){if(c||(o="next"),e=i[o]){if(!(e=e.call(i,l)))throw TypeError("iterator result is not an object");if(!e.done)return e;l=e.value,c<2&&(c=0)}else 1===c&&(e=i.return)&&e.call(i),c<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=t}else if((e=(d=m.n<0)?l:n.call(r,m))!==a)break}catch(e){i=t,c=1,l=e}finally{s=1}}return{value:e,done:d}}}(n,o,i),!0),s}var a={};function c(){}function l(){}function s(){}e=Object.getPrototypeOf;var u=[][r]?e(e([][r]())):(x(e={},r,function(){return this}),e),d=s.prototype=c.prototype=Object.create(u);function m(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,x(t,o,"GeneratorFunction")),t.prototype=Object.create(d),t}return l.prototype=s,x(d,"constructor",s),x(s,"constructor",l),l.displayName="GeneratorFunction",x(s,o,"GeneratorFunction"),x(d),x(d,o,"Generator"),x(d,r,function(){return this}),x(d,"toString",function(){return"[object Generator]"}),(b=function(){return{w:i,m}})()}function x(t,e,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}x=function(t,e,n,r){function i(e,n){x(t,e,function(t){return this._invoke(e,n,t)})}e?o?o(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r}):t[e]=n:(i("next",0),i("throw",1),i("return",2))},x(t,e,n,r)}function y(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,c=[],l=!0,s=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(c.push(r.value),c.length!==e);l=!0);}catch(t){s=!0,o=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return j(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?j(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function j(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var _=function(t,e,n,r){return new(n||(n=Promise))(function(o,i){function a(t){try{l(r.next(t))}catch(t){i(t)}}function c(t){try{l(r.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(a,c)}l((r=r.apply(t,e||[])).next())})};const g=function(t){var e=y((0,a.useState)(r.xU.ISTITUZIONALI),2),n=e[0],c=e[1],l=y((0,a.useState)([]),2),u=l[0],m=l[1],f=y((0,a.useState)(""),2),v=f[0],x=f[1],j=y((0,a.useState)([]),2),g=j[0],T=j[1],I=y((0,a.useState)(!1),2),N=I[0],S=I[1],w=function(t){switch(t){case 0:return r.xU.INIZIATIVE;case 1:default:return r.xU.ISTITUZIONALI;case 2:return r.xU.PRODOTTI}};return(0,a.useEffect)(function(){_(void 0,void 0,void 0,b().m(function t(){var e,n,i,a;return b().w(function(t){for(;;)switch(t.p=t.n){case 0:return t.p=0,t.n=1,r.cM.getComunicatiStampa();case 1:(e=t.v).data&&(n=[],e.data.forEach(function(t,e){var r=t;r.newsTypology=w(Number(t.newsTypology)),n.push(r)}),T(n)),t.n=3;break;case 2:t.p=2,a=t.v,i=(0,o.u)(a),console.log("Comunicati stampa in KO",i),S(!0);case 3:return t.a(2)}},t,null,[[0,2]])}))},[]),(0,a.useEffect)(function(){var t=g.map(function(t){var e;return new Date(null!==(e=t.date)&&void 0!==e?e:"").getFullYear().toString()}).filter(function(t,e,n){return n.indexOf(t)===e&&"1"!==t}),e=t.sort(function(t,e){return+e-+t}),n=e.map(function(t){return{value:t,label:t}});x(e[0]),m(n)},[g]),N?(0,s.jsx)("div",{style:{width:"100vw"},children:(0,s.jsx)(i.G,{description:"Si è verificato un problema non previsto. Si prega di riprovare più tardi.",result:i.l.WARNING,type:"light",title:""})}):(0,s.jsxs)("div",{className:"static-container comunicati-stampa",children:[(0,s.jsx)(h,{selectedTab:n,onTabSelect:c}
1),(0,s.jsx)(p,{onYearSelect:x,year:v,listaAnni:u}),(0,s.jsx)(d,{list:g.filter(function(t){return t.newsTypology===n&&new Date(t.date).getFullYear().toString()===v})})]})}}}]);

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.