sass-template-common 0.4.27 → 0.4.29
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.
|
@@ -802,7 +802,11 @@ const Bi = async (e, t) => {
|
|
|
802
802
|
height: i
|
|
803
803
|
}, Pi = (e, t, n) => {
|
|
804
804
|
if (!e) return {};
|
|
805
|
-
const {
|
|
805
|
+
const {
|
|
806
|
+
PUBLIC_ASSETS_URL: s,
|
|
807
|
+
PUBLIC_API_FRONT: o,
|
|
808
|
+
DATE_TIMEZONE: i = "America/Mexico_City"
|
|
809
|
+
} = $(), r = no(e.keywords) ?? "", c = e?.preview?.sizes ? e?.preview?.sizes[0]?.url : "", u = (s !== "false" ? s : o) ?? "", d = qi(n), l = ts({
|
|
806
810
|
schemaImage: d,
|
|
807
811
|
socialImage: e?.social?.images?.facebook,
|
|
808
812
|
fallbackImage: c,
|
|
@@ -846,8 +850,14 @@ const Bi = async (e, t) => {
|
|
|
846
850
|
images: [m]
|
|
847
851
|
},
|
|
848
852
|
article: {
|
|
849
|
-
published_time: $t(
|
|
850
|
-
|
|
853
|
+
published_time: $t(
|
|
854
|
+
e?.info?.date?.firstpublish,
|
|
855
|
+
i
|
|
856
|
+
),
|
|
857
|
+
modified_time: $t(
|
|
858
|
+
e?.info?.date?.lastpublish ?? e?.info?.date?.firstpublish,
|
|
859
|
+
i
|
|
860
|
+
),
|
|
851
861
|
section: e?.info?.section?.name,
|
|
852
862
|
author: e?.authors?.[0]?.fullname,
|
|
853
863
|
tag: e?.keywords?.tags ?? []
|
|
@@ -15044,7 +15054,6 @@ async function C9({
|
|
|
15044
15054
|
o && w.append("id", o), i && w.append("lastid", i);
|
|
15045
15055
|
const _ = `${p}${h}/newcomments/get?${w.toString()}`;
|
|
15046
15056
|
try {
|
|
15047
|
-
console.log("Fetching comments from:", _);
|
|
15048
15057
|
const { data: S } = await re.get(_, {
|
|
15049
15058
|
headers: {
|
|
15050
15059
|
"x-api-token": c,
|
|
@@ -15083,8 +15092,8 @@ const S9 = (e, t) => {
|
|
|
15083
15092
|
API_ENV: t
|
|
15084
15093
|
});
|
|
15085
15094
|
s(u ?? []);
|
|
15086
|
-
} catch
|
|
15087
|
-
|
|
15095
|
+
} catch {
|
|
15096
|
+
s({ comments: [], morecomment: !1 });
|
|
15088
15097
|
}
|
|
15089
15098
|
})();
|
|
15090
15099
|
}, [n]), { comments: n, setComments: s };
|
|
@@ -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
|
-
`}}),n.jsx("noscript",{children:n.jsx("iframe",{src:`https://www.googletagmanager.com/ns.html?id=${e}`,height:"0",width:"0",style:{display:"none",visibility:"hidden"}})})]})},ss=()=>{const{ANALYTICS_marfeel:e}=z();return e&&n.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},{})}();`}})},ti=({defaultRouteName:e})=>{const{CAPTCHA_KEY:t,CONFIG_comments:a=!1}=z();return t&&t!==""&&(e==="news"&&a||e==="anuncia"||e==="contacto")&&n.jsx("script",{src:`https://www.google.com/recaptcha/enterprise.js?render=${t}`,async:!0,defer:!0})};function bt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var tn={exports:{}},ni=tn.exports,os;function rs(){return os||(os=1,(function(e,t){(function(a,s){e.exports=s()})(ni,(function(){var a=1e3,s=6e4,o=36e5,r="millisecond",i="second",c="minute",h="hour",d="day",l="week",u="month",f="quarter",p="year",m="date",g="Invalid Date",A=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,C=/\[([^\]]+)]|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,S={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(q){var x=["th","st","nd","rd"],k=q%100;return"["+q+(x[(k-20)%10]||x[k]||x[0])+"]"}},_=function(q,x,k){var j=String(q);return!j||j.length>=x?q:""+Array(x+1-j.length).join(k)+q},I={s:_,z:function(q){var x=-q.utcOffset(),k=Math.abs(x),j=Math.floor(k/60),B=k%60;return(x<=0?"+":"-")+_(j,2,"0")+":"+_(B,2,"0")},m:function q(x,k){if(x.date()<k.date())return-q(k,x);var j=12*(k.year()-x.year())+(k.month()-x.month()),B=x.clone().add(j,u),V=k-B<0,y=x.clone().add(j+(V?-1:1),u);return+(-(j+(k-B)/(V?B-y:y-B))||0)},a:function(q){return q<0?Math.ceil(q)||0:Math.floor(q)},p:function(q){return{M:u,y:p,w:l,d,D:m,h,m:c,s:i,ms:r,Q:f}[q]||String(q||"").toLowerCase().replace(/s$/,"")},u:function(q){return q===void 0}},w="en",T={};T[w]=S;var U="$isDayjsObject",Q=function(q){return q instanceof Z||!(!q||!q[U])},X=function q(x,k,j){var B;if(!x)return w;if(typeof x=="string"){var V=x.toLowerCase();T[V]&&(B=V),k&&(T[V]=k,B=V);var y=x.split("-");if(!B&&y.length>1)return q(y[0])}else{var N=x.name;T[N]=x,B=N}return!j&&B&&(w=B),B||!j&&w},H=function(q,x){if(Q(q))return q.clone();var k=typeof x=="object"?x:{};return k.date=q,k.args=arguments,new Z(k)},D=I;D.l=X,D.i=Q,D.w=function(q,x){return H(q,{locale:x.$L,utc:x.$u,x:x.$x,$offset:x.$offset})};var Z=(function(){function q(k){this.$L=X(k.locale,null,!0),this.parse(k),this.$x=this.$x||k.x||{},this[U]=!0}var x=q.prototype;return x.parse=function(k){this.$d=(function(j){var B=j.date,V=j.utc;if(B===null)return new Date(NaN);if(D.u(B))return new Date;if(B instanceof Date)return new Date(B);if(typeof B=="string"&&!/Z$/i.test(B)){var y=B.match(A);if(y){var N=y[2]-1||0,O=(y[7]||"0").substring(0,3);return V?new Date(Date.UTC(y[1],N,y[3]||1,y[4]||0,y[5]||0,y[6]||0,O)):new Date(y[1],N,y[3]||1,y[4]||0,y[5]||0,y[6]||0,O)}}return new Date(B)})(k),this.init()},x.init=function(){var k=this.$d;this.$y=k.getFullYear(),this.$M=k.getMonth(),this.$D=k.getDate(),this.$W=k.getDay(),this.$H=k.getHours(),this.$m=k.getMinutes(),this.$s=k.getSeconds(),this.$ms=k.getMilliseconds()},x.$utils=function(){return D},x.isValid=function(){return this.$d.toString()!==g},x.isSame=function(k,j){var B=H(k);return this.startOf(j)<=B&&B<=this.endOf(j)},x.isAfter=function(k,j){return H(k)<this.startOf(j)},x.isBefore=function(k,j){return this.endOf(j)<H(k)},x.$g=function(k,j,B){return D.u(k)?this[j]:this.set(B,k)},x.unix=function(){return Math.floor(this.valueOf()/1e3)},x.valueOf=function(){return this.$d.getTime()},x.startOf=function(k,j){var B=this,V=!!D.u(j)||j,y=D.p(k),N=function(te,K){var de=D.w(B.$u?Date.UTC(B.$y,K,te):new Date(B.$y,K,te),B);return V?de:de.endOf(d)},O=function(te,K){return D.w(B.toDate()[te].apply(B.toDate("s"),(V?[0,0,0,0]:[23,59,59,999]).slice(K)),B)},G=this.$W,$=this.$M,F=this.$D,W="set"+(this.$u?"UTC":"");switch(y){case p:return V?N(1,0):N(31,11);case u:return V?N(1,$):N(0,$+1);case l:var Y=this.$locale().weekStart||0,ee=(G<Y?G+7:G)-Y;return N(V?F-ee:F+(6-ee),$);case d:case m:return O(W+"Hours",0);case h:return O(W+"Minutes",1);case c:return O(W+"Seconds",2);case i:return O(W+"Milliseconds",3);default:return this.clone()}},x.endOf=function(k){return this.startOf(k,!1)},x.$set=function(k,j){var B,V=D.p(k),y="set"+(this.$u?"UTC":""),N=(B={},B[d]=y+"Date",B[m]=y+"Date",B[u]=y+"Month",B[p]=y+"FullYear",B[h]=y+"Hours",B[c]=y+"Minutes",B[i]=y+"Seconds",B[r]=y+"Milliseconds",B)[V],O=V===d?this.$D+(j-this.$W):j;if(V===u||V===p){var G=this.clone().set(m,1);G.$d[N](O),G.init(),this.$d=G.set(m,Math.min(this.$D,G.daysInMonth())).$d}else N&&this.$d[N](O);return this.init(),this},x.set=function(k,j){return this.clone().$set(k,j)},x.get=function(k){return this[D.p(k)]()},x.add=function(k,j){var B,V=this;k=Number(k);var y=D.p(j),N=function($){var F=H(V);return D.w(F.date(F.date()+Math.round($*k)),V)};if(y===u)return this.set(u,this.$M+k);if(y===p)return this.set(p,this.$y+k);if(y===d)return N(1);if(y===l)return N(7);var O=(B={},B[c]=s,B[h]=o,B[i]=a,B)[y]||1,G=this.$d.getTime()+k*O;return D.w(G,this)},x.subtract=function(k,j){return this.add(-1*k,j)},x.format=function(k){var j=this,B=this.$locale();if(!this.isValid())return B.invalidDate||g;var V=k||"YYYY-MM-DDTHH:mm:ssZ",y=D.z(this),N=this.$H,O=this.$m,G=this.$M,$=B.weekdays,F=B.months,W=B.meridiem,Y=function(K,de,M,Ce){return K&&(K[de]||K(j,V))||M[de].slice(0,Ce)},ee=function(K){return D.s(N%12||12,K,"0")},te=W||function(K,de,M){var Ce=K<12?"AM":"PM";return M?Ce.toLowerCase():Ce};return V.replace(C,(function(K,de){return de||(function(M){switch(M){case"YY":return String(j.$y).slice(-2);case"YYYY":return D.s(j.$y,4,"0");case"M":return G+1;case"MM":return D.s(G+1,2,"0");case"MMM":return Y(B.monthsShort,G,F,3);case"MMMM":return Y(F,G);case"D":return j.$D;case"DD":return D.s(j.$D,2,"0");case"d":return String(j.$W);case"dd":return Y(B.weekdaysMin,j.$W,$,2);case"ddd":return Y(B.weekdaysShort,j.$W,$,3);case"dddd":return $[j.$W];case"H":return String(N);case"HH":return D.s(N,2,"0");case"h":return ee(1);case"hh":return ee(2);case"a":return te(N,O,!0);case"A":return te(N,O,!1);case"m":return String(O);case"mm":return D.s(O,2,"0");case"s":return String(j.$s);case"ss":return D.s(j.$s,2,"0");case"SSS":return D.s(j.$ms,3,"0");case"Z":return y}return null})(K)||y.replace(":","")}))},x.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},x.diff=function(k,j,B){var V,y=this,N=D.p(j),O=H(k),G=(O.utcOffset()-this.utcOffset())*s,$=this-O,F=function(){return D.m(y,O)};switch(N){case p:V=F()/12;break;case u:V=F();break;case f:V=F()/3;break;case l:V=($-G)/6048e5;break;case d:V=($-G)/864e5;break;case h:V=$/o;break;case c:V=$/s;break;case i:V=$/a;break;default:V=$}return B?V:D.a(V)},x.daysInMonth=function(){return this.endOf(u).$D},x.$locale=function(){return T[this.$L]},x.locale=function(k,j){if(!k)return this.$L;var B=this.clone(),V=X(k,j,!0);return V&&(B.$L=V),B},x.clone=function(){return D.w(this.$d,this)},x.toDate=function(){return new Date(this.valueOf())},x.toJSON=function(){return this.isValid()?this.toISOString():null},x.toISOString=function(){return this.$d.toISOString()},x.toString=function(){return this.$d.toUTCString()},q})(),ne=Z.prototype;return H.prototype=ne,[["$ms",r],["$s",i],["$m",c],["$H",h],["$W",d],["$M",u],["$y",p],["$D",m]].forEach((function(q){ne[q[1]]=function(x){return this.$g(x,q[0],q[1])}})),H.extend=function(q,x){return q.$i||(q(x,Z,H),q.$i=!0),H},H.locale=X,H.isDayjs=Q,H.unix=function(q){return H(1e3*q)},H.en=T[w],H.Ls=T,H.p={},H}))})(tn)),tn.exports}var ai=rs();const Ie=bt(ai);var nn={exports:{}},si=nn.exports,is;function oi(){return is||(is=1,(function(e,t){(function(a,s){e.exports=s()})(si,(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 c(d,l,u,f){return r.fromToBase(d,l,u,f)}o.en.relativeTime=i,r.fromToBase=function(d,l,u,f,p){for(var m,g,A,C=u.$locale().relativeTime||i,S=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.length,I=0;I<_;I+=1){var w=S[I];w.d&&(m=f?o(d).diff(u,w.d,!0):u.diff(d,w.d,!0));var T=(a.rounding||Math.round)(Math.abs(m));if(A=m>0,T<=w.r||!w.r){T<=1&&I>0&&(w=S[I-1]);var U=C[w.l];p&&(T=p(""+T)),g=typeof U=="string"?U.replace("%d",T):U(T,l,w.l,A);break}}if(l)return g;var Q=A?C.future:C.past;return typeof Q=="function"?Q(g):Q.replace("%s",g)},r.to=function(d,l){return c(d,l,this,!0)},r.from=function(d,l){return c(d,l,this)};var h=function(d){return d.$u?o.utc():o()};r.toNow=function(d){return this.to(h(this),d)},r.fromNow=function(d){return this.from(h(this),d)}}}))})(nn)),nn.exports}var ri=oi();const ii=bt(ri);var an={exports:{}},ci=an.exports,cs;function li(){return cs||(cs=1,(function(e,t){(function(a,s){e.exports=s(rs())})(ci,(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}))})(an)),an.exports}li();var sn={exports:{}},di=sn.exports,ls;function hi(){return ls||(ls=1,(function(e,t){(function(a,s){e.exports=s()})(di,(function(){var a="minute",s=/[+-]\d\d(?::?\d\d)?/g,o=/([+-]|\d\d)/g;return function(r,i,c){var h=i.prototype;c.utc=function(g){var A={date:g,utc:!0,args:arguments};return new i(A)},h.utc=function(g){var A=c(this.toDate(),{locale:this.$L,utc:!0});return g?A.add(this.utcOffset(),a):A},h.local=function(){return c(this.toDate(),{locale:this.$L,utc:!1})};var d=h.parse;h.parse=function(g){g.utc&&(this.$u=!0),this.$utils().u(g.$offset)||(this.$offset=g.$offset),d.call(this,g)};var l=h.init;h.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 l.call(this)};var u=h.utcOffset;h.utcOffset=function(g,A){var C=this.$utils().u;if(C(g))return this.$u?0:C(this.$offset)?u.call(this):this.$offset;if(typeof g=="string"&&(g=(function(w){w===void 0&&(w="");var T=w.match(s);if(!T)return null;var U=(""+T[0]).match(o)||["-",0,0],Q=U[0],X=60*+U[1]+ +U[2];return X===0?0:Q==="+"?X:-X})(g),g===null))return this;var S=Math.abs(g)<=16?60*g:g;if(S===0)return this.utc(A);var _=this.clone();if(A)return _.$offset=S,_.$u=!1,_;var I=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(_=this.local().add(S+I,a)).$offset=S,_.$x.$localOffset=I,_};var f=h.format;h.format=function(g){var A=g||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return f.call(this,A)},h.valueOf=function(){var g=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*g},h.isUTC=function(){return!!this.$u},h.toISOString=function(){return this.toDate().toISOString()},h.toString=function(){return this.toDate().toUTCString()};var p=h.toDate;h.toDate=function(g){return g==="s"&&this.$offset?c(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():p.call(this)};var m=h.diff;h.diff=function(g,A,C){if(g&&this.$u===g.$u)return m.call(this,g,A,C);var S=this.local(),_=c(g).local();return m.call(S,_,A,C)}}}))})(sn)),sn.exports}var ui=hi();const fi=bt(ui);var on={exports:{}},mi=on.exports,ds;function gi(){return ds||(ds=1,(function(e,t){(function(a,s){e.exports=s()})(mi,(function(){var a={year:0,month:1,day:2,hour:3,minute:4,second:5},s={};return function(o,r,i){var c,h=function(f,p,m){m===void 0&&(m={});var g=new Date(f),A=(function(C,S){S===void 0&&(S={});var _=S.timeZoneName||"short",I=C+"|"+_,w=s[I];return w||(w=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:C,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:_}),s[I]=w),w})(p,m);return A.formatToParts(g)},d=function(f,p){for(var m=h(f,p),g=[],A=0;A<m.length;A+=1){var C=m[A],S=C.type,_=C.value,I=a[S];I>=0&&(g[I]=parseInt(_,10))}var w=g[3],T=w===24?0:w,U=g[0]+"-"+g[1]+"-"+g[2]+" "+T+":"+g[4]+":"+g[5]+":000",Q=+f;return(i.utc(U).valueOf()-(Q-=Q%1e3))/6e4},l=r.prototype;l.tz=function(f,p){f===void 0&&(f=c);var m,g=this.utcOffset(),A=this.toDate(),C=A.toLocaleString("en-US",{timeZone:f}),S=Math.round((A-new Date(C))/1e3/60),_=15*-Math.round(A.getTimezoneOffset()/15)-S;if(!Number(_))m=this.utcOffset(0,p);else if(m=i(C,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(_,!0),p){var I=m.utcOffset();m=m.add(g-I,"minute")}return m.$x.$timezone=f,m},l.offsetName=function(f){var p=this.$x.$timezone||i.tz.guess(),m=h(this.valueOf(),p,{timeZoneName:f}).find((function(g){return g.type.toLowerCase()==="timezonename"}));return m&&m.value};var u=l.startOf;l.startOf=function(f,p){if(!this.$x||!this.$x.$timezone)return u.call(this,f,p);var m=i(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return u.call(m,f,p).tz(this.$x.$timezone,!0)},i.tz=function(f,p,m){var g=m&&p,A=m||p||c,C=d(+i(),A);if(typeof f!="string")return i(f).tz(A);var S=(function(T,U,Q){var X=T-60*U*1e3,H=d(X,Q);if(U===H)return[X,U];var D=d(X-=60*(H-U)*1e3,Q);return H===D?[X,H]:[T-60*Math.min(H,D)*1e3,Math.max(H,D)]})(i.utc(f,g).valueOf(),C,A),_=S[0],I=S[1],w=i(_).utcOffset(I);return w.$x.$timezone=A,w},i.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},i.tz.setDefault=function(f){c=f}}}))})(on)),on.exports}var pi=gi();const Ai=bt(pi);Ie.extend(fi),Ie.extend(Ai),Ie.extend(ii);const rn=e=>e==="en"?"en":"es",Be=(e,t)=>{const{PUBLIC_LNG:a,DATE_TIMEZONE:s}=t||z(),o=rn(a??"es");return Ie.tz(e,s).locale(o).format("DD MMMM YYYY")},cn=e=>{const{PUBLIC_LNG:t,DATE_TIMEZONE:a}=z(),s=rn(t??"es");return Ie.tz(e,a).locale(s).format(s==="en"?"MMMM DD YYYY [•] HH:mm [hs]":"DD [de] MMMM YYYY [•] HH:mm [hs]")},hs=e=>{const{PUBLIC_LNG:t,DATE_TIMEZONE:a}=z(),s=rn(t??"es");return Ie.tz(e,a).locale(s).format("MM/DD/YYYY [•] HH:mm [HS]")},wi=e=>{const{PUBLIC_LNG:t,DATE_TIMEZONE:a}=z(),s=rn(t??"es");return Ie.tz(e,a).locale(s).format("dddd DD [de] MMMM YYYY")},Ct=(e,t)=>{if(!e)return"";const a=new Date(e),o=new Intl.DateTimeFormat("en-CA",{timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1}).formatToParts(a),r={};o.forEach(p=>{p.type!=="literal"&&(r[p.type]=p.value)});const i=new Date(a.toLocaleString("en-US",{timeZone:"UTC"})),h=(new Date(a.toLocaleString("en-US",{timeZone:t})).getTime()-i.getTime())/6e4,d=h>=0?"+":"-",l=p=>String(Math.floor(Math.abs(p))).padStart(2,"0"),u=l(h/60),f=l(h%60);return`${r.year}-${r.month}-${r.day}T${r.hour}:${r.minute}:${r.second}${d}${u}:${f}`},qe=(e,t=136)=>e&&e.length>t?`${e.substring(0,t)}...`:e;function ct(e){return e&&e.status==="fulfilled"?e.value.data:null}function us(e){return e&&e.status==="fulfilled"?e.value:null}const yi={url:"",target:"_self",canonical:!1,internal:""},bi={date:"",created:0,modified:0,firstpublish:0,lastpublish:0};function Ci(e){return e==null?"":typeof e=="string"?e:e.article??e.home??e.section??e.seo??""}const vt=(e,t,a,s)=>{const o=Ci(e?.main?.title),r=e?.main?.description??"";return{authors:e?.main?.author?[{firstname:"",lastname:"",fullname:typeof e.main.author=="string"?e.main.author:String(e.main.author??"Redacción"),image:{sizes:[],description:""},name:"",internaluser:!1}]:[],social:{description:"",images:{facebook:"",twitter:""},title:""},info:{date:{...bi,...e?.info?.date},link:e?.info?.link??yi},preview:{sizes:e?.main?.image?.sizes??[],description:e?.main?.image?.description??""},config:{showtime:t??!1,showsubtitle:a??!1,showauthor:!!(s&&e?.main?.author)},main:{title:{article:o,home:o,seo:o,section:o},subtitle:{rendered:r,striped:r},tags:[]}}};function Zn(e){if(!e||!e.body||!e.body.rendered)return[];const t=e?.body?.rendered,a=[],s=/<div[^>]*class=["'][^"']*ck-related-news[^"']*["'][^>]*>([\s\S]*?)<span\b[^>]*data-src=["']([^"']+)["'][^>]*>[\s\S]*?<\/span>/gi;let o;for(;(o=s.exec(t))!==null;){const r=o[2];r&&a.push([r])}return a}const fs=async(e,t)=>{const a=[];return e.forEach(r=>{r.forEach(i=>{const c=t({path:i.replaceAll("|","/"),imagesizes:"w:212,h:142,t:2;w:100,h:100,t:2",exclude:"config,keywords,authors,body,related,relatedexternal,social,external,hascontent,customfields,pixel"});c&&a.push(c)})}),(await Promise.allSettled(a)).map(r=>ct(r)?.data)},Bt=()=>{const{PUBLIC_ENV:e,PUBLIC_API_HOST:t,PUBLIC_ASSETS_URL:a}=z();return e=="local"?t:a&&a!=="false"?a:""},vi=()=>{const{PUBLIC_ENV:e,PUBLIC_API_FRONT:t}=z();return e==="local"?t:""},_i=e=>{if(!e?.preview?.length)return null;const t=e.preview;return t.find(a=>a.format==="1.91:1")??t[t.length-1]},ms=({schemaImage:e,socialImage:t,fallbackImage:a,prefix:s,defaultWidth:o,defaultHeight:r})=>e?.url?{url:s+e.url,width:e.width,height:e.height}:{url:s+(t??a??""),width:o,height:r},gs=(e,t,a)=>{if(!e)return{};const{PUBLIC_ASSETS_URL:s,PUBLIC_API_FRONT:o,DATE_TIMEZONE:r="America/Mexico_City"}=z(),i=Xn(e.keywords)??"",c=e?.preview?.sizes?e?.preview?.sizes[0]?.url:"",h=(s!=="false"?s:o)??"",d=_i(a),l=ms({schemaImage:d,socialImage:e?.social?.images?.facebook,fallbackImage:c,prefix:h,defaultWidth:t.landscapeLogo.width,defaultHeight:t.landscapeLogo.height}),u=ms({schemaImage:d,socialImage:e?.social?.images?.twitter,fallbackImage:c,prefix:h,defaultWidth:t.twitterSummaryCard.width,defaultHeight:t.twitterSummaryCard.height});return{title:(e?.main?.title?.seo??e?.main?.title?.article)+" | "+t.name,robots:"index, follow, max-image-preview:large",alternates:{types:{"application/rss+xml":(t.siteUrl??"")+"/rss/feed.xml"},canonical:e?.info?.link?.canonical},description:e?.main?.subtitle?.striped??"",news_keywords:i,keywords:i,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:[l],siteName:t.name.toLocaleUpperCase(),locale:t.lang.startsWith("en")?"en_US":t.lang==="es"?"es_LA":t.lang.replace("-","_")},twitter:{title:e?.main?.title?.article,card:"summary_large_image",site:t.siteUrl,description:e?.main?.subtitle?.striped??"",images:[u]},article:{published_time:Ct(e?.info?.date?.created,r),modified_time:Ct(e?.info?.date?.modified??e?.info?.date?.created,r),section:e?.info?.section?.name,author:e?.authors?.[0]?.fullname,tag:e?.keywords?.tags??[]}}},Xn=e=>!e||!e?.tags||e?.tags?.length===0?"":e?.tags?.map(t=>t.name).join(", ").replaceAll('"',"'").replaceAll("`","'"),ps=e=>{const t=e?.match(/^\/(?:[^/]+\/)?([^/]+)\/([^/]+\.html)$/);return t?{slug:t[1]??"",path:t[2]??""}:{slug:"",path:""}},As=e=>e.replaceAll("/","").replaceAll("_","").replace(".html",""),Si={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"},"openGraph.locale":{attr:"property",value:"og:locale"},"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"}},ws=e=>{const t=[];let a=0;const s=i=>t.push(i);return e.title&&typeof e.title=="string"&&s(n.jsx("title",{children:e.title},`title-${a++}`)),Object.entries(Si).forEach(([i,c])=>{const h=i.split(".").reduce((d,l)=>d?.[l],e);h&&s(n.jsx("meta",{[c.attr]:c.value,content:String(h)},`meta-${a++}`))}),(e.openGraph?.images?Array.isArray(e.openGraph.images)?e.openGraph.images:[e.openGraph.images]:[]).forEach(i=>{i&&(typeof i=="string"?s(n.jsx("meta",{property:"og:image",content:i},`og-img-${a++}`)):(i.url&&s(n.jsx("meta",{property:"og:image",content:i.url},`og-img-${a++}`)),i.width&&s(n.jsx("meta",{property:"og:image:width",content:String(i.width)},`og-img-w-${a++}`)),i.height&&s(n.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=>{i&&(typeof i=="string"?s(n.jsx("meta",{name:"twitter:image",content:i},`tw-img-${a++}`)):(i.url&&s(n.jsx("meta",{name:"twitter:image",content:i.url},`tw-img-${a++}`)),i.width&&s(n.jsx("meta",{name:"twitter:image:width",content:String(i.width)},`tw-img-w-${a++}`)),i.height&&s(n.jsx("meta",{name:"twitter:image:height",content:String(i.height)},`tw-img-h-${a++}`))))}),e.article&&(s(n.jsx("meta",{property:"article:published_time",content:e.article.published_time})),s(n.jsx("meta",{property:"article:modified_time",content:e.article.modified_time})),s(n.jsx("meta",{property:"article:section",content:e.article.section})),s(n.jsx("meta",{property:"article:author",content:e.article.author})),Array.isArray(e.article.tag)&&e.article.tag.length>0&&e.article.tag.forEach(i=>{s(n.jsx("meta",{property:"article:tag",content:i.name}))})),e.alternates?.canonical&&s(n.jsx("link",{rel:"canonical",href:String(e.alternates.canonical)},`link-${a++}`)),e.manifest&&s(n.jsx("link",{rel:"manifest",href:String(e.manifest)},`link-${a++}`)),e.alternates?.types&&Object.entries(e.alternates.types).forEach(([i,c])=>{typeof c=="string"&&s(n.jsx("link",{rel:"alternate",type:i,href:c},`alt-${a++}`))}),e.icons&&[...e.icons?.icon??[],...e.icons?.other??[]].forEach(c=>{c&&s(typeof c=="string"?n.jsx("link",{rel:"icon",href:c},`icon-${a++}`):n.jsx("link",{rel:c.rel||"icon",href:c.url,...c.type&&{type:c.type},...c.sizes&&{sizes:c.sizes}},`icon-${a++}`))}),e.other&&Object.entries(e.other).forEach(([i,c])=>{c&&s(n.jsx("meta",{name:i,content:String(c)},`other-${a++}`))}),t},ue=async e=>{const t=Bt()??"",a=e;return a?.startsWith("http")||a?.includes(t)||t===""?a:t+a},ln=(e,t)=>{const a=e||"";return t?a.replaceAll("[section_replace]",t["[section_replace]"]??"").replaceAll("[tag_replace]",t["[tag_replace]"]??"").replaceAll("[url_replace]",t["[url_replace]"]??"").replaceAll("[author_replace]",t["[author_replace]"]??"")||"":a||""},Ni=e=>{const t={};if(!e)return t;const a=/([^\s=]+)(?:\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s"'>]+)))?/g;let s;for(;s=a.exec(e);){const o=s[1],r=s[2]??s[3]??s[4]??!0;t[o]=r}return t},Ii=e=>{const t=e.match(/\bsrc\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s>]+))/i);return t?.[1]||t?.[2]||t?.[3]||null},ys=(e,t,a,s)=>{try{const o=Ni(e);return o.src?n.jsx("script",{"data-bs-name":s,...o},a):n.jsx("script",{...o,dangerouslySetInnerHTML:{__html:t}},a)}catch{const r=Ii(e);return r?n.jsx("script",{"data-bs-name":s,src:r,async:!0,defer:!0},a):null}},Ei=e=>{const t=/<script\b([^>]*)>([\s\S]*?)<\/script\s*>|<script\b([^>]*)\/?>/gi;return[...e.matchAll(t)]},Rn=e=>{const t=e.banners.find(o=>o.key===e.name);if(!t||!t.show)return null;const a=ln(t.value||"",e.replaces),s=Ei(a);return n.jsx(n.Fragment,{children:s.map((o,r)=>{const i=o[1]||o[3]||"",c=o[2]?.trim()||"";return ys(i,c,r,e.name)})})},bs=e=>{const t=e.banners.find(o=>o.key===e.name);if(!t||!t.show)return null;const s=ln(t.value||"",e.replaces).split(/(<script\b[\s\S]*?<\/script\s*>|<script\b[^>]*\/?>)/gi);return n.jsx(n.Fragment,{children:s.map((o,r)=>{const i=o.match(/<script\b([^>]*)>([\s\S]*?)<\/script\s*>|<script\b([^>]*)\/?>/i);if(i){const c=i[1]||i[3]||"",h=i[2]?.trim()||"";return ys(c,h,r,e.name)}return o.trim()?n.jsx("div",{dangerouslySetInnerHTML:{__html:o}},r):null})})},qt=(e,t,a)=>{let s=e.siteUrl;return t.forEach((o,r)=>{r>0&&(s+=`/${o}`)}),`${s}/page/${a+1}`},Pt=(e,t,a)=>{let s=e.siteUrl;return t.forEach((o,r)=>{r>0&&(s+=`/${o}`)}),`${s}/page/${a-1}`};function Ti(e){const t=e.length;return t>1&&e.charCodeAt(t-1)===47?e.slice(0,t-1):e}const Cs=()=>{const{PUBLIC_ASSETS_URL:e}=z();return e&&e!=="false"&&n.jsx("link",{rel:"preconnect",href:e,crossOrigin:"anonymous"})},{PUBLIC_ASSETS_URL:ea}=z(),ki=ea&&ea!=="false"?ea:"",ta=({images:e})=>n.jsx(n.Fragment,{children:e.map((t,a)=>t.href!==""&&n.jsx("link",{rel:"preload",href:ki+t.href,media:t.media??"",as:"image",fetchPriority:t.fetchPriority??"high"},a))}),vs=(e,t)=>{if(!e)return{};const{PUBLIC_API_FRONT:a}=z();return{title:e?.main?.title+" | "+t.name,robots:"index, follow, max-image-preview:large",alternates:{canonical:t.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:t.landscapeLogo.width,height:t.landscapeLogo.height}],siteName:t.name.toLocaleUpperCase(),locale:t.lang.startsWith("en")?"en_US":t.lang==="es"?"es_LA":t.lang.replace("-","_")},twitter:{title:e?.main?.title,card:"summary_large_image",site:t.siteUrl,description:e?.main.description??"",images:[{url:(a??"")+e?.main.image.sizes[0]?.url,width:t.twitterSummaryCard.width,height:t.twitterSummaryCard.height}]}}},Ui=e=>{let t="";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);t=`/listas/${Ie(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);t=`/liveblog/${Ie(o).format("YYYY/MM/DD")}/liveblog_${r}.html`}else{const s=e.params.news.replace(/\.html$/g,"").split("-");Array.isArray(s)&&(t=`/contenidos/${Ie(s[s.length-2]).format("YYYY/MM/DD")}/noticia_${s[s.length-1]}.html`)}return e.config.servicePrefix+t};function xi(e){const t=e.lastIndexOf("-"),a=t>=0?[e.slice(0,t),e.slice(t+1)]:[e],s=a[a.length-1]?.split("."),o=s&&s[0]?s[0]:"",r=o.substring(0,2),i=o.substring(2,10),c=o.substring(10);return{path:{vy:d=>`/videos/video-youtube/${Ie(i).format("YYYY/MM/DD")}/videoYouTube_${d}.lnk`,ve:d=>`/videos/video-embedded/${Ie(i).format("YYYY/MM/DD")}/videoEmbedded_${d}.lnk`,vf:d=>`/videos/video-flash/${Ie(i).format("YYYY/MM/DD")}/${a[0]}.${d}`}[r]?.(c)??"",op:r}}const tt=(e,t)=>{const a=e.name.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/ñ/g,"n").replace(/Ñ/g,"n").replace(/[^\w\s]/gi,"").replaceAll(" ","-").toLowerCase();return t?.tema?`/${t.tema}/${a}-t${e.id}`:`/${a}-t${e.id}`},Li=e=>{const{AssetsPrefix:t="",AssetsPath:a="src",isDev:s=!1}=e;return s?"src":t+a},Bi=async(e,t,a,s)=>{const{FETCH_TAG_BASED_RELATED_NEWS:o=!1,FETCH_SIZE_RELATED_NEWS:r=10}=z();if(!e)return[];try{if(e.related&&e.related?.automatic===!1&&e.related?.news&&e.related?.news.length>0)return(await a.getNewsListPath({path:e.related.news.map(c=>c.path).join(";"),exclude:"gallery,related,relatedexternal,external,customfields",imagesizes:s.md}))?.data?.data??[];{const i=e&&e.keywords&&e.keywords.tags&&e.keywords.tags[0];return((e?i&&o?await a.getNewsListAvanced({query:'claves:("'+e.keywords?.tags[0].name+'")',exclude:"gallery,related,relatedexternal,external,customfields",imagesizes:s.md,size:r+1}):await a.getNewsItemsRelated(t.split("/").join("|"),{size:r}):null)?.data?.data??[]).filter(d=>d.info.link.internal!==t.split("/").join("|"))}}catch(i){console.log(i)}},qi="https://recaptchaenterprise.googleapis.com/v1/projects",Pi=async({projectID:e,recaptchaKey:t,token:a,recaptchaAction:s,apiKey:o,userAgent:r,userIpAddress:i})=>{if(!e||!t||!a||!o)return console.warn("createAssessment: faltan parámetros requeridos"),null;const c=`${qi}/${e}/assessments?key=${o}`,h={event:{token:a,siteKey:t,expectedAction:s,...r&&{userAgent:r},...i&&{userIpAddress:i}}};try{const d=await fetch(c,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(h)});if(!d.ok)return console.error("createAssessment API error:",d.status,await d.text()),null;const l=await d.json();if(!l?.tokenProperties?.valid)return console.log(`CreateAssessment falló - token inválido: ${l?.tokenProperties?.invalidReason??"unknown"}`),null;if(l.tokenProperties.action!==s)return console.log("La acción en reCAPTCHA no coincide con la esperada:",s),null;const u=l?.riskAnalysis?.score;return u!==void 0&&(console.log("reCAPTCHA score:",u),l?.riskAnalysis?.reasons?.forEach(f=>console.log(f))),typeof u=="number"?u:null}catch(d){return console.error("createAssessment error:",d),null}};function na(e){const t={};for(const[a,s]of Object.entries(e)){const o=btoa(a).split("").reverse().join("");typeof s=="string"?t[o]=btoa(s).split("").reverse().join(""):t[o]=s}return t}function aa(e){const t={};for(const[a,s]of Object.entries(e)){const o=atob(a.split("").reverse().join(""));if(typeof s=="string")try{t[o]=atob(s.split("").reverse().join(""))}catch{t[o]=s}else t[o]=s}return t}const _s={prerender:[{where:{and:[{href_matches:"/*(-|-t|-lb)([0-9]{8})(-|)([0-9]{4,6}).html"},{not:{selector_matches:"[rel~=nofollow]"}}]},eagerness:"moderate"}]},Ss={prerender:[{where:{and:[{href_matches:"/*(-|-t|-lb)([0-9]{8})(-|)([0-9]{4,6}).html"},{not:{selector_matches:"[rel~=nofollow]"}}]},eagerness:"moderate"},{eagerness:"moderate",urls:["/"]}]},Oi={Home:_s,Common:Ss},Ns=({active:e,type:t,customSpeculation:a})=>e&&n.jsx("script",{type:"speculationrules",dangerouslySetInnerHTML:{__html:JSON.stringify(a??Oi[t])}}),dn=async(e,t,a)=>{if(a)return a.get(`/schemas${t}`,{params:e}).catch(s=>{console.log(`[/schemas${t}] Error: ${s.message}`)})},Mi={autor:"autor",seccion:"seccion",tema:"claves","ultimas-noticias":"seccion"},Is=async({config:e,axiosApi:t,pathname:a,ROUTE:s})=>{const{PUBLIC_PUBLICATION_ID:o=""}=z();let r=[];const i=a==="/"||a==="/index.html"?void 0:Ls(Bs[s]({pathname:a,config:e})),c=Mi[s]??void 0,h={newstype:e.newsType,publication:Number(o),...i&&c?{query:`${c}:('${i}')`}:{}};try{const d=await dn(h,"/news-list-summary",t);d?.data?.data?r=d.data.data:console.warn("getSchemas responded but did not contain expected data:",d)}catch(d){console.log("Error fetching schemas:",d)}return Object.keys(r).length>0&&n.jsx("script",{id:"webSiteItemListSchema",type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(r)}})};function hn(e){const{PUBLIC_ASSETS_URL:t}=z();if(!t||t==="false")return e;const a=t.replace(/\/+$/,""),s=/https?:\/\/[^/\s]+\/(arte|__export)\//g;return e.replace(s,(o,r)=>`${a}/${r}/`)}const Es=async({realPath:e,config:t,BASE_URL:a,axiosApi:s})=>{const{PUBLIC_SERVICE_PREFIX:o,PUBLIC_IS_SUB_PUBLICATION:r}=z();let i=[];try{const c=t.socialBlockLogo?.url?new URL(t.socialBlockLogo.url).pathname:void 0,h=t.landscapeLogo?.url?new URL(t.landscapeLogo.url).pathname:void 0,d={path:e,image:h,logo:c,url:t.siteUrl,name:t.name,logow:t.socialBlockLogo?.width,logoh:t.socialBlockLogo?.height,authorurl:a+"/autor/"},l=e.split("/")[1],u=l=="liveblogs"||l=="liveblog"?["/news","/news-breadcrumb","/news-liveblog"]:["/news","/news-breadcrumb"],f=t.paths.tema!==""?"/"+t.paths.tema:t.paths.tema,p=o!=="false"&&r!=="false"?"/"+o+f:f;i=(await Promise.all(u.map(async g=>{const A=g==="/news-breadcrumb"?{...d,prefixtag:p}:d;return await dn(A,g,s)}))).map(g=>g?.data?.data??[])}catch(c){console.log("Error fetching schemas:",c)}return i.map((c,h)=>n.jsx("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:hn(JSON.stringify(c))}},h))},Ts=({config:e,socials:t})=>{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(t).filter(s=>t[s]?.show).map(s=>t[s]?.url)};return(!e.description||e.description==="")&&delete a.description,n.jsx("script",{id:"WebsiteOrgListSchema",type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(a)}})},ks=({config:e})=>{const t={"@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 n.jsx("script",{id:"WebsiteListSchema",type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(t)}})},Us=async({realPath:e,config:t,axiosApi:a})=>{try{const s={path:e,image:t.landscapeLogo?.url?new URL(t.landscapeLogo.url).pathname:void 0,logo:t.socialBlockLogo?.url?new URL(t.socialBlockLogo.url).pathname:void 0,url:t.siteUrl,name:t.name,logow:t.socialBlockLogo?.width,logoh:t.socialBlockLogo?.height,authorurl:`${t.siteUrl}/autor/`},r=(await dn(s,"/videos",a))?.data.data;return r?n.jsx("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:hn(JSON.stringify(r))}}):void 0}catch(s){return console.error("Error fetching video schemas:",s),null}},xs=({config:e})=>{const t=`@font-face {
|
|
13
|
+
`}}),n.jsx("noscript",{children:n.jsx("iframe",{src:`https://www.googletagmanager.com/ns.html?id=${e}`,height:"0",width:"0",style:{display:"none",visibility:"hidden"}})})]})},ss=()=>{const{ANALYTICS_marfeel:e}=z();return e&&n.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},{})}();`}})},ti=({defaultRouteName:e})=>{const{CAPTCHA_KEY:t,CONFIG_comments:a=!1}=z();return t&&t!==""&&(e==="news"&&a||e==="anuncia"||e==="contacto")&&n.jsx("script",{src:`https://www.google.com/recaptcha/enterprise.js?render=${t}`,async:!0,defer:!0})};function bt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var tn={exports:{}},ni=tn.exports,os;function rs(){return os||(os=1,(function(e,t){(function(a,s){e.exports=s()})(ni,(function(){var a=1e3,s=6e4,o=36e5,r="millisecond",i="second",c="minute",h="hour",d="day",l="week",u="month",f="quarter",p="year",m="date",g="Invalid Date",A=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,C=/\[([^\]]+)]|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,S={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(q){var x=["th","st","nd","rd"],k=q%100;return"["+q+(x[(k-20)%10]||x[k]||x[0])+"]"}},_=function(q,x,k){var j=String(q);return!j||j.length>=x?q:""+Array(x+1-j.length).join(k)+q},I={s:_,z:function(q){var x=-q.utcOffset(),k=Math.abs(x),j=Math.floor(k/60),B=k%60;return(x<=0?"+":"-")+_(j,2,"0")+":"+_(B,2,"0")},m:function q(x,k){if(x.date()<k.date())return-q(k,x);var j=12*(k.year()-x.year())+(k.month()-x.month()),B=x.clone().add(j,u),V=k-B<0,y=x.clone().add(j+(V?-1:1),u);return+(-(j+(k-B)/(V?B-y:y-B))||0)},a:function(q){return q<0?Math.ceil(q)||0:Math.floor(q)},p:function(q){return{M:u,y:p,w:l,d,D:m,h,m:c,s:i,ms:r,Q:f}[q]||String(q||"").toLowerCase().replace(/s$/,"")},u:function(q){return q===void 0}},w="en",T={};T[w]=S;var U="$isDayjsObject",Q=function(q){return q instanceof Z||!(!q||!q[U])},X=function q(x,k,j){var B;if(!x)return w;if(typeof x=="string"){var V=x.toLowerCase();T[V]&&(B=V),k&&(T[V]=k,B=V);var y=x.split("-");if(!B&&y.length>1)return q(y[0])}else{var N=x.name;T[N]=x,B=N}return!j&&B&&(w=B),B||!j&&w},H=function(q,x){if(Q(q))return q.clone();var k=typeof x=="object"?x:{};return k.date=q,k.args=arguments,new Z(k)},D=I;D.l=X,D.i=Q,D.w=function(q,x){return H(q,{locale:x.$L,utc:x.$u,x:x.$x,$offset:x.$offset})};var Z=(function(){function q(k){this.$L=X(k.locale,null,!0),this.parse(k),this.$x=this.$x||k.x||{},this[U]=!0}var x=q.prototype;return x.parse=function(k){this.$d=(function(j){var B=j.date,V=j.utc;if(B===null)return new Date(NaN);if(D.u(B))return new Date;if(B instanceof Date)return new Date(B);if(typeof B=="string"&&!/Z$/i.test(B)){var y=B.match(A);if(y){var N=y[2]-1||0,O=(y[7]||"0").substring(0,3);return V?new Date(Date.UTC(y[1],N,y[3]||1,y[4]||0,y[5]||0,y[6]||0,O)):new Date(y[1],N,y[3]||1,y[4]||0,y[5]||0,y[6]||0,O)}}return new Date(B)})(k),this.init()},x.init=function(){var k=this.$d;this.$y=k.getFullYear(),this.$M=k.getMonth(),this.$D=k.getDate(),this.$W=k.getDay(),this.$H=k.getHours(),this.$m=k.getMinutes(),this.$s=k.getSeconds(),this.$ms=k.getMilliseconds()},x.$utils=function(){return D},x.isValid=function(){return this.$d.toString()!==g},x.isSame=function(k,j){var B=H(k);return this.startOf(j)<=B&&B<=this.endOf(j)},x.isAfter=function(k,j){return H(k)<this.startOf(j)},x.isBefore=function(k,j){return this.endOf(j)<H(k)},x.$g=function(k,j,B){return D.u(k)?this[j]:this.set(B,k)},x.unix=function(){return Math.floor(this.valueOf()/1e3)},x.valueOf=function(){return this.$d.getTime()},x.startOf=function(k,j){var B=this,V=!!D.u(j)||j,y=D.p(k),N=function(te,K){var de=D.w(B.$u?Date.UTC(B.$y,K,te):new Date(B.$y,K,te),B);return V?de:de.endOf(d)},O=function(te,K){return D.w(B.toDate()[te].apply(B.toDate("s"),(V?[0,0,0,0]:[23,59,59,999]).slice(K)),B)},G=this.$W,$=this.$M,F=this.$D,W="set"+(this.$u?"UTC":"");switch(y){case p:return V?N(1,0):N(31,11);case u:return V?N(1,$):N(0,$+1);case l:var Y=this.$locale().weekStart||0,ee=(G<Y?G+7:G)-Y;return N(V?F-ee:F+(6-ee),$);case d:case m:return O(W+"Hours",0);case h:return O(W+"Minutes",1);case c:return O(W+"Seconds",2);case i:return O(W+"Milliseconds",3);default:return this.clone()}},x.endOf=function(k){return this.startOf(k,!1)},x.$set=function(k,j){var B,V=D.p(k),y="set"+(this.$u?"UTC":""),N=(B={},B[d]=y+"Date",B[m]=y+"Date",B[u]=y+"Month",B[p]=y+"FullYear",B[h]=y+"Hours",B[c]=y+"Minutes",B[i]=y+"Seconds",B[r]=y+"Milliseconds",B)[V],O=V===d?this.$D+(j-this.$W):j;if(V===u||V===p){var G=this.clone().set(m,1);G.$d[N](O),G.init(),this.$d=G.set(m,Math.min(this.$D,G.daysInMonth())).$d}else N&&this.$d[N](O);return this.init(),this},x.set=function(k,j){return this.clone().$set(k,j)},x.get=function(k){return this[D.p(k)]()},x.add=function(k,j){var B,V=this;k=Number(k);var y=D.p(j),N=function($){var F=H(V);return D.w(F.date(F.date()+Math.round($*k)),V)};if(y===u)return this.set(u,this.$M+k);if(y===p)return this.set(p,this.$y+k);if(y===d)return N(1);if(y===l)return N(7);var O=(B={},B[c]=s,B[h]=o,B[i]=a,B)[y]||1,G=this.$d.getTime()+k*O;return D.w(G,this)},x.subtract=function(k,j){return this.add(-1*k,j)},x.format=function(k){var j=this,B=this.$locale();if(!this.isValid())return B.invalidDate||g;var V=k||"YYYY-MM-DDTHH:mm:ssZ",y=D.z(this),N=this.$H,O=this.$m,G=this.$M,$=B.weekdays,F=B.months,W=B.meridiem,Y=function(K,de,M,Ce){return K&&(K[de]||K(j,V))||M[de].slice(0,Ce)},ee=function(K){return D.s(N%12||12,K,"0")},te=W||function(K,de,M){var Ce=K<12?"AM":"PM";return M?Ce.toLowerCase():Ce};return V.replace(C,(function(K,de){return de||(function(M){switch(M){case"YY":return String(j.$y).slice(-2);case"YYYY":return D.s(j.$y,4,"0");case"M":return G+1;case"MM":return D.s(G+1,2,"0");case"MMM":return Y(B.monthsShort,G,F,3);case"MMMM":return Y(F,G);case"D":return j.$D;case"DD":return D.s(j.$D,2,"0");case"d":return String(j.$W);case"dd":return Y(B.weekdaysMin,j.$W,$,2);case"ddd":return Y(B.weekdaysShort,j.$W,$,3);case"dddd":return $[j.$W];case"H":return String(N);case"HH":return D.s(N,2,"0");case"h":return ee(1);case"hh":return ee(2);case"a":return te(N,O,!0);case"A":return te(N,O,!1);case"m":return String(O);case"mm":return D.s(O,2,"0");case"s":return String(j.$s);case"ss":return D.s(j.$s,2,"0");case"SSS":return D.s(j.$ms,3,"0");case"Z":return y}return null})(K)||y.replace(":","")}))},x.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},x.diff=function(k,j,B){var V,y=this,N=D.p(j),O=H(k),G=(O.utcOffset()-this.utcOffset())*s,$=this-O,F=function(){return D.m(y,O)};switch(N){case p:V=F()/12;break;case u:V=F();break;case f:V=F()/3;break;case l:V=($-G)/6048e5;break;case d:V=($-G)/864e5;break;case h:V=$/o;break;case c:V=$/s;break;case i:V=$/a;break;default:V=$}return B?V:D.a(V)},x.daysInMonth=function(){return this.endOf(u).$D},x.$locale=function(){return T[this.$L]},x.locale=function(k,j){if(!k)return this.$L;var B=this.clone(),V=X(k,j,!0);return V&&(B.$L=V),B},x.clone=function(){return D.w(this.$d,this)},x.toDate=function(){return new Date(this.valueOf())},x.toJSON=function(){return this.isValid()?this.toISOString():null},x.toISOString=function(){return this.$d.toISOString()},x.toString=function(){return this.$d.toUTCString()},q})(),ne=Z.prototype;return H.prototype=ne,[["$ms",r],["$s",i],["$m",c],["$H",h],["$W",d],["$M",u],["$y",p],["$D",m]].forEach((function(q){ne[q[1]]=function(x){return this.$g(x,q[0],q[1])}})),H.extend=function(q,x){return q.$i||(q(x,Z,H),q.$i=!0),H},H.locale=X,H.isDayjs=Q,H.unix=function(q){return H(1e3*q)},H.en=T[w],H.Ls=T,H.p={},H}))})(tn)),tn.exports}var ai=rs();const Ie=bt(ai);var nn={exports:{}},si=nn.exports,is;function oi(){return is||(is=1,(function(e,t){(function(a,s){e.exports=s()})(si,(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 c(d,l,u,f){return r.fromToBase(d,l,u,f)}o.en.relativeTime=i,r.fromToBase=function(d,l,u,f,p){for(var m,g,A,C=u.$locale().relativeTime||i,S=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.length,I=0;I<_;I+=1){var w=S[I];w.d&&(m=f?o(d).diff(u,w.d,!0):u.diff(d,w.d,!0));var T=(a.rounding||Math.round)(Math.abs(m));if(A=m>0,T<=w.r||!w.r){T<=1&&I>0&&(w=S[I-1]);var U=C[w.l];p&&(T=p(""+T)),g=typeof U=="string"?U.replace("%d",T):U(T,l,w.l,A);break}}if(l)return g;var Q=A?C.future:C.past;return typeof Q=="function"?Q(g):Q.replace("%s",g)},r.to=function(d,l){return c(d,l,this,!0)},r.from=function(d,l){return c(d,l,this)};var h=function(d){return d.$u?o.utc():o()};r.toNow=function(d){return this.to(h(this),d)},r.fromNow=function(d){return this.from(h(this),d)}}}))})(nn)),nn.exports}var ri=oi();const ii=bt(ri);var an={exports:{}},ci=an.exports,cs;function li(){return cs||(cs=1,(function(e,t){(function(a,s){e.exports=s(rs())})(ci,(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}))})(an)),an.exports}li();var sn={exports:{}},di=sn.exports,ls;function hi(){return ls||(ls=1,(function(e,t){(function(a,s){e.exports=s()})(di,(function(){var a="minute",s=/[+-]\d\d(?::?\d\d)?/g,o=/([+-]|\d\d)/g;return function(r,i,c){var h=i.prototype;c.utc=function(g){var A={date:g,utc:!0,args:arguments};return new i(A)},h.utc=function(g){var A=c(this.toDate(),{locale:this.$L,utc:!0});return g?A.add(this.utcOffset(),a):A},h.local=function(){return c(this.toDate(),{locale:this.$L,utc:!1})};var d=h.parse;h.parse=function(g){g.utc&&(this.$u=!0),this.$utils().u(g.$offset)||(this.$offset=g.$offset),d.call(this,g)};var l=h.init;h.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 l.call(this)};var u=h.utcOffset;h.utcOffset=function(g,A){var C=this.$utils().u;if(C(g))return this.$u?0:C(this.$offset)?u.call(this):this.$offset;if(typeof g=="string"&&(g=(function(w){w===void 0&&(w="");var T=w.match(s);if(!T)return null;var U=(""+T[0]).match(o)||["-",0,0],Q=U[0],X=60*+U[1]+ +U[2];return X===0?0:Q==="+"?X:-X})(g),g===null))return this;var S=Math.abs(g)<=16?60*g:g;if(S===0)return this.utc(A);var _=this.clone();if(A)return _.$offset=S,_.$u=!1,_;var I=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(_=this.local().add(S+I,a)).$offset=S,_.$x.$localOffset=I,_};var f=h.format;h.format=function(g){var A=g||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return f.call(this,A)},h.valueOf=function(){var g=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*g},h.isUTC=function(){return!!this.$u},h.toISOString=function(){return this.toDate().toISOString()},h.toString=function(){return this.toDate().toUTCString()};var p=h.toDate;h.toDate=function(g){return g==="s"&&this.$offset?c(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():p.call(this)};var m=h.diff;h.diff=function(g,A,C){if(g&&this.$u===g.$u)return m.call(this,g,A,C);var S=this.local(),_=c(g).local();return m.call(S,_,A,C)}}}))})(sn)),sn.exports}var ui=hi();const fi=bt(ui);var on={exports:{}},mi=on.exports,ds;function gi(){return ds||(ds=1,(function(e,t){(function(a,s){e.exports=s()})(mi,(function(){var a={year:0,month:1,day:2,hour:3,minute:4,second:5},s={};return function(o,r,i){var c,h=function(f,p,m){m===void 0&&(m={});var g=new Date(f),A=(function(C,S){S===void 0&&(S={});var _=S.timeZoneName||"short",I=C+"|"+_,w=s[I];return w||(w=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:C,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:_}),s[I]=w),w})(p,m);return A.formatToParts(g)},d=function(f,p){for(var m=h(f,p),g=[],A=0;A<m.length;A+=1){var C=m[A],S=C.type,_=C.value,I=a[S];I>=0&&(g[I]=parseInt(_,10))}var w=g[3],T=w===24?0:w,U=g[0]+"-"+g[1]+"-"+g[2]+" "+T+":"+g[4]+":"+g[5]+":000",Q=+f;return(i.utc(U).valueOf()-(Q-=Q%1e3))/6e4},l=r.prototype;l.tz=function(f,p){f===void 0&&(f=c);var m,g=this.utcOffset(),A=this.toDate(),C=A.toLocaleString("en-US",{timeZone:f}),S=Math.round((A-new Date(C))/1e3/60),_=15*-Math.round(A.getTimezoneOffset()/15)-S;if(!Number(_))m=this.utcOffset(0,p);else if(m=i(C,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(_,!0),p){var I=m.utcOffset();m=m.add(g-I,"minute")}return m.$x.$timezone=f,m},l.offsetName=function(f){var p=this.$x.$timezone||i.tz.guess(),m=h(this.valueOf(),p,{timeZoneName:f}).find((function(g){return g.type.toLowerCase()==="timezonename"}));return m&&m.value};var u=l.startOf;l.startOf=function(f,p){if(!this.$x||!this.$x.$timezone)return u.call(this,f,p);var m=i(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return u.call(m,f,p).tz(this.$x.$timezone,!0)},i.tz=function(f,p,m){var g=m&&p,A=m||p||c,C=d(+i(),A);if(typeof f!="string")return i(f).tz(A);var S=(function(T,U,Q){var X=T-60*U*1e3,H=d(X,Q);if(U===H)return[X,U];var D=d(X-=60*(H-U)*1e3,Q);return H===D?[X,H]:[T-60*Math.min(H,D)*1e3,Math.max(H,D)]})(i.utc(f,g).valueOf(),C,A),_=S[0],I=S[1],w=i(_).utcOffset(I);return w.$x.$timezone=A,w},i.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},i.tz.setDefault=function(f){c=f}}}))})(on)),on.exports}var pi=gi();const Ai=bt(pi);Ie.extend(fi),Ie.extend(Ai),Ie.extend(ii);const rn=e=>e==="en"?"en":"es",Be=(e,t)=>{const{PUBLIC_LNG:a,DATE_TIMEZONE:s}=t||z(),o=rn(a??"es");return Ie.tz(e,s).locale(o).format("DD MMMM YYYY")},cn=e=>{const{PUBLIC_LNG:t,DATE_TIMEZONE:a}=z(),s=rn(t??"es");return Ie.tz(e,a).locale(s).format(s==="en"?"MMMM DD YYYY [•] HH:mm [hs]":"DD [de] MMMM YYYY [•] HH:mm [hs]")},hs=e=>{const{PUBLIC_LNG:t,DATE_TIMEZONE:a}=z(),s=rn(t??"es");return Ie.tz(e,a).locale(s).format("MM/DD/YYYY [•] HH:mm [HS]")},wi=e=>{const{PUBLIC_LNG:t,DATE_TIMEZONE:a}=z(),s=rn(t??"es");return Ie.tz(e,a).locale(s).format("dddd DD [de] MMMM YYYY")},Ct=(e,t)=>{if(!e)return"";const a=new Date(e),o=new Intl.DateTimeFormat("en-CA",{timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1}).formatToParts(a),r={};o.forEach(p=>{p.type!=="literal"&&(r[p.type]=p.value)});const i=new Date(a.toLocaleString("en-US",{timeZone:"UTC"})),h=(new Date(a.toLocaleString("en-US",{timeZone:t})).getTime()-i.getTime())/6e4,d=h>=0?"+":"-",l=p=>String(Math.floor(Math.abs(p))).padStart(2,"0"),u=l(h/60),f=l(h%60);return`${r.year}-${r.month}-${r.day}T${r.hour}:${r.minute}:${r.second}${d}${u}:${f}`},qe=(e,t=136)=>e&&e.length>t?`${e.substring(0,t)}...`:e;function ct(e){return e&&e.status==="fulfilled"?e.value.data:null}function us(e){return e&&e.status==="fulfilled"?e.value:null}const yi={url:"",target:"_self",canonical:!1,internal:""},bi={date:"",created:0,modified:0,firstpublish:0,lastpublish:0};function Ci(e){return e==null?"":typeof e=="string"?e:e.article??e.home??e.section??e.seo??""}const vt=(e,t,a,s)=>{const o=Ci(e?.main?.title),r=e?.main?.description??"";return{authors:e?.main?.author?[{firstname:"",lastname:"",fullname:typeof e.main.author=="string"?e.main.author:String(e.main.author??"Redacción"),image:{sizes:[],description:""},name:"",internaluser:!1}]:[],social:{description:"",images:{facebook:"",twitter:""},title:""},info:{date:{...bi,...e?.info?.date},link:e?.info?.link??yi},preview:{sizes:e?.main?.image?.sizes??[],description:e?.main?.image?.description??""},config:{showtime:t??!1,showsubtitle:a??!1,showauthor:!!(s&&e?.main?.author)},main:{title:{article:o,home:o,seo:o,section:o},subtitle:{rendered:r,striped:r},tags:[]}}};function Zn(e){if(!e||!e.body||!e.body.rendered)return[];const t=e?.body?.rendered,a=[],s=/<div[^>]*class=["'][^"']*ck-related-news[^"']*["'][^>]*>([\s\S]*?)<span\b[^>]*data-src=["']([^"']+)["'][^>]*>[\s\S]*?<\/span>/gi;let o;for(;(o=s.exec(t))!==null;){const r=o[2];r&&a.push([r])}return a}const fs=async(e,t)=>{const a=[];return e.forEach(r=>{r.forEach(i=>{const c=t({path:i.replaceAll("|","/"),imagesizes:"w:212,h:142,t:2;w:100,h:100,t:2",exclude:"config,keywords,authors,body,related,relatedexternal,social,external,hascontent,customfields,pixel"});c&&a.push(c)})}),(await Promise.allSettled(a)).map(r=>ct(r)?.data)},Bt=()=>{const{PUBLIC_ENV:e,PUBLIC_API_HOST:t,PUBLIC_ASSETS_URL:a}=z();return e=="local"?t:a&&a!=="false"?a:""},vi=()=>{const{PUBLIC_ENV:e,PUBLIC_API_FRONT:t}=z();return e==="local"?t:""},_i=e=>{if(!e?.preview?.length)return null;const t=e.preview;return t.find(a=>a.format==="1.91:1")??t[t.length-1]},ms=({schemaImage:e,socialImage:t,fallbackImage:a,prefix:s,defaultWidth:o,defaultHeight:r})=>e?.url?{url:s+e.url,width:e.width,height:e.height}:{url:s+(t??a??""),width:o,height:r},gs=(e,t,a)=>{if(!e)return{};const{PUBLIC_ASSETS_URL:s,PUBLIC_API_FRONT:o,DATE_TIMEZONE:r="America/Mexico_City"}=z(),i=Xn(e.keywords)??"",c=e?.preview?.sizes?e?.preview?.sizes[0]?.url:"",h=(s!=="false"?s:o)??"",d=_i(a),l=ms({schemaImage:d,socialImage:e?.social?.images?.facebook,fallbackImage:c,prefix:h,defaultWidth:t.landscapeLogo.width,defaultHeight:t.landscapeLogo.height}),u=ms({schemaImage:d,socialImage:e?.social?.images?.twitter,fallbackImage:c,prefix:h,defaultWidth:t.twitterSummaryCard.width,defaultHeight:t.twitterSummaryCard.height});return{title:(e?.main?.title?.seo??e?.main?.title?.article)+" | "+t.name,robots:"index, follow, max-image-preview:large",alternates:{types:{"application/rss+xml":(t.siteUrl??"")+"/rss/feed.xml"},canonical:e?.info?.link?.canonical},description:e?.main?.subtitle?.striped??"",news_keywords:i,keywords:i,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:[l],siteName:t.name.toLocaleUpperCase(),locale:t.lang.startsWith("en")?"en_US":t.lang==="es"?"es_LA":t.lang.replace("-","_")},twitter:{title:e?.main?.title?.article,card:"summary_large_image",site:t.siteUrl,description:e?.main?.subtitle?.striped??"",images:[u]},article:{published_time:Ct(e?.info?.date?.firstpublish,r),modified_time:Ct(e?.info?.date?.lastpublish??e?.info?.date?.firstpublish,r),section:e?.info?.section?.name,author:e?.authors?.[0]?.fullname,tag:e?.keywords?.tags??[]}}},Xn=e=>!e||!e?.tags||e?.tags?.length===0?"":e?.tags?.map(t=>t.name).join(", ").replaceAll('"',"'").replaceAll("`","'"),ps=e=>{const t=e?.match(/^\/(?:[^/]+\/)?([^/]+)\/([^/]+\.html)$/);return t?{slug:t[1]??"",path:t[2]??""}:{slug:"",path:""}},As=e=>e.replaceAll("/","").replaceAll("_","").replace(".html",""),Si={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"},"openGraph.locale":{attr:"property",value:"og:locale"},"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"}},ws=e=>{const t=[];let a=0;const s=i=>t.push(i);return e.title&&typeof e.title=="string"&&s(n.jsx("title",{children:e.title},`title-${a++}`)),Object.entries(Si).forEach(([i,c])=>{const h=i.split(".").reduce((d,l)=>d?.[l],e);h&&s(n.jsx("meta",{[c.attr]:c.value,content:String(h)},`meta-${a++}`))}),(e.openGraph?.images?Array.isArray(e.openGraph.images)?e.openGraph.images:[e.openGraph.images]:[]).forEach(i=>{i&&(typeof i=="string"?s(n.jsx("meta",{property:"og:image",content:i},`og-img-${a++}`)):(i.url&&s(n.jsx("meta",{property:"og:image",content:i.url},`og-img-${a++}`)),i.width&&s(n.jsx("meta",{property:"og:image:width",content:String(i.width)},`og-img-w-${a++}`)),i.height&&s(n.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=>{i&&(typeof i=="string"?s(n.jsx("meta",{name:"twitter:image",content:i},`tw-img-${a++}`)):(i.url&&s(n.jsx("meta",{name:"twitter:image",content:i.url},`tw-img-${a++}`)),i.width&&s(n.jsx("meta",{name:"twitter:image:width",content:String(i.width)},`tw-img-w-${a++}`)),i.height&&s(n.jsx("meta",{name:"twitter:image:height",content:String(i.height)},`tw-img-h-${a++}`))))}),e.article&&(s(n.jsx("meta",{property:"article:published_time",content:e.article.published_time})),s(n.jsx("meta",{property:"article:modified_time",content:e.article.modified_time})),s(n.jsx("meta",{property:"article:section",content:e.article.section})),s(n.jsx("meta",{property:"article:author",content:e.article.author})),Array.isArray(e.article.tag)&&e.article.tag.length>0&&e.article.tag.forEach(i=>{s(n.jsx("meta",{property:"article:tag",content:i.name}))})),e.alternates?.canonical&&s(n.jsx("link",{rel:"canonical",href:String(e.alternates.canonical)},`link-${a++}`)),e.manifest&&s(n.jsx("link",{rel:"manifest",href:String(e.manifest)},`link-${a++}`)),e.alternates?.types&&Object.entries(e.alternates.types).forEach(([i,c])=>{typeof c=="string"&&s(n.jsx("link",{rel:"alternate",type:i,href:c},`alt-${a++}`))}),e.icons&&[...e.icons?.icon??[],...e.icons?.other??[]].forEach(c=>{c&&s(typeof c=="string"?n.jsx("link",{rel:"icon",href:c},`icon-${a++}`):n.jsx("link",{rel:c.rel||"icon",href:c.url,...c.type&&{type:c.type},...c.sizes&&{sizes:c.sizes}},`icon-${a++}`))}),e.other&&Object.entries(e.other).forEach(([i,c])=>{c&&s(n.jsx("meta",{name:i,content:String(c)},`other-${a++}`))}),t},ue=async e=>{const t=Bt()??"",a=e;return a?.startsWith("http")||a?.includes(t)||t===""?a:t+a},ln=(e,t)=>{const a=e||"";return t?a.replaceAll("[section_replace]",t["[section_replace]"]??"").replaceAll("[tag_replace]",t["[tag_replace]"]??"").replaceAll("[url_replace]",t["[url_replace]"]??"").replaceAll("[author_replace]",t["[author_replace]"]??"")||"":a||""},Ni=e=>{const t={};if(!e)return t;const a=/([^\s=]+)(?:\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s"'>]+)))?/g;let s;for(;s=a.exec(e);){const o=s[1],r=s[2]??s[3]??s[4]??!0;t[o]=r}return t},Ii=e=>{const t=e.match(/\bsrc\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s>]+))/i);return t?.[1]||t?.[2]||t?.[3]||null},ys=(e,t,a,s)=>{try{const o=Ni(e);return o.src?n.jsx("script",{"data-bs-name":s,...o},a):n.jsx("script",{...o,dangerouslySetInnerHTML:{__html:t}},a)}catch{const r=Ii(e);return r?n.jsx("script",{"data-bs-name":s,src:r,async:!0,defer:!0},a):null}},Ei=e=>{const t=/<script\b([^>]*)>([\s\S]*?)<\/script\s*>|<script\b([^>]*)\/?>/gi;return[...e.matchAll(t)]},Rn=e=>{const t=e.banners.find(o=>o.key===e.name);if(!t||!t.show)return null;const a=ln(t.value||"",e.replaces),s=Ei(a);return n.jsx(n.Fragment,{children:s.map((o,r)=>{const i=o[1]||o[3]||"",c=o[2]?.trim()||"";return ys(i,c,r,e.name)})})},bs=e=>{const t=e.banners.find(o=>o.key===e.name);if(!t||!t.show)return null;const s=ln(t.value||"",e.replaces).split(/(<script\b[\s\S]*?<\/script\s*>|<script\b[^>]*\/?>)/gi);return n.jsx(n.Fragment,{children:s.map((o,r)=>{const i=o.match(/<script\b([^>]*)>([\s\S]*?)<\/script\s*>|<script\b([^>]*)\/?>/i);if(i){const c=i[1]||i[3]||"",h=i[2]?.trim()||"";return ys(c,h,r,e.name)}return o.trim()?n.jsx("div",{dangerouslySetInnerHTML:{__html:o}},r):null})})},qt=(e,t,a)=>{let s=e.siteUrl;return t.forEach((o,r)=>{r>0&&(s+=`/${o}`)}),`${s}/page/${a+1}`},Pt=(e,t,a)=>{let s=e.siteUrl;return t.forEach((o,r)=>{r>0&&(s+=`/${o}`)}),`${s}/page/${a-1}`};function Ti(e){const t=e.length;return t>1&&e.charCodeAt(t-1)===47?e.slice(0,t-1):e}const Cs=()=>{const{PUBLIC_ASSETS_URL:e}=z();return e&&e!=="false"&&n.jsx("link",{rel:"preconnect",href:e,crossOrigin:"anonymous"})},{PUBLIC_ASSETS_URL:ea}=z(),ki=ea&&ea!=="false"?ea:"",ta=({images:e})=>n.jsx(n.Fragment,{children:e.map((t,a)=>t.href!==""&&n.jsx("link",{rel:"preload",href:ki+t.href,media:t.media??"",as:"image",fetchPriority:t.fetchPriority??"high"},a))}),vs=(e,t)=>{if(!e)return{};const{PUBLIC_API_FRONT:a}=z();return{title:e?.main?.title+" | "+t.name,robots:"index, follow, max-image-preview:large",alternates:{canonical:t.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:t.landscapeLogo.width,height:t.landscapeLogo.height}],siteName:t.name.toLocaleUpperCase(),locale:t.lang.startsWith("en")?"en_US":t.lang==="es"?"es_LA":t.lang.replace("-","_")},twitter:{title:e?.main?.title,card:"summary_large_image",site:t.siteUrl,description:e?.main.description??"",images:[{url:(a??"")+e?.main.image.sizes[0]?.url,width:t.twitterSummaryCard.width,height:t.twitterSummaryCard.height}]}}},Ui=e=>{let t="";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);t=`/listas/${Ie(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);t=`/liveblog/${Ie(o).format("YYYY/MM/DD")}/liveblog_${r}.html`}else{const s=e.params.news.replace(/\.html$/g,"").split("-");Array.isArray(s)&&(t=`/contenidos/${Ie(s[s.length-2]).format("YYYY/MM/DD")}/noticia_${s[s.length-1]}.html`)}return e.config.servicePrefix+t};function xi(e){const t=e.lastIndexOf("-"),a=t>=0?[e.slice(0,t),e.slice(t+1)]:[e],s=a[a.length-1]?.split("."),o=s&&s[0]?s[0]:"",r=o.substring(0,2),i=o.substring(2,10),c=o.substring(10);return{path:{vy:d=>`/videos/video-youtube/${Ie(i).format("YYYY/MM/DD")}/videoYouTube_${d}.lnk`,ve:d=>`/videos/video-embedded/${Ie(i).format("YYYY/MM/DD")}/videoEmbedded_${d}.lnk`,vf:d=>`/videos/video-flash/${Ie(i).format("YYYY/MM/DD")}/${a[0]}.${d}`}[r]?.(c)??"",op:r}}const tt=(e,t)=>{const a=e.name.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/ñ/g,"n").replace(/Ñ/g,"n").replace(/[^\w\s]/gi,"").replaceAll(" ","-").toLowerCase();return t?.tema?`/${t.tema}/${a}-t${e.id}`:`/${a}-t${e.id}`},Li=e=>{const{AssetsPrefix:t="",AssetsPath:a="src",isDev:s=!1}=e;return s?"src":t+a},Bi=async(e,t,a,s)=>{const{FETCH_TAG_BASED_RELATED_NEWS:o=!1,FETCH_SIZE_RELATED_NEWS:r=10}=z();if(!e)return[];try{if(e.related&&e.related?.automatic===!1&&e.related?.news&&e.related?.news.length>0)return(await a.getNewsListPath({path:e.related.news.map(c=>c.path).join(";"),exclude:"gallery,related,relatedexternal,external,customfields",imagesizes:s.md}))?.data?.data??[];{const i=e&&e.keywords&&e.keywords.tags&&e.keywords.tags[0];return((e?i&&o?await a.getNewsListAvanced({query:'claves:("'+e.keywords?.tags[0].name+'")',exclude:"gallery,related,relatedexternal,external,customfields",imagesizes:s.md,size:r+1}):await a.getNewsItemsRelated(t.split("/").join("|"),{size:r}):null)?.data?.data??[]).filter(d=>d.info.link.internal!==t.split("/").join("|"))}}catch(i){console.log(i)}},qi="https://recaptchaenterprise.googleapis.com/v1/projects",Pi=async({projectID:e,recaptchaKey:t,token:a,recaptchaAction:s,apiKey:o,userAgent:r,userIpAddress:i})=>{if(!e||!t||!a||!o)return console.warn("createAssessment: faltan parámetros requeridos"),null;const c=`${qi}/${e}/assessments?key=${o}`,h={event:{token:a,siteKey:t,expectedAction:s,...r&&{userAgent:r},...i&&{userIpAddress:i}}};try{const d=await fetch(c,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(h)});if(!d.ok)return console.error("createAssessment API error:",d.status,await d.text()),null;const l=await d.json();if(!l?.tokenProperties?.valid)return console.log(`CreateAssessment falló - token inválido: ${l?.tokenProperties?.invalidReason??"unknown"}`),null;if(l.tokenProperties.action!==s)return console.log("La acción en reCAPTCHA no coincide con la esperada:",s),null;const u=l?.riskAnalysis?.score;return u!==void 0&&(console.log("reCAPTCHA score:",u),l?.riskAnalysis?.reasons?.forEach(f=>console.log(f))),typeof u=="number"?u:null}catch(d){return console.error("createAssessment error:",d),null}};function na(e){const t={};for(const[a,s]of Object.entries(e)){const o=btoa(a).split("").reverse().join("");typeof s=="string"?t[o]=btoa(s).split("").reverse().join(""):t[o]=s}return t}function aa(e){const t={};for(const[a,s]of Object.entries(e)){const o=atob(a.split("").reverse().join(""));if(typeof s=="string")try{t[o]=atob(s.split("").reverse().join(""))}catch{t[o]=s}else t[o]=s}return t}const _s={prerender:[{where:{and:[{href_matches:"/*(-|-t|-lb)([0-9]{8})(-|)([0-9]{4,6}).html"},{not:{selector_matches:"[rel~=nofollow]"}}]},eagerness:"moderate"}]},Ss={prerender:[{where:{and:[{href_matches:"/*(-|-t|-lb)([0-9]{8})(-|)([0-9]{4,6}).html"},{not:{selector_matches:"[rel~=nofollow]"}}]},eagerness:"moderate"},{eagerness:"moderate",urls:["/"]}]},Oi={Home:_s,Common:Ss},Ns=({active:e,type:t,customSpeculation:a})=>e&&n.jsx("script",{type:"speculationrules",dangerouslySetInnerHTML:{__html:JSON.stringify(a??Oi[t])}}),dn=async(e,t,a)=>{if(a)return a.get(`/schemas${t}`,{params:e}).catch(s=>{console.log(`[/schemas${t}] Error: ${s.message}`)})},Mi={autor:"autor",seccion:"seccion",tema:"claves","ultimas-noticias":"seccion"},Is=async({config:e,axiosApi:t,pathname:a,ROUTE:s})=>{const{PUBLIC_PUBLICATION_ID:o=""}=z();let r=[];const i=a==="/"||a==="/index.html"?void 0:Ls(Bs[s]({pathname:a,config:e})),c=Mi[s]??void 0,h={newstype:e.newsType,publication:Number(o),...i&&c?{query:`${c}:('${i}')`}:{}};try{const d=await dn(h,"/news-list-summary",t);d?.data?.data?r=d.data.data:console.warn("getSchemas responded but did not contain expected data:",d)}catch(d){console.log("Error fetching schemas:",d)}return Object.keys(r).length>0&&n.jsx("script",{id:"webSiteItemListSchema",type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(r)}})};function hn(e){const{PUBLIC_ASSETS_URL:t}=z();if(!t||t==="false")return e;const a=t.replace(/\/+$/,""),s=/https?:\/\/[^/\s]+\/(arte|__export)\//g;return e.replace(s,(o,r)=>`${a}/${r}/`)}const Es=async({realPath:e,config:t,BASE_URL:a,axiosApi:s})=>{const{PUBLIC_SERVICE_PREFIX:o,PUBLIC_IS_SUB_PUBLICATION:r}=z();let i=[];try{const c=t.socialBlockLogo?.url?new URL(t.socialBlockLogo.url).pathname:void 0,h=t.landscapeLogo?.url?new URL(t.landscapeLogo.url).pathname:void 0,d={path:e,image:h,logo:c,url:t.siteUrl,name:t.name,logow:t.socialBlockLogo?.width,logoh:t.socialBlockLogo?.height,authorurl:a+"/autor/"},l=e.split("/")[1],u=l=="liveblogs"||l=="liveblog"?["/news","/news-breadcrumb","/news-liveblog"]:["/news","/news-breadcrumb"],f=t.paths.tema!==""?"/"+t.paths.tema:t.paths.tema,p=o!=="false"&&r!=="false"?"/"+o+f:f;i=(await Promise.all(u.map(async g=>{const A=g==="/news-breadcrumb"?{...d,prefixtag:p}:d;return await dn(A,g,s)}))).map(g=>g?.data?.data??[])}catch(c){console.log("Error fetching schemas:",c)}return i.map((c,h)=>n.jsx("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:hn(JSON.stringify(c))}},h))},Ts=({config:e,socials:t})=>{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(t).filter(s=>t[s]?.show).map(s=>t[s]?.url)};return(!e.description||e.description==="")&&delete a.description,n.jsx("script",{id:"WebsiteOrgListSchema",type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(a)}})},ks=({config:e})=>{const t={"@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 n.jsx("script",{id:"WebsiteListSchema",type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(t)}})},Us=async({realPath:e,config:t,axiosApi:a})=>{try{const s={path:e,image:t.landscapeLogo?.url?new URL(t.landscapeLogo.url).pathname:void 0,logo:t.socialBlockLogo?.url?new URL(t.socialBlockLogo.url).pathname:void 0,url:t.siteUrl,name:t.name,logow:t.socialBlockLogo?.width,logoh:t.socialBlockLogo?.height,authorurl:`${t.siteUrl}/autor/`},r=(await dn(s,"/videos",a))?.data.data;return r?n.jsx("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:hn(JSON.stringify(r))}}):void 0}catch(s){return console.error("Error fetching video schemas:",s),null}},xs=({config:e})=>{const t=`@font-face {
|
|
14
14
|
font-family: '${e.fontName}';
|
|
15
15
|
font-style: normal;
|
|
16
16
|
font-weight: ${e.fontWeight};
|
|
@@ -258,4 +258,4 @@ j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
|
|
|
258
258
|
<figcaption>${U}</figcaption>
|
|
259
259
|
</figure>
|
|
260
260
|
`}}catch(C){console.error("insertVideos error for",p,C),A=""}else A=f;s=u,a+=A,o.lastIndex=u}return a+=e.slice(s),a=Vd(a),a}async function Xd(e){const{news:t,banners:a,newsRelatedResponses:s,newsRelatedListResponses:o,slug:r,itemList:i,socials:c,getVideos:h,commonServices:d}=e;let l=t?.body?.rendered??"";l=l.replace(/<script[^>]*src=["']https:\/\/platform\.twitter\.com\/widgets\.js["'][^>]*><\/script>/gi,""),l=l.replace(/ /g,""),l=Yd(l,a),l=Kd(l),l=await Wd(l),l=await Jd(l,e.texts,s),l=await Zd(l,h),l=Fd(l),l=zd(l);const u=t.main.sources??[],{NEWS_JOURNALIST_COMPONENT:f,CONFIG_blockDefaultTwitterHydrator:p}=z(),m=t.config.articlepreview===pt.fotoGaleria&&t.hascontent?.hasgalleryimages;return n.jsxs("div",{className:$n.content,children:[r!=="liveblogs"&&e.showHeaderImage?m?n.jsx(fr,{commonServices:d,newsformated:t,internal:t.info.link.internal}):n.jsx(Do,{preview:t.preview}):null,n.jsx(we,{banners:a,name:"block_1"}),n.jsx("div",{className:$n.journalistArticleContent,children:f==="op1"?n.jsx(Ld,{autorIcon:e.autorIcon,socials:c,news:t,texts:e.texts,noteShare:e.noteShare,paths:e.paths}):n.jsx(Hd,{autorIcon:e.autorIcon,socials:c,news:t,texts:e.texts,noteShare:e.noteShare,paths:e.paths})}),n.jsx(qd,{summary:t.main.summary}),n.jsx("main",{className:$n.contentNews,suppressHydrationWarning:!0,id:"content-news-section",dangerouslySetInnerHTML:{__html:l}}),n.jsx(kd,{texts:e.texts,itemList:i,banners:a,slug:r,getVideos:h,newsRelatedListResponses:o??[]}),u.length>0&&n.jsxs("div",{className:$n.noteSource,children:[n.jsx(Od,{}),n.jsx("p",{children:String(e.texts.noteSource??"")+(u.length===1?"":"s")+": "+u.map(g=>g.name).join(", ")})]}),!p&&t&&t.hascontent&&t.hascontent.hasembeddedtwitter&&n.jsx("script",{async:!0,defer:!0,src:"https://platform.twitter.com/widgets.js"})]})}const Rd=e=>{const{content:t,title:a,slot_id:s}=e,o=e.slot_id&&e.slot_id!=="Nota_1";return t&&t.length!==0&&n.jsx(ge,{title:a,titleUrl:e.titleUrl,children:n.jsx(ut,{slot_id:s,cardWidth:200,children:t.map((r,i)=>{const c={...r,main:{...r.main,title:{...r.main.title,section:o?r.main.title.home:r.main.title.section}}};return n.jsx(Ft,{...c,titleGradient:!0,paths:e.paths},i)})})})},e1=e=>{const{content:t,title:a,slot_id:s}=e,o=e.slot_id&&e.slot_id!=="Nota_1";return t&&t.length!==0&&n.jsx(ge,{title:a,titleUrl:e.titleUrl,children:n.jsx(ut,{slot_id:s,cardWidth:343,cardGap:32,visibleItems:3,children:t.map((r,i)=>{const c={...r,main:{...r.main,title:{...r.main.title,section:o?r.main.title.home:r.main.title.section}}};return n.jsx(Ft,{...c,titleGradient:!0,paths:e.paths},i)})})})},t1=e=>{const{content:t,title:a,slot_id:s}=e,o=e.slot_id&&e.slot_id!=="Nota_1";return t&&t.length!==0&&n.jsx(ge,{title:a,titleUrl:e.titleUrl,children:n.jsx(ut,{slot_id:s,fullPageWidth:!0,visibleItems:1,pagination:!0,cardGap:0,children:t.map((r,i)=>{const c={...r,main:{...r.main,title:{...r.main.title,section:o?r.main.title.home:r.main.title.section}}};return E.createElement(Ft,{...c,key:i,titleGradient:!0,paths:e.paths})})})})},jn=e=>{const t={};for(const a in e)a.startsWith("--")&&(t[a]=e[a]);return t},At={headerSection:"_headerSection_nhjex_1",title:"_title_nhjex_21",subtitle:"_subtitle_nhjex_45",newsContent:"_newsContent_nhjex_71",containerCards:"_containerCards_nhjex_87",image:"_image_nhjex_99",blockHeadContainer:"_blockHeadContainer_nhjex_111"},n1=e=>{const{content:t,title:a,isVideo:s}=e;if(!t||t.length===0)return;const o=t[0],r=t.slice(1),i=e.slot_id&&e.slot_id!=="Nota_1";return o&&r&&n.jsxs(ge,{title:a,titleUrl:e.titleUrl,children:[n.jsx("div",{className:At.headerSection,children:n.jsxs("a",{style:{"--heightImageOverwriteMobile":"200%"},className:At.image,href:o?.info?.link?.url,target:o?.info?.link?.target,children:[n.jsxs("div",{className:At.blockHeadContainer,children:[n.jsx("p",{className:At.title,children:o?.main?.title.home}),o?.main?.subtitle?.rendered&&n.jsx("p",{className:At.subtitle,children:o?.main?.subtitle?.striped})]}),n.jsx(Ee,{preview:o.preview})]})}),n.jsxs("div",{className:At.containerCards,children:[n.jsx("div",{className:"banner-context",style:{order:1},children:e.banner}),n.jsx("div",{className:At.newsContent,children:Array.isArray(r)&&r.map((c,h)=>{const d={...c,main:{...c.main,title:{...c.main.title,section:i?c.main.title.home:c.main.title.section}}};return n.jsx("div",{style:{order:h},children:n.jsx(Ge,{...d,isVideo:s,paths:e.paths})},h)})})]})]})},a1=({printEdition:e,title:t})=>e&&n.jsx(ge,{title:t,children:n.jsx("div",{className:"iframe-container",dangerouslySetInnerHTML:{__html:e||""}})}),yr={banner:e=>n.jsx(we,{...e,name:e.slot_id.replace("Home","block")}),readest:e=>n.jsx(Sn,{...e}),"Modulo 1x3":e=>n.jsx(xa,{...e}),"Modulo 1x4":e=>n.jsx(sr,{...e}),"Modulo 1x5":e=>n.jsx(or,{...e}),"Destacado noticias":e=>n.jsx(er,{...e}),"Destacado full width":e=>n.jsx(n1,{...e}),"Destacado videos":e=>n.jsx(rr,{...e}),"Carrusel card":e=>n.jsx(lr,{...e}),"Carrusel story":e=>n.jsx(Rd,{...e}),"Carrusel owl":e=>n.jsx(e1,{...e}),"Modulo fotogaleria":e=>n.jsx(t1,{...e}),"Carrusel opinion":e=>n.jsx(dr,{...e}),"Modulo 1x3 card":e=>n.jsx(cr,{...e}),"Modulo iframe":e=>n.jsx(a1,{...e})};function Zt({component:e,slot_id:t,data:a,banners:s}){if(s)return yr[e]&&n.jsx("div",{className:"home-slot",style:jn(a),children:yr[e]({...a,banners:s,slot_id:t})})}function s1({children:e,stylesConfigEntry:t}){return n.jsx("div",{className:"home-slot",style:jn(t),children:e})}const br={Diario:e=>{if(!e?.data||e.data.length===0)return;const t=e.data.slice(1);return n.jsx(Zo,{...e.data[0],itemReverseOrder:!0,isLarge:!0,block:t,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 t=e.data.slice(1);return n.jsx(Zo,{...e.data[0],itemReverseOrder:!0,isLarge:!0,showSuper:e.showSuper,block:t,banners:e.banners,customSectionCardStyles:e.customSectionCardStyles,customNewsDescriptionStyles:e.customNewsDescriptionStyles,paths:e.paths})},Super:e=>n.jsx(Ut,{...e.data[0],paths:e.paths}),"3 notas verticales":e=>n.jsx(id,{content:e.data,customLargeSection:e.customLargeSection,customSlimSection:e.customSlimSection,paths:e.paths}),"3 notas horizontales":e=>n.jsx(rd,{content:e.data,customLargeSection:e.customLargeSection,customSmallSection:e.customSmallSection,paths:e.paths})},Gn=({component:e,data:t,banners:a,rightOnlyBanner:s})=>n.jsx("div",{style:jn(t),children:br[e]&&br[e]({...t,rightOnlyBanner:s,banners:a})}),o1=({slots:e,DYNAMIC_SLOT_SUBINDEXES:t,stylesConfig:a,AutorIcon:s,config:o,banners:r,showTagBySection:i})=>{const c=[],d=t,l=Object.keys(e).length/d;for(let u=1;u<=l;u++)for(let f=1;f<=d;f++){const p="Home_"+u+"_"+f;!e[p]||!e[p].blockSass||!e[p].blockSass[0]||!e[p].blockSass[0].value||!e[p].blockSass[0].block||e[p].blockSass[0].block==="No Mostrar"||(e[p].blockSass[0]?.block==="Modulo iframe"?c.push(n.jsxs(pa,{id:e[p].blockSass[0].key,show:!!e[p].blockSass[0].value,order:(u-1)*d+(f-1),children:[n.jsx(Zt,{component:e[p].blockSass[0].block,banners:r,slot_id:p,data:{printEdition:e[p]?.blockSass[0].value,title:e[p]?.blockSass[0].title??"",titleUrl:e[p].blockSass[0].link??void 0}}),n.jsx(Fe,{children:n.jsx(je,{banners:r,index:"dynamic_"+u+"_"+f})})]},u+"_"+f)):c.push(n.jsxs(pa,{id:e[p].blockSass[0].key,show:!!e[p].content?.data,order:(u-1)*d+(f-1),children:[n.jsx(Zt,{component:e[p].blockSass[0].block,banners:r,slot_id:p,data:{...e[p].blockSass[0].block?a[e[p].blockSass[0].block]:[],content:e[p].content?.data??[],title:e[p].blockSass[0].title??void 0,titleUrl:e[p].blockSass[0].link??void 0,autorIcon:n.jsx(s,{}),paths:o.paths,showTagBySection:i}}),n.jsx(Fe,{children:n.jsx(je,{banners:r,index:"dynamic_"+u+"_"+f})})]},u+"_"+f)))}return c},r1=({mainBlock:e,StylesConfigMain:t,config:a,banners:s})=>{const{PUBLIC_ENV:o}=z();if(o!=="local")return null;const r=e?.news?.data||[],i=(c,h)=>({...e?.news,...t[c],data:r.slice(0,h),paths:a.paths});return n.jsxs(n.Fragment,{children:[n.jsx(Gn,{component:"Super",data:i("Super",1),banners:s}),n.jsx(Fe,{children:n.jsx(je,{banners:s,index:1})}),n.jsx(Gn,{component:"3 notas verticales",data:i("3 notas verticales",3),banners:s}),n.jsx(Fe,{children:n.jsx(je,{banners:s,index:1})}),n.jsx(Gn,{component:"3 notas horizontales",data:i("3 notas horizontales",3),banners:s}),n.jsx(Fe,{children:n.jsx(je,{banners:s,index:1})})]})},i1=e=>{const{config:t}=e,a=t.articlepreview;return!![pt.videoEmbedded,pt.videoYouTube,pt.iframe].includes(a)},c1=async e=>{const{custom_complement:t,ranking:a=[],banners:s,autor:o=[],news:r=[],newsRelatedResponses:i=[],newsRelatedListResponses:c=[],itemList:h=[],socials:d,getVideos:l}=e,u=e.slug==="liveblogs",{SHOW_NEWS_MORE_NEWS:f,SHOW_NEWS_RELATED_NEWS:p,MORE_NEWS_SSR:m}=z();if(!(!r||!r[0]))return n.jsx(n.Fragment,{children:n.jsxs(wd,{className:Kt.contentLayout2,children:[n.jsx(bd,{option:e.slug,news:r,paths:e.paths,headerSectionStyles:e.headerSectionStyles}),n.jsx(je,{banners:s,index:1}),!u&&e.commonServices&&n.jsx(jd,{news:r[0],commonServices:e.commonServices}),n.jsx(yd,{texts:e.texts,paths:e.paths,slug:e.slug,itemList:h,ranking:a,readestCustomStyles:e.readestCustomStyles,bannerTop:n.jsx(we,{banners:s??[],name:"right_1"}),banner:n.jsx(we,{banners:s??[],name:"right_2"}),complement:n.jsxs("div",{id:"comentarios",className:Kt.complementContent,suppressHydrationWarning:!0,children:[o.length>0&&n.jsx(Ko,{texts:e.texts,autorIcon:e.autorIcon,autor:o[0],paths:e.paths}),r[0].authors.length>1&&n.jsx(Jo,{news:r[0],autorIcon:e.autorIcon,paths:e.paths,texts:e.texts}),r[0]?.keywords?.tags&&r[0]?.keywords?.tags?.length>0&&n.jsx("div",{className:`${Kt.tagContent} sass-note-tags-content`,children:n.jsx(Yo,{tags:r[0]?.keywords?.tags,paths:e.paths})}),n.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"2rem"},suppressHydrationWarning:!0,children:[e.showComments&&n.jsx("div",{className:Kt.commentsSeparator,suppressHydrationWarning:!0,"data-hydrate":"LazyLoader","data-props":encodeURIComponent(JSON.stringify({render:"comment",internalPath:e.internalPath,API_ENV:na(e.API_ENV),texts:e.texts}))}),n.jsx(Fe,{children:n.jsx(je,{banners:s,index:2})}),p&&n.jsxs(n.Fragment,{children:[n.jsx(Zt,{component:"Carrusel card",banners:[],slot_id:"Nota_1",data:{...e.stylesConfig["Carrusel card"],content:e.relatedNewsList??[],title:e.texts.relatedNewsTitle,titleUrl:void 0,paths:e.paths}}),n.jsx(Fe,{children:n.jsx(je,{banners:s,index:3})})]}),f&&n.jsxs(n.Fragment,{children:[m?n.jsx(Zt,{component:"Modulo 1x3",banners:[],slot_id:"Nota_2",data:{...e.stylesConfig?e.stylesConfig["Modulo 1x3 Client"]?e.stylesConfig["Modulo 1x3 Client"]:e.stylesConfig["Modulo 1x3"]:{},content:e.moreNewsSSR??[],title:e.texts.moreNewsTitle,paths:e.paths,titleUrl:void 0}}):n.jsx(ge,{title:e.texts.moreNewsTitle,children:n.jsx("div",{suppressHydrationWarning:!0,"data-hydrate":"LazyLoader","data-props":encodeURIComponent(JSON.stringify({render:"more",stylesConfig:e.stylesConfig,section:r[0].info.section?.slug??"",internalPath:e.internalPath,paths:e.paths,API_ENV:na(e.API_ENV),fetchConfig:e.fetchConfig}))})}),n.jsx(Fe,{children:n.jsx(je,{banners:s,index:4})})]}),t&&t()]})]}),children:n.jsxs("section",{style:{"--avatar-content-align-items-desk":e.slug==="liveblogs"?"flex-start":"center"},children:[n.jsx(Xd,{texts:e.texts,autorIcon:e.autorIcon,socials:d,news:r[0],banners:s,newsRelatedResponses:i,newsRelatedListResponses:c,itemList:h,slug:e.slug,getVideos:l,noteShare:e.noteShare,paths:e.paths,showHeaderImage:!i1(r[0]),commonServices:e.commonServices}),n.jsx(we,{banners:s??[],name:"block_3"})]})})]})})},Xt={content:"_content_lu444_1",buttonStyled:"_buttonStyled_lu444_17",searchStyled:"_searchStyled_lu444_39",inputStyled:"_inputStyled_lu444_71",inputStyledTest:"_inputStyledTest_lu444_109"},l1=e=>n.jsx("svg",{width:"68",height:"68",viewBox:"0 0 68 68",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:n.jsx("g",{children:n.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"})})}),d1=e=>n.jsx("form",{className:Xt.content,children:n.jsxs("div",{className:`${Xt.inputStyled} sass-buscar-form`,children:[n.jsx("input",{className:Xt.inputStyledTest,defaultValue:e.query,name:"query",placeholder:e.texts.searchKeyWord+"..."}),n.jsx("button",{className:Xt.buttonStyled,type:"submit",children:n.jsx(l1,{className:Xt.searchStyled})})]})}),Ma={content:"_content_27x8l_1",newsContentSection:"_newsContentSection_27x8l_9",itemContent:"_itemContent_27x8l_19"},h1=e=>{const{data:t,option:a,autor:s,page:o,banners:r,pathname:i,ranking:c,currentPage:h,slug:d,texts:l={},socialIconsFilled:u=!1}=e,f=[5,10,15],{SUB_PUBLICATION_PREFIX_IN_ROUTES:p}=z(),m={5:1,10:2,15:3};switch(a){case"op1":return n.jsx(n.Fragment,{children:n.jsxs(_a,{children:[n.jsx(Qo,{autor:s[0],autorIcon:e.autorIcon,socialIconsFilled:u}),n.jsx(Ia,{paths:e.paths,ranking:c,readestTitle:l.readestTitle??"",bannerTop:n.jsx(we,{banners:r??[],name:"right_1"}),banner:n.jsx(we,{banners:r??[],name:"right_2"}),children:n.jsx("section",{className:Ma.content,children:t.length>0?n.jsx(Un,{className:[Ma.newsContentSection,"padding-0"].join(" "),paginatorComponent:n.jsx(Qt,{block_subPublication:p?.autor,texts:l,pathname:i,query:"",currentPage:h,maxPages:e.paginationLimit,showNext:!(t.length<e.newsListLimit)}),children:Array.isArray(t)&&t?.map((g,A)=>n.jsxs(E.Fragment,{children:[f.includes(A+1)&&n.jsx("div",{className:Ma.itemContent+" banner-context",children:n.jsx(we,{banners:r??[],name:`block_2_${m[A+1]}`})}),n.jsx(Dn,{autorIcon:e.autorIcon,item:g,option:d,paths:e.paths},A)]},A))}):n.jsx("div",{style:{width:"100%",display:"flex",flexDirection:"column",justifyContent:"center",gap:"2rem"},children:n.jsx("p",{style:{fontWeight:"var(--fw)",width:"100%",fontSize:"18px",lineHeight:"26px",textAlign:"center"},children:l.autorNotResultMessage})})})})]})});case"op2":return n.jsx(n.Fragment,{children:n.jsxs(_a,{children:[n.jsx(Ho,{autor:s[0],autorIcon:e.autorIcon,socialIconsFilled:u}),Array.isArray(t)?n.jsxs(n.Fragment,{children:[n.jsx(xa,{content:t,title:"",hasLines:!0,banners:e.banners,bannerPositionIndex:[1,6,12],paths:e.paths,slot_id:"block_2"}),n.jsx(Qt,{block_subPublication:p?.autor,texts:l,query:"",pathname:i,maxPages:Number(e.paginationLimit),currentPage:Number(o),showNext:!((t.length??0)<Number(e.newsListLimit))})]}):n.jsx("div",{style:{width:"100%",display:"flex",flexDirection:"column",justifyContent:"center",gap:"2rem"},children:n.jsx("p",{style:{fontWeight:"var(--fw)",width:"100%",fontSize:"18px",lineHeight:"26px",textAlign:"center"},children:l.autorNotResultMessage})})]})});default:return n.jsx(n.Fragment,{})}},L={overlay:"_overlay_1lkqq_1",header:"_header_1lkqq_35",logo:"_logo_1lkqq_49",card:"_card_1lkqq_63",close:"_close_1lkqq_93",form:"_form_1lkqq_141",formUl:"_formUl_1lkqq_159",field:"_field_1lkqq_183",label:"_label_1lkqq_197",input:"_input_1lkqq_215",error:"_error_1lkqq_251",primary:"_primary_1lkqq_263",divider:"_divider_1lkqq_339",google:"_google_1lkqq_391",googleIcon:"_googleIcon_1lkqq_451",spin:"_spin_1lkqq_517",checkboxRow:"_checkboxRow_1lkqq_561",switch:"_switch_1lkqq_619",terms:"_terms_1lkqq_635",message:"_message_1lkqq_697",passwordChecker:"_passwordChecker_1lkqq_707",valid:"_valid_1lkqq_745",invalid:"_invalid_1lkqq_753",forgotPassword:"_forgotPassword_1lkqq_761",successContainer:"_successContainer_1lkqq_799",thumbsUp:"_thumbsUp_1lkqq_815",successMessage:"_successMessage_1lkqq_827"},Da=async(e,t)=>{if(!e)throw new Error("No action provided");if(!t)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(t,{action:e});if(!r)throw new Error("Captcha token no generado");s(r)}catch(r){o(r)}})})},Re=()=>n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",width:"24",height:"24",viewBox:"0 0 32 32",className:L.spin,children:n.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"})}),u1={GoogleButtonText:"Continuar con Google",loginButtonText:"Iniciar sesión",noAccountText:"¿Ya tenés cuenta?",showPasswordsLabel:"Mostrar contraseñas",termsPrefix:"Al continuar, confirmo que he leído y aceptado los",termsLinkText:"Términos y Condiciones",termsSuffix:"de nuestra comunidad",createAccountButton:"Crear cuenta",verificationCodeLabel:"Código de verificación",confirmAccountButton:"Confirmar cuenta",alreadyConfirmedText:"¿Ya confirmaste antes?",successTitle:"Confirmación completa.",successMessage:"Ya eres parte de la comunidad!",passwordRuleMinLength:"La contraseña debe tener al menos 8 caracteres",passwordRuleNumber:"Usa un número",passwordRuleLowercase:"Usa una letra minúscula",passwordRuleUppercase:"Usa una letra mayúscula",passwordRuleSymbol:"Usa un símbolo",errorCompleteFields:"Complete todos los campos",errorPasswordMismatch:"Las contraseñas no coinciden",errorPasswordInvalid:"La contraseña no es válida",errorVerificationCodeRequired:"Debes ingresar el código de verificación",errorUnexpected:"Error inesperado"},Rt={email:{label:"Email"},given_name:{label:"Nombre"},family_name:{label:"Apellido"},password:{label:"Contraseña"},confirmPassword:{label:"Confirmar contraseña"}};function f1(e){return{email:{label:e?.email??Rt.email.label,required:!0},given_name:{label:e?.given_name??Rt.given_name.label,required:!0},family_name:{label:e?.family_name??Rt.family_name.label,required:!0},password:{label:e?.password??Rt.password.label,required:!0},confirmPassword:{label:e?.confirmPassword??Rt.confirmPassword.label,required:!0}}}const He=[e=>e.length>=8,e=>/\d/.test(e),e=>/[a-z]/.test(e),e=>/[A-Z]/.test(e),e=>/[^A-Za-z0-9]/.test(e)],Cr=[{label:"La contraseña debe tener al menos 8 caracteres",test:He[0]},{label:"Usa un número",test:He[1]},{label:"Usa una letra minúscula",test:He[2]},{label:"Usa una letra mayúscula",test:He[3]},{label:"Usa un símbolo",test:He[4]}];function m1({goToLogin:e,handleGoogleLogin:t,API_ENV:a,texts:s}){const o={...u1,...s?.comentarios},r=E.useMemo(()=>f1(s?.comentarios?.registerForm),[s?.comentarios?.registerForm]),i=E.useMemo(()=>[{label:o.passwordRuleMinLength,test:He[0]},{label:o.passwordRuleNumber,test:He[1]},{label:o.passwordRuleLowercase,test:He[2]},{label:o.passwordRuleUppercase,test:He[3]},{label:o.passwordRuleSymbol,test:He[4]}],[o.passwordRuleMinLength,o.passwordRuleNumber,o.passwordRuleLowercase,o.passwordRuleUppercase,o.passwordRuleSymbol]),[c,h]=E.useState({}),[d,l]=E.useState(!1),[u,f]=E.useState(!1),[p,m]=E.useState(null),[g,A]=E.useState("register"),C=(w,T)=>{h(U=>({...U,[w]:T}))},S=async w=>{w.preventDefault(),m(null),f(!0);try{const T=Object.keys(r).filter(Z=>!["username","password","confirmPassword"].includes(Z)).map(Z=>({Name:Z,Value:c[Z]}));if(T.some(Z=>{if(!Z.Value||Z.Value.trim()==="")return!0}))return f(!1),m(o.errorCompleteFields);if(c.password!==c.confirmPassword){m(o.errorPasswordMismatch);return}const U=c.password||"";if(i.some(Z=>!Z.test(U))){m(o.errorPasswordInvalid);return}const X=Math.floor(Date.now()/1e3);T.push({Name:"updated_at",Value:String(X)});const H=a.PUBLIC_ENV==="local"?"token":await Da("comment_register",a.CAPTCHA_KEY??"");if(!H)throw new Error("Captcha token no generado");const D=await fetch("/api/auth/create-user",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:c.email,password:c.password,userAttributes:T,token:H})});if(!D.ok){const Z=await D.json().catch(()=>({}));if(Z.code==="UsernameExistsException"){await fetch("/api/auth/resend-code",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:c.email})}),A("confirm");return}throw new Error(Z?.error||"Error al crear usuario")}A("confirm")}catch(T){console.log(T),m(T?.message||T?.error||o.errorUnexpected)}finally{f(!1)}},_=async w=>{if(w.preventDefault(),!c.confirmationCode){m(o.errorVerificationCodeRequired);return}m(null),f(!0);try{const T=await fetch("/api/auth/confirm-user",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:c.email,code:c.confirmationCode})});if(!T.ok){const U=await T.json().catch(()=>({}));throw new Error(U?.error||"Error al confirmar usuario")}A("success")}catch(T){m(T?.message||o.errorUnexpected)}finally{f(!1)}},I=c.password||"";return n.jsxs(n.Fragment,{children:[g==="register"&&n.jsxs(n.Fragment,{children:[n.jsxs("button",{onClick:t,className:L.google,children:[n.jsx("img",{src:"https://www.gstatic.com/firebasejs/ui/2.0.0/images/auth/google.svg",alt:"",className:L.googleIcon}),n.jsx("span",{children:o.GoogleButtonText})]}),n.jsx("div",{className:L.divider,children:n.jsx("span",{children:"o"})}),n.jsxs("form",{onSubmit:S,className:L.form,"data-error":p?"true":"false",children:[n.jsx("ul",{className:L.formUl,children:Object.entries(r).map(([w,{label:T}])=>n.jsxs("div",{className:L.field,children:[n.jsx("label",{className:L.label,children:T}),n.jsx("input",{type:w.toLowerCase().includes("password")?d?"text":"password":w==="birthdate"?"date":w==="email"?"email":w==="phone_number"?"tel":"text",name:w,value:c[w]||"",onChange:U=>C(w,U.target.value),className:L.input,placeholder:""}),w==="password"&&n.jsx("div",{className:L.passwordChecker,children:i.map((U,Q)=>{const X=U.test(I);return n.jsxs("div",{className:X?L.valid:L.invalid,children:[n.jsx("div",{children:X?"✔":"○"}),n.jsx("div",{children:U.label})]},Q)})}),w==="confirmPassword"&&n.jsxs("div",{className:L.checkboxRow,children:[n.jsx("input",{id:"showPasswordRegister",type:"checkbox",checked:d,onChange:U=>l(U.target.checked)}),n.jsx("label",{htmlFor:"showPasswordRegister",className:L.checkboxLabel,children:o.showPasswordsLabel})]})]},w))}),p&&n.jsx("p",{className:L.error,children:p}),n.jsxs("p",{className:L.terms,children:[o.termsPrefix," ",n.jsx("a",{href:"/pages/politicas-de-privacidad.html",target:"_blank",children:o.termsLinkText})," ",o.termsSuffix]}),n.jsx("button",{type:"submit",className:L.primary,disabled:u,children:u?n.jsx(Re,{}):o.createAccountButton})]})]}),g==="confirm"&&n.jsxs("form",{onSubmit:_,className:L.form,"data-error":p?"true":"false",children:[n.jsxs("div",{className:L.field,children:[n.jsx("label",{className:L.label,children:o.verificationCodeLabel}),n.jsx("input",{type:"text",name:"confirmationCode",value:c.confirmationCode||"",onChange:w=>C("confirmationCode",w.target.value),className:L.input,required:!0})]}),p&&n.jsx("p",{className:L.error,children:p}),n.jsx("button",{type:"submit",className:L.primary,disabled:u,children:u?n.jsx(Re,{}):o.confirmAccountButton}),n.jsxs("p",{className:L.switch,children:[o.alreadyConfirmedText,n.jsx("button",{type:"button",onClick:e,children:o.loginButtonText})]})]}),g==="success"&&n.jsxs("form",{className:L.form,children:[n.jsxs("div",{className:L.successContainer,children:[n.jsx("div",{className:L.thumbsUp,children:n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:132,height:120,fill:"none",children:n.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"})})}),n.jsxs("div",{className:L.successMessage,children:[n.jsx("p",{children:o.successTitle}),n.jsx("p",{children:o.successMessage})]})]}),n.jsx("button",{onClick:e,className:L.primary,children:o.loginButtonText})]}),g==="register"&&n.jsxs("p",{className:L.switch,children:[o.noAccountText,n.jsx("button",{type:"button",onClick:e,children:o.loginButtonText})]})]})}const wt=300,et={username:"anonimo",firstname:"Usuario",lastname:"Anonimo"};function g1(e){const t=e.split(" ");if(t.length!==3)return e;const[a,s,o]=t,r=s.charAt(0).toUpperCase()+s.slice(1).toLowerCase();return`${a} ${r} ${o}`}const $a=(e,t,a)=>{if(!e||!e.current)return{boolean:!1,text:""};const s=e.current?.value||"",o=s.length>wt,{PUBLIC_ENV:r}=a,i=r==="local",c=s.trim()!==""&&(i||t!=="")&&!o,h=o?`No debes exceder el limite de ${wt} caracteres.`:"Debes completar todos los campos para comentar.";return{boolean:c,text:h}},vr=e=>{const t=e.cookie.split("; ").find(a=>a.startsWith("reported="));if(!t)return[];try{return JSON.parse(decodeURIComponent(t.split("=")[1]??""))}catch{return[]}},p1=(e,t)=>{const a=vr(e);a.includes(t)||(a.push(t),e.cookie=`reported=${encodeURIComponent(JSON.stringify(a))}; path=/; max-age=${3600*24*1}`)};function A1(e){const[t,a]=e.split("@");if(!t||!a)return e;let s="";t.length<=2?s=t[0]+"*":s=t[0]+"*".repeat(t.length-2)+t[t.length-1];const o=a.lastIndexOf(".");if(o===-1)return`${s}@${a}`;const r=a.slice(0,o),i=a.slice(o);let c="";return r.length<=2?c=r[0]+"*":c=r[0]+"*".repeat(r.length-2)+r[r.length-1],`${s}@${c}${i}`}const w1={title:"",button:"",commentPromptMessage:"Súmate a la comunidad para dejar tu comentario",email:"Email",password:"Contraseña",showPassword:"Mostrar contraseña",loginButtonText:"Iniciar Sesión",backButton:"Volver",GoogleButtonText:"Continuar con Google",noAccountText:"¿No tienes cuenta?",registerButtonText:"Registrate",forgotPasswordText:"Olvidé mi contraseña",forgotMessage:"Ingrese su dirección de correo electrónico. Le enviaremos un mensaje con un código para restablecer la contraseña.",sendCodeButton:"Enviar código",changePasswordMessage:"Hemos enviado un código de restablecimiento de contraseña en un mensaje de Correo electrónico a {{email}}. Ingrese el código y la contraseña nueva.",verificationCodeLabel:"Código de verificación",newPasswordLabel:"Nueva contraseña",confirmPasswordLabel:"Confirmar contraseña",showPasswordsLabel:"Mostrar contraseñas",changePasswordButton:"Cambiar contraseña",feedbackSuccessMessage:"La contraseña fue cambiada con éxito"};function y1({onClose:e,checkAuth:t,goToRegister:a,handleGoogleLogin:s,API_ENV:o,texts:r}){const i={...w1,...r?.comentarios},[c,h]=E.useState("login"),[d,l]=E.useState(""),[u,f]=E.useState(""),[p,m]=E.useState(""),[g,A]=E.useState(""),[C,S]=E.useState(""),[_,I]=E.useState(!1),[w,T]=E.useState(!1),[U,Q]=E.useState(null),X=async Z=>{if(!w){Z.preventDefault(),Q(null),T(!0);try{const ne=o.PUBLIC_ENV==="local"?"token":await Da("comment_login",o.CAPTCHA_KEY||"");if(!ne)throw new Error("Captcha token no generado");const q=await fetch("/api/auth/login-password",{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({email:d,password:u,token:ne})});if(!q.ok){const x=await q.json().catch(()=>({}));throw new Error(x?.error||"Ha ocurrido un error")}e(),await t()}catch(ne){Q(ne?.message||"Error inesperado")}finally{T(!1)}}},H=async Z=>{if(!w){Z.preventDefault(),Q(null),T(!0);try{const ne=await fetch("/api/auth/forgot-password",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:d})});if(!ne.ok){const q=await ne.json().catch(()=>({}));throw new Error(q?.error||"Error al enviar código")}f(""),h("changePassword")}catch(ne){Q(ne?.message||"Error inesperado")}finally{T(!1)}}},D=async Z=>{if(w)return;if(Z.preventDefault(),g!==C){Q("Las contraseñas no coinciden");return}if(Cr.some(q=>!q.test(g))){Q("La contraseña no cumple con los requisitos");return}Q(null),T(!0);try{const q=await fetch("/api/auth/confirm-forgot-password",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:d,code:p,newPassword:g})});if(!q.ok){const x=await q.json().catch(()=>({}));throw new Error(x?.error||"Error al cambiar contraseña")}h("feedback")}catch(q){Q(q?.message||"Error inesperado")}finally{T(!1)}};return n.jsxs(n.Fragment,{children:[c==="login"&&n.jsx(b1,{email:d,password:u,showPassword:_,loading:w,error:U,setEmail:l,setPassword:f,setShowPassword:I,onSubmit:X,onForgot:()=>{Q(null),h("forgot")},onRegister:a,handleGoogleLogin:s,t:i}),c==="forgot"&&n.jsx(C1,{email:d,setEmail:l,loading:w,error:U,onSubmit:H,onBack:()=>{Q(null),h("login")},t:i}),c==="changePassword"&&n.jsx(v1,{email:d,confirmationCode:p,newPassword:g,confirmNewPassword:C,showPassword:_,loading:w,error:U,setConfirmationCode:m,setNewPassword:A,setConfirmNewPassword:S,setShowPassword:I,onSubmit:D,onBack:()=>{Q(null),h("forgot")},t:i}),c==="feedback"&&n.jsx(_1,{onBackToLogin:()=>{Q(null),h("login")},t:i})]})}function b1({email:e,password:t,showPassword:a,loading:s,error:o,setEmail:r,setPassword:i,setShowPassword:c,onSubmit:h,onForgot:d,onRegister:l,handleGoogleLogin:u,t:f}){return n.jsxs(n.Fragment,{children:[n.jsxs("button",{onClick:u,className:L.google,children:[n.jsx("img",{src:"https://www.gstatic.com/firebasejs/ui/2.0.0/images/auth/google.svg",alt:"",className:L.googleIcon}),n.jsx("span",{children:f.GoogleButtonText})]}),n.jsx("div",{className:L.divider,children:n.jsx("span",{children:"o"})}),n.jsxs("form",{onSubmit:h,className:L.form,"data-error":o?"true":"false",children:[n.jsxs("div",{className:L.field,children:[n.jsx("label",{className:L.label,children:f.email}),n.jsx("input",{type:"email",value:e,onChange:p=>r(p.target.value),className:L.input,placeholder:""})]}),n.jsxs("div",{className:L.field,children:[n.jsx("label",{className:L.label,children:f.password}),n.jsx("input",{type:a?"text":"password",value:t,onChange:p=>i(p.target.value),className:L.input,placeholder:""}),n.jsxs("div",{className:L.checkboxRow,children:[n.jsx("input",{id:"showPasswordLogin",type:"checkbox",checked:a,onChange:p=>c(p.target.checked)}),n.jsx("label",{htmlFor:"showPasswordLogin",className:L.checkboxLabel,children:f.showPassword})]})]}),o&&n.jsx("p",{className:L.error,children:o}),n.jsx("button",{type:"submit",className:L.primary,disabled:s,children:s?n.jsx(Re,{}):f.loginButtonText})]}),n.jsxs("p",{className:L.switch,children:[f.noAccountText,n.jsx("button",{type:"button",onClick:l,children:f.registerButtonText})]}),n.jsx("button",{type:"button",className:L.forgotPassword,onClick:d,children:f.forgotPasswordText})]})}function C1({email:e,setEmail:t,loading:a,error:s,onSubmit:o,onBack:r,t:i}){return n.jsxs("form",{onSubmit:o,className:L.form,"data-error":s?"true":"false",children:[n.jsx("p",{className:L.message,children:i.forgotMessage}),n.jsxs("div",{className:L.field,children:[n.jsx("label",{className:L.label,children:i.email}),n.jsx("input",{type:"email",value:e,name:"email",onChange:c=>t(c.target.value),className:L.input,placeholder:""})]}),s&&n.jsx("p",{className:L.error,children:s}),n.jsx("button",{type:"submit",className:L.primary,disabled:a,children:a?n.jsx(Re,{}):i.sendCodeButton}),n.jsx("p",{className:L.switch,children:n.jsx("button",{type:"button",onClick:r,children:i.backButton})})]})}function v1({email:e,confirmationCode:t,newPassword:a,confirmNewPassword:s,showPassword:o,loading:r,error:i,setConfirmationCode:c,setNewPassword:h,setConfirmNewPassword:d,setShowPassword:l,onSubmit:u,onBack:f,t:p}){const m=p.changePasswordMessage.replace("{{email}}",A1(e));return n.jsxs("form",{onSubmit:u,className:L.form,"data-error":i?"true":"false",children:[n.jsx("p",{className:L.message,children:m}),n.jsxs("ul",{className:L.formUl,children:[n.jsxs("div",{className:L.field,children:[n.jsx("label",{className:L.label,children:p.verificationCodeLabel}),n.jsx("input",{type:"text",value:t,onChange:g=>c(g.target.value),className:L.input,placeholder:""})]}),n.jsxs("div",{className:L.field,children:[n.jsx("label",{className:L.label,children:p.newPasswordLabel}),n.jsx("input",{type:o?"text":"password",value:a,onChange:g=>h(g.target.value),className:L.input,placeholder:"",name:"password"}),n.jsx("div",{className:L.passwordChecker,children:Cr.map((g,A)=>{const C=g.test(a);return n.jsxs("div",{className:C?L.valid:L.invalid,children:[n.jsx("div",{children:C?"✔":"○"}),n.jsx("div",{children:g.label})]},A)})})]}),n.jsxs("div",{className:L.field,children:[n.jsx("label",{className:L.label,children:p.confirmPasswordLabel}),n.jsx("input",{type:o?"text":"password",value:s,onChange:g=>d(g.target.value),className:L.input,placeholder:""}),n.jsxs("div",{className:L.checkboxRow,children:[n.jsx("input",{id:"showPasswordForgot",type:"checkbox",checked:o,onChange:g=>l(g.target.checked)}),n.jsx("label",{htmlFor:"showPasswordForgot",className:L.checkboxLabel,children:p.showPasswordsLabel})]})]})]}),i&&n.jsx("p",{className:L.error,children:i}),n.jsx("button",{type:"submit",className:L.primary,style:{maxWidth:r?"revert-layer":"fit-content"},disabled:r,children:r?n.jsx(Re,{}):p.changePasswordButton}),n.jsx("p",{className:L.switch,children:n.jsx("button",{type:"button",onClick:f,children:p.backButton})})]})}function _1({onBackToLogin:e,t}){return n.jsxs("div",{className:L.form,children:[n.jsx("p",{className:L.success,children:t.feedbackSuccessMessage}),n.jsx("button",{type:"button",className:L.primary,onClick:e,children:t.loginButtonText})]})}function _r({loginUrl:e,onClose:t,checkAuth:a,icon:s,API_ENV:o,texts:r}){const[i,c]=E.useState("login"),h=async()=>{if(o.PUBLIC_ENV==="local"){await fetch("/api/auth/debug-login",{method:"GET",credentials:"include"}),localStorage.setItem("cognito-login","success:"+Date.now()),t(),a();return}if(!e)return;const d=encodeURIComponent(window.location.pathname);window.location.href=`/api/auth/login?redirect=${d}`};return n.jsx("div",{className:L.overlay,role:"dialog","aria-modal":"true",id:"pop-overlay",onClick:d=>{const l=d.target;l&&l.id==="pop-overlay"&&t()},children:n.jsxs("div",{className:L.card,children:[n.jsxs("header",{className:L.header,children:[n.jsx("div",{className:L.logo,children:s?s():null}),n.jsx("button",{onClick:t,className:L.close,"aria-label":"Cerrar",children:n.jsx(Et,{})})]}),i==="login"&&n.jsx(y1,{onClose:t,checkAuth:a,handleGoogleLogin:h,goToRegister:()=>c("register"),API_ENV:o,texts:r}),i==="register"&&n.jsx(m1,{handleGoogleLogin:h,goToLogin:()=>c("login"),API_ENV:o,texts:r})]})})}const Sr={content:"_content_ghncj_1",videoContent:"_videoContent_ghncj_17"},en={container:"_container_1wcps_1",playStyled:"_playStyled_1wcps_11",imageStyled:"_imageStyled_1wcps_25",longer:"_longer_1wcps_51",contentNews:"_contentNews_1wcps_61",tagContent:"_tagContent_1wcps_101",tag:"_tag_1wcps_101",titular:"_titular_1wcps_135",small:"_small_1wcps_161",figure:"_figure_1wcps_173",backDrop:"_backDrop_1wcps_183",backDropAux:"_backDropAux_1wcps_199"},Nr=async e=>{const{size:t="longer",video:a}=e,s=a.main.image.sizes[0]?.url??"";return n.jsx("figure",{className:en.figure,children:n.jsxs("span",{className:en.backdrop,children:[n.jsx("span",{className:en.backDropAux}),n.jsx(P,{href:a.info.link.url,target:a.info.link.target,children:n.jsxs("div",{children:[a.main.image.sizes.map(async(o,r)=>o.width>=580?n.jsx("source",{media:"(width >=900px)",srcSet:await ue(o.url)},r):n.jsx("source",{media:"(width <900px)",srcSet:await ue(o.url)},r)),n.jsx("img",{fetchPriority:"low",loading:"lazy",className:[en.imageStyled,en[t]].join(" "),alt:"",src:s?await ue(s):""})]})})]})})},S1=e=>{const{videos:t}=e;return n.jsx("div",{className:Sr.content,children:n.jsx(It,{children:n.jsx(ge,{title:"Videos",isTitle:!0,children:n.jsxs("div",{className:Sr.videoContent,children:[n.jsx(Nr,{video:t[0]}),n.jsx("div",{style:{display:"flex",flexDirection:"column"},children:t.slice(1).map((a,s)=>n.jsx(Nr,{size:"small",video:a},`video-small-${s}`))})]})})})})},yt={content:"_content_quk50_1",videoContent:"_videoContent_quk50_17",articleSection:"_articleSection_quk50_41",contentLatout:"_contentLatout_quk50_61",title:"_title_quk50_71",article:"_article_quk50_41",correspondent:"_correspondent_quk50_127"},Ir={container:"_container_17w1m_1",playStyled:"_playStyled_17w1m_17"},N1=e=>{const{video:t}=e,a=_n();return n.jsx(P,{href:t.info.link.url?t.info.link.url:void 0,target:t.info.link.target,children:n.jsxs("section",{className:Ir.container,children:[n.jsx(Ee,{isLarge:!0,preview:{sizes:t.main.image.sizes,description:t.main.description}}),n.jsx(a,{className:Ir.playStyled})]})})},I1=e=>{const t=()=>e?.video.main.author?`${e?.video.main.author} - ${Be(e.video.info.date.created)}`:e?.video.main.author;return n.jsx("div",{className:yt.content,children:n.jsx(It,{className:yt.contentLatout,children:n.jsx(ge,{title:"Videos",isTitle:!0,children:n.jsxs("div",{className:yt.videoContent,children:[n.jsx(N1,{video:e.video}),n.jsxs("div",{className:yt.articleSection,children:[n.jsx(P,{className:yt.title,href:e.video.info.link.url,target:e.video.info.link.target,children:e.video.main.title}),n.jsx("p",{className:yt.article,children:qe(e.video.main.description)}),n.jsx("p",{className:yt.correspondent,children:t()})]})]})})})})},E1=e=>{switch(e.option){case"op1":return n.jsx(S1,{videos:e.data});case"op2":return n.jsx(I1,{video:e.data[0]});default:return n.jsx(n.Fragment,{})}};function T1({containerId:e,containerId2:t}){return E.useEffect(()=>{try{let a=function(){const l=window.twttr;l?.widgets?l.widgets.load(s):d<10?(d++,requestAnimationFrame(a)):console.warn("No se pudo cargar widgets de Twitter")};const s=document.getElementById(e),o=document.getElementById(t);if(!s&&!o)return;const r=s?.querySelectorAll("script[src]")??[],i=o?.querySelectorAll("script[src]")??[];[...r,...i].forEach(l=>{const u=document.createElement("script");Array.from(l.attributes).forEach(f=>{u.setAttribute(f.name,f.value)}),l.replaceWith(u)});const h=document.querySelectorAll('script[src*="platform.twitter.com/widgets.js"]');if(h)for(let l=0;l<h.length;l++)h[l]?.remove();let d=0;if(document.querySelector('script[src*="platform.twitter.com/widgets.js"]'))a();else{const l=document.createElement("script");l.src="https://platform.twitter.com/widgets.js",l.async=!0,l.onload=a,document.body.appendChild(l)}}catch(a){console.warn("Error al procesar embeds de Twitter",a)}},[e]),null}const k1=({currentNew:e})=>e&&e?.hascontent?.hasembeddedtwitter&&n.jsx("script",{src:"https://platform.twitter.com/widgets.js"}),U1=e=>{const{isVideo:t=!1,isLarge:a=!1,hasShadow:s=!1,BackDropAuxHeigthMobile:o}=e,r=ba(),i=E.useMemo(()=>{const f=e?.preview?.sizes;if(f&&Array.isArray(f)&&f.length>0)return f;const p=e?.preview?.original;return p?.url?[{url:p.url,width:p.width||0,height:p.height||0}]:[]},[e?.preview?.sizes,e?.preview?.original]);if(!i.length||!i[0]?.url||i[0]?.url==="")return n.jsx("div",{className:ie.imagePlaceholder});const{PUBLIC_API_HOST:c="",PUBLIC_ASSETS_URL:h}=e.API_ENV,d=i[0]?.url,l=h&&h!=="false"?h:c,u=d?.startsWith("http")||d?.includes(l)?d:l+d;return n.jsx("figure",{className:ie.figure,children:n.jsxs("span",{className:ie.backdrop,children:[n.jsx("span",{className:ie.backdropAux,style:{height:o||"56.25%"}}),n.jsxs("picture",{children:[n.jsx("img",{fetchPriority:"low",loading:"lazy",className:ie.imageStyled,alt:e.preview?.description||"",src:u,style:{boxShadow:s?"0px 4px 8px 0px #00000033":"0px"}}),t&&n.jsxs(n.Fragment,{children:[n.jsx("div",{className:ie.boxPlayIcon,style:{height:a?"40%":"72px"}}),n.jsx(r,{className:ie.playStyled,style:{width:a?"3rem":"27px",height:a?"3rem":"27px",marginBottom:a?"18px":".5rem",marginLeft:a?"30px":".5rem"}})]})]})]})})},x1=e=>n.jsx("svg",{width:"41",height:"33",viewBox:"0 0 41 33",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:n.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"})}),Er={info:{section:{name:"",slug:"",url:""},link:{url:"/",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},L1=({section:e,internalPath:t,banner:a,isVisible:s=!1,stylesConfig:o,API_ENV:r,fetchConfig:i,paths:c})=>{const h=r.FETCH_SIZE_MORE_NEWS??6,[d,l]=E.useState({data:Array.from({length:h},()=>Er)}),[u,f]=E.useState(!1),p=E.useCallback(async()=>{if(!t)return;const A=new URLSearchParams({section:e,currentNewsLink:t}),C=await fetch(`/api/get-more-news?${A}`);if(!C.ok)throw new Error(`HTTP error! status: ${C.status}`);return await C.json()},[e,t]),m=E.useCallback(async()=>{const{PUBLIC_API_FRONT:A,PUBLIC_X_SECURITY_TOKEN:C,PUBLIC_API_PATH_VERSION:S,PUBLIC_PUBLICATION_ID:_}=r;if(!A||!C||!_||!S)throw new Error("Missing required environment variables");const I=await re.get(`${A}${S}/news-list-section`,{params:{size:h+1,newstype:i.newsType,section:e,imagesizes:i.imgSizes,publication:parseInt(_)},headers:{"x-api-token":C,"Content-Type":"application/json"}});return{...I.data,data:I.data.data.filter(w=>w.info.link.internal!==t)}},[e,t,r]),g=E.useCallback(async()=>{if(!(u||!t)){f(!0);try{let A;r.PUBLIC_ENV!=="prod"?A=await p():A=await m(),l({...A,data:A.data.slice(0,h)})}catch(A){console.error("[/api/get-more-news] Error:",A.message),l(void 0)}}},[u,t,r.PUBLIC_ENV,p,m]);return E.useEffect(()=>{s&&g()},[s,g]),!d?.data||d.data.length===0?null:n.jsx(B1,{news:d.data,title:"Más Noticias",...o["Modulo 1x3 Client"]??o["Modulo 1x3"],hasLines:!0,showSubtitle:!0,rounded:!0,banner:a,API_ENV:r,paths:c,isVisible:s})},B1=e=>{const{news:t,hasLines:a=!1,API_ENV:s}=e,o=r=>a&&(r+1)%3!==0?qa.contentSeparator:"";return n.jsx("div",{className:qa.newsContent,style:{gap:a?"30px":"20px","--gridTemplateModlule":a?"repeat(auto-fit, 343px);":"repeat(auto-fit, 380px);"},children:t.map((r,i)=>{const{main:c,authors:h,info:d,preview:l,isVideo:u=!1,config:f,overImage:p="default",isTitle:m=!1,isLarge:g=!1,keywords:A}=r;return n.jsx("div",{className:o(i),style:{order:i},children:n.jsxs("section",{className:Ht.content,children:[n.jsx(P,{title:c?.title?.section,href:d?.link?.url??"invalidUrl","aria-label":c?.title?.section??"nota",target:d?.link?.target,children:n.jsx(U1,{isVisible:e.isVisible,preview:l,rounded:e.rounded,isVideo:u,isLarge:g,API_ENV:e.API_ENV,getImageUrl:e.getImageUrl})}),n.jsx("div",{className:Ht.newsDescription,children:n.jsx(q1,{main:c,SHOW_TAG_BY_SECTION:s.SHOW_TAG_BY_SECTION,authors:h,info:d,preview:l,share:e.share,config:f,overImage:p,isTitle:m,paths:e.paths,isVisible:e.isVisible,DATE_CONFIG:e.API_ENV,keywords:A})})]})},i)})})},q1=e=>{const{share:t=!1,cutSubtitle:a=!0,SHOW_TAG_BY_SECTION:s,keywords:o,info:r}=e,c=(()=>{if(!e?.authors||e.authors.length===0)return"";const l=e.authors[0],u=Be(e.info?.date?.modified,e.DATE_CONFIG);return l&&e?.config?.showtime&&e.config?.showauthor?`${l.fullname} - ${u}`:l&&e.config?.showauthor?l.fullname:e?.config?.showtime?u:""})(),h=()=>e.main.uppertitle?n.jsx("p",{className:ae.uppertitle,title:e.main.uppertitle,children:e.main.uppertitle}):null,d=()=>{if(s&&o?.tags?.length&&o.tags.length>0){const l=o.tags[0],u=l.name;return n.jsxs("h3",{className:ae.sectionDescriptionContainer,children:[l.approved?n.jsx(P,{"aria-label":u,block_subPublication:e.DATE_CONFIG?.SUB_PUBLICATION_PREFIX_IN_ROUTES?.tema,className:ae.sectionDescription,href:tt(l,e.paths),children:u}):n.jsx("div",{className:ae.sectionDescription,children:u}),h()]})}else if(r?.section?.url){const l=r.section.name;return n.jsxs("h3",{className:ae.sectionDescriptionContainer,children:[n.jsx(P,{"aria-label":l,className:ae.sectionDescription,href:r.section.url,children:l}),h()]})}return null};return n.jsxs("div",{className:ae.boxInformation,children:[t&&n.jsx(x1,{className:ae.dotStyles}),n.jsx(d,{}),n.jsx("h2",{className:ae.articule,children:n.jsx(P,{className:ae.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&&n.jsx("p",{className:ae.description,style:{"--fontSizeSubTitle":e.fontSizeSubTitle,"--lineHeightSubTitle":e.lineHeightSubTitle,"--colorSubTitle":e.colorSubTitle},children:a?qe(e.main.subtitle.striped):e.main.subtitle.striped}),(e?.config?.showtime||e.config?.showauthor)&&c&&n.jsx(n.Fragment,{children:e.authors?.[0]?.internaluser?n.jsx(P,{block_subPublication:e.DATE_CONFIG?.SUB_PUBLICATION_PREFIX_IN_ROUTES?.autor,className:ae.correspondentLink,href:`/${e.paths.autor}/${e.authors[0].name}`,children:c}):n.jsx("div",{className:ae.correspondent,children:c})})]})},P1=({user:e,handleLogout:t,message:a})=>{const s=()=>{const r=document.querySelector(".user-actions-options");r&&r.classList.toggle("show")},o=e.firstname??"Usuario";return n.jsx("div",{className:"comment-item",children:n.jsxs("div",{style:{display:"flex",gap:"14px"},children:[e&&e.picture&&e.picture!==""?n.jsx("img",{className:"comment-avatar-img",src:e.picture,alt:e.username}):n.jsx("div",{className:"comment-avatar",children:o.charAt(0).toUpperCase()}),n.jsxs("div",{style:{flex:1},children:[n.jsxs("div",{className:"comment-header",children:[n.jsxs("span",{className:"comment-username user-welcome",children:["Hola ",o,"!"]}),n.jsx("div",{className:"user-actions-options",children:n.jsx("button",{onClick:()=>{t()},children:"Cerrar Sesion"})}),n.jsx("button",{className:"user-actions-span",onClick:s,children:n.jsx(qn,{width:13,height:13,fill:"black"})})]}),n.jsx("p",{className:"comment-text",children:a})]})]})})},Ae={overlay:"_overlay_1ng7z_5",popup:"_popup_1ng7z_33",title:"_title_1ng7z_79",optionsContainer:"_optionsContainer_1ng7z_103",option:"_option_1ng7z_103",radioInput:"_radioInput_1ng7z_131",radioCustom:"_radioCustom_1ng7z_139",optionLabel:"_optionLabel_1ng7z_193",buttons:"_buttons_1ng7z_219",cancelButton:"_cancelButton_1ng7z_233",closeButton:"_closeButton_1ng7z_235",buttonAlone:"_buttonAlone_1ng7z_273",reportButton:"_reportButton_1ng7z_285",successContainer:"_successContainer_1ng7z_325",thumbsUp:"_thumbsUp_1ng7z_341",successMessage:"_successMessage_1ng7z_353",errorMessage:"_errorMessage_1ng7z_435",loadingContainer:"_loadingContainer_1ng7z_461"},Tr=async(e,t)=>{if(!e)return!1;const{CAPTCHA_PROJECT:a,CAPTCHA_KEY_V2:s,COMMENTS_CAPTCHA_API_KEY:o}=t;try{const r=a,i=s,d=await(await fetch(`https://recaptchaenterprise.googleapis.com/v1/projects/${r}/assessments?key=${o}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({event:{token:e,siteKey:i}})})).json();return console.log("reCAPTCHA Enterprise verification result:",d),d.tokenProperties?.valid===!0}catch(r){return console.error("Error verificando reCAPTCHA Enterprise:",r),!1}};async function O1({publication:e,username:t,id:a,type:s,baseUrl:o,captchaToken:r,apiToken:i,securityToken:c,COMMENTS_VARS:h}){if(!e||!t||!a||!s||!r)throw new Error("Faltan parámetros requeridos: publication, username, id, type, captchaToken");if(typeof e!="string"||typeof t!="string"||typeof a!="string"||typeof s!="string"||typeof r!="string")throw new Error("Todos los parámetros deben ser strings");if(!await Tr(r,h))throw new Error("Token de captcha inválido");if(!i)throw new Error("Falta el token de API del CMS");const d=`${o}/system/modules/com.tfsla.diario.base/templates/hit/5.0/1/newcomments/report`,l=encodeURIComponent(s),u=new URLSearchParams({publication:e,username:t??!1,id:a,type:l}),f=`${d}?${u.toString()}`;try{console.log("Reporting comment:",{publication:e,username:t,id:a,type:s,encodedType:l,url:f});const p=await re.get(f,{headers:{"User-Agent":"blu3st@ck-react","x-security-token":c,"x-api-token":i,"Content-Type":"application/json"}});if(console.log("Report response:",p.data),p.status===200||p.status===201)return{type:"success",message:"Comentario reportado exitosamente",status:p.status,data:p.data};throw new Error(`Respuesta inesperada del servidor: ${p.status}`)}catch(p){if(console.error("Error reporting comment:",p),re.isAxiosError(p)){const m=p.response?.status,g=p.response?.data;throw m===400?new Error("Datos inválidos para el reporte"):m===401?new Error("Token de API inválido"):m===403?new Error("Acceso denegado para reportar comentario"):m===404?new Error("Comentario no encontrado"):m===409?new Error("El comentario ya fue reportado por este usuario"):m===500?new Error("Error interno del servidor CMS"):new Error(g?.error||g?.message||`Error HTTP ${m}: No se pudo reportar el comentario`)}throw p}}const Qn={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 M1(e){return Qn[e]}var Hn={exports:{}},Fn={exports:{}},se={};var kr;function D1(){if(kr)return se;kr=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,a=e?Symbol.for("react.portal"):60106,s=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,r=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,h=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,l=e?Symbol.for("react.forward_ref"):60112,u=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,A=e?Symbol.for("react.fundamental"):60117,C=e?Symbol.for("react.responder"):60118,S=e?Symbol.for("react.scope"):60119;function _(w){if(typeof w=="object"&&w!==null){var T=w.$$typeof;switch(T){case t:switch(w=w.type,w){case h:case d:case s:case r:case o:case u:return w;default:switch(w=w&&w.$$typeof,w){case c:case l:case m:case p:case i:return w;default:return T}}case a:return T}}}function I(w){return _(w)===d}return se.AsyncMode=h,se.ConcurrentMode=d,se.ContextConsumer=c,se.ContextProvider=i,se.Element=t,se.ForwardRef=l,se.Fragment=s,se.Lazy=m,se.Memo=p,se.Portal=a,se.Profiler=r,se.StrictMode=o,se.Suspense=u,se.isAsyncMode=function(w){return I(w)||_(w)===h},se.isConcurrentMode=I,se.isContextConsumer=function(w){return _(w)===c},se.isContextProvider=function(w){return _(w)===i},se.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===t},se.isForwardRef=function(w){return _(w)===l},se.isFragment=function(w){return _(w)===s},se.isLazy=function(w){return _(w)===m},se.isMemo=function(w){return _(w)===p},se.isPortal=function(w){return _(w)===a},se.isProfiler=function(w){return _(w)===r},se.isStrictMode=function(w){return _(w)===o},se.isSuspense=function(w){return _(w)===u},se.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===s||w===d||w===r||w===o||w===u||w===f||typeof w=="object"&&w!==null&&(w.$$typeof===m||w.$$typeof===p||w.$$typeof===i||w.$$typeof===c||w.$$typeof===l||w.$$typeof===A||w.$$typeof===C||w.$$typeof===S||w.$$typeof===g)},se.typeOf=_,se}var oe={};var Ur;function $1(){return Ur||(Ur=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,a=e?Symbol.for("react.portal"):60106,s=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,r=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,h=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,l=e?Symbol.for("react.forward_ref"):60112,u=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,A=e?Symbol.for("react.fundamental"):60117,C=e?Symbol.for("react.responder"):60118,S=e?Symbol.for("react.scope"):60119;function _(M){return typeof M=="string"||typeof M=="function"||M===s||M===d||M===r||M===o||M===u||M===f||typeof M=="object"&&M!==null&&(M.$$typeof===m||M.$$typeof===p||M.$$typeof===i||M.$$typeof===c||M.$$typeof===l||M.$$typeof===A||M.$$typeof===C||M.$$typeof===S||M.$$typeof===g)}function I(M){if(typeof M=="object"&&M!==null){var Ce=M.$$typeof;switch(Ce){case t:var Kn=M.type;switch(Kn){case h:case d:case s:case r:case o:case u:return Kn;default:var Jr=Kn&&Kn.$$typeof;switch(Jr){case c:case l:case m:case p:case i:return Jr;default:return Ce}}case a:return Ce}}}var w=h,T=d,U=c,Q=i,X=t,H=l,D=s,Z=m,ne=p,q=a,x=r,k=o,j=u,B=!1;function V(M){return B||(B=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),y(M)||I(M)===h}function y(M){return I(M)===d}function N(M){return I(M)===c}function O(M){return I(M)===i}function G(M){return typeof M=="object"&&M!==null&&M.$$typeof===t}function $(M){return I(M)===l}function F(M){return I(M)===s}function W(M){return I(M)===m}function Y(M){return I(M)===p}function ee(M){return I(M)===a}function te(M){return I(M)===r}function K(M){return I(M)===o}function de(M){return I(M)===u}oe.AsyncMode=w,oe.ConcurrentMode=T,oe.ContextConsumer=U,oe.ContextProvider=Q,oe.Element=X,oe.ForwardRef=H,oe.Fragment=D,oe.Lazy=Z,oe.Memo=ne,oe.Portal=q,oe.Profiler=x,oe.StrictMode=k,oe.Suspense=j,oe.isAsyncMode=V,oe.isConcurrentMode=y,oe.isContextConsumer=N,oe.isContextProvider=O,oe.isElement=G,oe.isForwardRef=$,oe.isFragment=F,oe.isLazy=W,oe.isMemo=Y,oe.isPortal=ee,oe.isProfiler=te,oe.isStrictMode=K,oe.isSuspense=de,oe.isValidElementType=_,oe.typeOf=I})()),oe}var xr;function ja(){return xr||(xr=1,process.env.NODE_ENV==="production"?Fn.exports=D1():Fn.exports=$1()),Fn.exports}var Ga,Lr;function j1(){if(Lr)return Ga;Lr=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;function s(r){if(r==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(r)}function o(){try{if(!Object.assign)return!1;var r=new String("abc");if(r[5]="de",Object.getOwnPropertyNames(r)[0]==="5")return!1;for(var i={},c=0;c<10;c++)i["_"+String.fromCharCode(c)]=c;var h=Object.getOwnPropertyNames(i).map(function(l){return i[l]});if(h.join("")!=="0123456789")return!1;var d={};return"abcdefghijklmnopqrst".split("").forEach(function(l){d[l]=l}),Object.keys(Object.assign({},d)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Ga=o()?Object.assign:function(r,i){for(var c,h=s(r),d,l=1;l<arguments.length;l++){c=Object(arguments[l]);for(var u in c)t.call(c,u)&&(h[u]=c[u]);if(e){d=e(c);for(var f=0;f<d.length;f++)a.call(c,d[f])&&(h[d[f]]=c[d[f]])}}return h},Ga}var Qa,Br;function Ha(){if(Br)return Qa;Br=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Qa=e,Qa}var Fa,qr;function Pr(){return qr||(qr=1,Fa=Function.call.bind(Object.prototype.hasOwnProperty)),Fa}var za,Or;function G1(){if(Or)return za;Or=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Ha(),a={},s=Pr();e=function(r){var i="Warning: "+r;typeof console<"u"&&console.error(i);try{throw new Error(i)}catch{}}}function o(r,i,c,h,d){if(process.env.NODE_ENV!=="production"){for(var l in r)if(s(r,l)){var u;try{if(typeof r[l]!="function"){var f=Error((h||"React class")+": "+c+" type `"+l+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof r[l]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw f.name="Invariant Violation",f}u=r[l](i,l,h,c,null,t)}catch(m){u=m}if(u&&!(u instanceof Error)&&e((h||"React class")+": type specification of "+c+" `"+l+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof u+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),u instanceof Error&&!(u.message in a)){a[u.message]=!0;var p=d?d():"";e("Failed "+c+" type: "+u.message+(p??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(a={})},za=o,za}var Va,Mr;function Q1(){if(Mr)return Va;Mr=1;var e=ja(),t=j1(),a=Ha(),s=Pr(),o=G1(),r=function(){};process.env.NODE_ENV!=="production"&&(r=function(c){var h="Warning: "+c;typeof console<"u"&&console.error(h);try{throw new Error(h)}catch{}});function i(){return null}return Va=function(c,h){var d=typeof Symbol=="function"&&Symbol.iterator,l="@@iterator";function u(y){var N=y&&(d&&y[d]||y[l]);if(typeof N=="function")return N}var f="<<anonymous>>",p={array:C("array"),bigint:C("bigint"),bool:C("boolean"),func:C("function"),number:C("number"),object:C("object"),string:C("string"),symbol:C("symbol"),any:S(),arrayOf:_,element:I(),elementType:w(),instanceOf:T,node:H(),objectOf:Q,oneOf:U,oneOfType:X,shape:Z,exact:ne};function m(y,N){return y===N?y!==0||1/y===1/N:y!==y&&N!==N}function g(y,N){this.message=y,this.data=N&&typeof N=="object"?N:{},this.stack=""}g.prototype=Error.prototype;function A(y){if(process.env.NODE_ENV!=="production")var N={},O=0;function G(F,W,Y,ee,te,K,de){if(ee=ee||f,K=K||Y,de!==a){if(h){var M=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw M.name="Invariant Violation",M}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Ce=ee+":"+Y;!N[Ce]&&O<3&&(r("You are manually calling a React.PropTypes validation function for the `"+K+"` prop on `"+ee+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),N[Ce]=!0,O++)}}return W[Y]==null?F?W[Y]===null?new g("The "+te+" `"+K+"` is marked as required "+("in `"+ee+"`, but its value is `null`.")):new g("The "+te+" `"+K+"` is marked as required in "+("`"+ee+"`, but its value is `undefined`.")):null:y(W,Y,ee,te,K)}var $=G.bind(null,!1);return $.isRequired=G.bind(null,!0),$}function C(y){function N(O,G,$,F,W,Y){var ee=O[G],te=k(ee);if(te!==y){var K=j(ee);return new g("Invalid "+F+" `"+W+"` of type "+("`"+K+"` supplied to `"+$+"`, expected ")+("`"+y+"`."),{expectedType:y})}return null}return A(N)}function S(){return A(i)}function _(y){function N(O,G,$,F,W){if(typeof y!="function")return new g("Property `"+W+"` of component `"+$+"` has invalid PropType notation inside arrayOf.");var Y=O[G];if(!Array.isArray(Y)){var ee=k(Y);return new g("Invalid "+F+" `"+W+"` of type "+("`"+ee+"` supplied to `"+$+"`, expected an array."))}for(var te=0;te<Y.length;te++){var K=y(Y,te,$,F,W+"["+te+"]",a);if(K instanceof Error)return K}return null}return A(N)}function I(){function y(N,O,G,$,F){var W=N[O];if(!c(W)){var Y=k(W);return new g("Invalid "+$+" `"+F+"` of type "+("`"+Y+"` supplied to `"+G+"`, expected a single ReactElement."))}return null}return A(y)}function w(){function y(N,O,G,$,F){var W=N[O];if(!e.isValidElementType(W)){var Y=k(W);return new g("Invalid "+$+" `"+F+"` of type "+("`"+Y+"` supplied to `"+G+"`, expected a single ReactElement type."))}return null}return A(y)}function T(y){function N(O,G,$,F,W){if(!(O[G]instanceof y)){var Y=y.name||f,ee=V(O[G]);return new g("Invalid "+F+" `"+W+"` of type "+("`"+ee+"` supplied to `"+$+"`, expected ")+("instance of `"+Y+"`."))}return null}return A(N)}function U(y){if(!Array.isArray(y))return process.env.NODE_ENV!=="production"&&(arguments.length>1?r("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):r("Invalid argument supplied to oneOf, expected an array.")),i;function N(O,G,$,F,W){for(var Y=O[G],ee=0;ee<y.length;ee++)if(m(Y,y[ee]))return null;var te=JSON.stringify(y,function(de,M){var Ce=j(M);return Ce==="symbol"?String(M):M});return new g("Invalid "+F+" `"+W+"` of value `"+String(Y)+"` "+("supplied to `"+$+"`, expected one of "+te+"."))}return A(N)}function Q(y){function N(O,G,$,F,W){if(typeof y!="function")return new g("Property `"+W+"` of component `"+$+"` has invalid PropType notation inside objectOf.");var Y=O[G],ee=k(Y);if(ee!=="object")return new g("Invalid "+F+" `"+W+"` of type "+("`"+ee+"` supplied to `"+$+"`, expected an object."));for(var te in Y)if(s(Y,te)){var K=y(Y,te,$,F,W+"."+te,a);if(K instanceof Error)return K}return null}return A(N)}function X(y){if(!Array.isArray(y))return process.env.NODE_ENV!=="production"&&r("Invalid argument supplied to oneOfType, expected an instance of array."),i;for(var N=0;N<y.length;N++){var O=y[N];if(typeof O!="function")return r("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+B(O)+" at index "+N+"."),i}function G($,F,W,Y,ee){for(var te=[],K=0;K<y.length;K++){var de=y[K],M=de($,F,W,Y,ee,a);if(M==null)return null;M.data&&s(M.data,"expectedType")&&te.push(M.data.expectedType)}var Ce=te.length>0?", expected one of type ["+te.join(", ")+"]":"";return new g("Invalid "+Y+" `"+ee+"` supplied to "+("`"+W+"`"+Ce+"."))}return A(G)}function H(){function y(N,O,G,$,F){return q(N[O])?null:new g("Invalid "+$+" `"+F+"` supplied to "+("`"+G+"`, expected a ReactNode."))}return A(y)}function D(y,N,O,G,$){return new g((y||"React class")+": "+N+" type `"+O+"."+G+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+$+"`.")}function Z(y){function N(O,G,$,F,W){var Y=O[G],ee=k(Y);if(ee!=="object")return new g("Invalid "+F+" `"+W+"` of type `"+ee+"` "+("supplied to `"+$+"`, expected `object`."));for(var te in y){var K=y[te];if(typeof K!="function")return D($,F,W,te,j(K));var de=K(Y,te,$,F,W+"."+te,a);if(de)return de}return null}return A(N)}function ne(y){function N(O,G,$,F,W){var Y=O[G],ee=k(Y);if(ee!=="object")return new g("Invalid "+F+" `"+W+"` of type `"+ee+"` "+("supplied to `"+$+"`, expected `object`."));var te=t({},O[G],y);for(var K in te){var de=y[K];if(s(y,K)&&typeof de!="function")return D($,F,W,K,j(de));if(!de)return new g("Invalid "+F+" `"+W+"` key `"+K+"` supplied to `"+$+"`.\nBad object: "+JSON.stringify(O[G],null," ")+`
|
|
261
|
-
Valid keys: `+JSON.stringify(Object.keys(y),null," "));var M=de(Y,K,$,F,W+"."+K,a);if(M)return M}return null}return A(N)}function q(y){switch(typeof y){case"number":case"string":case"undefined":return!0;case"boolean":return!y;case"object":if(Array.isArray(y))return y.every(q);if(y===null||c(y))return!0;var N=u(y);if(N){var O=N.call(y),G;if(N!==y.entries){for(;!(G=O.next()).done;)if(!q(G.value))return!1}else for(;!(G=O.next()).done;){var $=G.value;if($&&!q($[1]))return!1}}else return!1;return!0;default:return!1}}function x(y,N){return y==="symbol"?!0:N?N["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&N instanceof Symbol:!1}function k(y){var N=typeof y;return Array.isArray(y)?"array":y instanceof RegExp?"object":x(N,y)?"symbol":N}function j(y){if(typeof y>"u"||y===null)return""+y;var N=k(y);if(N==="object"){if(y instanceof Date)return"date";if(y instanceof RegExp)return"regexp"}return N}function B(y){var N=j(y);switch(N){case"array":case"object":return"an "+N;case"boolean":case"date":case"regexp":return"a "+N;default:return N}}function V(y){return!y.constructor||!y.constructor.name?f:y.constructor.name}return p.checkPropTypes=o,p.resetWarningCache=o.resetWarningCache,p.PropTypes=p,p},Va}var Wa,Dr;function H1(){if(Dr)return Wa;Dr=1;var e=Ha();function t(){}function a(){}return a.resetWarningCache=t,Wa=function(){function s(i,c,h,d,l,u){if(u!==e){var f=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw f.name="Invariant Violation",f}}s.isRequired=s;function o(){return s}var r={array:s,bigint:s,bool:s,func:s,number:s,object:s,string:s,symbol:s,any:s,arrayOf:o,element:s,elementType:s,instanceOf:o,node:s,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:a,resetWarningCache:t};return r.PropTypes=r,r},Wa}var $r;function F1(){if($r)return Hn.exports;if($r=1,process.env.NODE_ENV!=="production"){var e=ja(),t=!0;Hn.exports=Q1()(e.isElement,t)}else Hn.exports=H1()();return Hn.exports}var z1=F1();const Ne=bt(z1);var V1=["sitekey","onChange","theme","type","tabindex","onExpired","onErrored","size","stoken","grecaptcha","badge","hl","isolated"];function Ya(){return Ya=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(e[s]=a[s])}return e},Ya.apply(this,arguments)}function W1(e,t){if(e==null)return{};var a={},s=Object.keys(e),o,r;for(r=0;r<s.length;r++)o=s[r],!(t.indexOf(o)>=0)&&(a[o]=e[o]);return a}function zn(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Y1(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ka(e,t)}function Ka(e,t){return Ka=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(s,o){return s.__proto__=o,s},Ka(e,t)}var Vn=(function(e){Y1(t,e);function t(){var s;return s=e.call(this)||this,s.handleExpired=s.handleExpired.bind(zn(s)),s.handleErrored=s.handleErrored.bind(zn(s)),s.handleChange=s.handleChange.bind(zn(s)),s.handleRecaptchaRef=s.handleRecaptchaRef.bind(zn(s)),s}var a=t.prototype;return a.getCaptchaFunction=function(o){return this.props.grecaptcha?this.props.grecaptcha.enterprise?this.props.grecaptcha.enterprise[o]:this.props.grecaptcha[o]:null},a.getValue=function(){var o=this.getCaptchaFunction("getResponse");return o&&this._widgetId!==void 0?o(this._widgetId):null},a.getWidgetId=function(){return this.props.grecaptcha&&this._widgetId!==void 0?this._widgetId:null},a.execute=function(){var o=this.getCaptchaFunction("execute");if(o&&this._widgetId!==void 0)return o(this._widgetId);this._executeRequested=!0},a.executeAsync=function(){var o=this;return new Promise(function(r,i){o.executionResolve=r,o.executionReject=i,o.execute()})},a.reset=function(){var o=this.getCaptchaFunction("reset");o&&this._widgetId!==void 0&&o(this._widgetId)},a.forceReset=function(){var o=this.getCaptchaFunction("reset");o&&o()},a.handleExpired=function(){this.props.onExpired?this.props.onExpired():this.handleChange(null)},a.handleErrored=function(){this.props.onErrored&&this.props.onErrored(),this.executionReject&&(this.executionReject(),delete this.executionResolve,delete this.executionReject)},a.handleChange=function(o){this.props.onChange&&this.props.onChange(o),this.executionResolve&&(this.executionResolve(o),delete this.executionReject,delete this.executionResolve)},a.explicitRender=function(){var o=this.getCaptchaFunction("render");if(o&&this._widgetId===void 0){var r=document.createElement("div");this._widgetId=o(r,{sitekey:this.props.sitekey,callback:this.handleChange,theme:this.props.theme,type:this.props.type,tabindex:this.props.tabindex,"expired-callback":this.handleExpired,"error-callback":this.handleErrored,size:this.props.size,stoken:this.props.stoken,hl:this.props.hl,badge:this.props.badge,isolated:this.props.isolated}),this.captcha.appendChild(r)}this._executeRequested&&this.props.grecaptcha&&this._widgetId!==void 0&&(this._executeRequested=!1,this.execute())},a.componentDidMount=function(){this.explicitRender()},a.componentDidUpdate=function(){this.explicitRender()},a.handleRecaptchaRef=function(o){this.captcha=o},a.render=function(){var o=this.props;o.sitekey,o.onChange,o.theme,o.type,o.tabindex,o.onExpired,o.onErrored,o.size,o.stoken,o.grecaptcha,o.badge,o.hl,o.isolated;var r=W1(o,V1);return es.createElement("div",Ya({},r,{ref:this.handleRecaptchaRef}))},t})(es.Component);Vn.displayName="ReCAPTCHA",Vn.propTypes={sitekey:Ne.string.isRequired,onChange:Ne.func,grecaptcha:Ne.object,theme:Ne.oneOf(["dark","light"]),type:Ne.oneOf(["image","audio"]),tabindex:Ne.number,onExpired:Ne.func,onErrored:Ne.func,size:Ne.oneOf(["compact","normal","invisible"]),stoken:Ne.string,hl:Ne.string,badge:Ne.oneOf(["bottomright","bottomleft","inline"]),isolated:Ne.bool},Vn.defaultProps={onChange:function(){},theme:"light",type:"image",tabindex:0,size:"normal",badge:"bottomright"};var Ja,jr;function K1(){if(jr)return Ja;jr=1;var e=ja(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},r={};r[e.ForwardRef]=s,r[e.Memo]=o;function i(m){return e.isMemo(m)?o:r[m.$$typeof]||t}var c=Object.defineProperty,h=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,l=Object.getOwnPropertyDescriptor,u=Object.getPrototypeOf,f=Object.prototype;function p(m,g,A){if(typeof g!="string"){if(f){var C=u(g);C&&C!==f&&p(m,C,A)}var S=h(g);d&&(S=S.concat(d(g)));for(var _=i(m),I=i(g),w=0;w<S.length;++w){var T=S[w];if(!a[T]&&!(A&&A[T])&&!(I&&I[T])&&!(_&&_[T])){var U=l(g,T);try{c(m,T,U)}catch{}}}}return m}return Ja=p,Ja}var J1=K1();const Z1=bt(J1);function Za(){return Za=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(e[s]=a[s])}return e},Za.apply(this,arguments)}function X1(e,t){if(e==null)return{};var a={},s=Object.keys(e),o,r;for(r=0;r<s.length;r++)o=s[r],!(t.indexOf(o)>=0)&&(a[o]=e[o]);return a}function R1(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var De={},eh=0;function th(e,t){return t=t||{},function(s){var o=s.displayName||s.name||"Component",r=(function(c){R1(h,c);function h(l,u){var f;return f=c.call(this,l,u)||this,f.state={},f.__scriptURL="",f}var d=h.prototype;return d.asyncScriptLoaderGetScriptLoaderID=function(){return this.__scriptLoaderID||(this.__scriptLoaderID="async-script-loader-"+eh++),this.__scriptLoaderID},d.setupScriptURL=function(){return this.__scriptURL=typeof e=="function"?e():e,this.__scriptURL},d.asyncScriptLoaderHandleLoad=function(u){var f=this;this.setState(u,function(){return f.props.asyncScriptOnLoad&&f.props.asyncScriptOnLoad(f.state)})},d.asyncScriptLoaderTriggerOnScriptLoaded=function(){var u=De[this.__scriptURL];if(!u||!u.loaded)throw new Error("Script is not loaded.");for(var f in u.observers)u.observers[f](u);delete window[t.callbackName]},d.componentDidMount=function(){var u=this,f=this.setupScriptURL(),p=this.asyncScriptLoaderGetScriptLoaderID(),m=t,g=m.globalName,A=m.callbackName,C=m.scriptId;if(g&&typeof window[g]<"u"&&(De[f]={loaded:!0,observers:{}}),De[f]){var S=De[f];if(S&&(S.loaded||S.errored)){this.asyncScriptLoaderHandleLoad(S);return}S.observers[p]=function(U){return u.asyncScriptLoaderHandleLoad(U)};return}var _={};_[p]=function(U){return u.asyncScriptLoaderHandleLoad(U)},De[f]={loaded:!1,observers:_};var I=document.createElement("script");I.src=f,I.async=!0;for(var w in t.attributes)I.setAttribute(w,t.attributes[w]);C&&(I.id=C);var T=function(Q){if(De[f]){var X=De[f],H=X.observers;for(var D in H)Q(H[D])&&delete H[D]}};A&&typeof window<"u"&&(window[A]=function(){return u.asyncScriptLoaderTriggerOnScriptLoaded()}),I.onload=function(){var U=De[f];U&&(U.loaded=!0,T(function(Q){return A?!1:(Q(U),!0)}))},I.onerror=function(){var U=De[f];U&&(U.errored=!0,T(function(Q){return Q(U),!0}))},document.body.appendChild(I)},d.componentWillUnmount=function(){var u=this.__scriptURL;if(t.removeOnUnmount===!0)for(var f=document.getElementsByTagName("script"),p=0;p<f.length;p+=1)f[p].src.indexOf(u)>-1&&f[p].parentNode&&f[p].parentNode.removeChild(f[p]);var m=De[u];m&&(delete m.observers[this.asyncScriptLoaderGetScriptLoaderID()],t.removeOnUnmount===!0&&delete De[u])},d.render=function(){var u=t.globalName,f=this.props;f.asyncScriptOnLoad;var p=f.forwardedRef,m=X1(f,["asyncScriptOnLoad","forwardedRef"]);return u&&typeof window<"u"&&(m[u]=typeof window[u]<"u"?window[u]:void 0),m.ref=p,E.createElement(s,m)},h})(E.Component),i=E.forwardRef(function(c,h){return E.createElement(r,Za({},c,{forwardedRef:h}))});return i.displayName="AsyncScriptLoader("+o+")",i.propTypes={asyncScriptOnLoad:Ne.func},Z1(i,s)}}var Xa="onloadcallback",nh="grecaptcha";function Ra(){return typeof window<"u"&&window.recaptchaOptions||{}}function ah(){var e=Ra(),t=e.useRecaptchaNet?"recaptcha.net":"www.google.com";return e.enterprise?"https://"+t+"/recaptcha/enterprise.js?onload="+Xa+"&render=explicit":"https://"+t+"/recaptcha/api.js?onload="+Xa+"&render=explicit"}const Gr=th(ah,{callbackName:Xa,globalName:nh,attributes:Ra().nonce?{nonce:Ra().nonce}:{}})(Vn),sh={reportAbuseTitle:"Reportar Abuso",errorAlreadyReported:"Ya has reportado este comentario.",errorReportComment:"Error al reportar comentario",cancelButton:"Cancelar",reportButton:"Reportar",reportSuccessMessage:"¡Gracias por reportar!",reportCloseButton:"Cerrar"},oh=({isOpen:e,onClose:t,commentId:a,publication:s,username:o,CAPTCHA_KEY_V2:r,texts:i})=>{const c={...sh,...i?.comentarios},h={...Qn,...c.reportReasons??{}},[d,l]=E.useState("form"),[u,f]=E.useState(""),[p,m]=E.useState(""),[g,A]=E.useState(""),C=[{id:"spam",label:h.spam},{id:"inappropriate",label:h.inappropriate},{id:"hate",label:h.hate},{id:"misinformation",label:h.misinformation},{id:"terrorism",label:h.terrorism},{id:"intellectual",label:h.intellectual},{id:"bullying",label:h.bullying}],S=async()=>{if(!(!u||!a)){if(vr(document).includes(a)){m(c.errorAlreadyReported);return}l("loading"),m("");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:g,type:Qn[u]})})).json();if(w.type==="success")p1(document,a),l("success"),setTimeout(()=>{_()},3e3);else throw new Error(w.message||c.errorReportComment)}catch(I){console.error("Error reporting comment:",I),m(I.message||c.errorReportComment),l("form")}}},_=()=>{l("form"),f(""),m(""),t()};return!e||!a||!o?null:n.jsx("div",{className:Ae.overlay,children:n.jsxs("div",{className:Ae.popup,children:[n.jsx("button",{className:"close-reply-form",onClick:_,children:n.jsx(Et,{})}),n.jsx("h2",{className:Ae.title,children:c.reportAbuseTitle}),d==="loading"&&n.jsx("div",{className:Ae.loadingContainer,children:n.jsx(Re,{})}),d==="form"||d==="loading"?n.jsxs(n.Fragment,{children:[n.jsx("div",{className:Ae.optionsContainer,children:C.map(I=>n.jsxs("label",{className:Ae.option,children:[n.jsx("input",{type:"radio",name:"reportReason",value:I.id,checked:u===I.id,onChange:w=>f(w.target.value),className:Ae.radioInput}),n.jsx("span",{className:Ae.radioCustom}),n.jsx("span",{className:Ae.optionLabel,children:I.label})]},I.id))}),p&&n.jsx("div",{className:Ae.errorMessage,children:p}),n.jsx(Gr,{sitekey:r,theme:"light",size:"normal",onChange:I=>A(I??""),onExpired:()=>A("")}),n.jsxs("div",{className:Ae.buttons,children:[n.jsx("button",{onClick:_,className:Ae.cancelButton,children:c.cancelButton}),n.jsx("button",{onClick:S,disabled:!u,className:Ae.reportButton,children:c.reportButton})]})]}):n.jsxs(n.Fragment,{children:[n.jsxs("div",{className:Ae.successContainer,children:[n.jsx("div",{className:Ae.thumbsUp,children:n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:132,height:120,fill:"none",children:n.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"})})}),n.jsx("p",{className:Ae.successMessage,children:c.reportSuccessMessage})]}),n.jsx("div",{className:Ae.buttons,children:n.jsx("button",{onClick:_,className:[Ae.closeButton,Ae.buttonAlone].join(" "),children:c.reportCloseButton})})]})]})})};function rh(e){const t=/^\[\[([^\]]+)\]\]/,a=e.match(t);return a?{user:{username:a[1],firstname:a[1],lastname:""},text:e.replace("[["+a[1]+"]]","")}:{user:!1,text:e}}function Wn(e){const t=e.comments.map(a=>{if(a.user)return{...a,user:a.user,text:a.text,reply:a.reply?Wn({comments:a.reply}).comments:a.reply};const{user:s,text:o}=rh(a.text);return{...a,user:s||!1,text:o,reply:a.reply?Wn({comments:a.reply}).comments:a.reply}});return{...e,comments:t}}async function Yn({publication:e,path:t,size:a=5,sizereply:s=2,id:o,lastid:r,state:i="5,6",apiToken:c,API_ENV:h}){const{PUBLIC_ENV:d}=h;if(d==="prod"){const l=await Qr({publication:e,path:t,size:a,sizereply:s,id:o,lastid:r,state:i,apiToken:c,API_ENV:h});return Wn(l[0])}else{const l=await fetch(`/api/comments-get?publication=${e}&path=${t}&size=${a}&sizereply=${s}&lastid=${r}`);if(!l.ok)throw new Error(`Error al obtener comentarios: ${l.status}`);const u=await l.json();return Wn(u.data[0])}}async function Qr({publication:e,path:t,size:a=5,sizereply:s=2,id:o,lastid:r,state:i="5,6",apiToken:c,API_ENV:h}){if(!e||!t)throw new Error("Missing required parameters: publication and path");if(typeof e!="string"||typeof t!="string")throw new Error("Invalid input types for publication or path");if(!c)throw new Error("Missing CMS API token");const{PUBLIC_ENV:d,PUBLIC_API_HOST:l="dummy",PUBLIC_API_PATH:u,PUBLIC_API_PATH_VERSION:f}=h,p=parseInt(String(a),10),m=parseInt(String(s),10);if(isNaN(p)||p<=0)throw new Error("Invalid size parameter");if(isNaN(m)||m<0)throw new Error("Invalid sizereply parameter");const g=d!=="prod"?`${l}${u}`:"",A=new URLSearchParams({publication:e,path:t,size:p.toString(),sizereply:m.toString(),state:i});o&&A.append("id",o),r&&A.append("lastid",r);const C=`${g}${f}/newcomments/get?${A.toString()}`;try{console.log("Fetching comments from:",C);const{data:S}=await re.get(C,{headers:{"x-api-token":c,"Cache-Control":"max-age=0, no-cache, no-store, must-revalidate",Pragma:"no-cache",Expires:"0"}});if(!S)throw new Error("No comments data received");return S.data||S||[]}catch(S){if(console.error("Error fetching comments:",S),re.isAxiosError(S)){const _=S.response?.status,I=S.response?.data;throw _===404?new Error("Comments not found"):_===403?new Error("Access forbidden - check API token"):_===401?new Error("Unauthorized - invalid API token"):_===500?new Error("Internal server error from CMS"):new Error(I?.error||I?.message||`HTTP ${_}: Failed to fetch comments`)}throw S}}const ih=(e,t)=>{const[a,s]=E.useState(void 0),{PUBLIC_PUBLICATION_ID:o}=t,r=o;return E.useEffect(()=>{if(a)return;(async()=>{const{PUBLIC_X_SECURITY_TOKEN:c}=t;try{const h=await Yn({publication:r,path:e??"",size:5,sizereply:2,id:void 0,lastid:void 0,state:"5,6",apiToken:c,API_ENV:t});s(h??[])}catch(h){console.error(h),s({comments:[],morecomment:!1})}})()},[a]),{comments:a,setComments:s}},Hr=({username:e,date:t,DATE_CONFIG:a})=>n.jsxs("div",{className:"comment-header",children:[n.jsx("span",{className:"comment-username",children:e}),n.jsx("span",{className:"comment-header-dot",children:"•"}),n.jsx("span",{className:"comment-date",children:g1(Be(Number(t),a))})]}),Fr=({user:e})=>n.jsx("div",{className:"comment-avatar",children:e.picture?n.jsx("img",{className:"comment-avatar-img",src:e.picture,alt:e.username}):e.firstname.charAt(0).toUpperCase()}),zr=({isReply:e=!1,onReply:t,onFlag:a})=>n.jsxs("div",{className:"comment-actions",children:[!e&&t&&n.jsx("button",{onClick:t,className:"comment-action-btn",children:n.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",children:[n.jsx("g",{clipPath:"url(#a)",children:n.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"})}),n.jsx("defs",{children:n.jsx("clipPath",{id:"a",children:n.jsx("path",{fill:"#fff",d:"M0 0h23.942v24H0z"})})})]})}),n.jsx("button",{onClick:a,className:"comment-action-btn",children:n.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:25,height:24,fill:"none",children:[n.jsx("g",{clipPath:"url(#a)",children:n.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"})}),n.jsx("defs",{children:n.jsx("clipPath",{id:"a",children:n.jsx("path",{fill:"#fff",d:"M.133 0h24v24h-24z"})})})]})})]}),Vr=({commentRef:e,captchaToken:t="",setIsDisabled:a,API_ENV:s})=>(E.useEffect(()=>{const o=e.current;if(!o)return;const r=()=>{const c=o.value.length;o.parentElement&&(o.parentElement.dataset.text=`${c}/${wt}`),o.classList.toggle("over-limit",c>wt),a(!$a(e,t,s).boolean)};return o.addEventListener("input",r),r(),()=>o.removeEventListener("input",r)},[e,t,a]),n.jsxs("div",{children:[n.jsx("label",{className:"comment-input-label",children:"Comentario"}),n.jsx("textarea",{ref:e,name:"comment",placeholder:"Ingresa un comentario",rows:2})]})),Wr=({commentRef:e,captchaToken:t="",setCaptchaToken:a,children:s,API_ENV:o})=>{const r=$a(e,t,o);return n.jsxs("div",{className:"form-actions",children:[n.jsx(Gr,{sitekey:o.CAPTCHA_KEY_V2??"",theme:"light",size:"normal",onChange:i=>a(i??""),onExpired:()=>a("")}),n.jsxs("div",{className:"submit-zone",children:[s,!r.boolean&&n.jsx("p",{className:"submit-warning",children:r.text})]})]})},Yr=({onClick:e,isDisabled:t,API_ENV:a})=>{const[s,o]=E.useState(!1),{S3_ID_DIR:r="",PUBLIC_ENV:i,PUBLIC_API_HOST:c="",PUBLIC_ASSETS_URL:h}=a;E.useEffect(()=>{let l=null;return s&&(l=setTimeout(()=>{o(!1)},2400)),()=>{l&&clearTimeout(l)}},[s]);const d=i=="local"?c:h&&h!=="false"?h:"";return s?n.jsx("div",{className:"success-gif-container",children:n.jsx("img",{className:"success-gif",src:d+"/arte/"+r+"/Success.gif"})}):n.jsxs("button",{type:"button",onClick:async l=>{await e(l)&&o(!0)},id:"comment-button",className:`submit-btn ${t?"disabled":"active"}`,children:["Enviar Comentario",n.jsx("svg",{style:{minWidth:16},width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:n.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"})})]})},Kr=async({path:e,ref:t,captchaToken:a,button:s,user:o,id:r,addComment:i,API_ENV:c})=>{const h=t.current?.value||"",{PUBLIC_PUBLICATION_ID:d}=c,l=d;if(!$a(t,a,c).boolean||!o){const u=s.nextElementSibling;return u&&(u.style.display="block"),!1}try{const u=Date.now(),f=await fetch("/api/comments-add",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({publication:l,path:e,id:r,username:o.username,comment:h,recaptchaResponse:a})});let p=null;try{p=await f.json()}catch(C){console.error("Error parsing JSON response:",C)}if(!f.ok)throw new Error(`Error al enviar comentario: ${p?.message} status: ${f.status}`);const m=Date.now(),g=Math.max(0,2400+Math.abs(m-u)),A={username:o.username,firstname:o.firstname,...o.lastname&&{lastname:o.lastname},...o.picture&&{picture:o.picture}};return i({id:m.toString(),text:h,user:A,date:{time:Date.now()},reply:[]}),t.current&&(t.current.value=""),g}catch(u){return console.error("Error enviando comentario:",u),alert(u.message||"Error al enviar el comentario."),!1}},ch=({replyingTo:e,commentRef:t,user:a,path:s,addReply:o,closeForm:r,API_ENV:i})=>{const[c,h]=E.useState(!0),[d,l]=E.useState(""),u=()=>{t.current?.parentElement&&(t.current.parentElement.dataset.text=`0/${wt}`),h(!0),r()};return n.jsxs("div",{className:"comment-form reply-form",children:[n.jsx("button",{className:"close-reply-form",onClick:u,children:n.jsx(Et,{})}),n.jsx(Vr,{commentRef:t,captchaToken:d,setIsDisabled:h,API_ENV:i}),n.jsx(Wr,{commentRef:t,captchaToken:d,setCaptchaToken:l,API_ENV:i,children:n.jsx(Yr,{onClick:async f=>{if(c)return;const p=await Kr({path:s,ref:t,captchaToken:d,button:f.currentTarget,user:a,id:e,addComment:o,API_ENV:i});return p&&typeof p=="number"?(setTimeout(()=>{u()},p),!0):!1},isDisabled:c,API_ENV:i})})]})},lh=({reply:e,replyingTo:t,user:a,onFlag:s,DATE_CONFIG:o})=>{const r=e.text;let i=`${et.firstname} ${et.lastname??""}`,c=et.username;return e.user&&(i=`${e.user.firstname} ${e.user.lastname??""}`,c=e.user.username),n.jsx("div",{className:"comment-item reply",children:n.jsxs("div",{className:"comment-header-container",children:[n.jsx(Fr,{user:e.user?e.user:et}),n.jsxs("div",{style:{flex:1},children:[n.jsx(Hr,{username:i,date:e.date.time,DATE_CONFIG:o}),n.jsxs("div",{className:"comment-reply-to",children:["Respondiendo a ",n.jsx("strong",{children:t})]}),n.jsx("p",{className:"comment-text",children:r}),a?.username.toLowerCase()!==c.toLowerCase()&&n.jsx(zr,{isReply:!0,onFlag:()=>s(e.id)})]})]})})},dh={moreRepliesButton:"Más Respuestas"},hh=({comment:e,replyingTo:t,path:a,user:s,handleReplyingTo:o,onFlag:r,API_ENV:i,texts:c})=>{const h={...dh,...c?.comentarios},d={morereply:e.morereply??!1,reply:e.reply?e.reply:[]},[l,u]=E.useState(d),[f,p]=E.useState(!1),{PUBLIC_PUBLICATION_ID:m,PUBLIC_X_SECURITY_TOKEN:g}=i,A=e.text,C=E.useRef(null);let S=`${et.firstname} ${et.lastname??""}`,_=et.username;e.user&&(S=`${e.user.firstname} ${e.user.lastname??""}`,_=e.user.username);const I=w=>{u({morereply:l.morereply,reply:[w,...l.reply]})};return n.jsx("div",{className:"comment-item",children:n.jsxs("div",{className:"comment-header-container","data-hasreplies":l.reply.length>0?"true":"false",children:[n.jsx(Fr,{user:e.user?e.user:et}),n.jsxs("div",{style:{flex:1},children:[n.jsx(Hr,{username:S,date:e.date.time,DATE_CONFIG:i}),n.jsx("p",{className:"comment-text",children:A}),s?.username.toLowerCase()!==_.toLowerCase()&&n.jsx(zr,{onReply:()=>o(e.id),onFlag:()=>r(e.id)}),t===e.id&&s&&n.jsx(ch,{replyingTo:t,commentRef:C,addReply:I,user:s,path:a,API_ENV:i,closeForm:()=>o("")}),l.reply.length>0&&n.jsxs("div",{className:"comment-replies",children:[l.reply.map(w=>n.jsx(lh,{user:s,reply:w,replyingTo:S,onFlag:r,DATE_CONFIG:i},w.id)),f?n.jsx("div",{style:{marginLeft:"4rem",position:"relative"},children:n.jsx(Re,{})}):l.morereply&&n.jsx("button",{className:"comment-replies-button reply-button",onClick:async()=>{const w=l.reply[l.reply.length-1]?.id;p(!0);try{const U=await Yn({publication:m??"",path:a??"",size:2,sizereply:2,id:e.id,lastid:w,state:"5,6",apiToken:g??"",API_ENV:i});p(!1),u({morereply:U.morecomment,reply:[...l.reply,...U.comments]})}catch(T){throw p(!1),new Error(`Error al obtener comentarios: ${T}`)}},children:h.moreRepliesButton})]})]})]})})},uh=({commentRef:e,user:t,path:a,addComment:s,API_ENV:o})=>{const[r,i]=E.useState(!0),[c,h]=E.useState("");return n.jsxs("div",{className:"comment-form",children:[n.jsx(Vr,{commentRef:e,captchaToken:c,setIsDisabled:i,API_ENV:o}),n.jsx(Wr,{API_ENV:o,commentRef:e,captchaToken:c,setCaptchaToken:h,children:n.jsx(Yr,{onClick:async d=>{if(r)return;const l=await Kr({path:a,ref:e,captchaToken:c,button:d.currentTarget,user:t,addComment:s,API_ENV:o});return l&&typeof l=="number"?(e.current?.parentElement&&(e.current.parentElement.dataset.text=`0/${wt}`),i(!0),setTimeout(()=>{e.current?.parentElement&&(e.current.parentElement.dataset.text=`0/${wt}`),i(!0)},l),!0):!1},isDisabled:r,API_ENV:o})})]})},fh={commentsSectionTitle:"COMENTARIOS",commentHeaderMessageEmpty:"Se el primero en compartir tu opinión de este artículo.",commentHeaderMessageWithComments:"Comparte tu opinión de este artículo.",loadMoreButton:"Más",moreRepliesButton:"Más Respuestas"},mh=({isAuthenticated:e,path:t,user:a,handleLogout:s,API_ENV:o,texts:r})=>{const i={...fh,...r?.comentarios},{PUBLIC_PUBLICATION_ID:c,PUBLIC_X_SECURITY_TOKEN:h}=o,d=c??"",l=t.replaceAll("/","|"),[u,f]=E.useState(void 0),[p,m]=E.useState(""),{comments:g,setComments:A}=ih(l,o),[C,S]=E.useState(!1),_=E.useRef(null),I=D=>{m(p===D?"":D)},w=D=>{A(g?{...g,comments:[D,...g.comments??[]]}:void 0)},T=D=>{f(D)},U=async()=>{if(!g||!g.morecomment||g.comments.length===0)return;const D=g.comments[g.comments.length-1];if(!D)return;S(!0);const Z=D.id;try{const ne=await Yn({publication:d,path:l??"",size:5,sizereply:2,id:void 0,lastid:Z,state:"5,6",apiToken:h,API_ENV:o});A({morecomment:ne.morecomment??!1,comments:[...g.comments,...ne.comments]}),S(!1)}catch(ne){throw S(!1),new Error(`Error al obtener comentarios: ${ne}`)}},Q=g?.comments&&g.comments.length>0,X=Q?i.commentHeaderMessageWithComments:i.commentHeaderMessageEmpty,H=n.jsx("div",{style:{display:"flex",width:"100%",justifyContent:"center"},children:n.jsx(Re,{})});return n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"comments-container",children:n.jsx(ge,{title:Q||e?i.commentsSectionTitle:!1,children:n.jsxs(n.Fragment,{children:[e&&a&&n.jsxs("div",{className:"comments-header",children:[n.jsx(P1,{user:a,handleLogout:s,message:X}),n.jsx(uh,{commentRef:_,user:a,addComment:w,path:l,API_ENV:o})]}),g?g.comments&&g.comments.length>0?n.jsxs("div",{className:"comments-list","data-isauthenticated":`${e}`,children:[g.comments.map(D=>n.jsx(hh,{comment:D,replyingTo:p,handleReplyingTo:I,onFlag:T,user:a??et,path:l,API_ENV:o,texts:r},D.id)),C&&H]}):null:H,g?.morecomment&&!C&&n.jsx("button",{className:"comment-replies-button",onClick:U,children:i.loadMoreButton})]})})}),n.jsx(oh,{username:a?.username??void 0,publication:d,commentId:u,isOpen:u!==void 0,onClose:()=>f(void 0),CAPTCHA_KEY_V2:o.CAPTCHA_KEY_V2??"",texts:r})]})},gh={commentPromptMessage:"Súmate a la comunidad para dejar tu comentario",loginButtonText:"Iniciar Sesión"};function ph({isAuthenticated:e,setIsAuthenticated:t,loginUrl:a,user:s,path:o,checkAuth:r,icon:i,API_ENV:c,texts:h}){const[d,l]=E.useState(!1),u={...gh,...h?.comentarios},f=u.loginButtonText,p=async()=>{if(c.PUBLIC_ENV==="local")await fetch("/api/auth/logout",{method:"GET",credentials:"include"}),t(!1);else{const g=window.location.pathname;window.location.href=`${window.location.origin}/api/auth/logout?redirect=${encodeURIComponent(g)}`}},m=async g=>{g.preventDefault(),a&&l(!0)};return E.useEffect(()=>{if(typeof window>"u")return;window.location.hash.includes("comentarios")&&!e&&l(!0)},[e]),n.jsxs(n.Fragment,{children:[d&&n.jsx(_r,{loginUrl:a,icon:i,checkAuth:r,API_ENV:c,texts:h,onClose:()=>{l(!1)}}),!e&&n.jsxs("div",{className:"auth-container",children:[n.jsx("p",{children:u.commentPromptMessage}),n.jsx("a",{href:a,onClick:m,className:"login-button",children:f})]}),n.jsx(mh,{isAuthenticated:e,handleLogout:p,path:o,user:e?s:void 0,API_ENV:c,texts:h})]})}function Ah({isVisible:e,path:t,icon:a,API_ENV:s,texts:o}){const[r,i]=E.useState(null),[c,h]=E.useState(null),d=s?.COGNITO_AUTH_PREFIX??"ASTRO_",l=E.useCallback(async()=>{if(e){if(document.cookie.search(d+"IS_AUTH=true")===-1){i(!1),h(null);return}try{const m=await(await fetch("/api/auth/user",{credentials:"include"})).json();i(m.isAuthenticated??!1),h(m.user??null)}catch(p){console.error("Error checking auth:",p),i(!1),h(null)}}},[e,d]);E.useEffect(()=>{l()},[l,e]),E.useEffect(()=>{if(!c||!e||typeof window>"u")return;const p=window;if(typeof p!="function"){console.warn("gtag no está disponible todavía");return}p.gtag("set",{user_id:c.username}),console.log("username setted successfully")},[c,e]);const u="/api/auth/login",f=n.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:310,position:"relative"},children:n.jsx(Re,{})});return r===null?f:e?n.jsx(ph,{icon:a,isAuthenticated:r,setIsAuthenticated:i,loginUrl:u,user:c??void 0,checkAuth:l,path:t,API_ENV:s,texts:o}):f}const wh=({render:e,internalPath:t,section:a,stylesConfig:s,icon:o,isVisibleDefault:r=!1,paths:i,API_ENV:c,fetchConfig:h,texts:d})=>{const l=E.useRef(null),[u,f]=E.useState(r);E.useEffect(()=>{if(r||u)return;const m=new IntersectionObserver(([g])=>{g?.isIntersecting&&(f(!0),m.disconnect())},{rootMargin:"0px",threshold:.1});return l.current&&m.observe(l.current),()=>m.disconnect()},[]);const p={comment:n.jsx(Ah,{path:t,icon:o,isVisible:u,API_ENV:aa(c),texts:d}),more:n.jsx(L1,{section:a,internalPath:t,stylesConfig:s,isVisible:u,paths:i,fetchConfig:h,API_ENV:aa(c)})};return n.jsx("div",{ref:l,suppressHydrationWarning:!0,style:{...s?s["Modulo 1x3 Client"]?s["Modulo 1x3 Client"]:s["Modulo 1x3"]:{}},children:p[e]})};async function yh({publication:e,path:t,username:a,comment:s,id:o,recaptchaResponse:r,baseUrl:i,apiToken:c,securityToken:h,COMMENTS_VARS:d}){if(console.log("Adding comment with data:",{publication:e,path:t,username:a,comment:s,id:o,recaptchaResponse:r}),!e||!t||!s||!a)return{type:"error",message:"Faltan campos obligatorios. Por favor, completa todos los campos.",status:400};if([e,t,s,a].some(m=>typeof m!="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 l=await Tr(r,d);if(console.log("Verifying captcha token...",l),!l)return{type:"error",message:"Captcha inválido. Intenta nuevamente.",status:403};const u=`${i}/system/modules/com.tfsla.diario.base/templates/hit/5.0/1/newcomments/add`,f={publication:e,path:t.replace(/\|/gi,"/"),username:a??!1,text:s.trim()};o&&(f.id=o);const p=new URLSearchParams(f);try{const{data:m}=await re.get(`${u}?${p.toString()}`,{headers:{"Content-Type":"application/json","x-security-token":h,"x-api-token":c,"User-Agent":"amplifyapp-comments-saas"}});return!m||m.error?(console.error("CMS error response:",m),{type:"error",message:"No se pudo guardar el comentario. Intenta nuevamente en unos minutos.",status:502}):(console.log("Comentario enviado con éxito",m),{type:"success",message:"Comentario enviado con éxito.",status:200})}catch(m){if(console.error("Error enviando comentario:",m),re.isAxiosError(m)){const g=m.response?.status??500,A=m.response?.data;return g===400?{type:"error",message:A?.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:A?.message||"No se pudo enviar el comentario.",status:g}}return{type:"error",message:"Error inesperado. Intenta nuevamente.",status:500}}}const bh=async({token:e,projectId:t,captchaKey:a,apiKey:s,captchaAction:o})=>{if(!e)throw new Error("No token provided");if(!t||!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/${t}/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))}};b.AssetsPreconnect=Cs,b.AutorComponent=h1,b.AutorHeader1=Qo,b.AutorHeader2=Ho,b.BannerAdvertising=we,b.BannerAdvertisingMiddle=je,b.CarrouselCSR=Sl,b.CarrouselIRS=ut,b.CarruselCard=lr,b.CarruselOpinion=dr,b.CommonServices=nt,b.Comscore=ts,b.ContactInfoServer=pd,b.ContactInput=Yl,b.ContactSelect=Kl,b.ContactTextarea=Jl,b.ContentLayout1=It,b.ContentLayoutTema=_a,b.DEBUG_MainSlots=r1,b.DestacadoNoticias=er,b.DestacadoVideos=rr,b.DynamicBlockServices=bo,b.DynamicComponents=o1,b.DynamicMainSlot=Gn,b.DynamicSlot=Zt,b.EditorialBlock=dd,b.ErrorComponent=Wl,b.Font=xs,b.Footer=Fl,b.FormatAfterScripts=bs,b.FormatScripts=Rn,b.GA4=ns,b.GTM=as,b.GalleryHeader=fr,b.GenerateBody=yl,b.GenerateHead=wl,b.Header=sd,b.IframeHeader=Ar,b.ImageOffline=Io,b.ImageOnline=Ee,b.ImageOnlineClient=No,b.IssuuServices=hl,b.ItemListSchema=Is,b.JournalistArticule2=Ko,b.JournalistGroup=Jo,b.LayoutNewsComponent=Ia,b.LazyLoader=wh,b.LinkComponent=P,b.LiveBlogHeader=$o,b.Location=vl,b.LoginPopUp=_r,b.MainComponentServices=Gi,b.Marfeel=ss,b.MiddleSection=Fe,b.Modulo1x3=xa,b.Modulo1x3Card=cr,b.Modulo1x4=sr,b.Modulo1x5=or,b.Modulo2Columnas=hd,b.Modulo3Columnas=nr,b.ModuloNewsletter=ud,b.ModuloOpinion=ld,b.NewListResponseDataPH=Er,b.NewsArticle=Es,b.NewsComponent=c1,b.NewsContent=Un,b.NewsDescriptionComponent=ft,b.NextPrev=Qt,b.OrgList=Ts,b.PreloadImages=ta,b.REPORT_REASONS=Qn,b.ReCaptchaRender=ti,b.Readest=Sn,b.ScriptHydrator=T1,b.SearchSection=d1,b.Section=ge,b.SectionCard=Ge,b.SectionCard2=Ft,b.SectionCardServerComponent=Dn,b.SectionServerComponent=gd,b.ShowSection=pa,b.SocialNetworks=Pa,b.SpeculationRules=Ns,b.StaticSlotWrapper=s1,b.SubscribeColumn=Uo,b.SubscribeRow=xo,b.SubscribeWhatsAppColumn=Pl,b.TagHeader=od,b.TagSection=Yo,b.TimeLine=jo,b.TrimPathname=Ti,b.TwitterHydration=k1,b.VideoBlock3=Vl,b.VideoBlock4=Rl,b.VideoEmbeddedHeader=gr,b.VideoSection=E1,b.VideoYoutubeHeader=pr,b.VideosSchemas=Us,b.WebsiteList=ks,b.addComment=yh,b.bannersReplace=ln,b.becomeVideoObject=vt,b.buildTagUrl=tt,b.coloringByStrokeSVGs=Hl,b.compileStyleProps=jn,b.createAssessment=Pi,b.cutString=qe,b.decodeApiEnv=aa,b.encodeApiEnv=na,b.extractMainSlug=xe,b.extractRealtedNews=Zn,b.formatDate=Be,b.formatDateEdiciones=wi,b.formatDateJournalistArticule=cn,b.formatDateTimeline=hs,b.formatNewsMeta=gs,b.formatVideoData=vs,b.generalGetData=ml,b.getCaptchaToken=Da,b.getComments=Qr,b.getConfig=z,b.getDynamicSlots=ul,b.getEnvironmentUrl=Bt,b.getEnvironmentUrlFront=vi,b.getHydratorPath=Li,b.getImageUrl=ue,b.getNextMeta=qt,b.getPage=Ot,b.getPlayIcon=_n,b.getPreloadImages=Di,b.getPrevMeta=Pt,b.getRelatedNewsCarrousel=Bi,b.getReportReasonLabel=M1,b.getResponse=ct,b.getResponsePromise=us,b.getSchemas=dn,b.getScriptReplaces=sa,b.getSlugs=Bs,b.getTypeOfNews=Ui,b.getVideoRealPath=xi,b.handleGetComments=Yn,b.initLibrary=Rr,b.metadataToJSX=ws,b.metadata_defaults=Co,b.parseTags=Xn,b.pathnameSplit=ps,b.processExtractedRelatedNews=fs,b.removePages=Ls,b.reportComment=O1,b.shareButtons=Oo,b.socialIcons=En,b.speculationRules=Ss,b.speculationRulesHome=_s,b.toISOWithTimeZone=Ct,b.urlReplaces=As,b.usePlayIcon=ba,b.verifyCaptchaTokenEnterprise=bh,Object.defineProperty(b,Symbol.toStringTag,{value:"Module"})}));
|
|
261
|
+
Valid keys: `+JSON.stringify(Object.keys(y),null," "));var M=de(Y,K,$,F,W+"."+K,a);if(M)return M}return null}return A(N)}function q(y){switch(typeof y){case"number":case"string":case"undefined":return!0;case"boolean":return!y;case"object":if(Array.isArray(y))return y.every(q);if(y===null||c(y))return!0;var N=u(y);if(N){var O=N.call(y),G;if(N!==y.entries){for(;!(G=O.next()).done;)if(!q(G.value))return!1}else for(;!(G=O.next()).done;){var $=G.value;if($&&!q($[1]))return!1}}else return!1;return!0;default:return!1}}function x(y,N){return y==="symbol"?!0:N?N["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&N instanceof Symbol:!1}function k(y){var N=typeof y;return Array.isArray(y)?"array":y instanceof RegExp?"object":x(N,y)?"symbol":N}function j(y){if(typeof y>"u"||y===null)return""+y;var N=k(y);if(N==="object"){if(y instanceof Date)return"date";if(y instanceof RegExp)return"regexp"}return N}function B(y){var N=j(y);switch(N){case"array":case"object":return"an "+N;case"boolean":case"date":case"regexp":return"a "+N;default:return N}}function V(y){return!y.constructor||!y.constructor.name?f:y.constructor.name}return p.checkPropTypes=o,p.resetWarningCache=o.resetWarningCache,p.PropTypes=p,p},Va}var Wa,Dr;function H1(){if(Dr)return Wa;Dr=1;var e=Ha();function t(){}function a(){}return a.resetWarningCache=t,Wa=function(){function s(i,c,h,d,l,u){if(u!==e){var f=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw f.name="Invariant Violation",f}}s.isRequired=s;function o(){return s}var r={array:s,bigint:s,bool:s,func:s,number:s,object:s,string:s,symbol:s,any:s,arrayOf:o,element:s,elementType:s,instanceOf:o,node:s,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:a,resetWarningCache:t};return r.PropTypes=r,r},Wa}var $r;function F1(){if($r)return Hn.exports;if($r=1,process.env.NODE_ENV!=="production"){var e=ja(),t=!0;Hn.exports=Q1()(e.isElement,t)}else Hn.exports=H1()();return Hn.exports}var z1=F1();const Ne=bt(z1);var V1=["sitekey","onChange","theme","type","tabindex","onExpired","onErrored","size","stoken","grecaptcha","badge","hl","isolated"];function Ya(){return Ya=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(e[s]=a[s])}return e},Ya.apply(this,arguments)}function W1(e,t){if(e==null)return{};var a={},s=Object.keys(e),o,r;for(r=0;r<s.length;r++)o=s[r],!(t.indexOf(o)>=0)&&(a[o]=e[o]);return a}function zn(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Y1(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ka(e,t)}function Ka(e,t){return Ka=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(s,o){return s.__proto__=o,s},Ka(e,t)}var Vn=(function(e){Y1(t,e);function t(){var s;return s=e.call(this)||this,s.handleExpired=s.handleExpired.bind(zn(s)),s.handleErrored=s.handleErrored.bind(zn(s)),s.handleChange=s.handleChange.bind(zn(s)),s.handleRecaptchaRef=s.handleRecaptchaRef.bind(zn(s)),s}var a=t.prototype;return a.getCaptchaFunction=function(o){return this.props.grecaptcha?this.props.grecaptcha.enterprise?this.props.grecaptcha.enterprise[o]:this.props.grecaptcha[o]:null},a.getValue=function(){var o=this.getCaptchaFunction("getResponse");return o&&this._widgetId!==void 0?o(this._widgetId):null},a.getWidgetId=function(){return this.props.grecaptcha&&this._widgetId!==void 0?this._widgetId:null},a.execute=function(){var o=this.getCaptchaFunction("execute");if(o&&this._widgetId!==void 0)return o(this._widgetId);this._executeRequested=!0},a.executeAsync=function(){var o=this;return new Promise(function(r,i){o.executionResolve=r,o.executionReject=i,o.execute()})},a.reset=function(){var o=this.getCaptchaFunction("reset");o&&this._widgetId!==void 0&&o(this._widgetId)},a.forceReset=function(){var o=this.getCaptchaFunction("reset");o&&o()},a.handleExpired=function(){this.props.onExpired?this.props.onExpired():this.handleChange(null)},a.handleErrored=function(){this.props.onErrored&&this.props.onErrored(),this.executionReject&&(this.executionReject(),delete this.executionResolve,delete this.executionReject)},a.handleChange=function(o){this.props.onChange&&this.props.onChange(o),this.executionResolve&&(this.executionResolve(o),delete this.executionReject,delete this.executionResolve)},a.explicitRender=function(){var o=this.getCaptchaFunction("render");if(o&&this._widgetId===void 0){var r=document.createElement("div");this._widgetId=o(r,{sitekey:this.props.sitekey,callback:this.handleChange,theme:this.props.theme,type:this.props.type,tabindex:this.props.tabindex,"expired-callback":this.handleExpired,"error-callback":this.handleErrored,size:this.props.size,stoken:this.props.stoken,hl:this.props.hl,badge:this.props.badge,isolated:this.props.isolated}),this.captcha.appendChild(r)}this._executeRequested&&this.props.grecaptcha&&this._widgetId!==void 0&&(this._executeRequested=!1,this.execute())},a.componentDidMount=function(){this.explicitRender()},a.componentDidUpdate=function(){this.explicitRender()},a.handleRecaptchaRef=function(o){this.captcha=o},a.render=function(){var o=this.props;o.sitekey,o.onChange,o.theme,o.type,o.tabindex,o.onExpired,o.onErrored,o.size,o.stoken,o.grecaptcha,o.badge,o.hl,o.isolated;var r=W1(o,V1);return es.createElement("div",Ya({},r,{ref:this.handleRecaptchaRef}))},t})(es.Component);Vn.displayName="ReCAPTCHA",Vn.propTypes={sitekey:Ne.string.isRequired,onChange:Ne.func,grecaptcha:Ne.object,theme:Ne.oneOf(["dark","light"]),type:Ne.oneOf(["image","audio"]),tabindex:Ne.number,onExpired:Ne.func,onErrored:Ne.func,size:Ne.oneOf(["compact","normal","invisible"]),stoken:Ne.string,hl:Ne.string,badge:Ne.oneOf(["bottomright","bottomleft","inline"]),isolated:Ne.bool},Vn.defaultProps={onChange:function(){},theme:"light",type:"image",tabindex:0,size:"normal",badge:"bottomright"};var Ja,jr;function K1(){if(jr)return Ja;jr=1;var e=ja(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},r={};r[e.ForwardRef]=s,r[e.Memo]=o;function i(m){return e.isMemo(m)?o:r[m.$$typeof]||t}var c=Object.defineProperty,h=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,l=Object.getOwnPropertyDescriptor,u=Object.getPrototypeOf,f=Object.prototype;function p(m,g,A){if(typeof g!="string"){if(f){var C=u(g);C&&C!==f&&p(m,C,A)}var S=h(g);d&&(S=S.concat(d(g)));for(var _=i(m),I=i(g),w=0;w<S.length;++w){var T=S[w];if(!a[T]&&!(A&&A[T])&&!(I&&I[T])&&!(_&&_[T])){var U=l(g,T);try{c(m,T,U)}catch{}}}}return m}return Ja=p,Ja}var J1=K1();const Z1=bt(J1);function Za(){return Za=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(e[s]=a[s])}return e},Za.apply(this,arguments)}function X1(e,t){if(e==null)return{};var a={},s=Object.keys(e),o,r;for(r=0;r<s.length;r++)o=s[r],!(t.indexOf(o)>=0)&&(a[o]=e[o]);return a}function R1(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var De={},eh=0;function th(e,t){return t=t||{},function(s){var o=s.displayName||s.name||"Component",r=(function(c){R1(h,c);function h(l,u){var f;return f=c.call(this,l,u)||this,f.state={},f.__scriptURL="",f}var d=h.prototype;return d.asyncScriptLoaderGetScriptLoaderID=function(){return this.__scriptLoaderID||(this.__scriptLoaderID="async-script-loader-"+eh++),this.__scriptLoaderID},d.setupScriptURL=function(){return this.__scriptURL=typeof e=="function"?e():e,this.__scriptURL},d.asyncScriptLoaderHandleLoad=function(u){var f=this;this.setState(u,function(){return f.props.asyncScriptOnLoad&&f.props.asyncScriptOnLoad(f.state)})},d.asyncScriptLoaderTriggerOnScriptLoaded=function(){var u=De[this.__scriptURL];if(!u||!u.loaded)throw new Error("Script is not loaded.");for(var f in u.observers)u.observers[f](u);delete window[t.callbackName]},d.componentDidMount=function(){var u=this,f=this.setupScriptURL(),p=this.asyncScriptLoaderGetScriptLoaderID(),m=t,g=m.globalName,A=m.callbackName,C=m.scriptId;if(g&&typeof window[g]<"u"&&(De[f]={loaded:!0,observers:{}}),De[f]){var S=De[f];if(S&&(S.loaded||S.errored)){this.asyncScriptLoaderHandleLoad(S);return}S.observers[p]=function(U){return u.asyncScriptLoaderHandleLoad(U)};return}var _={};_[p]=function(U){return u.asyncScriptLoaderHandleLoad(U)},De[f]={loaded:!1,observers:_};var I=document.createElement("script");I.src=f,I.async=!0;for(var w in t.attributes)I.setAttribute(w,t.attributes[w]);C&&(I.id=C);var T=function(Q){if(De[f]){var X=De[f],H=X.observers;for(var D in H)Q(H[D])&&delete H[D]}};A&&typeof window<"u"&&(window[A]=function(){return u.asyncScriptLoaderTriggerOnScriptLoaded()}),I.onload=function(){var U=De[f];U&&(U.loaded=!0,T(function(Q){return A?!1:(Q(U),!0)}))},I.onerror=function(){var U=De[f];U&&(U.errored=!0,T(function(Q){return Q(U),!0}))},document.body.appendChild(I)},d.componentWillUnmount=function(){var u=this.__scriptURL;if(t.removeOnUnmount===!0)for(var f=document.getElementsByTagName("script"),p=0;p<f.length;p+=1)f[p].src.indexOf(u)>-1&&f[p].parentNode&&f[p].parentNode.removeChild(f[p]);var m=De[u];m&&(delete m.observers[this.asyncScriptLoaderGetScriptLoaderID()],t.removeOnUnmount===!0&&delete De[u])},d.render=function(){var u=t.globalName,f=this.props;f.asyncScriptOnLoad;var p=f.forwardedRef,m=X1(f,["asyncScriptOnLoad","forwardedRef"]);return u&&typeof window<"u"&&(m[u]=typeof window[u]<"u"?window[u]:void 0),m.ref=p,E.createElement(s,m)},h})(E.Component),i=E.forwardRef(function(c,h){return E.createElement(r,Za({},c,{forwardedRef:h}))});return i.displayName="AsyncScriptLoader("+o+")",i.propTypes={asyncScriptOnLoad:Ne.func},Z1(i,s)}}var Xa="onloadcallback",nh="grecaptcha";function Ra(){return typeof window<"u"&&window.recaptchaOptions||{}}function ah(){var e=Ra(),t=e.useRecaptchaNet?"recaptcha.net":"www.google.com";return e.enterprise?"https://"+t+"/recaptcha/enterprise.js?onload="+Xa+"&render=explicit":"https://"+t+"/recaptcha/api.js?onload="+Xa+"&render=explicit"}const Gr=th(ah,{callbackName:Xa,globalName:nh,attributes:Ra().nonce?{nonce:Ra().nonce}:{}})(Vn),sh={reportAbuseTitle:"Reportar Abuso",errorAlreadyReported:"Ya has reportado este comentario.",errorReportComment:"Error al reportar comentario",cancelButton:"Cancelar",reportButton:"Reportar",reportSuccessMessage:"¡Gracias por reportar!",reportCloseButton:"Cerrar"},oh=({isOpen:e,onClose:t,commentId:a,publication:s,username:o,CAPTCHA_KEY_V2:r,texts:i})=>{const c={...sh,...i?.comentarios},h={...Qn,...c.reportReasons??{}},[d,l]=E.useState("form"),[u,f]=E.useState(""),[p,m]=E.useState(""),[g,A]=E.useState(""),C=[{id:"spam",label:h.spam},{id:"inappropriate",label:h.inappropriate},{id:"hate",label:h.hate},{id:"misinformation",label:h.misinformation},{id:"terrorism",label:h.terrorism},{id:"intellectual",label:h.intellectual},{id:"bullying",label:h.bullying}],S=async()=>{if(!(!u||!a)){if(vr(document).includes(a)){m(c.errorAlreadyReported);return}l("loading"),m("");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:g,type:Qn[u]})})).json();if(w.type==="success")p1(document,a),l("success"),setTimeout(()=>{_()},3e3);else throw new Error(w.message||c.errorReportComment)}catch(I){console.error("Error reporting comment:",I),m(I.message||c.errorReportComment),l("form")}}},_=()=>{l("form"),f(""),m(""),t()};return!e||!a||!o?null:n.jsx("div",{className:Ae.overlay,children:n.jsxs("div",{className:Ae.popup,children:[n.jsx("button",{className:"close-reply-form",onClick:_,children:n.jsx(Et,{})}),n.jsx("h2",{className:Ae.title,children:c.reportAbuseTitle}),d==="loading"&&n.jsx("div",{className:Ae.loadingContainer,children:n.jsx(Re,{})}),d==="form"||d==="loading"?n.jsxs(n.Fragment,{children:[n.jsx("div",{className:Ae.optionsContainer,children:C.map(I=>n.jsxs("label",{className:Ae.option,children:[n.jsx("input",{type:"radio",name:"reportReason",value:I.id,checked:u===I.id,onChange:w=>f(w.target.value),className:Ae.radioInput}),n.jsx("span",{className:Ae.radioCustom}),n.jsx("span",{className:Ae.optionLabel,children:I.label})]},I.id))}),p&&n.jsx("div",{className:Ae.errorMessage,children:p}),n.jsx(Gr,{sitekey:r,theme:"light",size:"normal",onChange:I=>A(I??""),onExpired:()=>A("")}),n.jsxs("div",{className:Ae.buttons,children:[n.jsx("button",{onClick:_,className:Ae.cancelButton,children:c.cancelButton}),n.jsx("button",{onClick:S,disabled:!u,className:Ae.reportButton,children:c.reportButton})]})]}):n.jsxs(n.Fragment,{children:[n.jsxs("div",{className:Ae.successContainer,children:[n.jsx("div",{className:Ae.thumbsUp,children:n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:132,height:120,fill:"none",children:n.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"})})}),n.jsx("p",{className:Ae.successMessage,children:c.reportSuccessMessage})]}),n.jsx("div",{className:Ae.buttons,children:n.jsx("button",{onClick:_,className:[Ae.closeButton,Ae.buttonAlone].join(" "),children:c.reportCloseButton})})]})]})})};function rh(e){const t=/^\[\[([^\]]+)\]\]/,a=e.match(t);return a?{user:{username:a[1],firstname:a[1],lastname:""},text:e.replace("[["+a[1]+"]]","")}:{user:!1,text:e}}function Wn(e){const t=e.comments.map(a=>{if(a.user)return{...a,user:a.user,text:a.text,reply:a.reply?Wn({comments:a.reply}).comments:a.reply};const{user:s,text:o}=rh(a.text);return{...a,user:s||!1,text:o,reply:a.reply?Wn({comments:a.reply}).comments:a.reply}});return{...e,comments:t}}async function Yn({publication:e,path:t,size:a=5,sizereply:s=2,id:o,lastid:r,state:i="5,6",apiToken:c,API_ENV:h}){const{PUBLIC_ENV:d}=h;if(d==="prod"){const l=await Qr({publication:e,path:t,size:a,sizereply:s,id:o,lastid:r,state:i,apiToken:c,API_ENV:h});return Wn(l[0])}else{const l=await fetch(`/api/comments-get?publication=${e}&path=${t}&size=${a}&sizereply=${s}&lastid=${r}`);if(!l.ok)throw new Error(`Error al obtener comentarios: ${l.status}`);const u=await l.json();return Wn(u.data[0])}}async function Qr({publication:e,path:t,size:a=5,sizereply:s=2,id:o,lastid:r,state:i="5,6",apiToken:c,API_ENV:h}){if(!e||!t)throw new Error("Missing required parameters: publication and path");if(typeof e!="string"||typeof t!="string")throw new Error("Invalid input types for publication or path");if(!c)throw new Error("Missing CMS API token");const{PUBLIC_ENV:d,PUBLIC_API_HOST:l="dummy",PUBLIC_API_PATH:u,PUBLIC_API_PATH_VERSION:f}=h,p=parseInt(String(a),10),m=parseInt(String(s),10);if(isNaN(p)||p<=0)throw new Error("Invalid size parameter");if(isNaN(m)||m<0)throw new Error("Invalid sizereply parameter");const g=d!=="prod"?`${l}${u}`:"",A=new URLSearchParams({publication:e,path:t,size:p.toString(),sizereply:m.toString(),state:i});o&&A.append("id",o),r&&A.append("lastid",r);const C=`${g}${f}/newcomments/get?${A.toString()}`;try{const{data:S}=await re.get(C,{headers:{"x-api-token":c,"Cache-Control":"max-age=0, no-cache, no-store, must-revalidate",Pragma:"no-cache",Expires:"0"}});if(!S)throw new Error("No comments data received");return S.data||S||[]}catch(S){if(console.error("Error fetching comments:",S),re.isAxiosError(S)){const _=S.response?.status,I=S.response?.data;throw _===404?new Error("Comments not found"):_===403?new Error("Access forbidden - check API token"):_===401?new Error("Unauthorized - invalid API token"):_===500?new Error("Internal server error from CMS"):new Error(I?.error||I?.message||`HTTP ${_}: Failed to fetch comments`)}throw S}}const ih=(e,t)=>{const[a,s]=E.useState(void 0),{PUBLIC_PUBLICATION_ID:o}=t,r=o;return E.useEffect(()=>{if(a)return;(async()=>{const{PUBLIC_X_SECURITY_TOKEN:c}=t;try{const h=await Yn({publication:r,path:e??"",size:5,sizereply:2,id:void 0,lastid:void 0,state:"5,6",apiToken:c,API_ENV:t});s(h??[])}catch{s({comments:[],morecomment:!1})}})()},[a]),{comments:a,setComments:s}},Hr=({username:e,date:t,DATE_CONFIG:a})=>n.jsxs("div",{className:"comment-header",children:[n.jsx("span",{className:"comment-username",children:e}),n.jsx("span",{className:"comment-header-dot",children:"•"}),n.jsx("span",{className:"comment-date",children:g1(Be(Number(t),a))})]}),Fr=({user:e})=>n.jsx("div",{className:"comment-avatar",children:e.picture?n.jsx("img",{className:"comment-avatar-img",src:e.picture,alt:e.username}):e.firstname.charAt(0).toUpperCase()}),zr=({isReply:e=!1,onReply:t,onFlag:a})=>n.jsxs("div",{className:"comment-actions",children:[!e&&t&&n.jsx("button",{onClick:t,className:"comment-action-btn",children:n.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",children:[n.jsx("g",{clipPath:"url(#a)",children:n.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"})}),n.jsx("defs",{children:n.jsx("clipPath",{id:"a",children:n.jsx("path",{fill:"#fff",d:"M0 0h23.942v24H0z"})})})]})}),n.jsx("button",{onClick:a,className:"comment-action-btn",children:n.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:25,height:24,fill:"none",children:[n.jsx("g",{clipPath:"url(#a)",children:n.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"})}),n.jsx("defs",{children:n.jsx("clipPath",{id:"a",children:n.jsx("path",{fill:"#fff",d:"M.133 0h24v24h-24z"})})})]})})]}),Vr=({commentRef:e,captchaToken:t="",setIsDisabled:a,API_ENV:s})=>(E.useEffect(()=>{const o=e.current;if(!o)return;const r=()=>{const c=o.value.length;o.parentElement&&(o.parentElement.dataset.text=`${c}/${wt}`),o.classList.toggle("over-limit",c>wt),a(!$a(e,t,s).boolean)};return o.addEventListener("input",r),r(),()=>o.removeEventListener("input",r)},[e,t,a]),n.jsxs("div",{children:[n.jsx("label",{className:"comment-input-label",children:"Comentario"}),n.jsx("textarea",{ref:e,name:"comment",placeholder:"Ingresa un comentario",rows:2})]})),Wr=({commentRef:e,captchaToken:t="",setCaptchaToken:a,children:s,API_ENV:o})=>{const r=$a(e,t,o);return n.jsxs("div",{className:"form-actions",children:[n.jsx(Gr,{sitekey:o.CAPTCHA_KEY_V2??"",theme:"light",size:"normal",onChange:i=>a(i??""),onExpired:()=>a("")}),n.jsxs("div",{className:"submit-zone",children:[s,!r.boolean&&n.jsx("p",{className:"submit-warning",children:r.text})]})]})},Yr=({onClick:e,isDisabled:t,API_ENV:a})=>{const[s,o]=E.useState(!1),{S3_ID_DIR:r="",PUBLIC_ENV:i,PUBLIC_API_HOST:c="",PUBLIC_ASSETS_URL:h}=a;E.useEffect(()=>{let l=null;return s&&(l=setTimeout(()=>{o(!1)},2400)),()=>{l&&clearTimeout(l)}},[s]);const d=i=="local"?c:h&&h!=="false"?h:"";return s?n.jsx("div",{className:"success-gif-container",children:n.jsx("img",{className:"success-gif",src:d+"/arte/"+r+"/Success.gif"})}):n.jsxs("button",{type:"button",onClick:async l=>{await e(l)&&o(!0)},id:"comment-button",className:`submit-btn ${t?"disabled":"active"}`,children:["Enviar Comentario",n.jsx("svg",{style:{minWidth:16},width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:n.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"})})]})},Kr=async({path:e,ref:t,captchaToken:a,button:s,user:o,id:r,addComment:i,API_ENV:c})=>{const h=t.current?.value||"",{PUBLIC_PUBLICATION_ID:d}=c,l=d;if(!$a(t,a,c).boolean||!o){const u=s.nextElementSibling;return u&&(u.style.display="block"),!1}try{const u=Date.now(),f=await fetch("/api/comments-add",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({publication:l,path:e,id:r,username:o.username,comment:h,recaptchaResponse:a})});let p=null;try{p=await f.json()}catch(C){console.error("Error parsing JSON response:",C)}if(!f.ok)throw new Error(`Error al enviar comentario: ${p?.message} status: ${f.status}`);const m=Date.now(),g=Math.max(0,2400+Math.abs(m-u)),A={username:o.username,firstname:o.firstname,...o.lastname&&{lastname:o.lastname},...o.picture&&{picture:o.picture}};return i({id:m.toString(),text:h,user:A,date:{time:Date.now()},reply:[]}),t.current&&(t.current.value=""),g}catch(u){return console.error("Error enviando comentario:",u),alert(u.message||"Error al enviar el comentario."),!1}},ch=({replyingTo:e,commentRef:t,user:a,path:s,addReply:o,closeForm:r,API_ENV:i})=>{const[c,h]=E.useState(!0),[d,l]=E.useState(""),u=()=>{t.current?.parentElement&&(t.current.parentElement.dataset.text=`0/${wt}`),h(!0),r()};return n.jsxs("div",{className:"comment-form reply-form",children:[n.jsx("button",{className:"close-reply-form",onClick:u,children:n.jsx(Et,{})}),n.jsx(Vr,{commentRef:t,captchaToken:d,setIsDisabled:h,API_ENV:i}),n.jsx(Wr,{commentRef:t,captchaToken:d,setCaptchaToken:l,API_ENV:i,children:n.jsx(Yr,{onClick:async f=>{if(c)return;const p=await Kr({path:s,ref:t,captchaToken:d,button:f.currentTarget,user:a,id:e,addComment:o,API_ENV:i});return p&&typeof p=="number"?(setTimeout(()=>{u()},p),!0):!1},isDisabled:c,API_ENV:i})})]})},lh=({reply:e,replyingTo:t,user:a,onFlag:s,DATE_CONFIG:o})=>{const r=e.text;let i=`${et.firstname} ${et.lastname??""}`,c=et.username;return e.user&&(i=`${e.user.firstname} ${e.user.lastname??""}`,c=e.user.username),n.jsx("div",{className:"comment-item reply",children:n.jsxs("div",{className:"comment-header-container",children:[n.jsx(Fr,{user:e.user?e.user:et}),n.jsxs("div",{style:{flex:1},children:[n.jsx(Hr,{username:i,date:e.date.time,DATE_CONFIG:o}),n.jsxs("div",{className:"comment-reply-to",children:["Respondiendo a ",n.jsx("strong",{children:t})]}),n.jsx("p",{className:"comment-text",children:r}),a?.username.toLowerCase()!==c.toLowerCase()&&n.jsx(zr,{isReply:!0,onFlag:()=>s(e.id)})]})]})})},dh={moreRepliesButton:"Más Respuestas"},hh=({comment:e,replyingTo:t,path:a,user:s,handleReplyingTo:o,onFlag:r,API_ENV:i,texts:c})=>{const h={...dh,...c?.comentarios},d={morereply:e.morereply??!1,reply:e.reply?e.reply:[]},[l,u]=E.useState(d),[f,p]=E.useState(!1),{PUBLIC_PUBLICATION_ID:m,PUBLIC_X_SECURITY_TOKEN:g}=i,A=e.text,C=E.useRef(null);let S=`${et.firstname} ${et.lastname??""}`,_=et.username;e.user&&(S=`${e.user.firstname} ${e.user.lastname??""}`,_=e.user.username);const I=w=>{u({morereply:l.morereply,reply:[w,...l.reply]})};return n.jsx("div",{className:"comment-item",children:n.jsxs("div",{className:"comment-header-container","data-hasreplies":l.reply.length>0?"true":"false",children:[n.jsx(Fr,{user:e.user?e.user:et}),n.jsxs("div",{style:{flex:1},children:[n.jsx(Hr,{username:S,date:e.date.time,DATE_CONFIG:i}),n.jsx("p",{className:"comment-text",children:A}),s?.username.toLowerCase()!==_.toLowerCase()&&n.jsx(zr,{onReply:()=>o(e.id),onFlag:()=>r(e.id)}),t===e.id&&s&&n.jsx(ch,{replyingTo:t,commentRef:C,addReply:I,user:s,path:a,API_ENV:i,closeForm:()=>o("")}),l.reply.length>0&&n.jsxs("div",{className:"comment-replies",children:[l.reply.map(w=>n.jsx(lh,{user:s,reply:w,replyingTo:S,onFlag:r,DATE_CONFIG:i},w.id)),f?n.jsx("div",{style:{marginLeft:"4rem",position:"relative"},children:n.jsx(Re,{})}):l.morereply&&n.jsx("button",{className:"comment-replies-button reply-button",onClick:async()=>{const w=l.reply[l.reply.length-1]?.id;p(!0);try{const U=await Yn({publication:m??"",path:a??"",size:2,sizereply:2,id:e.id,lastid:w,state:"5,6",apiToken:g??"",API_ENV:i});p(!1),u({morereply:U.morecomment,reply:[...l.reply,...U.comments]})}catch(T){throw p(!1),new Error(`Error al obtener comentarios: ${T}`)}},children:h.moreRepliesButton})]})]})]})})},uh=({commentRef:e,user:t,path:a,addComment:s,API_ENV:o})=>{const[r,i]=E.useState(!0),[c,h]=E.useState("");return n.jsxs("div",{className:"comment-form",children:[n.jsx(Vr,{commentRef:e,captchaToken:c,setIsDisabled:i,API_ENV:o}),n.jsx(Wr,{API_ENV:o,commentRef:e,captchaToken:c,setCaptchaToken:h,children:n.jsx(Yr,{onClick:async d=>{if(r)return;const l=await Kr({path:a,ref:e,captchaToken:c,button:d.currentTarget,user:t,addComment:s,API_ENV:o});return l&&typeof l=="number"?(e.current?.parentElement&&(e.current.parentElement.dataset.text=`0/${wt}`),i(!0),setTimeout(()=>{e.current?.parentElement&&(e.current.parentElement.dataset.text=`0/${wt}`),i(!0)},l),!0):!1},isDisabled:r,API_ENV:o})})]})},fh={commentsSectionTitle:"COMENTARIOS",commentHeaderMessageEmpty:"Se el primero en compartir tu opinión de este artículo.",commentHeaderMessageWithComments:"Comparte tu opinión de este artículo.",loadMoreButton:"Más",moreRepliesButton:"Más Respuestas"},mh=({isAuthenticated:e,path:t,user:a,handleLogout:s,API_ENV:o,texts:r})=>{const i={...fh,...r?.comentarios},{PUBLIC_PUBLICATION_ID:c,PUBLIC_X_SECURITY_TOKEN:h}=o,d=c??"",l=t.replaceAll("/","|"),[u,f]=E.useState(void 0),[p,m]=E.useState(""),{comments:g,setComments:A}=ih(l,o),[C,S]=E.useState(!1),_=E.useRef(null),I=D=>{m(p===D?"":D)},w=D=>{A(g?{...g,comments:[D,...g.comments??[]]}:void 0)},T=D=>{f(D)},U=async()=>{if(!g||!g.morecomment||g.comments.length===0)return;const D=g.comments[g.comments.length-1];if(!D)return;S(!0);const Z=D.id;try{const ne=await Yn({publication:d,path:l??"",size:5,sizereply:2,id:void 0,lastid:Z,state:"5,6",apiToken:h,API_ENV:o});A({morecomment:ne.morecomment??!1,comments:[...g.comments,...ne.comments]}),S(!1)}catch(ne){throw S(!1),new Error(`Error al obtener comentarios: ${ne}`)}},Q=g?.comments&&g.comments.length>0,X=Q?i.commentHeaderMessageWithComments:i.commentHeaderMessageEmpty,H=n.jsx("div",{style:{display:"flex",width:"100%",justifyContent:"center"},children:n.jsx(Re,{})});return n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"comments-container",children:n.jsx(ge,{title:Q||e?i.commentsSectionTitle:!1,children:n.jsxs(n.Fragment,{children:[e&&a&&n.jsxs("div",{className:"comments-header",children:[n.jsx(P1,{user:a,handleLogout:s,message:X}),n.jsx(uh,{commentRef:_,user:a,addComment:w,path:l,API_ENV:o})]}),g?g.comments&&g.comments.length>0?n.jsxs("div",{className:"comments-list","data-isauthenticated":`${e}`,children:[g.comments.map(D=>n.jsx(hh,{comment:D,replyingTo:p,handleReplyingTo:I,onFlag:T,user:a??et,path:l,API_ENV:o,texts:r},D.id)),C&&H]}):null:H,g?.morecomment&&!C&&n.jsx("button",{className:"comment-replies-button",onClick:U,children:i.loadMoreButton})]})})}),n.jsx(oh,{username:a?.username??void 0,publication:d,commentId:u,isOpen:u!==void 0,onClose:()=>f(void 0),CAPTCHA_KEY_V2:o.CAPTCHA_KEY_V2??"",texts:r})]})},gh={commentPromptMessage:"Súmate a la comunidad para dejar tu comentario",loginButtonText:"Iniciar Sesión"};function ph({isAuthenticated:e,setIsAuthenticated:t,loginUrl:a,user:s,path:o,checkAuth:r,icon:i,API_ENV:c,texts:h}){const[d,l]=E.useState(!1),u={...gh,...h?.comentarios},f=u.loginButtonText,p=async()=>{if(c.PUBLIC_ENV==="local")await fetch("/api/auth/logout",{method:"GET",credentials:"include"}),t(!1);else{const g=window.location.pathname;window.location.href=`${window.location.origin}/api/auth/logout?redirect=${encodeURIComponent(g)}`}},m=async g=>{g.preventDefault(),a&&l(!0)};return E.useEffect(()=>{if(typeof window>"u")return;window.location.hash.includes("comentarios")&&!e&&l(!0)},[e]),n.jsxs(n.Fragment,{children:[d&&n.jsx(_r,{loginUrl:a,icon:i,checkAuth:r,API_ENV:c,texts:h,onClose:()=>{l(!1)}}),!e&&n.jsxs("div",{className:"auth-container",children:[n.jsx("p",{children:u.commentPromptMessage}),n.jsx("a",{href:a,onClick:m,className:"login-button",children:f})]}),n.jsx(mh,{isAuthenticated:e,handleLogout:p,path:o,user:e?s:void 0,API_ENV:c,texts:h})]})}function Ah({isVisible:e,path:t,icon:a,API_ENV:s,texts:o}){const[r,i]=E.useState(null),[c,h]=E.useState(null),d=s?.COGNITO_AUTH_PREFIX??"ASTRO_",l=E.useCallback(async()=>{if(e){if(document.cookie.search(d+"IS_AUTH=true")===-1){i(!1),h(null);return}try{const m=await(await fetch("/api/auth/user",{credentials:"include"})).json();i(m.isAuthenticated??!1),h(m.user??null)}catch(p){console.error("Error checking auth:",p),i(!1),h(null)}}},[e,d]);E.useEffect(()=>{l()},[l,e]),E.useEffect(()=>{if(!c||!e||typeof window>"u")return;const p=window;if(typeof p!="function"){console.warn("gtag no está disponible todavía");return}p.gtag("set",{user_id:c.username}),console.log("username setted successfully")},[c,e]);const u="/api/auth/login",f=n.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:310,position:"relative"},children:n.jsx(Re,{})});return r===null?f:e?n.jsx(ph,{icon:a,isAuthenticated:r,setIsAuthenticated:i,loginUrl:u,user:c??void 0,checkAuth:l,path:t,API_ENV:s,texts:o}):f}const wh=({render:e,internalPath:t,section:a,stylesConfig:s,icon:o,isVisibleDefault:r=!1,paths:i,API_ENV:c,fetchConfig:h,texts:d})=>{const l=E.useRef(null),[u,f]=E.useState(r);E.useEffect(()=>{if(r||u)return;const m=new IntersectionObserver(([g])=>{g?.isIntersecting&&(f(!0),m.disconnect())},{rootMargin:"0px",threshold:.1});return l.current&&m.observe(l.current),()=>m.disconnect()},[]);const p={comment:n.jsx(Ah,{path:t,icon:o,isVisible:u,API_ENV:aa(c),texts:d}),more:n.jsx(L1,{section:a,internalPath:t,stylesConfig:s,isVisible:u,paths:i,fetchConfig:h,API_ENV:aa(c)})};return n.jsx("div",{ref:l,suppressHydrationWarning:!0,style:{...s?s["Modulo 1x3 Client"]?s["Modulo 1x3 Client"]:s["Modulo 1x3"]:{}},children:p[e]})};async function yh({publication:e,path:t,username:a,comment:s,id:o,recaptchaResponse:r,baseUrl:i,apiToken:c,securityToken:h,COMMENTS_VARS:d}){if(console.log("Adding comment with data:",{publication:e,path:t,username:a,comment:s,id:o,recaptchaResponse:r}),!e||!t||!s||!a)return{type:"error",message:"Faltan campos obligatorios. Por favor, completa todos los campos.",status:400};if([e,t,s,a].some(m=>typeof m!="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 l=await Tr(r,d);if(console.log("Verifying captcha token...",l),!l)return{type:"error",message:"Captcha inválido. Intenta nuevamente.",status:403};const u=`${i}/system/modules/com.tfsla.diario.base/templates/hit/5.0/1/newcomments/add`,f={publication:e,path:t.replace(/\|/gi,"/"),username:a??!1,text:s.trim()};o&&(f.id=o);const p=new URLSearchParams(f);try{const{data:m}=await re.get(`${u}?${p.toString()}`,{headers:{"Content-Type":"application/json","x-security-token":h,"x-api-token":c,"User-Agent":"amplifyapp-comments-saas"}});return!m||m.error?(console.error("CMS error response:",m),{type:"error",message:"No se pudo guardar el comentario. Intenta nuevamente en unos minutos.",status:502}):(console.log("Comentario enviado con éxito",m),{type:"success",message:"Comentario enviado con éxito.",status:200})}catch(m){if(console.error("Error enviando comentario:",m),re.isAxiosError(m)){const g=m.response?.status??500,A=m.response?.data;return g===400?{type:"error",message:A?.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:A?.message||"No se pudo enviar el comentario.",status:g}}return{type:"error",message:"Error inesperado. Intenta nuevamente.",status:500}}}const bh=async({token:e,projectId:t,captchaKey:a,apiKey:s,captchaAction:o})=>{if(!e)throw new Error("No token provided");if(!t||!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/${t}/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))}};b.AssetsPreconnect=Cs,b.AutorComponent=h1,b.AutorHeader1=Qo,b.AutorHeader2=Ho,b.BannerAdvertising=we,b.BannerAdvertisingMiddle=je,b.CarrouselCSR=Sl,b.CarrouselIRS=ut,b.CarruselCard=lr,b.CarruselOpinion=dr,b.CommonServices=nt,b.Comscore=ts,b.ContactInfoServer=pd,b.ContactInput=Yl,b.ContactSelect=Kl,b.ContactTextarea=Jl,b.ContentLayout1=It,b.ContentLayoutTema=_a,b.DEBUG_MainSlots=r1,b.DestacadoNoticias=er,b.DestacadoVideos=rr,b.DynamicBlockServices=bo,b.DynamicComponents=o1,b.DynamicMainSlot=Gn,b.DynamicSlot=Zt,b.EditorialBlock=dd,b.ErrorComponent=Wl,b.Font=xs,b.Footer=Fl,b.FormatAfterScripts=bs,b.FormatScripts=Rn,b.GA4=ns,b.GTM=as,b.GalleryHeader=fr,b.GenerateBody=yl,b.GenerateHead=wl,b.Header=sd,b.IframeHeader=Ar,b.ImageOffline=Io,b.ImageOnline=Ee,b.ImageOnlineClient=No,b.IssuuServices=hl,b.ItemListSchema=Is,b.JournalistArticule2=Ko,b.JournalistGroup=Jo,b.LayoutNewsComponent=Ia,b.LazyLoader=wh,b.LinkComponent=P,b.LiveBlogHeader=$o,b.Location=vl,b.LoginPopUp=_r,b.MainComponentServices=Gi,b.Marfeel=ss,b.MiddleSection=Fe,b.Modulo1x3=xa,b.Modulo1x3Card=cr,b.Modulo1x4=sr,b.Modulo1x5=or,b.Modulo2Columnas=hd,b.Modulo3Columnas=nr,b.ModuloNewsletter=ud,b.ModuloOpinion=ld,b.NewListResponseDataPH=Er,b.NewsArticle=Es,b.NewsComponent=c1,b.NewsContent=Un,b.NewsDescriptionComponent=ft,b.NextPrev=Qt,b.OrgList=Ts,b.PreloadImages=ta,b.REPORT_REASONS=Qn,b.ReCaptchaRender=ti,b.Readest=Sn,b.ScriptHydrator=T1,b.SearchSection=d1,b.Section=ge,b.SectionCard=Ge,b.SectionCard2=Ft,b.SectionCardServerComponent=Dn,b.SectionServerComponent=gd,b.ShowSection=pa,b.SocialNetworks=Pa,b.SpeculationRules=Ns,b.StaticSlotWrapper=s1,b.SubscribeColumn=Uo,b.SubscribeRow=xo,b.SubscribeWhatsAppColumn=Pl,b.TagHeader=od,b.TagSection=Yo,b.TimeLine=jo,b.TrimPathname=Ti,b.TwitterHydration=k1,b.VideoBlock3=Vl,b.VideoBlock4=Rl,b.VideoEmbeddedHeader=gr,b.VideoSection=E1,b.VideoYoutubeHeader=pr,b.VideosSchemas=Us,b.WebsiteList=ks,b.addComment=yh,b.bannersReplace=ln,b.becomeVideoObject=vt,b.buildTagUrl=tt,b.coloringByStrokeSVGs=Hl,b.compileStyleProps=jn,b.createAssessment=Pi,b.cutString=qe,b.decodeApiEnv=aa,b.encodeApiEnv=na,b.extractMainSlug=xe,b.extractRealtedNews=Zn,b.formatDate=Be,b.formatDateEdiciones=wi,b.formatDateJournalistArticule=cn,b.formatDateTimeline=hs,b.formatNewsMeta=gs,b.formatVideoData=vs,b.generalGetData=ml,b.getCaptchaToken=Da,b.getComments=Qr,b.getConfig=z,b.getDynamicSlots=ul,b.getEnvironmentUrl=Bt,b.getEnvironmentUrlFront=vi,b.getHydratorPath=Li,b.getImageUrl=ue,b.getNextMeta=qt,b.getPage=Ot,b.getPlayIcon=_n,b.getPreloadImages=Di,b.getPrevMeta=Pt,b.getRelatedNewsCarrousel=Bi,b.getReportReasonLabel=M1,b.getResponse=ct,b.getResponsePromise=us,b.getSchemas=dn,b.getScriptReplaces=sa,b.getSlugs=Bs,b.getTypeOfNews=Ui,b.getVideoRealPath=xi,b.handleGetComments=Yn,b.initLibrary=Rr,b.metadataToJSX=ws,b.metadata_defaults=Co,b.parseTags=Xn,b.pathnameSplit=ps,b.processExtractedRelatedNews=fs,b.removePages=Ls,b.reportComment=O1,b.shareButtons=Oo,b.socialIcons=En,b.speculationRules=Ss,b.speculationRulesHome=_s,b.toISOWithTimeZone=Ct,b.urlReplaces=As,b.usePlayIcon=ba,b.verifyCaptchaTokenEnterprise=bh,Object.defineProperty(b,Symbol.toStringTag,{value:"Module"})}));
|