sass-template-common 0.0.86 → 0.0.88

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -10,7 +10,7 @@ new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
10
10
  j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
11
11
  'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
12
12
  })(window,document,'script','dataLayer','${e}');
13
- `}}),t.jsx("noscript",{children:t.jsx("iframe",{src:`https://www.googletagmanager.com/ns.html?id=${e}`,height:"0",width:"0",style:{display:"none",visibility:"hidden"}})})]}),ua=({id:e})=>e&&t.jsx("script",{type:"text/javascript",dangerouslySetInnerHTML:{__html:`!function(){"use strict";function e(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],c=document.createElement("script");c.src=e,t?c.type="module":(c.defer=!0,c.type="text/javascript",c.setAttribute("nomodule",""));var n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(c,n)}!function(t,c){!function(t,c,n){var a,o,r;n.accountId=c,null!==(a=t.marfeel)&&void 0!==a||(t.marfeel={}),null!==(o=(r=t.marfeel).cmd)&&void 0!==o||(r.cmd=[]),t.marfeel.config=n;var i="https://sdk.mrf.io/statics";e("".concat(i,"/marfeel-sdk.js?id=").concat(c),!0),e("".concat(i,"/marfeel-sdk.es5.js?id=").concat(c),!1)}(t,c,arguments.length>2&&void 0!==arguments[2]?arguments[2]:{})}(window,${e},{})}();`}});function jt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Gt={exports:{}},Go=Gt.exports,ma;function fa(){return ma||(ma=1,(function(e,n){(function(a,s){e.exports=s()})(Go,(function(){var a=1e3,s=6e4,o=36e5,r="millisecond",i="second",l="minute",c="hour",h="day",d="week",u="month",m="quarter",y="year",f="date",g="Invalid Date",w=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,b=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,U={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(B){var E=["th","st","nd","rd"],v=B%100;return"["+B+(E[(v-20)%10]||E[v]||E[0])+"]"}},S=function(B,E,v){var L=String(B);return!L||L.length>=E?B:""+Array(E+1-L.length).join(v)+B},M={s:S,z:function(B){var E=-B.utcOffset(),v=Math.abs(E),L=Math.floor(v/60),k=v%60;return(E<=0?"+":"-")+S(L,2,"0")+":"+S(k,2,"0")},m:function B(E,v){if(E.date()<v.date())return-B(v,E);var L=12*(v.year()-E.year())+(v.month()-E.month()),k=E.clone().add(L,u),Q=v-k<0,N=E.clone().add(L+(Q?-1:1),u);return+(-(L+(v-k)/(Q?k-N:N-k))||0)},a:function(B){return B<0?Math.ceil(B)||0:Math.floor(B)},p:function(B){return{M:u,y,w:d,d:h,D:f,h:c,m:l,s:i,ms:r,Q:m}[B]||String(B||"").toLowerCase().replace(/s$/,"")},u:function(B){return B===void 0}},x="en",I={};I[x]=U;var P="$isDayjsObject",$=function(B){return B instanceof H||!(!B||!B[P])},z=function B(E,v,L){var k;if(!E)return x;if(typeof E=="string"){var Q=E.toLowerCase();I[Q]&&(k=Q),v&&(I[Q]=v,k=Q);var N=E.split("-");if(!k&&N.length>1)return B(N[0])}else{var D=E.name;I[D]=E,k=D}return!L&&k&&(x=k),k||!L&&x},O=function(B,E){if($(B))return B.clone();var v=typeof E=="object"?E:{};return v.date=B,v.args=arguments,new H(v)},q=M;q.l=z,q.i=$,q.w=function(B,E){return O(B,{locale:E.$L,utc:E.$u,x:E.$x,$offset:E.$offset})};var H=(function(){function B(v){this.$L=z(v.locale,null,!0),this.parse(v),this.$x=this.$x||v.x||{},this[P]=!0}var E=B.prototype;return E.parse=function(v){this.$d=(function(L){var k=L.date,Q=L.utc;if(k===null)return new Date(NaN);if(q.u(k))return new Date;if(k instanceof Date)return new Date(k);if(typeof k=="string"&&!/Z$/i.test(k)){var N=k.match(w);if(N){var D=N[2]-1||0,G=(N[7]||"0").substring(0,3);return Q?new Date(Date.UTC(N[1],D,N[3]||1,N[4]||0,N[5]||0,N[6]||0,G)):new Date(N[1],D,N[3]||1,N[4]||0,N[5]||0,N[6]||0,G)}}return new Date(k)})(v),this.init()},E.init=function(){var v=this.$d;this.$y=v.getFullYear(),this.$M=v.getMonth(),this.$D=v.getDate(),this.$W=v.getDay(),this.$H=v.getHours(),this.$m=v.getMinutes(),this.$s=v.getSeconds(),this.$ms=v.getMilliseconds()},E.$utils=function(){return q},E.isValid=function(){return this.$d.toString()!==g},E.isSame=function(v,L){var k=O(v);return this.startOf(L)<=k&&k<=this.endOf(L)},E.isAfter=function(v,L){return O(v)<this.startOf(L)},E.isBefore=function(v,L){return this.endOf(L)<O(v)},E.$g=function(v,L,k){return q.u(v)?this[L]:this.set(k,v)},E.unix=function(){return Math.floor(this.valueOf()/1e3)},E.valueOf=function(){return this.$d.getTime()},E.startOf=function(v,L){var k=this,Q=!!q.u(L)||L,N=q.p(v),D=function(Xe,he){var He=q.w(k.$u?Date.UTC(k.$y,he,Xe):new Date(k.$y,he,Xe),k);return Q?He:He.endOf(h)},G=function(Xe,he){return q.w(k.toDate()[Xe].apply(k.toDate("s"),(Q?[0,0,0,0]:[23,59,59,999]).slice(he)),k)},W=this.$W,F=this.$M,X=this.$D,Ne="set"+(this.$u?"UTC":"");switch(N){case y:return Q?D(1,0):D(31,11);case u:return Q?D(1,F):D(0,F+1);case d:var Se=this.$locale().weekStart||0,Ot=(W<Se?W+7:W)-Se;return D(Q?X-Ot:X+(6-Ot),F);case h:case f:return G(Ne+"Hours",0);case c:return G(Ne+"Minutes",1);case l:return G(Ne+"Seconds",2);case i:return G(Ne+"Milliseconds",3);default:return this.clone()}},E.endOf=function(v){return this.startOf(v,!1)},E.$set=function(v,L){var k,Q=q.p(v),N="set"+(this.$u?"UTC":""),D=(k={},k[h]=N+"Date",k[f]=N+"Date",k[u]=N+"Month",k[y]=N+"FullYear",k[c]=N+"Hours",k[l]=N+"Minutes",k[i]=N+"Seconds",k[r]=N+"Milliseconds",k)[Q],G=Q===h?this.$D+(L-this.$W):L;if(Q===u||Q===y){var W=this.clone().set(f,1);W.$d[D](G),W.init(),this.$d=W.set(f,Math.min(this.$D,W.daysInMonth())).$d}else D&&this.$d[D](G);return this.init(),this},E.set=function(v,L){return this.clone().$set(v,L)},E.get=function(v){return this[q.p(v)]()},E.add=function(v,L){var k,Q=this;v=Number(v);var N=q.p(L),D=function(F){var X=O(Q);return q.w(X.date(X.date()+Math.round(F*v)),Q)};if(N===u)return this.set(u,this.$M+v);if(N===y)return this.set(y,this.$y+v);if(N===h)return D(1);if(N===d)return D(7);var G=(k={},k[l]=s,k[c]=o,k[i]=a,k)[N]||1,W=this.$d.getTime()+v*G;return q.w(W,this)},E.subtract=function(v,L){return this.add(-1*v,L)},E.format=function(v){var L=this,k=this.$locale();if(!this.isValid())return k.invalidDate||g;var Q=v||"YYYY-MM-DDTHH:mm:ssZ",N=q.z(this),D=this.$H,G=this.$m,W=this.$M,F=k.weekdays,X=k.months,Ne=k.meridiem,Se=function(he,He,Qt,Sn){return he&&(he[He]||he(L,Q))||Qt[He].slice(0,Sn)},Ot=function(he){return q.s(D%12||12,he,"0")},Xe=Ne||function(he,He,Qt){var Sn=he<12?"AM":"PM";return Qt?Sn.toLowerCase():Sn};return Q.replace(b,(function(he,He){return He||(function(Qt){switch(Qt){case"YY":return String(L.$y).slice(-2);case"YYYY":return q.s(L.$y,4,"0");case"M":return W+1;case"MM":return q.s(W+1,2,"0");case"MMM":return Se(k.monthsShort,W,X,3);case"MMMM":return Se(X,W);case"D":return L.$D;case"DD":return q.s(L.$D,2,"0");case"d":return String(L.$W);case"dd":return Se(k.weekdaysMin,L.$W,F,2);case"ddd":return Se(k.weekdaysShort,L.$W,F,3);case"dddd":return F[L.$W];case"H":return String(D);case"HH":return q.s(D,2,"0");case"h":return Ot(1);case"hh":return Ot(2);case"a":return Xe(D,G,!0);case"A":return Xe(D,G,!1);case"m":return String(G);case"mm":return q.s(G,2,"0");case"s":return String(L.$s);case"ss":return q.s(L.$s,2,"0");case"SSS":return q.s(L.$ms,3,"0");case"Z":return N}return null})(he)||N.replace(":","")}))},E.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},E.diff=function(v,L,k){var Q,N=this,D=q.p(L),G=O(v),W=(G.utcOffset()-this.utcOffset())*s,F=this-G,X=function(){return q.m(N,G)};switch(D){case y:Q=X()/12;break;case u:Q=X();break;case m:Q=X()/3;break;case d:Q=(F-W)/6048e5;break;case h:Q=(F-W)/864e5;break;case c:Q=F/o;break;case l:Q=F/s;break;case i:Q=F/a;break;default:Q=F}return k?Q:q.a(Q)},E.daysInMonth=function(){return this.endOf(u).$D},E.$locale=function(){return I[this.$L]},E.locale=function(v,L){if(!v)return this.$L;var k=this.clone(),Q=z(v,L,!0);return Q&&(k.$L=Q),k},E.clone=function(){return q.w(this.$d,this)},E.toDate=function(){return new Date(this.valueOf())},E.toJSON=function(){return this.isValid()?this.toISOString():null},E.toISOString=function(){return this.$d.toISOString()},E.toString=function(){return this.$d.toUTCString()},B})(),ee=H.prototype;return O.prototype=ee,[["$ms",r],["$s",i],["$m",l],["$H",c],["$W",h],["$M",u],["$y",y],["$D",f]].forEach((function(B){ee[B[1]]=function(E){return this.$g(E,B[0],B[1])}})),O.extend=function(B,E){return B.$i||(B(E,H,O),B.$i=!0),O},O.locale=z,O.isDayjs=$,O.unix=function(B){return O(1e3*B)},O.en=I[x],O.Ls=I,O.p={},O}))})(Gt)),Gt.exports}var $o=fa();const ue=jt($o);var $t={exports:{}},zo=$t.exports,ga;function Ho(){return ga||(ga=1,(function(e,n){(function(a,s){e.exports=s()})(zo,(function(){return function(a,s,o){a=a||{};var r=s.prototype,i={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function l(h,d,u,m){return r.fromToBase(h,d,u,m)}o.en.relativeTime=i,r.fromToBase=function(h,d,u,m,y){for(var f,g,w,b=u.$locale().relativeTime||i,U=a.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],S=U.length,M=0;M<S;M+=1){var x=U[M];x.d&&(f=m?o(h).diff(u,x.d,!0):u.diff(h,x.d,!0));var I=(a.rounding||Math.round)(Math.abs(f));if(w=f>0,I<=x.r||!x.r){I<=1&&M>0&&(x=U[M-1]);var P=b[x.l];y&&(I=y(""+I)),g=typeof P=="string"?P.replace("%d",I):P(I,d,x.l,w);break}}if(d)return g;var $=w?b.future:b.past;return typeof $=="function"?$(g):$.replace("%s",g)},r.to=function(h,d){return l(h,d,this,!0)},r.from=function(h,d){return l(h,d,this)};var c=function(h){return h.$u?o.utc():o()};r.toNow=function(h){return this.to(c(this),h)},r.fromNow=function(h){return this.from(c(this),h)}}}))})($t)),$t.exports}var Fo=Ho();const Vo=jt(Fo);var zt={exports:{}},Wo=zt.exports,pa;function Yo(){return pa||(pa=1,(function(e,n){(function(a,s){e.exports=s(fa())})(Wo,(function(a){function s(i){return i&&typeof i=="object"&&"default"in i?i:{default:i}}var o=s(a),r={name:"es",monthsShort:"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),weekStart:1,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},ordinal:function(i){return i+"º"}};return o.default.locale(r,null,!0),r}))})(zt)),zt.exports}Yo();var Ht={exports:{}},Ko=Ht.exports,Aa;function Jo(){return Aa||(Aa=1,(function(e,n){(function(a,s){e.exports=s()})(Ko,(function(){var a="minute",s=/[+-]\d\d(?::?\d\d)?/g,o=/([+-]|\d\d)/g;return function(r,i,l){var c=i.prototype;l.utc=function(g){var w={date:g,utc:!0,args:arguments};return new i(w)},c.utc=function(g){var w=l(this.toDate(),{locale:this.$L,utc:!0});return g?w.add(this.utcOffset(),a):w},c.local=function(){return l(this.toDate(),{locale:this.$L,utc:!1})};var h=c.parse;c.parse=function(g){g.utc&&(this.$u=!0),this.$utils().u(g.$offset)||(this.$offset=g.$offset),h.call(this,g)};var d=c.init;c.init=function(){if(this.$u){var g=this.$d;this.$y=g.getUTCFullYear(),this.$M=g.getUTCMonth(),this.$D=g.getUTCDate(),this.$W=g.getUTCDay(),this.$H=g.getUTCHours(),this.$m=g.getUTCMinutes(),this.$s=g.getUTCSeconds(),this.$ms=g.getUTCMilliseconds()}else d.call(this)};var u=c.utcOffset;c.utcOffset=function(g,w){var b=this.$utils().u;if(b(g))return this.$u?0:b(this.$offset)?u.call(this):this.$offset;if(typeof g=="string"&&(g=(function(x){x===void 0&&(x="");var I=x.match(s);if(!I)return null;var P=(""+I[0]).match(o)||["-",0,0],$=P[0],z=60*+P[1]+ +P[2];return z===0?0:$==="+"?z:-z})(g),g===null))return this;var U=Math.abs(g)<=16?60*g:g;if(U===0)return this.utc(w);var S=this.clone();if(w)return S.$offset=U,S.$u=!1,S;var M=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(S=this.local().add(U+M,a)).$offset=U,S.$x.$localOffset=M,S};var m=c.format;c.format=function(g){var w=g||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return m.call(this,w)},c.valueOf=function(){var g=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*g},c.isUTC=function(){return!!this.$u},c.toISOString=function(){return this.toDate().toISOString()},c.toString=function(){return this.toDate().toUTCString()};var y=c.toDate;c.toDate=function(g){return g==="s"&&this.$offset?l(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():y.call(this)};var f=c.diff;c.diff=function(g,w,b){if(g&&this.$u===g.$u)return f.call(this,g,w,b);var U=this.local(),S=l(g).local();return f.call(U,S,w,b)}}}))})(Ht)),Ht.exports}var Zo=Jo();const Xo=jt(Zo);var Ft={exports:{}},Ro=Ft.exports,wa;function er(){return wa||(wa=1,(function(e,n){(function(a,s){e.exports=s()})(Ro,(function(){var a={year:0,month:1,day:2,hour:3,minute:4,second:5},s={};return function(o,r,i){var l,c=function(m,y,f){f===void 0&&(f={});var g=new Date(m),w=(function(b,U){U===void 0&&(U={});var S=U.timeZoneName||"short",M=b+"|"+S,x=s[M];return x||(x=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:b,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:S}),s[M]=x),x})(y,f);return w.formatToParts(g)},h=function(m,y){for(var f=c(m,y),g=[],w=0;w<f.length;w+=1){var b=f[w],U=b.type,S=b.value,M=a[U];M>=0&&(g[M]=parseInt(S,10))}var x=g[3],I=x===24?0:x,P=g[0]+"-"+g[1]+"-"+g[2]+" "+I+":"+g[4]+":"+g[5]+":000",$=+m;return(i.utc(P).valueOf()-($-=$%1e3))/6e4},d=r.prototype;d.tz=function(m,y){m===void 0&&(m=l);var f,g=this.utcOffset(),w=this.toDate(),b=w.toLocaleString("en-US",{timeZone:m}),U=Math.round((w-new Date(b))/1e3/60),S=15*-Math.round(w.getTimezoneOffset()/15)-U;if(!Number(S))f=this.utcOffset(0,y);else if(f=i(b,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(S,!0),y){var M=f.utcOffset();f=f.add(g-M,"minute")}return f.$x.$timezone=m,f},d.offsetName=function(m){var y=this.$x.$timezone||i.tz.guess(),f=c(this.valueOf(),y,{timeZoneName:m}).find((function(g){return g.type.toLowerCase()==="timezonename"}));return f&&f.value};var u=d.startOf;d.startOf=function(m,y){if(!this.$x||!this.$x.$timezone)return u.call(this,m,y);var f=i(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return u.call(f,m,y).tz(this.$x.$timezone,!0)},i.tz=function(m,y,f){var g=f&&y,w=f||y||l,b=h(+i(),w);if(typeof m!="string")return i(m).tz(w);var U=(function(I,P,$){var z=I-60*P*1e3,O=h(z,$);if(P===O)return[z,P];var q=h(z-=60*(O-P)*1e3,$);return O===q?[z,O]:[I-60*Math.min(O,q)*1e3,Math.max(O,q)]})(i.utc(m,g).valueOf(),b,w),S=U[0],M=U[1],x=i(S).utcOffset(M);return x.$x.$timezone=w,x},i.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},i.tz.setDefault=function(m){l=m}}}))})(Ft)),Ft.exports}var tr=er();const nr=jt(tr);let kn={PUBLIC_API_HOST:"https://dev-saas.cms-medios.com",PUBLIC_API_FRONT:"https://dev-lahora.cms-medios.com",PUBLIC_API_PATH:void 0,PUBLIC_API_PATH_VERSION:void 0,PUBLIC_X_SECURITY_TOKEN:"wj5oeACJStV3exBvodMa",PUBLIC_PUBLICATION_ID:"35",PUBLIC_TAG_TYPE:"27",PUBLIC_ENV:"local",PUBLIC_LNG:"en",PUBLIC_SERVICE_PREFIX:"false",PUBLIC_IS_SUB_PUBLICATION:void 0,PUBLIC_USERNAME_OFFLINE:"previewreactsaas",PUBLIC_PASSWORD_OFFLINE:"Y35VhZGkFtwu",PUBLIC_IS_OFFLINE:"false",PUBLIC_OFFLINE_SITE:"formula",PUBLIC_WP_API_HOST:void 0,PUBLIC_X_SECURITY_WAF_TOKEN:"false",DEPLOY_BUCKET:"false",PUBLIC_ASSETS_URL:"false",PUBLIC_BUILD_ID:"123456789"};function ar(e={}){kn={...kn,...e}}function J(){return kn}ue.extend(Xo),ue.extend(nr),ue.extend(Vo);const Vt="America/Mexico_City",{PUBLIC_LNG:sr}=J(),gt=sr==="en"?"en":"es",Ce=e=>ue.tz(e,Vt).locale(gt).format("DD MMMM YYYY"),En=e=>ue.tz(e,Vt).locale(gt).format(gt==="en"?"MMMM DD YYYY [•] HH:mm [hs]":"DD [de] MMMM YYYY [•] HH:mm [hs]"),ya=e=>ue.tz(e,Vt).locale(gt).format("MM/DD/YYYY [•] HH:mm [HS]"),or=e=>ue.tz(e,Vt).locale(gt).format("dddd DD [de] MMMM YYYY"),me=(e,n=136)=>e&&e.length>n?`${e.substring(0,n)}...`:e;function Ca(e){return e&&e.status==="fulfilled"?e.value.data:null}function ba(e){return e&&e.status==="fulfilled"?e.value:null}const Re=(e,n,a)=>({authors:[],social:{description:"",images:{facebook:"",twitter:""},title:""},info:{date:{...e?.info.date,lastpublish:0,firstpublish:0,date:""},link:e?.info.link},preview:{sizes:e?.main.image.sizes,description:e?.main.image.description},config:{showtime:n,showsubtitle:a},main:{title:{article:e?.main.title,home:e?.main.title,seo:e?.main.title,section:e?.main.title},subtitle:{rendered:e?.main.description,striped:e?.main.description},tags:[]}});function rr(e){const n=[],a=e.match(/<div[^>]*class=["'][^"']*ck-related-news[^"']*["'][^>]*>[\s\S]*?<\/div>/gi);if(!a)return n;for(const s of a){const o=[],r=s.match(/data-src=["']([^"']+)["']/gi);if(r)for(const i of r){const l=i.replace(/data-src=["']([^"']+)["']/,"$1");o.push(l)}n.push(o)}return n}const pt=()=>{const{PUBLIC_ENV:e,PUBLIC_API_HOST:n,PUBLIC_ASSETS_URL:a}=J();return e=="local"?n:a!=="false"&&a!=="false"?a:""},va=()=>{const{PUBLIC_ENV:e,PUBLIC_API_FRONT:n}=J();return e==="local"?n:""},_a=(e,n)=>{if(!e)return{};const{PUBLIC_ASSETS_URL:a,PUBLIC_API_FRONT:s}=J(),o=In(e.keywords)??"",r=e?.preview?.sizes?e?.preview?.sizes[0]?.url:"",i=(a!=="false"?a:s)??"";return{title:(e?.main?.title?.seo??e?.main?.title?.article)+" | "+n.name,robots:"index, follow, max-image-preview:large",alternates:{types:{"application/rss+xml":(n.siteUrl??"")+"/rss/feed.xml"},canonical:e?.info?.link?.canonical},description:e?.main?.subtitle?.striped??"",news_keywords:o,keywords:o,openGraph:{title:e?.social?.title??e?.main?.title?.article,url:e?.info?.link?.canonical,type:"article",description:e?.social?.description??e?.main?.subtitle?.striped??"",images:[{url:i+(e?.social?.images?.facebook??r),width:n.landscapeLogo.width,height:n.landscapeLogo.height}],siteName:n.name.toLocaleUpperCase()},twitter:{title:e?.main?.title?.article,card:"summary_large_image",site:n.siteUrl,description:e?.main?.subtitle?.striped??"",images:[{url:i+(e?.social?.images?.twitter??r),width:n.twitterSummaryCard.width,height:n.twitterSummaryCard.height}]}}},In=e=>!e||!e?.tags||e?.tags?.length===0?"":e?.tags?.map(n=>n.name).join(", ").replaceAll('"',"'").replaceAll("`","'"),Na=e=>{const n=e?.match(/^\/(?:[^/]+\/)?([^/]+)\/([^/]+\.html)$/);return n?{slug:n[1]??"",path:n[2]??""}:{slug:"",path:""}},Sa=e=>e.replaceAll("/","").replaceAll("_","").replace(".html",""),ir={description:{attr:"name",value:"description"},robots:{attr:"name",value:"robots"},keywords:{attr:"name",value:"keywords"},news_keywords:{attr:"name",value:"news_keywords"},"openGraph.title":{attr:"property",value:"og:title"},"openGraph.description":{attr:"property",value:"og:description"},"openGraph.type":{attr:"property",value:"og:type"},"openGraph.url":{attr:"property",value:"og:url"},"openGraph.siteName":{attr:"property",value:"og:site_name"},"twitter.card":{attr:"name",value:"twitter:card"},"twitter.title":{attr:"name",value:"twitter:title"},"twitter.description":{attr:"name",value:"twitter:description"},"twitter.site":{attr:"name",value:"twitter:site"},"twitter.creator":{attr:"name",value:"twitter:creator"}},ka=e=>{const n=[];let a=0;const s=i=>n.push(i);return e.title&&typeof e.title=="string"&&s(t.jsx("title",{children:e.title},`title-${a++}`)),Object.entries(ir).forEach(([i,l])=>{const c=i.split(".").reduce((h,d)=>h?.[d],e);c&&s(t.jsx("meta",{[l.attr]:l.value,content:String(c)},`meta-${a++}`))}),(e.openGraph?.images?Array.isArray(e.openGraph.images)?e.openGraph.images:[e.openGraph.images]:[]).forEach(i=>{i&&(typeof i=="string"?s(t.jsx("meta",{property:"og:image",content:i},`og-img-${a++}`)):(i.url&&s(t.jsx("meta",{property:"og:image",content:i.url},`og-img-${a++}`)),i.width&&s(t.jsx("meta",{property:"og:image:width",content:String(i.width)},`og-img-w-${a++}`)),i.height&&s(t.jsx("meta",{property:"og:image:height",content:String(i.height)},`og-img-h-${a++}`))))}),(e.twitter?.images?Array.isArray(e.twitter.images)?e.twitter.images:[e.twitter.images]:[]).forEach(i=>{const l=typeof i=="string"?i:i.url;l&&s(t.jsx("meta",{name:"twitter:image",content:l},`tw-img-${a++}`))}),e.alternates?.canonical&&s(t.jsx("link",{rel:"canonical",href:String(e.alternates.canonical)},`link-${a++}`)),e.manifest&&s(t.jsx("link",{rel:"manifest",href:String(e.manifest)},`link-${a++}`)),e.alternates?.types&&Object.entries(e.alternates.types).forEach(([i,l])=>{typeof l=="string"&&s(t.jsx("link",{rel:"alternate",type:i,href:l},`alt-${a++}`))}),e.icons&&[...e.icons?.icon??[],...e.icons?.other??[]].forEach(l=>{l&&s(typeof l=="string"?t.jsx("link",{rel:"icon",href:l},`icon-${a++}`):t.jsx("link",{rel:l.rel||"icon",href:l.url,...l.type&&{type:l.type},...l.sizes&&{sizes:l.sizes}},`icon-${a++}`))}),e.other&&Object.entries(e.other).forEach(([i,l])=>{l&&s(t.jsx("meta",{name:i,content:String(l)},`other-${a++}`))}),n},te=async e=>`${pt()}${e}`,Wt=(e,n)=>{const a=e||"";return n?a.replaceAll("[section_replace]",n["[section_replace]"]??"").replaceAll("[tag_replace]",n["[tag_replace]"]??"").replaceAll("[url_replace]",n["[url_replace]"]??"").replaceAll("[author_replace]",n["[author_replace]"]??"")||"":a||""},Un=e=>{const n=e.banners.find(r=>r.key===e.name);if(!n||!n.show)return null;const a=Wt(n.value||"",e.replaces),s=/<script([^>]*)>([\s\S]*?)<\/script\s*>/gi,o=[...a.matchAll(s)];return t.jsx(t.Fragment,{children:o.map((r,i)=>{const l=r[1]||"",c=r[2]?.trim()||"",h=l.match(/src=["']([^"']+)["']/i);if(h){const d=h[1];return t.jsx("script",{src:d,async:!0},i)}else return t.jsx("script",{id:e.name,dangerouslySetInnerHTML:{__html:c}},i)})})},Ea=e=>{const n=e.banners.find(o=>o.key===e.name);if(!n||!n.show)return null;const s=Wt(n.value||"",e.replaces).split(/(<script[\s\S]*?<\/script\s*>)/gi);return t.jsx(t.Fragment,{children:s.map((o,r)=>{const i=o.match(/<script([^>]*)>([\s\S]*?)<\/script\s*>/i);if(i){const l=i[1]||"",c=i[2]?.trim()||"",h=l.match(/src=["']([^"']+)["']/i);if(h){const d=h[1];return t.jsx("script",{src:d,async:!0},r)}else return t.jsx("script",{id:e.name,dangerouslySetInnerHTML:{__html:c}},r)}else if(o.trim())return t.jsx("div",{dangerouslySetInnerHTML:{__html:o}},r);return null})})},At=(e,n,a)=>{let s=e.siteUrl;return n.forEach((o,r)=>{r>0&&(s+=`/${o}`)}),`${s}/page/${a+1}`},wt=(e,n,a)=>{let s=e.siteUrl;return n.forEach((o,r)=>{r>0&&(s+=`/${o}`)}),`${s}/page/${a-1}`};function lr(e){const n=e.length;return n>1&&e.charCodeAt(n-1)===47?e.slice(0,n-1):e}const Ia=()=>{const{PUBLIC_ASSETS_URL:e}=J();return e&&e!=="false"&&t.jsx("link",{rel:"preconnect",href:e,crossOrigin:"anonymous"})},{PUBLIC_ASSETS_URL:Tn}=J(),cr=Tn&&Tn!=="false"?Tn:"",xn=({images:e})=>t.jsx(t.Fragment,{children:e.map((n,a)=>n.href!==""&&t.jsx("link",{rel:"preload",href:cr+n.href,media:n.media??"",as:"image",fetchPriority:n.fetchPriority??"high"},a))}),Ua=(e,n)=>{if(!e)return{};const{PUBLIC_API_FRONT:a}=J();return{title:e?.main?.title+" | "+n.name,robots:"index, follow, max-image-preview:large",alternates:{canonical:n.siteUrl+e?.info?.link?.url},description:e.main.description??"",news_keywords:e.main.tags,keywords:e.main.tags,openGraph:{title:e.main.title,url:e?.info?.link?.canonical,type:"article",description:e.main.description??"",images:[{url:(a??"")+e?.main.image.sizes[0]?.url,width:n.landscapeLogo.width,height:n.landscapeLogo.height}],siteName:n.name.toLocaleUpperCase()},twitter:{title:e?.main?.title,card:"summary_large_image",site:n.siteUrl,description:e?.main.description??"",images:[{url:(a??"")+e?.main.image.sizes[0]?.url,width:n.twitterSummaryCard.width,height:n.twitterSummaryCard.height}]}}},dr=e=>{let n="";if(e.params.news.match(/.*t[0-9]*.html/g)){const a=e.params.news.split("-"),s=a[a.length-1]??"",o=s.substring(1,9),r=s.substring(9,13);n=`/listas/${ue(o).format("YYYY/MM/DD")}/lista_${r}.html`}else if(e.params.news.match(/.*lb[0-9]*.html/g)){const a=e.params.news.split("-"),s=a[a.length-1]??"",o=s.substring(2,10),r=s.substring(10,14);n=`/liveblog/${ue(o).format("YYYY/MM/DD")}/liveblog_${r}.html`}else{const a=e.params.news.split("-");Array.isArray(a)&&(n=`/contenidos/${ue(a[a.length-2]).format("YYYY/MM/DD")}/noticia_${a[a.length-1]}.html`)}return e.config.servicePrefix+n};function hr(e){const n=e.split("-"),a=n[n.length-1]?.split("."),s=a&&a[0]?a[0]:"",o=s.substring(0,2),r=s.substring(2,10),i=s.substring(10);return{path:{vy:c=>`/videos/video-youtube/${ue(r).format("YYYY/MM/DD")}/videoYouTube_${c}.lnk`,ve:c=>`/videos/video-embedded/${ue(r).format("YYYY/MM/DD")}/videoEmbedded_${c}.lnk`,vf:c=>`/videos/video-flash/${ue(r).format("YYYY/MM/DD")}/${n[0]}.${c}`}[o]?.(i)??"",op:o}}const Ta={prerender:[{where:{and:[{href_matches:"/*(-|-t|-lb)([0-9]{8})(-|)([0-9]{4,6}).html"},{not:{selector_matches:"[rel~=nofollow]"}}]},eagerness:"immediate"}]},xa={prerender:[{where:{and:[{href_matches:"/*(-|-t|-lb)([0-9]{8})(-|)([0-9]{4,6}).html"},{not:{selector_matches:"[rel~=nofollow]"}}]},eagerness:"immediate"},{eagerness:"immediate",urls:["/"]}]},ur={Home:Ta,Common:xa},qa=({active:e,type:n,customSpeculation:a})=>e&&t.jsx("script",{type:"speculationrules",dangerouslySetInnerHTML:{__html:JSON.stringify(a??ur[n])}}),Yt=async(e,n,a)=>{if(!a)return;const s=n==="/news-breadcrumb"?{...e,prefixtag:"/tema"}:e;return a.get(`/schemas${n}`,{params:s}).catch(o=>{console.log(`[/schemas${n}] Error: ${o.message}`)})},mr={autor:"autor",seccion:"seccion",tema:"claves","ultimas-noticias":"seccion"},Ba=async({config:e,axiosApi:n,pathname:a,ROUTE:s})=>{let o=[];const r=a==="/"||a==="/index.html"?void 0:ja(Ga[s]({pathname:a,config:e})),i=mr[s]??void 0,l={newstype:e.newsType,publication:"35",...r&&i?{query:`${i}:('${r}')`}:{}};try{const c=await Yt(l,"/news-list-summary",n);c?.data?.data?o=c.data.data:console.warn("getSchemas responded but did not contain expected data:",c)}catch(c){console.log("Error fetching schemas:",c)}return Object.keys(o).length>0&&t.jsx("script",{id:"webSiteItemListSchema",type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(o)}})};function La(e){const{PUBLIC_ASSETS_URL:n}=J();if(!n||n==="false")return e;const a=n.replace(/\/+$/,""),s=/https?:\/\/[^/\s]+\/(arte|__export)\//g;return e.replace(s,(o,r)=>`${a}/${r}/`)}const Da=async({realPath:e,config:n,BASE_URL:a,axiosApi:s})=>{let o=[];try{const r=n.socialBlockLogo?.url?new URL(n.socialBlockLogo.url).pathname:void 0,i=n.landscapeLogo?.url?new URL(n.landscapeLogo.url).pathname:void 0,l={path:e,image:i,logo:r,url:n.siteUrl,name:n.name,logow:n.socialBlockLogo?.width,logoh:n.socialBlockLogo?.height,authorurl:a+"/autor/"},c=e.split("/")[1],h=c=="liveblogs"||c=="liveblog"?["/news","/news-breadcrumb","/news-liveblog"]:["/news","/news-breadcrumb"];o=(await Promise.all(h.map(async u=>await Yt(l,u,s)))).map(u=>u?.data?.data??[])}catch(r){console.log("Error fetching schemas:",r)}return o.map((r,i)=>t.jsx("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:La(JSON.stringify(r))}},i))},Ma=({config:e,socials:n})=>{const a={"@context":"https://schema.org","@type":"NewsMediaOrganization",name:e.name,description:e.description,email:e.email,url:e.siteUrl,logo:e.squareLogo.url,sameAs:Object.keys(n).filter(s=>n[s]?.show).map(s=>n[s]?.url)};return(!e.description||e.description==="")&&delete a.description,t.jsx("script",{id:"WebsiteOrgListSchema",type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(a)}})},Pa=({config:e})=>{const n={"@context":"https://schema.org","@type":"WebSite",name:e.name,url:e.siteUrl,potentialAction:{"@type":"SearchAction",target:e.siteUrl+"/buscar?query={search_term_string}","query-input":"required name=search_term_string"}};return t.jsx("script",{id:"WebsiteListSchema",type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(n)}})},Oa=async({realPath:e,config:n,axiosApi:a})=>{try{const s={path:e,image:n.landscapeLogo?.url?new URL(n.landscapeLogo.url).pathname:void 0,logo:n.socialBlockLogo?.url?new URL(n.socialBlockLogo.url).pathname:void 0,url:n.siteUrl,name:n.name,logow:n.socialBlockLogo?.width,logoh:n.socialBlockLogo?.height,authorurl:`${n.siteUrl}/autor/`},r=(await Yt(s,"/videos",a))?.data.data;return r?t.jsx("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:La(JSON.stringify(r))}}):void 0}catch(s){return console.error("Error fetching video schemas:",s),null}},Qa=({config:e})=>{const n=`@font-face {
13
+ `}}),t.jsx("noscript",{children:t.jsx("iframe",{src:`https://www.googletagmanager.com/ns.html?id=${e}`,height:"0",width:"0",style:{display:"none",visibility:"hidden"}})})]}),ua=({id:e})=>e&&t.jsx("script",{type:"text/javascript",dangerouslySetInnerHTML:{__html:`!function(){"use strict";function e(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],c=document.createElement("script");c.src=e,t?c.type="module":(c.defer=!0,c.type="text/javascript",c.setAttribute("nomodule",""));var n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(c,n)}!function(t,c){!function(t,c,n){var a,o,r;n.accountId=c,null!==(a=t.marfeel)&&void 0!==a||(t.marfeel={}),null!==(o=(r=t.marfeel).cmd)&&void 0!==o||(r.cmd=[]),t.marfeel.config=n;var i="https://sdk.mrf.io/statics";e("".concat(i,"/marfeel-sdk.js?id=").concat(c),!0),e("".concat(i,"/marfeel-sdk.es5.js?id=").concat(c),!1)}(t,c,arguments.length>2&&void 0!==arguments[2]?arguments[2]:{})}(window,${e},{})}();`}});function jt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Gt={exports:{}},Go=Gt.exports,ma;function fa(){return ma||(ma=1,(function(e,n){(function(a,s){e.exports=s()})(Go,(function(){var a=1e3,s=6e4,o=36e5,r="millisecond",i="second",l="minute",c="hour",h="day",d="week",u="month",m="quarter",y="year",f="date",g="Invalid Date",w=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,b=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,U={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(B){var E=["th","st","nd","rd"],v=B%100;return"["+B+(E[(v-20)%10]||E[v]||E[0])+"]"}},S=function(B,E,v){var L=String(B);return!L||L.length>=E?B:""+Array(E+1-L.length).join(v)+B},M={s:S,z:function(B){var E=-B.utcOffset(),v=Math.abs(E),L=Math.floor(v/60),k=v%60;return(E<=0?"+":"-")+S(L,2,"0")+":"+S(k,2,"0")},m:function B(E,v){if(E.date()<v.date())return-B(v,E);var L=12*(v.year()-E.year())+(v.month()-E.month()),k=E.clone().add(L,u),Q=v-k<0,N=E.clone().add(L+(Q?-1:1),u);return+(-(L+(v-k)/(Q?k-N:N-k))||0)},a:function(B){return B<0?Math.ceil(B)||0:Math.floor(B)},p:function(B){return{M:u,y,w:d,d:h,D:f,h:c,m:l,s:i,ms:r,Q:m}[B]||String(B||"").toLowerCase().replace(/s$/,"")},u:function(B){return B===void 0}},x="en",I={};I[x]=U;var P="$isDayjsObject",$=function(B){return B instanceof H||!(!B||!B[P])},z=function B(E,v,L){var k;if(!E)return x;if(typeof E=="string"){var Q=E.toLowerCase();I[Q]&&(k=Q),v&&(I[Q]=v,k=Q);var N=E.split("-");if(!k&&N.length>1)return B(N[0])}else{var D=E.name;I[D]=E,k=D}return!L&&k&&(x=k),k||!L&&x},O=function(B,E){if($(B))return B.clone();var v=typeof E=="object"?E:{};return v.date=B,v.args=arguments,new H(v)},q=M;q.l=z,q.i=$,q.w=function(B,E){return O(B,{locale:E.$L,utc:E.$u,x:E.$x,$offset:E.$offset})};var H=(function(){function B(v){this.$L=z(v.locale,null,!0),this.parse(v),this.$x=this.$x||v.x||{},this[P]=!0}var E=B.prototype;return E.parse=function(v){this.$d=(function(L){var k=L.date,Q=L.utc;if(k===null)return new Date(NaN);if(q.u(k))return new Date;if(k instanceof Date)return new Date(k);if(typeof k=="string"&&!/Z$/i.test(k)){var N=k.match(w);if(N){var D=N[2]-1||0,G=(N[7]||"0").substring(0,3);return Q?new Date(Date.UTC(N[1],D,N[3]||1,N[4]||0,N[5]||0,N[6]||0,G)):new Date(N[1],D,N[3]||1,N[4]||0,N[5]||0,N[6]||0,G)}}return new Date(k)})(v),this.init()},E.init=function(){var v=this.$d;this.$y=v.getFullYear(),this.$M=v.getMonth(),this.$D=v.getDate(),this.$W=v.getDay(),this.$H=v.getHours(),this.$m=v.getMinutes(),this.$s=v.getSeconds(),this.$ms=v.getMilliseconds()},E.$utils=function(){return q},E.isValid=function(){return this.$d.toString()!==g},E.isSame=function(v,L){var k=O(v);return this.startOf(L)<=k&&k<=this.endOf(L)},E.isAfter=function(v,L){return O(v)<this.startOf(L)},E.isBefore=function(v,L){return this.endOf(L)<O(v)},E.$g=function(v,L,k){return q.u(v)?this[L]:this.set(k,v)},E.unix=function(){return Math.floor(this.valueOf()/1e3)},E.valueOf=function(){return this.$d.getTime()},E.startOf=function(v,L){var k=this,Q=!!q.u(L)||L,N=q.p(v),D=function(Xe,he){var He=q.w(k.$u?Date.UTC(k.$y,he,Xe):new Date(k.$y,he,Xe),k);return Q?He:He.endOf(h)},G=function(Xe,he){return q.w(k.toDate()[Xe].apply(k.toDate("s"),(Q?[0,0,0,0]:[23,59,59,999]).slice(he)),k)},W=this.$W,F=this.$M,X=this.$D,Ne="set"+(this.$u?"UTC":"");switch(N){case y:return Q?D(1,0):D(31,11);case u:return Q?D(1,F):D(0,F+1);case d:var Se=this.$locale().weekStart||0,Ot=(W<Se?W+7:W)-Se;return D(Q?X-Ot:X+(6-Ot),F);case h:case f:return G(Ne+"Hours",0);case c:return G(Ne+"Minutes",1);case l:return G(Ne+"Seconds",2);case i:return G(Ne+"Milliseconds",3);default:return this.clone()}},E.endOf=function(v){return this.startOf(v,!1)},E.$set=function(v,L){var k,Q=q.p(v),N="set"+(this.$u?"UTC":""),D=(k={},k[h]=N+"Date",k[f]=N+"Date",k[u]=N+"Month",k[y]=N+"FullYear",k[c]=N+"Hours",k[l]=N+"Minutes",k[i]=N+"Seconds",k[r]=N+"Milliseconds",k)[Q],G=Q===h?this.$D+(L-this.$W):L;if(Q===u||Q===y){var W=this.clone().set(f,1);W.$d[D](G),W.init(),this.$d=W.set(f,Math.min(this.$D,W.daysInMonth())).$d}else D&&this.$d[D](G);return this.init(),this},E.set=function(v,L){return this.clone().$set(v,L)},E.get=function(v){return this[q.p(v)]()},E.add=function(v,L){var k,Q=this;v=Number(v);var N=q.p(L),D=function(F){var X=O(Q);return q.w(X.date(X.date()+Math.round(F*v)),Q)};if(N===u)return this.set(u,this.$M+v);if(N===y)return this.set(y,this.$y+v);if(N===h)return D(1);if(N===d)return D(7);var G=(k={},k[l]=s,k[c]=o,k[i]=a,k)[N]||1,W=this.$d.getTime()+v*G;return q.w(W,this)},E.subtract=function(v,L){return this.add(-1*v,L)},E.format=function(v){var L=this,k=this.$locale();if(!this.isValid())return k.invalidDate||g;var Q=v||"YYYY-MM-DDTHH:mm:ssZ",N=q.z(this),D=this.$H,G=this.$m,W=this.$M,F=k.weekdays,X=k.months,Ne=k.meridiem,Se=function(he,He,Qt,Sn){return he&&(he[He]||he(L,Q))||Qt[He].slice(0,Sn)},Ot=function(he){return q.s(D%12||12,he,"0")},Xe=Ne||function(he,He,Qt){var Sn=he<12?"AM":"PM";return Qt?Sn.toLowerCase():Sn};return Q.replace(b,(function(he,He){return He||(function(Qt){switch(Qt){case"YY":return String(L.$y).slice(-2);case"YYYY":return q.s(L.$y,4,"0");case"M":return W+1;case"MM":return q.s(W+1,2,"0");case"MMM":return Se(k.monthsShort,W,X,3);case"MMMM":return Se(X,W);case"D":return L.$D;case"DD":return q.s(L.$D,2,"0");case"d":return String(L.$W);case"dd":return Se(k.weekdaysMin,L.$W,F,2);case"ddd":return Se(k.weekdaysShort,L.$W,F,3);case"dddd":return F[L.$W];case"H":return String(D);case"HH":return q.s(D,2,"0");case"h":return Ot(1);case"hh":return Ot(2);case"a":return Xe(D,G,!0);case"A":return Xe(D,G,!1);case"m":return String(G);case"mm":return q.s(G,2,"0");case"s":return String(L.$s);case"ss":return q.s(L.$s,2,"0");case"SSS":return q.s(L.$ms,3,"0");case"Z":return N}return null})(he)||N.replace(":","")}))},E.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},E.diff=function(v,L,k){var Q,N=this,D=q.p(L),G=O(v),W=(G.utcOffset()-this.utcOffset())*s,F=this-G,X=function(){return q.m(N,G)};switch(D){case y:Q=X()/12;break;case u:Q=X();break;case m:Q=X()/3;break;case d:Q=(F-W)/6048e5;break;case h:Q=(F-W)/864e5;break;case c:Q=F/o;break;case l:Q=F/s;break;case i:Q=F/a;break;default:Q=F}return k?Q:q.a(Q)},E.daysInMonth=function(){return this.endOf(u).$D},E.$locale=function(){return I[this.$L]},E.locale=function(v,L){if(!v)return this.$L;var k=this.clone(),Q=z(v,L,!0);return Q&&(k.$L=Q),k},E.clone=function(){return q.w(this.$d,this)},E.toDate=function(){return new Date(this.valueOf())},E.toJSON=function(){return this.isValid()?this.toISOString():null},E.toISOString=function(){return this.$d.toISOString()},E.toString=function(){return this.$d.toUTCString()},B})(),ee=H.prototype;return O.prototype=ee,[["$ms",r],["$s",i],["$m",l],["$H",c],["$W",h],["$M",u],["$y",y],["$D",f]].forEach((function(B){ee[B[1]]=function(E){return this.$g(E,B[0],B[1])}})),O.extend=function(B,E){return B.$i||(B(E,H,O),B.$i=!0),O},O.locale=z,O.isDayjs=$,O.unix=function(B){return O(1e3*B)},O.en=I[x],O.Ls=I,O.p={},O}))})(Gt)),Gt.exports}var $o=fa();const ue=jt($o);var $t={exports:{}},zo=$t.exports,ga;function Ho(){return ga||(ga=1,(function(e,n){(function(a,s){e.exports=s()})(zo,(function(){return function(a,s,o){a=a||{};var r=s.prototype,i={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function l(h,d,u,m){return r.fromToBase(h,d,u,m)}o.en.relativeTime=i,r.fromToBase=function(h,d,u,m,y){for(var f,g,w,b=u.$locale().relativeTime||i,U=a.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],S=U.length,M=0;M<S;M+=1){var x=U[M];x.d&&(f=m?o(h).diff(u,x.d,!0):u.diff(h,x.d,!0));var I=(a.rounding||Math.round)(Math.abs(f));if(w=f>0,I<=x.r||!x.r){I<=1&&M>0&&(x=U[M-1]);var P=b[x.l];y&&(I=y(""+I)),g=typeof P=="string"?P.replace("%d",I):P(I,d,x.l,w);break}}if(d)return g;var $=w?b.future:b.past;return typeof $=="function"?$(g):$.replace("%s",g)},r.to=function(h,d){return l(h,d,this,!0)},r.from=function(h,d){return l(h,d,this)};var c=function(h){return h.$u?o.utc():o()};r.toNow=function(h){return this.to(c(this),h)},r.fromNow=function(h){return this.from(c(this),h)}}}))})($t)),$t.exports}var Fo=Ho();const Vo=jt(Fo);var zt={exports:{}},Wo=zt.exports,pa;function Yo(){return pa||(pa=1,(function(e,n){(function(a,s){e.exports=s(fa())})(Wo,(function(a){function s(i){return i&&typeof i=="object"&&"default"in i?i:{default:i}}var o=s(a),r={name:"es",monthsShort:"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),weekStart:1,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},ordinal:function(i){return i+"º"}};return o.default.locale(r,null,!0),r}))})(zt)),zt.exports}Yo();var Ht={exports:{}},Ko=Ht.exports,Aa;function Jo(){return Aa||(Aa=1,(function(e,n){(function(a,s){e.exports=s()})(Ko,(function(){var a="minute",s=/[+-]\d\d(?::?\d\d)?/g,o=/([+-]|\d\d)/g;return function(r,i,l){var c=i.prototype;l.utc=function(g){var w={date:g,utc:!0,args:arguments};return new i(w)},c.utc=function(g){var w=l(this.toDate(),{locale:this.$L,utc:!0});return g?w.add(this.utcOffset(),a):w},c.local=function(){return l(this.toDate(),{locale:this.$L,utc:!1})};var h=c.parse;c.parse=function(g){g.utc&&(this.$u=!0),this.$utils().u(g.$offset)||(this.$offset=g.$offset),h.call(this,g)};var d=c.init;c.init=function(){if(this.$u){var g=this.$d;this.$y=g.getUTCFullYear(),this.$M=g.getUTCMonth(),this.$D=g.getUTCDate(),this.$W=g.getUTCDay(),this.$H=g.getUTCHours(),this.$m=g.getUTCMinutes(),this.$s=g.getUTCSeconds(),this.$ms=g.getUTCMilliseconds()}else d.call(this)};var u=c.utcOffset;c.utcOffset=function(g,w){var b=this.$utils().u;if(b(g))return this.$u?0:b(this.$offset)?u.call(this):this.$offset;if(typeof g=="string"&&(g=(function(x){x===void 0&&(x="");var I=x.match(s);if(!I)return null;var P=(""+I[0]).match(o)||["-",0,0],$=P[0],z=60*+P[1]+ +P[2];return z===0?0:$==="+"?z:-z})(g),g===null))return this;var U=Math.abs(g)<=16?60*g:g;if(U===0)return this.utc(w);var S=this.clone();if(w)return S.$offset=U,S.$u=!1,S;var M=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(S=this.local().add(U+M,a)).$offset=U,S.$x.$localOffset=M,S};var m=c.format;c.format=function(g){var w=g||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return m.call(this,w)},c.valueOf=function(){var g=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*g},c.isUTC=function(){return!!this.$u},c.toISOString=function(){return this.toDate().toISOString()},c.toString=function(){return this.toDate().toUTCString()};var y=c.toDate;c.toDate=function(g){return g==="s"&&this.$offset?l(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():y.call(this)};var f=c.diff;c.diff=function(g,w,b){if(g&&this.$u===g.$u)return f.call(this,g,w,b);var U=this.local(),S=l(g).local();return f.call(U,S,w,b)}}}))})(Ht)),Ht.exports}var Zo=Jo();const Xo=jt(Zo);var Ft={exports:{}},Ro=Ft.exports,wa;function er(){return wa||(wa=1,(function(e,n){(function(a,s){e.exports=s()})(Ro,(function(){var a={year:0,month:1,day:2,hour:3,minute:4,second:5},s={};return function(o,r,i){var l,c=function(m,y,f){f===void 0&&(f={});var g=new Date(m),w=(function(b,U){U===void 0&&(U={});var S=U.timeZoneName||"short",M=b+"|"+S,x=s[M];return x||(x=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:b,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:S}),s[M]=x),x})(y,f);return w.formatToParts(g)},h=function(m,y){for(var f=c(m,y),g=[],w=0;w<f.length;w+=1){var b=f[w],U=b.type,S=b.value,M=a[U];M>=0&&(g[M]=parseInt(S,10))}var x=g[3],I=x===24?0:x,P=g[0]+"-"+g[1]+"-"+g[2]+" "+I+":"+g[4]+":"+g[5]+":000",$=+m;return(i.utc(P).valueOf()-($-=$%1e3))/6e4},d=r.prototype;d.tz=function(m,y){m===void 0&&(m=l);var f,g=this.utcOffset(),w=this.toDate(),b=w.toLocaleString("en-US",{timeZone:m}),U=Math.round((w-new Date(b))/1e3/60),S=15*-Math.round(w.getTimezoneOffset()/15)-U;if(!Number(S))f=this.utcOffset(0,y);else if(f=i(b,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(S,!0),y){var M=f.utcOffset();f=f.add(g-M,"minute")}return f.$x.$timezone=m,f},d.offsetName=function(m){var y=this.$x.$timezone||i.tz.guess(),f=c(this.valueOf(),y,{timeZoneName:m}).find((function(g){return g.type.toLowerCase()==="timezonename"}));return f&&f.value};var u=d.startOf;d.startOf=function(m,y){if(!this.$x||!this.$x.$timezone)return u.call(this,m,y);var f=i(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return u.call(f,m,y).tz(this.$x.$timezone,!0)},i.tz=function(m,y,f){var g=f&&y,w=f||y||l,b=h(+i(),w);if(typeof m!="string")return i(m).tz(w);var U=(function(I,P,$){var z=I-60*P*1e3,O=h(z,$);if(P===O)return[z,P];var q=h(z-=60*(O-P)*1e3,$);return O===q?[z,O]:[I-60*Math.min(O,q)*1e3,Math.max(O,q)]})(i.utc(m,g).valueOf(),b,w),S=U[0],M=U[1],x=i(S).utcOffset(M);return x.$x.$timezone=w,x},i.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},i.tz.setDefault=function(m){l=m}}}))})(Ft)),Ft.exports}var tr=er();const nr=jt(tr);let kn={PUBLIC_API_HOST:"https://dev-saas.cms-medios.com",PUBLIC_API_FRONT:"https://dev-lahora.cms-medios.com",PUBLIC_API_PATH:void 0,PUBLIC_API_PATH_VERSION:void 0,PUBLIC_X_SECURITY_TOKEN:"wj5oeACJStV3exBvodMa",PUBLIC_PUBLICATION_ID:"35",PUBLIC_TAG_TYPE:"27",PUBLIC_ENV:"local",PUBLIC_LNG:"en",PUBLIC_SERVICE_PREFIX:"false",PUBLIC_IS_SUB_PUBLICATION:void 0,PUBLIC_USERNAME_OFFLINE:"previewreactsaas",PUBLIC_PASSWORD_OFFLINE:"Y35VhZGkFtwu",PUBLIC_IS_OFFLINE:"false",PUBLIC_OFFLINE_SITE:"formula",PUBLIC_WP_API_HOST:void 0,PUBLIC_X_SECURITY_WAF_TOKEN:"false",DEPLOY_BUCKET:"false",PUBLIC_ASSETS_URL:"false",PUBLIC_BUILD_ID:"123456789"};function ar(e={}){kn={...kn,...e}}function J(){return kn}ue.extend(Xo),ue.extend(nr),ue.extend(Vo);const Vt="America/Mexico_City",{PUBLIC_LNG:sr}=J(),gt=sr==="en"?"en":"es",Ce=e=>ue.tz(e,Vt).locale(gt).format("DD MMMM YYYY"),En=e=>ue.tz(e,Vt).locale(gt).format(gt==="en"?"MMMM DD YYYY [•] HH:mm [hs]":"DD [de] MMMM YYYY [•] HH:mm [hs]"),ya=e=>ue.tz(e,Vt).locale(gt).format("MM/DD/YYYY [•] HH:mm [HS]"),or=e=>ue.tz(e,Vt).locale(gt).format("dddd DD [de] MMMM YYYY"),me=(e,n=136)=>e&&e.length>n?`${e.substring(0,n)}...`:e;function Ca(e){return e&&e.status==="fulfilled"?e.value.data:null}function ba(e){return e&&e.status==="fulfilled"?e.value:null}const Re=(e,n,a)=>({authors:[],social:{description:"",images:{facebook:"",twitter:""},title:""},info:{date:{...e?.info.date,lastpublish:0,firstpublish:0,date:""},link:e?.info.link},preview:{sizes:e?.main.image.sizes,description:e?.main.image.description},config:{showtime:n,showsubtitle:a},main:{title:{article:e?.main.title,home:e?.main.title,seo:e?.main.title,section:e?.main.title},subtitle:{rendered:e?.main.description,striped:e?.main.description},tags:[]}});function rr(e){const n=[],a=e.match(/<div[^>]*class=["'][^"']*ck-related-news[^"']*["'][^>]*>[\s\S]*?<\/div>/gi);if(!a)return n;for(const s of a){const o=[],r=s.match(/data-src=["']([^"']+)["']/gi);if(r)for(const i of r){const l=i.replace(/data-src=["']([^"']+)["']/,"$1");o.push(l)}n.push(o)}return n}const pt=()=>{const{PUBLIC_ENV:e,PUBLIC_API_HOST:n,PUBLIC_ASSETS_URL:a}=J();return e=="local"?n:a!=="false"&&a!=="false"?a:""},va=()=>{const{PUBLIC_ENV:e,PUBLIC_API_FRONT:n}=J();return e==="local"?n:""},_a=(e,n)=>{if(!e)return{};const{PUBLIC_ASSETS_URL:a,PUBLIC_API_FRONT:s}=J(),o=In(e.keywords)??"",r=e?.preview?.sizes?e?.preview?.sizes[0]?.url:"",i=(a!=="false"?a:s)??"";return{title:(e?.main?.title?.seo??e?.main?.title?.article)+" | "+n.name,robots:"index, follow, max-image-preview:large",alternates:{types:{"application/rss+xml":(n.siteUrl??"")+"/rss/feed.xml"},canonical:e?.info?.link?.canonical},description:e?.main?.subtitle?.striped??"",news_keywords:o,keywords:o,openGraph:{title:e?.social?.title??e?.main?.title?.article,url:e?.info?.link?.canonical,type:"article",description:e?.social?.description??e?.main?.subtitle?.striped??"",images:[{url:i+(e?.social?.images?.facebook??r),width:n.landscapeLogo.width,height:n.landscapeLogo.height}],siteName:n.name.toLocaleUpperCase()},twitter:{title:e?.main?.title?.article,card:"summary_large_image",site:n.siteUrl,description:e?.main?.subtitle?.striped??"",images:[{url:i+(e?.social?.images?.twitter??r),width:n.twitterSummaryCard.width,height:n.twitterSummaryCard.height}]}}},In=e=>!e||!e?.tags||e?.tags?.length===0?"":e?.tags?.map(n=>n.name).join(", ").replaceAll('"',"'").replaceAll("`","'"),Na=e=>{const n=e?.match(/^\/(?:[^/]+\/)?([^/]+)\/([^/]+\.html)$/);return n?{slug:n[1]??"",path:n[2]??""}:{slug:"",path:""}},Sa=e=>e.replaceAll("/","").replaceAll("_","").replace(".html",""),ir={description:{attr:"name",value:"description"},robots:{attr:"name",value:"robots"},keywords:{attr:"name",value:"keywords"},news_keywords:{attr:"name",value:"news_keywords"},"openGraph.title":{attr:"property",value:"og:title"},"openGraph.description":{attr:"property",value:"og:description"},"openGraph.type":{attr:"property",value:"og:type"},"openGraph.url":{attr:"property",value:"og:url"},"openGraph.siteName":{attr:"property",value:"og:site_name"},"twitter.card":{attr:"name",value:"twitter:card"},"twitter.title":{attr:"name",value:"twitter:title"},"twitter.description":{attr:"name",value:"twitter:description"},"twitter.site":{attr:"name",value:"twitter:site"},"twitter.creator":{attr:"name",value:"twitter:creator"}},ka=e=>{const n=[];let a=0;const s=i=>n.push(i);return e.title&&typeof e.title=="string"&&s(t.jsx("title",{children:e.title},`title-${a++}`)),Object.entries(ir).forEach(([i,l])=>{const c=i.split(".").reduce((h,d)=>h?.[d],e);c&&s(t.jsx("meta",{[l.attr]:l.value,content:String(c)},`meta-${a++}`))}),(e.openGraph?.images?Array.isArray(e.openGraph.images)?e.openGraph.images:[e.openGraph.images]:[]).forEach(i=>{i&&(typeof i=="string"?s(t.jsx("meta",{property:"og:image",content:i},`og-img-${a++}`)):(i.url&&s(t.jsx("meta",{property:"og:image",content:i.url},`og-img-${a++}`)),i.width&&s(t.jsx("meta",{property:"og:image:width",content:String(i.width)},`og-img-w-${a++}`)),i.height&&s(t.jsx("meta",{property:"og:image:height",content:String(i.height)},`og-img-h-${a++}`))))}),(e.twitter?.images?Array.isArray(e.twitter.images)?e.twitter.images:[e.twitter.images]:[]).forEach(i=>{const l=typeof i=="string"?i:i.url;l&&s(t.jsx("meta",{name:"twitter:image",content:l},`tw-img-${a++}`))}),e.alternates?.canonical&&s(t.jsx("link",{rel:"canonical",href:String(e.alternates.canonical)},`link-${a++}`)),e.manifest&&s(t.jsx("link",{rel:"manifest",href:String(e.manifest)},`link-${a++}`)),e.alternates?.types&&Object.entries(e.alternates.types).forEach(([i,l])=>{typeof l=="string"&&s(t.jsx("link",{rel:"alternate",type:i,href:l},`alt-${a++}`))}),e.icons&&[...e.icons?.icon??[],...e.icons?.other??[]].forEach(l=>{l&&s(typeof l=="string"?t.jsx("link",{rel:"icon",href:l},`icon-${a++}`):t.jsx("link",{rel:l.rel||"icon",href:l.url,...l.type&&{type:l.type},...l.sizes&&{sizes:l.sizes}},`icon-${a++}`))}),e.other&&Object.entries(e.other).forEach(([i,l])=>{l&&s(t.jsx("meta",{name:i,content:String(l)},`other-${a++}`))}),n},te=async e=>`${pt()}${e}`,Wt=(e,n)=>{const a=e||"";return n?a.replaceAll("[section_replace]",n["[section_replace]"]??"").replaceAll("[tag_replace]",n["[tag_replace]"]??"").replaceAll("[url_replace]",n["[url_replace]"]??"").replaceAll("[author_replace]",n["[author_replace]"]??"")||"":a||""},Un=e=>{const n=e.banners.find(r=>r.key===e.name);if(!n||!n.show)return null;const a=Wt(n.value||"",e.replaces),s=/<script([^>]*)>([\s\S]*?)<\/script\s*>/gi,o=[...a.matchAll(s)];return t.jsx(t.Fragment,{children:o.map((r,i)=>{const l=r[1]||"",c=r[2]?.trim()||"",h=l.match(/src=["']([^"']+)["']/i);if(h){const d=h[1];return t.jsx("script",{src:d,async:!0},i)}else return t.jsx("script",{id:e.name,dangerouslySetInnerHTML:{__html:c}},i)})})},Ea=e=>{const n=e.banners.find(o=>o.key===e.name);if(!n||!n.show)return null;const s=Wt(n.value||"",e.replaces).split(/(<script[\s\S]*?<\/script\s*>)/gi);return t.jsx(t.Fragment,{children:s.map((o,r)=>{const i=o.match(/<script([^>]*)>([\s\S]*?)<\/script\s*>/i);if(i){const l=i[1]||"",c=i[2]?.trim()||"",h=l.match(/src=["']([^"']+)["']/i);if(h){const d=h[1];return t.jsx("script",{src:d,async:!0},r)}else return t.jsx("script",{id:e.name,dangerouslySetInnerHTML:{__html:c}},r)}else if(o.trim())return t.jsx("div",{dangerouslySetInnerHTML:{__html:o}},r);return null})})},At=(e,n,a)=>{let s=e.siteUrl;return n.forEach((o,r)=>{r>0&&(s+=`/${o}`)}),`${s}/page/${a+1}`},wt=(e,n,a)=>{let s=e.siteUrl;return n.forEach((o,r)=>{r>0&&(s+=`/${o}`)}),`${s}/page/${a-1}`};function lr(e){const n=e.length;return n>1&&e.charCodeAt(n-1)===47?e.slice(0,n-1):e}const Ia=()=>{const{PUBLIC_ASSETS_URL:e}=J();return e&&e!=="false"&&t.jsx("link",{rel:"preconnect",href:e,crossOrigin:"anonymous"})},{PUBLIC_ASSETS_URL:Tn}=J(),cr=Tn&&Tn!=="false"?Tn:"",xn=({images:e})=>t.jsx(t.Fragment,{children:e.map((n,a)=>n.href!==""&&t.jsx("link",{rel:"preload",href:cr+n.href,media:n.media??"",as:"image",fetchPriority:n.fetchPriority??"high"},a))}),Ua=(e,n)=>{if(!e)return{};const{PUBLIC_API_FRONT:a}=J();return{title:e?.main?.title+" | "+n.name,robots:"index, follow, max-image-preview:large",alternates:{canonical:n.siteUrl+e?.info?.link?.url},description:e.main.description??"",news_keywords:e.main.tags,keywords:e.main.tags,openGraph:{title:e.main.title,url:e?.info?.link?.canonical,type:"article",description:e.main.description??"",images:[{url:(a??"")+e?.main.image.sizes[0]?.url,width:n.landscapeLogo.width,height:n.landscapeLogo.height}],siteName:n.name.toLocaleUpperCase()},twitter:{title:e?.main?.title,card:"summary_large_image",site:n.siteUrl,description:e?.main.description??"",images:[{url:(a??"")+e?.main.image.sizes[0]?.url,width:n.twitterSummaryCard.width,height:n.twitterSummaryCard.height}]}}},dr=e=>{let n="";if(e.params.news.match(/.*t[0-9]*.html/g)){const a=e.params.news.split("-"),s=a[a.length-1]??"",o=s.substring(1,9),r=s.substring(9,13);n=`/listas/${ue(o).format("YYYY/MM/DD")}/lista_${r}.html`}else if(e.params.news.match(/.*lb[0-9]*.html/g)){const a=e.params.news.split("-"),s=a[a.length-1]??"",o=s.substring(2,10),r=s.substring(10,14);n=`/liveblog/${ue(o).format("YYYY/MM/DD")}/liveblog_${r}.html`}else{const s=e.params.news.replace(/\.html$/g,"").split("-");Array.isArray(s)&&(n=`/contenidos/${ue(s[s.length-2]).format("YYYY/MM/DD")}/noticia_${s[s.length-1]}.html`)}return e.config.servicePrefix+n};function hr(e){const n=e.split("-"),a=n[n.length-1]?.split("."),s=a&&a[0]?a[0]:"",o=s.substring(0,2),r=s.substring(2,10),i=s.substring(10);return{path:{vy:c=>`/videos/video-youtube/${ue(r).format("YYYY/MM/DD")}/videoYouTube_${c}.lnk`,ve:c=>`/videos/video-embedded/${ue(r).format("YYYY/MM/DD")}/videoEmbedded_${c}.lnk`,vf:c=>`/videos/video-flash/${ue(r).format("YYYY/MM/DD")}/${n[0]}.${c}`}[o]?.(i)??"",op:o}}const Ta={prerender:[{where:{and:[{href_matches:"/*(-|-t|-lb)([0-9]{8})(-|)([0-9]{4,6}).html"},{not:{selector_matches:"[rel~=nofollow]"}}]},eagerness:"immediate"}]},xa={prerender:[{where:{and:[{href_matches:"/*(-|-t|-lb)([0-9]{8})(-|)([0-9]{4,6}).html"},{not:{selector_matches:"[rel~=nofollow]"}}]},eagerness:"immediate"},{eagerness:"immediate",urls:["/"]}]},ur={Home:Ta,Common:xa},qa=({active:e,type:n,customSpeculation:a})=>e&&t.jsx("script",{type:"speculationrules",dangerouslySetInnerHTML:{__html:JSON.stringify(a??ur[n])}}),Yt=async(e,n,a)=>{if(!a)return;const s=n==="/news-breadcrumb"?{...e,prefixtag:"/tema"}:e;return a.get(`/schemas${n}`,{params:s}).catch(o=>{console.log(`[/schemas${n}] Error: ${o.message}`)})},mr={autor:"autor",seccion:"seccion",tema:"claves","ultimas-noticias":"seccion"},Ba=async({config:e,axiosApi:n,pathname:a,ROUTE:s})=>{let o=[];const r=a==="/"||a==="/index.html"?void 0:ja(Ga[s]({pathname:a,config:e})),i=mr[s]??void 0,l={newstype:e.newsType,publication:"35",...r&&i?{query:`${i}:('${r}')`}:{}};try{const c=await Yt(l,"/news-list-summary",n);c?.data?.data?o=c.data.data:console.warn("getSchemas responded but did not contain expected data:",c)}catch(c){console.log("Error fetching schemas:",c)}return Object.keys(o).length>0&&t.jsx("script",{id:"webSiteItemListSchema",type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(o)}})};function La(e){const{PUBLIC_ASSETS_URL:n}=J();if(!n||n==="false")return e;const a=n.replace(/\/+$/,""),s=/https?:\/\/[^/\s]+\/(arte|__export)\//g;return e.replace(s,(o,r)=>`${a}/${r}/`)}const Da=async({realPath:e,config:n,BASE_URL:a,axiosApi:s})=>{let o=[];try{const r=n.socialBlockLogo?.url?new URL(n.socialBlockLogo.url).pathname:void 0,i=n.landscapeLogo?.url?new URL(n.landscapeLogo.url).pathname:void 0,l={path:e,image:i,logo:r,url:n.siteUrl,name:n.name,logow:n.socialBlockLogo?.width,logoh:n.socialBlockLogo?.height,authorurl:a+"/autor/"},c=e.split("/")[1],h=c=="liveblogs"||c=="liveblog"?["/news","/news-breadcrumb","/news-liveblog"]:["/news","/news-breadcrumb"];o=(await Promise.all(h.map(async u=>await Yt(l,u,s)))).map(u=>u?.data?.data??[])}catch(r){console.log("Error fetching schemas:",r)}return o.map((r,i)=>t.jsx("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:La(JSON.stringify(r))}},i))},Ma=({config:e,socials:n})=>{const a={"@context":"https://schema.org","@type":"NewsMediaOrganization",name:e.name,description:e.description,email:e.email,url:e.siteUrl,logo:e.squareLogo.url,sameAs:Object.keys(n).filter(s=>n[s]?.show).map(s=>n[s]?.url)};return(!e.description||e.description==="")&&delete a.description,t.jsx("script",{id:"WebsiteOrgListSchema",type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(a)}})},Pa=({config:e})=>{const n={"@context":"https://schema.org","@type":"WebSite",name:e.name,url:e.siteUrl,potentialAction:{"@type":"SearchAction",target:e.siteUrl+"/buscar?query={search_term_string}","query-input":"required name=search_term_string"}};return t.jsx("script",{id:"WebsiteListSchema",type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(n)}})},Oa=async({realPath:e,config:n,axiosApi:a})=>{try{const s={path:e,image:n.landscapeLogo?.url?new URL(n.landscapeLogo.url).pathname:void 0,logo:n.socialBlockLogo?.url?new URL(n.socialBlockLogo.url).pathname:void 0,url:n.siteUrl,name:n.name,logow:n.socialBlockLogo?.width,logoh:n.socialBlockLogo?.height,authorurl:`${n.siteUrl}/autor/`},r=(await Yt(s,"/videos",a))?.data.data;return r?t.jsx("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:La(JSON.stringify(r))}}):void 0}catch(s){return console.error("Error fetching video schemas:",s),null}},Qa=({config:e})=>{const n=`@font-face {
14
14
  font-family: '${e.fontName}';
15
15
  font-style: normal;
16
16
  font-weight: ${e.fontWeight};
@@ -46,7 +46,7 @@ j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
46
46
  c0.3-0.1,1.2-0.5,1.5-1.6c0.4-1.6,0.4-5.3,0.4-5.3c0-0.1,0.2-3.7-0.2-5.4c-0.1-0.4-0.5-1.3-1.6-1.6C22.5,7.7,17.1,7.6,15.1,7.6zM12.8,19.2c-0.1,0-0.3,0-0.4-0.1c-0.2-0.1-0.4-0.4-0.4-0.7v-6.9c0-0.3,0.1-0.5,0.4-0.6c0.2-0.1,0.5-0.1,0.7,0l5.9,3.4
47
47
  c0.2,0.1,0.4,0.4,0.4,0.6c0,0.3-0.1,0.5-0.4,0.7l-5.9,3.5C13.1,19.1,12.9,19.2,12.8,19.2z M13.6,12.9v4.3l3.7-2.2L13.6,12.9z`}),t.jsx("path",{fill:"currentColor",d:"M12.8,18.6v-6.9l5.9,3.4L12.8,18.6z"})]}),js=["telegram"],cn={facebook:e=>t.jsx(Hn,{...e}),instagram:e=>t.jsx(Fn,{...e}),whatsapp:e=>t.jsx(ml,{...e}),tiktok:e=>t.jsx(ul,{...e}),youtube:e=>t.jsx(fl,{...e}),x:e=>t.jsx(kt,{...e}),gnews:e=>t.jsx(cl,{...e}),podcast:e=>t.jsx(dl,{...e}),telegram:e=>t.jsx(hl,{...e})},gl=e=>{const{freeZone:n,socials:a,menu:s,customBlock:o}=e;return t.jsxs("footer",{className:oe.content,children:[t.jsxs("section",{className:oe.brandContent,children:[t.jsx(T,{href:"/","aria-label":"Ir a la home",children:t.jsx("span",{className:oe.logoStyled,children:e.logo})}),t.jsx("div",{className:oe.socialMedia,children:Object.keys(a).map(r=>a[r]?.show&&t.jsx("a",{target:"_blank",rel:"noreferrer","aria-label":a[r].title+" link",className:oe.linkSocialNetwoks,href:a[r].url,children:cn[r]({className:`${js.includes(r)?oe.socialNetworkIcon_stroke:oe.socialNetworkIcon} ${r==="instagram"?oe.socialInstagram:""}`})},r))})]}),t.jsxs("section",{className:oe.sectionContent,children:[t.jsx("div",{className:oe.section,children:s.filter(r=>!r.subitem).map((r,i)=>t.jsx(T,{href:r.link?r.link:void 0,target:r.target,className:oe.menuItem,"aria-label":r.description,children:r.description},i))}),t.jsx("div",{className:oe.section,children:n&&n.map((r,i)=>t.jsx(T,{href:r.link?r?.link:void 0,target:r.target,className:oe.otherItems,children:r.description},i))})]}),o&&t.jsx(t.Fragment,{children:o}),t.jsxs("section",{className:oe.copyrigth,children:[t.jsx("p",{className:oe.copyrigthText,children:e.copyrigth}),t.jsx(T,{"aria-label":"Bluestack link",href:"https://www.bluestack.la",title:"Plataforma BLUESTACK CMS (antes CMS MEDIOS)",target:"_blank",rel:"noreferrer",children:t.jsx(ll,{})})]})]})},re={content:"_content_1ixal_1",imageContent:"_imageContent_1ixal_9",imageStyled:"_imageStyled_1ixal_18",contentIconStyled:"_contentIconStyled_1ixal_19",avatarContent:"_avatarContent_1ixal_35",journalistSection:"_journalistSection_1ixal_43",journalistInfo:"_journalistInfo_1ixal_50",journalistInfoLink:"_journalistInfoLink_1ixal_51",socialNetworkSection:"_socialNetworkSection_1ixal_83",avatarStyled:"_avatarStyled_1ixal_95",article:"_article_1ixal_100",socialButton:"_socialButton_1ixal_104",facebookStyled:"_facebookStyled_1ixal_120",emailStyled:"_emailStyled_1ixal_124",xStyled:"_xStyled_1ixal_128",linkedinStyled:"_linkedinStyled_1ixal_132",whatsappStyled:"_whatsappStyled_1ixal_136",whatsappLink:"_whatsappLink_1ixal_140",clipboardButton:"_clipboardButton_1ixal_156",googleProfileButton:"_googleProfileButton_1ixal_192"},pl=e=>t.jsx("svg",{width:"13",height:"23",viewBox:"0 0 13 23",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:t.jsx("path",{d:"M11.7376 0H8.80322C5.52359 0 3.36594 2.11766 3.36594 5.50591V8.0471H0.431531C0.172612 8.0471 0 8.21652 0 8.47064V12.113C0 12.3671 0.172612 12.5365 0.431531 12.5365H3.36594V21.7695C3.36594 22.0237 3.53855 22.1931 3.79747 22.1931H7.68125C7.94016 22.1931 8.11278 22.0237 8.11278 21.7695V12.5365H11.565C11.8239 12.5365 11.9966 12.3671 11.9966 12.113V8.47064C11.9966 8.38593 11.9102 8.21652 11.8239 8.13181C11.7376 8.0471 11.6513 7.9624 11.4787 7.9624H8.02647V5.84474C8.02647 4.82826 8.28539 4.32002 9.66629 4.32002H11.6513C11.9102 4.32002 12.0829 4.15061 12.0829 3.89649V0.508238C12.1692 0.169413 11.9966 0 11.7376 0Z",fill:"black"})}),dn=e=>t.jsx("svg",{version:"1.1",baseProfile:"tiny",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 30 30",overflow:"visible",xmlSpace:"preserve",...e,children:t.jsx("path",{fill:"currentColor",strokeWidth:"1.2656",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",d:`M10.2,8.3c0,1.1-0.9,2.1-2.2,2.1l0,0c-1.3,0-2.1-0.9-2.1-2.1c0-1.1,0.9-2.1,2.2-2.1C9.4,6.3,10.2,7.1,10.2,8.3z M6.1,23.7H10V11.9
48
48
  H6.1V23.7z M19.6,11.7c-2.1,0-3.5,2-3.5,2v-1.7h-3.9v11.8H16v-6.6c0-0.3,0-0.7,0.1-0.9c0.3-0.7,0.9-1.4,2-1.4c1.4,0,2,1.1,2,2.7v6.3
49
- h3.9V17C24.1,13.3,22.2,11.7,19.6,11.7z`})}),Al=e=>t.jsxs("svg",{width:"25",height:"21",viewBox:"0 0 25 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[t.jsx("path",{d:"M21.6424 1H3.33879C2.11855 1 1 2.01687 1 3.33879V17.0665C1 18.2867 2.01687 19.4053 3.33879 19.4053H21.6424C22.8626 19.4053 23.9812 18.3884 23.9812 17.0665V3.33879C23.9812 2.01687 22.8626 1 21.6424 1Z",stroke:"black",strokeWidth:"1.6"}),t.jsx("path",{d:"M21.6425 5.57591L12.5923 11.2704L3.33887 5.57591V3.33881L12.5923 8.93157L21.6425 3.33881V5.57591Z",fill:"black"})]}),wl=e=>t.jsxs("svg",{width:"24",height:"19",viewBox:"0 0 24 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[t.jsx("path",{d:"M20.8752 0.195801H2.96092C1.76664 0.195801 0.671875 1.19104 0.671875 2.48485V15.9206C0.671875 17.1149 1.66711 18.2096 2.96092 18.2096H20.8752C22.0695 18.2096 23.1643 17.2144 23.1643 15.9206V2.48485C23.1643 1.19104 22.0695 0.195801 20.8752 0.195801Z",fill:"black"}),t.jsx("path",{d:"M20.8752 4.67439L12.0176 10.2477L2.96094 4.67439V2.48486L12.0176 7.95868L20.8752 2.48486V4.67439Z",fill:"white"})]}),yl=e=>t.jsx("svg",{width:"13",height:"22",viewBox:"0 0 13 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{className:e.className,d:"M11.6659 1H8.99942C6.01924 1 4.0586 2.9084 4.0586 5.96183V8.25191H1.39213C1.15685 8.25191 1 8.40458 1 8.63359V11.916C1 12.145 1.15685 12.2977 1.39213 12.2977H4.0586V20.6183C4.0586 20.8473 4.21545 21 4.45073 21H7.97989C8.21516 21 8.37202 20.8473 8.37202 20.6183V12.2977H11.509C11.7443 12.2977 11.9012 12.145 11.9012 11.916V8.63359C11.9012 8.55725 11.8227 8.40458 11.7443 8.32824C11.6659 8.25191 11.5875 8.17557 11.4306 8.17557H8.29359V6.26718C8.29359 5.35115 8.52887 4.89313 9.78368 4.89313H11.5875C11.8227 4.89313 11.9796 4.74046 11.9796 4.51145V1.45802C12.058 1.15267 11.9012 1 11.6659 1Z",stroke:"black",strokeWidth:"1.6"})}),Cl=e=>t.jsx("svg",{width:"26",height:"25",viewBox:"0 0 22 23",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:t.jsx("path",{d:"M10 5C9.45 5 9 5.45 9 6V9H6C5.45 9 5 9.45 5 10C5 10.55 5.45 11 6 11H9V14C9 14.55 9.45 15 10 15C10.55 15 11 14.55 11 14V11H14C14.55 11 15 10.55 15 10C15 9.45 14.55 9 14 9H11V6C11 5.45 10.55 5 10 5ZM10 0C4.48 0 0 4.48 0 10C0 15.52 4.48 20 10 20C15.52 20 20 15.52 20 10C20 4.48 15.52 0 10 0ZM10 18C5.59 18 2 14.41 2 10C2 5.59 5.59 2 10 2C14.41 2 18 5.59 18 10C18 14.41 14.41 18 10 18Z",fill:"black"})}),bl={FaceBook:{url:e=>`https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(e)}`,icon:{outline:e=>t.jsx(yl,{className:e}),solid:e=>t.jsx(pl,{className:e})}},X:{url:e=>`https://twitter.com/intent/tweet?url=${encodeURIComponent(e)}`,icon:{outline:e=>t.jsx(kt,{className:e}),solid:e=>t.jsx(kt,{className:e})}},Whatsapp:{url:e=>`https://wa.me/?text=${encodeURIComponent(e)}`,icon:{outline:e=>t.jsx(qs,{className:e}),solid:e=>t.jsx(xs,{className:e})}},Email:{url:e=>`mailto:?body=${encodeURIComponent(e)}`,icon:{outline:e=>t.jsx(Al,{className:e}),solid:e=>t.jsx(wl,{className:e})}},LinkedIn:{url:e=>`https://www.linkedin.com/sharing/share-offsite/?url=${encodeURIComponent(e)}`,icon:{outline:e=>t.jsx(dn,{className:e}),solid:e=>t.jsx(dn,{className:e})}}};function Gs({noteShare:e}){const n=e&&e.url||(typeof window<"u"?window.location.href:"https://example.com");return e?t.jsxs("div",{className:re.socialNetworkSection,children:[e.options?.map(a=>{const s=bl[a];if(!s)return null;const o=e.variant==="outline"?s.icon.outline:s.icon.solid,r=s.url(n);return t.jsx(T,{href:r,target:"_blank",rel:"noopener noreferrer","aria-label":`Compartir en ${a}`,className:`${re.socialButton} ${re[`${a.toLowerCase()}Button`]??""} ${re[`${a.toLowerCase()}Styled`]}`,children:o("")},a)}),t.jsx("button",{type:"button","data-text":"Link copiado","data-active":"false","aria-label":"copy",className:[re.clipboardButton,"clipbtn-id"].join(" "),children:t.jsx(Bs,{})}),t.jsx("button",{type:"button","aria-label":"share",className:[re.clipboardButton,"sharebtn-id"].join(" "),children:t.jsx(Cl,{})})]}):null}const xe={content:"_content_r1co8_1",videoContent:"_videoContent_r1co8_20",articleSection:"_articleSection_r1co8_27",title:"_title_r1co8_42",article:"_article_r1co8_27",correspondent:"_correspondent_r1co8_75",iframeStyled:"_iframeStyled_r1co8_84",contentFrame:"_contentFrame_r1co8_94"},vl=e=>{const n=()=>e?.video.main.author?`${e?.video.main.author} - ${Ce(e.video.info.date.created)}`:e?.video.main.author;return t.jsx("div",{className:xe.content,children:t.jsx(at,{children:t.jsxs("div",{className:xe.videoContent,children:[t.jsx("p",{className:xe.title,children:e.video.main.title}),e.type==="vy"&&t.jsx("iframe",{className:xe.iframeStyled,src:`https://www.youtube.com/embed/${e.video.main.code}`,frameBorder:"0",allowFullScreen:!0}),e.type==="vf"&&t.jsx("iframe",{className:xe.iframeStyled,src:e.video.main.code,frameBorder:"0",allowFullScreen:!0}),e.type==="ve"&&t.jsx("div",{className:xe.contentFrame,dangerouslySetInnerHTML:{__html:e.video.main.code}}),t.jsxs("div",{className:xe.articleSection,children:[t.jsx("p",{className:xe.article,children:me(e.video.main.description)}),t.jsx("p",{className:xe.correspondent,children:n()})]})]})})})},Vn={content:"_content_wxhkd_1",linkStyled:"_linkStyled_wxhkd_9"},Et=e=>{const{currentPage:n,showNext:a,maxPages:s,pathname:o,query:r}=e,i=(l,c,h)=>{let d="";const u=c.split("/");return u.indexOf("page")!==-1&&u.splice(d.indexOf("page")-1,u.length-1),u.forEach((m,y)=>{y!==0&&(d+=`/${m}`)}),l==="next"?d+=`/page/${n+1}${h?`?query=${h}`:""}`:d+=`/page/${n-1}${h?`?query=${h}`:""}`};return(n>1||a&&n<s)&&t.jsxs("section",{className:Vn.content,children:[n>1&&t.jsx(T,{className:Vn.linkStyled,href:i("prev",o||"",r||""),children:e.texts.prevButtonText??"Anterior"}),a&&n<s&&t.jsx(T,{className:Vn.linkStyled,href:i("next",o||"",r||""),children:e.texts.nextButtonText??"Siguiente"})]})},hn={content:"_content_zal5g_1",contentGrid:"_contentGrid_zal5g_8",contentGrid4:"_contentGrid4_zal5g_17",contentGrid3:"_contentGrid3_zal5g_21"},un=e=>{const{grid:n=3}=e;return t.jsxs("section",{className:`${hn.content}`,children:[t.jsx("div",{className:`${hn.contentGrid} ${e.className?e.className:""} ${n===3?hn.contentGrid3:hn.contentGrid4} news-content`,children:e.children}),t.jsx(t.Fragment,{children:e.paginatorComponent})]})},It={content:"_content_15x47_1",newsDescription:"_newsDescription_15x47_15",image:"_image_15x47_41"},Ee=e=>{const{main:n,authors:a,info:s,preview:o,share:r,isVideo:i,config:l,overImage:c="default",isTitle:h,priorityHigh:d=!1,isLarge:u,paths:m}=e;return t.jsxs("section",{className:It.content,style:{...e.customSectionCardStyles},children:[t.jsx(T,{"aria-label":e.main?.title?.section,className:It.image,title:n?.title?.section,href:s?.link?.url,target:s?.link?.target,children:t.jsx(pe,{preview:o,isVideo:i,isLarge:u,priorityHigh:d})}),t.jsx("div",{className:It.newsDescription,children:t.jsx(ot,{main:n,authors:a,info:s,preview:o,share:r,config:l,overImage:c,isTitle:h,paths:m})})]})},lt={content:"_content_gwmse_1",boxInformation:"_boxInformation_gwmse_12",titleGradient:"_titleGradient_gwmse_30",sectionDescription:"_sectionDescription_gwmse_58",articule:"_articule_gwmse_83",linkStyled:"_linkStyled_gwmse_115"},Ut=e=>{const{isVideo:n,info:a,main:s,overImage:o="default",titleGradient:r=!1}=e;return t.jsxs("section",{className:lt.content,children:[t.jsx(T,{title:s?.title?.section,href:a.link.url,target:a.link.target,children:t.jsx(pe,{preview:e.preview,isVideo:n})}),t.jsxs("div",{className:[lt.boxInformation,r?lt.titleGradient:""].join(" "),style:{width:o!=="default"?"90%":"",left:o==="left"?0:o==="right"?"calc(10% - 1px)":"auto",top:o!=="default"?"-1rem":""},children:[e?.info?.section&&t.jsx(T,{className:[lt.sectionDescription].join(" "),href:e?.info?.section?.url,children:e?.info?.section?.name}),t.jsx("h2",{className:lt.articule,children:t.jsx(T,{className:lt.linkStyled,href:e?.info?.link?.url,target:e?.info?.link?.target,children:me(e.main?.title?.section,o!=="default"?60:75)})})]})]})},$s={content:"_content_kro73_1",contentLayout:"_contentLayout_kro73_5"},Wn=e=>t.jsx("div",{className:$s.content,children:t.jsx(at,{className:`${$s.contentLayout} ${e.className}`,children:e.children})}),ct={content:"_content_1nqra_1",before:"_before_1nqra_11",textContent:"_textContent_1nqra_22",title:"_title_1nqra_37",description:"_description_1nqra_46",linkStyled:"_linkStyled_1nqra_57"},_l=e=>{const n=e.logo;return t.jsxs("section",{className:ct.content,children:[e.backgroundImgURL&&t.jsx("img",{className:ct.before,src:e.backgroundImgURL,alt:""}),t.jsxs("div",{className:`${ct.textContent} error-text-content`,children:[t.jsx(n,{}),t.jsx("p",{className:ct.title,children:e.title}),t.jsx("p",{className:ct.description,children:e.description}),t.jsx(T,{className:ct.linkStyled,href:"/",children:e.buttonText??"Inicio"})]})]})},Tt={content:"_content_zxcog_1",contentLabel:"_contentLabel_zxcog_8",label:"_label_zxcog_13",required:"_required_zxcog_22",input:"_input_zxcog_28"},Nl=e=>t.jsxs("div",{className:Tt.content,children:[t.jsxs("div",{className:Tt.contentLabel,children:[t.jsx("label",{className:Tt.label,children:e.label}),e.required&&t.jsx("span",{className:Tt.required,children:"*"})]}),t.jsx("input",{className:Tt.input,...e})]}),xt={content:"_content_zgx5w_1",contentLabel:"_contentLabel_zgx5w_8",label:"_label_zgx5w_13",required:"_required_zgx5w_22",input:"_input_zgx5w_28"},Sl=e=>t.jsxs("div",{className:xt.content,children:[t.jsxs("div",{className:xt.contentLabel,children:[t.jsx("label",{className:xt.label,children:e.label}),e.required&&t.jsx("span",{className:xt.required,children:"*"})]}),t.jsxs("select",{className:xt.input,...e,children:[t.jsx("option",{value:"",children:"--Seleccione--"}),e.options.map((n,a)=>t.jsx("option",{value:n.value,children:n.label},a))]})]}),Yn={content:"_content_1mi9t_1",label:"_label_1mi9t_8",input:"_input_1mi9t_17"},kl=e=>t.jsxs("div",{className:Yn.content,children:[t.jsx("label",{className:Yn.label,children:e.label}),t.jsx("textarea",{className:Yn.input,...e})]}),Ge={boxInformation:"_boxInformation_achvw_1",textBox:"_textBox_achvw_30",contentBox:"_contentBox_achvw_40",liveBox:"_liveBox_achvw_50",dot:"_dot_achvw_72",sectionDescription:"_sectionDescription_achvw_97",articule:"_articule_achvw_110",description:"_description_achvw_137"},mn={content:"_content_8ehij_1",description:"_description_8ehij_23"},zs=e=>{let n="";return e.preview.description&&(n=e.preview.description),e.preview.copyright&&(n=`${n} ${e.preview.copyright}`),e.preview.photographer&&(n=`${n} ${e.preview.photographer}`),t.jsxs("div",{className:mn.content,children:[t.jsx(pe,{preview:e.preview,isLarge:!0,priorityHigh:!0}),n&&t.jsx("div",{className:mn.description,children:n})]})},Hs=e=>t.jsx(t.Fragment,{children:t.jsxs("div",{className:Ge.boxInformation,children:[t.jsx(zs,{preview:e.preview}),t.jsxs("div",{className:Ge.textBox,children:[t.jsxs("div",{className:Ge.contentBox,children:[e?.info?.section&&t.jsx(T,{className:Ge.sectionDescription,href:e?.info?.section?.url,children:e?.info?.section?.name}),t.jsxs("div",{className:Ge.liveBox,children:[t.jsx("span",{className:Ge.dot}),t.jsx("p",{children:"EN VIVO"})]})]}),t.jsx("h1",{className:Ge.articule,children:e.main?.title?.section}),e.config?.showsubtitle&&t.jsx("div",{className:Ge.description,style:{"--fontSizeSubTitle":e.fontSizeSubTitle,"--lineHeightSubTitle":e.lineHeightSubTitle},children:e.main.subtitle.striped})]})]})}),fn={content:"_content_oipiy_1",contentLine:"_contentLine_oipiy_17",contentText:"_contentText_oipiy_24",dateLink:"_dateLink_oipiy_37"},Fs=e=>t.jsx("section",{className:fn.content,children:e.itemList[0]?.list.items.map((n,a)=>t.jsxs("div",{className:fn.contentLine,children:[t.jsx(T,{className:fn.dateLink,href:`#item-${a+1}`,children:ya(n.date)}),t.jsx("div",{className:fn.contentText,children:(e.itemList[0]?.list.integrated,n.title)})]},a))}),we={content:"_content_v9pkc_1",contentInfo:"_contentInfo_v9pkc_11",imageStyled:"_imageStyled_v9pkc_19",contentIconStyled:"_contentIconStyled_v9pkc_30",name:"_name_v9pkc_54",email:"_email_v9pkc_63",description:"_description_v9pkc_79",contenSocialNetwork:"_contenSocialNetwork_v9pkc_91",socialIcon:"_socialIcon_v9pkc_101"},Vs=async e=>{const{autor:n,autorIcon:a}=e,s=a;return t.jsx("section",{className:`${we.content} ${e.className?e.className:null}`,children:t.jsxs("div",{className:we.contentInfo,children:[n.info.image?t.jsx("img",{fetchPriority:"low",loading:"lazy",alt:"",className:we.imageStyled,src:await te(n.info.image.sizes[0]?.url||"")}):t.jsx("div",{className:we.contentIconStyled,children:t.jsx(s,{})}),t.jsx("h1",{className:we.name,children:n.info.fullname}),n.addtional.USER_SHOWEMAIL&&t.jsx("p",{className:we.email,children:n.info.email}),n.addtional.USER_SHOWBIO&&t.jsx("p",{className:we.description,children:n.addtional.USER_MIBIO}),t.jsxs("div",{className:we.contenSocialNetwork,children:[n.addtional.USER_USERFB&&t.jsx("a",{href:n.addtional.USER_USERFB,target:"_blank",rel:"noreferrer",children:t.jsx(Hn,{className:we.socialIcon})}),n.addtional.USER_USERIG&&t.jsx("a",{href:n.addtional.USER_USERIG,target:"_blank",rel:"noreferrer",children:t.jsx(Fn,{className:we.socialIcon})}),n.addtional.USER_USERTWT&&t.jsx("a",{href:n.addtional.USER_USERTWT,target:"_blank",rel:"noreferrer",children:t.jsx(kt,{className:we.socialIcon})}),n.addtional.USER_USERLIN&&t.jsx("a",{href:n.addtional.USER_USERLIN,target:"_blank",rel:"noreferrer",children:t.jsx(dn,{className:we.socialIcon})})]})]})})},fe={content:"_content_1mv2w_1",contentInfo:"_contentInfo_1mv2w_13",contentAuthor:"_contentAuthor_1mv2w_26",imageStyled:"_imageStyled_1mv2w_33",contentIconStyled:"_contentIconStyled_1mv2w_42",name:"_name_1mv2w_63",email:"_email_1mv2w_71",description:"_description_1mv2w_81",contenSocialNetwork:"_contenSocialNetwork_1mv2w_92",socialIcon:"_socialIcon_1mv2w_102"},Ws=async e=>{const{autor:n,autorIcon:a}=e,s=a;return t.jsx("section",{className:fe.content,children:t.jsxs("div",{className:fe.contentInfo,children:[n.info.image?t.jsx("img",{fetchPriority:"low",loading:"lazy",className:fe.imageStyled,src:await te(n.info.image.sizes[0]?.url||"")}):t.jsx("div",{className:fe.contentIconStyled,children:t.jsx(s,{})}),t.jsxs("div",{className:fe.contentAuthor,children:[t.jsx("h1",{className:fe.name,children:n.info.fullname}),n.addtional.USER_SHOWEMAIL&&t.jsx("p",{className:fe.email,children:n.info.email}),n.addtional.USER_SHOWBIO&&t.jsx("p",{className:fe.description,children:n.addtional.USER_MIBIO}),t.jsxs("div",{className:fe.contenSocialNetwork,children:[n.addtional.USER_USERFB&&t.jsx("a",{href:n.addtional.USER_USERFB,target:"_blank",rel:"noreferrer",children:t.jsx(Hn,{className:fe.socialIcon})}),n.addtional.USER_USERIG&&t.jsx("a",{href:n.addtional.USER_USERIG,target:"_blank",rel:"noreferrer",children:t.jsx(Fn,{className:fe.socialIcon,style:{padding:"4px"}})}),n.addtional.USER_USERTWT&&t.jsx("a",{href:n.addtional.USER_USERTWT,target:"_blank",rel:"noreferrer",children:t.jsx(kt,{className:fe.socialIcon})}),n.addtional.USER_USERLIN&&t.jsx("a",{href:n.addtional.USER_USERLIN,target:"_blank",rel:"noreferrer",children:t.jsx(dn,{className:fe.socialIcon})})]})]})]})})},Ys={content:"_content_jg6i2_1",bannerSection:"_bannerSection_jg6i2_25"},Kn=e=>t.jsxs("section",{className:Ys.content,children:[e.children,t.jsxs("div",{className:Ys.bannerSection,children:[e.bannerTop,t.jsx(rn,{content:e.ranking,title:e.readestTitle,paths:e.paths,customNewsDescriptionStyles:{"--news-description-title-size-desk":"16px","--news-description-title-line-height-desk":"22px","--news-description-title-size-mobile":"16px","--news-description-title-line-height-mobile":"22px"}}),e.banner]})]}),_e={content:"_content_1jqwg_1",header:"_header_1jqwg_21",videos:"_videos_1jqwg_46",videoContent:"_videoContent_1jqwg_53",articleSection:"_articleSection_1jqwg_60",contentLayoutVideoSection:"_contentLayoutVideoSection_1jqwg_74",sectionVideoList:"_sectionVideoList_1jqwg_82",iframeStyled:"_iframeStyled_1jqwg_155",contentFrame:"_contentFrame_1jqwg_164",relatedTitle:"_relatedTitle_1jqwg_189"},Jn={content:"_content_1dj0q_1",linkImage:"_linkImage_1dj0q_12",playStyled:"_playStyled_1dj0q_19"},El=async e=>{const n={...e,main:{...e.main,title:{...e.main.title,article:me(e.main.title.article,60)}}};return e&&e.info?t.jsxs("section",{className:Jn.content,children:[t.jsx("a",{className:Jn.linkImage,target:e?.info?.link?.target,title:e?.main?.title?.section,href:e.info.link.url,children:t.jsxs("div",{style:{position:"relative"},children:[t.jsx("img",{src:await te(e.preview.sizes[0]?.url||"")}),t.jsx(rt,{className:Jn.playStyled})]})}),t.jsx("div",{children:t.jsx(ot,{...n,paths:e.paths})})]}):null},Il=e=>t.jsx("div",{className:_e.content,children:t.jsxs(at,{className:_e.contentLayoutVideoSection,children:[t.jsxs("a",{className:_e.header,href:"/",children:[t.jsx("svg",{width:"21",height:"20",viewBox:"0 0 21 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.6055 4.86193C12.8659 5.12228 12.8659 5.54439 12.6055 5.80474L8.41026 10L12.6055 14.1953C12.8659 14.4556 12.8659 14.8777 12.6055 15.1381C12.3452 15.3984 11.9231 15.3984 11.6627 15.1381L6.99604 10.4714C6.73569 10.2111 6.73569 9.78894 6.99604 9.52859L11.6627 4.86193C11.9231 4.60158 12.3452 4.60158 12.6055 4.86193Z",fill:"white"})}),"VOLVER A VIDEOS"]}),t.jsxs("div",{className:_e.videos,children:[t.jsxs("div",{className:_e.videoContent,style:e.mainVideoStyles,children:[e.type==="vy"&&t.jsx("iframe",{className:_e.iframeStyled,src:`https://www.youtube.com/embed/${e.video?.main?.code}`,frameBorder:"0",allowFullScreen:!0}),e.type==="vf"&&t.jsx("iframe",{className:_e.iframeStyled,src:e.video?.main?.code,frameBorder:"0",allowFullScreen:!0}),e.type==="ve"&&t.jsx("div",{className:_e.contentFrame,dangerouslySetInnerHTML:{__html:e.video?.main?.code}}),t.jsx("div",{className:_e.articleSection,children:t.jsx(ot,{...Re(e.video,!0,!!e.video.main.description),paths:e.paths})})]}),t.jsxs("div",{className:_e.sectionVideoList,style:e.listVideoStyles,children:[e.banner&&t.jsx(ne,{banners:e.banner.banners,name:e.banner.bannerName}),e.relatedName&&t.jsx("h2",{className:_e.relatedTitle,children:e.relatedName}),Array.isArray(e.videoList)&&e.videoList.map((n,a)=>C.createElement(El,{...Re(n,!0,!1),key:a,paths:e.paths}))]})]})]})}),qe={content:"_content_gcte1_1",titleContent:"_titleContent_gcte1_24",title:"_title_gcte1_24",startLine:"_startLine_gcte1_88",line:"_line_gcte1_93",bottomLine:"_bottomLine_gcte1_99",childrenContent:"_childrenContent_gcte1_118",readMore:"_readMore_gcte1_131"},ae=C.forwardRef((e,n)=>{const{isTitle:a=!1,isOpinion:s=!1}=e,o=a?t.jsx("h1",{className:qe.title,children:e.title}):t.jsx("h2",{className:qe.title,children:e.title});return t.jsxs("section",{className:qe.content,children:[e.title&&t.jsxs("div",{className:[qe.titleContent,e.className??""].join(" "),"data-after":`${s}`,children:[t.jsx("hr",{className:qe.startLine}),e.titleUrl?t.jsx(T,{href:e.titleUrl,children:o}):o,t.jsx("hr",{className:qe.line}),e.titleUrl&&t.jsx(T,{className:qe.readMore,href:e.titleUrl?.toString()??""})]}),e.title&&t.jsx("hr",{className:[qe.bottomLine,e.className??""].join(" ")}),t.jsx("div",{className:qe.childrenContent,ref:n,children:e.children})]})}),Zn=e=>t.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"var(--header-icons)",xmlns:"http://www.w3.org/2000/svg",...e,children:t.jsx("path",{d:"M10.5283 0.562859C13.1487 0.49118 15.6972 1.42576 17.6494 3.17516C19.6016 4.92465 20.8095 7.3565 21.0244 9.96911C21.2392 12.5816 20.4447 15.1772 18.8047 17.222L18.6641 17.3978L18.8232 17.556L23.1475 21.8451H23.1484C23.3137 22.016 23.4062 22.2451 23.4062 22.4828C23.4062 22.7194 23.3143 22.9469 23.1504 23.1175C23.0653 23.2033 22.964 23.2712 22.8525 23.3177C22.7409 23.3642 22.6209 23.388 22.5 23.3881C22.3791 23.3881 22.2591 23.3642 22.1475 23.3177C22.0358 23.2712 21.9338 23.2034 21.8486 23.1175L17.5547 18.8236L17.3965 18.6644L17.2217 18.805C15.1768 20.4451 12.5812 21.2395 9.96875 21.0248C7.35614 20.8099 4.9243 19.602 3.1748 17.6498C1.4254 15.6976 0.490821 13.149 0.5625 10.5287C0.634205 7.90823 1.70691 5.41454 3.56055 3.56091C5.41418 1.70727 7.90787 0.634563 10.5283 0.562859ZM14.0537 3.057C12.516 2.42011 10.8239 2.25385 9.19141 2.57848C7.55873 2.90324 6.05893 3.7051 4.88184 4.88219C3.70474 6.05929 2.90288 7.55909 2.57812 9.19176C2.25349 10.8242 2.41975 12.5163 3.05664 14.0541C3.69368 15.592 4.77311 16.9066 6.15723 17.8314C7.54131 18.7562 9.16841 19.2504 10.833 19.2504C13.0652 19.2504 15.2058 18.363 16.7842 16.7845C18.3626 15.2061 19.25 13.0656 19.25 10.8334C19.25 9.16877 18.7558 7.54167 17.8311 6.15759C16.9062 4.77347 15.5917 3.69404 14.0537 3.057Z",fill:"var(--header-icons)",stroke:"var(--header-icons)",strokeWidth:"0.5"})}),gn=e=>t.jsx("svg",{width:"12",height:"13",viewBox:"0 0 12 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.862254 3.39448C1.1226 3.13413 1.54471 3.13413 1.80506 3.39448L6.00033 7.58974L10.1956 3.39448C10.4559 3.13413 10.878 3.13413 11.1384 3.39448C11.3987 3.65483 11.3987 4.07694 11.1384 4.33729L6.47173 9.00396C6.21138 9.26431 5.78927 9.26431 5.52892 9.00396L0.862254 4.33729C0.601905 4.07694 0.601905 3.65483 0.862254 3.39448Z",fill:e.fill??"#7B888A"})}),Z={drawerStyled:"_drawerStyled_1dhzk_1",sidebarCustom:"_sidebarCustom_1dhzk_6",accordionStyled:"_accordionStyled_1dhzk_24",accordionHeading:"_accordionHeading_1dhzk_35",accordionSummeryStyled:"_accordionSummeryStyled_1dhzk_44",linkStyled:"_linkStyled_1dhzk_71",subLinkStyled:"_subLinkStyled_1dhzk_91",inputContent:"_inputContent_1dhzk_113",buttonContent:"_buttonContent_1dhzk_114",inputStyled:"_inputStyled_1dhzk_124",buscar:"_buscar_1dhzk_140",buttonStyled:"_buttonStyled_1dhzk_149",accordionDetailsStyled:"_accordionDetailsStyled_1dhzk_164",footerSlider:"_footerSlider_1dhzk_179",socialMedia:"_socialMedia_1dhzk_190",copyRights:"_copyRights_1dhzk_209",icon:"_icon_1dhzk_220"},Ul=({sidebar:e,socials:n,copyrigth:a,sidebarExtra:s,searchKeyWord:o})=>t.jsxs("aside",{className:Z.drawerStyled,id:"sidebar-expandable",style:{"--header-icons":"var(--search-input-icons)"},children:[t.jsx("input",{type:"checkbox",id:"side-bar-state"}),t.jsxs("section",{className:Z.sidebarCustom,children:[t.jsx("div",{className:Z.buttonContent,children:t.jsx("label",{className:Z.buttonStyled,htmlFor:"side-bar-state",children:t.jsx(it,{className:Z.icon})})}),t.jsx("div",{className:Z.inputContent,children:t.jsxs(T,{href:"/buscar",className:Z.inputStyled,children:[t.jsxs("p",{className:Z.buscar,children:[o,"..."]}),t.jsx(Zn,{color:"var(--search-input-icons)"})]})}),t.jsxs("div",{style:{display:"flex",flexDirection:"column",justifyContent:"space-between",height:"100%"},children:[t.jsxs("div",{children:[s,e.map((r,i)=>t.jsxs("div",{className:Z.accordionStyled,children:[t.jsx("input",{type:"checkbox",style:{display:"none"},id:"accordion_"+i}),t.jsx("h3",{className:Z.accordionHeading,children:Array.isArray(r.subitem)?t.jsxs("label",{className:Z.accordionSummeryStyled,htmlFor:"accordion_"+i,children:[r.link?t.jsx(T,{className:`${Z.linkStyledAccordion} ${Z.linkStyled}`,href:r.link?r.link:void 0,target:r.target,children:r.description}):t.jsx("div",{children:r.description}),t.jsx(gn,{width:13,height:13,fill:"var(--side-bar-arrow-color)"})]}):t.jsx(T,{className:Z.linkStyled,href:r.link?r.link:void 0,target:r.target,children:r.description})}),Array.isArray(r.subitem)&&t.jsx("div",{className:Z.accordionDetailsStyled,style:{"--max-height":r.subitem.length*45+"px"},children:r.subitem.map((l,c)=>t.jsx(T,{className:Z.subLinkStyled,href:l.link?l.link:void 0,target:l.target,children:l.description},c))})]},i))]}),t.jsxs("div",{className:Z.footerSlider,children:[t.jsx("div",{className:Z.socialMedia,children:Object.keys(n).map(r=>n[r]?.show&&t.jsx("a",{target:"_blank",rel:"noreferrer","aria-label":n[r].title+" link",className:Z.linkSocialNetwork,href:n[r].url,children:cn[r]({className:Z.icon})},r))}),t.jsx("p",{className:Z.copyRights,children:a})]})]})]})]}),Ks=e=>t.jsxs("svg",{width:"30",height:"30",viewBox:"0 0 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[t.jsx("path",{d:"M5 22.5H25C25.6875 22.5 26.25 21.9375 26.25 21.25C26.25 20.5625 25.6875 20 25 20H5C4.3125 20 3.75 20.5625 3.75 21.25C3.75 21.9375 4.3125 22.5 5 22.5ZM5 16.25H25C25.6875 16.25 26.25 15.6875 26.25 15C26.25 14.3125 25.6875 13.75 25 13.75H5C4.3125 13.75 3.75 14.3125 3.75 15C3.75 15.6875 4.3125 16.25 5 16.25ZM3.75 8.75C3.75 9.4375 4.3125 10 5 10H25C25.6875 10 26.25 9.4375 26.25 8.75C26.25 8.0625 25.6875 7.5 25 7.5H5C4.3125 7.5 3.75 8.0625 3.75 8.75Z",fill:e.color}),t.jsx("path",{d:"M5 22.5H25C25.6875 22.5 26.25 21.9375 26.25 21.25C26.25 20.5625 25.6875 20 25 20H5C4.3125 20 3.75 20.5625 3.75 21.25C3.75 21.9375 4.3125 22.5 5 22.5ZM5 16.25H25C25.6875 16.25 26.25 15.6875 26.25 15C26.25 14.3125 25.6875 13.75 25 13.75H5C4.3125 13.75 3.75 14.3125 3.75 15C3.75 15.6875 4.3125 16.25 5 16.25ZM3.75 8.75C3.75 9.4375 4.3125 10 5 10H25C25.6875 10 26.25 9.4375 26.25 8.75C26.25 8.0625 25.6875 7.5 25 7.5H5C4.3125 7.5 3.75 8.0625 3.75 8.75Z",fill:e.color})]}),qt={content:"_content_1k52x_1",chipStyled:"_chipStyled_1k52x_17",headLine:"_headLine_1k52x_17",live:"_live_1k52x_25",closeLiveStyled:"_closeLiveStyled_1k52x_88"},Js=e=>{const{alertZone:n,id:a="close-alert"}=e,s=()=>t.jsx(T,{className:qt.headLine,href:n?.data[0]?.info.link.url,target:n?.data[0]?.info.link.target,title:n?.data[0]?.main.title.home,children:n?.data[0]?.main?.title.home??""});return t.jsxs(t.Fragment,{children:[t.jsx("input",{type:"checkbox",id:a,style:{display:"none"},defaultChecked:!(n&&n?.data&&n?.data[0]?.main?.title.home)}),n&&n?.data&&n?.data[0]?.main?.title.home&&t.jsxs("div",{id:"alert-chip",className:qt.content,style:e.forceShow?{display:"flex",position:"sticky",top:100}:{},children:[t.jsxs("div",{className:qt.live,children:[t.jsx("div",{className:qt.chipStyled,children:n?.entity?.description}),e.forceShow&&t.jsx(s,{}),t.jsx("label",{htmlFor:a,children:t.jsx(it,{className:qt.closeLiveStyled})})]}),t.jsx(s,{})]})]})},Be={content:"_content_18yq5_1",linkStyled:"_linkStyled_18yq5_14",linkSocialNetwork:"_linkSocialNetwork_18yq5_28",title:"_title_18yq5_49",tabs:"_tabs_18yq5_60",socialNetwork:"_socialNetwork_18yq5_68",icon:"_icon_18yq5_78",facebook:"_facebook_18yq5_84",youtube:"_youtube_18yq5_88",x:"_x_18yq5_92",instagram:"_instagram_18yq5_96",gnews:"_gnews_18yq5_100",tiktok:"_tiktok_18yq5_104",whatsapp:"_whatsapp_18yq5_108"},Tl=e=>{const{cintillo:n,tapeTitle:a,socials:s}=e,o="",r=n?.findIndex(i=>i.link===o)??0;return(Array.isArray(n)||e.socialIcons)&&t.jsxs("section",{className:Be.content,children:[Array.isArray(n)&&t.jsxs("div",{className:`${Be.tabs} header-page-tape-content`,children:[a!==""&&t.jsx("p",{className:Be.title,children:`${a}`}),n&&n[r]&&t.jsx(T,{className:Be.linkStyled,target:n[r]?.target,href:n[r]?.link,style:{color:n[r]?.link===o?"var(--header-tape-active-link)":"var(--header-tape-icons)",fontWeight:n[r]?.link===o?"700":"400"},children:n[r]?.description},r),n&&n.map((i,l)=>{if(l!==r)return t.jsx(T,{className:Be.linkStyled,href:i?.link,style:{color:i?.link===o?"var(--header-tape-active-link)":"var(--header-tape-color)",fontWeight:i?.link===o?"700":"400"},children:i?.description},l)})]}),t.jsx("div",{className:Be.socialNetwork,children:Object.keys(s).map(i=>s[i]?.show&&t.jsx("a",{target:"_blank",rel:"noreferrer","aria-label":s[i].title+" link",className:Be.linkSocialNetwork,href:s[i].url,children:cn[i]({className:[Be.icon,Be[i]??""].join(" ")})},i))})]})},ye={headerStyled:"_headerStyled_t61zq_1",headerContent:"_headerContent_t61zq_14",iconContent:"_iconContent_t61zq_25",menuButton:"_menuButton_t61zq_34",logoStyled:"_logoStyled_t61zq_66",buttonSection:"_buttonSection_t61zq_94",buttonSectionSearch:"_buttonSectionSearch_t61zq_109",headLineContent:"_headLineContent_t61zq_130",headLineTitle:"_headLineTitle_t61zq_143",headLine:"_headLine_t61zq_130",hasAlertZone:"_hasAlertZone_t61zq_196"},xl=e=>{const{alertZone:n}=e;return t.jsxs("header",{className:ye.headerStyled,children:[e.socialIcons&&t.jsx(Tl,{socialIcons:e.socialIcons,cintillo:e.cintillo,tapeTitle:e.tapeTitle,socials:e.socials}),t.jsxs("div",{className:`${ye.headerContent} center-mobile-header-icon`,children:[t.jsx(ln,{id:"button-app",className:ye.menuButton,toggledrawerevent:"true","aria-label":"menu","aria-labelledby":"menu",title:"menu",children:t.jsx(Ks,{className:ye.startIcon,color:"var(--header-icons)",width:27,height:27})}),t.jsx("div",{className:ye.iconContent,children:t.jsx(T,{href:"/","aria-label":"Home",className:"icon header-logo-link-sticky",style:{display:"flex"},children:C.createElement("span",{className:ye.logoStyled},e.icon)})}),!e.showAlertPop&&n?.data&&t.jsxs("div",{className:ye.headLineContent,children:[t.jsx("div",{className:`${ye.headLineTitle} headLineTitle`,children:n.entity.description?`${n.entity.description}`:""}),t.jsx(T,{className:ye.headLine,href:n.data[0]?.info.link.url,target:n.data[0]?.info.link.target,title:n.data[0]?.main.title.home,children:me(n.data[0]?.main.title.home??"",120)})]}),t.jsxs("div",{style:e.showAlertPop?{marginLeft:"auto"}:{},className:[ye.buttonSection,n?.data?ye.hasAlertZone:"","search-button"].join(" "),children:[t.jsx(T,{href:e.searchLink?e.searchLink:"/buscar","aria-label":e.searchKeyWord,className:`${ye.buttonSectionSearch} search-button-icon`,style:{display:"flex"},children:t.jsx(Zn,{width:28,height:28,color:"currentColor"})}),e.rightZone]})]}),!e.showAlertPop&&t.jsx(Js,{alertZone:n,forceShow:e.showAlertPop})]})},Le={ul:"_ul_j3aqc_1",li:"_li_j3aqc_10",liBefore:"_liBefore_j3aqc_18",ulContent:"_ulContent_j3aqc_33",contentModal:"_contentModal_j3aqc_44",linkStyled:"_linkStyled_j3aqc_56",itemLink:"_itemLink_j3aqc_81"},ql=e=>{const{items:n}=e;return t.jsx("ul",{className:Le.ul,children:n.map((a,s)=>t.jsxs("li",{className:`${Le.liBefore} ${Le.li}`,children:[a.link?t.jsxs(T,{"aria-label":a.description,className:Le.linkStyled,href:a.link?a.link:void 0,target:a.target,children:[a.description,Array.isArray(a.subitem)&&t.jsx(gn,{})]}):t.jsxs("span",{"aria-label":a.description,className:Le.linkStyled,children:[a.description,Array.isArray(a.subitem)&&t.jsx(gn,{})]}),Array.isArray(a.subitem)&&t.jsx("ul",{className:Le.ulContent,children:t.jsx("div",{className:Le.contentModal,children:a.subitem.map((o,r)=>t.jsx("li",{className:Le.li,children:t.jsx(T,{className:Le.itemLink,"aria-label":o.description,href:o.link?o.link:void 0,target:o.target,children:o.description})},r))})})]},s))})},ie={headerStyled:"_headerStyled_ksxbt_1",headerContent:"_headerContent_ksxbt_23",menuButtonSection:"_menuButtonSection_ksxbt_33",menuButton:"_menuButton_ksxbt_33",buttonSection:"_buttonSection_ksxbt_84",buttonSectionSearch:"_buttonSectionSearch_ksxbt_101",hasAlertZone:"_hasAlertZone_ksxbt_111",buttonText:"_buttonText_ksxbt_130",logoContent:"_logoContent_ksxbt_140",logoStyled:"_logoStyled_ksxbt_148",headLineContent:"_headLineContent_ksxbt_172",headLineTitle:"_headLineTitle_ksxbt_187",menuSection:"_menuSection_ksxbt_203",headLine:"_headLine_ksxbt_172",line:"_line_ksxbt_255"},Bl=e=>{const{menu:n,alertZone:a}=e;return t.jsx("header",{className:ie.headerStyled,style:{top:e.cintillo||e.socialIcons?40:0},children:t.jsxs("div",{style:e.showAlertPop?{gap:0}:{},className:[ie.headerContent,a?.data?ie.hasAlertZone:""].join(" "),children:[t.jsx("div",{className:ie.menuButtonSection,children:t.jsxs(ln,{className:ie.menuButton,id:"button-app",toggledrawerevent:"true","aria-label":"menu","aria-labelledby":"menu",title:"menu",children:[t.jsx(Ks,{color:"var(--header-icons)",width:27,height:27}),t.jsx("p",{className:ie.buttonText,style:{lineHeight:0},children:e.menuText})]})}),t.jsx("div",{className:ie.logoContent,children:t.jsx(T,{href:"/","aria-label":"Home",className:"header-logo-link",children:C.createElement("span",{className:`${ie.logoStyled}`},e.icon)})}),t.jsxs("div",{className:ie.buttonSection,children:[t.jsx(T,{href:e.searchLink?e.searchLink:"/buscar",style:{display:"flex"},className:ie.buttonSectionSearch,"aria-label":e.searchKeyWord,children:t.jsx(Zn,{width:28,height:28,color:"currentColor"})}),e.rightZone]}),!e.showAlertPop&&a?.data?t.jsxs("div",{className:ie.headLineContent,children:[t.jsx("p",{className:`${ie.headLineTitle} headLineTitle`,children:a.entity.description?`${a.entity.description}`:""}),t.jsx(T,{className:ie.headLine,href:a.data[0]?.info.link.url,target:a.data[0]?.info.link.target,title:a.data[0]?.main.title.home,children:me(a.data[0]?.main.title.home??"",120)})]}):t.jsx("div",{className:ie.line}),t.jsx("div",{className:ie.menuSection,style:e.showAlertPop?{"--showAlertPop":"0px"}:{},children:Array.isArray(n)&&t.jsx(ql,{items:n})})]})})},Xn={childrenContent:"_childrenContent_wqlb4_1",childrenContentAux:"_childrenContentAux_wqlb4_12",op2:"_op2_wqlb4_25"},Ll=e=>{const{alertZone:n,children:a,sidebar:s}=e;return t.jsxs(t.Fragment,{children:[t.jsx(xl,{...e}),!e.showOnlyStickyHeader&&t.jsx(Bl,{...e}),t.jsxs("div",{className:[Xn.childrenContent,e.showAlertPop?Xn.op2:"",n?.data?Xn.childrenContentAux:""].join(" "),style:e.showOnlyStickyHeader?{"--hasAlertMargin":"3.6rem !important"}:{},id:"content-layout",children:[e.showAlertPop&&t.jsx(Js,{alertZone:n,forceShow:e.showAlertPop,id:"static-alert-chip"}),a]}),t.jsx(Ul,{sidebarExtra:e.sidebarExtra,searchKeyWord:e.searchKeyWord,sidebar:s,socials:e.socials,copyrigth:e.copyrigth})]})},dt={content:"_content_16ydf_1",tags:"_tags_16ydf_10",chipStyled:"_chipStyled_16ydf_20",tagLink:"_tagLink_16ydf_47",tagStyled:"_tagStyled_16ydf_53"},Dl=e=>{const n=a=>{const s=a.name.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/ñ/g,"n").replace(/Ñ/g,"n").replace(/[^\w\s]/gi,"").replaceAll(" ","-").toLowerCase();return e.paths.tema?`/${e.paths.tema}/${s}-t${a.id}`:`/${s}-t${a.id}`};return t.jsx("section",{className:dt.content,children:Array.isArray(e.tags)&&t.jsxs("div",{className:dt.tags,children:[t.jsx("p",{className:dt.tagStyled,children:e.title?e.title:"Tags:"}),e.tags.map((a,s)=>a.approved?t.jsx(T,{href:n(a),children:t.jsx("div",{className:`${dt.chipStyled} ${dt.tagLink}`,children:a.name})},s):t.jsx("div",{className:dt.chipStyled,children:a.name},s))]})})},Ie={contentBox:"_contentBox_1rkkg_1",content:"_content_1rkkg_1",imageStyled:"_imageStyled_1rkkg_16",contentIconStyled:"_contentIconStyled_1rkkg_23",avatarContent:"_avatarContent_1rkkg_43",journalistSection:"_journalistSection_1rkkg_50",journalistInfo:"_journalistInfo_1rkkg_56",socialNetworkSection:"_socialNetworkSection_1rkkg_70",article:"_article_1rkkg_83"},Ml=async e=>{const{autor:n}=e;return n.addtional.USER_SHOWBIO&&t.jsx("section",{className:Ie.contentBox,children:t.jsxs("div",{className:Ie.content,children:[t.jsxs("div",{className:Ie.avatarContent,children:[t.jsx(T,{className:Ie.journalistInfo,href:`/${e.paths.autor}/${n.info.name}`,children:n.info.image?t.jsx("img",{fetchPriority:"low",loading:"lazy",alt:"autor-image",className:Ie.imageStyled,src:await te(n.info.image.sizes[0]?.url||"")}):t.jsx("div",{className:Ie.contentIconStyled,children:e.autorIcon()})}),t.jsxs("section",{className:Ie.journalistSection,children:[t.jsx("h3",{className:Ie.journalistInfo,children:t.jsx(T,{href:`/${e.paths.autor}/${n.info.name}`,children:n.info.fullname})}),t.jsxs("section",{className:Ie.socialNetworkSection,children:[n.addtional.USER_USERFB&&t.jsx("a",{href:n.addtional.USER_USERFB,target:"_blank","aria-label":n.addtional.USER_MIBIO,rel:"noreferrer",children:t.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M16.7266 4H14.545C12.1067 4 10.5025 5.52672 10.5025 7.96947V9.80153H8.32083C8.12833 9.80153 8 9.92366 8 10.1069V12.7328C8 12.916 8.12833 13.0382 8.32083 13.0382H10.5025V19.6947C10.5025 19.8779 10.6308 20 10.8233 20H13.7108C13.9033 20 14.0316 19.8779 14.0316 19.6947V13.0382H16.5983C16.7908 13.0382 16.9191 12.916 16.9191 12.7328V10.1069C16.9191 10.0458 16.855 9.92366 16.7908 9.8626C16.7266 9.80153 16.6625 9.74046 16.5341 9.74046H13.9675V8.21374C13.9675 7.48092 14.16 7.1145 15.1866 7.1145H16.6625C16.855 7.1145 16.9833 6.99237 16.9833 6.80916V4.36641C17.0475 4.12214 16.9191 4 16.7266 4Z",stroke:"black",strokeWidth:"1.4"})})}),n.addtional.USER_USERIG&&t.jsx("a",{href:n.addtional.USER_USERIG,target:"_blank","aria-label":n.addtional.USER_MIBIO,rel:"noreferrer",children:t.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t.jsxs("g",{clipPath:"url(#clip0_281_2357)",children:[t.jsx("path",{d:"M7.98634 4.06233C10.9335 4.1651 14.0152 3.89192 16.947 4.05106C19.1239 4.16908 20.8447 5.87246 20.9992 8.04131V17.0111C20.8646 19.1408 19.1378 20.8608 17.0113 21H8.04335C5.91354 20.8654 4.19406 19.1388 4.05551 17.0111C4.18345 14.0751 3.88383 10.9919 4.05353 8.07313C4.17682 5.95269 5.86648 4.21616 7.98634 4.06233ZM7.9532 5.4859C6.65331 5.64503 5.63713 6.68072 5.48201 7.97964L5.47804 17.0442C5.62586 18.3902 6.69175 19.4518 8.04136 19.5784L17.0445 19.5764C18.3901 19.4319 19.4514 18.3611 19.578 17.0131L19.576 8.00882C19.4321 6.67277 18.3788 5.6205 17.0445 5.47662L7.9532 5.4859Z",fill:"black"}),t.jsx("path",{d:"M15.527 9.52595C17.7019 11.7008 16.868 15.4802 13.9752 16.5079C10.6708 17.6815 7.47508 14.6354 8.47999 11.2771C9.38614 8.24892 13.2851 7.28484 15.5263 9.52662L15.527 9.52595ZM12.1894 9.72288C9.96615 9.94898 8.93936 12.6602 10.3771 14.3629C11.8149 16.0656 14.5877 15.4769 15.2168 13.3796C15.8458 11.2824 14.2529 9.51269 12.1894 9.72288Z",fill:"black"}),t.jsx("path",{d:"M17.0868 6.87507C18.5955 6.84324 18.4874 9.24614 16.8939 8.96965C15.7213 8.76609 15.8227 6.90159 17.0868 6.87507Z",fill:"black"})]}),t.jsx("defs",{children:t.jsx("clipPath",{id:"clip0_281_2357",children:t.jsx("rect",{width:"17",height:"17",fill:"white",transform:"translate(4 4)"})})})]})}),n.addtional.USER_USERTWT&&t.jsx("a",{href:n.addtional.USER_USERTWT,target:"_blank","aria-label":n.addtional.USER_MIBIO,rel:"noreferrer",children:t.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M3.43242 4.23888L10.0354 13.0628L3.39062 20.2389H4.88316L10.6981 13.9583L15.3966 20.2389H20.4832L13.51 10.9135L19.6951 4.23291H18.2026L12.8473 10.018L8.51898 4.23291H3.43242V4.23888ZM5.62943 5.33739H7.96973L18.2921 19.1404H15.9518L5.62943 5.33739Z",fill:"#010101"})})}),n.addtional.USER_USERLIN&&t.jsx("a",{href:n.addtional.USER_USERLIN,target:"_blank","aria-label":n.addtional.USER_MIBIO,rel:"noreferrer",children:t.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t.jsx("path",{d:"M13.1553 9.97173C13.2123 9.98635 13.2208 9.9478 13.2536 9.92189C13.9389 9.38958 14.1885 9.05464 15.1143 8.85195C17.735 8.27844 20.2954 9.68265 20.4618 12.5449C20.6046 15.0084 20.3504 17.6121 20.4618 20.0903C20.4316 20.4372 20.1892 20.6425 19.8557 20.6718C18.9876 20.7475 18.0154 20.6133 17.1361 20.6704C16.8583 20.6465 16.5825 20.4578 16.5609 20.1574C16.4875 18.1631 16.6637 16.0916 16.5642 14.1066C16.5334 13.4979 16.462 12.9835 15.9182 12.6353C14.805 11.9215 13.5333 12.6346 13.4495 13.9405C13.3197 15.9488 13.5484 18.1006 13.4521 20.1235C13.4383 20.4491 13.1795 20.6392 12.8768 20.6698C11.917 20.7675 10.8058 20.5967 9.82899 20.6718C9.59116 20.6478 9.35988 20.5422 9.2793 20.2989V9.41284C9.35006 9.20815 9.53219 9.08654 9.7353 9.04467C10.6604 9.10581 11.7061 8.95363 12.6161 9.04068C12.8126 9.05929 13.1553 9.2786 13.1553 9.49059V9.97239V9.97173ZM9.84668 20.1062H12.8768L12.926 20.0564V13.6766C12.926 12.7821 13.9657 11.877 14.8103 11.7999C16.2163 11.6717 17.0464 12.6253 17.1191 13.9763C17.2252 15.9468 17.0418 18.0115 17.1178 19.9919L17.1689 20.1062H19.8551L19.9062 19.9919L19.9042 12.5808C19.6992 9.46068 16.1671 8.36948 13.8924 10.104L12.6318 11.4005V9.60622H9.84733V20.1062H9.84668Z",fill:"black",stroke:"black",strokeWidth:"0.5"}),t.jsx("path",{d:"M4.6294 9.04917C5.38612 8.92822 6.41671 9.11629 7.2016 9.04917C7.53181 9.13755 7.79847 9.39274 7.8666 9.73698L7.88102 19.9233C7.84564 20.243 7.56326 20.5387 7.26581 20.6284C6.93888 20.7261 5.19219 20.7095 4.78926 20.667C4.38633 20.6244 4.10854 20.3958 3.99061 20.015L3.9834 9.75626C3.99781 9.43062 4.31885 9.09967 4.6294 9.04917ZM4.72702 9.61338C4.60319 9.64926 4.53243 9.75692 4.53833 9.88717L4.54685 19.8834C4.59729 20.0502 4.72767 20.0901 4.88426 20.1061C5.31012 20.1493 6.64078 20.1659 7.03781 20.0988C7.18064 20.0748 7.32085 19.9884 7.32478 19.825L7.31626 9.86392C7.29464 9.73831 7.20554 9.62933 7.07647 9.60872L4.72702 9.61404V9.61338Z",fill:"black",stroke:"black",strokeWidth:"0.5"}),t.jsx("path",{d:"M8.16428 6.20159C8.16428 7.45495 7.16252 8.47105 5.92687 8.47105C4.69121 8.47105 3.68945 7.45495 3.68945 6.20159C3.68945 4.94824 4.69121 3.93213 5.92687 3.93213C7.16252 3.93213 8.16428 4.94824 8.16428 6.20159ZM7.60345 6.20358C7.60345 5.2639 6.85263 4.50165 5.92556 4.50165C4.99849 4.50165 4.24766 5.26324 4.24766 6.20358C4.24766 7.14393 4.99849 7.90552 5.92556 7.90552C6.85263 7.90552 7.60345 7.14393 7.60345 6.20358Z",fill:"black",stroke:"black",strokeWidth:"0.5"})]})})]})]})]}),n.addtional.USER_SHOWBIO&&t.jsx("p",{className:Ie.article,dangerouslySetInnerHTML:{__html:`${n.addtional.USER_MIBIO} <a href="/${e.paths.autor}/${n.info.name}">${e.texts.authorViewMore??"Ver más"}</a>`}})]})})},$e={content:"_content_vmnac_1",imageStyled:"_imageStyled_vmnac_20",contentIconStyled:"_contentIconStyled_vmnac_21",contentCard:"_contentCard_vmnac_31",contentInfo:"_contentInfo_vmnac_70",fullName:"_fullName_vmnac_76",LearnMoreLink:"_LearnMoreLink_vmnac_83"},Pl=async e=>{const{news:n,texts:a}=e;return n.config?.showauthor&&t.jsx("div",{className:$e.content,children:Array.isArray(n.authors)&&n.authors?.map(async s=>t.jsxs("div",{className:$e.contentCard,children:[s.image?t.jsx("img",{fetchPriority:"low",loading:"lazy",className:$e.imageStyled,src:await te(s.image.sizes[0]?.url||"")},s.fullname):t.jsx("div",{className:$e.contentIconStyled,children:e.autorIcon},s.fullname),t.jsxs("div",{className:$e.contentInfo,children:[s.internaluser?t.jsx("a",{className:$e.fullName,href:`/${e.paths.autor}/${s.name}`,children:s.fullname}):t.jsx("p",{className:$e.fullName,children:s.fullname}),s.internaluser&&t.jsx("a",{className:$e.LearnMoreLink,href:`/${e.paths.autor}/${s.name}`,children:a.JournalistGroupLink})]})]},`author-${s.firstname}`))})},De={content:"_content_1j0pj_1",contentNews:"_contentNews_1j0pj_10",linkTitle:"_linkTitle_1j0pj_27",tag:"_tag_1j0pj_35",tagmx:"_tagmx_1j0pj_55",titular:"_titular_1j0pj_70",correspondent:"_correspondent_1j0pj_85",correspondentLink:"_correspondentLink_1j0pj_96",description:"_description_1j0pj_107"},ht=e=>{const n=()=>{if(e?.config?.showtime&&e.config?.showauthor)return`${e?.authors[0]?.fullname} - ${Ce(e.info?.date?.modified)}`;if(e.config?.showauthor)return e?.authors[0]?.fullname;if(e?.config?.showtime)return Ce(e.info?.date?.modified)};return t.jsxs("section",{className:`${De.content} destacado-super-content`,children:[t.jsx(T,{href:e?.info?.link?.url,target:e?.info?.link?.target,style:{"--heightImageOverwrite":e.heightImageOverwrite?e.heightImageOverwrite:"51.8%","--heightImageOverwriteMobile":e.heightImageOverwriteMobile?e.heightImageOverwriteMobile:"491px","--fontSizeImageNewsTitleMobile":e.isVertical?"20px":"1.75rem","--lineHeightImageNewsTitleMobile":e.isVertical?"26px":"36px"},children:t.jsx(pe,{preview:e.preview,isLarge:!0,BackDropAuxHeigthMobile:"513px",priorityHigh:!0})}),t.jsxs("div",{className:De.contentNews,style:{"--widthTextContent":e.textPosition==="start"?"100%":"80%"},children:[t.jsx(T,{className:De.tagmx,href:e?.info?.section?.url,children:e?.info?.section?.name}),t.jsxs("div",{style:{position:"relative"},children:[t.jsx(T,{className:De.tag,href:e?.info?.section?.url,children:e?.info?.section?.name}),t.jsx(T,{className:De.linkTitle,href:e?.info?.link?.url,target:e?.info?.link?.target,children:t.jsx("h1",{className:De.titular,style:{"--titlePosition":e.textPosition==="start"?"initial":"center"},children:e?.main?.title?.home})})]}),e.config?.showsubtitle&&t.jsx("div",{className:De.description,dangerouslySetInnerHTML:{__html:e.main.subtitle.striped}}),e?.config?.showtime&&e.config?.showauthor&&t.jsx(t.Fragment,{children:e.authors[0]?.internaluser?t.jsx(T,{href:`/${e.paths?.autor??"autor"}/${e?.authors[0]?.name}`,className:De.correspondent,children:n()}):t.jsx("p",{className:De.correspondentLink,children:n()})})]})]})},Zs=e=>{const{main:n,authors:a,info:s,preview:o,isVideo:r,config:i,itemReverseOrder:l,imageSize:c,showSuper:h}=e;return t.jsxs("section",{className:Fi.content,children:[h?t.jsx("section",{style:{...e.customSectionCardStyles},children:t.jsx(ht,{main:n,authors:a,info:s,preview:o,isVideo:r,config:i,paths:e.paths})}):t.jsx(Ee,{...e,main:n,authors:a,info:s,preview:o,isVideo:r,config:i,priorityHigh:!0}),e.banners&&t.jsx(ne,{banners:e.banners,name:"main_block_"+(e.rightOnlyBanner?1:2)}),!e.rightOnlyBanner&&t.jsx(Ds,{block:e.block,itemReverseOrder:l,priorityHigh:!0,imageSize:c,customNewsDescriptionStyles:e.customNewsDescriptionStyles,paths:e.paths})]})},Rn={content:"_content_1dcf7_1",firstSection:"_firstSection_1dcf7_10",secondSection:"_secondSection_1dcf7_16"},Ol=({content:e,customLargeSection:n,customSmallSection:a,paths:s})=>{const o=e[0];return Array.isArray(e)&&e.length>0&&o&&t.jsxs("section",{className:Rn.content,children:[t.jsx("div",{style:n,className:Rn.firstSection,children:t.jsx(ht,{...o,textPosition:"start",heightImageOverwrite:"512px",heightImageOverwriteMobile:"270px",paths:s})}),t.jsx("div",{style:a,className:Rn.secondSection,children:e.map((r,i)=>i>0&&C.createElement(ht,{...r,key:i,textPosition:"start",heightImageOverwrite:"256px",heightImageOverwriteMobile:"270px",paths:s}))})]})},Xs={content:"_content_wsx1m_1",firstSection:"_firstSection_wsx1m_8"},Ql=({content:e,customLargeSection:n,customSlimSection:a,paths:s})=>Array.isArray(e)&&e.length>0&&t.jsx("section",{className:Xs.content,children:e.map((o,r)=>r===0?t.jsx("div",{style:n,className:Xs.firstSection,children:t.jsx(ht,{...o,isVertical:!0,textPosition:"start",heightImageOverwrite:"512px",heightImageOverwriteMobile:"270px",paths:s})},r):t.jsx("section",{style:a,children:C.createElement(ht,{...o,key:r,isVertical:!0,textPosition:"start",heightImageOverwrite:"512px",heightImageOverwriteMobile:"270px",paths:s})},r))}),Bt={content:"_content_1n73e_1",sectionDescription:"_sectionDescription_1n73e_13",title:"_title_1n73e_33",subtitle:"_subtitle_1n73e_47",linkStyled:"_linkStyled_1n73e_58"},Rs=e=>t.jsxs("div",{className:Bt.content,children:[e?.mainNew?.info.section&&t.jsx(T,{className:Bt.sectionDescription,href:e?.mainNew?.info?.section?.url,children:e?.mainNew?.info?.section?.name}),t.jsx(T,{className:Bt.title,href:e?.mainNew?.info?.link?.url,target:e?.mainNew?.info?.link?.target,children:e?.mainNew?.main?.title.home}),e?.mainNew?.main?.subtitle?.rendered&&t.jsx("p",{className:Bt.subtitle,children:e?.mainNew?.main?.subtitle?.striped}),e.goTo&&t.jsx(T,{href:e.goTo.url,className:Bt.linkStyled,children:e.goTo.description})]}),ea={headerSection:"_headerSection_drjnj_1",headerSectionLink:"_headerSectionLink_drjnj_12",newsContent:"_newsContent_drjnj_17"},eo=e=>{const{content:n,title:a,isVideo:s}=e;if(!n||!n[0]||n.length===0)return;const o=e.slot_id&&e.slot_id!=="Nota_1",r={...n[0],main:{...n[0].main,title:{...n[0].main.title,section:o?n[0].main.title.home:n[0].main.title.section}}},i=n.slice(1);return r&&i&&t.jsxs(ae,{title:a,titleUrl:e.titleUrl,children:[t.jsxs("div",{className:ea.headerSection,children:[t.jsx(Rs,{mainNew:r,goTo:e.goTo}),t.jsx(T,{className:ea.headerSectionLink,href:r?.info?.link?.url,target:r?.info?.link?.target,children:t.jsx(pe,{preview:r.preview})})]}),t.jsxs("div",{className:ea.newsContent,children:[t.jsx("div",{className:"banner-context",style:{order:1},children:e.banner}),Array.isArray(i)&&i.map((l,c)=>{const h={...l,main:{...l.main,title:{...l.main.title,section:o?l.main.title.home:l.main.title.section}}};return t.jsx("div",{style:{order:c},children:t.jsx(Ee,{...h,isVideo:s,paths:e.paths})},c)})]})]})},Me={content:"_content_1stvq_1",autorContent:"_autorContent_1stvq_8",image:"_image_1stvq_24",contentIcon:"_contentIcon_1stvq_25",boxInformationContent:"_boxInformationContent_1stvq_47",autorName:"_autorName_1stvq_53",time:"_time_1stvq_85",comment:"_comment_1stvq_98",title:"_title_1stvq_107"},pn=async e=>{const{data:n,autorIcon:a}=e,s=a,o=()=>n?.config?.showtime?`${Ce(n.info?.date?.modified)}`:"",r=t.jsxs("div",{className:Me.autorContent,children:[Array.isArray(n?.authors)&&Array.isArray(n?.authors[0]?.image?.sizes)&&n?.authors[0]?.image?.sizes?.length>0?t.jsx("img",{fetchPriority:"low",loading:"lazy",className:Me.image,src:await te(n?.authors[0]?.image?.sizes[0]?.url||""),alt:n?.authors[0]?.fullname}):t.jsx("div",{className:Me.contentIcon,children:t.jsx(s,{})}),t.jsx("p",{className:Me.autorName,children:me(n?.authors[0]?.fullname??"Redacción",18)}),t.jsx("p",{className:Me.time,children:o()})]});return t.jsxs("div",{className:Me.content,children:[n?.authors[0]?.internaluser?t.jsx(T,{href:n.authors[0]?.internaluser?`/${e.paths.autor}/${n?.authors[0]?.name}`:"#",children:r}):r,t.jsxs("div",{className:Me.boxInformationContent,children:[t.jsx(T,{className:Me.title,href:n?.info?.link?.url,target:n?.info?.link?.target,children:n?.main?.title?.home}),t.jsx("p",{className:Me.comment,children:me(n?.main?.subtitle?.striped||"")})]})]})},ut={content:"_content_1d7mg_1",boxPosition:"_boxPosition_1d7mg_8",contentFlex:"_contentFlex_1d7mg_21",bannerContent:"_bannerContent_1d7mg_29",bannerContentAux:"_bannerContentAux_1d7mg_40"};function jl(e){const n=new Array(e.length),a=e.length/2;for(let s=0;s<e.length;s++)s%2===0?n[Math.floor(s/2)]=e[s]:n[a+Math.floor(s/2)]=e[s];return n}const Gl=e=>{const{isOpinion:n=!1}=e,a=r=>t.jsx("div",{className:ut.boxPosition+" banner-context",style:{order:2},children:t.jsx("div",{className:ut.bannerContentAux,children:t.jsx("div",{style:{position:"absolute",height:"270px",top:"0"},children:e.banner})})},r),s=[];for(let r=0;r<e.news.length;r++){const i=e.news[r];r===2&&s.push(a(r)),i&&s.push(t.jsx("div",{className:ut.boxPosition,style:{order:r},children:t.jsx(pn,{data:i,autorIcon:e.autorIcon,paths:e.paths})},`description-block-2-odd-${r}`))}const o=s.length%2===0?jl(s):s;return t.jsx("section",{style:e.customStyles,children:t.jsx(ae,{title:e.title,titleUrl:e.titleUrl,isOpinion:n,children:t.jsxs("div",{className:ut.content,children:[t.jsx("div",{className:ut.contentFlex,children:o}),t.jsx("div",{className:ut.bannerContent,children:e.halfPageBanner})]})})})},to={content:"_content_w9viv_1",title:"_title_w9viv_10"},$l=e=>{const{showTitle:n=!0}=e;return t.jsxs("div",{className:to.content,children:[n&&t.jsx("p",{className:to.title,children:"Editorial"}),t.jsx(ot,{...e,info:{...e.info,section:{name:"",slug:"",url:""}}})]})},mt={content:"_content_1nd2h_1",newsContent:"_newsContent_1nd2h_8",boxPosition:"_boxPosition_1nd2h_17",bannerContent:"_bannerContent_1nd2h_23",bannerContentAux:"_bannerContentAux_1nd2h_33"},zl=e=>{const{news:n}=e;return Array.isArray(n)&&t.jsxs("div",{className:mt.content,children:[t.jsxs("div",{className:mt.newsContent,children:[e.bannerArray&&e.bannerArray.map((a,s)=>t.jsx("div",{className:mt.boxPosition+" banner-context",style:{order:2+5*s},children:t.jsx("div",{className:mt.bannerContentAux,children:t.jsx("div",{style:{position:"absolute",height:"270px",top:"0"},children:a})})},s)),n.map((a,s)=>t.jsx("div",{className:mt.boxPosition,style:{order:s},children:t.jsx(Ee,{...a,share:e.share,paths:e.paths})},s))]}),t.jsx("div",{className:mt.bannerContent,children:e.halfPageBanner})]})},Hl=e=>t.jsxs(t.Fragment,{children:[t.jsx(Os,{className:"display-on-lower-900px",...e}),t.jsx(Qs,{...e})]}),An={newsContent:"_newsContent_gd57q_1",newsContentWithLines:"_newsContentWithLines_gd57q_8",newsContentWithoutLines:"_newsContentWithoutLines_gd57q_13",contentSeparator:"_contentSeparator_gd57q_18"},no=e=>{const{content:n}=e;if(!n||n.length===0)return;const a=i=>e.hasLines&&(i+1)%3!==0?An.contentSeparator:"",s=[];let o=0,r=1;for(let i=0;i<n.length;i++){e.banners&&e.bannerPositionIndex?.includes(i)&&(s.push(t.jsx("section",{className:a(o),children:e.banners?.some(d=>d.key===`${e.slot_id}_${r}`)&&t.jsx(ne,{banners:e.banners,name:`${e.slot_id}_${r}`})},o)),o++,r++);const l=e.isVideo?Re(n[i],e.showVideoTime,e.showVideosubtitle):n[i];if(!l)continue;const c=e.slot_id&&e.slot_id!=="Nota_1",h={...l,main:{...l.main,title:{...l.main.title,section:c?l.main.title.home:l.main.title.section}}};s.push(t.jsx("section",{className:a(o),children:t.jsx(Ee,{...h,isVideo:e.isVideo,paths:e.paths})},o)),o++}return s.length===2&&s.push(t.jsx("div",{},o)),t.jsx("div",{className:`${e.hasLines?An.newsContentWithLines:An.newsContentWithoutLines} ${An.newsContent}`,children:s})},ta=e=>t.jsx(ae,{title:e.title,titleUrl:e.titleUrl,children:t.jsx(no,{content:e.content,paths:e.paths,slot_id:e.slot_id,hasLines:e.hasLines,bannerPositionIndex:e.bannerPositionIndex,isVideo:e.isVideo,banners:e.banners,showVideoTime:e.showVideoTime,showVideosubtitle:e.showVideosubtitle})}),ao={newsContent:"_newsContent_1sb62_1",contentSeparator:"_contentSeparator_1sb62_8"},so=e=>{const{content:n,title:a}=e;if(!(!n||n.length===0||!Array.isArray(n)))return t.jsx(ae,{title:a,titleUrl:e.titleUrl,children:t.jsx("div",{className:`${ao.newsContent} ${e.hasLines?ao.contentSeparator:""}`,children:n?.map((s,o)=>{const r=e.slot_id&&e.slot_id!=="Nota_1",i={...s,main:{...s.main,title:{...s.main.title,section:r?s.main.title.home:s.main.title.section}}};return t.jsx("section",{children:t.jsx(Ee,{...i,share:e.share,paths:e.paths})},o)})})})},na={newsContent:"_newsContent_1gbse_1",contentSeparator:"_contentSeparator_1gbse_8",newsContentWhitoutLine:"_newsContentWhitoutLine_1gbse_29"},oo=e=>{const{content:n,title:a}=e;if(!(!n||n.length===0))return t.jsx(ae,{title:a,titleUrl:e.titleUrl,children:t.jsx("div",{className:`${na.newsContent} ${e.hasLines?na.contentSeparator:na.newsContentWhitoutLine}`,children:n.map((s,o)=>{const r=e.slot_id&&e.slot_id!=="Nota_1",i={...s,main:{...s.main,title:{...s.main.title,section:r?s.main.title.home:s.main.title.section}}};return t.jsx("section",{children:t.jsx(Ee,{...i,share:e.share,paths:e.paths})},o)})})})},aa={headerSection:"_headerSection_1m1sp_3",headerSectionLink:"_headerSectionLink_1m1sp_16",newsContent:"_newsContent_1m1sp_29"},ro=e=>{const{content:n,title:a,isVideo:s=!0}=e;if(!n||n.length===0)return;const o=n[0],r=e.slot_id&&e.slot_id!=="Nota_1",i=n.slice(1);return o&&i&&t.jsxs(ae,{title:a,titleUrl:e.titleUrl,children:[t.jsxs("div",{className:aa.headerSection,children:[t.jsx(Rs,{goTo:e.goTo,mainNew:Re(o)}),t.jsx(T,{className:aa.headerSectionLink,href:o?.info?.link.url,target:o?.info?.link.target,"aria-label":"Video",children:t.jsx(pe,{preview:{sizes:o?.main?.image.sizes,description:o?.main?.image.description},isVideo:s,isLarge:!0})})]}),t.jsxs("div",{className:aa.newsContent,children:[t.jsx("div",{className:"banner-context",style:{order:1},children:e.banner}),Array.isArray(i)&&i.map((l,c)=>{const h=Re(l),d={...h,main:{...h.main,title:{...h.main.title,section:r?h.main.title.home:h.main.title.section}}};return t.jsx("div",{style:{order:c},children:C.createElement(Ee,{...d,isVideo:s,key:c,paths:e.paths})},c)})]})]})},Lt={content:"_content_cnul3_1",linkImage:"_linkImage_cnul3_30",sectionDescription:"_sectionDescription_cnul3_42",dateText:"_dateText_cnul3_61",textContent:"_textContent_cnul3_72"},Fl=async e=>{const{showNewsLikeTitle:n=!1}=e;return e&&e.info?t.jsxs("section",{className:Lt.content,style:{"--heightImageOverwrite":"100%"},children:[t.jsx(T,{className:Lt.linkImage,target:e?.info?.link?.target,title:e.main?.title?.section,href:n?e.info.link.url:e?.info?.section?.url,children:t.jsx(pe,{preview:e.preview})}),t.jsxs("div",{className:Lt.textContent,children:[t.jsx(T,{className:Lt.sectionDescription,target:e?.info?.link?.target,href:n?e.info.link.url:e?.info?.section?.url,children:me((n?e?.main?.title?.section:e?.info?.section?.name)??"",45)}),t.jsx("p",{className:Lt.dateText,children:Ce(e?.info?.date?.modified)})]})]}):null},io={content:"_content_yx3zm_1",contentSeparator:"_contentSeparator_yx3zm_7"},sa={newsContent:"_newsContent_1uamf_1",contentSeparator:"_contentSeparator_1uamf_8",hasLinesBlock:"_hasLinesBlock_1uamf_40"},lo=e=>{if(!e.content||e.content.length===0)return;const n=e.slot_id&&e.slot_id!=="Nota_1";return t.jsx(ae,{title:e.title,children:t.jsx("div",{className:`${io.content} ${e.hasLines?io.contentSeparator:""}`,style:{gap:e.hasLines?"30px":"0px"},children:Array.isArray(e.content)&&e.content?.map((a,s)=>{const o={...a,main:{...a.main,title:{...a.main.title,section:n?a.main.title.home:a.main.title.section}}};return t.jsx("section",{className:e.hasLines?sa.hasLinesBlock:"",children:C.createElement(Fl,{...o,key:s,showNewsLikeTitle:e.showNewsLikeTitle})},s)})})})},co=e=>{const{content:n,title:a,slot_id:s}=e,o=e.slot_id&&e.slot_id!=="Nota_1";return n&&n.length!==0&&t.jsx(ae,{title:a,titleUrl:e.titleUrl,children:t.jsx(Ye,{slot_id:s,cardWidth:e.cardWidth,cardGap:e.cardGap,visibleItems:e.visibleItems,pagination:e.pagination,children:n.map((r,i)=>{const l={...r,main:{...r.main,title:{...r.main.title,section:o?r.main.title.home:r.main.title.section}}};return t.jsx("div",{style:{"--heightImageOverwrite":e.heightImageOverwrite,"--heightImageOverwriteMobile":e.heightImageOverwriteMobile},children:t.jsx(Ut,{...l,paths:e.paths})},i)})})})},ze={content:"_content_1mj79_1",imageStyled:"_imageStyled_1mj79_14",contentIcon:"_contentIcon_1mj79_23",boxInformation:"_boxInformation_1mj79_44",comment:"_comment_1mj79_51",title:"_title_1mj79_60",authorName:"_authorName_1mj79_81"},Vl=async e=>{const{data:n}=e;return t.jsxs("div",{className:ze.content,children:[Array.isArray(n.authors)&&n?.authors[0]?.image?t.jsx("img",{fetchPriority:"low",loading:"lazy",className:ze.imageStyled,src:await te(n?.authors[0]?.image?.sizes[0]?.url||""),alt:n?.authors[0]?.fullname}):t.jsx("div",{className:ze.contentIcon,children:e.autorIcon}),t.jsxs("div",{className:ze.boxInformation,children:[t.jsx("p",{className:ze.authorName,children:n?.authors[0]?.internaluser?t.jsx(T,{href:n.authors[0]?.internaluser?`/${e.paths.autor}/${n?.authors[0]?.name}`:"#",children:n?.authors[0]?.fullname??"Redacción"}):n?.authors[0]?.fullname??"Redacción"}),t.jsx("p",{className:ze.title,children:t.jsx(T,{className:ze.linkStyled,href:n?.info?.link?.url,target:n?.info?.link?.target,children:me(n?.main?.title?.home,40)})}),t.jsx("p",{className:ze.comment,children:n?.main?.subtitle?.striped})]})]})},ho=e=>{const n=e.slot_id&&e.slot_id!=="Nota_1";return t.jsx(ae,{titleUrl:e.titleUrl,title:e.title,children:t.jsx(Ye,{slot_id:e.slot_id,cardGap:31,cardWidth:344,visibleItems:3,children:e.content&&e.content.map((a,s)=>{const o={...a,main:{...a.main,title:{...a.main.title,section:n?a.main.title.home:a.main.title.section}}};return t.jsx(Vl,{autorIcon:e.autorIcon,data:o,paths:e.paths},s)})})})},Pe={content:"_content_1elhb_1",newsContentSection:"_newsContentSection_1elhb_5",itemContent:"_itemContent_1elhb_10",ItemCustomContent:"_ItemCustomContent_1elhb_16"},wn=e=>{const{item:n,option:a}=e;switch(a){case"ediciones":return t.jsx("div",{className:Pe.ItemCustomContent});case"columnistasnacionales":return t.jsx("div",{className:Pe.ItemCustomContent,children:t.jsx(pn,{data:n,autorIcon:e.autorIcon,paths:e.paths})});case"columnistaslocales":return t.jsx("div",{className:Pe.ItemCustomContent,children:t.jsx(pn,{data:n,autorIcon:e.autorIcon,paths:e.paths})});case"columnistas":return t.jsx("div",{className:Pe.ItemCustomContent,children:t.jsx(pn,{data:n,autorIcon:e.autorIcon,paths:e.paths})});default:return t.jsx("div",{className:Pe.ItemCustomContent,children:t.jsx(Ee,{...n,paths:e.paths})})}},Wl=e=>{const{data:n,currentPage:a,banners:s,slug:o,ranking:r,pathname:i,texts:l={}}=e,c=[3,8,13],h={3:1,8:2,13:3};switch(e.option){case"op1":return t.jsx(Kn,{ranking:r,readestTitle:l.readestTitle??"",paths:e.paths,bannerTop:t.jsx(ne,{banners:s??[],name:"right_1"}),banner:t.jsx(ne,{banners:s??[],name:"right_2"}),children:t.jsx("section",{className:Pe.content,children:n.length>0?t.jsx(un,{className:[Pe.newsContentSection,"padding-0"].join(" "),paginatorComponent:t.jsx(Et,{texts:l,pathname:i,query:"",currentPage:a,maxPages:e.PAGINATION_MAX_PAGES,showNext:!(n.length<e.NEWS_PER_SECTION)}),children:Array.isArray(n)&&n?.map((d,u)=>t.jsxs(C.Fragment,{children:[c.includes(u+1)&&t.jsx("div",{className:Pe.itemContent+" banner-context",children:t.jsx(ne,{banners:s??[],name:`block_2_${h[u+1]}`})}),t.jsx(wn,{autorIcon:e.autorIcon,item:d,option:o,paths:e.paths},u)]},u))}):t.jsx("div",{style:{width:"100%",display:"flex",flexDirection:"column",justifyContent:"center",gap:"2rem"},children:t.jsx("p",{style:{fontWeight:"var(--fw)",width:"100%",fontSize:"18px",lineHeight:"26px",textAlign:"center"},children:l.sectionNotResultMessage})})})});case"op2":return t.jsx(t.Fragment,{children:n.length>0?t.jsx(un,{className:"padding-0",paginatorComponent:t.jsx(Et,{texts:l,pathname:i,query:"",currentPage:a,maxPages:e.PAGINATION_MAX_PAGES,showNext:!(n.length<e.NEWS_PER_SECTION)}),children:Array.isArray(n)&&n?.map((d,u)=>t.jsxs(C.Fragment,{children:[c.includes(u+1)&&t.jsx("div",{className:Pe.itemContent,children:t.jsx(ne,{banners:s??[],name:`block_2_${h[u+1]}`})}),t.jsx(wn,{autorIcon:e.autorIcon,item:d,option:o,paths:e.paths},u)]},u))}):t.jsx("div",{style:{width:"100%",display:"flex",flexDirection:"column",justifyContent:"center",gap:"2rem"},children:t.jsx("p",{style:{fontWeight:"var(--fw)",width:"100%",fontSize:"18px",lineHeight:"26px",textAlign:"center"},children:l.sectionNotResultMessage})})});default:return t.jsx(t.Fragment,{})}},uo={content:"_content_gwsqy_1",contactInfoContent:"_contactInfoContent_gwsqy_7"},Yl=e=>{const{data:n}=e;return t.jsx("section",{className:uo.content,children:n.map((a,s)=>t.jsx("div",{className:uo.contactInfoContent,dangerouslySetInnerHTML:{__html:a.body.rendered}},s))})},mo={contentLayout2:"_contentLayout2_ee6yw_9",contentHeader:"_contentHeader_ee6yw_42"},Kl={content:"_content_1rbrt_1"},Jl=({children:e,className:n=""})=>t.jsx("div",{className:`content-layout-2 ${Kl.content} ${n}`,children:e}),Dt={container:"_container_1insg_1",note:"_note_1insg_10",commercial:"_commercial_1insg_50",commercialContent:"_commercialContent_1insg_67",complement:"_complement_1insg_83"},Zl=e=>t.jsxs("section",{className:Dt.container,children:[t.jsx("div",{className:Dt.note,children:e.children}),t.jsx("div",{className:Dt.commercial,children:t.jsxs("div",{className:Dt.commercialContent,children:[e.slug==="liveblogs"&&t.jsx(Fs,{itemList:e.itemList}),e.bannerTop,t.jsx(rn,{content:e.ranking,title:e.texts.readestTitle,paths:e.paths,customNewsDescriptionStyles:{"--news-description-title-size-desk":"16px","--news-description-title-line-height-desk":"22px","--news-description-title-size-mobile":"16px","--news-description-title-line-height-mobile":"22px"}}),t.jsx("div",{style:{position:"sticky",top:"110px"},children:e.banner})]})}),t.jsx("div",{className:Dt.complement,children:e.complement})]}),Xl=e=>{const n={...e.news[0],config:{zonehome:void 0,priorityhome:"",zonesection:"",prioritysection:",",homepreview:"",showcomments:!1,showtime:!1,showauthor:!1,showuppertitle:!1,showsubtitle:!0,showads:!1},main:{...e.news[0]?.main,title:{...e.news[0]?.main.title,section:e.news[0]?.main.title.article??""}},info:{...e.news[0]?.info,link:{url:void 0,target:void 0}}};switch(e.option){case"liveblogs":return t.jsx("div",{style:{"--news-description-title-size-desk":"38px","--news-description-title-size-mobile":"30px","--news-description-title-line-height-desk":"46px","--news-description-title-line-height-mobile":"38px","--news-image-height-desk":"600px","--news-image-height-mobile":"420px","--news-image-description-display":"none"},children:t.jsx(Hs,{...n,fontSizeSubTitle:"18px",lineHeightSubTitle:"28px"})});default:return t.jsx("div",{className:mo.contentHeader,style:{"--section-card-chip-padding":"0 0 0 6px","--uppertitle-display":"block","--news-description-title-size-desk":"38px","--news-description-title-size-mobile":"30px","--news-description-title-line-height-desk":"46px","--news-description-title-line-height-mobile":"38px","--news-description-content-gap":"0px","--section-card-chip-margin":"0 0 10px","--news-description-subtitle-margin":"22px 0 0"},children:t.jsx(ot,{...n,fontSizeSubTitle:"18px",lineHeightSubTitle:"28px",cutSubtitle:!1,colorSubTitle:"black",isTitle:!0,paths:e.paths})})}},Oe={content:"_content_jrssz_1",contentWithinCard:"_contentWithinCard_jrssz_7",contentDate:"_contentDate_jrssz_13",dateInfo:"_dateInfo_jrssz_20",dot:"_dot_jrssz_30",contentTitle:"_contentTitle_jrssz_38",contentTextList:"_contentTextList_jrssz_47",contentButton:"_contentButton_jrssz_101",linkStyled:"_linkStyled_jrssz_107"},Rl={content:"_content_ifkxj_1"},ec=e=>t.jsx("section",{className:Rl.content,id:e.id,children:e.children}),tc=e=>e.replace(/<p>(\s|&nbsp;)+<\/p>/g,""),nc=e=>{const n=/src="\/(.*?)"/g;return e.replace(n,`src="${pt()}/$1"`)},fo={2:1,4:2,7:3,10:4,13:5};function ac(e){return e.replace(/<script[^>]*src=["']https:\/\/platform\.twitter\.com\/widgets\.js["'][^>]*><\/script>/gi,"")}const sc=async({itemList:e,slug:n,banners:a,texts:s})=>{if(!e||e.length===0||!e[0])return;const o=e[0].list?.items?.map(r=>{const i=tc(r.body.rendered);let l=nc(i);return l=ac(l),{...r,body:{...r.body,rendered:l}}});return t.jsx("section",{className:Oe.content,id:"block-notes-list",children:o?.map((r,i)=>t.jsxs(C.Fragment,{children:[t.jsx(ec,{id:`item-${i+1}`,children:t.jsxs("div",{className:Oe.contentWithinCard,children:[r.date>0&&t.jsxs("div",{className:Oe.contentDate,children:[t.jsx("span",{className:Oe.dot,style:{background:n==="liveblogs"?"var(--news-liveblog-timeline-datelink-dot-color)":"var(--common-black)"}}),t.jsx("p",{className:Oe.dateInfo,style:{color:n==="liveblogs"?"var(--news-liveblog-timeline-datelink-color)":"var(--common-black)"},children:En(r.date)})]}),t.jsx("p",{className:Oe.contentTitle,children:e[0]?.list.integrated?r.title:`${r.index}. ${r.title}`}),r.image&&t.jsx(pe,{preview:r.image,isLarge:!0}),t.jsx("div",{className:Oe.contentTextList,dangerouslySetInnerHTML:{__html:r.body.rendered}}),r.related&&t.jsx("div",{className:Oe.contentButton,children:t.jsx("a",{className:Oe.linkStyled,href:r.related??"",target:"”_blank",children:s.blockNoteList_readMore??"Leer Más"})})]})},i),fo[i]&&t.jsx(ne,{banners:a,name:"list_"+fo[i]},i)]},i))})},go={FaceBook:"facebook",Instagram:"instagram",WhatsApp:"whatsapp",TikTok:"tiktok",Youtube:"youtube",X:"x",Gnews:"gnews",Podcast:"podcast",Telegram:"telegram"};function oc({url:e}){return e&&e!==""&&t.jsxs(T,{href:e,className:re.googleProfileButton,children:[t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",children:t.jsx("path",{fill:"currentColor",d:"M15.583 9.083h-6.5v6.5H6.916v-6.5h-6.5V6.917h6.5v-6.5h2.167v6.5h6.5v2.166Z"})}),"Síguenos en",t.jsx(rc,{})]})}const rc=()=>t.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 272 92",width:"272",height:"92",children:[t.jsx("path",{fill:"#EA4335",d:"M115.75 47.18c0 12.77-9.99 22.18-22.25 22.18s-22.25-9.41-22.25-22.18C71.25 34.32 81.24 25 93.5 25s22.25 9.32 22.25 22.18zm-9.74 0c0-7.98-5.79-13.44-12.51-13.44S80.99 39.2 80.99 47.18c0 7.9 5.79 13.44 12.51 13.44s12.51-5.55 12.51-13.44z"}),t.jsx("path",{fill:"#FBBC05",d:"M163.75 47.18c0 12.77-9.99 22.18-22.25 22.18s-22.25-9.41-22.25-22.18c0-12.85 9.99-22.18 22.25-22.18s22.25 9.32 22.25 22.18zm-9.74 0c0-7.98-5.79-13.44-12.51-13.44s-12.51 5.46-12.51 13.44c0 7.9 5.79 13.44 12.51 13.44s12.51-5.55 12.51-13.44z"}),t.jsx("path",{fill:"#4285F4",d:"M209.75 26.34v39.82c0 16.38-9.66 23.07-21.08 23.07-10.75 0-17.22-7.19-19.66-13.07l8.48-3.53c1.51 3.61 5.21 7.87 11.17 7.87 7.31 0 11.84-4.51 11.84-13v-3.19h-.34c-2.18 2.69-6.38 5.04-11.68 5.04-11.09 0-21.25-9.66-21.25-22.09 0-12.52 10.16-22.26 21.25-22.26 5.29 0 9.49 2.35 11.68 4.96h.34v-3.61h9.25zm-8.56 20.92c0-7.81-5.21-13.52-11.84-13.52-6.72 0-12.35 5.71-12.35 13.52 0 7.73 5.63 13.36 12.35 13.36 6.63 0 11.84-5.63 11.84-13.36z"}),t.jsx("path",{fill:"#34A853",d:"M225 3v65h-9.5V3h9.5z"}),t.jsx("path",{fill:"#EA4335",d:"M262.02 54.48l7.56 5.04c-2.44 3.61-8.32 9.83-18.48 9.83-12.6 0-22.01-9.74-22.01-22.18 0-13.19 9.49-22.18 20.92-22.18 11.51 0 17.14 9.16 18.98 14.11l1.01 2.52-29.65 12.28c2.27 4.45 5.8 6.72 10.75 6.72 4.96 0 8.4-2.44 10.92-6.14zm-23.27-7.98l19.82-8.23c-1.09-2.77-4.37-4.7-8.23-4.7-4.95 0-11.84 4.37-11.59 12.93z"}),t.jsx("path",{fill:"#4285F4",d:"M35.29 41.41V32H67c.31 1.64.47 3.58.47 5.68 0 7.06-1.93 15.79-8.15 22.01-6.05 6.3-13.78 9.66-24.02 9.66C16.32 69.35.36 53.89.36 34.91.36 15.93 16.32.47 35.3.47c10.5 0 17.98 4.12 23.6 9.49l-6.64 6.64c-4.03-3.78-9.49-6.72-16.97-6.72-13.86 0-24.7 11.17-24.7 25.03 0 13.86 10.84 25.03 24.7 25.03 8.99 0 14.11-3.61 17.39-6.89 2.66-2.66 4.41-6.46 5.1-11.65l-22.49.01z"})]}),ic=async e=>{if(!e.news||!e.news.authors)return null;const{news:n,socials:a,texts:s}=e,o=n.authors.map(i=>i.internaluser?`<a href="${`/${e.paths.autor}/${i.name}`}">${i.fullname}</a>`:i.fullname).join(", "),r=i=>n.authors.length===1?-16:i===0?0:i*20;return n.config?.showauthor&&t.jsx("div",{className:re.content,children:t.jsxs("div",{className:re.avatarContent,children:[e.shareOnlyWhatsApp?t.jsxs("a",{className:re.whatsappLink,href:a[go.WhatsApp].url,rel:"noreferrer",target:"_blank",children:[t.jsxs("svg",{width:"30",height:"30",viewBox:"0 0 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t.jsx("g",{clipPath:"url(#clip0_2906_6960)",children:t.jsx("path",{d:"M25.6376 4.36364C22.8169 1.54545 19.0598 0 15.0628 0C6.82908 0 0.125619 6.67045 0.125619 14.8636C0.125619 17.4886 0.810811 20.0455 2.1241 22.2955L0 30L7.91397 27.9318C10.0952 29.1136 12.5504 29.7386 15.0514 29.7386C23.2851 29.7386 29.9886 23.0682 29.9886 14.875C29.9886 10.8977 28.4355 7.17045 25.6148 4.36364M15.0628 27.2273C12.8359 27.2273 10.6433 26.6364 8.74762 25.5L8.29083 25.2273L3.58584 26.4545L4.84202 21.8977L4.54511 21.4318C3.30034 19.4659 2.64941 17.1932 2.64941 14.8523C2.64941 8.04545 8.22231 2.5 15.0742 2.5C18.386 2.5 21.5036 3.78409 23.8561 6.125C26.1972 8.46591 27.4876 11.5682 27.4876 14.8636C27.4876 21.6818 21.9147 27.2159 15.0742 27.2159M21.8805 17.9773C21.5036 17.7955 19.6764 16.8977 19.3338 16.7727C18.9912 16.6477 18.74 16.5909 18.4888 16.9545C18.2375 17.3182 17.5295 18.1591 17.3011 18.4091C17.0841 18.6591 16.8671 18.6932 16.4903 18.5C16.1134 18.3068 14.9144 17.9205 13.4869 16.6591C12.3791 15.6705 11.6254 14.4545 11.4084 14.0909C11.1915 13.7273 11.3856 13.5227 11.5683 13.3295C11.7396 13.1591 11.9452 12.8977 12.1279 12.6818C12.3106 12.4659 12.3791 12.3068 12.5048 12.0568C12.6304 11.8068 12.5619 11.5909 12.4705 11.4091C12.3791 11.2273 11.6254 9.39773 11.3171 8.64773C11.0088 7.92045 10.7118 8.02273 10.472 8.01136C10.255 8.01136 10.0038 8 9.75257 8C9.50133 8 9.10164 8.09091 8.75904 8.46591C8.41644 8.84091 7.45718 9.73864 7.45718 11.5682C7.45718 13.3977 8.7933 15.1591 8.97602 15.4091C9.15874 15.6591 11.6026 19.4091 15.3483 21.0227C16.2391 21.4091 16.9357 21.6364 17.4724 21.8068C18.3632 22.0909 19.1854 22.0455 19.8249 21.9545C20.5443 21.8523 22.0289 21.0568 22.3487 20.1932C22.657 19.3295 22.657 18.5795 22.5657 18.4318C22.4743 18.2727 22.2231 18.1818 21.8462 18",fill:"#7AD16D"})}),t.jsx("defs",{children:t.jsx("clipPath",{id:"clip0_2906_6960",children:t.jsx("rect",{width:"30",height:"30",fill:"white"})})})]}),s.WhatsAppLinkJournalist]}):t.jsx("div",{style:{width:"100%"},"data-hydrate":"ShareButtons","data-props":encodeURIComponent(JSON.stringify({noteShare:e.noteShare})),children:t.jsx(Gs,{noteShare:e.noteShare})}),t.jsx(oc,{url:e.noteShare?.googleProfile??""}),t.jsxs("section",{className:re.journalistSection,children:[t.jsx("div",{className:re.imageContent,style:{width:`${n.authors?.length>2?n.authors?.length*30:n.authors?.length*35}px`},children:Array.isArray(n.authors)&&n.authors?.map(async(i,l)=>i.image?t.jsx("img",{fetchPriority:"low",loading:"lazy",alt:"autor",className:re.imageStyled,src:await te(i.image.sizes[0]?.url||""),style:{position:"absolute",left:`${r(l)}px`}},i.fullname):t.jsx("div",{style:{position:"absolute",left:`${r(l)}px`},className:re.contentIconStyled,children:e.autorIcon},i.fullname))}),o&&t.jsx("div",{className:re.journalistInfoLink,dangerouslySetInnerHTML:{__html:`${s.JournalistPrefix} <h3 style="padding:0px;">${o??"Redaccion"}${n.config?.showtime&&","}</h3> ${n.config?.showtime?En(n.info.date.modified):null}`}})]})]})})},yn={content:"_content_opb3u_1",journalistArticleContent:"_journalistArticleContent_opb3u_15",contentNews:"_contentNews_opb3u_35",noteSource:"_noteSource_opb3u_392"},lc={summaryContent:"_summaryContent_wsypg_1"},cc=async({summary:e})=>e&&e.rendered&&t.jsx("section",{className:lc.summaryContent,dangerouslySetInnerHTML:{__html:e.rendered}}),po=async({newsformated:e,internal:n})=>{if(!n)return;const a=new ge,s=e.preview.sizes,r=(await a.getNewsMultimedia({path:n,imagesizes:s?s[0]?.scale:"w:801,h:449,t:2;"}))?.data.data[0]?.gallery??[];return t.jsxs("div",{className:mn.content,children:[t.jsx(Ye,{slot_id:"header",fullPageWidth:!0,visibleItems:1,pagination:!0,cardGap:0,children:r&&r.map((i,l)=>t.jsx(pe,{preview:i,priorityHigh:!0},l))}),t.jsx("div",{className:mn.description,children:r&&r[0]?.description})]})};function dc(e){const n=e.children,a=`${e.slot_id}-`,s=e.visibleItems,o=e.cardGap??20;function r(l){const c=[],h=[];let d="",u=!0;for(let m=0;m<l;m++){const y=`[data-index="${m}"]:checked ~ .carrousel-pagination li:nth-child(${m+1}) {
49
+ h3.9V17C24.1,13.3,22.2,11.7,19.6,11.7z`})}),Al=e=>t.jsxs("svg",{width:"25",height:"21",viewBox:"0 0 25 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[t.jsx("path",{d:"M21.6424 1H3.33879C2.11855 1 1 2.01687 1 3.33879V17.0665C1 18.2867 2.01687 19.4053 3.33879 19.4053H21.6424C22.8626 19.4053 23.9812 18.3884 23.9812 17.0665V3.33879C23.9812 2.01687 22.8626 1 21.6424 1Z",stroke:"black",strokeWidth:"1.6"}),t.jsx("path",{d:"M21.6425 5.57591L12.5923 11.2704L3.33887 5.57591V3.33881L12.5923 8.93157L21.6425 3.33881V5.57591Z",fill:"black"})]}),wl=e=>t.jsxs("svg",{width:"24",height:"19",viewBox:"0 0 24 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[t.jsx("path",{d:"M20.8752 0.195801H2.96092C1.76664 0.195801 0.671875 1.19104 0.671875 2.48485V15.9206C0.671875 17.1149 1.66711 18.2096 2.96092 18.2096H20.8752C22.0695 18.2096 23.1643 17.2144 23.1643 15.9206V2.48485C23.1643 1.19104 22.0695 0.195801 20.8752 0.195801Z",fill:"black"}),t.jsx("path",{d:"M20.8752 4.67439L12.0176 10.2477L2.96094 4.67439V2.48486L12.0176 7.95868L20.8752 2.48486V4.67439Z",fill:"white"})]}),yl=e=>t.jsx("svg",{width:"13",height:"22",viewBox:"0 0 13 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{className:e.className,d:"M11.6659 1H8.99942C6.01924 1 4.0586 2.9084 4.0586 5.96183V8.25191H1.39213C1.15685 8.25191 1 8.40458 1 8.63359V11.916C1 12.145 1.15685 12.2977 1.39213 12.2977H4.0586V20.6183C4.0586 20.8473 4.21545 21 4.45073 21H7.97989C8.21516 21 8.37202 20.8473 8.37202 20.6183V12.2977H11.509C11.7443 12.2977 11.9012 12.145 11.9012 11.916V8.63359C11.9012 8.55725 11.8227 8.40458 11.7443 8.32824C11.6659 8.25191 11.5875 8.17557 11.4306 8.17557H8.29359V6.26718C8.29359 5.35115 8.52887 4.89313 9.78368 4.89313H11.5875C11.8227 4.89313 11.9796 4.74046 11.9796 4.51145V1.45802C12.058 1.15267 11.9012 1 11.6659 1Z",stroke:"black",strokeWidth:"1.6"})}),Cl=e=>t.jsx("svg",{width:"26",height:"25",viewBox:"0 0 22 23",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:t.jsx("path",{d:"M10 5C9.45 5 9 5.45 9 6V9H6C5.45 9 5 9.45 5 10C5 10.55 5.45 11 6 11H9V14C9 14.55 9.45 15 10 15C10.55 15 11 14.55 11 14V11H14C14.55 11 15 10.55 15 10C15 9.45 14.55 9 14 9H11V6C11 5.45 10.55 5 10 5ZM10 0C4.48 0 0 4.48 0 10C0 15.52 4.48 20 10 20C15.52 20 20 15.52 20 10C20 4.48 15.52 0 10 0ZM10 18C5.59 18 2 14.41 2 10C2 5.59 5.59 2 10 2C14.41 2 18 5.59 18 10C18 14.41 14.41 18 10 18Z",fill:"black"})}),bl={FaceBook:{url:e=>`https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(e)}`,icon:{outline:e=>t.jsx(yl,{className:e}),solid:e=>t.jsx(pl,{className:e})}},X:{url:e=>`https://twitter.com/intent/tweet?url=${encodeURIComponent(e)}`,icon:{outline:e=>t.jsx(kt,{className:e}),solid:e=>t.jsx(kt,{className:e})}},Whatsapp:{url:e=>`https://wa.me/?text=${encodeURIComponent(e)}`,icon:{outline:e=>t.jsx(qs,{className:e}),solid:e=>t.jsx(xs,{className:e})}},Email:{url:e=>`mailto:?body=${encodeURIComponent(e)}`,icon:{outline:e=>t.jsx(Al,{className:e}),solid:e=>t.jsx(wl,{className:e})}},LinkedIn:{url:e=>`https://www.linkedin.com/sharing/share-offsite/?url=${encodeURIComponent(e)}`,icon:{outline:e=>t.jsx(dn,{className:e}),solid:e=>t.jsx(dn,{className:e})}}};function Gs({noteShare:e}){const n=e&&e.url||(typeof window<"u"?window.location.href:"https://example.com");return e?t.jsxs("div",{className:re.socialNetworkSection,children:[e.options?.map(a=>{const s=bl[a];if(!s)return null;const o=e.variant==="outline"?s.icon.outline:s.icon.solid,r=s.url(n);return t.jsx(T,{href:r,target:"_blank",rel:"noopener noreferrer","aria-label":`Compartir en ${a}`,className:`${re.socialButton} ${re[`${a.toLowerCase()}Button`]??""} ${re[`${a.toLowerCase()}Styled`]}`,children:o("")},a)}),t.jsx("button",{type:"button","data-text":"Link copiado","data-active":"false","aria-label":"copy",className:[re.clipboardButton,"clipbtn-id"].join(" "),children:t.jsx(Bs,{})}),t.jsx("button",{type:"button","aria-label":"share",className:[re.clipboardButton,"sharebtn-id"].join(" "),children:t.jsx(Cl,{})})]}):null}const xe={content:"_content_r1co8_1",videoContent:"_videoContent_r1co8_20",articleSection:"_articleSection_r1co8_27",title:"_title_r1co8_42",article:"_article_r1co8_27",correspondent:"_correspondent_r1co8_75",iframeStyled:"_iframeStyled_r1co8_84",contentFrame:"_contentFrame_r1co8_94"},vl=e=>{const n=()=>e?.video.main.author?`${e?.video.main.author} - ${Ce(e.video.info.date.created)}`:e?.video.main.author;return t.jsx("div",{className:xe.content,children:t.jsx(at,{children:t.jsxs("div",{className:xe.videoContent,children:[t.jsx("p",{className:xe.title,children:e.video.main.title}),e.type==="vy"&&t.jsx("iframe",{className:xe.iframeStyled,src:`https://www.youtube.com/embed/${e.video.main.code}`,frameBorder:"0",allowFullScreen:!0}),e.type==="vf"&&t.jsx("iframe",{className:xe.iframeStyled,src:e.video.main.code,frameBorder:"0",allowFullScreen:!0}),e.type==="ve"&&t.jsx("div",{className:xe.contentFrame,dangerouslySetInnerHTML:{__html:e.video.main.code}}),t.jsxs("div",{className:xe.articleSection,children:[t.jsx("p",{className:xe.article,children:me(e.video.main.description)}),t.jsx("p",{className:xe.correspondent,children:n()})]})]})})})},Vn={content:"_content_wxhkd_1",linkStyled:"_linkStyled_wxhkd_9"},Et=e=>{const{currentPage:n,showNext:a,maxPages:s,pathname:o,query:r}=e,i=(l,c,h)=>{let d="";const u=c.split("/");return u.indexOf("page")!==-1&&u.splice(d.indexOf("page")-1,u.length-1),u.forEach((m,y)=>{y!==0&&(d+=`/${m}`)}),l==="next"?d+=`/page/${n+1}${h?`?query=${h}`:""}`:d+=`/page/${n-1}${h?`?query=${h}`:""}`};return(n>1||a&&n<s)&&t.jsxs("section",{className:Vn.content,children:[n>1&&t.jsx(T,{className:Vn.linkStyled,href:i("prev",o||"",r||""),children:e.texts.prevButtonText??"Anterior"}),a&&n<s&&t.jsx(T,{className:Vn.linkStyled,href:i("next",o||"",r||""),children:e.texts.nextButtonText??"Siguiente"})]})},hn={content:"_content_zal5g_1",contentGrid:"_contentGrid_zal5g_8",contentGrid4:"_contentGrid4_zal5g_17",contentGrid3:"_contentGrid3_zal5g_21"},un=e=>{const{grid:n=3}=e;return t.jsxs("section",{className:`${hn.content}`,children:[t.jsx("div",{className:`${hn.contentGrid} ${e.className?e.className:""} ${n===3?hn.contentGrid3:hn.contentGrid4} news-content`,children:e.children}),t.jsx(t.Fragment,{children:e.paginatorComponent})]})},It={content:"_content_15x47_1",newsDescription:"_newsDescription_15x47_15",image:"_image_15x47_41"},Ee=e=>{const{main:n,authors:a,info:s,preview:o,share:r,isVideo:i,config:l,overImage:c="default",isTitle:h,priorityHigh:d=!1,isLarge:u,paths:m}=e;return t.jsxs("section",{className:It.content,style:{...e.customSectionCardStyles},children:[t.jsx(T,{"aria-label":e.main?.title?.section,className:It.image,title:n?.title?.section,href:s?.link?.url,target:s?.link?.target,children:t.jsx(pe,{preview:o,isVideo:i,isLarge:u,priorityHigh:d})}),t.jsx("div",{className:It.newsDescription,children:t.jsx(ot,{main:n,authors:a,info:s,preview:o,share:r,config:l,overImage:c,isTitle:h,paths:m})})]})},lt={content:"_content_gwmse_1",boxInformation:"_boxInformation_gwmse_12",titleGradient:"_titleGradient_gwmse_30",sectionDescription:"_sectionDescription_gwmse_58",articule:"_articule_gwmse_83",linkStyled:"_linkStyled_gwmse_115"},Ut=e=>{const{isVideo:n,info:a,main:s,overImage:o="default",titleGradient:r=!1}=e;return t.jsxs("section",{className:lt.content,children:[t.jsx(T,{title:s?.title?.section,href:a.link.url,target:a.link.target,children:t.jsx(pe,{preview:e.preview,isVideo:n})}),t.jsxs("div",{className:[lt.boxInformation,r?lt.titleGradient:""].join(" "),style:{width:o!=="default"?"90%":"",left:o==="left"?0:o==="right"?"calc(10% - 1px)":"auto",top:o!=="default"?"-1rem":""},children:[e?.info?.section&&t.jsx(T,{className:[lt.sectionDescription].join(" "),href:e?.info?.section?.url,children:e?.info?.section?.name}),t.jsx("h2",{className:lt.articule,children:t.jsx(T,{className:lt.linkStyled,href:e?.info?.link?.url,target:e?.info?.link?.target,children:me(e.main?.title?.section,o!=="default"?60:75)})})]})]})},$s={content:"_content_kro73_1",contentLayout:"_contentLayout_kro73_5"},Wn=e=>t.jsx("div",{className:$s.content,children:t.jsx(at,{className:`${$s.contentLayout} ${e.className}`,children:e.children})}),ct={content:"_content_1nqra_1",before:"_before_1nqra_11",textContent:"_textContent_1nqra_22",title:"_title_1nqra_37",description:"_description_1nqra_46",linkStyled:"_linkStyled_1nqra_57"},_l=e=>{const n=e.logo;return t.jsxs("section",{className:ct.content,children:[e.backgroundImgURL&&t.jsx("img",{className:ct.before,src:e.backgroundImgURL,alt:""}),t.jsxs("div",{className:`${ct.textContent} error-text-content`,children:[t.jsx(n,{}),t.jsx("p",{className:ct.title,children:e.title}),t.jsx("p",{className:ct.description,children:e.description}),t.jsx(T,{className:ct.linkStyled,href:"/",children:e.buttonText??"Inicio"})]})]})},Tt={content:"_content_zxcog_1",contentLabel:"_contentLabel_zxcog_8",label:"_label_zxcog_13",required:"_required_zxcog_22",input:"_input_zxcog_28"},Nl=e=>t.jsxs("div",{className:Tt.content,children:[t.jsxs("div",{className:Tt.contentLabel,children:[t.jsx("label",{className:Tt.label,children:e.label}),e.required&&t.jsx("span",{className:Tt.required,children:"*"})]}),t.jsx("input",{className:Tt.input,...e})]}),xt={content:"_content_zgx5w_1",contentLabel:"_contentLabel_zgx5w_8",label:"_label_zgx5w_13",required:"_required_zgx5w_22",input:"_input_zgx5w_28"},Sl=e=>t.jsxs("div",{className:xt.content,children:[t.jsxs("div",{className:xt.contentLabel,children:[t.jsx("label",{className:xt.label,children:e.label}),e.required&&t.jsx("span",{className:xt.required,children:"*"})]}),t.jsxs("select",{className:xt.input,...e,children:[t.jsx("option",{value:"",children:"--Seleccione--"}),e.options.map((n,a)=>t.jsx("option",{value:n.value,children:n.label},a))]})]}),Yn={content:"_content_1mi9t_1",label:"_label_1mi9t_8",input:"_input_1mi9t_17"},kl=e=>t.jsxs("div",{className:Yn.content,children:[t.jsx("label",{className:Yn.label,children:e.label}),t.jsx("textarea",{className:Yn.input,...e})]}),Ge={boxInformation:"_boxInformation_achvw_1",textBox:"_textBox_achvw_30",contentBox:"_contentBox_achvw_40",liveBox:"_liveBox_achvw_50",dot:"_dot_achvw_72",sectionDescription:"_sectionDescription_achvw_97",articule:"_articule_achvw_110",description:"_description_achvw_137"},mn={content:"_content_8ehij_1",description:"_description_8ehij_23"},zs=e=>{let n="";return e.preview.description&&(n=e.preview.description),e.preview.copyright&&(n=`${n} ${e.preview.copyright}`),e.preview.photographer&&(n=`${n} ${e.preview.photographer}`),t.jsxs("div",{className:mn.content,children:[t.jsx(pe,{preview:e.preview,isLarge:!0,priorityHigh:!0}),n&&t.jsx("div",{className:mn.description,children:n})]})},Hs=e=>t.jsx(t.Fragment,{children:t.jsxs("div",{className:Ge.boxInformation,children:[t.jsx(zs,{preview:e.preview}),t.jsxs("div",{className:Ge.textBox,children:[t.jsxs("div",{className:Ge.contentBox,children:[e?.info?.section&&t.jsx(T,{className:Ge.sectionDescription,href:e?.info?.section?.url,children:e?.info?.section?.name}),t.jsxs("div",{className:Ge.liveBox,children:[t.jsx("span",{className:Ge.dot}),t.jsx("p",{children:"EN VIVO"})]})]}),t.jsx("h1",{className:Ge.articule,children:e.main?.title?.section}),e.config?.showsubtitle&&t.jsx("div",{className:Ge.description,style:{"--fontSizeSubTitle":e.fontSizeSubTitle,"--lineHeightSubTitle":e.lineHeightSubTitle},children:e.main.subtitle.striped})]})]})}),fn={content:"_content_oipiy_1",contentLine:"_contentLine_oipiy_17",contentText:"_contentText_oipiy_24",dateLink:"_dateLink_oipiy_37"},Fs=e=>t.jsx("section",{className:fn.content,children:e.itemList[0]?.list.items.map((n,a)=>t.jsxs("div",{className:fn.contentLine,children:[t.jsx(T,{className:fn.dateLink,href:`#item-${a+1}`,children:ya(n.date)}),t.jsx("div",{className:fn.contentText,children:(e.itemList[0]?.list.integrated,n.title)})]},a))}),we={content:"_content_v9pkc_1",contentInfo:"_contentInfo_v9pkc_11",imageStyled:"_imageStyled_v9pkc_19",contentIconStyled:"_contentIconStyled_v9pkc_30",name:"_name_v9pkc_54",email:"_email_v9pkc_63",description:"_description_v9pkc_79",contenSocialNetwork:"_contenSocialNetwork_v9pkc_91",socialIcon:"_socialIcon_v9pkc_101"},Vs=async e=>{const{autor:n,autorIcon:a}=e,s=a;return t.jsx("section",{className:`${we.content} ${e.className?e.className:null}`,children:t.jsxs("div",{className:we.contentInfo,children:[n.info.image?t.jsx("img",{fetchPriority:"low",loading:"lazy",alt:"",className:we.imageStyled,src:await te(n.info.image.sizes[0]?.url||"")}):t.jsx("div",{className:we.contentIconStyled,children:t.jsx(s,{})}),t.jsx("h1",{className:we.name,children:n.info.fullname}),n.addtional.USER_SHOWEMAIL&&t.jsx("p",{className:we.email,children:n.info.email}),n.addtional.USER_SHOWBIO&&t.jsx("p",{className:we.description,children:n.addtional.USER_MIBIO}),t.jsxs("div",{className:we.contenSocialNetwork,children:[n.addtional.USER_USERFB&&t.jsx("a",{href:n.addtional.USER_USERFB,target:"_blank",rel:"noreferrer",children:t.jsx(Hn,{className:we.socialIcon})}),n.addtional.USER_USERIG&&t.jsx("a",{href:n.addtional.USER_USERIG,target:"_blank",rel:"noreferrer",children:t.jsx(Fn,{className:we.socialIcon})}),n.addtional.USER_USERTWT&&t.jsx("a",{href:n.addtional.USER_USERTWT,target:"_blank",rel:"noreferrer",children:t.jsx(kt,{className:we.socialIcon})}),n.addtional.USER_USERLIN&&t.jsx("a",{href:n.addtional.USER_USERLIN,target:"_blank",rel:"noreferrer",children:t.jsx(dn,{className:we.socialIcon})})]})]})})},fe={content:"_content_1mv2w_1",contentInfo:"_contentInfo_1mv2w_13",contentAuthor:"_contentAuthor_1mv2w_26",imageStyled:"_imageStyled_1mv2w_33",contentIconStyled:"_contentIconStyled_1mv2w_42",name:"_name_1mv2w_63",email:"_email_1mv2w_71",description:"_description_1mv2w_81",contenSocialNetwork:"_contenSocialNetwork_1mv2w_92",socialIcon:"_socialIcon_1mv2w_102"},Ws=async e=>{const{autor:n,autorIcon:a}=e,s=a;return t.jsx("section",{className:fe.content,children:t.jsxs("div",{className:fe.contentInfo,children:[n.info.image?t.jsx("img",{fetchPriority:"low",loading:"lazy",className:fe.imageStyled,src:await te(n.info.image.sizes[0]?.url||"")}):t.jsx("div",{className:fe.contentIconStyled,children:t.jsx(s,{})}),t.jsxs("div",{className:fe.contentAuthor,children:[t.jsx("h1",{className:fe.name,children:n.info.fullname}),n.addtional.USER_SHOWEMAIL&&t.jsx("p",{className:fe.email,children:n.info.email}),n.addtional.USER_SHOWBIO&&t.jsx("p",{className:fe.description,children:n.addtional.USER_MIBIO}),t.jsxs("div",{className:fe.contenSocialNetwork,children:[n.addtional.USER_USERFB&&t.jsx("a",{href:n.addtional.USER_USERFB,target:"_blank",rel:"noreferrer",children:t.jsx(Hn,{className:fe.socialIcon})}),n.addtional.USER_USERIG&&t.jsx("a",{href:n.addtional.USER_USERIG,target:"_blank",rel:"noreferrer",children:t.jsx(Fn,{className:fe.socialIcon,style:{padding:"4px"}})}),n.addtional.USER_USERTWT&&t.jsx("a",{href:n.addtional.USER_USERTWT,target:"_blank",rel:"noreferrer",children:t.jsx(kt,{className:fe.socialIcon})}),n.addtional.USER_USERLIN&&t.jsx("a",{href:n.addtional.USER_USERLIN,target:"_blank",rel:"noreferrer",children:t.jsx(dn,{className:fe.socialIcon})})]})]})]})})},Ys={content:"_content_jg6i2_1",bannerSection:"_bannerSection_jg6i2_25"},Kn=e=>t.jsxs("section",{className:Ys.content,children:[e.children,t.jsxs("div",{className:Ys.bannerSection,children:[e.bannerTop,t.jsx(rn,{content:e.ranking,title:e.readestTitle,paths:e.paths,customNewsDescriptionStyles:{"--news-description-title-size-desk":"16px","--news-description-title-line-height-desk":"22px","--news-description-title-size-mobile":"16px","--news-description-title-line-height-mobile":"22px"}}),e.banner]})]}),_e={content:"_content_1jqwg_1",header:"_header_1jqwg_21",videos:"_videos_1jqwg_46",videoContent:"_videoContent_1jqwg_53",articleSection:"_articleSection_1jqwg_60",contentLayoutVideoSection:"_contentLayoutVideoSection_1jqwg_74",sectionVideoList:"_sectionVideoList_1jqwg_82",iframeStyled:"_iframeStyled_1jqwg_155",contentFrame:"_contentFrame_1jqwg_164",relatedTitle:"_relatedTitle_1jqwg_189"},Jn={content:"_content_1dj0q_1",linkImage:"_linkImage_1dj0q_12",playStyled:"_playStyled_1dj0q_19"},El=async e=>{const n={...e,main:{...e.main,title:{...e.main.title,article:me(e.main.title.article,60)}}};return e&&e.info?t.jsxs("section",{className:Jn.content,children:[t.jsx("a",{className:Jn.linkImage,target:e?.info?.link?.target,title:e?.main?.title?.section,href:e.info.link.url,children:t.jsxs("div",{style:{position:"relative"},children:[t.jsx("img",{src:await te(e.preview.sizes[0]?.url||"")}),t.jsx(rt,{className:Jn.playStyled})]})}),t.jsx("div",{children:t.jsx(ot,{...n,paths:e.paths})})]}):null},Il=e=>t.jsx("div",{className:_e.content,children:t.jsxs(at,{className:_e.contentLayoutVideoSection,children:[t.jsxs("a",{className:_e.header,href:"/",children:[t.jsx("svg",{width:"21",height:"20",viewBox:"0 0 21 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.6055 4.86193C12.8659 5.12228 12.8659 5.54439 12.6055 5.80474L8.41026 10L12.6055 14.1953C12.8659 14.4556 12.8659 14.8777 12.6055 15.1381C12.3452 15.3984 11.9231 15.3984 11.6627 15.1381L6.99604 10.4714C6.73569 10.2111 6.73569 9.78894 6.99604 9.52859L11.6627 4.86193C11.9231 4.60158 12.3452 4.60158 12.6055 4.86193Z",fill:"white"})}),"VOLVER A VIDEOS"]}),t.jsxs("div",{className:_e.videos,children:[t.jsxs("div",{className:_e.videoContent,style:e.mainVideoStyles,children:[e.type==="vy"&&t.jsx("iframe",{className:_e.iframeStyled,src:`https://www.youtube.com/embed/${e.video?.main?.code}`,frameBorder:"0",allowFullScreen:!0}),e.type==="vf"&&t.jsx("iframe",{className:_e.iframeStyled,src:e.video?.main?.code,frameBorder:"0",allowFullScreen:!0}),e.type==="ve"&&t.jsx("div",{className:_e.contentFrame,dangerouslySetInnerHTML:{__html:e.video?.main?.code}}),t.jsx("div",{className:_e.articleSection,children:t.jsx(ot,{...Re(e.video,!0,!!e.video.main.description),paths:e.paths})})]}),t.jsxs("div",{className:_e.sectionVideoList,style:e.listVideoStyles,children:[e.banner&&t.jsx(ne,{banners:e.banner.banners,name:e.banner.bannerName}),e.relatedName&&t.jsx("h2",{className:_e.relatedTitle,children:e.relatedName}),Array.isArray(e.videoList)&&e.videoList.map((n,a)=>C.createElement(El,{...Re(n,!0,!1),key:a,paths:e.paths}))]})]})]})}),qe={content:"_content_gcte1_1",titleContent:"_titleContent_gcte1_24",title:"_title_gcte1_24",startLine:"_startLine_gcte1_88",line:"_line_gcte1_93",bottomLine:"_bottomLine_gcte1_99",childrenContent:"_childrenContent_gcte1_118",readMore:"_readMore_gcte1_131"},ae=C.forwardRef((e,n)=>{const{isTitle:a=!1,isOpinion:s=!1}=e,o=a?t.jsx("h1",{className:qe.title,children:e.title}):t.jsx("h2",{className:qe.title,children:e.title});return t.jsxs("section",{className:qe.content,children:[e.title&&t.jsxs("div",{className:[qe.titleContent,e.className??""].join(" "),"data-after":`${s}`,children:[t.jsx("hr",{className:qe.startLine}),e.titleUrl?t.jsx(T,{href:e.titleUrl,children:o}):o,t.jsx("hr",{className:qe.line}),e.titleUrl&&t.jsx(T,{className:qe.readMore,href:e.titleUrl?.toString()??""})]}),e.title&&t.jsx("hr",{className:[qe.bottomLine,e.className??""].join(" ")}),t.jsx("div",{className:qe.childrenContent,ref:n,children:e.children})]})}),Zn=e=>t.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"var(--header-icons)",xmlns:"http://www.w3.org/2000/svg",...e,children:t.jsx("path",{d:"M10.5283 0.562859C13.1487 0.49118 15.6972 1.42576 17.6494 3.17516C19.6016 4.92465 20.8095 7.3565 21.0244 9.96911C21.2392 12.5816 20.4447 15.1772 18.8047 17.222L18.6641 17.3978L18.8232 17.556L23.1475 21.8451H23.1484C23.3137 22.016 23.4062 22.2451 23.4062 22.4828C23.4062 22.7194 23.3143 22.9469 23.1504 23.1175C23.0653 23.2033 22.964 23.2712 22.8525 23.3177C22.7409 23.3642 22.6209 23.388 22.5 23.3881C22.3791 23.3881 22.2591 23.3642 22.1475 23.3177C22.0358 23.2712 21.9338 23.2034 21.8486 23.1175L17.5547 18.8236L17.3965 18.6644L17.2217 18.805C15.1768 20.4451 12.5812 21.2395 9.96875 21.0248C7.35614 20.8099 4.9243 19.602 3.1748 17.6498C1.4254 15.6976 0.490821 13.149 0.5625 10.5287C0.634205 7.90823 1.70691 5.41454 3.56055 3.56091C5.41418 1.70727 7.90787 0.634563 10.5283 0.562859ZM14.0537 3.057C12.516 2.42011 10.8239 2.25385 9.19141 2.57848C7.55873 2.90324 6.05893 3.7051 4.88184 4.88219C3.70474 6.05929 2.90288 7.55909 2.57812 9.19176C2.25349 10.8242 2.41975 12.5163 3.05664 14.0541C3.69368 15.592 4.77311 16.9066 6.15723 17.8314C7.54131 18.7562 9.16841 19.2504 10.833 19.2504C13.0652 19.2504 15.2058 18.363 16.7842 16.7845C18.3626 15.2061 19.25 13.0656 19.25 10.8334C19.25 9.16877 18.7558 7.54167 17.8311 6.15759C16.9062 4.77347 15.5917 3.69404 14.0537 3.057Z",fill:"var(--header-icons)",stroke:"var(--header-icons)",strokeWidth:"0.5"})}),gn=e=>t.jsx("svg",{width:"12",height:"13",viewBox:"0 0 12 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.862254 3.39448C1.1226 3.13413 1.54471 3.13413 1.80506 3.39448L6.00033 7.58974L10.1956 3.39448C10.4559 3.13413 10.878 3.13413 11.1384 3.39448C11.3987 3.65483 11.3987 4.07694 11.1384 4.33729L6.47173 9.00396C6.21138 9.26431 5.78927 9.26431 5.52892 9.00396L0.862254 4.33729C0.601905 4.07694 0.601905 3.65483 0.862254 3.39448Z",fill:e.fill??"#7B888A"})}),Z={drawerStyled:"_drawerStyled_1dhzk_1",sidebarCustom:"_sidebarCustom_1dhzk_6",accordionStyled:"_accordionStyled_1dhzk_24",accordionHeading:"_accordionHeading_1dhzk_35",accordionSummeryStyled:"_accordionSummeryStyled_1dhzk_44",linkStyled:"_linkStyled_1dhzk_71",subLinkStyled:"_subLinkStyled_1dhzk_91",inputContent:"_inputContent_1dhzk_113",buttonContent:"_buttonContent_1dhzk_114",inputStyled:"_inputStyled_1dhzk_124",buscar:"_buscar_1dhzk_140",buttonStyled:"_buttonStyled_1dhzk_149",accordionDetailsStyled:"_accordionDetailsStyled_1dhzk_164",footerSlider:"_footerSlider_1dhzk_179",socialMedia:"_socialMedia_1dhzk_190",copyRights:"_copyRights_1dhzk_209",icon:"_icon_1dhzk_220"},Ul=({sidebar:e,socials:n,copyrigth:a,sidebarExtra:s,searchKeyWord:o})=>t.jsxs("aside",{className:Z.drawerStyled,id:"sidebar-expandable",style:{"--header-icons":"var(--search-input-icons)"},children:[t.jsx("input",{type:"checkbox",id:"side-bar-state"}),t.jsxs("section",{className:Z.sidebarCustom,children:[t.jsx("div",{className:Z.buttonContent,children:t.jsx("label",{className:Z.buttonStyled,htmlFor:"side-bar-state",children:t.jsx(it,{className:Z.icon})})}),t.jsx("div",{className:Z.inputContent,children:t.jsxs(T,{href:"/buscar",className:Z.inputStyled,children:[t.jsxs("p",{className:Z.buscar,children:[o,"..."]}),t.jsx(Zn,{color:"var(--search-input-icons)"})]})}),t.jsxs("div",{style:{display:"flex",flexDirection:"column",justifyContent:"space-between",height:"100%"},children:[t.jsxs("div",{children:[s,e.map((r,i)=>t.jsxs("div",{className:Z.accordionStyled,children:[t.jsx("input",{type:"checkbox",style:{display:"none"},id:"accordion_"+i}),t.jsx("h3",{className:Z.accordionHeading,children:Array.isArray(r.subitem)?t.jsxs("label",{className:Z.accordionSummeryStyled,htmlFor:"accordion_"+i,children:[r.link?t.jsx(T,{className:`${Z.linkStyledAccordion} ${Z.linkStyled}`,href:r.link?r.link:void 0,target:r.target,children:r.description}):t.jsx("div",{children:r.description}),t.jsx(gn,{width:13,height:13,fill:"var(--side-bar-arrow-color)"})]}):t.jsx(T,{className:Z.linkStyled,href:r.link?r.link:void 0,target:r.target,children:r.description})}),Array.isArray(r.subitem)&&t.jsx("div",{className:Z.accordionDetailsStyled,style:{"--max-height":r.subitem.length*45+"px"},children:r.subitem.map((l,c)=>t.jsx(T,{className:Z.subLinkStyled,href:l.link?l.link:void 0,target:l.target,children:l.description},c))})]},i))]}),t.jsxs("div",{className:Z.footerSlider,children:[t.jsx("div",{className:Z.socialMedia,children:Object.keys(n).map(r=>n[r]?.show&&t.jsx("a",{target:"_blank",rel:"noreferrer","aria-label":n[r].title+" link",className:Z.linkSocialNetwork,href:n[r].url,children:cn[r]({className:Z.icon})},r))}),t.jsx("p",{className:Z.copyRights,children:a})]})]})]})]}),Ks=e=>t.jsxs("svg",{width:"30",height:"30",viewBox:"0 0 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[t.jsx("path",{d:"M5 22.5H25C25.6875 22.5 26.25 21.9375 26.25 21.25C26.25 20.5625 25.6875 20 25 20H5C4.3125 20 3.75 20.5625 3.75 21.25C3.75 21.9375 4.3125 22.5 5 22.5ZM5 16.25H25C25.6875 16.25 26.25 15.6875 26.25 15C26.25 14.3125 25.6875 13.75 25 13.75H5C4.3125 13.75 3.75 14.3125 3.75 15C3.75 15.6875 4.3125 16.25 5 16.25ZM3.75 8.75C3.75 9.4375 4.3125 10 5 10H25C25.6875 10 26.25 9.4375 26.25 8.75C26.25 8.0625 25.6875 7.5 25 7.5H5C4.3125 7.5 3.75 8.0625 3.75 8.75Z",fill:e.color}),t.jsx("path",{d:"M5 22.5H25C25.6875 22.5 26.25 21.9375 26.25 21.25C26.25 20.5625 25.6875 20 25 20H5C4.3125 20 3.75 20.5625 3.75 21.25C3.75 21.9375 4.3125 22.5 5 22.5ZM5 16.25H25C25.6875 16.25 26.25 15.6875 26.25 15C26.25 14.3125 25.6875 13.75 25 13.75H5C4.3125 13.75 3.75 14.3125 3.75 15C3.75 15.6875 4.3125 16.25 5 16.25ZM3.75 8.75C3.75 9.4375 4.3125 10 5 10H25C25.6875 10 26.25 9.4375 26.25 8.75C26.25 8.0625 25.6875 7.5 25 7.5H5C4.3125 7.5 3.75 8.0625 3.75 8.75Z",fill:e.color})]}),qt={content:"_content_1k52x_1",chipStyled:"_chipStyled_1k52x_17",headLine:"_headLine_1k52x_17",live:"_live_1k52x_25",closeLiveStyled:"_closeLiveStyled_1k52x_88"},Js=e=>{const{alertZone:n,id:a="close-alert"}=e,s=()=>t.jsx(T,{className:qt.headLine,href:n?.data[0]?.info.link.url,target:n?.data[0]?.info.link.target,title:n?.data[0]?.main.title.home,children:n?.data[0]?.main?.title.home??""});return t.jsxs(t.Fragment,{children:[t.jsx("input",{type:"checkbox",id:a,style:{display:"none"},defaultChecked:!(n&&n?.data&&n?.data[0]?.main?.title.home)}),n&&n?.data&&n?.data[0]?.main?.title.home&&t.jsxs("div",{id:"alert-chip",className:qt.content,style:e.forceShow?{display:"flex",position:"sticky",top:100}:{},children:[t.jsxs("div",{className:qt.live,children:[t.jsx("div",{className:qt.chipStyled,children:n?.entity?.description}),e.forceShow&&t.jsx(s,{}),t.jsx("label",{htmlFor:a,children:t.jsx(it,{className:qt.closeLiveStyled})})]}),t.jsx(s,{})]})]})},Be={content:"_content_18yq5_1",linkStyled:"_linkStyled_18yq5_14",linkSocialNetwork:"_linkSocialNetwork_18yq5_28",title:"_title_18yq5_49",tabs:"_tabs_18yq5_60",socialNetwork:"_socialNetwork_18yq5_68",icon:"_icon_18yq5_78",facebook:"_facebook_18yq5_84",youtube:"_youtube_18yq5_88",x:"_x_18yq5_92",instagram:"_instagram_18yq5_96",gnews:"_gnews_18yq5_100",tiktok:"_tiktok_18yq5_104",whatsapp:"_whatsapp_18yq5_108"},Tl=e=>{const{cintillo:n,tapeTitle:a,socials:s}=e,o="",r=n?.findIndex(i=>i.link===o)??0;return(Array.isArray(n)||e.socialIcons)&&t.jsxs("section",{className:Be.content,children:[Array.isArray(n)&&t.jsxs("div",{className:`${Be.tabs} header-page-tape-content`,children:[a!==""&&t.jsx("p",{className:Be.title,children:`${a}`}),n&&n[r]&&t.jsx(T,{className:Be.linkStyled,target:n[r]?.target,href:n[r]?.link,style:{color:n[r]?.link===o?"var(--header-tape-active-link)":"var(--header-tape-icons)",fontWeight:n[r]?.link===o?"700":"400"},children:n[r]?.description},r),n&&n.map((i,l)=>{if(l!==r)return t.jsx(T,{className:Be.linkStyled,href:i?.link,style:{color:i?.link===o?"var(--header-tape-active-link)":"var(--header-tape-color)",fontWeight:i?.link===o?"700":"400"},children:i?.description},l)})]}),t.jsx("div",{className:Be.socialNetwork,children:Object.keys(s).map(i=>s[i]?.show&&t.jsx("a",{target:"_blank",rel:"noreferrer","aria-label":s[i].title+" link",className:Be.linkSocialNetwork,href:s[i].url,children:cn[i]({className:[Be.icon,Be[i]??""].join(" ")})},i))})]})},ye={headerStyled:"_headerStyled_t61zq_1",headerContent:"_headerContent_t61zq_14",iconContent:"_iconContent_t61zq_25",menuButton:"_menuButton_t61zq_34",logoStyled:"_logoStyled_t61zq_66",buttonSection:"_buttonSection_t61zq_94",buttonSectionSearch:"_buttonSectionSearch_t61zq_109",headLineContent:"_headLineContent_t61zq_130",headLineTitle:"_headLineTitle_t61zq_143",headLine:"_headLine_t61zq_130",hasAlertZone:"_hasAlertZone_t61zq_196"},xl=e=>{const{alertZone:n}=e;return t.jsxs("header",{className:ye.headerStyled,children:[e.socialIcons&&t.jsx(Tl,{socialIcons:e.socialIcons,cintillo:e.cintillo,tapeTitle:e.tapeTitle,socials:e.socials}),t.jsxs("div",{className:`${ye.headerContent} center-mobile-header-icon`,children:[t.jsx(ln,{id:"button-app",className:ye.menuButton,toggledrawerevent:"true","aria-label":"menu","aria-labelledby":"menu",title:"menu",children:t.jsx(Ks,{className:ye.startIcon,color:"var(--header-icons)",width:27,height:27})}),t.jsx("div",{className:ye.iconContent,children:t.jsx(T,{href:"/","aria-label":"Home",className:"icon header-logo-link-sticky",style:{display:"flex"},children:C.createElement("span",{className:ye.logoStyled},e.icon)})}),!e.showAlertPop&&n?.data&&t.jsxs("div",{className:ye.headLineContent,children:[t.jsx("div",{className:`${ye.headLineTitle} headLineTitle`,children:n.entity.description?`${n.entity.description}`:""}),t.jsx(T,{className:ye.headLine,href:n.data[0]?.info.link.url,target:n.data[0]?.info.link.target,title:n.data[0]?.main.title.home,children:me(n.data[0]?.main.title.home??"",120)})]}),t.jsxs("div",{style:e.showAlertPop?{marginLeft:"auto"}:{},className:[ye.buttonSection,n?.data?ye.hasAlertZone:"","search-button"].join(" "),children:[t.jsx(T,{href:e.searchLink?e.searchLink:"/buscar","aria-label":e.searchKeyWord,className:`${ye.buttonSectionSearch} search-button-icon`,style:{display:"flex"},children:t.jsx(Zn,{width:28,height:28,color:"currentColor"})}),e.rightZone]})]}),!e.showAlertPop&&t.jsx(Js,{alertZone:n,forceShow:e.showAlertPop})]})},Le={ul:"_ul_j3aqc_1",li:"_li_j3aqc_10",liBefore:"_liBefore_j3aqc_18",ulContent:"_ulContent_j3aqc_33",contentModal:"_contentModal_j3aqc_44",linkStyled:"_linkStyled_j3aqc_56",itemLink:"_itemLink_j3aqc_81"},ql=e=>{const{items:n}=e;return t.jsx("ul",{className:Le.ul,children:n.map((a,s)=>t.jsxs("li",{className:`${Le.liBefore} ${Le.li}`,children:[a.link?t.jsxs(T,{"aria-label":a.description,className:Le.linkStyled,href:a.link?a.link:void 0,target:a.target,children:[a.description,Array.isArray(a.subitem)&&t.jsx(gn,{})]}):t.jsxs("span",{"aria-label":a.description,className:Le.linkStyled,children:[a.description,Array.isArray(a.subitem)&&t.jsx(gn,{})]}),Array.isArray(a.subitem)&&t.jsx("ul",{className:Le.ulContent,children:t.jsx("div",{className:Le.contentModal,children:a.subitem.map((o,r)=>t.jsx("li",{className:Le.li,children:t.jsx(T,{className:Le.itemLink,"aria-label":o.description,href:o.link?o.link:void 0,target:o.target,children:o.description})},r))})})]},s))})},ie={headerStyled:"_headerStyled_ksxbt_1",headerContent:"_headerContent_ksxbt_23",menuButtonSection:"_menuButtonSection_ksxbt_33",menuButton:"_menuButton_ksxbt_33",buttonSection:"_buttonSection_ksxbt_84",buttonSectionSearch:"_buttonSectionSearch_ksxbt_101",hasAlertZone:"_hasAlertZone_ksxbt_111",buttonText:"_buttonText_ksxbt_130",logoContent:"_logoContent_ksxbt_140",logoStyled:"_logoStyled_ksxbt_148",headLineContent:"_headLineContent_ksxbt_172",headLineTitle:"_headLineTitle_ksxbt_187",menuSection:"_menuSection_ksxbt_203",headLine:"_headLine_ksxbt_172",line:"_line_ksxbt_255"},Bl=e=>{const{menu:n,alertZone:a}=e;return t.jsx("header",{className:ie.headerStyled,style:{top:e.cintillo||e.socialIcons?40:0},children:t.jsxs("div",{style:e.showAlertPop?{gap:0}:{},className:[ie.headerContent,a?.data?ie.hasAlertZone:""].join(" "),children:[t.jsx("div",{className:ie.menuButtonSection,children:t.jsxs(ln,{className:ie.menuButton,id:"button-app",toggledrawerevent:"true","aria-label":"menu","aria-labelledby":"menu",title:"menu",children:[t.jsx(Ks,{color:"var(--header-icons)",width:27,height:27}),t.jsx("p",{className:ie.buttonText,style:{lineHeight:0},children:e.menuText})]})}),t.jsx("div",{className:ie.logoContent,children:t.jsx(T,{href:"/","aria-label":"Home",className:"header-logo-link",children:C.createElement("span",{className:`${ie.logoStyled}`},e.icon)})}),t.jsxs("div",{className:ie.buttonSection,children:[t.jsx(T,{href:e.searchLink?e.searchLink:"/buscar",style:{display:"flex"},className:ie.buttonSectionSearch,"aria-label":e.searchKeyWord,children:t.jsx(Zn,{width:28,height:28,color:"currentColor"})}),e.rightZone]}),!e.showAlertPop&&a?.data?t.jsxs("div",{className:ie.headLineContent,children:[t.jsx("p",{className:`${ie.headLineTitle} headLineTitle`,children:a.entity.description?`${a.entity.description}`:""}),t.jsx(T,{className:ie.headLine,href:a.data[0]?.info.link.url,target:a.data[0]?.info.link.target,title:a.data[0]?.main.title.home,children:me(a.data[0]?.main.title.home??"",120)})]}):t.jsx("div",{className:ie.line}),t.jsx("div",{className:ie.menuSection,style:e.showAlertPop?{"--showAlertPop":"0px"}:{},children:Array.isArray(n)&&t.jsx(ql,{items:n})})]})})},Xn={childrenContent:"_childrenContent_wqlb4_1",childrenContentAux:"_childrenContentAux_wqlb4_12",op2:"_op2_wqlb4_25"},Ll=e=>{const{alertZone:n,children:a,sidebar:s}=e;return t.jsxs(t.Fragment,{children:[t.jsx(xl,{...e}),!e.showOnlyStickyHeader&&t.jsx(Bl,{...e}),t.jsxs("div",{className:[Xn.childrenContent,e.showAlertPop?Xn.op2:"",n?.data?Xn.childrenContentAux:""].join(" "),style:e.showOnlyStickyHeader?{"--hasAlertMargin":"3.6rem !important"}:{},id:"content-layout",children:[e.showAlertPop&&t.jsx(Js,{alertZone:n,forceShow:e.showAlertPop,id:"static-alert-chip"}),a]}),t.jsx(Ul,{sidebarExtra:e.sidebarExtra,searchKeyWord:e.searchKeyWord,sidebar:s,socials:e.socials,copyrigth:e.copyrigth})]})},dt={content:"_content_16ydf_1",tags:"_tags_16ydf_10",chipStyled:"_chipStyled_16ydf_20",tagLink:"_tagLink_16ydf_47",tagStyled:"_tagStyled_16ydf_53"},Dl=e=>{const n=a=>{const s=a.name.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/ñ/g,"n").replace(/Ñ/g,"n").replace(/[^\w\s]/gi,"").replaceAll(" ","-").toLowerCase();return e.paths.tema?`/${e.paths.tema}/${s}-t${a.id}`:`/${s}-t${a.id}`};return t.jsx("section",{className:dt.content,children:Array.isArray(e.tags)&&t.jsxs("div",{className:dt.tags,children:[t.jsx("p",{className:dt.tagStyled,children:e.title?e.title:"Tags:"}),e.tags.map((a,s)=>a.approved?t.jsx(T,{href:n(a),children:t.jsx("div",{className:`${dt.chipStyled} ${dt.tagLink}`,children:a.name})},s):t.jsx("div",{className:dt.chipStyled,children:a.name},s))]})})},Ie={contentBox:"_contentBox_1rkkg_1",content:"_content_1rkkg_1",imageStyled:"_imageStyled_1rkkg_16",contentIconStyled:"_contentIconStyled_1rkkg_23",avatarContent:"_avatarContent_1rkkg_43",journalistSection:"_journalistSection_1rkkg_50",journalistInfo:"_journalistInfo_1rkkg_56",socialNetworkSection:"_socialNetworkSection_1rkkg_70",article:"_article_1rkkg_83"},Ml=async e=>{const{autor:n}=e;return n.addtional.USER_SHOWBIO&&t.jsx("section",{className:Ie.contentBox,children:t.jsxs("div",{className:Ie.content,children:[t.jsxs("div",{className:Ie.avatarContent,children:[t.jsx(T,{className:Ie.journalistInfo,href:`/${e.paths.autor}/${n.info.name}`,children:n.info.image?t.jsx("img",{fetchPriority:"low",loading:"lazy",alt:"autor-image",className:Ie.imageStyled,src:await te(n.info.image.sizes[0]?.url||"")}):t.jsx("div",{className:Ie.contentIconStyled,children:e.autorIcon()})}),t.jsxs("section",{className:Ie.journalistSection,children:[t.jsx("h3",{className:Ie.journalistInfo,children:t.jsx(T,{href:`/${e.paths.autor}/${n.info.name}`,children:n.info.fullname})}),t.jsxs("section",{className:Ie.socialNetworkSection,children:[n.addtional.USER_USERFB&&t.jsx("a",{href:n.addtional.USER_USERFB,target:"_blank","aria-label":n.addtional.USER_MIBIO,rel:"noreferrer",children:t.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M16.7266 4H14.545C12.1067 4 10.5025 5.52672 10.5025 7.96947V9.80153H8.32083C8.12833 9.80153 8 9.92366 8 10.1069V12.7328C8 12.916 8.12833 13.0382 8.32083 13.0382H10.5025V19.6947C10.5025 19.8779 10.6308 20 10.8233 20H13.7108C13.9033 20 14.0316 19.8779 14.0316 19.6947V13.0382H16.5983C16.7908 13.0382 16.9191 12.916 16.9191 12.7328V10.1069C16.9191 10.0458 16.855 9.92366 16.7908 9.8626C16.7266 9.80153 16.6625 9.74046 16.5341 9.74046H13.9675V8.21374C13.9675 7.48092 14.16 7.1145 15.1866 7.1145H16.6625C16.855 7.1145 16.9833 6.99237 16.9833 6.80916V4.36641C17.0475 4.12214 16.9191 4 16.7266 4Z",stroke:"black",strokeWidth:"1.4"})})}),n.addtional.USER_USERIG&&t.jsx("a",{href:n.addtional.USER_USERIG,target:"_blank","aria-label":n.addtional.USER_MIBIO,rel:"noreferrer",children:t.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t.jsxs("g",{clipPath:"url(#clip0_281_2357)",children:[t.jsx("path",{d:"M7.98634 4.06233C10.9335 4.1651 14.0152 3.89192 16.947 4.05106C19.1239 4.16908 20.8447 5.87246 20.9992 8.04131V17.0111C20.8646 19.1408 19.1378 20.8608 17.0113 21H8.04335C5.91354 20.8654 4.19406 19.1388 4.05551 17.0111C4.18345 14.0751 3.88383 10.9919 4.05353 8.07313C4.17682 5.95269 5.86648 4.21616 7.98634 4.06233ZM7.9532 5.4859C6.65331 5.64503 5.63713 6.68072 5.48201 7.97964L5.47804 17.0442C5.62586 18.3902 6.69175 19.4518 8.04136 19.5784L17.0445 19.5764C18.3901 19.4319 19.4514 18.3611 19.578 17.0131L19.576 8.00882C19.4321 6.67277 18.3788 5.6205 17.0445 5.47662L7.9532 5.4859Z",fill:"black"}),t.jsx("path",{d:"M15.527 9.52595C17.7019 11.7008 16.868 15.4802 13.9752 16.5079C10.6708 17.6815 7.47508 14.6354 8.47999 11.2771C9.38614 8.24892 13.2851 7.28484 15.5263 9.52662L15.527 9.52595ZM12.1894 9.72288C9.96615 9.94898 8.93936 12.6602 10.3771 14.3629C11.8149 16.0656 14.5877 15.4769 15.2168 13.3796C15.8458 11.2824 14.2529 9.51269 12.1894 9.72288Z",fill:"black"}),t.jsx("path",{d:"M17.0868 6.87507C18.5955 6.84324 18.4874 9.24614 16.8939 8.96965C15.7213 8.76609 15.8227 6.90159 17.0868 6.87507Z",fill:"black"})]}),t.jsx("defs",{children:t.jsx("clipPath",{id:"clip0_281_2357",children:t.jsx("rect",{width:"17",height:"17",fill:"white",transform:"translate(4 4)"})})})]})}),n.addtional.USER_USERTWT&&t.jsx("a",{href:n.addtional.USER_USERTWT,target:"_blank","aria-label":n.addtional.USER_MIBIO,rel:"noreferrer",children:t.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M3.43242 4.23888L10.0354 13.0628L3.39062 20.2389H4.88316L10.6981 13.9583L15.3966 20.2389H20.4832L13.51 10.9135L19.6951 4.23291H18.2026L12.8473 10.018L8.51898 4.23291H3.43242V4.23888ZM5.62943 5.33739H7.96973L18.2921 19.1404H15.9518L5.62943 5.33739Z",fill:"#010101"})})}),n.addtional.USER_USERLIN&&t.jsx("a",{href:n.addtional.USER_USERLIN,target:"_blank","aria-label":n.addtional.USER_MIBIO,rel:"noreferrer",children:t.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t.jsx("path",{d:"M13.1553 9.97173C13.2123 9.98635 13.2208 9.9478 13.2536 9.92189C13.9389 9.38958 14.1885 9.05464 15.1143 8.85195C17.735 8.27844 20.2954 9.68265 20.4618 12.5449C20.6046 15.0084 20.3504 17.6121 20.4618 20.0903C20.4316 20.4372 20.1892 20.6425 19.8557 20.6718C18.9876 20.7475 18.0154 20.6133 17.1361 20.6704C16.8583 20.6465 16.5825 20.4578 16.5609 20.1574C16.4875 18.1631 16.6637 16.0916 16.5642 14.1066C16.5334 13.4979 16.462 12.9835 15.9182 12.6353C14.805 11.9215 13.5333 12.6346 13.4495 13.9405C13.3197 15.9488 13.5484 18.1006 13.4521 20.1235C13.4383 20.4491 13.1795 20.6392 12.8768 20.6698C11.917 20.7675 10.8058 20.5967 9.82899 20.6718C9.59116 20.6478 9.35988 20.5422 9.2793 20.2989V9.41284C9.35006 9.20815 9.53219 9.08654 9.7353 9.04467C10.6604 9.10581 11.7061 8.95363 12.6161 9.04068C12.8126 9.05929 13.1553 9.2786 13.1553 9.49059V9.97239V9.97173ZM9.84668 20.1062H12.8768L12.926 20.0564V13.6766C12.926 12.7821 13.9657 11.877 14.8103 11.7999C16.2163 11.6717 17.0464 12.6253 17.1191 13.9763C17.2252 15.9468 17.0418 18.0115 17.1178 19.9919L17.1689 20.1062H19.8551L19.9062 19.9919L19.9042 12.5808C19.6992 9.46068 16.1671 8.36948 13.8924 10.104L12.6318 11.4005V9.60622H9.84733V20.1062H9.84668Z",fill:"black",stroke:"black",strokeWidth:"0.5"}),t.jsx("path",{d:"M4.6294 9.04917C5.38612 8.92822 6.41671 9.11629 7.2016 9.04917C7.53181 9.13755 7.79847 9.39274 7.8666 9.73698L7.88102 19.9233C7.84564 20.243 7.56326 20.5387 7.26581 20.6284C6.93888 20.7261 5.19219 20.7095 4.78926 20.667C4.38633 20.6244 4.10854 20.3958 3.99061 20.015L3.9834 9.75626C3.99781 9.43062 4.31885 9.09967 4.6294 9.04917ZM4.72702 9.61338C4.60319 9.64926 4.53243 9.75692 4.53833 9.88717L4.54685 19.8834C4.59729 20.0502 4.72767 20.0901 4.88426 20.1061C5.31012 20.1493 6.64078 20.1659 7.03781 20.0988C7.18064 20.0748 7.32085 19.9884 7.32478 19.825L7.31626 9.86392C7.29464 9.73831 7.20554 9.62933 7.07647 9.60872L4.72702 9.61404V9.61338Z",fill:"black",stroke:"black",strokeWidth:"0.5"}),t.jsx("path",{d:"M8.16428 6.20159C8.16428 7.45495 7.16252 8.47105 5.92687 8.47105C4.69121 8.47105 3.68945 7.45495 3.68945 6.20159C3.68945 4.94824 4.69121 3.93213 5.92687 3.93213C7.16252 3.93213 8.16428 4.94824 8.16428 6.20159ZM7.60345 6.20358C7.60345 5.2639 6.85263 4.50165 5.92556 4.50165C4.99849 4.50165 4.24766 5.26324 4.24766 6.20358C4.24766 7.14393 4.99849 7.90552 5.92556 7.90552C6.85263 7.90552 7.60345 7.14393 7.60345 6.20358Z",fill:"black",stroke:"black",strokeWidth:"0.5"})]})})]})]})]}),n.addtional.USER_SHOWBIO&&t.jsx("p",{className:Ie.article,dangerouslySetInnerHTML:{__html:`${n.addtional.USER_MIBIO} <a aria-label="${n.info.name}" href="/${e.paths.autor}/${n.info.name}">${e.texts.authorViewMore??"Ver más"}</a>`}})]})})},$e={content:"_content_vmnac_1",imageStyled:"_imageStyled_vmnac_20",contentIconStyled:"_contentIconStyled_vmnac_21",contentCard:"_contentCard_vmnac_31",contentInfo:"_contentInfo_vmnac_70",fullName:"_fullName_vmnac_76",LearnMoreLink:"_LearnMoreLink_vmnac_83"},Pl=async e=>{const{news:n,texts:a}=e;return n.config?.showauthor&&t.jsx("div",{className:$e.content,children:Array.isArray(n.authors)&&n.authors?.map(async s=>t.jsxs("div",{className:$e.contentCard,children:[s.image?t.jsx("img",{fetchPriority:"low",loading:"lazy",className:$e.imageStyled,src:await te(s.image.sizes[0]?.url||"")},s.fullname):t.jsx("div",{className:$e.contentIconStyled,children:e.autorIcon},s.fullname),t.jsxs("div",{className:$e.contentInfo,children:[s.internaluser?t.jsx("a",{className:$e.fullName,href:`/${e.paths.autor}/${s.name}`,children:s.fullname}):t.jsx("p",{className:$e.fullName,children:s.fullname}),s.internaluser&&t.jsx("a",{className:$e.LearnMoreLink,href:`/${e.paths.autor}/${s.name}`,children:a.JournalistGroupLink})]})]},`author-${s.firstname}`))})},De={content:"_content_1j0pj_1",contentNews:"_contentNews_1j0pj_10",linkTitle:"_linkTitle_1j0pj_27",tag:"_tag_1j0pj_35",tagmx:"_tagmx_1j0pj_55",titular:"_titular_1j0pj_70",correspondent:"_correspondent_1j0pj_85",correspondentLink:"_correspondentLink_1j0pj_96",description:"_description_1j0pj_107"},ht=e=>{const n=()=>{if(e?.config?.showtime&&e.config?.showauthor)return`${e?.authors[0]?.fullname} - ${Ce(e.info?.date?.modified)}`;if(e.config?.showauthor)return e?.authors[0]?.fullname;if(e?.config?.showtime)return Ce(e.info?.date?.modified)};return t.jsxs("section",{className:`${De.content} destacado-super-content`,children:[t.jsx(T,{href:e?.info?.link?.url,target:e?.info?.link?.target,style:{"--heightImageOverwrite":e.heightImageOverwrite?e.heightImageOverwrite:"51.8%","--heightImageOverwriteMobile":e.heightImageOverwriteMobile?e.heightImageOverwriteMobile:"491px","--fontSizeImageNewsTitleMobile":e.isVertical?"20px":"1.75rem","--lineHeightImageNewsTitleMobile":e.isVertical?"26px":"36px"},children:t.jsx(pe,{preview:e.preview,isLarge:!0,BackDropAuxHeigthMobile:"513px",priorityHigh:!0})}),t.jsxs("div",{className:De.contentNews,style:{"--widthTextContent":e.textPosition==="start"?"100%":"80%"},children:[t.jsx(T,{className:De.tagmx,href:e?.info?.section?.url,children:e?.info?.section?.name}),t.jsxs("div",{style:{position:"relative"},children:[t.jsx(T,{className:De.tag,href:e?.info?.section?.url,children:e?.info?.section?.name}),t.jsx(T,{className:De.linkTitle,href:e?.info?.link?.url,target:e?.info?.link?.target,children:t.jsx("h1",{className:De.titular,style:{"--titlePosition":e.textPosition==="start"?"initial":"center"},children:e?.main?.title?.home})})]}),e.config?.showsubtitle&&t.jsx("div",{className:De.description,dangerouslySetInnerHTML:{__html:e.main.subtitle.striped}}),e?.config?.showtime&&e.config?.showauthor&&t.jsx(t.Fragment,{children:e.authors[0]?.internaluser?t.jsx(T,{href:`/${e.paths?.autor??"autor"}/${e?.authors[0]?.name}`,className:De.correspondent,children:n()}):t.jsx("p",{className:De.correspondentLink,children:n()})})]})]})},Zs=e=>{const{main:n,authors:a,info:s,preview:o,isVideo:r,config:i,itemReverseOrder:l,imageSize:c,showSuper:h}=e;return t.jsxs("section",{className:Fi.content,children:[h?t.jsx("section",{style:{...e.customSectionCardStyles},children:t.jsx(ht,{main:n,authors:a,info:s,preview:o,isVideo:r,config:i,paths:e.paths})}):t.jsx(Ee,{...e,main:n,authors:a,info:s,preview:o,isVideo:r,config:i,priorityHigh:!0}),e.banners&&t.jsx(ne,{banners:e.banners,name:"main_block_"+(e.rightOnlyBanner?1:2)}),!e.rightOnlyBanner&&t.jsx(Ds,{block:e.block,itemReverseOrder:l,priorityHigh:!0,imageSize:c,customNewsDescriptionStyles:e.customNewsDescriptionStyles,paths:e.paths})]})},Rn={content:"_content_1dcf7_1",firstSection:"_firstSection_1dcf7_10",secondSection:"_secondSection_1dcf7_16"},Ol=({content:e,customLargeSection:n,customSmallSection:a,paths:s})=>{const o=e[0];return Array.isArray(e)&&e.length>0&&o&&t.jsxs("section",{className:Rn.content,children:[t.jsx("div",{style:n,className:Rn.firstSection,children:t.jsx(ht,{...o,textPosition:"start",heightImageOverwrite:"512px",heightImageOverwriteMobile:"270px",paths:s})}),t.jsx("div",{style:a,className:Rn.secondSection,children:e.map((r,i)=>i>0&&C.createElement(ht,{...r,key:i,textPosition:"start",heightImageOverwrite:"256px",heightImageOverwriteMobile:"270px",paths:s}))})]})},Xs={content:"_content_wsx1m_1",firstSection:"_firstSection_wsx1m_8"},Ql=({content:e,customLargeSection:n,customSlimSection:a,paths:s})=>Array.isArray(e)&&e.length>0&&t.jsx("section",{className:Xs.content,children:e.map((o,r)=>r===0?t.jsx("div",{style:n,className:Xs.firstSection,children:t.jsx(ht,{...o,isVertical:!0,textPosition:"start",heightImageOverwrite:"512px",heightImageOverwriteMobile:"270px",paths:s})},r):t.jsx("section",{style:a,children:C.createElement(ht,{...o,key:r,isVertical:!0,textPosition:"start",heightImageOverwrite:"512px",heightImageOverwriteMobile:"270px",paths:s})},r))}),Bt={content:"_content_1n73e_1",sectionDescription:"_sectionDescription_1n73e_13",title:"_title_1n73e_33",subtitle:"_subtitle_1n73e_47",linkStyled:"_linkStyled_1n73e_58"},Rs=e=>t.jsxs("div",{className:Bt.content,children:[e?.mainNew?.info.section&&t.jsx(T,{className:Bt.sectionDescription,href:e?.mainNew?.info?.section?.url,children:e?.mainNew?.info?.section?.name}),t.jsx(T,{className:Bt.title,href:e?.mainNew?.info?.link?.url,target:e?.mainNew?.info?.link?.target,children:e?.mainNew?.main?.title.home}),e?.mainNew?.main?.subtitle?.rendered&&t.jsx("p",{className:Bt.subtitle,children:e?.mainNew?.main?.subtitle?.striped}),e.goTo&&t.jsx(T,{href:e.goTo.url,className:Bt.linkStyled,children:e.goTo.description})]}),ea={headerSection:"_headerSection_drjnj_1",headerSectionLink:"_headerSectionLink_drjnj_12",newsContent:"_newsContent_drjnj_17"},eo=e=>{const{content:n,title:a,isVideo:s}=e;if(!n||!n[0]||n.length===0)return;const o=e.slot_id&&e.slot_id!=="Nota_1",r={...n[0],main:{...n[0].main,title:{...n[0].main.title,section:o?n[0].main.title.home:n[0].main.title.section}}},i=n.slice(1);return r&&i&&t.jsxs(ae,{title:a,titleUrl:e.titleUrl,children:[t.jsxs("div",{className:ea.headerSection,children:[t.jsx(Rs,{mainNew:r,goTo:e.goTo}),t.jsx(T,{className:ea.headerSectionLink,href:r?.info?.link?.url,target:r?.info?.link?.target,children:t.jsx(pe,{preview:r.preview})})]}),t.jsxs("div",{className:ea.newsContent,children:[t.jsx("div",{className:"banner-context",style:{order:1},children:e.banner}),Array.isArray(i)&&i.map((l,c)=>{const h={...l,main:{...l.main,title:{...l.main.title,section:o?l.main.title.home:l.main.title.section}}};return t.jsx("div",{style:{order:c},children:t.jsx(Ee,{...h,isVideo:s,paths:e.paths})},c)})]})]})},Me={content:"_content_1stvq_1",autorContent:"_autorContent_1stvq_8",image:"_image_1stvq_24",contentIcon:"_contentIcon_1stvq_25",boxInformationContent:"_boxInformationContent_1stvq_47",autorName:"_autorName_1stvq_53",time:"_time_1stvq_85",comment:"_comment_1stvq_98",title:"_title_1stvq_107"},pn=async e=>{const{data:n,autorIcon:a}=e,s=a,o=()=>n?.config?.showtime?`${Ce(n.info?.date?.modified)}`:"",r=t.jsxs("div",{className:Me.autorContent,children:[Array.isArray(n?.authors)&&Array.isArray(n?.authors[0]?.image?.sizes)&&n?.authors[0]?.image?.sizes?.length>0?t.jsx("img",{fetchPriority:"low",loading:"lazy",className:Me.image,src:await te(n?.authors[0]?.image?.sizes[0]?.url||""),alt:n?.authors[0]?.fullname}):t.jsx("div",{className:Me.contentIcon,children:t.jsx(s,{})}),t.jsx("p",{className:Me.autorName,children:me(n?.authors[0]?.fullname??"Redacción",18)}),t.jsx("p",{className:Me.time,children:o()})]});return t.jsxs("div",{className:Me.content,children:[n?.authors[0]?.internaluser?t.jsx(T,{href:n.authors[0]?.internaluser?`/${e.paths.autor}/${n?.authors[0]?.name}`:"#",children:r}):r,t.jsxs("div",{className:Me.boxInformationContent,children:[t.jsx(T,{className:Me.title,href:n?.info?.link?.url,target:n?.info?.link?.target,children:n?.main?.title?.home}),t.jsx("p",{className:Me.comment,children:me(n?.main?.subtitle?.striped||"")})]})]})},ut={content:"_content_1d7mg_1",boxPosition:"_boxPosition_1d7mg_8",contentFlex:"_contentFlex_1d7mg_21",bannerContent:"_bannerContent_1d7mg_29",bannerContentAux:"_bannerContentAux_1d7mg_40"};function jl(e){const n=new Array(e.length),a=e.length/2;for(let s=0;s<e.length;s++)s%2===0?n[Math.floor(s/2)]=e[s]:n[a+Math.floor(s/2)]=e[s];return n}const Gl=e=>{const{isOpinion:n=!1}=e,a=r=>t.jsx("div",{className:ut.boxPosition+" banner-context",style:{order:2},children:t.jsx("div",{className:ut.bannerContentAux,children:t.jsx("div",{style:{position:"absolute",height:"270px",top:"0"},children:e.banner})})},r),s=[];for(let r=0;r<e.news.length;r++){const i=e.news[r];r===2&&s.push(a(r)),i&&s.push(t.jsx("div",{className:ut.boxPosition,style:{order:r},children:t.jsx(pn,{data:i,autorIcon:e.autorIcon,paths:e.paths})},`description-block-2-odd-${r}`))}const o=s.length%2===0?jl(s):s;return t.jsx("section",{style:e.customStyles,children:t.jsx(ae,{title:e.title,titleUrl:e.titleUrl,isOpinion:n,children:t.jsxs("div",{className:ut.content,children:[t.jsx("div",{className:ut.contentFlex,children:o}),t.jsx("div",{className:ut.bannerContent,children:e.halfPageBanner})]})})})},to={content:"_content_w9viv_1",title:"_title_w9viv_10"},$l=e=>{const{showTitle:n=!0}=e;return t.jsxs("div",{className:to.content,children:[n&&t.jsx("p",{className:to.title,children:"Editorial"}),t.jsx(ot,{...e,info:{...e.info,section:{name:"",slug:"",url:""}}})]})},mt={content:"_content_1nd2h_1",newsContent:"_newsContent_1nd2h_8",boxPosition:"_boxPosition_1nd2h_17",bannerContent:"_bannerContent_1nd2h_23",bannerContentAux:"_bannerContentAux_1nd2h_33"},zl=e=>{const{news:n}=e;return Array.isArray(n)&&t.jsxs("div",{className:mt.content,children:[t.jsxs("div",{className:mt.newsContent,children:[e.bannerArray&&e.bannerArray.map((a,s)=>t.jsx("div",{className:mt.boxPosition+" banner-context",style:{order:2+5*s},children:t.jsx("div",{className:mt.bannerContentAux,children:t.jsx("div",{style:{position:"absolute",height:"270px",top:"0"},children:a})})},s)),n.map((a,s)=>t.jsx("div",{className:mt.boxPosition,style:{order:s},children:t.jsx(Ee,{...a,share:e.share,paths:e.paths})},s))]}),t.jsx("div",{className:mt.bannerContent,children:e.halfPageBanner})]})},Hl=e=>t.jsxs(t.Fragment,{children:[t.jsx(Os,{className:"display-on-lower-900px",...e}),t.jsx(Qs,{...e})]}),An={newsContent:"_newsContent_gd57q_1",newsContentWithLines:"_newsContentWithLines_gd57q_8",newsContentWithoutLines:"_newsContentWithoutLines_gd57q_13",contentSeparator:"_contentSeparator_gd57q_18"},no=e=>{const{content:n}=e;if(!n||n.length===0)return;const a=i=>e.hasLines&&(i+1)%3!==0?An.contentSeparator:"",s=[];let o=0,r=1;for(let i=0;i<n.length;i++){e.banners&&e.bannerPositionIndex?.includes(i)&&(s.push(t.jsx("section",{className:a(o),children:e.banners?.some(d=>d.key===`${e.slot_id}_${r}`)&&t.jsx(ne,{banners:e.banners,name:`${e.slot_id}_${r}`})},o)),o++,r++);const l=e.isVideo?Re(n[i],e.showVideoTime,e.showVideosubtitle):n[i];if(!l)continue;const c=e.slot_id&&e.slot_id!=="Nota_1",h={...l,main:{...l.main,title:{...l.main.title,section:c?l.main.title.home:l.main.title.section}}};s.push(t.jsx("section",{className:a(o),children:t.jsx(Ee,{...h,isVideo:e.isVideo,paths:e.paths})},o)),o++}return s.length===2&&s.push(t.jsx("div",{},o)),t.jsx("div",{className:`${e.hasLines?An.newsContentWithLines:An.newsContentWithoutLines} ${An.newsContent}`,children:s})},ta=e=>t.jsx(ae,{title:e.title,titleUrl:e.titleUrl,children:t.jsx(no,{content:e.content,paths:e.paths,slot_id:e.slot_id,hasLines:e.hasLines,bannerPositionIndex:e.bannerPositionIndex,isVideo:e.isVideo,banners:e.banners,showVideoTime:e.showVideoTime,showVideosubtitle:e.showVideosubtitle})}),ao={newsContent:"_newsContent_1sb62_1",contentSeparator:"_contentSeparator_1sb62_8"},so=e=>{const{content:n,title:a}=e;if(!(!n||n.length===0||!Array.isArray(n)))return t.jsx(ae,{title:a,titleUrl:e.titleUrl,children:t.jsx("div",{className:`${ao.newsContent} ${e.hasLines?ao.contentSeparator:""}`,children:n?.map((s,o)=>{const r=e.slot_id&&e.slot_id!=="Nota_1",i={...s,main:{...s.main,title:{...s.main.title,section:r?s.main.title.home:s.main.title.section}}};return t.jsx("section",{children:t.jsx(Ee,{...i,share:e.share,paths:e.paths})},o)})})})},na={newsContent:"_newsContent_1gbse_1",contentSeparator:"_contentSeparator_1gbse_8",newsContentWhitoutLine:"_newsContentWhitoutLine_1gbse_29"},oo=e=>{const{content:n,title:a}=e;if(!(!n||n.length===0))return t.jsx(ae,{title:a,titleUrl:e.titleUrl,children:t.jsx("div",{className:`${na.newsContent} ${e.hasLines?na.contentSeparator:na.newsContentWhitoutLine}`,children:n.map((s,o)=>{const r=e.slot_id&&e.slot_id!=="Nota_1",i={...s,main:{...s.main,title:{...s.main.title,section:r?s.main.title.home:s.main.title.section}}};return t.jsx("section",{children:t.jsx(Ee,{...i,share:e.share,paths:e.paths})},o)})})})},aa={headerSection:"_headerSection_1m1sp_3",headerSectionLink:"_headerSectionLink_1m1sp_16",newsContent:"_newsContent_1m1sp_29"},ro=e=>{const{content:n,title:a,isVideo:s=!0}=e;if(!n||n.length===0)return;const o=n[0],r=e.slot_id&&e.slot_id!=="Nota_1",i=n.slice(1);return o&&i&&t.jsxs(ae,{title:a,titleUrl:e.titleUrl,children:[t.jsxs("div",{className:aa.headerSection,children:[t.jsx(Rs,{goTo:e.goTo,mainNew:Re(o)}),t.jsx(T,{className:aa.headerSectionLink,href:o?.info?.link.url,target:o?.info?.link.target,"aria-label":"Video",children:t.jsx(pe,{preview:{sizes:o?.main?.image.sizes,description:o?.main?.image.description},isVideo:s,isLarge:!0})})]}),t.jsxs("div",{className:aa.newsContent,children:[t.jsx("div",{className:"banner-context",style:{order:1},children:e.banner}),Array.isArray(i)&&i.map((l,c)=>{const h=Re(l),d={...h,main:{...h.main,title:{...h.main.title,section:r?h.main.title.home:h.main.title.section}}};return t.jsx("div",{style:{order:c},children:C.createElement(Ee,{...d,isVideo:s,key:c,paths:e.paths})},c)})]})]})},Lt={content:"_content_cnul3_1",linkImage:"_linkImage_cnul3_30",sectionDescription:"_sectionDescription_cnul3_42",dateText:"_dateText_cnul3_61",textContent:"_textContent_cnul3_72"},Fl=async e=>{const{showNewsLikeTitle:n=!1}=e;return e&&e.info?t.jsxs("section",{className:Lt.content,style:{"--heightImageOverwrite":"100%"},children:[t.jsx(T,{className:Lt.linkImage,target:e?.info?.link?.target,title:e.main?.title?.section,href:n?e.info.link.url:e?.info?.section?.url,children:t.jsx(pe,{preview:e.preview})}),t.jsxs("div",{className:Lt.textContent,children:[t.jsx(T,{className:Lt.sectionDescription,target:e?.info?.link?.target,href:n?e.info.link.url:e?.info?.section?.url,children:me((n?e?.main?.title?.section:e?.info?.section?.name)??"",45)}),t.jsx("p",{className:Lt.dateText,children:Ce(e?.info?.date?.modified)})]})]}):null},io={content:"_content_yx3zm_1",contentSeparator:"_contentSeparator_yx3zm_7"},sa={newsContent:"_newsContent_1uamf_1",contentSeparator:"_contentSeparator_1uamf_8",hasLinesBlock:"_hasLinesBlock_1uamf_40"},lo=e=>{if(!e.content||e.content.length===0)return;const n=e.slot_id&&e.slot_id!=="Nota_1";return t.jsx(ae,{title:e.title,children:t.jsx("div",{className:`${io.content} ${e.hasLines?io.contentSeparator:""}`,style:{gap:e.hasLines?"30px":"0px"},children:Array.isArray(e.content)&&e.content?.map((a,s)=>{const o={...a,main:{...a.main,title:{...a.main.title,section:n?a.main.title.home:a.main.title.section}}};return t.jsx("section",{className:e.hasLines?sa.hasLinesBlock:"",children:C.createElement(Fl,{...o,key:s,showNewsLikeTitle:e.showNewsLikeTitle})},s)})})})},co=e=>{const{content:n,title:a,slot_id:s}=e,o=e.slot_id&&e.slot_id!=="Nota_1";return n&&n.length!==0&&t.jsx(ae,{title:a,titleUrl:e.titleUrl,children:t.jsx(Ye,{slot_id:s,cardWidth:e.cardWidth,cardGap:e.cardGap,visibleItems:e.visibleItems,pagination:e.pagination,children:n.map((r,i)=>{const l={...r,main:{...r.main,title:{...r.main.title,section:o?r.main.title.home:r.main.title.section}}};return t.jsx("div",{style:{"--heightImageOverwrite":e.heightImageOverwrite,"--heightImageOverwriteMobile":e.heightImageOverwriteMobile},children:t.jsx(Ut,{...l,paths:e.paths})},i)})})})},ze={content:"_content_1mj79_1",imageStyled:"_imageStyled_1mj79_14",contentIcon:"_contentIcon_1mj79_23",boxInformation:"_boxInformation_1mj79_44",comment:"_comment_1mj79_51",title:"_title_1mj79_60",authorName:"_authorName_1mj79_81"},Vl=async e=>{const{data:n}=e;return t.jsxs("div",{className:ze.content,children:[Array.isArray(n.authors)&&n?.authors[0]?.image?t.jsx("img",{fetchPriority:"low",loading:"lazy",className:ze.imageStyled,src:await te(n?.authors[0]?.image?.sizes[0]?.url||""),alt:n?.authors[0]?.fullname}):t.jsx("div",{className:ze.contentIcon,children:e.autorIcon}),t.jsxs("div",{className:ze.boxInformation,children:[t.jsx("p",{className:ze.authorName,children:n?.authors[0]?.internaluser?t.jsx(T,{href:n.authors[0]?.internaluser?`/${e.paths.autor}/${n?.authors[0]?.name}`:"#",children:n?.authors[0]?.fullname??"Redacción"}):n?.authors[0]?.fullname??"Redacción"}),t.jsx("p",{className:ze.title,children:t.jsx(T,{className:ze.linkStyled,href:n?.info?.link?.url,target:n?.info?.link?.target,children:me(n?.main?.title?.home,40)})}),t.jsx("p",{className:ze.comment,children:n?.main?.subtitle?.striped})]})]})},ho=e=>{const n=e.slot_id&&e.slot_id!=="Nota_1";return t.jsx(ae,{titleUrl:e.titleUrl,title:e.title,children:t.jsx(Ye,{slot_id:e.slot_id,cardGap:31,cardWidth:344,visibleItems:3,children:e.content&&e.content.map((a,s)=>{const o={...a,main:{...a.main,title:{...a.main.title,section:n?a.main.title.home:a.main.title.section}}};return t.jsx(Vl,{autorIcon:e.autorIcon,data:o,paths:e.paths},s)})})})},Pe={content:"_content_1elhb_1",newsContentSection:"_newsContentSection_1elhb_5",itemContent:"_itemContent_1elhb_10",ItemCustomContent:"_ItemCustomContent_1elhb_16"},wn=e=>{const{item:n,option:a}=e;switch(a){case"ediciones":return t.jsx("div",{className:Pe.ItemCustomContent});case"columnistasnacionales":return t.jsx("div",{className:Pe.ItemCustomContent,children:t.jsx(pn,{data:n,autorIcon:e.autorIcon,paths:e.paths})});case"columnistaslocales":return t.jsx("div",{className:Pe.ItemCustomContent,children:t.jsx(pn,{data:n,autorIcon:e.autorIcon,paths:e.paths})});case"columnistas":return t.jsx("div",{className:Pe.ItemCustomContent,children:t.jsx(pn,{data:n,autorIcon:e.autorIcon,paths:e.paths})});default:return t.jsx("div",{className:Pe.ItemCustomContent,children:t.jsx(Ee,{...n,paths:e.paths})})}},Wl=e=>{const{data:n,currentPage:a,banners:s,slug:o,ranking:r,pathname:i,texts:l={}}=e,c=[3,8,13],h={3:1,8:2,13:3};switch(e.option){case"op1":return t.jsx(Kn,{ranking:r,readestTitle:l.readestTitle??"",paths:e.paths,bannerTop:t.jsx(ne,{banners:s??[],name:"right_1"}),banner:t.jsx(ne,{banners:s??[],name:"right_2"}),children:t.jsx("section",{className:Pe.content,children:n.length>0?t.jsx(un,{className:[Pe.newsContentSection,"padding-0"].join(" "),paginatorComponent:t.jsx(Et,{texts:l,pathname:i,query:"",currentPage:a,maxPages:e.PAGINATION_MAX_PAGES,showNext:!(n.length<e.NEWS_PER_SECTION)}),children:Array.isArray(n)&&n?.map((d,u)=>t.jsxs(C.Fragment,{children:[c.includes(u+1)&&t.jsx("div",{className:Pe.itemContent+" banner-context",children:t.jsx(ne,{banners:s??[],name:`block_2_${h[u+1]}`})}),t.jsx(wn,{autorIcon:e.autorIcon,item:d,option:o,paths:e.paths},u)]},u))}):t.jsx("div",{style:{width:"100%",display:"flex",flexDirection:"column",justifyContent:"center",gap:"2rem"},children:t.jsx("p",{style:{fontWeight:"var(--fw)",width:"100%",fontSize:"18px",lineHeight:"26px",textAlign:"center"},children:l.sectionNotResultMessage})})})});case"op2":return t.jsx(t.Fragment,{children:n.length>0?t.jsx(un,{className:"padding-0",paginatorComponent:t.jsx(Et,{texts:l,pathname:i,query:"",currentPage:a,maxPages:e.PAGINATION_MAX_PAGES,showNext:!(n.length<e.NEWS_PER_SECTION)}),children:Array.isArray(n)&&n?.map((d,u)=>t.jsxs(C.Fragment,{children:[c.includes(u+1)&&t.jsx("div",{className:Pe.itemContent,children:t.jsx(ne,{banners:s??[],name:`block_2_${h[u+1]}`})}),t.jsx(wn,{autorIcon:e.autorIcon,item:d,option:o,paths:e.paths},u)]},u))}):t.jsx("div",{style:{width:"100%",display:"flex",flexDirection:"column",justifyContent:"center",gap:"2rem"},children:t.jsx("p",{style:{fontWeight:"var(--fw)",width:"100%",fontSize:"18px",lineHeight:"26px",textAlign:"center"},children:l.sectionNotResultMessage})})});default:return t.jsx(t.Fragment,{})}},uo={content:"_content_gwsqy_1",contactInfoContent:"_contactInfoContent_gwsqy_7"},Yl=e=>{const{data:n}=e;return t.jsx("section",{className:uo.content,children:n.map((a,s)=>t.jsx("div",{className:uo.contactInfoContent,dangerouslySetInnerHTML:{__html:a.body.rendered}},s))})},mo={contentLayout2:"_contentLayout2_ee6yw_9",contentHeader:"_contentHeader_ee6yw_42"},Kl={content:"_content_1rbrt_1"},Jl=({children:e,className:n=""})=>t.jsx("div",{className:`content-layout-2 ${Kl.content} ${n}`,children:e}),Dt={container:"_container_1insg_1",note:"_note_1insg_10",commercial:"_commercial_1insg_50",commercialContent:"_commercialContent_1insg_67",complement:"_complement_1insg_83"},Zl=e=>t.jsxs("section",{className:Dt.container,children:[t.jsx("div",{className:Dt.note,children:e.children}),t.jsx("div",{className:Dt.commercial,children:t.jsxs("div",{className:Dt.commercialContent,children:[e.slug==="liveblogs"&&t.jsx(Fs,{itemList:e.itemList}),e.bannerTop,t.jsx(rn,{content:e.ranking,title:e.texts.readestTitle,paths:e.paths,customNewsDescriptionStyles:{"--news-description-title-size-desk":"16px","--news-description-title-line-height-desk":"22px","--news-description-title-size-mobile":"16px","--news-description-title-line-height-mobile":"22px"}}),t.jsx("div",{style:{position:"sticky",top:"110px"},children:e.banner})]})}),t.jsx("div",{className:Dt.complement,children:e.complement})]}),Xl=e=>{const n={...e.news[0],config:{zonehome:void 0,priorityhome:"",zonesection:"",prioritysection:",",homepreview:"",showcomments:!1,showtime:!1,showauthor:!1,showuppertitle:!1,showsubtitle:!0,showads:!1},main:{...e.news[0]?.main,title:{...e.news[0]?.main.title,section:e.news[0]?.main.title.article??""}},info:{...e.news[0]?.info,link:{url:void 0,target:void 0}}};switch(e.option){case"liveblogs":return t.jsx("div",{style:{"--news-description-title-size-desk":"38px","--news-description-title-size-mobile":"30px","--news-description-title-line-height-desk":"46px","--news-description-title-line-height-mobile":"38px","--news-image-height-desk":"600px","--news-image-height-mobile":"420px","--news-image-description-display":"none"},children:t.jsx(Hs,{...n,fontSizeSubTitle:"18px",lineHeightSubTitle:"28px"})});default:return t.jsx("div",{className:mo.contentHeader,style:{"--section-card-chip-padding":"0 0 0 6px","--uppertitle-display":"block","--news-description-title-size-desk":"38px","--news-description-title-size-mobile":"30px","--news-description-title-line-height-desk":"46px","--news-description-title-line-height-mobile":"38px","--news-description-content-gap":"0px","--section-card-chip-margin":"0 0 10px","--news-description-subtitle-margin":"22px 0 0"},children:t.jsx(ot,{...n,fontSizeSubTitle:"18px",lineHeightSubTitle:"28px",cutSubtitle:!1,colorSubTitle:"black",isTitle:!0,paths:e.paths})})}},Oe={content:"_content_jrssz_1",contentWithinCard:"_contentWithinCard_jrssz_7",contentDate:"_contentDate_jrssz_13",dateInfo:"_dateInfo_jrssz_20",dot:"_dot_jrssz_30",contentTitle:"_contentTitle_jrssz_38",contentTextList:"_contentTextList_jrssz_47",contentButton:"_contentButton_jrssz_101",linkStyled:"_linkStyled_jrssz_107"},Rl={content:"_content_ifkxj_1"},ec=e=>t.jsx("section",{className:Rl.content,id:e.id,children:e.children}),tc=e=>e.replace(/<p>(\s|&nbsp;)+<\/p>/g,""),nc=e=>{const n=/src="\/(.*?)"/g;return e.replace(n,`src="${pt()}/$1"`)},fo={2:1,4:2,7:3,10:4,13:5};function ac(e){return e.replace(/<script[^>]*src=["']https:\/\/platform\.twitter\.com\/widgets\.js["'][^>]*><\/script>/gi,"")}const sc=async({itemList:e,slug:n,banners:a,texts:s})=>{if(!e||e.length===0||!e[0])return;const o=e[0].list?.items?.map(r=>{const i=tc(r.body.rendered);let l=nc(i);return l=ac(l),{...r,body:{...r.body,rendered:l}}});return t.jsx("section",{className:Oe.content,id:"block-notes-list",children:o?.map((r,i)=>t.jsxs(C.Fragment,{children:[t.jsx(ec,{id:`item-${i+1}`,children:t.jsxs("div",{className:Oe.contentWithinCard,children:[r.date>0&&t.jsxs("div",{className:Oe.contentDate,children:[t.jsx("span",{className:Oe.dot,style:{background:n==="liveblogs"?"var(--news-liveblog-timeline-datelink-dot-color)":"var(--common-black)"}}),t.jsx("p",{className:Oe.dateInfo,style:{color:n==="liveblogs"?"var(--news-liveblog-timeline-datelink-color)":"var(--common-black)"},children:En(r.date)})]}),t.jsx("p",{className:Oe.contentTitle,children:e[0]?.list.integrated?r.title:`${r.index}. ${r.title}`}),r.image&&t.jsx(pe,{preview:r.image,isLarge:!0}),t.jsx("div",{className:Oe.contentTextList,dangerouslySetInnerHTML:{__html:r.body.rendered}}),r.related&&t.jsx("div",{className:Oe.contentButton,children:t.jsx("a",{className:Oe.linkStyled,href:r.related??"",target:"”_blank",children:s.blockNoteList_readMore??"Leer Más"})})]})},i),fo[i]&&t.jsx(ne,{banners:a,name:"list_"+fo[i]},i)]},i))})},go={FaceBook:"facebook",Instagram:"instagram",WhatsApp:"whatsapp",TikTok:"tiktok",Youtube:"youtube",X:"x",Gnews:"gnews",Podcast:"podcast",Telegram:"telegram"};function oc({url:e}){return e&&e!==""&&t.jsxs(T,{href:e,className:re.googleProfileButton,children:[t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",children:t.jsx("path",{fill:"currentColor",d:"M15.583 9.083h-6.5v6.5H6.916v-6.5h-6.5V6.917h6.5v-6.5h2.167v6.5h6.5v2.166Z"})}),"Síguenos en",t.jsx(rc,{})]})}const rc=()=>t.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 272 92",width:"272",height:"92",children:[t.jsx("path",{fill:"#EA4335",d:"M115.75 47.18c0 12.77-9.99 22.18-22.25 22.18s-22.25-9.41-22.25-22.18C71.25 34.32 81.24 25 93.5 25s22.25 9.32 22.25 22.18zm-9.74 0c0-7.98-5.79-13.44-12.51-13.44S80.99 39.2 80.99 47.18c0 7.9 5.79 13.44 12.51 13.44s12.51-5.55 12.51-13.44z"}),t.jsx("path",{fill:"#FBBC05",d:"M163.75 47.18c0 12.77-9.99 22.18-22.25 22.18s-22.25-9.41-22.25-22.18c0-12.85 9.99-22.18 22.25-22.18s22.25 9.32 22.25 22.18zm-9.74 0c0-7.98-5.79-13.44-12.51-13.44s-12.51 5.46-12.51 13.44c0 7.9 5.79 13.44 12.51 13.44s12.51-5.55 12.51-13.44z"}),t.jsx("path",{fill:"#4285F4",d:"M209.75 26.34v39.82c0 16.38-9.66 23.07-21.08 23.07-10.75 0-17.22-7.19-19.66-13.07l8.48-3.53c1.51 3.61 5.21 7.87 11.17 7.87 7.31 0 11.84-4.51 11.84-13v-3.19h-.34c-2.18 2.69-6.38 5.04-11.68 5.04-11.09 0-21.25-9.66-21.25-22.09 0-12.52 10.16-22.26 21.25-22.26 5.29 0 9.49 2.35 11.68 4.96h.34v-3.61h9.25zm-8.56 20.92c0-7.81-5.21-13.52-11.84-13.52-6.72 0-12.35 5.71-12.35 13.52 0 7.73 5.63 13.36 12.35 13.36 6.63 0 11.84-5.63 11.84-13.36z"}),t.jsx("path",{fill:"#34A853",d:"M225 3v65h-9.5V3h9.5z"}),t.jsx("path",{fill:"#EA4335",d:"M262.02 54.48l7.56 5.04c-2.44 3.61-8.32 9.83-18.48 9.83-12.6 0-22.01-9.74-22.01-22.18 0-13.19 9.49-22.18 20.92-22.18 11.51 0 17.14 9.16 18.98 14.11l1.01 2.52-29.65 12.28c2.27 4.45 5.8 6.72 10.75 6.72 4.96 0 8.4-2.44 10.92-6.14zm-23.27-7.98l19.82-8.23c-1.09-2.77-4.37-4.7-8.23-4.7-4.95 0-11.84 4.37-11.59 12.93z"}),t.jsx("path",{fill:"#4285F4",d:"M35.29 41.41V32H67c.31 1.64.47 3.58.47 5.68 0 7.06-1.93 15.79-8.15 22.01-6.05 6.3-13.78 9.66-24.02 9.66C16.32 69.35.36 53.89.36 34.91.36 15.93 16.32.47 35.3.47c10.5 0 17.98 4.12 23.6 9.49l-6.64 6.64c-4.03-3.78-9.49-6.72-16.97-6.72-13.86 0-24.7 11.17-24.7 25.03 0 13.86 10.84 25.03 24.7 25.03 8.99 0 14.11-3.61 17.39-6.89 2.66-2.66 4.41-6.46 5.1-11.65l-22.49.01z"})]}),ic=async e=>{if(!e.news||!e.news.authors)return null;const{news:n,socials:a,texts:s}=e,o=n.authors.map(i=>i.internaluser?`<a href="${`/${e.paths.autor}/${i.name}`}">${i.fullname}</a>`:i.fullname).join(", "),r=i=>n.authors.length===1?-16:i===0?0:i*20;return n.config?.showauthor&&t.jsx("div",{className:re.content,children:t.jsxs("div",{className:re.avatarContent,children:[e.shareOnlyWhatsApp?t.jsxs("a",{className:re.whatsappLink,href:a[go.WhatsApp].url,rel:"noreferrer",target:"_blank",children:[t.jsxs("svg",{width:"30",height:"30",viewBox:"0 0 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t.jsx("g",{clipPath:"url(#clip0_2906_6960)",children:t.jsx("path",{d:"M25.6376 4.36364C22.8169 1.54545 19.0598 0 15.0628 0C6.82908 0 0.125619 6.67045 0.125619 14.8636C0.125619 17.4886 0.810811 20.0455 2.1241 22.2955L0 30L7.91397 27.9318C10.0952 29.1136 12.5504 29.7386 15.0514 29.7386C23.2851 29.7386 29.9886 23.0682 29.9886 14.875C29.9886 10.8977 28.4355 7.17045 25.6148 4.36364M15.0628 27.2273C12.8359 27.2273 10.6433 26.6364 8.74762 25.5L8.29083 25.2273L3.58584 26.4545L4.84202 21.8977L4.54511 21.4318C3.30034 19.4659 2.64941 17.1932 2.64941 14.8523C2.64941 8.04545 8.22231 2.5 15.0742 2.5C18.386 2.5 21.5036 3.78409 23.8561 6.125C26.1972 8.46591 27.4876 11.5682 27.4876 14.8636C27.4876 21.6818 21.9147 27.2159 15.0742 27.2159M21.8805 17.9773C21.5036 17.7955 19.6764 16.8977 19.3338 16.7727C18.9912 16.6477 18.74 16.5909 18.4888 16.9545C18.2375 17.3182 17.5295 18.1591 17.3011 18.4091C17.0841 18.6591 16.8671 18.6932 16.4903 18.5C16.1134 18.3068 14.9144 17.9205 13.4869 16.6591C12.3791 15.6705 11.6254 14.4545 11.4084 14.0909C11.1915 13.7273 11.3856 13.5227 11.5683 13.3295C11.7396 13.1591 11.9452 12.8977 12.1279 12.6818C12.3106 12.4659 12.3791 12.3068 12.5048 12.0568C12.6304 11.8068 12.5619 11.5909 12.4705 11.4091C12.3791 11.2273 11.6254 9.39773 11.3171 8.64773C11.0088 7.92045 10.7118 8.02273 10.472 8.01136C10.255 8.01136 10.0038 8 9.75257 8C9.50133 8 9.10164 8.09091 8.75904 8.46591C8.41644 8.84091 7.45718 9.73864 7.45718 11.5682C7.45718 13.3977 8.7933 15.1591 8.97602 15.4091C9.15874 15.6591 11.6026 19.4091 15.3483 21.0227C16.2391 21.4091 16.9357 21.6364 17.4724 21.8068C18.3632 22.0909 19.1854 22.0455 19.8249 21.9545C20.5443 21.8523 22.0289 21.0568 22.3487 20.1932C22.657 19.3295 22.657 18.5795 22.5657 18.4318C22.4743 18.2727 22.2231 18.1818 21.8462 18",fill:"#7AD16D"})}),t.jsx("defs",{children:t.jsx("clipPath",{id:"clip0_2906_6960",children:t.jsx("rect",{width:"30",height:"30",fill:"white"})})})]}),s.WhatsAppLinkJournalist]}):t.jsx("div",{style:{width:"100%"},"data-hydrate":"ShareButtons","data-props":encodeURIComponent(JSON.stringify({noteShare:e.noteShare})),children:t.jsx(Gs,{noteShare:e.noteShare})}),t.jsx(oc,{url:e.noteShare?.googleProfile??""}),t.jsxs("section",{className:re.journalistSection,children:[t.jsx("div",{className:re.imageContent,style:{width:`${n.authors?.length>2?n.authors?.length*30:n.authors?.length*35}px`},children:Array.isArray(n.authors)&&n.authors?.map(async(i,l)=>i.image?t.jsx("img",{fetchPriority:"low",loading:"lazy",alt:"autor",className:re.imageStyled,src:await te(i.image.sizes[0]?.url||""),style:{position:"absolute",left:`${r(l)}px`}},i.fullname):t.jsx("div",{style:{position:"absolute",left:`${r(l)}px`},className:re.contentIconStyled,children:e.autorIcon},i.fullname))}),o&&t.jsx("div",{className:re.journalistInfoLink,dangerouslySetInnerHTML:{__html:`${s.JournalistPrefix} <h3 style="padding:0px;">${o??"Redaccion"}${n.config?.showtime&&","}</h3> ${n.config?.showtime?En(n.info.date.modified):null}`}})]})]})})},yn={content:"_content_opb3u_1",journalistArticleContent:"_journalistArticleContent_opb3u_15",contentNews:"_contentNews_opb3u_35",noteSource:"_noteSource_opb3u_392"},lc={summaryContent:"_summaryContent_wsypg_1"},cc=async({summary:e})=>e&&e.rendered&&t.jsx("section",{className:lc.summaryContent,dangerouslySetInnerHTML:{__html:e.rendered}}),po=async({newsformated:e,internal:n})=>{if(!n)return;const a=new ge,s=e.preview.sizes,r=(await a.getNewsMultimedia({path:n,imagesizes:s?s[0]?.scale:"w:801,h:449,t:2;"}))?.data.data[0]?.gallery??[];return t.jsxs("div",{className:mn.content,children:[t.jsx(Ye,{slot_id:"header",fullPageWidth:!0,visibleItems:1,pagination:!0,cardGap:0,children:r&&r.map((i,l)=>t.jsx(pe,{preview:i,priorityHigh:!0},l))}),t.jsx("div",{className:mn.description,children:r&&r[0]?.description})]})};function dc(e){const n=e.children,a=`${e.slot_id}-`,s=e.visibleItems,o=e.cardGap??20;function r(l){const c=[],h=[];let d="",u=!0;for(let m=0;m<l;m++){const y=`[data-index="${m}"]:checked ~ .carrousel-pagination li:nth-child(${m+1}) {
50
50
  background-color:var(--carrousel-pagination-background-color)
51
51
  }`;d+=`
52
52
  .${a}.carrousel-container {
@@ -114,4 +114,4 @@ j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
114
114
  ${f}
115
115
  <figcaption>${u.data.data[0].main.description||""}</figcaption>
116
116
  </figure>
117
- `}o+=y,r=d}return o+=e.slice(r),o}async function wc(e){const{news:n,banners:a,newsRelatedResponses:s,slug:o,itemList:r,socials:i,getVideos:l}=e;let c=n?.body?.rendered??"";c=c.replace(/<script[^>]*src=["']https:\/\/platform\.twitter\.com\/widgets\.js["'][^>]*><\/script>/gi,""),c=c.replace(/&nbsp;/g,""),c=fc(c,a),c=gc(c),c=await Ao(c),c=await pc(c,e.texts,s),c=await Ac(c,l),c=uc(c),c=mc(c);const h=n.main.sources??[];return t.jsxs("div",{className:yn.content,children:[o!=="liveblogs"?n.hascontent?.hasgalleryimages?t.jsx(po,{newsformated:n,internal:n.info.link.internal}):t.jsx(zs,{preview:n.preview}):null,t.jsx(ne,{banners:a,name:"block_1"}),t.jsx("div",{className:yn.journalistArticleContent,children:t.jsx(ic,{autorIcon:e.autorIcon,socials:i,news:n,texts:e.texts,shareOnlyWhatsApp:e.shareOnlyWhatsApp,noteShare:e.noteShare,paths:e.paths})}),t.jsx(cc,{summary:n.main.summary}),t.jsx("div",{className:yn.contentNews,suppressHydrationWarning:!0,id:"content-news-section",dangerouslySetInnerHTML:{__html:c}}),t.jsx(sc,{texts:e.texts,itemList:r,banners:a,slug:o}),h.length>0&&t.jsxs("div",{className:yn.noteSource,children:[t.jsx(hc,{}),t.jsx("p",{children:e.texts.noteSource+(h.length===1?"":"s")+": "+h.map(d=>d.name).join(", ")})]})]})}const wo={content:"_content_cu8lm_1",title:"_title_cu8lm_18"},yc=async({newsformated:e,internal:n})=>{if(!n)return;const s=await new ge().getNewsMultimedia({path:n,imagesizes:e.preview.sizes[0]?.scale});if(!s)return;const o=s.data.data[0]?.videos.filter(r=>r.type==="video-embedded")[0];return t.jsxs("div",{className:wo.content,children:[t.jsx("div",{dangerouslySetInnerHTML:{__html:o?.code??""}}),t.jsx("p",{className:wo.title,children:o?.title})]})},oa={content:"_content_cu8lm_1",title:"_title_cu8lm_18"},Cc=async({newsformated:e,internal:n})=>{if(!n)return;const s=await new ge().getNewsMultimedia({path:n,imagesizes:e.preview.sizes[0]?.scale});if(!s)return;const o=s.data.data[0]?.videos.filter(r=>r.type==="video-youtube")[0];return t.jsxs("div",{className:oa.content,children:[t.jsx("iframe",{className:oa.iframeStyled,src:`https://www.youtube.com/embed/${o?.code??""}`,frameBorder:"0",allowFullScreen:!0}),t.jsx("p",{className:oa.title,children:o?.title})]})},bc={content:"_content_ezbiw_1"},vc=async({newsformated:e,internal:n})=>{if(!n)return;const s=await new ge().getNews({path:n,imagesizes:e.preview.sizes[0]?.scale});if(!s)return;const o=s.data.data[0]?.external?.iframe;return t.jsx("div",{className:bc.content,dangerouslySetInnerHTML:{__html:o??""}})},ra={content:"_content_156j7_1"},_c=e=>{if(e.news.config.articlepreview==="videoEmbedded")return t.jsx("div",{className:ra.content,children:t.jsx(yc,{newsformated:e.news,internal:e.news.info.link.internal})});if(e.news.config.articlepreview==="videoYouTube")return t.jsx("div",{className:ra.content,children:t.jsx(Cc,{newsformated:e.news,internal:e.news.info.link.internal})});if(e.news.config.articlepreview==="iframe")return t.jsx("div",{className:ra.content,children:t.jsx(vc,{newsformated:e.news,internal:e.news.info.link.internal})})},Nc=async e=>{const{children:n,ranking:a=[],banners:s,news:o=[],newsRelatedResponses:r=[],itemList:i=[],socials:l,getVideos:c}=e,h=e.slug==="liveblogs";if(!(!o||!o[0]))return t.jsx(t.Fragment,{children:t.jsxs(Jl,{className:mo.contentLayout2,children:[t.jsx(Xl,{option:e.slug,news:o,paths:e.paths}),t.jsx(st,{banners:s,index:1}),!h&&t.jsx(_c,{news:o[0]}),t.jsx(Zl,{texts:e.texts,paths:e.paths,slug:e.slug,itemList:i,ranking:a,bannerTop:t.jsx(ne,{banners:s??[],name:"right_1"}),banner:t.jsx(ne,{banners:s??[],name:"right_2"}),complement:n,children:t.jsxs("section",{style:{"--avatar-content-align-items-desk":e.slug==="liveblogs"?"flex-start":"center"},children:[t.jsx(wc,{texts:e.texts,autorIcon:e.autorIcon,socials:l,news:o[0],banners:s,newsRelatedResponses:r,itemList:i,slug:e.slug,getVideos:c,shareOnlyWhatsApp:e.shareOnlyWhatsApp,noteShare:e.noteShare,paths:e.paths}),t.jsx(ne,{banners:s??[],name:"block_3"})]})})]})})},ft={content:"_content_nz5ec_1",contentInfo:"_contentInfo_nz5ec_24",imageStyled:"_imageStyled_nz5ec_40",name:"_name_nz5ec_44",description:"_description_nz5ec_48",contentInfoWithoutImg:"_contentInfoWithoutImg_nz5ec_101"},Sc=async e=>{const n=e.img?await te(e.img):"";return t.jsx("section",{className:ft.content,children:t.jsxs("div",{className:`${ft.contentInfo} ${n?"":ft.contentInfoWithoutImg}`,children:[e.img&&t.jsx("img",{fetchPriority:"low",loading:"lazy",className:ft.imageStyled,src:n}),t.jsx("h1",{className:ft.name,children:e.tag}),e.description&&t.jsx("div",{className:ft.description,dangerouslySetInnerHTML:{__html:e.description}})]})})},Cn={content:"_content_7wvro_1",contentInfo:"_contentInfo_7wvro_23",name:"_name_7wvro_34",description:"_description_7wvro_43"},kc=e=>t.jsx("section",{className:Cn.content,style:{color:e.textColor,"--backDropHeigth":e.backDropHeigth?e.backDropHeigth:"100%",padding:e.sectionPadding??"","--backgroundColor":e.backgroundColor},children:t.jsxs("div",{className:Cn.contentInfo,children:[t.jsx("h1",{className:Cn.name,style:{color:e.textColor},children:e.tag}),e.description&&t.jsx("div",{style:{color:e.textColor},className:Cn.description,dangerouslySetInnerHTML:{__html:e.description}})]})}),Ec=e=>{const{option:n,entity:a}=e;switch(n){case"op1":return t.jsx(Sc,{tag:a?.name??"",img:a?.image?.url??"",description:a?.description?a?.description:""});case"op2":return t.jsx(kc,{tag:a?.name??"",description:a?.description?a?.description:"",backDropHeigth:e.backDropHeigth,backgroundColor:e.backgroundColor,sectionPadding:e.sectionPadding,textColor:e.textColor});default:return t.jsx(t.Fragment,{})}},Mt={content:"_content_gxziw_1",buttonStyled:"_buttonStyled_gxziw_9",searchStyled:"_searchStyled_gxziw_21",inputStyled:"_inputStyled_gxziw_32",inputStyledTest:"_inputStyledTest_gxziw_51"},Ic=e=>t.jsx("svg",{width:"68",height:"68",viewBox:"0 0 68 68",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:t.jsx("g",{opacity:"0.8",children:t.jsx("path",{d:"M47.8043 46.6003L47.6635 46.7758L47.8232 46.9342L56.4762 55.5171C56.4768 55.5177 56.4774 55.5184 56.478 55.519C56.8524 55.9072 57.0616 56.4256 57.0616 56.965C57.0616 57.5048 56.8521 58.0234 56.4774 58.4117C56.2839 58.6065 56.0539 58.7611 55.8005 58.8667C55.5466 58.9724 55.2743 59.0269 54.9993 59.0269C54.7243 59.0269 54.452 58.9724 54.1981 58.8667C53.9442 58.7609 53.7138 58.6059 53.5201 58.4106L53.5194 58.4099L44.9327 49.8232L44.7743 49.6648L44.5995 49.805C40.4597 53.1252 35.2051 54.7331 29.9162 54.2981C24.6272 53.863 19.706 51.4181 16.1643 47.4661C12.6227 43.514 10.7298 38.3552 10.875 33.0503C11.0201 27.7455 13.1923 22.6979 16.9447 18.9455C20.6972 15.193 25.7448 13.0209 31.0496 12.8757C36.3544 12.7305 41.5133 14.6234 45.4653 18.165C49.4174 21.7067 51.8623 26.6279 52.2974 31.9169C52.7324 37.2058 51.1245 42.4604 47.8043 46.6003ZM22.4528 47.4552C25.1799 49.2774 28.3861 50.25 31.666 50.25C36.0641 50.25 40.2822 48.5029 43.3921 45.3929C46.5021 42.2829 48.2493 38.0649 48.2493 33.6667C48.2493 30.3868 47.2767 27.1806 45.4545 24.4535C43.6323 21.7264 41.0423 19.6008 38.0121 18.3457C34.9819 17.0905 31.6476 16.7621 28.4307 17.402C25.2139 18.0419 22.259 19.6213 19.9398 21.9405C17.6205 24.2597 16.0411 27.2146 15.4013 30.4314C14.7614 33.6483 15.0898 36.9827 16.345 40.0129C17.6001 43.0431 19.7256 45.633 22.4528 47.4552Z",fill:"white",stroke:"white",strokeWidth:"0.5"})})}),Uc=e=>t.jsx("form",{className:Mt.content,style:{height:e.hasContent?"218px":"50vh"},children:t.jsxs("div",{className:Mt.inputStyled,children:[t.jsx("input",{className:Mt.inputStyledTest,defaultValue:e.query,name:"query",placeholder:e.texts.searchKeyWord+"..."}),t.jsx("button",{className:Mt.buttonStyled,type:"submit",children:t.jsx(Ic,{className:Mt.searchStyled})})]})}),ia={content:"_content_io3tv_1",newsContentSection:"_newsContentSection_io3tv_5",itemContent:"_itemContent_io3tv_10"},Tc=e=>{const{data:n,option:a,autor:s,page:o,banners:r,pathname:i,ranking:l,currentPage:c,slug:h,texts:d={}}=e,u=[5,10,15],m={5:1,10:2,15:3};switch(a){case"op1":return t.jsx(t.Fragment,{children:t.jsxs(Wn,{children:[t.jsx(Vs,{autor:s[0],autorIcon:e.autorIcon}),t.jsx(Kn,{paths:e.paths,ranking:l,readestTitle:d.readestTitle??"",bannerTop:t.jsx(ne,{banners:r??[],name:"right_1"}),banner:t.jsx(ne,{banners:r??[],name:"right_2"}),children:t.jsx("section",{className:ia.content,children:n.length>0?t.jsx(un,{className:[ia.newsContentSection,"padding-0"].join(" "),paginatorComponent:t.jsx(Et,{texts:d,pathname:i,query:"",currentPage:c,maxPages:e.paginationLimit,showNext:!(n.length<e.newsListLimit)}),children:Array.isArray(n)&&n?.map((y,f)=>t.jsxs(C.Fragment,{children:[u.includes(f+1)&&t.jsx("div",{className:ia.itemContent+" banner-context",children:t.jsx(ne,{banners:r??[],name:`block_2_${m[f+1]}`})}),t.jsx(wn,{autorIcon:e.autorIcon,item:y,option:h,paths:e.paths},f)]},f))}):t.jsx("div",{style:{width:"100%",display:"flex",flexDirection:"column",justifyContent:"center",gap:"2rem"},children:t.jsx("p",{style:{fontWeight:"var(--fw)",width:"100%",fontSize:"18px",lineHeight:"26px",textAlign:"center"},children:d.autorNotResultMessage})})})})]})});case"op2":return t.jsx(t.Fragment,{children:t.jsxs(Wn,{children:[t.jsx(Ws,{autor:s[0],autorIcon:e.autorIcon}),Array.isArray(n)?t.jsxs(t.Fragment,{children:[t.jsx(ta,{content:n,title:"",hasLines:!0,banners:e.banners,bannerPositionIndex:[1,6,12],paths:e.paths,slot_id:"block_2"}),t.jsx(Et,{texts:d,query:"",pathname:i,maxPages:Number(e.paginationLimit),currentPage:Number(o),showNext:!((n.length??0)<Number(e.newsListLimit))})]}):t.jsx("div",{style:{width:"100%",display:"flex",flexDirection:"column",justifyContent:"center",gap:"2rem"},children:t.jsx("p",{style:{fontWeight:"var(--fw)",width:"100%",fontSize:"18px",lineHeight:"26px",textAlign:"center"},children:d.autorNotResultMessage})})]})});default:return t.jsx(t.Fragment,{})}},yo={content:"_content_pq89v_1",videoContent:"_videoContent_pq89v_9"},Pt={container:"_container_1xr2t_1",playStyled:"_playStyled_1xr2t_6",imageStyled:"_imageStyled_1xr2t_13",longer:"_longer_1xr2t_26",contentNews:"_contentNews_1xr2t_31",tagContent:"_tagContent_1xr2t_51",tag:"_tag_1xr2t_51",titular:"_titular_1xr2t_68",small:"_small_1xr2t_81",figure:"_figure_1xr2t_87",backDrop:"_backDrop_1xr2t_92",backDropAux:"_backDropAux_1xr2t_100"},Co=async e=>{const{size:n="longer",video:a}=e,s=a.main.image.sizes[0]?.url??"";return t.jsx("figure",{className:Pt.figure,children:t.jsxs("span",{className:Pt.backdrop,children:[t.jsx("span",{className:Pt.backDropAux}),t.jsx(T,{href:a.info.link.url,target:a.info.link.target,children:t.jsxs("div",{children:[a.main.image.sizes.map(async(o,r)=>o.width>=580?t.jsx("source",{media:"(width >=900px)",srcSet:await te(o.url)},r):t.jsx("source",{media:"(width <900px)",srcSet:await te(o.url)},r)),t.jsx("img",{fetchPriority:"low",loading:"lazy",className:[Pt.imageStyled,Pt[n]].join(" "),alt:"",src:s?await te(s):""})]})})]})})},xc=e=>{const{videos:n}=e;return t.jsx("div",{className:yo.content,children:t.jsx(at,{children:t.jsx(ae,{title:"Videos",isTitle:!0,children:t.jsxs("div",{className:yo.videoContent,children:[t.jsx(Co,{video:n[0]}),t.jsx("div",{style:{display:"flex",flexDirection:"column"},children:n.slice(1).map((a,s)=>t.jsx(Co,{size:"small",video:a},`video-small-${s}`))})]})})})})},Ke={content:"_content_ruy5q_1",videoContent:"_videoContent_ruy5q_9",articleSection:"_articleSection_ruy5q_21",contentLatout:"_contentLatout_ruy5q_31",title:"_title_ruy5q_36",article:"_article_ruy5q_21",correspondent:"_correspondent_ruy5q_64"},bo={container:"_container_1rq2h_1",playStyled:"_playStyled_1rq2h_9"},qc=e=>{const{video:n}=e;return t.jsx(T,{href:n.info.link.url?n.info.link.url:void 0,target:n.info.link.target,children:t.jsxs("section",{className:bo.container,children:[t.jsx(pe,{isLarge:!0,preview:{sizes:n.main.image.sizes,description:n.main.description}}),t.jsx(rt,{className:bo.playStyled})]})})},Bc=e=>{const n=()=>e?.video.main.author?`${e?.video.main.author} - ${Ce(e.video.info.date.created)}`:e?.video.main.author;return t.jsx("div",{className:Ke.content,children:t.jsx(at,{className:Ke.contentLatout,children:t.jsx(ae,{title:"Videos",isTitle:!0,children:t.jsxs("div",{className:Ke.videoContent,children:[t.jsx(qc,{video:e.video}),t.jsxs("div",{className:Ke.articleSection,children:[t.jsx(T,{className:Ke.title,href:e.video.info.link.url,target:e.video.info.link.target,children:e.video.main.title}),t.jsx("p",{className:Ke.article,children:me(e.video.main.description)}),t.jsx("p",{className:Ke.correspondent,children:n()})]})]})})})})},Lc=e=>{switch(e.option){case"op1":return t.jsx(xc,{videos:e.data});case"op2":return t.jsx(Bc,{video:e.data[0]});default:return t.jsx(t.Fragment,{})}};function Dc({containerId:e,containerId2:n}){return C.useEffect(()=>{try{let a=function(){const d=window.twttr;d?.widgets?d.widgets.load(s):h<10?(h++,requestAnimationFrame(a)):console.warn("No se pudo cargar widgets de Twitter")};const s=document.getElementById(e),o=document.getElementById(n);if(!s&&!o)return;const r=s?.querySelectorAll("script[src]")??[],i=o?.querySelectorAll("script[src]")??[];[...r,...i].forEach(d=>{const u=document.createElement("script");Array.from(d.attributes).forEach(m=>{u.setAttribute(m.name,m.value)}),d.replaceWith(u)});const c=document.querySelectorAll('script[src*="platform.twitter.com/widgets.js"]');if(c)for(let d=0;d<c.length;d++)c[d]?.remove();let h=0;if(document.querySelector('script[src*="platform.twitter.com/widgets.js"]'))a();else{const d=document.createElement("script");d.src="https://platform.twitter.com/widgets.js",d.async=!0,d.onload=a,document.body.appendChild(d)}}catch(a){console.warn("Error al procesar embeds de Twitter",a)}},[e]),null}const Mc=e=>{const{isVideo:n=!1,isLarge:a=!1,hasShadow:s=!1,BackDropAuxHeigthMobile:o}=e,r=C.useMemo(()=>e?.preview?.sizes||[],[e?.preview?.sizes]);if(!r.length||!r[0]?.url||r[0]?.url==="")return t.jsx("div",{className:Y.imagePlaceholder});const{PUBLIC_API_HOST:i,PUBLIC_ENV:l}=J();return t.jsx("figure",{className:Y.figure,children:t.jsxs("span",{className:Y.backdrop,children:[t.jsx("span",{className:Y.backdropAux,style:{height:o||"56.25%"}}),t.jsxs("picture",{children:[t.jsx("img",{fetchPriority:"low",loading:"lazy",className:Y.imageStyled,alt:e.preview?.description||"",src:(l==="local"?i:"")+r[0]?.url,style:{boxShadow:s?"0px 4px 8px 0px #00000033":"0px"}}),n&&t.jsxs(t.Fragment,{children:[t.jsx("div",{className:Y.boxPlayIcon,style:{height:a?"40%":"72px"}}),t.jsx(rt,{className:Y.playStyled,style:{width:a?"3rem":"27px",height:a?"3rem":"27px",marginBottom:a?"18px":".5rem",marginLeft:a?"30px":".5rem"}})]})]})]})})},Pc=e=>t.jsx("svg",{width:"41",height:"33",viewBox:"0 0 41 33",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:t.jsx("path",{d:"M17.9576 21.2985C16.8233 21.2985 15.9277 22.194 15.9277 23.3283C15.9277 24.4627 16.8233 25.3582 17.9576 25.3582C19.0919 25.3582 19.9874 24.4627 19.9874 23.3283C19.9874 22.194 19.0919 21.2985 17.9576 21.2985ZM17.9576 19.2686C19.0919 19.2686 19.9874 18.3731 19.9874 17.2388C19.9874 16.1045 19.0919 15.2089 17.9576 15.2089C16.8233 15.2089 15.9277 16.1045 15.9277 17.2388C15.9277 18.3731 16.8233 19.2686 17.9576 19.2686ZM17.9576 13.1791C19.0919 13.1791 19.9874 12.2836 19.9874 11.1492C19.9874 10.0149 19.0919 9.11938 17.9576 9.11938C16.8233 9.11938 15.9277 10.0149 15.9277 11.1492C15.9277 12.2836 16.8233 13.1791 17.9576 13.1791Z",fill:"#7B888A"})}),vo={info:{section:{name:"",slug:"",url:""},link:{url:"invalidUrl",target:"",canonical:!1,internal:""},date:{date:"",created:0,modified:0,firstpublish:0,lastpublish:0}},config:{zonehome:void 0,priorityhome:"",zonesection:"",prioritysection:"",homepreview:"",showcomments:!0,showtime:!0,showauthor:!0,showuppertitle:!0,showsubtitle:!0,showads:!0},main:{title:{home:"",section:"",article:""},subtitle:{rendered:"",striped:""},tags:[]},authors:[{firstname:"",lastname:"",fullname:"",image:void 0,name:"",internaluser:!1}],preview:void 0},_o=6,Oc=({section:e,currentNews:n,banner:a,isVisible:s=!1,stylesConfig:o})=>{const[r,i]=C.useState({data:Array.from({length:_o},()=>vo)}),[l,c]=C.useState(!1),h=C.useCallback(async()=>{if(!(l||!n?.info?.link?.internal)){c(!0);try{const d=new URLSearchParams({section:e,currentNewsLink:n.info.link.internal}),u=await fetch(`/api/get-more-news?${d}`);if(!u.ok)throw i(void 0),new Error(`HTTP error! status: ${u.status}`);const m=await u.json();i({...m,data:m.data.slice(0,_o)})}catch(d){console.error("[/api/get-more-news] Error:",d.message),i(void 0)}}},[e,n.info.link.internal,l]);return C.useEffect(()=>{s&&h()},[s,r,h]),!r?.data||r.data.length===0?null:t.jsx(Qc,{news:r.data,title:"Más Noticias",...o["Modulo 1x3 Client"]??o["Modulo 1x3"],hasLines:!0,showSubtitle:!0,rounded:!0,banner:a,isVisible:s})},Qc=e=>{const{news:n,hasLines:a=!1}=e,s=o=>a&&(o+1)%3!==0?sa.contentSeparator:"";return t.jsx("div",{className:sa.newsContent,style:{gap:a?"30px":"20px","--gridTemplateModlule":a?"repeat(auto-fit, 343px);":"repeat(auto-fit, 380px);"},children:n.map((o,r)=>{const{main:i,authors:l,info:c,preview:h,isVideo:d=!1,config:u,overImage:m="default",isTitle:y=!1,isLarge:f=!1}=o;return t.jsx("div",{className:s(r),style:{order:r},children:t.jsxs("section",{className:It.content,children:[t.jsx(T,{title:i?.title?.section,href:c?.link?.url??"invalidUrl","aria-label":i?.title?.section??"nota",target:c?.link?.target,children:t.jsx(Mc,{isVisible:e.isVisible,preview:h,rounded:e.rounded,isVideo:d,isLarge:f,getImageUrl:e.getImageUrl})}),t.jsx("div",{className:It.newsDescription,children:t.jsx(jc,{main:i,authors:l,info:c,preview:h,share:e.share,config:u,overImage:m,isTitle:y,paths:o.paths,isVisible:e.isVisible})})]})},r)})})},jc=e=>{const{share:n=!1,cutSubtitle:a=!0}=e,o=(()=>{if(!e?.authors||e.authors.length===0)return"";const r=e.authors[0],i=Ce(e.info?.date?.modified);return r&&e?.config?.showtime&&e.config?.showauthor?`${r.fullname} - ${i}`:r&&e.config?.showauthor?r.fullname:e?.config?.showtime?i:""})();return t.jsxs("div",{className:K.boxInformation,children:[n&&t.jsx(Pc,{className:K.dotStyles}),e?.info?.section?.url&&t.jsxs("div",{className:K.sectionDescriptionContainer,children:[t.jsx(T,{className:K.sectionDescription,href:e.info.section.url??"invalidUrl",children:e.info.section.name}),e?.main?.uppertitle&&t.jsx("p",{className:K.uppertitle,children:e.main.uppertitle})]}),t.jsx("h2",{className:K.articule,children:t.jsx(T,{className:K.linkStyled,style:{"--isLink":e?.info?.link?.url?"underline":"none"},"aria-label":e.main?.title?.section??"nota",href:e?.info?.link?.url,target:e?.info?.link?.target,children:e.main?.title?.section})}),e.config?.showsubtitle&&e.main?.subtitle?.striped&&t.jsx("p",{className:K.description,style:{"--fontSizeSubTitle":e.fontSizeSubTitle,"--lineHeightSubTitle":e.lineHeightSubTitle,"--colorSubTitle":e.colorSubTitle},children:a?me(e.main.subtitle.striped):e.main.subtitle.striped}),(e?.config?.showtime||e.config?.showauthor)&&o&&t.jsx(t.Fragment,{children:e.authors?.[0]?.internaluser?t.jsx(T,{className:K.correspondentLink,href:`/autor/${e.authors[0].name}`,children:o}):t.jsx("div",{className:K.correspondent,children:o})})]})},Gc=({user:e,handleLogout:n,message:a})=>{const s=()=>{const r=document.querySelector(".user-actions-options");r&&r.classList.toggle("show")},o=e.firstname??"Usuario";return t.jsx("div",{className:"comment-item",children:t.jsxs("div",{style:{display:"flex",gap:"14px"},children:[e&&e.picture&&e.picture!==""?t.jsx("img",{className:"comment-avatar-img",src:e.picture,alt:e.username}):t.jsx("div",{className:"comment-avatar",children:o.charAt(0).toUpperCase()}),t.jsxs("div",{style:{flex:1},children:[t.jsxs("div",{className:"comment-header",children:[t.jsxs("span",{className:"comment-username user-welcome",children:["Hola ",o,"!"]}),t.jsx("div",{className:"user-actions-options",children:t.jsx("button",{onClick:()=>{n()},children:"Cerrar Sesion"})}),t.jsx("button",{className:"user-actions-span",onClick:s,children:t.jsx(gn,{width:13,height:13,fill:"black"})})]}),t.jsx("p",{className:"comment-text",children:a})]})]})})},R={overlay:"_overlay_qj491_3",popup:"_popup_qj491_17",title:"_title_qj491_40",optionsContainer:"_optionsContainer_qj491_52",option:"_option_qj491_52",radioInput:"_radioInput_qj491_66",radioCustom:"_radioCustom_qj491_70",optionLabel:"_optionLabel_qj491_97",buttons:"_buttons_qj491_110",cancelButton:"_cancelButton_qj491_117",closeButton:"_closeButton_qj491_118",buttonAlone:"_buttonAlone_qj491_137",reportButton:"_reportButton_qj491_143",successContainer:"_successContainer_qj491_163",thumbsUp:"_thumbsUp_qj491_171",successMessage:"_successMessage_qj491_177",errorMessage:"_errorMessage_qj491_218",loadingContainer:"_loadingContainer_qj491_231"},No=async(e,n)=>{const{PUBLIC_ENV:a}=J();if(a==="local")return!0;if(!e)return!1;try{const s=n.CAPTCHA_PROJECT,o=n.CAPTCHA_KEY_V2,r=n.COMMENTS_CAPTCHA_API_KEY,l=await(await fetch(`https://recaptchaenterprise.googleapis.com/v1/projects/${s}/assessments?key=${r}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({event:{token:e,siteKey:o}})})).json();return console.log("reCAPTCHA Enterprise verification result:",l),l.tokenProperties?.valid===!0}catch(s){return console.error("Error verificando reCAPTCHA Enterprise:",s),!1}};async function $c({publication:e,username:n,id:a,type:s,baseUrl:o,captchaToken:r,captchaEnvVars:i,apiToken:l}){if(!e||!n||!a||!s||!r)throw new Error("Faltan parámetros requeridos: publication, username, id, type, captchaToken");if(typeof e!="string"||typeof n!="string"||typeof a!="string"||typeof s!="string"||typeof r!="string")throw new Error("Todos los parámetros deben ser strings");if(await!No(r,i))throw new Error("Token de captcha inválido");if(!l)throw new Error("Falta el token de API del CMS");const c=`${o}/system/modules/com.tfsla.diario.base/templates/hit/5.0/1/newcomments/report`,h=encodeURIComponent(s),d=new URLSearchParams({publication:e,username:n,id:a,type:h}),u=`${c}?${d.toString()}`;try{console.log("Reporting comment:",{publication:e,username:n,id:a,type:s,encodedType:h,url:u});const m=await V.post(u,null,{headers:{"User-Agent":"Bluestack","x-api-token":l,"Content-Type":"application/json"}});if(console.log("Report response:",m.data),m.status===200||m.status===201)return{type:"success",message:"Comentario reportado exitosamente",status:m.status,data:m.data};throw new Error(`Respuesta inesperada del servidor: ${m.status}`)}catch(m){if(console.error("Error reporting comment:",m),V.isAxiosError(m)){const y=m.response?.status,f=m.response?.data;throw y===400?new Error("Datos inválidos para el reporte"):y===401?new Error("Token de API inválido"):y===403?new Error("Acceso denegado para reportar comentario"):y===404?new Error("Comentario no encontrado"):y===409?new Error("El comentario ya fue reportado por este usuario"):y===500?new Error("Error interno del servidor CMS"):new Error(f?.error||f?.message||`Error HTTP ${y}: No se pudo reportar el comentario`)}throw m}}const Ue={spam:"Es spam o contenido comercial no deseado",inappropriate:"Lenguaje inadecuado",hate:"Discurso o símbolos de odio",misinformation:"Información falsa o fraude",terrorism:"Promueve el terrorismo",intellectual:"Violación de propiedad intelectual",bullying:"Bullying o acoso"};function zc(e){return Ue[e]}const Je=300,Qe={username:"anonimo",firstname:"Usuario",lastname:"Anonimo"};function Hc(e){const n=e.split(" ");if(n.length!==3)return e;const[a,s,o]=n,r=s.charAt(0).toUpperCase()+s.slice(1).toLowerCase();return`${a} ${r} ${o}`}const la=(e,n)=>{if(!e||!e.current)return{boolean:!1,text:""};const a=e.current?.value||"",s=a.length>Je,{PUBLIC_ENV:o}=J(),r=o==="local",i=a.trim()!==""&&(r||n!=="")&&!s,l=s?`No debes exceder el limite de ${Je} caracteres.`:"Debes completar todos los campos para comentar.";return{boolean:i,text:l}},So=e=>{const n=e.cookie.split("; ").find(a=>a.startsWith("reported="));if(!n)return[];try{return JSON.parse(decodeURIComponent(n.split("=")[1]??""))}catch{return[]}},Fc=(e,n)=>{const a=So(e);a.includes(n)||(a.push(n),e.cookie=`reported=${encodeURIComponent(JSON.stringify(a))}; path=/; max-age=${3600*24*1}`)};function Vc(e){const[n,a]=e.split("@");if(!n||!a)return e;let s="";n.length<=2?s=n[0]+"*":s=n[0]+"*".repeat(n.length-2)+n[n.length-1];const o=a.lastIndexOf(".");if(o===-1)return`${s}@${a}`;const r=a.slice(0,o),i=a.slice(o);let l="";return r.length<=2?l=r[0]+"*":l=r[0]+"*".repeat(r.length-2)+r[r.length-1],`${s}@${l}${i}`}const _={overlay:"_overlay_tlrod_1",header:"_header_tlrod_18",logo:"_logo_tlrod_25",card:"_card_tlrod_32",close:"_close_tlrod_47",form:"_form_tlrod_71",formUl:"_formUl_tlrod_80",field:"_field_tlrod_92",label:"_label_tlrod_99",input:"_input_tlrod_108",error:"_error_tlrod_126",primary:"_primary_tlrod_132",divider:"_divider_tlrod_167",google:"_google_tlrod_193",googleIcon:"_googleIcon_tlrod_223",spin:"_spin_tlrod_256",checkboxRow:"_checkboxRow_tlrod_278",switch:"_switch_tlrod_307",terms:"_terms_tlrod_315",message:"_message_tlrod_346",passwordChecker:"_passwordChecker_tlrod_351",valid:"_valid_tlrod_370",invalid:"_invalid_tlrod_374",forgotPassword:"_forgotPassword_tlrod_378",successContainer:"_successContainer_tlrod_397",thumbsUp:"_thumbsUp_tlrod_405",successMessage:"_successMessage_tlrod_411"},je=()=>t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",width:"24",height:"24",viewBox:"0 0 32 32",className:_.spin,children:t.jsx("path",{d:"M18,4.181v2.021c4.559,0.929,8,4.97,8,9.798c0,5.514-4.486,10-10,10S6,21.514,6,16c0-4.829,3.441-8.869,8-9.798V4.181 C8.334,5.137,4,10.066,4,16c0,6.617,5.383,12,12,12s12-5.383,12-12C28,10.066,23.666,5.137,18,4.181z"})}),Wc=({isOpen:e,onClose:n,commentId:a,publication:s,username:o})=>{const[r,i]=C.useState("form"),[l,c]=C.useState(""),[h,d]=C.useState(""),[u]=C.useState(""),m=[{id:"spam",label:Ue.spam},{id:"inappropriate",label:Ue.inappropriate},{id:"hate",label:Ue.hate},{id:"misinformation",label:Ue.misinformation},{id:"terrorism",label:Ue.terrorism},{id:"intellectual",label:Ue.intellectual},{id:"bullying",label:Ue.bullying}],y=async()=>{if(!(!l||!a)){if(So(document).includes(a)){d("Ya has reportado este comentario.");return}i("loading"),d("");try{const w=await(await fetch("/api/comments-report",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({publication:s,username:o,id:a,captchaToken:u,type:Ue[l]})})).json();if(w.type==="success")Fc(document,a),i("success"),setTimeout(()=>{f()},3e3);else throw new Error(w.message||"Error al reportar comentario")}catch(g){console.error("Error reporting comment:",g),d(g.message||"Error al reportar comentario"),i("form")}}},f=()=>{i("form"),c(""),d(""),n()};return!e||!a||!o?null:t.jsx("div",{className:R.overlay,children:t.jsxs("div",{className:R.popup,children:[t.jsx("button",{className:"close-reply-form",onClick:f,children:t.jsx(it,{})}),t.jsx("h2",{className:R.title,children:"Reportar Abuso"}),r==="loading"&&t.jsx("div",{className:R.loadingContainer,children:t.jsx(je,{})}),r==="form"||r==="loading"?t.jsxs(t.Fragment,{children:[t.jsx("div",{className:R.optionsContainer,children:m.map(g=>t.jsxs("label",{className:R.option,children:[t.jsx("input",{type:"radio",name:"reportReason",value:g.id,checked:l===g.id,onChange:w=>c(w.target.value),className:R.radioInput}),t.jsx("span",{className:R.radioCustom}),t.jsx("span",{className:R.optionLabel,children:g.label})]},g.id))}),h&&t.jsx("div",{className:R.errorMessage,children:h}),t.jsxs("div",{className:R.buttons,children:[t.jsx("button",{onClick:f,className:R.cancelButton,children:"Cancelar"}),t.jsx("button",{onClick:y,disabled:!l,className:R.reportButton,children:"Reportar"})]})]}):t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:R.successContainer,children:[t.jsx("div",{className:R.thumbsUp,children:t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:132,height:120,fill:"none",children:t.jsx("path",{fill:"#0073BE",d:"M119.249 42.357H81.915l5.621-27.039.177-1.893a8.906 8.906 0 0 0-2.603-6.272L78.838.941 39.907 39.93c-2.19 2.13-3.491 5.089-3.491 8.343v59.167c0 6.508 5.325 11.833 11.833 11.833h53.25c4.911 0 9.112-2.958 10.887-7.218l17.868-41.713c.533-1.36.829-2.78.829-4.32V54.192c0-6.509-5.325-11.834-11.834-11.834Zm0 23.667-17.75 41.417h-53.25V48.274l25.679-25.678L67.36 54.19h51.889v11.833ZM.916 48.274h23.667v71H.916v-71Z"})})}),t.jsx("p",{className:R.successMessage,children:"¡Gracias por reportar!"})]}),t.jsx("div",{className:R.buttons,children:t.jsx("button",{onClick:f,className:[R.closeButton,R.buttonAlone].join(" "),children:"Cerrar"})})]})]})})};async function bn({publication:e,path:n,size:a=5,sizereply:s=2,id:o,lastid:r,state:i="5,6",apiToken:l}){if(!e||!n)throw new Error("Missing required parameters: publication and path");if(typeof e!="string"||typeof n!="string")throw new Error("Invalid input types for publication or path");if(!l)throw new Error("Missing CMS API token");const c=parseInt(String(a),10),h=parseInt(String(s),10);if(isNaN(c)||c<=0)throw new Error("Invalid size parameter");if(isNaN(h)||h<0)throw new Error("Invalid sizereply parameter");const d=`${va()}/hit/5.0/1/newcomments/get`,u=new URLSearchParams({publication:e,path:n,size:c.toString(),sizereply:h.toString(),state:i});o&&u.append("id",o),r&&u.append("lastid",r);const m=`${d}?${u.toString()}`;try{console.log("Fetching comments from:",m);const{data:y}=await V.get(m,{headers:{"x-api-token":l,"Cache-Control":"max-age=0, no-cache, no-store, must-revalidate",Pragma:"no-cache",Expires:"0"}});if(!y)throw new Error("No comments data received");return y.data||y||[]}catch(y){if(console.error("Error fetching comments:",y),V.isAxiosError(y)){const f=y.response?.status,g=y.response?.data;throw f===404?new Error("Comments not found"):f===403?new Error("Access forbidden - check API token"):f===401?new Error("Unauthorized - invalid API token"):f===500?new Error("Internal server error from CMS"):new Error(g?.error||g?.message||`HTTP ${f}: Failed to fetch comments`)}throw y}}const{PUBLIC_PUBLICATION_ID:Yc}=J(),Kc=Yc,Jc=e=>{const[n,a]=C.useState(void 0);return C.useEffect(()=>{if(n)return;(async()=>{const{PUBLIC_X_SECURITY_TOKEN:o}=J();try{const r=await bn({publication:Kc,path:e??"",size:5,sizereply:2,id:void 0,lastid:void 0,state:"5,6",apiToken:o});a(r[0]??[])}catch(r){console.error(r),a({comments:[],morecomment:!1})}})()},[n]),{comments:n,setComments:a}},ko=({username:e,date:n})=>t.jsxs("div",{className:"comment-header",children:[t.jsx("span",{className:"comment-username",children:e}),t.jsx("span",{className:"comment-header-dot",children:"•"}),t.jsx("span",{className:"comment-date",children:Hc(Ce(Number(n)))})]}),Eo=({user:e})=>t.jsx("div",{className:"comment-avatar",children:e.picture?t.jsx("img",{className:"comment-avatar-img",src:e.picture,alt:e.username}):e.firstname.charAt(0).toUpperCase()}),Io=({isReply:e=!1,onReply:n,onFlag:a})=>t.jsxs("div",{className:"comment-actions",children:[!e&&n&&t.jsx("button",{onClick:n,className:"comment-action-btn",children:t.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",children:[t.jsx("g",{clipPath:"url(#a)",children:t.jsx("path",{fill:"#4D4E4E",d:"M9.976 9V5l-6.983 7 6.983 7v-4.1c4.988 0 8.48 1.6 10.973 5.1-.997-5-3.99-10-10.973-11Z"})}),t.jsx("defs",{children:t.jsx("clipPath",{id:"a",children:t.jsx("path",{fill:"#fff",d:"M0 0h23.942v24H0z"})})})]})}),t.jsx("button",{onClick:a,className:"comment-action-btn",children:t.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:25,height:24,fill:"none",children:[t.jsx("g",{clipPath:"url(#a)",children:t.jsx("path",{fill:"#4D4E4E",d:"M20.133 2h-16c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2Zm0 14H5.303l-1.17 1.17V4h16v12Zm-9-11h2v6h-2V5Zm0 8h2v2h-2v-2Z"})}),t.jsx("defs",{children:t.jsx("clipPath",{id:"a",children:t.jsx("path",{fill:"#fff",d:"M.133 0h24v24h-24z"})})})]})})]}),Uo=({commentRef:e,captchaToken:n="",setIsDisabled:a})=>(C.useEffect(()=>{const s=e.current;if(!s)return;const o=()=>{const i=s.value.length;s.parentElement&&(s.parentElement.dataset.text=`${i}/${Je}`),s.classList.toggle("over-limit",i>Je),a(!la(e,n).boolean)};return s.addEventListener("input",o),o(),()=>s.removeEventListener("input",o)},[e,n,a]),t.jsxs("div",{children:[t.jsx("label",{className:"comment-input-label",children:"Comentario"}),t.jsx("textarea",{ref:e,name:"comment",placeholder:"Ingresa un comentario",rows:2})]})),To=({commentRef:e,captchaToken:n="",children:a})=>{const s=la(e,n);return t.jsx("div",{className:"form-actions",children:t.jsxs("div",{className:"submit-zone",children:[a,!s.boolean&&t.jsx("p",{className:"submit-warning",children:s.text})]})})},xo=({onClick:e,isDisabled:n})=>{const[a,s]=C.useState(!1);return C.useEffect(()=>{let o=null;return a&&(o=setTimeout(()=>{s(!1)},2400)),()=>{o&&clearTimeout(o)}},[a]),a?t.jsx("div",{className:"success-gif-container",children:t.jsx("img",{className:"success-gif",src:"/Success.gif"})}):t.jsxs("button",{type:"button",onClick:async o=>{await e(o)&&s(!0)},id:"comment-button",className:`submit-btn ${n?"disabled":"active"}`,children:["Enviar Comentario",t.jsx("svg",{style:{minWidth:16},width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M1.39258 8.99997H12.5626L7.68258 13.88C7.29258 14.27 7.29258 14.91 7.68258 15.3C8.07258 15.69 8.70258 15.69 9.09258 15.3L15.6826 8.70997C16.0726 8.31997 16.0726 7.68997 15.6826 7.29997L9.10258 0.699971C8.71258 0.309971 8.08258 0.309971 7.69258 0.699971C7.30258 1.08997 7.30258 1.71997 7.69258 2.10997L12.5626 6.99997H1.39258C0.842578 6.99997 0.392578 7.44997 0.392578 7.99997C0.392578 8.54997 0.842578 8.99997 1.39258 8.99997Z",fill:"currentColor"})})]})},{PUBLIC_PUBLICATION_ID:Zc}=J(),Xc=Zc,qo=async({path:e,ref:n,captchaToken:a,button:s,user:o,id:r,addComment:i})=>{const l=n.current?.value||"";if(!la(n,a).boolean||!o){const c=s.nextElementSibling;return c&&(c.style.display="block"),!1}try{const c=Date.now(),h=await fetch("/api/comments-add",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({publication:Xc,path:e,id:r,username:o.username,comment:l,recaptchaResponse:a})});let d=null;try{d=await h.json()}catch(f){console.error("Error parsing JSON response:",f)}if(!h.ok)throw new Error(`Error al enviar comentario: ${d?.message} status: ${h.status}`);const u=Date.now(),m=Math.max(0,2400+Math.abs(u-c)),y={username:o.username,firstname:o.firstname,...o.lastname&&{lastname:o.lastname},...o.picture&&{picture:o.picture}};return i({id:u.toString(),text:l,user:y,date:{time:Date.now()},reply:[]}),n.current&&(n.current.value=""),m}catch(c){return console.error("Error enviando comentario:",c),alert(c.message||"Error al enviar el comentario."),!1}},Rc=({replyingTo:e,commentRef:n,user:a,path:s,addReply:o,closeForm:r})=>{const[i,l]=C.useState(!0),[c,h]=C.useState(""),d=()=>{n.current?.parentElement&&(n.current.parentElement.dataset.text=`0/${Je}`),l(!0),r()};return t.jsxs("div",{className:"comment-form reply-form",children:[t.jsx("button",{className:"close-reply-form",onClick:d,children:t.jsx(it,{})}),t.jsx(Uo,{commentRef:n,captchaToken:c,setIsDisabled:l}),t.jsx(To,{commentRef:n,captchaToken:c,setCaptchaToken:h,children:t.jsx(xo,{onClick:async u=>{if(i)return;const m=await qo({path:s,ref:n,captchaToken:c,button:u.currentTarget,user:a,id:e,addComment:o});return m&&typeof m=="number"?(setTimeout(()=>{d()},m),!0):!1},isDisabled:i})})]})},ed=({reply:e,replyingTo:n,user:a,onFlag:s})=>{const o=e.text;let r=`${Qe.firstname} ${Qe.lastname}`,i=Qe.username;return e.user&&(r=`${e.user.firstname} ${e.user.lastname}`,i=e.user.username),t.jsx("div",{className:"comment-item reply",children:t.jsxs("div",{className:"comment-header-container",children:[t.jsx(Eo,{user:e.user?e.user:Qe}),t.jsxs("div",{style:{flex:1},children:[t.jsx(ko,{username:r,date:e.date.time}),t.jsxs("div",{className:"comment-reply-to",children:["Respondiendo a ",t.jsx("strong",{children:n})]}),t.jsx("p",{className:"comment-text",children:o}),a?.username.toLowerCase()!==i.toLowerCase()&&t.jsx(Io,{isReply:!0,onFlag:()=>s(e.id)})]})]})})},td=({comment:e,replyingTo:n,path:a,user:s,handleReplyingTo:o,onFlag:r})=>{const i={morereply:e.morereply??!1,reply:e.reply?e.reply:[]},[l,c]=C.useState(i),[h,d]=C.useState(!1),u=process.env.NEXT_PUBLIC_PUBLICATION_ID??"",m=e.text,y=C.useRef(null);let f=`${Qe.firstname} ${Qe.lastname}`,g=Qe.username;e.user&&(f=`${e.user.firstname} ${e.user.lastname}`,g=e.user.username);const w=b=>{c({morereply:l.morereply,reply:[b,...l.reply]})};return t.jsx("div",{className:"comment-item",children:t.jsxs("div",{className:"comment-header-container","data-hasreplies":l.reply.length>0?"true":"false",children:[t.jsx(Eo,{user:e.user?e.user:Qe}),t.jsxs("div",{style:{flex:1},children:[t.jsx(ko,{username:f,date:e.date.time}),t.jsx("p",{className:"comment-text",children:m}),s?.username.toLowerCase()!==g.toLowerCase()&&t.jsx(Io,{onReply:()=>o(e.id),onFlag:()=>r(e.id)}),n===e.id&&s&&t.jsx(Rc,{replyingTo:n,commentRef:y,addReply:w,user:s,path:a,closeForm:()=>o("")}),l.reply.length>0&&t.jsxs("div",{className:"comment-replies",children:[l.reply.map(b=>t.jsx(ed,{user:s,reply:b,replyingTo:f,onFlag:r},b.id)),h?t.jsx("div",{style:{marginLeft:"4rem",position:"relative"},children:t.jsx(je,{})}):l.morereply&&t.jsx("button",{className:"comment-replies-button reply-button",onClick:async()=>{const b=l.reply[l.reply.length-1]?.id;d(!0);try{const S=(await bn({publication:u,path:a??"",size:2,sizereply:2,id:e.id,lastid:b,state:"5,6",apiToken:process.env.NEXT_PUBLIC_X_SECURITY_TOKEN}))[0];d(!1),c({morereply:S.morecomment,reply:[...l.reply,...S.comments]})}catch(U){throw d(!1),new Error(`Error al obtener comentarios: ${U}`)}},children:"Más Respuestas"})]})]})]})})},nd=({commentRef:e,user:n,path:a,addComment:s})=>{const[o,r]=C.useState(!0),[i,l]=C.useState("");return t.jsxs("div",{className:"comment-form",children:[t.jsx(Uo,{commentRef:e,captchaToken:i,setIsDisabled:r}),t.jsx(To,{commentRef:e,captchaToken:i,setCaptchaToken:l,children:t.jsx(xo,{onClick:async c=>{if(o)return;const h=await qo({path:a,ref:e,captchaToken:i,button:c.currentTarget,user:n,addComment:s});return h&&typeof h=="number"?(e.current?.parentElement&&(e.current.parentElement.dataset.text=`0/${Je}`),r(!0),setTimeout(()=>{e.current?.parentElement&&(e.current.parentElement.dataset.text=`0/${Je}`),r(!0)},h),!0):!1},isDisabled:o})})]})},{PUBLIC_PUBLICATION_ID:ad,PUBLIC_X_SECURITY_TOKEN:sd}=J(),Bo=ad??"",od=({isAuthenticated:e,path:n,user:a,handleLogout:s,CAPTCHA_KEY_V2:o})=>{const r=n.replaceAll("/","|"),[i,l]=C.useState(void 0),[c,h]=C.useState(""),{comments:d,setComments:u}=Jc(r),[m,y]=C.useState(!1),f=C.useRef(null),g=I=>{h(c===I?"":I)},w=I=>{u(d?{...d,comments:[I,...d.comments??[]]}:void 0)},b=I=>{l(I)},U=async()=>{if(!d||!d.morecomment||d.comments.length===0)return;const I=d.comments[d.comments.length-1];if(!I)return;y(!0);const P=I.id;try{const z=(await bn({publication:Bo,path:r??"",size:5,sizereply:2,id:void 0,lastid:P,state:"5,6",apiToken:sd}))[0];u({morecomment:z.morecomment??!1,comments:[...d.comments,...z.comments]}),y(!1)}catch($){throw y(!1),new Error(`Error al obtener comentarios: ${$}`)}},S=d?.comments&&d.comments.length>0,M=S?"Comparte tu opinión de este artículo.":"Se el primero en compartir tu opinión de este artículo.",x=t.jsx("div",{style:{display:"flex",width:"100%",justifyContent:"center"},children:t.jsx(je,{})});return t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"comments-container",children:t.jsx(ae,{title:S||e?"COMENTARIOS":!1,children:t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"comments-header",children:e&&a&&t.jsxs(t.Fragment,{children:[t.jsx(Gc,{user:a,handleLogout:s,message:M}),t.jsx(nd,{commentRef:f,user:a,addComment:w,path:r})]})}),t.jsx("div",{className:"comments-list","data-isauthenticated":`${e}`,children:d?d.comments&&d.comments.length>0?t.jsxs(t.Fragment,{children:[d.comments.map(I=>t.jsx(td,{comment:I,replyingTo:c,handleReplyingTo:g,onFlag:b,user:a??Qe,path:r},I.id)),m&&x]}):null:x}),d?.morecomment&&!m&&t.jsx("button",{className:"comment-replies-button",onClick:U,children:"Más"})]})})}),t.jsx(Wc,{username:a?.username??void 0,publication:Bo,commentId:i,isOpen:i!==void 0,onClose:()=>l(void 0),CAPTCHA_KEY_V2:o})]})},ca=async(e,n)=>{if(!e)throw new Error("No action provided");if(!n)throw new Error("No site key provided");const a=window.grecaptcha;if(!a?.enterprise)throw new Error("grecaptcha not loaded");return new Promise((s,o)=>{a.enterprise.ready(async()=>{try{const r=await a.enterprise.execute(n,{action:e});if(!r)throw new Error("Captcha token no generado");s(r)}catch(r){o(r)}})})},Lo={email:{label:"Email",required:!0},given_name:{label:"Nombre",required:!0},family_name:{label:"Apellido",required:!0},password:{label:"Contraseña",required:!0},confirmPassword:{label:"Confirmar contraseña",required:!0}},vn=[{label:"La contraseña debe tener al menos 8 caracteres",test:e=>e.length>=8},{label:"Usa un número",test:e=>/\d/.test(e)},{label:"Usa una letra minúscula",test:e=>/[a-z]/.test(e)},{label:"Usa una letra mayúscula",test:e=>/[A-Z]/.test(e)},{label:"Usa un símbolo",test:e=>/[^A-Za-z0-9]/.test(e)}];function rd({goToLogin:e,handleGoogleLogin:n}){const[a,s]=C.useState({}),[o,r]=C.useState(!1),[i,l]=C.useState(!1),[c,h]=C.useState(null),[d,u]=C.useState("register"),m=(w,b)=>{s(U=>({...U,[w]:b}))},y=async w=>{w.preventDefault(),h(null),l(!0);try{const b=Object.keys(Lo).filter(P=>!["username","password","confirmPassword"].includes(P)).map(P=>({Name:P,Value:a[P]}));if(b.some(P=>{if(!P.Value||P.Value.trim()==="")return!0}))return l(!1),h("Complete todos los campos");if(a.password!==a.confirmPassword){h("Las contraseñas no coinciden");return}const U=a.password||"";if(vn.some(P=>!P.test(U))){h("La contraseña no es válida");return}const M=Math.floor(Date.now()/1e3);b.push({Name:"updated_at",Value:String(M)});const x=await ca("comment_register","");if(!x)throw new Error("Captcha token no generado");const I=await fetch("/api/auth/create-user",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:a.email,password:a.password,userAttributes:b,token:x})});if(!I.ok){const P=await I.json().catch(()=>({}));if(P.code==="UsernameExistsException"){await fetch("/api/auth/resend-code",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:a.email})}),u("confirm");return}throw new Error(P?.error||"Error al crear usuario")}u("confirm")}catch(b){console.log(b),h(b?.message||b?.error||"Error inesperado")}finally{l(!1)}},f=async w=>{if(w.preventDefault(),!a.confirmationCode){h("Debes ingresar el código de verificación");return}h(null),l(!0);try{const b=await fetch("/api/auth/confirm-user",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:a.email,code:a.confirmationCode})});if(!b.ok){const U=await b.json().catch(()=>({}));throw new Error(U?.error||"Error al confirmar usuario")}u("success")}catch(b){h(b?.message||"Error inesperado")}finally{l(!1)}},g=a.password||"";return t.jsxs(t.Fragment,{children:[d==="register"&&t.jsxs(t.Fragment,{children:[t.jsxs("button",{onClick:n,className:_.google,children:[t.jsx("img",{src:"https://www.gstatic.com/firebasejs/ui/2.0.0/images/auth/google.svg",alt:"",className:_.googleIcon}),t.jsx("span",{children:"Continuar con Google"})]}),t.jsx("div",{className:_.divider,children:t.jsx("span",{children:"o"})}),t.jsxs("form",{onSubmit:y,className:_.form,"data-error":c?"true":"false",children:[t.jsx("ul",{className:_.formUl,children:Object.entries(Lo).map(([w,{label:b}])=>t.jsxs("div",{className:_.field,children:[t.jsx("label",{className:_.label,children:b}),t.jsx("input",{type:w.toLowerCase().includes("password")?o?"text":"password":w==="birthdate"?"date":w==="email"?"email":w==="phone_number"?"tel":"text",name:w,value:a[w]||"",onChange:U=>m(w,U.target.value),className:_.input,placeholder:""}),w==="password"&&t.jsx("div",{className:_.passwordChecker,children:vn.map((U,S)=>{const M=U.test(g);return t.jsxs("div",{className:M?_.valid:_.invalid,children:[t.jsx("div",{children:M?"✔":"○"}),t.jsx("div",{children:U.label})]},S)})}),w==="confirmPassword"&&t.jsxs("div",{className:_.checkboxRow,children:[t.jsx("input",{id:"showPasswordRegister",type:"checkbox",checked:o,onChange:U=>r(U.target.checked)}),t.jsx("label",{htmlFor:"showPasswordRegister",className:_.checkboxLabel,children:"Mostrar contraseñas"})]})]},w))}),c&&t.jsx("p",{className:_.error,children:c}),t.jsxs("p",{className:_.terms,children:["Al continuar, confirmo que he leído y aceptado los",t.jsx("a",{href:"/pages/politicas-de-privacidad.html",target:"_blank",children:"Términos y Condiciones"}),"de nuestra comunidad"]}),t.jsx("button",{type:"submit",className:_.primary,disabled:i,children:i?t.jsx(je,{}):"Crear cuenta"})]})]}),d==="confirm"&&t.jsxs("form",{onSubmit:f,className:_.form,"data-error":c?"true":"false",children:[t.jsxs("div",{className:_.field,children:[t.jsx("label",{className:_.label,children:"Código de verificación"}),t.jsx("input",{type:"text",name:"confirmationCode",value:a.confirmationCode||"",onChange:w=>m("confirmationCode",w.target.value),className:_.input,required:!0})]}),c&&t.jsx("p",{className:_.error,children:c}),t.jsx("button",{type:"submit",className:_.primary,disabled:i,children:i?t.jsx(je,{}):"Confirmar cuenta"}),t.jsxs("p",{className:_.switch,children:["¿Ya confirmaste antes?",t.jsx("button",{type:"button",onClick:e,children:"Iniciar sesión"})]})]}),d==="success"&&t.jsxs("form",{className:_.form,children:[t.jsxs("div",{className:_.successContainer,children:[t.jsx("div",{className:_.thumbsUp,children:t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:132,height:120,fill:"none",children:t.jsx("path",{fill:"#0073BE",d:"M119.249 42.357H81.915l5.621-27.039.177-1.893a8.906 8.906 0 0 0-2.603-6.272L78.838.941 39.907 39.93c-2.19 2.13-3.491 5.089-3.491 8.343v59.167c0 6.508 5.325 11.833 11.833 11.833h53.25c4.911 0 9.112-2.958 10.887-7.218l17.868-41.713c.533-1.36.829-2.78.829-4.32V54.192c0-6.509-5.325-11.834-11.834-11.834Zm0 23.667-17.75 41.417h-53.25V48.274l25.679-25.678L67.36 54.19h51.889v11.833ZM.916 48.274h23.667v71H.916v-71Z"})})}),t.jsxs("div",{className:_.successMessage,children:[t.jsx("p",{children:"Confirmación completa."}),t.jsx("p",{children:"Ya eres parte de la comunidad!"})]})]}),t.jsx("button",{onClick:e,className:_.primary,children:"Iniciar sesión"})]}),d==="register"&&t.jsxs("p",{className:_.switch,children:["¿Ya tenés cuenta?",t.jsx("button",{type:"button",onClick:e,children:"Iniciar sesión"})]})]})}function id({onClose:e,checkAuth:n,goToRegister:a,handleGoogleLogin:s,CAPTCHA_KEY:o}){const[r,i]=C.useState("login"),[l,c]=C.useState(""),[h,d]=C.useState(""),[u,m]=C.useState(""),[y,f]=C.useState(""),[g,w]=C.useState(""),[b,U]=C.useState(!1),[S,M]=C.useState(!1),[x,I]=C.useState(null),P=async O=>{if(!S){O.preventDefault(),I(null),M(!0);try{const q=await ca("comment_login",o);if(!q)throw new Error("Captcha token no generado");const H=await fetch("/api/auth/login-password",{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({email:l,password:h,token:q})});if(!H.ok){const ee=await H.json().catch(()=>({}));throw new Error(ee?.error||"Ha ocurrido un error")}e(),await n()}catch(q){I(q?.message||"Error inesperado")}finally{M(!1)}}},$=async O=>{if(!S){O.preventDefault(),I(null),M(!0);try{const q=await fetch("/api/auth/forgot-password",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:l})});if(!q.ok){const H=await q.json().catch(()=>({}));throw new Error(H?.error||"Error al enviar código")}d(""),i("changePassword")}catch(q){I(q?.message||"Error inesperado")}finally{M(!1)}}},z=async O=>{if(S)return;if(O.preventDefault(),y!==g){I("Las contraseñas no coinciden");return}if(vn.some(H=>!H.test(y))){I("La contraseña no cumple con los requisitos");return}I(null),M(!0);try{const H=await fetch("/api/auth/confirm-forgot-password",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:l,code:u,newPassword:y})});if(!H.ok){const ee=await H.json().catch(()=>({}));throw new Error(ee?.error||"Error al cambiar contraseña")}i("feedback")}catch(H){I(H?.message||"Error inesperado")}finally{M(!1)}};return t.jsxs(t.Fragment,{children:[r==="login"&&t.jsx(ld,{email:l,password:h,showPassword:b,loading:S,error:x,setEmail:c,setPassword:d,setShowPassword:U,onSubmit:P,onForgot:()=>{I(null),i("forgot")},onRegister:a,handleGoogleLogin:s}),r==="forgot"&&t.jsx(cd,{email:l,setEmail:c,loading:S,error:x,onSubmit:$,onBack:()=>{I(null),i("login")}}),r==="changePassword"&&t.jsx(dd,{email:l,confirmationCode:u,newPassword:y,confirmNewPassword:g,showPassword:b,loading:S,error:x,setConfirmationCode:m,setNewPassword:f,setConfirmNewPassword:w,setShowPassword:U,onSubmit:z,onBack:()=>{I(null),i("forgot")}}),r==="feedback"&&t.jsx(hd,{onBackToLogin:()=>{I(null),i("login")}})]})}function ld({email:e,password:n,showPassword:a,loading:s,error:o,setEmail:r,setPassword:i,setShowPassword:l,onSubmit:c,onForgot:h,onRegister:d,handleGoogleLogin:u}){return t.jsxs(t.Fragment,{children:[t.jsxs("button",{onClick:u,className:_.google,children:[t.jsx("img",{src:"https://www.gstatic.com/firebasejs/ui/2.0.0/images/auth/google.svg",alt:"",className:_.googleIcon}),t.jsx("span",{children:"Continuar con Google"})]}),t.jsx("div",{className:_.divider,children:t.jsx("span",{children:"o"})}),t.jsxs("form",{onSubmit:c,className:_.form,"data-error":o?"true":"false",children:[t.jsxs("div",{className:_.field,children:[t.jsx("label",{className:_.label,children:"Email"}),t.jsx("input",{type:"email",value:e,onChange:m=>r(m.target.value),className:_.input,placeholder:""})]}),t.jsxs("div",{className:_.field,children:[t.jsx("label",{className:_.label,children:"Contraseña"}),t.jsx("input",{type:a?"text":"password",value:n,onChange:m=>i(m.target.value),className:_.input,placeholder:""}),t.jsxs("div",{className:_.checkboxRow,children:[t.jsx("input",{id:"showPasswordLogin",type:"checkbox",checked:a,onChange:m=>l(m.target.checked)}),t.jsx("label",{htmlFor:"showPasswordLogin",className:_.checkboxLabel,children:"Mostrar contraseña"})]})]}),o&&t.jsx("p",{className:_.error,children:o}),t.jsx("button",{type:"submit",className:_.primary,disabled:s,children:s?t.jsx(je,{}):"Iniciar Sesión"})]}),t.jsxs("p",{className:_.switch,children:["¿No tenés cuenta?",t.jsx("button",{type:"button",onClick:d,children:"Registrate"})]}),t.jsx("button",{type:"button",className:_.forgotPassword,onClick:h,children:"Olvidé mi contraseña"})]})}function cd({email:e,setEmail:n,loading:a,error:s,onSubmit:o,onBack:r}){return t.jsxs("form",{onSubmit:o,className:_.form,"data-error":s?"true":"false",children:[t.jsx("p",{className:_.message,children:"Ingrese su dirección de correo electrónico. Le enviaremos un mensaje con un código para restablecer la contraseña."}),t.jsxs("div",{className:_.field,children:[t.jsx("label",{className:_.label,children:"Email"}),t.jsx("input",{type:"email",value:e,name:"email",onChange:i=>n(i.target.value),className:_.input,placeholder:""})]}),s&&t.jsx("p",{className:_.error,children:s}),t.jsx("button",{type:"submit",className:_.primary,disabled:a,children:a?t.jsx(je,{}):"Enviar código"}),t.jsx("p",{className:_.switch,children:t.jsx("button",{type:"button",onClick:r,children:"Volver"})})]})}function dd({email:e,confirmationCode:n,newPassword:a,confirmNewPassword:s,showPassword:o,loading:r,error:i,setConfirmationCode:l,setNewPassword:c,setConfirmNewPassword:h,setShowPassword:d,onSubmit:u,onBack:m}){return t.jsxs("form",{onSubmit:u,className:_.form,"data-error":i?"true":"false",children:[t.jsxs("p",{className:_.message,children:["Hemos enviado un código de restablecimiento de contraseña en un mensaje de Correo electrónico a ",Vc(e),". Ingrese el código y la contraseña nueva."]}),t.jsxs("ul",{className:_.formUl,children:[t.jsxs("div",{className:_.field,children:[t.jsx("label",{className:_.label,children:"Código de verificación"}),t.jsx("input",{type:"text",value:n,onChange:y=>l(y.target.value),className:_.input,placeholder:""})]}),t.jsxs("div",{className:_.field,children:[t.jsx("label",{className:_.label,children:"Nueva contraseña"}),t.jsx("input",{type:o?"text":"password",value:a,onChange:y=>c(y.target.value),className:_.input,placeholder:"",name:"password"}),t.jsx("div",{className:_.passwordChecker,children:vn.map((y,f)=>{const g=y.test(a);return t.jsxs("div",{className:g?_.valid:_.invalid,children:[t.jsx("div",{children:g?"✔":"○"}),t.jsx("div",{children:y.label})]},f)})})]}),t.jsxs("div",{className:_.field,children:[t.jsx("label",{className:_.label,children:"Confirmar contraseña"}),t.jsx("input",{type:o?"text":"password",value:s,onChange:y=>h(y.target.value),className:_.input,placeholder:""}),t.jsxs("div",{className:_.checkboxRow,children:[t.jsx("input",{id:"showPasswordForgot",type:"checkbox",checked:o,onChange:y=>d(y.target.checked)}),t.jsx("label",{htmlFor:"showPasswordForgot",className:_.checkboxLabel,children:"Mostrar contraseñas"})]})]})]}),i&&t.jsx("p",{className:_.error,children:i}),t.jsx("button",{type:"submit",className:_.primary,style:{maxWidth:r?"revert-layer":"fit-content"},disabled:r,children:r?t.jsx(je,{}):"Cambiar contraseña"}),t.jsx("p",{className:_.switch,children:t.jsx("button",{type:"button",onClick:m,children:"Volver"})})]})}function hd({onBackToLogin:e}){return t.jsxs("div",{className:_.form,children:[t.jsx("p",{className:_.success,children:"La contraseña fue cambiada con éxito"}),t.jsx("button",{type:"button",className:_.primary,onClick:e,children:"Iniciar Sesión"})]})}function ud({loginUrl:e,COGNITO_AUTH_PREFIX:n,CAPTCHA_KEY:a,onClose:s,checkAuth:o,icon:r}){const[i,l]=C.useState("login"),c=async()=>{if(!e)return;const h=encodeURIComponent(window.location.pathname);window.location.href=`/api/auth/login?redirect=${h}`};return t.jsx("div",{className:_.overlay,role:"dialog","aria-modal":"true",id:"pop-overlay",onClick:h=>{const d=h.target;d&&d.id==="pop-overlay"&&s()},children:t.jsxs("div",{className:_.card,children:[t.jsxs("header",{className:_.header,children:[t.jsx("div",{className:_.logo,children:r?r():null}),t.jsx("button",{onClick:s,className:_.close,"aria-label":"Cerrar",children:t.jsx(it,{})})]}),i==="login"&&t.jsx(id,{CAPTCHA_KEY:a,onClose:s,checkAuth:o,handleGoogleLogin:c,goToRegister:()=>l("register")}),i==="register"&&t.jsx(rd,{handleGoogleLogin:c,goToLogin:()=>l("login")})]})})}function md({isAuthenticated:e,setIsAuthenticated:n,loginUrl:a,user:s,path:o,checkAuth:r,icon:i,COGNITO_AUTH_PREFIX:l,captchaVars:c}){const[h,d]=C.useState(!1),u=async()=>{{const y=window.location.pathname;window.location.href=`${window.location.origin}/api/auth/logout?redirect=${encodeURIComponent(y)}`}},m=async y=>{y.preventDefault(),a&&d(!0)};return t.jsxs(t.Fragment,{children:[h&&t.jsx(ud,{loginUrl:a,COGNITO_AUTH_PREFIX:l,CAPTCHA_KEY:c.CAPTCHA_KEY,icon:i,checkAuth:r,onClose:()=>{d(!1)}}),!e&&t.jsxs("div",{className:"auth-container",children:[t.jsx("p",{children:"Sumate a la comunidad para dejar tu comentario"}),t.jsx("a",{href:a,onClick:m,className:"login-button",children:"Iniciar Sesión"})]}),t.jsx(od,{isAuthenticated:e,handleLogout:u,path:o,user:e?s:void 0,CAPTCHA_KEY_V2:c.CAPTCHA_KEY_V2})]})}const fd="radioformula_";function gd({isVisible:e,path:n,icon:a,COGNITO_AUTH_PREFIX:s,captchaVars:o}){const[r,i]=C.useState(null),[l,c]=C.useState(null),h=async()=>{if(e){if(document.cookie.search(fd+"IS_AUTH=true")===-1){i(!1),c(null),console.log("user not logged");return}try{const y=await(await fetch("/api/auth/user",{credentials:"include"})).json();i(y.isAuthenticated),c(y.user??null)}catch(m){console.error("Error checking auth:",m),i(!1),c(null)}}};C.useEffect(()=>{h()},[]),C.useEffect(()=>{if(!l||!e||typeof window>"u")return;const m=window;if(typeof m!="function"){console.warn("gtag no está disponible todavía");return}m.gtag("set",{user_id:l.username}),console.log("username setted successfully")},[l,e]);const d="/api/auth/login",u=t.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:310,position:"relative"},children:t.jsx(je,{})});return r===null?u:e?t.jsx(md,{COGNITO_AUTH_PREFIX:s,captchaVars:o,icon:a,isAuthenticated:r,setIsAuthenticated:i,loginUrl:d,user:l??void 0,checkAuth:h,path:n}):u}const pd=({render:e,internalPath:n,section:a,currentNews:s,stylesConfig:o,icon:r,COGNITO_AUTH_PREFIX:i,captchaVars:l={CAPTCHA_KEY_V2:"invalidKey",CAPTCHA_KEY:"invalidKey"}})=>{const c=C.useRef(null),[h,d]=C.useState(!1);C.useEffect(()=>{const m=new IntersectionObserver(([y])=>{y?.isIntersecting&&(d(!0),m.disconnect())},{rootMargin:"0px",threshold:.1});return c.current&&m.observe(c.current),()=>m.disconnect()},[]);const u={comment:t.jsx(gd,{COGNITO_AUTH_PREFIX:i??"template_",captchaVars:l,path:n,icon:r,isVisible:h}),more:t.jsx(Oc,{section:a,currentNews:s,stylesConfig:o,isVisible:h})};return t.jsx("div",{ref:c,suppressHydrationWarning:!0,style:{...o?o["Modulo 1x3 Client"]?o["Modulo 1x3 Client"]:o["Modulo 1x3"]:{}},children:u[e]})};async function Ad({publication:e,path:n,username:a,comment:s,id:o,captchaEnvVars:r,recaptchaResponse:i,baseUrl:l,apiToken:c,securityToken:h}){if(console.log("Adding comment with data:",{publication:e,path:n,username:a,comment:s,id:o,recaptchaResponse:i}),!e||!n||!s||!a)return{type:"error",message:"Faltan campos obligatorios. Por favor, completa todos los campos.",status:400};if([e,n,s,a].some(f=>typeof f!="string"))return{type:"error",message:"Datos inválidos. Intenta de nuevo.",status:400};if(!a.trim())return{type:"error",message:"El nombre no puede estar vacío.",status:400};if(!s.trim())return{type:"error",message:"El comentario no puede estar vacío.",status:400};const d=await No(i,r);if(console.log("Verifying captcha token...",d),!d)return{type:"error",message:"Captcha inválido. Intenta nuevamente.",status:403};const u=`${l}/system/modules/com.tfsla.diario.base/templates/hit/5.0/1/newcomments/add`,m={publication:e,path:n.replace(/\|/gi,"/"),username:a??!1,text:s.trim()};o&&(m.id=o);const y=new URLSearchParams(m);try{const{data:f}=await V.get(`${u}?${y.toString()}`,{headers:{"Content-Type":"application/json","x-security-token":h,"x-api-token":c,"User-Agent":"amplifyapp-comments-saas"}});return!f||f.error?(console.error("CMS error response:",f),{type:"error",message:"No se pudo guardar el comentario. Intenta nuevamente en unos minutos.",status:502}):(console.log("Comentario enviado con éxito",f),{type:"success",message:"Comentario enviado con éxito.",status:200})}catch(f){if(console.error("Error enviando comentario:",f),V.isAxiosError(f)){const g=f.response?.status??500,w=f.response?.data;return g===400?{type:"error",message:w?.message||"Solicitud inválida. Verifica que los campos sean correctos.",status:400}:g===403?{type:"error",message:"Captcha inválido o acceso prohibido.",status:403}:g===500?{type:"error",message:"Error interno del servidor del CMS.",status:500}:{type:"error",message:w?.message||"No se pudo enviar el comentario.",status:g}}return{type:"error",message:"Error inesperado. Intenta nuevamente.",status:500}}}const wd=async({token:e,projectId:n,captchaKey:a,apiKey:s,captchaAction:o})=>{if(!e)throw new Error("No token provided");if(!n||!a||!s)throw new Error("Missing project ID or site key");if(!o)throw new Error("No action provided");try{const i=await(await fetch(`https://recaptchaenterprise.googleapis.com/v1/projects/${n}/assessments?key=${s}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({event:{token:e,siteKey:a,expectedAction:o}})})).json();if(!i?.tokenProperties?.valid)throw new Error(`The token was: ${i?.tokenProperties?.invalidReason}`);if(i.tokenProperties.action!==o)throw new Error("The action attribute in your reCAPTCHA tag does not match the action you are expecting to score");return i?.riskAnalysis?.score??0}catch(r){throw console.error("Recaptcha verification failed",r),new Error(String(r))}},yd=e=>{const{content:n,title:a,slot_id:s}=e,o=e.slot_id&&e.slot_id!=="Nota_1";return n&&n.length!==0&&t.jsx(ae,{title:a,titleUrl:e.titleUrl,children:t.jsx(Ye,{slot_id:s,cardWidth:200,children:n.map((r,i)=>{const l={...r,main:{...r.main,title:{...r.main.title,section:o?r.main.title.home:r.main.title.section}}};return t.jsx(Ut,{...l,titleGradient:!0,paths:e.paths},i)})})})},Cd=e=>{const{content:n,title:a,slot_id:s}=e,o=e.slot_id&&e.slot_id!=="Nota_1";return n&&n.length!==0&&t.jsx(ae,{title:a,titleUrl:e.titleUrl,children:t.jsx(Ye,{slot_id:s,cardWidth:343,cardGap:32,visibleItems:3,children:n.map((r,i)=>{const l={...r,main:{...r.main,title:{...r.main.title,section:o?r.main.title.home:r.main.title.section}}};return t.jsx(Ut,{...l,titleGradient:!0,paths:e.paths},i)})})})},bd=e=>{const{content:n,title:a,slot_id:s}=e,o=e.slot_id&&e.slot_id!=="Nota_1";return n&&n.length!==0&&t.jsx(ae,{title:a,titleUrl:e.titleUrl,children:t.jsx(Ye,{slot_id:s,fullPageWidth:!0,visibleItems:1,pagination:!0,cardGap:0,children:n.map((r,i)=>{const l={...r,main:{...r.main,title:{...r.main.title,section:o?r.main.title.home:r.main.title.section}}};return C.createElement(Ut,{...l,key:i,titleGradient:!0,paths:e.paths})})})})},_n=e=>{const n={};for(const a in e)a.startsWith("--")&&(n[a]=e[a]);return n},Ze={headerSection:"_headerSection_1c69w_1",title:"_title_1c69w_11",subtitle:"_subtitle_1c69w_23",newsContent:"_newsContent_1c69w_36",containerCards:"_containerCards_1c69w_44",image:"_image_1c69w_50",blockHeadContainer:"_blockHeadContainer_1c69w_56"},vd=e=>{const{content:n,title:a,isVideo:s}=e;if(!n||n.length===0)return;const o=n[0],r=n.slice(1),i=e.slot_id&&e.slot_id!=="Nota_1";return o&&r&&t.jsxs(ae,{title:a,titleUrl:e.titleUrl,children:[t.jsx("div",{className:Ze.headerSection,children:t.jsxs("a",{style:{"--heightImageOverwriteMobile":"200%"},className:Ze.image,href:o?.info?.link?.url,target:o?.info?.link?.target,children:[t.jsxs("div",{className:Ze.blockHeadContainer,children:[t.jsx("p",{className:Ze.title,children:o?.main?.title.home}),o?.main?.subtitle?.rendered&&t.jsx("p",{className:Ze.subtitle,children:o?.main?.subtitle?.striped})]}),t.jsx(pe,{preview:o.preview})]})}),t.jsxs("div",{className:Ze.containerCards,children:[t.jsx("div",{className:"banner-context",style:{order:1},children:e.banner}),t.jsx("div",{className:Ze.newsContent,children:Array.isArray(r)&&r.map((l,c)=>{const h={...l,main:{...l.main,title:{...l.main.title,section:i?l.main.title.home:l.main.title.section}}};return t.jsx("div",{style:{order:c},children:t.jsx(Ee,{...h,isVideo:s,paths:e.paths})},c)})})]})]})},Do={banner:e=>t.jsx(ne,{...e,name:e.slot_id.replace("Home","block")}),readest:e=>t.jsx(rn,{...e}),"Modulo 1x3":e=>t.jsx(ta,{...e}),"Modulo 1x4":e=>t.jsx(so,{...e}),"Modulo 1x5":e=>t.jsx(oo,{...e}),"Destacado noticias":e=>t.jsx(eo,{...e}),"Destacado full width":e=>t.jsx(vd,{...e}),"Destacado videos":e=>t.jsx(ro,{...e}),"Carrusel card":e=>t.jsx(co,{...e}),"Carrusel story":e=>t.jsx(yd,{...e}),"Carrusel owl":e=>t.jsx(Cd,{...e}),"Modulo fotogaleria":e=>t.jsx(bd,{...e}),"Carrusel opinion":e=>t.jsx(ho,{...e}),"Modulo 1x3 card":e=>t.jsx(lo,{...e})};function Mo({component:e,slot_id:n,data:a,banners:s}){if(s)return Do[e]&&t.jsx("div",{className:"home-slot",style:_n(a),children:Do[e]({...a,banners:s,slot_id:n})})}function _d({children:e,stylesConfigEntry:n}){return t.jsx("div",{className:"home-slot",style:_n(n),children:e})}const Po={Diario:e=>{if(!e?.data||e.data.length===0)return;const n=e.data.slice(1);return t.jsx(Zs,{...e.data[0],itemReverseOrder:!0,isLarge:!0,block:n,banners:e.banners,showSuper:e.showSuper,rightOnlyBanner:e.rightOnlyBanner,customSectionCardStyles:e.customSectionCardStyles,customNewsDescriptionStyles:e.customNewsDescriptionStyles,paths:e.paths})},"Diario con imagen":e=>{if(!e?.data||e.data.length===0)return;const n=e.data.slice(1);return t.jsx(Zs,{...e.data[0],itemReverseOrder:!0,isLarge:!0,showSuper:e.showSuper,block:n,banners:e.banners,customSectionCardStyles:e.customSectionCardStyles,customNewsDescriptionStyles:e.customNewsDescriptionStyles,paths:e.paths})},Super:e=>t.jsx(ht,{...e.data[0],paths:e.paths}),"3 notas verticales":e=>t.jsx(Ql,{content:e.data,customLargeSection:e.customLargeSection,customSlimSection:e.customSlimSection,paths:e.paths}),"3 notas horizontales":e=>t.jsx(Ol,{content:e.data,customLargeSection:e.customLargeSection,customSmallSection:e.customSmallSection,paths:e.paths})},Nn=({component:e,data:n,banners:a,rightOnlyBanner:s})=>t.jsx("div",{style:_n(n),children:Po[e]&&Po[e]({...n,rightOnlyBanner:s,banners:a})}),Nd=({slots:e,DYNAMIC_SLOT_SUBINDEXES:n,stylesConfig:a,AutorIcon:s,config:o,banners:r})=>{const i=[],c=n,h=Object.keys(e).length/c;for(let d=1;d<=h;d++)for(let u=1;u<=c;u++){const m="Home_"+d+"_"+u;!e[m]||!e[m].blockSass||!e[m].blockSass[0]||!e[m].blockSass[0].value||!e[m].blockSass[0].block||e[m].blockSass[0].block==="No Mostrar"||i.push(t.jsxs(Ts,{show:!!e[m].content?.data,order:(d-1)*c+(u-1),children:[t.jsx(Mo,{component:e[m].blockSass[0].block,banners:r,slot_id:m,data:{...e[m].blockSass[0].block?a[e[m].blockSass[0].block]:[],content:e[m].content?.data??[],title:e[m].blockSass[0].title??void 0,titleUrl:e[m].blockSass[0].link??void 0,autorIcon:t.jsx(s,{}),paths:o.paths}}),t.jsx(St,{children:t.jsx(st,{banners:r,index:"dynamic_"+d+"_"+u})})]},d+"_"+u))}return i},Sd=({mainBlock:e,StylesConfigMain:n,config:a,banners:s})=>{const{PUBLIC_ENV:o}=J();if(o!=="local")return null;const r=e?.news?.data||[],i=(l,c)=>({...e?.news,...n[l],data:r.slice(0,c),paths:a.paths});return t.jsxs(t.Fragment,{children:[t.jsx(Nn,{component:"Super",data:i("Super",1),banners:s}),t.jsx(St,{children:t.jsx(st,{banners:s,index:1})}),t.jsx(Nn,{component:"3 notas verticales",data:i("3 notas verticales",3),banners:s}),t.jsx(St,{children:t.jsx(st,{banners:s,index:1})}),t.jsx(Nn,{component:"3 notas horizontales",data:i("3 notas horizontales",3),banners:s}),t.jsx(St,{children:t.jsx(st,{banners:s,index:1})})]})};A.AssetsPreconnect=Ia,A.AutorComponent=Tc,A.AutorHeader1=Vs,A.AutorHeader2=Ws,A.BannerAdvertising=ne,A.BannerAdvertisingMiddle=st,A.CarrouselCSR=Ki,A.CarrouselIRS=Ye,A.CarruselCard=co,A.CarruselOpinion=ho,A.CommonServices=ge,A.Comscore=da,A.ContactInfoServer=Yl,A.ContactInput=Nl,A.ContactSelect=Sl,A.ContactTextarea=kl,A.ContentLayout1=at,A.ContentLayoutTema=Wn,A.DEBUG_MainSlots=Sd,A.DestacadoNoticias=eo,A.DestacadoVideos=ro,A.DynamicBlockServices=Es,A.DynamicComponents=Nd,A.DynamicMainSlot=Nn,A.DynamicSlot=Mo,A.EditorialBlock=$l,A.ErrorComponent=_l,A.Font=Qa,A.Footer=gl,A.FormatAfterScripts=Ea,A.FormatScripts=Un,A.GA4=ha,A.GTM=jo,A.GalleryHeader=po,A.GenerateBody=Hi,A.GenerateHead=zi,A.Header=Ll,A.ImageOffline=Ls,A.IssuuServices=Qi,A.ItemListSchema=Ba,A.JournalistArticule2=Ml,A.JournalistGroup=Pl,A.LayoutNewsComponent=Kn,A.LazyLoader=pd,A.LiveBlogHeader=Hs,A.Location=Wi,A.MainComponentServices=gr,A.Marfeel=ua,A.MiddleSection=St,A.Modulo1x3=ta,A.Modulo1x3Card=lo,A.Modulo1x4=so,A.Modulo1x5=oo,A.Modulo2Columnas=zl,A.Modulo3Columnas=no,A.ModuloNewsletter=Hl,A.ModuloOpinion=Gl,A.NewListResponseDataPH=vo,A.NewsArticle=Da,A.NewsComponent=Nc,A.NewsContent=un,A.NextPrev=Et,A.OrgList=Ma,A.PreloadImages=xn,A.REPORT_REASONS=Ue,A.Readest=rn,A.ScriptHydrator=Dc,A.SearchSection=Uc,A.Section=ae,A.SectionCard=Ee,A.SectionCard2=Ut,A.SectionCardServerComponent=wn,A.SectionServerComponent=Wl,A.ShowSection=Ts,A.SocialNetworks=go,A.SpeculationRules=qa,A.StaticSlotWrapper=_d,A.SubscribeColumn=Os,A.SubscribeRow=Qs,A.SubscribeWhatsAppColumn=il,A.TagComponent=Ec,A.TagSection=Dl,A.TimeLine=Fs,A.TrimPathname=lr,A.VideoBlock3=vl,A.VideoBlock4=Il,A.VideoSection=Lc,A.VideosSchemas=Oa,A.WebsiteList=Pa,A.addComment=Ad,A.bannersReplace=Wt,A.becomeVideoObject=Re,A.coloringByStrokeSVGs=js,A.compileStyleProps=_n,A.cutString=me,A.extractRealtedNews=rr,A.formatDate=Ce,A.formatDateEdiciones=or,A.formatDateJournalistArticule=En,A.formatDateTimeline=ya,A.formatNewsMeta=_a,A.formatVideoData=Ua,A.generalGetData=$i,A.getCaptchaToken=ca,A.getComments=bn,A.getConfig=J,A.getDynamicSlots=ji,A.getEnvironmentUrl=pt,A.getEnvironmentUrlFront=va,A.getImageUrl=te,A.getNextMeta=At,A.getPage=yt,A.getPreloadImages=fr,A.getPrevMeta=wt,A.getReportReasonLabel=zc,A.getResponse=Ca,A.getResponsePromise=ba,A.getSchemas=Yt,A.getScriptReplaces=qn,A.getSlugs=Ga,A.getTypeOfNews=dr,A.getVideoRealPath=hr,A.initLibrary=ar,A.metadataToJSX=ka,A.metadata_defaults=Is,A.parseTags=In,A.pathnameSplit=Na,A.removePages=ja,A.reportComment=$c,A.shareButtons=Gs,A.socialIcons=cn,A.speculationRules=xa,A.speculationRulesHome=Ta,A.urlReplaces=Sa,A.verifyCaptchaTokenEnterprise=wd,Object.defineProperty(A,Symbol.toStringTag,{value:"Module"})}));
117
+ `}o+=y,r=d}return o+=e.slice(r),o}async function wc(e){const{news:n,banners:a,newsRelatedResponses:s,slug:o,itemList:r,socials:i,getVideos:l}=e;let c=n?.body?.rendered??"";c=c.replace(/<script[^>]*src=["']https:\/\/platform\.twitter\.com\/widgets\.js["'][^>]*><\/script>/gi,""),c=c.replace(/&nbsp;/g,""),c=fc(c,a),c=gc(c),c=await Ao(c),c=await pc(c,e.texts,s),c=await Ac(c,l),c=uc(c),c=mc(c);const h=n.main.sources??[];return t.jsxs("div",{className:yn.content,children:[o!=="liveblogs"?n.hascontent?.hasgalleryimages?t.jsx(po,{newsformated:n,internal:n.info.link.internal}):t.jsx(zs,{preview:n.preview}):null,t.jsx(ne,{banners:a,name:"block_1"}),t.jsx("div",{className:yn.journalistArticleContent,children:t.jsx(ic,{autorIcon:e.autorIcon,socials:i,news:n,texts:e.texts,shareOnlyWhatsApp:e.shareOnlyWhatsApp,noteShare:e.noteShare,paths:e.paths})}),t.jsx(cc,{summary:n.main.summary}),t.jsx("div",{className:yn.contentNews,suppressHydrationWarning:!0,id:"content-news-section",dangerouslySetInnerHTML:{__html:c}}),t.jsx(sc,{texts:e.texts,itemList:r,banners:a,slug:o}),h.length>0&&t.jsxs("div",{className:yn.noteSource,children:[t.jsx(hc,{}),t.jsx("p",{children:e.texts.noteSource+(h.length===1?"":"s")+": "+h.map(d=>d.name).join(", ")})]})]})}const wo={content:"_content_cu8lm_1",title:"_title_cu8lm_18"},yc=async({newsformated:e,internal:n})=>{if(!n)return;const s=await new ge().getNewsMultimedia({path:n,imagesizes:e.preview.sizes[0]?.scale});if(!s)return;const o=s.data.data[0]?.videos.filter(r=>r.type==="video-embedded")[0];return t.jsxs("div",{className:wo.content,children:[t.jsx("div",{dangerouslySetInnerHTML:{__html:o?.code??""}}),t.jsx("p",{className:wo.title,children:o?.title})]})},oa={content:"_content_cu8lm_1",title:"_title_cu8lm_18"},Cc=async({newsformated:e,internal:n})=>{if(!n)return;const s=await new ge().getNewsMultimedia({path:n,imagesizes:e.preview.sizes[0]?.scale});if(!s)return;const o=s.data.data[0]?.videos.filter(r=>r.type==="video-youtube")[0];return t.jsxs("div",{className:oa.content,children:[t.jsx("iframe",{className:oa.iframeStyled,src:`https://www.youtube.com/embed/${o?.code??""}`,frameBorder:"0",allowFullScreen:!0}),t.jsx("p",{className:oa.title,children:o?.title})]})},bc={content:"_content_ezbiw_1"},vc=async({newsformated:e,internal:n})=>{if(!n)return;const s=await new ge().getNews({path:n,imagesizes:e.preview.sizes[0]?.scale});if(!s)return;const o=s.data.data[0]?.external?.iframe;return t.jsx("div",{className:bc.content,dangerouslySetInnerHTML:{__html:o??""}})},ra={content:"_content_156j7_1"},_c=e=>{if(e.news.config.articlepreview==="videoEmbedded")return t.jsx("div",{className:ra.content,children:t.jsx(yc,{newsformated:e.news,internal:e.news.info.link.internal})});if(e.news.config.articlepreview==="videoYouTube")return t.jsx("div",{className:ra.content,children:t.jsx(Cc,{newsformated:e.news,internal:e.news.info.link.internal})});if(e.news.config.articlepreview==="iframe")return t.jsx("div",{className:ra.content,children:t.jsx(vc,{newsformated:e.news,internal:e.news.info.link.internal})})},Nc=async e=>{const{children:n,ranking:a=[],banners:s,news:o=[],newsRelatedResponses:r=[],itemList:i=[],socials:l,getVideos:c}=e,h=e.slug==="liveblogs";if(!(!o||!o[0]))return t.jsx(t.Fragment,{children:t.jsxs(Jl,{className:mo.contentLayout2,children:[t.jsx(Xl,{option:e.slug,news:o,paths:e.paths}),t.jsx(st,{banners:s,index:1}),!h&&t.jsx(_c,{news:o[0]}),t.jsx(Zl,{texts:e.texts,paths:e.paths,slug:e.slug,itemList:i,ranking:a,bannerTop:t.jsx(ne,{banners:s??[],name:"right_1"}),banner:t.jsx(ne,{banners:s??[],name:"right_2"}),complement:n,children:t.jsxs("section",{style:{"--avatar-content-align-items-desk":e.slug==="liveblogs"?"flex-start":"center"},children:[t.jsx(wc,{texts:e.texts,autorIcon:e.autorIcon,socials:l,news:o[0],banners:s,newsRelatedResponses:r,itemList:i,slug:e.slug,getVideos:c,shareOnlyWhatsApp:e.shareOnlyWhatsApp,noteShare:e.noteShare,paths:e.paths}),t.jsx(ne,{banners:s??[],name:"block_3"})]})})]})})},ft={content:"_content_1tl6i_1",contentInfo:"_contentInfo_1tl6i_24",imageStyled:"_imageStyled_1tl6i_41",name:"_name_1tl6i_46",description:"_description_1tl6i_51",contentInfoWithoutImg:"_contentInfoWithoutImg_1tl6i_104"},Sc=async e=>{const n=e.img?await te(e.img):"";return t.jsx("section",{className:ft.content,children:t.jsxs("div",{className:`${ft.contentInfo} ${n?"":ft.contentInfoWithoutImg}`,children:[e.img&&t.jsx("img",{fetchPriority:"low",loading:"lazy",className:ft.imageStyled,src:n}),t.jsx("h1",{className:ft.name,children:e.tag}),e.description&&t.jsx("div",{className:ft.description,dangerouslySetInnerHTML:{__html:e.description}})]})})},Cn={content:"_content_7wvro_1",contentInfo:"_contentInfo_7wvro_23",name:"_name_7wvro_34",description:"_description_7wvro_43"},kc=e=>t.jsx("section",{className:Cn.content,style:{color:e.textColor,"--backDropHeigth":e.backDropHeigth?e.backDropHeigth:"100%",padding:e.sectionPadding??"","--backgroundColor":e.backgroundColor},children:t.jsxs("div",{className:Cn.contentInfo,children:[t.jsx("h1",{className:Cn.name,style:{color:e.textColor},children:e.tag}),e.description&&t.jsx("div",{style:{color:e.textColor},className:Cn.description,dangerouslySetInnerHTML:{__html:e.description}})]})}),Ec=e=>{const{option:n,entity:a}=e;switch(n){case"op1":return t.jsx(Sc,{tag:a?.name??"",img:a?.image?.url??"",description:a?.description?a?.description:""});case"op2":return t.jsx(kc,{tag:a?.name??"",description:a?.description?a?.description:"",backDropHeigth:e.backDropHeigth,backgroundColor:e.backgroundColor,sectionPadding:e.sectionPadding,textColor:e.textColor});default:return t.jsx(t.Fragment,{})}},Mt={content:"_content_gxziw_1",buttonStyled:"_buttonStyled_gxziw_9",searchStyled:"_searchStyled_gxziw_21",inputStyled:"_inputStyled_gxziw_32",inputStyledTest:"_inputStyledTest_gxziw_51"},Ic=e=>t.jsx("svg",{width:"68",height:"68",viewBox:"0 0 68 68",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:t.jsx("g",{opacity:"0.8",children:t.jsx("path",{d:"M47.8043 46.6003L47.6635 46.7758L47.8232 46.9342L56.4762 55.5171C56.4768 55.5177 56.4774 55.5184 56.478 55.519C56.8524 55.9072 57.0616 56.4256 57.0616 56.965C57.0616 57.5048 56.8521 58.0234 56.4774 58.4117C56.2839 58.6065 56.0539 58.7611 55.8005 58.8667C55.5466 58.9724 55.2743 59.0269 54.9993 59.0269C54.7243 59.0269 54.452 58.9724 54.1981 58.8667C53.9442 58.7609 53.7138 58.6059 53.5201 58.4106L53.5194 58.4099L44.9327 49.8232L44.7743 49.6648L44.5995 49.805C40.4597 53.1252 35.2051 54.7331 29.9162 54.2981C24.6272 53.863 19.706 51.4181 16.1643 47.4661C12.6227 43.514 10.7298 38.3552 10.875 33.0503C11.0201 27.7455 13.1923 22.6979 16.9447 18.9455C20.6972 15.193 25.7448 13.0209 31.0496 12.8757C36.3544 12.7305 41.5133 14.6234 45.4653 18.165C49.4174 21.7067 51.8623 26.6279 52.2974 31.9169C52.7324 37.2058 51.1245 42.4604 47.8043 46.6003ZM22.4528 47.4552C25.1799 49.2774 28.3861 50.25 31.666 50.25C36.0641 50.25 40.2822 48.5029 43.3921 45.3929C46.5021 42.2829 48.2493 38.0649 48.2493 33.6667C48.2493 30.3868 47.2767 27.1806 45.4545 24.4535C43.6323 21.7264 41.0423 19.6008 38.0121 18.3457C34.9819 17.0905 31.6476 16.7621 28.4307 17.402C25.2139 18.0419 22.259 19.6213 19.9398 21.9405C17.6205 24.2597 16.0411 27.2146 15.4013 30.4314C14.7614 33.6483 15.0898 36.9827 16.345 40.0129C17.6001 43.0431 19.7256 45.633 22.4528 47.4552Z",fill:"white",stroke:"white",strokeWidth:"0.5"})})}),Uc=e=>t.jsx("form",{className:Mt.content,style:{height:e.hasContent?"218px":"50vh"},children:t.jsxs("div",{className:Mt.inputStyled,children:[t.jsx("input",{className:Mt.inputStyledTest,defaultValue:e.query,name:"query",placeholder:e.texts.searchKeyWord+"..."}),t.jsx("button",{className:Mt.buttonStyled,type:"submit",children:t.jsx(Ic,{className:Mt.searchStyled})})]})}),ia={content:"_content_io3tv_1",newsContentSection:"_newsContentSection_io3tv_5",itemContent:"_itemContent_io3tv_10"},Tc=e=>{const{data:n,option:a,autor:s,page:o,banners:r,pathname:i,ranking:l,currentPage:c,slug:h,texts:d={}}=e,u=[5,10,15],m={5:1,10:2,15:3};switch(a){case"op1":return t.jsx(t.Fragment,{children:t.jsxs(Wn,{children:[t.jsx(Vs,{autor:s[0],autorIcon:e.autorIcon}),t.jsx(Kn,{paths:e.paths,ranking:l,readestTitle:d.readestTitle??"",bannerTop:t.jsx(ne,{banners:r??[],name:"right_1"}),banner:t.jsx(ne,{banners:r??[],name:"right_2"}),children:t.jsx("section",{className:ia.content,children:n.length>0?t.jsx(un,{className:[ia.newsContentSection,"padding-0"].join(" "),paginatorComponent:t.jsx(Et,{texts:d,pathname:i,query:"",currentPage:c,maxPages:e.paginationLimit,showNext:!(n.length<e.newsListLimit)}),children:Array.isArray(n)&&n?.map((y,f)=>t.jsxs(C.Fragment,{children:[u.includes(f+1)&&t.jsx("div",{className:ia.itemContent+" banner-context",children:t.jsx(ne,{banners:r??[],name:`block_2_${m[f+1]}`})}),t.jsx(wn,{autorIcon:e.autorIcon,item:y,option:h,paths:e.paths},f)]},f))}):t.jsx("div",{style:{width:"100%",display:"flex",flexDirection:"column",justifyContent:"center",gap:"2rem"},children:t.jsx("p",{style:{fontWeight:"var(--fw)",width:"100%",fontSize:"18px",lineHeight:"26px",textAlign:"center"},children:d.autorNotResultMessage})})})})]})});case"op2":return t.jsx(t.Fragment,{children:t.jsxs(Wn,{children:[t.jsx(Ws,{autor:s[0],autorIcon:e.autorIcon}),Array.isArray(n)?t.jsxs(t.Fragment,{children:[t.jsx(ta,{content:n,title:"",hasLines:!0,banners:e.banners,bannerPositionIndex:[1,6,12],paths:e.paths,slot_id:"block_2"}),t.jsx(Et,{texts:d,query:"",pathname:i,maxPages:Number(e.paginationLimit),currentPage:Number(o),showNext:!((n.length??0)<Number(e.newsListLimit))})]}):t.jsx("div",{style:{width:"100%",display:"flex",flexDirection:"column",justifyContent:"center",gap:"2rem"},children:t.jsx("p",{style:{fontWeight:"var(--fw)",width:"100%",fontSize:"18px",lineHeight:"26px",textAlign:"center"},children:d.autorNotResultMessage})})]})});default:return t.jsx(t.Fragment,{})}},yo={content:"_content_pq89v_1",videoContent:"_videoContent_pq89v_9"},Pt={container:"_container_1xr2t_1",playStyled:"_playStyled_1xr2t_6",imageStyled:"_imageStyled_1xr2t_13",longer:"_longer_1xr2t_26",contentNews:"_contentNews_1xr2t_31",tagContent:"_tagContent_1xr2t_51",tag:"_tag_1xr2t_51",titular:"_titular_1xr2t_68",small:"_small_1xr2t_81",figure:"_figure_1xr2t_87",backDrop:"_backDrop_1xr2t_92",backDropAux:"_backDropAux_1xr2t_100"},Co=async e=>{const{size:n="longer",video:a}=e,s=a.main.image.sizes[0]?.url??"";return t.jsx("figure",{className:Pt.figure,children:t.jsxs("span",{className:Pt.backdrop,children:[t.jsx("span",{className:Pt.backDropAux}),t.jsx(T,{href:a.info.link.url,target:a.info.link.target,children:t.jsxs("div",{children:[a.main.image.sizes.map(async(o,r)=>o.width>=580?t.jsx("source",{media:"(width >=900px)",srcSet:await te(o.url)},r):t.jsx("source",{media:"(width <900px)",srcSet:await te(o.url)},r)),t.jsx("img",{fetchPriority:"low",loading:"lazy",className:[Pt.imageStyled,Pt[n]].join(" "),alt:"",src:s?await te(s):""})]})})]})})},xc=e=>{const{videos:n}=e;return t.jsx("div",{className:yo.content,children:t.jsx(at,{children:t.jsx(ae,{title:"Videos",isTitle:!0,children:t.jsxs("div",{className:yo.videoContent,children:[t.jsx(Co,{video:n[0]}),t.jsx("div",{style:{display:"flex",flexDirection:"column"},children:n.slice(1).map((a,s)=>t.jsx(Co,{size:"small",video:a},`video-small-${s}`))})]})})})})},Ke={content:"_content_ruy5q_1",videoContent:"_videoContent_ruy5q_9",articleSection:"_articleSection_ruy5q_21",contentLatout:"_contentLatout_ruy5q_31",title:"_title_ruy5q_36",article:"_article_ruy5q_21",correspondent:"_correspondent_ruy5q_64"},bo={container:"_container_1rq2h_1",playStyled:"_playStyled_1rq2h_9"},qc=e=>{const{video:n}=e;return t.jsx(T,{href:n.info.link.url?n.info.link.url:void 0,target:n.info.link.target,children:t.jsxs("section",{className:bo.container,children:[t.jsx(pe,{isLarge:!0,preview:{sizes:n.main.image.sizes,description:n.main.description}}),t.jsx(rt,{className:bo.playStyled})]})})},Bc=e=>{const n=()=>e?.video.main.author?`${e?.video.main.author} - ${Ce(e.video.info.date.created)}`:e?.video.main.author;return t.jsx("div",{className:Ke.content,children:t.jsx(at,{className:Ke.contentLatout,children:t.jsx(ae,{title:"Videos",isTitle:!0,children:t.jsxs("div",{className:Ke.videoContent,children:[t.jsx(qc,{video:e.video}),t.jsxs("div",{className:Ke.articleSection,children:[t.jsx(T,{className:Ke.title,href:e.video.info.link.url,target:e.video.info.link.target,children:e.video.main.title}),t.jsx("p",{className:Ke.article,children:me(e.video.main.description)}),t.jsx("p",{className:Ke.correspondent,children:n()})]})]})})})})},Lc=e=>{switch(e.option){case"op1":return t.jsx(xc,{videos:e.data});case"op2":return t.jsx(Bc,{video:e.data[0]});default:return t.jsx(t.Fragment,{})}};function Dc({containerId:e,containerId2:n}){return C.useEffect(()=>{try{let a=function(){const d=window.twttr;d?.widgets?d.widgets.load(s):h<10?(h++,requestAnimationFrame(a)):console.warn("No se pudo cargar widgets de Twitter")};const s=document.getElementById(e),o=document.getElementById(n);if(!s&&!o)return;const r=s?.querySelectorAll("script[src]")??[],i=o?.querySelectorAll("script[src]")??[];[...r,...i].forEach(d=>{const u=document.createElement("script");Array.from(d.attributes).forEach(m=>{u.setAttribute(m.name,m.value)}),d.replaceWith(u)});const c=document.querySelectorAll('script[src*="platform.twitter.com/widgets.js"]');if(c)for(let d=0;d<c.length;d++)c[d]?.remove();let h=0;if(document.querySelector('script[src*="platform.twitter.com/widgets.js"]'))a();else{const d=document.createElement("script");d.src="https://platform.twitter.com/widgets.js",d.async=!0,d.onload=a,document.body.appendChild(d)}}catch(a){console.warn("Error al procesar embeds de Twitter",a)}},[e]),null}const Mc=e=>{const{isVideo:n=!1,isLarge:a=!1,hasShadow:s=!1,BackDropAuxHeigthMobile:o}=e,r=C.useMemo(()=>e?.preview?.sizes||[],[e?.preview?.sizes]);if(!r.length||!r[0]?.url||r[0]?.url==="")return t.jsx("div",{className:Y.imagePlaceholder});const{PUBLIC_API_HOST:i,PUBLIC_ENV:l}=J();return t.jsx("figure",{className:Y.figure,children:t.jsxs("span",{className:Y.backdrop,children:[t.jsx("span",{className:Y.backdropAux,style:{height:o||"56.25%"}}),t.jsxs("picture",{children:[t.jsx("img",{fetchPriority:"low",loading:"lazy",className:Y.imageStyled,alt:e.preview?.description||"",src:(l==="local"?i:"")+r[0]?.url,style:{boxShadow:s?"0px 4px 8px 0px #00000033":"0px"}}),n&&t.jsxs(t.Fragment,{children:[t.jsx("div",{className:Y.boxPlayIcon,style:{height:a?"40%":"72px"}}),t.jsx(rt,{className:Y.playStyled,style:{width:a?"3rem":"27px",height:a?"3rem":"27px",marginBottom:a?"18px":".5rem",marginLeft:a?"30px":".5rem"}})]})]})]})})},Pc=e=>t.jsx("svg",{width:"41",height:"33",viewBox:"0 0 41 33",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:t.jsx("path",{d:"M17.9576 21.2985C16.8233 21.2985 15.9277 22.194 15.9277 23.3283C15.9277 24.4627 16.8233 25.3582 17.9576 25.3582C19.0919 25.3582 19.9874 24.4627 19.9874 23.3283C19.9874 22.194 19.0919 21.2985 17.9576 21.2985ZM17.9576 19.2686C19.0919 19.2686 19.9874 18.3731 19.9874 17.2388C19.9874 16.1045 19.0919 15.2089 17.9576 15.2089C16.8233 15.2089 15.9277 16.1045 15.9277 17.2388C15.9277 18.3731 16.8233 19.2686 17.9576 19.2686ZM17.9576 13.1791C19.0919 13.1791 19.9874 12.2836 19.9874 11.1492C19.9874 10.0149 19.0919 9.11938 17.9576 9.11938C16.8233 9.11938 15.9277 10.0149 15.9277 11.1492C15.9277 12.2836 16.8233 13.1791 17.9576 13.1791Z",fill:"#7B888A"})}),vo={info:{section:{name:"",slug:"",url:""},link:{url:"invalidUrl",target:"",canonical:!1,internal:""},date:{date:"",created:0,modified:0,firstpublish:0,lastpublish:0}},config:{zonehome:void 0,priorityhome:"",zonesection:"",prioritysection:"",homepreview:"",showcomments:!0,showtime:!0,showauthor:!0,showuppertitle:!0,showsubtitle:!0,showads:!0},main:{title:{home:"",section:"",article:""},subtitle:{rendered:"",striped:""},tags:[]},authors:[{firstname:"",lastname:"",fullname:"",image:void 0,name:"",internaluser:!1}],preview:void 0},_o=6,Oc=({section:e,currentNews:n,banner:a,isVisible:s=!1,stylesConfig:o})=>{const[r,i]=C.useState({data:Array.from({length:_o},()=>vo)}),[l,c]=C.useState(!1),h=C.useCallback(async()=>{if(!(l||!n?.info?.link?.internal)){c(!0);try{const d=new URLSearchParams({section:e,currentNewsLink:n.info.link.internal}),u=await fetch(`/api/get-more-news?${d}`);if(!u.ok)throw i(void 0),new Error(`HTTP error! status: ${u.status}`);const m=await u.json();i({...m,data:m.data.slice(0,_o)})}catch(d){console.error("[/api/get-more-news] Error:",d.message),i(void 0)}}},[e,n.info.link.internal,l]);return C.useEffect(()=>{s&&h()},[s,r,h]),!r?.data||r.data.length===0?null:t.jsx(Qc,{news:r.data,title:"Más Noticias",...o["Modulo 1x3 Client"]??o["Modulo 1x3"],hasLines:!0,showSubtitle:!0,rounded:!0,banner:a,isVisible:s})},Qc=e=>{const{news:n,hasLines:a=!1}=e,s=o=>a&&(o+1)%3!==0?sa.contentSeparator:"";return t.jsx("div",{className:sa.newsContent,style:{gap:a?"30px":"20px","--gridTemplateModlule":a?"repeat(auto-fit, 343px);":"repeat(auto-fit, 380px);"},children:n.map((o,r)=>{const{main:i,authors:l,info:c,preview:h,isVideo:d=!1,config:u,overImage:m="default",isTitle:y=!1,isLarge:f=!1}=o;return t.jsx("div",{className:s(r),style:{order:r},children:t.jsxs("section",{className:It.content,children:[t.jsx(T,{title:i?.title?.section,href:c?.link?.url??"invalidUrl","aria-label":i?.title?.section??"nota",target:c?.link?.target,children:t.jsx(Mc,{isVisible:e.isVisible,preview:h,rounded:e.rounded,isVideo:d,isLarge:f,getImageUrl:e.getImageUrl})}),t.jsx("div",{className:It.newsDescription,children:t.jsx(jc,{main:i,authors:l,info:c,preview:h,share:e.share,config:u,overImage:m,isTitle:y,paths:o.paths,isVisible:e.isVisible})})]})},r)})})},jc=e=>{const{share:n=!1,cutSubtitle:a=!0}=e,o=(()=>{if(!e?.authors||e.authors.length===0)return"";const r=e.authors[0],i=Ce(e.info?.date?.modified);return r&&e?.config?.showtime&&e.config?.showauthor?`${r.fullname} - ${i}`:r&&e.config?.showauthor?r.fullname:e?.config?.showtime?i:""})();return t.jsxs("div",{className:K.boxInformation,children:[n&&t.jsx(Pc,{className:K.dotStyles}),e?.info?.section?.url&&t.jsxs("div",{className:K.sectionDescriptionContainer,children:[t.jsx(T,{className:K.sectionDescription,href:e.info.section.url??"invalidUrl",children:e.info.section.name}),e?.main?.uppertitle&&t.jsx("p",{className:K.uppertitle,children:e.main.uppertitle})]}),t.jsx("h2",{className:K.articule,children:t.jsx(T,{className:K.linkStyled,style:{"--isLink":e?.info?.link?.url?"underline":"none"},"aria-label":e.main?.title?.section??"nota",href:e?.info?.link?.url,target:e?.info?.link?.target,children:e.main?.title?.section})}),e.config?.showsubtitle&&e.main?.subtitle?.striped&&t.jsx("p",{className:K.description,style:{"--fontSizeSubTitle":e.fontSizeSubTitle,"--lineHeightSubTitle":e.lineHeightSubTitle,"--colorSubTitle":e.colorSubTitle},children:a?me(e.main.subtitle.striped):e.main.subtitle.striped}),(e?.config?.showtime||e.config?.showauthor)&&o&&t.jsx(t.Fragment,{children:e.authors?.[0]?.internaluser?t.jsx(T,{className:K.correspondentLink,href:`/autor/${e.authors[0].name}`,children:o}):t.jsx("div",{className:K.correspondent,children:o})})]})},Gc=({user:e,handleLogout:n,message:a})=>{const s=()=>{const r=document.querySelector(".user-actions-options");r&&r.classList.toggle("show")},o=e.firstname??"Usuario";return t.jsx("div",{className:"comment-item",children:t.jsxs("div",{style:{display:"flex",gap:"14px"},children:[e&&e.picture&&e.picture!==""?t.jsx("img",{className:"comment-avatar-img",src:e.picture,alt:e.username}):t.jsx("div",{className:"comment-avatar",children:o.charAt(0).toUpperCase()}),t.jsxs("div",{style:{flex:1},children:[t.jsxs("div",{className:"comment-header",children:[t.jsxs("span",{className:"comment-username user-welcome",children:["Hola ",o,"!"]}),t.jsx("div",{className:"user-actions-options",children:t.jsx("button",{onClick:()=>{n()},children:"Cerrar Sesion"})}),t.jsx("button",{className:"user-actions-span",onClick:s,children:t.jsx(gn,{width:13,height:13,fill:"black"})})]}),t.jsx("p",{className:"comment-text",children:a})]})]})})},R={overlay:"_overlay_qj491_3",popup:"_popup_qj491_17",title:"_title_qj491_40",optionsContainer:"_optionsContainer_qj491_52",option:"_option_qj491_52",radioInput:"_radioInput_qj491_66",radioCustom:"_radioCustom_qj491_70",optionLabel:"_optionLabel_qj491_97",buttons:"_buttons_qj491_110",cancelButton:"_cancelButton_qj491_117",closeButton:"_closeButton_qj491_118",buttonAlone:"_buttonAlone_qj491_137",reportButton:"_reportButton_qj491_143",successContainer:"_successContainer_qj491_163",thumbsUp:"_thumbsUp_qj491_171",successMessage:"_successMessage_qj491_177",errorMessage:"_errorMessage_qj491_218",loadingContainer:"_loadingContainer_qj491_231"},No=async(e,n)=>{const{PUBLIC_ENV:a}=J();if(a==="local")return!0;if(!e)return!1;try{const s=n.CAPTCHA_PROJECT,o=n.CAPTCHA_KEY_V2,r=n.COMMENTS_CAPTCHA_API_KEY,l=await(await fetch(`https://recaptchaenterprise.googleapis.com/v1/projects/${s}/assessments?key=${r}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({event:{token:e,siteKey:o}})})).json();return console.log("reCAPTCHA Enterprise verification result:",l),l.tokenProperties?.valid===!0}catch(s){return console.error("Error verificando reCAPTCHA Enterprise:",s),!1}};async function $c({publication:e,username:n,id:a,type:s,baseUrl:o,captchaToken:r,captchaEnvVars:i,apiToken:l}){if(!e||!n||!a||!s||!r)throw new Error("Faltan parámetros requeridos: publication, username, id, type, captchaToken");if(typeof e!="string"||typeof n!="string"||typeof a!="string"||typeof s!="string"||typeof r!="string")throw new Error("Todos los parámetros deben ser strings");if(await!No(r,i))throw new Error("Token de captcha inválido");if(!l)throw new Error("Falta el token de API del CMS");const c=`${o}/system/modules/com.tfsla.diario.base/templates/hit/5.0/1/newcomments/report`,h=encodeURIComponent(s),d=new URLSearchParams({publication:e,username:n,id:a,type:h}),u=`${c}?${d.toString()}`;try{console.log("Reporting comment:",{publication:e,username:n,id:a,type:s,encodedType:h,url:u});const m=await V.post(u,null,{headers:{"User-Agent":"Bluestack","x-api-token":l,"Content-Type":"application/json"}});if(console.log("Report response:",m.data),m.status===200||m.status===201)return{type:"success",message:"Comentario reportado exitosamente",status:m.status,data:m.data};throw new Error(`Respuesta inesperada del servidor: ${m.status}`)}catch(m){if(console.error("Error reporting comment:",m),V.isAxiosError(m)){const y=m.response?.status,f=m.response?.data;throw y===400?new Error("Datos inválidos para el reporte"):y===401?new Error("Token de API inválido"):y===403?new Error("Acceso denegado para reportar comentario"):y===404?new Error("Comentario no encontrado"):y===409?new Error("El comentario ya fue reportado por este usuario"):y===500?new Error("Error interno del servidor CMS"):new Error(f?.error||f?.message||`Error HTTP ${y}: No se pudo reportar el comentario`)}throw m}}const Ue={spam:"Es spam o contenido comercial no deseado",inappropriate:"Lenguaje inadecuado",hate:"Discurso o símbolos de odio",misinformation:"Información falsa o fraude",terrorism:"Promueve el terrorismo",intellectual:"Violación de propiedad intelectual",bullying:"Bullying o acoso"};function zc(e){return Ue[e]}const Je=300,Qe={username:"anonimo",firstname:"Usuario",lastname:"Anonimo"};function Hc(e){const n=e.split(" ");if(n.length!==3)return e;const[a,s,o]=n,r=s.charAt(0).toUpperCase()+s.slice(1).toLowerCase();return`${a} ${r} ${o}`}const la=(e,n)=>{if(!e||!e.current)return{boolean:!1,text:""};const a=e.current?.value||"",s=a.length>Je,{PUBLIC_ENV:o}=J(),r=o==="local",i=a.trim()!==""&&(r||n!=="")&&!s,l=s?`No debes exceder el limite de ${Je} caracteres.`:"Debes completar todos los campos para comentar.";return{boolean:i,text:l}},So=e=>{const n=e.cookie.split("; ").find(a=>a.startsWith("reported="));if(!n)return[];try{return JSON.parse(decodeURIComponent(n.split("=")[1]??""))}catch{return[]}},Fc=(e,n)=>{const a=So(e);a.includes(n)||(a.push(n),e.cookie=`reported=${encodeURIComponent(JSON.stringify(a))}; path=/; max-age=${3600*24*1}`)};function Vc(e){const[n,a]=e.split("@");if(!n||!a)return e;let s="";n.length<=2?s=n[0]+"*":s=n[0]+"*".repeat(n.length-2)+n[n.length-1];const o=a.lastIndexOf(".");if(o===-1)return`${s}@${a}`;const r=a.slice(0,o),i=a.slice(o);let l="";return r.length<=2?l=r[0]+"*":l=r[0]+"*".repeat(r.length-2)+r[r.length-1],`${s}@${l}${i}`}const _={overlay:"_overlay_tlrod_1",header:"_header_tlrod_18",logo:"_logo_tlrod_25",card:"_card_tlrod_32",close:"_close_tlrod_47",form:"_form_tlrod_71",formUl:"_formUl_tlrod_80",field:"_field_tlrod_92",label:"_label_tlrod_99",input:"_input_tlrod_108",error:"_error_tlrod_126",primary:"_primary_tlrod_132",divider:"_divider_tlrod_167",google:"_google_tlrod_193",googleIcon:"_googleIcon_tlrod_223",spin:"_spin_tlrod_256",checkboxRow:"_checkboxRow_tlrod_278",switch:"_switch_tlrod_307",terms:"_terms_tlrod_315",message:"_message_tlrod_346",passwordChecker:"_passwordChecker_tlrod_351",valid:"_valid_tlrod_370",invalid:"_invalid_tlrod_374",forgotPassword:"_forgotPassword_tlrod_378",successContainer:"_successContainer_tlrod_397",thumbsUp:"_thumbsUp_tlrod_405",successMessage:"_successMessage_tlrod_411"},je=()=>t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",width:"24",height:"24",viewBox:"0 0 32 32",className:_.spin,children:t.jsx("path",{d:"M18,4.181v2.021c4.559,0.929,8,4.97,8,9.798c0,5.514-4.486,10-10,10S6,21.514,6,16c0-4.829,3.441-8.869,8-9.798V4.181 C8.334,5.137,4,10.066,4,16c0,6.617,5.383,12,12,12s12-5.383,12-12C28,10.066,23.666,5.137,18,4.181z"})}),Wc=({isOpen:e,onClose:n,commentId:a,publication:s,username:o})=>{const[r,i]=C.useState("form"),[l,c]=C.useState(""),[h,d]=C.useState(""),[u]=C.useState(""),m=[{id:"spam",label:Ue.spam},{id:"inappropriate",label:Ue.inappropriate},{id:"hate",label:Ue.hate},{id:"misinformation",label:Ue.misinformation},{id:"terrorism",label:Ue.terrorism},{id:"intellectual",label:Ue.intellectual},{id:"bullying",label:Ue.bullying}],y=async()=>{if(!(!l||!a)){if(So(document).includes(a)){d("Ya has reportado este comentario.");return}i("loading"),d("");try{const w=await(await fetch("/api/comments-report",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({publication:s,username:o,id:a,captchaToken:u,type:Ue[l]})})).json();if(w.type==="success")Fc(document,a),i("success"),setTimeout(()=>{f()},3e3);else throw new Error(w.message||"Error al reportar comentario")}catch(g){console.error("Error reporting comment:",g),d(g.message||"Error al reportar comentario"),i("form")}}},f=()=>{i("form"),c(""),d(""),n()};return!e||!a||!o?null:t.jsx("div",{className:R.overlay,children:t.jsxs("div",{className:R.popup,children:[t.jsx("button",{className:"close-reply-form",onClick:f,children:t.jsx(it,{})}),t.jsx("h2",{className:R.title,children:"Reportar Abuso"}),r==="loading"&&t.jsx("div",{className:R.loadingContainer,children:t.jsx(je,{})}),r==="form"||r==="loading"?t.jsxs(t.Fragment,{children:[t.jsx("div",{className:R.optionsContainer,children:m.map(g=>t.jsxs("label",{className:R.option,children:[t.jsx("input",{type:"radio",name:"reportReason",value:g.id,checked:l===g.id,onChange:w=>c(w.target.value),className:R.radioInput}),t.jsx("span",{className:R.radioCustom}),t.jsx("span",{className:R.optionLabel,children:g.label})]},g.id))}),h&&t.jsx("div",{className:R.errorMessage,children:h}),t.jsxs("div",{className:R.buttons,children:[t.jsx("button",{onClick:f,className:R.cancelButton,children:"Cancelar"}),t.jsx("button",{onClick:y,disabled:!l,className:R.reportButton,children:"Reportar"})]})]}):t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:R.successContainer,children:[t.jsx("div",{className:R.thumbsUp,children:t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:132,height:120,fill:"none",children:t.jsx("path",{fill:"#0073BE",d:"M119.249 42.357H81.915l5.621-27.039.177-1.893a8.906 8.906 0 0 0-2.603-6.272L78.838.941 39.907 39.93c-2.19 2.13-3.491 5.089-3.491 8.343v59.167c0 6.508 5.325 11.833 11.833 11.833h53.25c4.911 0 9.112-2.958 10.887-7.218l17.868-41.713c.533-1.36.829-2.78.829-4.32V54.192c0-6.509-5.325-11.834-11.834-11.834Zm0 23.667-17.75 41.417h-53.25V48.274l25.679-25.678L67.36 54.19h51.889v11.833ZM.916 48.274h23.667v71H.916v-71Z"})})}),t.jsx("p",{className:R.successMessage,children:"¡Gracias por reportar!"})]}),t.jsx("div",{className:R.buttons,children:t.jsx("button",{onClick:f,className:[R.closeButton,R.buttonAlone].join(" "),children:"Cerrar"})})]})]})})};async function bn({publication:e,path:n,size:a=5,sizereply:s=2,id:o,lastid:r,state:i="5,6",apiToken:l}){if(!e||!n)throw new Error("Missing required parameters: publication and path");if(typeof e!="string"||typeof n!="string")throw new Error("Invalid input types for publication or path");if(!l)throw new Error("Missing CMS API token");const c=parseInt(String(a),10),h=parseInt(String(s),10);if(isNaN(c)||c<=0)throw new Error("Invalid size parameter");if(isNaN(h)||h<0)throw new Error("Invalid sizereply parameter");const d=`${va()}/hit/5.0/1/newcomments/get`,u=new URLSearchParams({publication:e,path:n,size:c.toString(),sizereply:h.toString(),state:i});o&&u.append("id",o),r&&u.append("lastid",r);const m=`${d}?${u.toString()}`;try{console.log("Fetching comments from:",m);const{data:y}=await V.get(m,{headers:{"x-api-token":l,"Cache-Control":"max-age=0, no-cache, no-store, must-revalidate",Pragma:"no-cache",Expires:"0"}});if(!y)throw new Error("No comments data received");return y.data||y||[]}catch(y){if(console.error("Error fetching comments:",y),V.isAxiosError(y)){const f=y.response?.status,g=y.response?.data;throw f===404?new Error("Comments not found"):f===403?new Error("Access forbidden - check API token"):f===401?new Error("Unauthorized - invalid API token"):f===500?new Error("Internal server error from CMS"):new Error(g?.error||g?.message||`HTTP ${f}: Failed to fetch comments`)}throw y}}const{PUBLIC_PUBLICATION_ID:Yc}=J(),Kc=Yc,Jc=e=>{const[n,a]=C.useState(void 0);return C.useEffect(()=>{if(n)return;(async()=>{const{PUBLIC_X_SECURITY_TOKEN:o}=J();try{const r=await bn({publication:Kc,path:e??"",size:5,sizereply:2,id:void 0,lastid:void 0,state:"5,6",apiToken:o});a(r[0]??[])}catch(r){console.error(r),a({comments:[],morecomment:!1})}})()},[n]),{comments:n,setComments:a}},ko=({username:e,date:n})=>t.jsxs("div",{className:"comment-header",children:[t.jsx("span",{className:"comment-username",children:e}),t.jsx("span",{className:"comment-header-dot",children:"•"}),t.jsx("span",{className:"comment-date",children:Hc(Ce(Number(n)))})]}),Eo=({user:e})=>t.jsx("div",{className:"comment-avatar",children:e.picture?t.jsx("img",{className:"comment-avatar-img",src:e.picture,alt:e.username}):e.firstname.charAt(0).toUpperCase()}),Io=({isReply:e=!1,onReply:n,onFlag:a})=>t.jsxs("div",{className:"comment-actions",children:[!e&&n&&t.jsx("button",{onClick:n,className:"comment-action-btn",children:t.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",children:[t.jsx("g",{clipPath:"url(#a)",children:t.jsx("path",{fill:"#4D4E4E",d:"M9.976 9V5l-6.983 7 6.983 7v-4.1c4.988 0 8.48 1.6 10.973 5.1-.997-5-3.99-10-10.973-11Z"})}),t.jsx("defs",{children:t.jsx("clipPath",{id:"a",children:t.jsx("path",{fill:"#fff",d:"M0 0h23.942v24H0z"})})})]})}),t.jsx("button",{onClick:a,className:"comment-action-btn",children:t.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:25,height:24,fill:"none",children:[t.jsx("g",{clipPath:"url(#a)",children:t.jsx("path",{fill:"#4D4E4E",d:"M20.133 2h-16c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2Zm0 14H5.303l-1.17 1.17V4h16v12Zm-9-11h2v6h-2V5Zm0 8h2v2h-2v-2Z"})}),t.jsx("defs",{children:t.jsx("clipPath",{id:"a",children:t.jsx("path",{fill:"#fff",d:"M.133 0h24v24h-24z"})})})]})})]}),Uo=({commentRef:e,captchaToken:n="",setIsDisabled:a})=>(C.useEffect(()=>{const s=e.current;if(!s)return;const o=()=>{const i=s.value.length;s.parentElement&&(s.parentElement.dataset.text=`${i}/${Je}`),s.classList.toggle("over-limit",i>Je),a(!la(e,n).boolean)};return s.addEventListener("input",o),o(),()=>s.removeEventListener("input",o)},[e,n,a]),t.jsxs("div",{children:[t.jsx("label",{className:"comment-input-label",children:"Comentario"}),t.jsx("textarea",{ref:e,name:"comment",placeholder:"Ingresa un comentario",rows:2})]})),To=({commentRef:e,captchaToken:n="",children:a})=>{const s=la(e,n);return t.jsx("div",{className:"form-actions",children:t.jsxs("div",{className:"submit-zone",children:[a,!s.boolean&&t.jsx("p",{className:"submit-warning",children:s.text})]})})},xo=({onClick:e,isDisabled:n})=>{const[a,s]=C.useState(!1);return C.useEffect(()=>{let o=null;return a&&(o=setTimeout(()=>{s(!1)},2400)),()=>{o&&clearTimeout(o)}},[a]),a?t.jsx("div",{className:"success-gif-container",children:t.jsx("img",{className:"success-gif",src:"/Success.gif"})}):t.jsxs("button",{type:"button",onClick:async o=>{await e(o)&&s(!0)},id:"comment-button",className:`submit-btn ${n?"disabled":"active"}`,children:["Enviar Comentario",t.jsx("svg",{style:{minWidth:16},width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M1.39258 8.99997H12.5626L7.68258 13.88C7.29258 14.27 7.29258 14.91 7.68258 15.3C8.07258 15.69 8.70258 15.69 9.09258 15.3L15.6826 8.70997C16.0726 8.31997 16.0726 7.68997 15.6826 7.29997L9.10258 0.699971C8.71258 0.309971 8.08258 0.309971 7.69258 0.699971C7.30258 1.08997 7.30258 1.71997 7.69258 2.10997L12.5626 6.99997H1.39258C0.842578 6.99997 0.392578 7.44997 0.392578 7.99997C0.392578 8.54997 0.842578 8.99997 1.39258 8.99997Z",fill:"currentColor"})})]})},{PUBLIC_PUBLICATION_ID:Zc}=J(),Xc=Zc,qo=async({path:e,ref:n,captchaToken:a,button:s,user:o,id:r,addComment:i})=>{const l=n.current?.value||"";if(!la(n,a).boolean||!o){const c=s.nextElementSibling;return c&&(c.style.display="block"),!1}try{const c=Date.now(),h=await fetch("/api/comments-add",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({publication:Xc,path:e,id:r,username:o.username,comment:l,recaptchaResponse:a})});let d=null;try{d=await h.json()}catch(f){console.error("Error parsing JSON response:",f)}if(!h.ok)throw new Error(`Error al enviar comentario: ${d?.message} status: ${h.status}`);const u=Date.now(),m=Math.max(0,2400+Math.abs(u-c)),y={username:o.username,firstname:o.firstname,...o.lastname&&{lastname:o.lastname},...o.picture&&{picture:o.picture}};return i({id:u.toString(),text:l,user:y,date:{time:Date.now()},reply:[]}),n.current&&(n.current.value=""),m}catch(c){return console.error("Error enviando comentario:",c),alert(c.message||"Error al enviar el comentario."),!1}},Rc=({replyingTo:e,commentRef:n,user:a,path:s,addReply:o,closeForm:r})=>{const[i,l]=C.useState(!0),[c,h]=C.useState(""),d=()=>{n.current?.parentElement&&(n.current.parentElement.dataset.text=`0/${Je}`),l(!0),r()};return t.jsxs("div",{className:"comment-form reply-form",children:[t.jsx("button",{className:"close-reply-form",onClick:d,children:t.jsx(it,{})}),t.jsx(Uo,{commentRef:n,captchaToken:c,setIsDisabled:l}),t.jsx(To,{commentRef:n,captchaToken:c,setCaptchaToken:h,children:t.jsx(xo,{onClick:async u=>{if(i)return;const m=await qo({path:s,ref:n,captchaToken:c,button:u.currentTarget,user:a,id:e,addComment:o});return m&&typeof m=="number"?(setTimeout(()=>{d()},m),!0):!1},isDisabled:i})})]})},ed=({reply:e,replyingTo:n,user:a,onFlag:s})=>{const o=e.text;let r=`${Qe.firstname} ${Qe.lastname}`,i=Qe.username;return e.user&&(r=`${e.user.firstname} ${e.user.lastname}`,i=e.user.username),t.jsx("div",{className:"comment-item reply",children:t.jsxs("div",{className:"comment-header-container",children:[t.jsx(Eo,{user:e.user?e.user:Qe}),t.jsxs("div",{style:{flex:1},children:[t.jsx(ko,{username:r,date:e.date.time}),t.jsxs("div",{className:"comment-reply-to",children:["Respondiendo a ",t.jsx("strong",{children:n})]}),t.jsx("p",{className:"comment-text",children:o}),a?.username.toLowerCase()!==i.toLowerCase()&&t.jsx(Io,{isReply:!0,onFlag:()=>s(e.id)})]})]})})},td=({comment:e,replyingTo:n,path:a,user:s,handleReplyingTo:o,onFlag:r})=>{const i={morereply:e.morereply??!1,reply:e.reply?e.reply:[]},[l,c]=C.useState(i),[h,d]=C.useState(!1),u=process.env.NEXT_PUBLIC_PUBLICATION_ID??"",m=e.text,y=C.useRef(null);let f=`${Qe.firstname} ${Qe.lastname}`,g=Qe.username;e.user&&(f=`${e.user.firstname} ${e.user.lastname}`,g=e.user.username);const w=b=>{c({morereply:l.morereply,reply:[b,...l.reply]})};return t.jsx("div",{className:"comment-item",children:t.jsxs("div",{className:"comment-header-container","data-hasreplies":l.reply.length>0?"true":"false",children:[t.jsx(Eo,{user:e.user?e.user:Qe}),t.jsxs("div",{style:{flex:1},children:[t.jsx(ko,{username:f,date:e.date.time}),t.jsx("p",{className:"comment-text",children:m}),s?.username.toLowerCase()!==g.toLowerCase()&&t.jsx(Io,{onReply:()=>o(e.id),onFlag:()=>r(e.id)}),n===e.id&&s&&t.jsx(Rc,{replyingTo:n,commentRef:y,addReply:w,user:s,path:a,closeForm:()=>o("")}),l.reply.length>0&&t.jsxs("div",{className:"comment-replies",children:[l.reply.map(b=>t.jsx(ed,{user:s,reply:b,replyingTo:f,onFlag:r},b.id)),h?t.jsx("div",{style:{marginLeft:"4rem",position:"relative"},children:t.jsx(je,{})}):l.morereply&&t.jsx("button",{className:"comment-replies-button reply-button",onClick:async()=>{const b=l.reply[l.reply.length-1]?.id;d(!0);try{const S=(await bn({publication:u,path:a??"",size:2,sizereply:2,id:e.id,lastid:b,state:"5,6",apiToken:process.env.NEXT_PUBLIC_X_SECURITY_TOKEN}))[0];d(!1),c({morereply:S.morecomment,reply:[...l.reply,...S.comments]})}catch(U){throw d(!1),new Error(`Error al obtener comentarios: ${U}`)}},children:"Más Respuestas"})]})]})]})})},nd=({commentRef:e,user:n,path:a,addComment:s})=>{const[o,r]=C.useState(!0),[i,l]=C.useState("");return t.jsxs("div",{className:"comment-form",children:[t.jsx(Uo,{commentRef:e,captchaToken:i,setIsDisabled:r}),t.jsx(To,{commentRef:e,captchaToken:i,setCaptchaToken:l,children:t.jsx(xo,{onClick:async c=>{if(o)return;const h=await qo({path:a,ref:e,captchaToken:i,button:c.currentTarget,user:n,addComment:s});return h&&typeof h=="number"?(e.current?.parentElement&&(e.current.parentElement.dataset.text=`0/${Je}`),r(!0),setTimeout(()=>{e.current?.parentElement&&(e.current.parentElement.dataset.text=`0/${Je}`),r(!0)},h),!0):!1},isDisabled:o})})]})},{PUBLIC_PUBLICATION_ID:ad,PUBLIC_X_SECURITY_TOKEN:sd}=J(),Bo=ad??"",od=({isAuthenticated:e,path:n,user:a,handleLogout:s,CAPTCHA_KEY_V2:o})=>{const r=n.replaceAll("/","|"),[i,l]=C.useState(void 0),[c,h]=C.useState(""),{comments:d,setComments:u}=Jc(r),[m,y]=C.useState(!1),f=C.useRef(null),g=I=>{h(c===I?"":I)},w=I=>{u(d?{...d,comments:[I,...d.comments??[]]}:void 0)},b=I=>{l(I)},U=async()=>{if(!d||!d.morecomment||d.comments.length===0)return;const I=d.comments[d.comments.length-1];if(!I)return;y(!0);const P=I.id;try{const z=(await bn({publication:Bo,path:r??"",size:5,sizereply:2,id:void 0,lastid:P,state:"5,6",apiToken:sd}))[0];u({morecomment:z.morecomment??!1,comments:[...d.comments,...z.comments]}),y(!1)}catch($){throw y(!1),new Error(`Error al obtener comentarios: ${$}`)}},S=d?.comments&&d.comments.length>0,M=S?"Comparte tu opinión de este artículo.":"Se el primero en compartir tu opinión de este artículo.",x=t.jsx("div",{style:{display:"flex",width:"100%",justifyContent:"center"},children:t.jsx(je,{})});return t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"comments-container",children:t.jsx(ae,{title:S||e?"COMENTARIOS":!1,children:t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"comments-header",children:e&&a&&t.jsxs(t.Fragment,{children:[t.jsx(Gc,{user:a,handleLogout:s,message:M}),t.jsx(nd,{commentRef:f,user:a,addComment:w,path:r})]})}),t.jsx("div",{className:"comments-list","data-isauthenticated":`${e}`,children:d?d.comments&&d.comments.length>0?t.jsxs(t.Fragment,{children:[d.comments.map(I=>t.jsx(td,{comment:I,replyingTo:c,handleReplyingTo:g,onFlag:b,user:a??Qe,path:r},I.id)),m&&x]}):null:x}),d?.morecomment&&!m&&t.jsx("button",{className:"comment-replies-button",onClick:U,children:"Más"})]})})}),t.jsx(Wc,{username:a?.username??void 0,publication:Bo,commentId:i,isOpen:i!==void 0,onClose:()=>l(void 0),CAPTCHA_KEY_V2:o})]})},ca=async(e,n)=>{if(!e)throw new Error("No action provided");if(!n)throw new Error("No site key provided");const a=window.grecaptcha;if(!a?.enterprise)throw new Error("grecaptcha not loaded");return new Promise((s,o)=>{a.enterprise.ready(async()=>{try{const r=await a.enterprise.execute(n,{action:e});if(!r)throw new Error("Captcha token no generado");s(r)}catch(r){o(r)}})})},Lo={email:{label:"Email",required:!0},given_name:{label:"Nombre",required:!0},family_name:{label:"Apellido",required:!0},password:{label:"Contraseña",required:!0},confirmPassword:{label:"Confirmar contraseña",required:!0}},vn=[{label:"La contraseña debe tener al menos 8 caracteres",test:e=>e.length>=8},{label:"Usa un número",test:e=>/\d/.test(e)},{label:"Usa una letra minúscula",test:e=>/[a-z]/.test(e)},{label:"Usa una letra mayúscula",test:e=>/[A-Z]/.test(e)},{label:"Usa un símbolo",test:e=>/[^A-Za-z0-9]/.test(e)}];function rd({goToLogin:e,handleGoogleLogin:n}){const[a,s]=C.useState({}),[o,r]=C.useState(!1),[i,l]=C.useState(!1),[c,h]=C.useState(null),[d,u]=C.useState("register"),m=(w,b)=>{s(U=>({...U,[w]:b}))},y=async w=>{w.preventDefault(),h(null),l(!0);try{const b=Object.keys(Lo).filter(P=>!["username","password","confirmPassword"].includes(P)).map(P=>({Name:P,Value:a[P]}));if(b.some(P=>{if(!P.Value||P.Value.trim()==="")return!0}))return l(!1),h("Complete todos los campos");if(a.password!==a.confirmPassword){h("Las contraseñas no coinciden");return}const U=a.password||"";if(vn.some(P=>!P.test(U))){h("La contraseña no es válida");return}const M=Math.floor(Date.now()/1e3);b.push({Name:"updated_at",Value:String(M)});const x=await ca("comment_register","");if(!x)throw new Error("Captcha token no generado");const I=await fetch("/api/auth/create-user",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:a.email,password:a.password,userAttributes:b,token:x})});if(!I.ok){const P=await I.json().catch(()=>({}));if(P.code==="UsernameExistsException"){await fetch("/api/auth/resend-code",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:a.email})}),u("confirm");return}throw new Error(P?.error||"Error al crear usuario")}u("confirm")}catch(b){console.log(b),h(b?.message||b?.error||"Error inesperado")}finally{l(!1)}},f=async w=>{if(w.preventDefault(),!a.confirmationCode){h("Debes ingresar el código de verificación");return}h(null),l(!0);try{const b=await fetch("/api/auth/confirm-user",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:a.email,code:a.confirmationCode})});if(!b.ok){const U=await b.json().catch(()=>({}));throw new Error(U?.error||"Error al confirmar usuario")}u("success")}catch(b){h(b?.message||"Error inesperado")}finally{l(!1)}},g=a.password||"";return t.jsxs(t.Fragment,{children:[d==="register"&&t.jsxs(t.Fragment,{children:[t.jsxs("button",{onClick:n,className:_.google,children:[t.jsx("img",{src:"https://www.gstatic.com/firebasejs/ui/2.0.0/images/auth/google.svg",alt:"",className:_.googleIcon}),t.jsx("span",{children:"Continuar con Google"})]}),t.jsx("div",{className:_.divider,children:t.jsx("span",{children:"o"})}),t.jsxs("form",{onSubmit:y,className:_.form,"data-error":c?"true":"false",children:[t.jsx("ul",{className:_.formUl,children:Object.entries(Lo).map(([w,{label:b}])=>t.jsxs("div",{className:_.field,children:[t.jsx("label",{className:_.label,children:b}),t.jsx("input",{type:w.toLowerCase().includes("password")?o?"text":"password":w==="birthdate"?"date":w==="email"?"email":w==="phone_number"?"tel":"text",name:w,value:a[w]||"",onChange:U=>m(w,U.target.value),className:_.input,placeholder:""}),w==="password"&&t.jsx("div",{className:_.passwordChecker,children:vn.map((U,S)=>{const M=U.test(g);return t.jsxs("div",{className:M?_.valid:_.invalid,children:[t.jsx("div",{children:M?"✔":"○"}),t.jsx("div",{children:U.label})]},S)})}),w==="confirmPassword"&&t.jsxs("div",{className:_.checkboxRow,children:[t.jsx("input",{id:"showPasswordRegister",type:"checkbox",checked:o,onChange:U=>r(U.target.checked)}),t.jsx("label",{htmlFor:"showPasswordRegister",className:_.checkboxLabel,children:"Mostrar contraseñas"})]})]},w))}),c&&t.jsx("p",{className:_.error,children:c}),t.jsxs("p",{className:_.terms,children:["Al continuar, confirmo que he leído y aceptado los",t.jsx("a",{href:"/pages/politicas-de-privacidad.html",target:"_blank",children:"Términos y Condiciones"}),"de nuestra comunidad"]}),t.jsx("button",{type:"submit",className:_.primary,disabled:i,children:i?t.jsx(je,{}):"Crear cuenta"})]})]}),d==="confirm"&&t.jsxs("form",{onSubmit:f,className:_.form,"data-error":c?"true":"false",children:[t.jsxs("div",{className:_.field,children:[t.jsx("label",{className:_.label,children:"Código de verificación"}),t.jsx("input",{type:"text",name:"confirmationCode",value:a.confirmationCode||"",onChange:w=>m("confirmationCode",w.target.value),className:_.input,required:!0})]}),c&&t.jsx("p",{className:_.error,children:c}),t.jsx("button",{type:"submit",className:_.primary,disabled:i,children:i?t.jsx(je,{}):"Confirmar cuenta"}),t.jsxs("p",{className:_.switch,children:["¿Ya confirmaste antes?",t.jsx("button",{type:"button",onClick:e,children:"Iniciar sesión"})]})]}),d==="success"&&t.jsxs("form",{className:_.form,children:[t.jsxs("div",{className:_.successContainer,children:[t.jsx("div",{className:_.thumbsUp,children:t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:132,height:120,fill:"none",children:t.jsx("path",{fill:"#0073BE",d:"M119.249 42.357H81.915l5.621-27.039.177-1.893a8.906 8.906 0 0 0-2.603-6.272L78.838.941 39.907 39.93c-2.19 2.13-3.491 5.089-3.491 8.343v59.167c0 6.508 5.325 11.833 11.833 11.833h53.25c4.911 0 9.112-2.958 10.887-7.218l17.868-41.713c.533-1.36.829-2.78.829-4.32V54.192c0-6.509-5.325-11.834-11.834-11.834Zm0 23.667-17.75 41.417h-53.25V48.274l25.679-25.678L67.36 54.19h51.889v11.833ZM.916 48.274h23.667v71H.916v-71Z"})})}),t.jsxs("div",{className:_.successMessage,children:[t.jsx("p",{children:"Confirmación completa."}),t.jsx("p",{children:"Ya eres parte de la comunidad!"})]})]}),t.jsx("button",{onClick:e,className:_.primary,children:"Iniciar sesión"})]}),d==="register"&&t.jsxs("p",{className:_.switch,children:["¿Ya tenés cuenta?",t.jsx("button",{type:"button",onClick:e,children:"Iniciar sesión"})]})]})}function id({onClose:e,checkAuth:n,goToRegister:a,handleGoogleLogin:s,CAPTCHA_KEY:o}){const[r,i]=C.useState("login"),[l,c]=C.useState(""),[h,d]=C.useState(""),[u,m]=C.useState(""),[y,f]=C.useState(""),[g,w]=C.useState(""),[b,U]=C.useState(!1),[S,M]=C.useState(!1),[x,I]=C.useState(null),P=async O=>{if(!S){O.preventDefault(),I(null),M(!0);try{const q=await ca("comment_login",o);if(!q)throw new Error("Captcha token no generado");const H=await fetch("/api/auth/login-password",{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({email:l,password:h,token:q})});if(!H.ok){const ee=await H.json().catch(()=>({}));throw new Error(ee?.error||"Ha ocurrido un error")}e(),await n()}catch(q){I(q?.message||"Error inesperado")}finally{M(!1)}}},$=async O=>{if(!S){O.preventDefault(),I(null),M(!0);try{const q=await fetch("/api/auth/forgot-password",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:l})});if(!q.ok){const H=await q.json().catch(()=>({}));throw new Error(H?.error||"Error al enviar código")}d(""),i("changePassword")}catch(q){I(q?.message||"Error inesperado")}finally{M(!1)}}},z=async O=>{if(S)return;if(O.preventDefault(),y!==g){I("Las contraseñas no coinciden");return}if(vn.some(H=>!H.test(y))){I("La contraseña no cumple con los requisitos");return}I(null),M(!0);try{const H=await fetch("/api/auth/confirm-forgot-password",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:l,code:u,newPassword:y})});if(!H.ok){const ee=await H.json().catch(()=>({}));throw new Error(ee?.error||"Error al cambiar contraseña")}i("feedback")}catch(H){I(H?.message||"Error inesperado")}finally{M(!1)}};return t.jsxs(t.Fragment,{children:[r==="login"&&t.jsx(ld,{email:l,password:h,showPassword:b,loading:S,error:x,setEmail:c,setPassword:d,setShowPassword:U,onSubmit:P,onForgot:()=>{I(null),i("forgot")},onRegister:a,handleGoogleLogin:s}),r==="forgot"&&t.jsx(cd,{email:l,setEmail:c,loading:S,error:x,onSubmit:$,onBack:()=>{I(null),i("login")}}),r==="changePassword"&&t.jsx(dd,{email:l,confirmationCode:u,newPassword:y,confirmNewPassword:g,showPassword:b,loading:S,error:x,setConfirmationCode:m,setNewPassword:f,setConfirmNewPassword:w,setShowPassword:U,onSubmit:z,onBack:()=>{I(null),i("forgot")}}),r==="feedback"&&t.jsx(hd,{onBackToLogin:()=>{I(null),i("login")}})]})}function ld({email:e,password:n,showPassword:a,loading:s,error:o,setEmail:r,setPassword:i,setShowPassword:l,onSubmit:c,onForgot:h,onRegister:d,handleGoogleLogin:u}){return t.jsxs(t.Fragment,{children:[t.jsxs("button",{onClick:u,className:_.google,children:[t.jsx("img",{src:"https://www.gstatic.com/firebasejs/ui/2.0.0/images/auth/google.svg",alt:"",className:_.googleIcon}),t.jsx("span",{children:"Continuar con Google"})]}),t.jsx("div",{className:_.divider,children:t.jsx("span",{children:"o"})}),t.jsxs("form",{onSubmit:c,className:_.form,"data-error":o?"true":"false",children:[t.jsxs("div",{className:_.field,children:[t.jsx("label",{className:_.label,children:"Email"}),t.jsx("input",{type:"email",value:e,onChange:m=>r(m.target.value),className:_.input,placeholder:""})]}),t.jsxs("div",{className:_.field,children:[t.jsx("label",{className:_.label,children:"Contraseña"}),t.jsx("input",{type:a?"text":"password",value:n,onChange:m=>i(m.target.value),className:_.input,placeholder:""}),t.jsxs("div",{className:_.checkboxRow,children:[t.jsx("input",{id:"showPasswordLogin",type:"checkbox",checked:a,onChange:m=>l(m.target.checked)}),t.jsx("label",{htmlFor:"showPasswordLogin",className:_.checkboxLabel,children:"Mostrar contraseña"})]})]}),o&&t.jsx("p",{className:_.error,children:o}),t.jsx("button",{type:"submit",className:_.primary,disabled:s,children:s?t.jsx(je,{}):"Iniciar Sesión"})]}),t.jsxs("p",{className:_.switch,children:["¿No tenés cuenta?",t.jsx("button",{type:"button",onClick:d,children:"Registrate"})]}),t.jsx("button",{type:"button",className:_.forgotPassword,onClick:h,children:"Olvidé mi contraseña"})]})}function cd({email:e,setEmail:n,loading:a,error:s,onSubmit:o,onBack:r}){return t.jsxs("form",{onSubmit:o,className:_.form,"data-error":s?"true":"false",children:[t.jsx("p",{className:_.message,children:"Ingrese su dirección de correo electrónico. Le enviaremos un mensaje con un código para restablecer la contraseña."}),t.jsxs("div",{className:_.field,children:[t.jsx("label",{className:_.label,children:"Email"}),t.jsx("input",{type:"email",value:e,name:"email",onChange:i=>n(i.target.value),className:_.input,placeholder:""})]}),s&&t.jsx("p",{className:_.error,children:s}),t.jsx("button",{type:"submit",className:_.primary,disabled:a,children:a?t.jsx(je,{}):"Enviar código"}),t.jsx("p",{className:_.switch,children:t.jsx("button",{type:"button",onClick:r,children:"Volver"})})]})}function dd({email:e,confirmationCode:n,newPassword:a,confirmNewPassword:s,showPassword:o,loading:r,error:i,setConfirmationCode:l,setNewPassword:c,setConfirmNewPassword:h,setShowPassword:d,onSubmit:u,onBack:m}){return t.jsxs("form",{onSubmit:u,className:_.form,"data-error":i?"true":"false",children:[t.jsxs("p",{className:_.message,children:["Hemos enviado un código de restablecimiento de contraseña en un mensaje de Correo electrónico a ",Vc(e),". Ingrese el código y la contraseña nueva."]}),t.jsxs("ul",{className:_.formUl,children:[t.jsxs("div",{className:_.field,children:[t.jsx("label",{className:_.label,children:"Código de verificación"}),t.jsx("input",{type:"text",value:n,onChange:y=>l(y.target.value),className:_.input,placeholder:""})]}),t.jsxs("div",{className:_.field,children:[t.jsx("label",{className:_.label,children:"Nueva contraseña"}),t.jsx("input",{type:o?"text":"password",value:a,onChange:y=>c(y.target.value),className:_.input,placeholder:"",name:"password"}),t.jsx("div",{className:_.passwordChecker,children:vn.map((y,f)=>{const g=y.test(a);return t.jsxs("div",{className:g?_.valid:_.invalid,children:[t.jsx("div",{children:g?"✔":"○"}),t.jsx("div",{children:y.label})]},f)})})]}),t.jsxs("div",{className:_.field,children:[t.jsx("label",{className:_.label,children:"Confirmar contraseña"}),t.jsx("input",{type:o?"text":"password",value:s,onChange:y=>h(y.target.value),className:_.input,placeholder:""}),t.jsxs("div",{className:_.checkboxRow,children:[t.jsx("input",{id:"showPasswordForgot",type:"checkbox",checked:o,onChange:y=>d(y.target.checked)}),t.jsx("label",{htmlFor:"showPasswordForgot",className:_.checkboxLabel,children:"Mostrar contraseñas"})]})]})]}),i&&t.jsx("p",{className:_.error,children:i}),t.jsx("button",{type:"submit",className:_.primary,style:{maxWidth:r?"revert-layer":"fit-content"},disabled:r,children:r?t.jsx(je,{}):"Cambiar contraseña"}),t.jsx("p",{className:_.switch,children:t.jsx("button",{type:"button",onClick:m,children:"Volver"})})]})}function hd({onBackToLogin:e}){return t.jsxs("div",{className:_.form,children:[t.jsx("p",{className:_.success,children:"La contraseña fue cambiada con éxito"}),t.jsx("button",{type:"button",className:_.primary,onClick:e,children:"Iniciar Sesión"})]})}function ud({loginUrl:e,COGNITO_AUTH_PREFIX:n,CAPTCHA_KEY:a,onClose:s,checkAuth:o,icon:r}){const[i,l]=C.useState("login"),c=async()=>{if(!e)return;const h=encodeURIComponent(window.location.pathname);window.location.href=`/api/auth/login?redirect=${h}`};return t.jsx("div",{className:_.overlay,role:"dialog","aria-modal":"true",id:"pop-overlay",onClick:h=>{const d=h.target;d&&d.id==="pop-overlay"&&s()},children:t.jsxs("div",{className:_.card,children:[t.jsxs("header",{className:_.header,children:[t.jsx("div",{className:_.logo,children:r?r():null}),t.jsx("button",{onClick:s,className:_.close,"aria-label":"Cerrar",children:t.jsx(it,{})})]}),i==="login"&&t.jsx(id,{CAPTCHA_KEY:a,onClose:s,checkAuth:o,handleGoogleLogin:c,goToRegister:()=>l("register")}),i==="register"&&t.jsx(rd,{handleGoogleLogin:c,goToLogin:()=>l("login")})]})})}function md({isAuthenticated:e,setIsAuthenticated:n,loginUrl:a,user:s,path:o,checkAuth:r,icon:i,COGNITO_AUTH_PREFIX:l,captchaVars:c}){const[h,d]=C.useState(!1),u=async()=>{{const y=window.location.pathname;window.location.href=`${window.location.origin}/api/auth/logout?redirect=${encodeURIComponent(y)}`}},m=async y=>{y.preventDefault(),a&&d(!0)};return t.jsxs(t.Fragment,{children:[h&&t.jsx(ud,{loginUrl:a,COGNITO_AUTH_PREFIX:l,CAPTCHA_KEY:c.CAPTCHA_KEY,icon:i,checkAuth:r,onClose:()=>{d(!1)}}),!e&&t.jsxs("div",{className:"auth-container",children:[t.jsx("p",{children:"Sumate a la comunidad para dejar tu comentario"}),t.jsx("a",{href:a,onClick:m,className:"login-button",children:"Iniciar Sesión"})]}),t.jsx(od,{isAuthenticated:e,handleLogout:u,path:o,user:e?s:void 0,CAPTCHA_KEY_V2:c.CAPTCHA_KEY_V2})]})}const fd="radioformula_";function gd({isVisible:e,path:n,icon:a,COGNITO_AUTH_PREFIX:s,captchaVars:o}){const[r,i]=C.useState(null),[l,c]=C.useState(null),h=async()=>{if(e){if(document.cookie.search(fd+"IS_AUTH=true")===-1){i(!1),c(null),console.log("user not logged");return}try{const y=await(await fetch("/api/auth/user",{credentials:"include"})).json();i(y.isAuthenticated),c(y.user??null)}catch(m){console.error("Error checking auth:",m),i(!1),c(null)}}};C.useEffect(()=>{h()},[]),C.useEffect(()=>{if(!l||!e||typeof window>"u")return;const m=window;if(typeof m!="function"){console.warn("gtag no está disponible todavía");return}m.gtag("set",{user_id:l.username}),console.log("username setted successfully")},[l,e]);const d="/api/auth/login",u=t.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:310,position:"relative"},children:t.jsx(je,{})});return r===null?u:e?t.jsx(md,{COGNITO_AUTH_PREFIX:s,captchaVars:o,icon:a,isAuthenticated:r,setIsAuthenticated:i,loginUrl:d,user:l??void 0,checkAuth:h,path:n}):u}const pd=({render:e,internalPath:n,section:a,currentNews:s,stylesConfig:o,icon:r,COGNITO_AUTH_PREFIX:i,captchaVars:l={CAPTCHA_KEY_V2:"invalidKey",CAPTCHA_KEY:"invalidKey"}})=>{const c=C.useRef(null),[h,d]=C.useState(!1);C.useEffect(()=>{const m=new IntersectionObserver(([y])=>{y?.isIntersecting&&(d(!0),m.disconnect())},{rootMargin:"0px",threshold:.1});return c.current&&m.observe(c.current),()=>m.disconnect()},[]);const u={comment:t.jsx(gd,{COGNITO_AUTH_PREFIX:i??"template_",captchaVars:l,path:n,icon:r,isVisible:h}),more:t.jsx(Oc,{section:a,currentNews:s,stylesConfig:o,isVisible:h})};return t.jsx("div",{ref:c,suppressHydrationWarning:!0,style:{...o?o["Modulo 1x3 Client"]?o["Modulo 1x3 Client"]:o["Modulo 1x3"]:{}},children:u[e]})};async function Ad({publication:e,path:n,username:a,comment:s,id:o,captchaEnvVars:r,recaptchaResponse:i,baseUrl:l,apiToken:c,securityToken:h}){if(console.log("Adding comment with data:",{publication:e,path:n,username:a,comment:s,id:o,recaptchaResponse:i}),!e||!n||!s||!a)return{type:"error",message:"Faltan campos obligatorios. Por favor, completa todos los campos.",status:400};if([e,n,s,a].some(f=>typeof f!="string"))return{type:"error",message:"Datos inválidos. Intenta de nuevo.",status:400};if(!a.trim())return{type:"error",message:"El nombre no puede estar vacío.",status:400};if(!s.trim())return{type:"error",message:"El comentario no puede estar vacío.",status:400};const d=await No(i,r);if(console.log("Verifying captcha token...",d),!d)return{type:"error",message:"Captcha inválido. Intenta nuevamente.",status:403};const u=`${l}/system/modules/com.tfsla.diario.base/templates/hit/5.0/1/newcomments/add`,m={publication:e,path:n.replace(/\|/gi,"/"),username:a??!1,text:s.trim()};o&&(m.id=o);const y=new URLSearchParams(m);try{const{data:f}=await V.get(`${u}?${y.toString()}`,{headers:{"Content-Type":"application/json","x-security-token":h,"x-api-token":c,"User-Agent":"amplifyapp-comments-saas"}});return!f||f.error?(console.error("CMS error response:",f),{type:"error",message:"No se pudo guardar el comentario. Intenta nuevamente en unos minutos.",status:502}):(console.log("Comentario enviado con éxito",f),{type:"success",message:"Comentario enviado con éxito.",status:200})}catch(f){if(console.error("Error enviando comentario:",f),V.isAxiosError(f)){const g=f.response?.status??500,w=f.response?.data;return g===400?{type:"error",message:w?.message||"Solicitud inválida. Verifica que los campos sean correctos.",status:400}:g===403?{type:"error",message:"Captcha inválido o acceso prohibido.",status:403}:g===500?{type:"error",message:"Error interno del servidor del CMS.",status:500}:{type:"error",message:w?.message||"No se pudo enviar el comentario.",status:g}}return{type:"error",message:"Error inesperado. Intenta nuevamente.",status:500}}}const wd=async({token:e,projectId:n,captchaKey:a,apiKey:s,captchaAction:o})=>{if(!e)throw new Error("No token provided");if(!n||!a||!s)throw new Error("Missing project ID or site key");if(!o)throw new Error("No action provided");try{const i=await(await fetch(`https://recaptchaenterprise.googleapis.com/v1/projects/${n}/assessments?key=${s}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({event:{token:e,siteKey:a,expectedAction:o}})})).json();if(!i?.tokenProperties?.valid)throw new Error(`The token was: ${i?.tokenProperties?.invalidReason}`);if(i.tokenProperties.action!==o)throw new Error("The action attribute in your reCAPTCHA tag does not match the action you are expecting to score");return i?.riskAnalysis?.score??0}catch(r){throw console.error("Recaptcha verification failed",r),new Error(String(r))}},yd=e=>{const{content:n,title:a,slot_id:s}=e,o=e.slot_id&&e.slot_id!=="Nota_1";return n&&n.length!==0&&t.jsx(ae,{title:a,titleUrl:e.titleUrl,children:t.jsx(Ye,{slot_id:s,cardWidth:200,children:n.map((r,i)=>{const l={...r,main:{...r.main,title:{...r.main.title,section:o?r.main.title.home:r.main.title.section}}};return t.jsx(Ut,{...l,titleGradient:!0,paths:e.paths},i)})})})},Cd=e=>{const{content:n,title:a,slot_id:s}=e,o=e.slot_id&&e.slot_id!=="Nota_1";return n&&n.length!==0&&t.jsx(ae,{title:a,titleUrl:e.titleUrl,children:t.jsx(Ye,{slot_id:s,cardWidth:343,cardGap:32,visibleItems:3,children:n.map((r,i)=>{const l={...r,main:{...r.main,title:{...r.main.title,section:o?r.main.title.home:r.main.title.section}}};return t.jsx(Ut,{...l,titleGradient:!0,paths:e.paths},i)})})})},bd=e=>{const{content:n,title:a,slot_id:s}=e,o=e.slot_id&&e.slot_id!=="Nota_1";return n&&n.length!==0&&t.jsx(ae,{title:a,titleUrl:e.titleUrl,children:t.jsx(Ye,{slot_id:s,fullPageWidth:!0,visibleItems:1,pagination:!0,cardGap:0,children:n.map((r,i)=>{const l={...r,main:{...r.main,title:{...r.main.title,section:o?r.main.title.home:r.main.title.section}}};return C.createElement(Ut,{...l,key:i,titleGradient:!0,paths:e.paths})})})})},_n=e=>{const n={};for(const a in e)a.startsWith("--")&&(n[a]=e[a]);return n},Ze={headerSection:"_headerSection_1c69w_1",title:"_title_1c69w_11",subtitle:"_subtitle_1c69w_23",newsContent:"_newsContent_1c69w_36",containerCards:"_containerCards_1c69w_44",image:"_image_1c69w_50",blockHeadContainer:"_blockHeadContainer_1c69w_56"},vd=e=>{const{content:n,title:a,isVideo:s}=e;if(!n||n.length===0)return;const o=n[0],r=n.slice(1),i=e.slot_id&&e.slot_id!=="Nota_1";return o&&r&&t.jsxs(ae,{title:a,titleUrl:e.titleUrl,children:[t.jsx("div",{className:Ze.headerSection,children:t.jsxs("a",{style:{"--heightImageOverwriteMobile":"200%"},className:Ze.image,href:o?.info?.link?.url,target:o?.info?.link?.target,children:[t.jsxs("div",{className:Ze.blockHeadContainer,children:[t.jsx("p",{className:Ze.title,children:o?.main?.title.home}),o?.main?.subtitle?.rendered&&t.jsx("p",{className:Ze.subtitle,children:o?.main?.subtitle?.striped})]}),t.jsx(pe,{preview:o.preview})]})}),t.jsxs("div",{className:Ze.containerCards,children:[t.jsx("div",{className:"banner-context",style:{order:1},children:e.banner}),t.jsx("div",{className:Ze.newsContent,children:Array.isArray(r)&&r.map((l,c)=>{const h={...l,main:{...l.main,title:{...l.main.title,section:i?l.main.title.home:l.main.title.section}}};return t.jsx("div",{style:{order:c},children:t.jsx(Ee,{...h,isVideo:s,paths:e.paths})},c)})})]})]})},Do={banner:e=>t.jsx(ne,{...e,name:e.slot_id.replace("Home","block")}),readest:e=>t.jsx(rn,{...e}),"Modulo 1x3":e=>t.jsx(ta,{...e}),"Modulo 1x4":e=>t.jsx(so,{...e}),"Modulo 1x5":e=>t.jsx(oo,{...e}),"Destacado noticias":e=>t.jsx(eo,{...e}),"Destacado full width":e=>t.jsx(vd,{...e}),"Destacado videos":e=>t.jsx(ro,{...e}),"Carrusel card":e=>t.jsx(co,{...e}),"Carrusel story":e=>t.jsx(yd,{...e}),"Carrusel owl":e=>t.jsx(Cd,{...e}),"Modulo fotogaleria":e=>t.jsx(bd,{...e}),"Carrusel opinion":e=>t.jsx(ho,{...e}),"Modulo 1x3 card":e=>t.jsx(lo,{...e})};function Mo({component:e,slot_id:n,data:a,banners:s}){if(s)return Do[e]&&t.jsx("div",{className:"home-slot",style:_n(a),children:Do[e]({...a,banners:s,slot_id:n})})}function _d({children:e,stylesConfigEntry:n}){return t.jsx("div",{className:"home-slot",style:_n(n),children:e})}const Po={Diario:e=>{if(!e?.data||e.data.length===0)return;const n=e.data.slice(1);return t.jsx(Zs,{...e.data[0],itemReverseOrder:!0,isLarge:!0,block:n,banners:e.banners,showSuper:e.showSuper,rightOnlyBanner:e.rightOnlyBanner,customSectionCardStyles:e.customSectionCardStyles,customNewsDescriptionStyles:e.customNewsDescriptionStyles,paths:e.paths})},"Diario con imagen":e=>{if(!e?.data||e.data.length===0)return;const n=e.data.slice(1);return t.jsx(Zs,{...e.data[0],itemReverseOrder:!0,isLarge:!0,showSuper:e.showSuper,block:n,banners:e.banners,customSectionCardStyles:e.customSectionCardStyles,customNewsDescriptionStyles:e.customNewsDescriptionStyles,paths:e.paths})},Super:e=>t.jsx(ht,{...e.data[0],paths:e.paths}),"3 notas verticales":e=>t.jsx(Ql,{content:e.data,customLargeSection:e.customLargeSection,customSlimSection:e.customSlimSection,paths:e.paths}),"3 notas horizontales":e=>t.jsx(Ol,{content:e.data,customLargeSection:e.customLargeSection,customSmallSection:e.customSmallSection,paths:e.paths})},Nn=({component:e,data:n,banners:a,rightOnlyBanner:s})=>t.jsx("div",{style:_n(n),children:Po[e]&&Po[e]({...n,rightOnlyBanner:s,banners:a})}),Nd=({slots:e,DYNAMIC_SLOT_SUBINDEXES:n,stylesConfig:a,AutorIcon:s,config:o,banners:r})=>{const i=[],c=n,h=Object.keys(e).length/c;for(let d=1;d<=h;d++)for(let u=1;u<=c;u++){const m="Home_"+d+"_"+u;!e[m]||!e[m].blockSass||!e[m].blockSass[0]||!e[m].blockSass[0].value||!e[m].blockSass[0].block||e[m].blockSass[0].block==="No Mostrar"||i.push(t.jsxs(Ts,{show:!!e[m].content?.data,order:(d-1)*c+(u-1),children:[t.jsx(Mo,{component:e[m].blockSass[0].block,banners:r,slot_id:m,data:{...e[m].blockSass[0].block?a[e[m].blockSass[0].block]:[],content:e[m].content?.data??[],title:e[m].blockSass[0].title??void 0,titleUrl:e[m].blockSass[0].link??void 0,autorIcon:t.jsx(s,{}),paths:o.paths}}),t.jsx(St,{children:t.jsx(st,{banners:r,index:"dynamic_"+d+"_"+u})})]},d+"_"+u))}return i},Sd=({mainBlock:e,StylesConfigMain:n,config:a,banners:s})=>{const{PUBLIC_ENV:o}=J();if(o!=="local")return null;const r=e?.news?.data||[],i=(l,c)=>({...e?.news,...n[l],data:r.slice(0,c),paths:a.paths});return t.jsxs(t.Fragment,{children:[t.jsx(Nn,{component:"Super",data:i("Super",1),banners:s}),t.jsx(St,{children:t.jsx(st,{banners:s,index:1})}),t.jsx(Nn,{component:"3 notas verticales",data:i("3 notas verticales",3),banners:s}),t.jsx(St,{children:t.jsx(st,{banners:s,index:1})}),t.jsx(Nn,{component:"3 notas horizontales",data:i("3 notas horizontales",3),banners:s}),t.jsx(St,{children:t.jsx(st,{banners:s,index:1})})]})};A.AssetsPreconnect=Ia,A.AutorComponent=Tc,A.AutorHeader1=Vs,A.AutorHeader2=Ws,A.BannerAdvertising=ne,A.BannerAdvertisingMiddle=st,A.CarrouselCSR=Ki,A.CarrouselIRS=Ye,A.CarruselCard=co,A.CarruselOpinion=ho,A.CommonServices=ge,A.Comscore=da,A.ContactInfoServer=Yl,A.ContactInput=Nl,A.ContactSelect=Sl,A.ContactTextarea=kl,A.ContentLayout1=at,A.ContentLayoutTema=Wn,A.DEBUG_MainSlots=Sd,A.DestacadoNoticias=eo,A.DestacadoVideos=ro,A.DynamicBlockServices=Es,A.DynamicComponents=Nd,A.DynamicMainSlot=Nn,A.DynamicSlot=Mo,A.EditorialBlock=$l,A.ErrorComponent=_l,A.Font=Qa,A.Footer=gl,A.FormatAfterScripts=Ea,A.FormatScripts=Un,A.GA4=ha,A.GTM=jo,A.GalleryHeader=po,A.GenerateBody=Hi,A.GenerateHead=zi,A.Header=Ll,A.ImageOffline=Ls,A.IssuuServices=Qi,A.ItemListSchema=Ba,A.JournalistArticule2=Ml,A.JournalistGroup=Pl,A.LayoutNewsComponent=Kn,A.LazyLoader=pd,A.LiveBlogHeader=Hs,A.Location=Wi,A.MainComponentServices=gr,A.Marfeel=ua,A.MiddleSection=St,A.Modulo1x3=ta,A.Modulo1x3Card=lo,A.Modulo1x4=so,A.Modulo1x5=oo,A.Modulo2Columnas=zl,A.Modulo3Columnas=no,A.ModuloNewsletter=Hl,A.ModuloOpinion=Gl,A.NewListResponseDataPH=vo,A.NewsArticle=Da,A.NewsComponent=Nc,A.NewsContent=un,A.NextPrev=Et,A.OrgList=Ma,A.PreloadImages=xn,A.REPORT_REASONS=Ue,A.Readest=rn,A.ScriptHydrator=Dc,A.SearchSection=Uc,A.Section=ae,A.SectionCard=Ee,A.SectionCard2=Ut,A.SectionCardServerComponent=wn,A.SectionServerComponent=Wl,A.ShowSection=Ts,A.SocialNetworks=go,A.SpeculationRules=qa,A.StaticSlotWrapper=_d,A.SubscribeColumn=Os,A.SubscribeRow=Qs,A.SubscribeWhatsAppColumn=il,A.TagComponent=Ec,A.TagSection=Dl,A.TimeLine=Fs,A.TrimPathname=lr,A.VideoBlock3=vl,A.VideoBlock4=Il,A.VideoSection=Lc,A.VideosSchemas=Oa,A.WebsiteList=Pa,A.addComment=Ad,A.bannersReplace=Wt,A.becomeVideoObject=Re,A.coloringByStrokeSVGs=js,A.compileStyleProps=_n,A.cutString=me,A.extractRealtedNews=rr,A.formatDate=Ce,A.formatDateEdiciones=or,A.formatDateJournalistArticule=En,A.formatDateTimeline=ya,A.formatNewsMeta=_a,A.formatVideoData=Ua,A.generalGetData=$i,A.getCaptchaToken=ca,A.getComments=bn,A.getConfig=J,A.getDynamicSlots=ji,A.getEnvironmentUrl=pt,A.getEnvironmentUrlFront=va,A.getImageUrl=te,A.getNextMeta=At,A.getPage=yt,A.getPreloadImages=fr,A.getPrevMeta=wt,A.getReportReasonLabel=zc,A.getResponse=Ca,A.getResponsePromise=ba,A.getSchemas=Yt,A.getScriptReplaces=qn,A.getSlugs=Ga,A.getTypeOfNews=dr,A.getVideoRealPath=hr,A.initLibrary=ar,A.metadataToJSX=ka,A.metadata_defaults=Is,A.parseTags=In,A.pathnameSplit=Na,A.removePages=ja,A.reportComment=$c,A.shareButtons=Gs,A.socialIcons=cn,A.speculationRules=xa,A.speculationRulesHome=Ta,A.urlReplaces=Sa,A.verifyCaptchaTokenEnterprise=wd,Object.defineProperty(A,Symbol.toStringTag,{value:"Module"})}));