sass-template-common 0.9.136 → 0.9.137
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.
|
@@ -1460,7 +1460,8 @@ export declare class MainComponentServices {
|
|
|
1460
1460
|
imgSizes: any;
|
|
1461
1461
|
configVersion: string;
|
|
1462
1462
|
axiosApi: AxiosInstance | undefined;
|
|
1463
|
-
|
|
1463
|
+
customMainImagesSize: string | undefined;
|
|
1464
|
+
constructor(config: Config, imgSizes: any, axiosApi: AxiosInstance, exclude?: string, customMainImagesSizes?: string);
|
|
1464
1465
|
getNewsListZone(params: Params): Promise<AxiosResponse<NewListResponse, any, {}> | undefined>;
|
|
1465
1466
|
getOutstandingBlock(params: Params): Promise<AxiosResponse< {
|
|
1466
1467
|
data: Array<Outstanding>;
|
|
@@ -2074,8 +2074,9 @@ class Kd {
|
|
|
2074
2074
|
imgSizes = {};
|
|
2075
2075
|
configVersion = ".config";
|
|
2076
2076
|
axiosApi = void 0;
|
|
2077
|
-
|
|
2078
|
-
|
|
2077
|
+
customMainImagesSize = void 0;
|
|
2078
|
+
constructor(t, s, a, r, i) {
|
|
2079
|
+
this.config = t, this.imgSizes = s, this.axiosApi = a, this.customMainImagesSize = i, t.configVersion && (this.configVersion = t.configVersion), r && (this.exclude = r);
|
|
2079
2080
|
}
|
|
2080
2081
|
async getNewsListZone(t) {
|
|
2081
2082
|
if (this.axiosApi)
|
|
@@ -2123,7 +2124,7 @@ class Kd {
|
|
|
2123
2124
|
await this.getNewsListZoneWrapper(
|
|
2124
2125
|
t,
|
|
2125
2126
|
1,
|
|
2126
|
-
`${this.imgSizes.xl}${this.imgSizes.lg}`
|
|
2127
|
+
this.customMainImagesSize || `${this.imgSizes.xl}${this.imgSizes.lg}`
|
|
2127
2128
|
),
|
|
2128
2129
|
await this.getNewsListZoneWrapper(t, 5)
|
|
2129
2130
|
]);
|
|
@@ -2151,7 +2152,7 @@ class Kd {
|
|
|
2151
2152
|
await this.getNewsListZoneWrapper(
|
|
2152
2153
|
t,
|
|
2153
2154
|
1,
|
|
2154
|
-
"w:801,h:449,t:2;w:410,h:590,t:2;"
|
|
2155
|
+
this.customMainImagesSize || "w:801,h:449,t:2;w:410,h:590,t:2;"
|
|
2155
2156
|
),
|
|
2156
2157
|
await this.getNewsListZoneWrapper(t, 5, "w:180,h:180,t:2;")
|
|
2157
2158
|
]);
|
|
@@ -7915,23 +7916,24 @@ const Eu = (e) => {
|
|
|
7915
7916
|
);
|
|
7916
7917
|
}, Yt = (e) => {
|
|
7917
7918
|
const {
|
|
7918
|
-
|
|
7919
|
-
|
|
7920
|
-
|
|
7921
|
-
|
|
7922
|
-
|
|
7923
|
-
|
|
7924
|
-
|
|
7925
|
-
|
|
7919
|
+
isVideo: t,
|
|
7920
|
+
info: s,
|
|
7921
|
+
main: a,
|
|
7922
|
+
overImage: r = "default",
|
|
7923
|
+
titleGradient: i = !1
|
|
7924
|
+
} = e, { SHOW_TAG_BY_SECTION: o, SUB_PUBLICATION_PREFIX_IN_ROUTES: l } = B(), u = () => {
|
|
7925
|
+
if (o && e.keywords?.tags?.length && e.keywords.tags.length > 0) {
|
|
7926
|
+
const c = e.keywords.tags[0], d = c.name;
|
|
7927
|
+
return c.approved ? /* @__PURE__ */ n("h3", { children: /* @__PURE__ */ n(
|
|
7926
7928
|
P,
|
|
7927
7929
|
{
|
|
7928
|
-
"aria-label":
|
|
7929
|
-
block_subPublication:
|
|
7930
|
+
"aria-label": d,
|
|
7931
|
+
block_subPublication: l?.tema,
|
|
7930
7932
|
className: "sass-com-sc2-sectionDescription",
|
|
7931
|
-
href: je(
|
|
7932
|
-
children:
|
|
7933
|
+
href: je(c, e.paths),
|
|
7934
|
+
children: d
|
|
7933
7935
|
}
|
|
7934
|
-
) }) : /* @__PURE__ */ n("div", { className: "sass-com-sc2-sectionDescription", children:
|
|
7936
|
+
) }) : /* @__PURE__ */ n("div", { className: "sass-com-sc2-sectionDescription", children: d });
|
|
7935
7937
|
} else if (e.info?.section?.url)
|
|
7936
7938
|
return /* @__PURE__ */ n("h3", { children: /* @__PURE__ */ n(
|
|
7937
7939
|
P,
|
|
@@ -7944,14 +7946,14 @@ const Eu = (e) => {
|
|
|
7944
7946
|
) });
|
|
7945
7947
|
return null;
|
|
7946
7948
|
};
|
|
7947
|
-
return
|
|
7949
|
+
return /* @__PURE__ */ g("section", { className: "sass-com-sc2-content", children: [
|
|
7948
7950
|
/* @__PURE__ */ n(
|
|
7949
7951
|
P,
|
|
7950
7952
|
{
|
|
7951
|
-
title:
|
|
7952
|
-
href:
|
|
7953
|
-
target:
|
|
7954
|
-
children: /* @__PURE__ */ n(ve, { preview: e.preview })
|
|
7953
|
+
title: a?.title?.section,
|
|
7954
|
+
href: s.link.url,
|
|
7955
|
+
target: s.link.target,
|
|
7956
|
+
children: /* @__PURE__ */ n(ve, { preview: e.preview, isVideo: t })
|
|
7955
7957
|
}
|
|
7956
7958
|
),
|
|
7957
7959
|
/* @__PURE__ */ g(
|
|
@@ -7959,15 +7961,15 @@ const Eu = (e) => {
|
|
|
7959
7961
|
{
|
|
7960
7962
|
className: [
|
|
7961
7963
|
"sass-com-sc2-boxInformation",
|
|
7962
|
-
|
|
7964
|
+
i ? "sass-com-sc2-titleGradient" : ""
|
|
7963
7965
|
].join(" "),
|
|
7964
7966
|
style: {
|
|
7965
|
-
width:
|
|
7966
|
-
left:
|
|
7967
|
-
top:
|
|
7967
|
+
width: r !== "default" ? "90%" : "",
|
|
7968
|
+
left: r === "left" ? 0 : r === "right" ? "calc(10% - 1px)" : "auto",
|
|
7969
|
+
top: r !== "default" ? "-1rem" : ""
|
|
7968
7970
|
},
|
|
7969
7971
|
children: [
|
|
7970
|
-
/* @__PURE__ */ n(
|
|
7972
|
+
/* @__PURE__ */ n(u, {}),
|
|
7971
7973
|
/* @__PURE__ */ n("h2", { className: "sass-com-sc2-articule", children: /* @__PURE__ */ n(
|
|
7972
7974
|
P,
|
|
7973
7975
|
{
|
|
@@ -16213,16 +16215,10 @@ const _a = async (e, t) => {
|
|
|
16213
16215
|
cardGap: 32,
|
|
16214
16216
|
visibleItems: 3,
|
|
16215
16217
|
children: t.map((i, o) => {
|
|
16216
|
-
const l = {
|
|
16217
|
-
...i,
|
|
16218
|
-
|
|
16219
|
-
|
|
16220
|
-
},
|
|
16221
|
-
main: {
|
|
16222
|
-
...i.main,
|
|
16223
|
-
title: { ...i.main.title, section: r ? i.main.title.home : i.main.title.section }
|
|
16224
|
-
}
|
|
16225
|
-
};
|
|
16218
|
+
const l = { ...i, main: {
|
|
16219
|
+
...i.main,
|
|
16220
|
+
title: { ...i.main.title, section: r ? i.main.title.home : i.main.title.section }
|
|
16221
|
+
} };
|
|
16226
16222
|
return /* @__PURE__ */ n(
|
|
16227
16223
|
Yt,
|
|
16228
16224
|
{
|
|
@@ -118,7 +118,7 @@ j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
|
|
|
118
118
|
<h2>Params</h2>
|
|
119
119
|
<pre>${Oo(e.params)}</pre>
|
|
120
120
|
</body>
|
|
121
|
-
</html>`},X=async e=>{const{SERVICE_DEBUG:t}=M();if(!t?.enabled)return;const a=Mo(e);if(typeof t.onReportHtml=="function")try{await t.onReportHtml(a,e);return}catch(r){console.error("[SERVICE_DEBUG] onReportHtml failed",r)}console.error("[SERVICE_DEBUG] Service error report (HTML):"),console.error(a)};class qo{exclude="keywords,gallery,related,relatedexternal,external,customfields";config={};imgSizes={};configVersion=".config";axiosApi=void 0;constructor(t,a,r,n){this.config=t,this.imgSizes=a,this.axiosApi=r,t.configVersion&&(this.configVersion=t.configVersion),n&&(this.exclude=n)}async getNewsListZone(t){if(this.axiosApi)return this.axiosApi.get("/news-list-zone",{params:t}).catch(a=>(console.log(`[/news-list-zone] Error: ${a.message}`),console.log(a),X({service:"MainComponentServices.getNewsListZone",endpoint:"/news-list-zone",method:"GET",params:t,message:a?.message??"Unknown error",status:a?.response?.status,error:a}),Promise.reject(a)))}async getOutstandingBlock(t){if(this.axiosApi)return this.axiosApi.get("/config/blocks",{params:{...t,path:this.config.servicePrefix+`/${this.configVersion}/columna_derecha.html`}}).catch(a=>(console.log(`[/config/blocks] Error: ${a.message}`),console.log(a),X({service:"MainComponentServices.getOutstandingBlock",endpoint:"/config/blocks",method:"GET",params:t,message:a?.message??"Unknown error",status:a?.response?.status,error:a}),Promise.reject(a)))}getNewsListZoneWrapper(t,a,r){return this.getNewsListZone({zone:"destacadas",size:a,onmainpage:t?"section":void 0,section:t,newstype:this.config.newsType,exclude:this.exclude,imagesizes:r})}async getNewsDestacadoDiario(t){try{const[a,r]=await Promise.all([await this.getNewsListZoneWrapper(t,1,`${this.imgSizes.xl}${this.imgSizes.lg}`),await this.getNewsListZoneWrapper(t,5)]);return!a?.data?.data||!r?.data?.data?[]:(a.data.data=[...a.data.data,...r.data.data.slice(1)],a)}catch(a){return console.log(`[MainComponentServices.getNewsDestacadoDiario] Error: ${a?.message}`),X({service:"MainComponentServices.getNewsDestacadoDiario",endpoint:"[composite]/news-list-zone",method:"GET",params:{section:t},message:a?.message??"Unknown error",status:a?.response?.status,error:a}),[]}}async getNewsDestacadoDiarioImage(t){try{const[a,r]=await Promise.all([await this.getNewsListZoneWrapper(t,1,"w:801,h:449,t:2;w:410,h:590,t:2;"),await this.getNewsListZoneWrapper(t,5,"w:180,h:180,t:2;")]);return!a?.data?.data||!r?.data?.data?[]:(a.data.data=[...a.data.data,...r.data.data.slice(1)],a)}catch(a){return console.log(`[MainComponentServices.getNewsDestacadoDiarioImage] Error: ${a?.message}`),X({service:"MainComponentServices.getNewsDestacadoDiarioImage",endpoint:"[composite]/news-list-zone",method:"GET",params:{section:t},message:a?.message??"Unknown error",status:a?.response?.status,error:a}),[]}}async getNewsAltoImpacto(t){try{return await this.getNewsListZoneWrapper(t,1,"w:1185,h:613,t:2;w:380,h:548,t:2;")}catch(a){console.log(`[MainComponentServices.getNewsAltoImpacto] Error: ${a?.message}`),X({service:"MainComponentServices.getNewsAltoImpacto",endpoint:"[composite]/news-list-zone",method:"GET",params:{section:t},message:a?.message??"Unknown error",status:a?.response?.status,error:a});return}}async getNewsDestacadoVertical(t){try{const[a,r]=await Promise.all([await this.getNewsListZoneWrapper(t,1,`w:590,h:512,t:2;${this.imgSizes.lg}`),await this.getNewsListZoneWrapper(t,3,`${this.imgSizes.lg}w:290,h:512,t:2;`)]);return!a?.data?.data||!r?.data?.data?[]:(a.data.data=[...a.data.data,...r.data.data.slice(1)],a)}catch(a){return console.log(`[MainComponentServices.getNewsDestacadoVertical] Error: ${a?.message}`),X({service:"MainComponentServices.getNewsDestacadoVertical",endpoint:"[composite]/news-list-zone",method:"GET",params:{section:t},message:a?.message??"Unknown error",status:a?.response?.status,error:a}),[]}}async getNewsDestacadoHorizontal(t){try{const[a,r]=await Promise.all([await this.getNewsListZoneWrapper(t,1,`w:843,h:512,t:2;${this.imgSizes.lg}`),await this.getNewsListZoneWrapper(t,3,"w:437,h:256,t:2;")]);return!a?.data?.data||!r?.data?.data?[]:(a.data.data=[...a.data.data,...r.data.data.slice(1)],a)}catch(a){return console.log(`[MainComponentServices.getNewsDestacadoHorizontal] Error: ${a?.message}`),X({service:"MainComponentServices.getNewsDestacadoHorizontal",endpoint:"[composite]/news-list-zone",method:"GET",params:{section:t},message:a?.message??"Unknown error",status:a?.response?.status,error:a}),[]}}GetByOptions={Diario:t=>this.getNewsDestacadoDiario(t),"Diario con imagen":t=>this.getNewsDestacadoDiarioImage(t),Super:t=>this.getNewsAltoImpacto(t),"3 notas verticales":t=>this.getNewsDestacadoVertical(t),"3 notas horizontales":t=>this.getNewsDestacadoHorizontal(t)};async getMainBlockData(t,a){try{const n=(await this.getOutstandingBlock(t))?.data.data[0]?.value||"";if(!n||!Object.keys(this.GetByOptions).includes(n))return{section:n,news:[]};const o=await this.GetByOptions[n](a);return{section:n,news:o.data}}catch(r){return console.log(`[MainComponentServices.getMainBlockData] Error: ${r?.message}`),X({service:"MainComponentServices.getMainBlockData",endpoint:"[composite]/main-block",method:"INTERNAL",params:{params:t,section:a},message:r?.message??"Unknown error",status:r?.response?.status,error:r}),{section:"",news:[]}}}}function Da(e,t){return function(){return e.apply(t,arguments)}}const{toString:Do}=Object.prototype,{getPrototypeOf:cs}=Object,{iterator:yt,toStringTag:_a}=Symbol,Nt=(e=>t=>{const a=Do.call(t);return e[a]||(e[a]=a.slice(8,-1).toLowerCase())})(Object.create(null)),be=e=>(e=e.toLowerCase(),t=>Nt(t)===e),St=e=>t=>typeof t===e,{isArray:ze}=Array,We=St("undefined");function at(e){return e!==null&&!We(e)&&e.constructor!==null&&!We(e.constructor)&&ue(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Ga=be("ArrayBuffer");function _o(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Ga(e.buffer),t}const Go=St("string"),ue=St("function"),ja=St("number"),rt=e=>e!==null&&typeof e=="object",jo=e=>e===!0||e===!1,Et=e=>{if(Nt(e)!=="object")return!1;const t=cs(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(_a in e)&&!(yt in e)},Qo=e=>{if(!rt(e)||at(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Fo=be("Date"),Vo=be("File"),Ho=be("Blob"),zo=be("FileList"),Wo=e=>rt(e)&&ue(e.pipe),Yo=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||ue(e.append)&&((t=Nt(e))==="formdata"||t==="object"&&ue(e.toString)&&e.toString()==="[object FormData]"))},$o=be("URLSearchParams"),[Ko,Jo,Zo,Xo]=["ReadableStream","Request","Response","Headers"].map(be),Ro=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function nt(e,t,{allOwnKeys:a=!1}={}){if(e===null||typeof e>"u")return;let r,n;if(typeof e!="object"&&(e=[e]),ze(e))for(r=0,n=e.length;r<n;r++)t.call(null,e[r],r,e);else{if(at(e))return;const o=a?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let l;for(r=0;r<i;r++)l=o[r],t.call(null,e[l],l,e)}}function Qa(e,t){if(at(e))return null;t=t.toLowerCase();const a=Object.keys(e);let r=a.length,n;for(;r-- >0;)if(n=a[r],t===n.toLowerCase())return n;return null}const _e=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Fa=e=>!We(e)&&e!==_e;function ds(){const{caseless:e,skipUndefined:t}=Fa(this)&&this||{},a={},r=(n,o)=>{const i=e&&Qa(a,o)||o;Et(a[i])&&Et(n)?a[i]=ds(a[i],n):Et(n)?a[i]=ds({},n):ze(n)?a[i]=n.slice():(!t||!We(n))&&(a[i]=n)};for(let n=0,o=arguments.length;n<o;n++)arguments[n]&&nt(arguments[n],r);return a}const ei=(e,t,a,{allOwnKeys:r}={})=>(nt(t,(n,o)=>{a&&ue(n)?e[o]=Da(n,a):e[o]=n},{allOwnKeys:r}),e),ti=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),si=(e,t,a,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),a&&Object.assign(e.prototype,a)},ai=(e,t,a,r)=>{let n,o,i;const l={};if(t=t||{},e==null)return t;do{for(n=Object.getOwnPropertyNames(e),o=n.length;o-- >0;)i=n[o],(!r||r(i,e,t))&&!l[i]&&(t[i]=e[i],l[i]=!0);e=a!==!1&&cs(e)}while(e&&(!a||a(e,t))&&e!==Object.prototype);return t},ri=(e,t,a)=>{e=String(e),(a===void 0||a>e.length)&&(a=e.length),a-=t.length;const r=e.indexOf(t,a);return r!==-1&&r===a},ni=e=>{if(!e)return null;if(ze(e))return e;let t=e.length;if(!ja(t))return null;const a=new Array(t);for(;t-- >0;)a[t]=e[t];return a},oi=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&cs(Uint8Array)),ii=(e,t)=>{const r=(e&&e[yt]).call(e);let n;for(;(n=r.next())&&!n.done;){const o=n.value;t.call(e,o[0],o[1])}},li=(e,t)=>{let a;const r=[];for(;(a=e.exec(t))!==null;)r.push(a);return r},ci=be("HTMLFormElement"),di=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(a,r,n){return r.toUpperCase()+n}),Va=(({hasOwnProperty:e})=>(t,a)=>e.call(t,a))(Object.prototype),hi=be("RegExp"),Ha=(e,t)=>{const a=Object.getOwnPropertyDescriptors(e),r={};nt(a,(n,o)=>{let i;(i=t(n,o,e))!==!1&&(r[o]=i||n)}),Object.defineProperties(e,r)},ui=e=>{Ha(e,(t,a)=>{if(ue(e)&&["arguments","caller","callee"].indexOf(a)!==-1)return!1;const r=e[a];if(ue(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+a+"'")})}})},mi=(e,t)=>{const a={},r=n=>{n.forEach(o=>{a[o]=!0})};return ze(e)?r(e):r(String(e).split(t)),a},fi=()=>{},gi=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function pi(e){return!!(e&&ue(e.append)&&e[_a]==="FormData"&&e[yt])}const Ai=e=>{const t=new Array(10),a=(r,n)=>{if(rt(r)){if(t.indexOf(r)>=0)return;if(at(r))return r;if(!("toJSON"in r)){t[n]=r;const o=ze(r)?[]:{};return nt(r,(i,l)=>{const h=a(i,n+1);!We(h)&&(o[l]=h)}),t[n]=void 0,o}}return r};return a(e,0)},wi=be("AsyncFunction"),bi=e=>e&&(rt(e)||ue(e))&&ue(e.then)&&ue(e.catch),za=((e,t)=>e?setImmediate:t?((a,r)=>(_e.addEventListener("message",({source:n,data:o})=>{n===_e&&o===a&&r.length&&r.shift()()},!1),n=>{r.push(n),_e.postMessage(a,"*")}))(`axios@${Math.random()}`,[]):a=>setTimeout(a))(typeof setImmediate=="function",ue(_e.postMessage)),vi=typeof queueMicrotask<"u"?queueMicrotask.bind(_e):typeof process<"u"&&process.nextTick||za,y={isArray:ze,isArrayBuffer:Ga,isBuffer:at,isFormData:Yo,isArrayBufferView:_o,isString:Go,isNumber:ja,isBoolean:jo,isObject:rt,isPlainObject:Et,isEmptyObject:Qo,isReadableStream:Ko,isRequest:Jo,isResponse:Zo,isHeaders:Xo,isUndefined:We,isDate:Fo,isFile:Vo,isBlob:Ho,isRegExp:hi,isFunction:ue,isStream:Wo,isURLSearchParams:$o,isTypedArray:oi,isFileList:zo,forEach:nt,merge:ds,extend:ei,trim:Ro,stripBOM:ti,inherits:si,toFlatObject:ai,kindOf:Nt,kindOfTest:be,endsWith:ri,toArray:ni,forEachEntry:ii,matchAll:li,isHTMLForm:ci,hasOwnProperty:Va,hasOwnProp:Va,reduceDescriptors:Ha,freezeMethods:ui,toObjectSet:mi,toCamelCase:di,noop:fi,toFiniteNumber:gi,findKey:Qa,global:_e,isContextDefined:Fa,isSpecCompliantForm:pi,toJSONObject:Ai,isAsyncFn:wi,isThenable:bi,setImmediate:za,asap:vi,isIterable:e=>e!=null&&ue(e[yt])};function Z(e,t,a,r,n){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),a&&(this.config=a),r&&(this.request=r),n&&(this.response=n,this.status=n.status?n.status:null)}y.inherits(Z,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:y.toJSONObject(this.config),code:this.code,status:this.status}}});const Wa=Z.prototype,Ya={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Ya[e]={value:e}}),Object.defineProperties(Z,Ya),Object.defineProperty(Wa,"isAxiosError",{value:!0}),Z.from=(e,t,a,r,n,o)=>{const i=Object.create(Wa);y.toFlatObject(e,i,function(d){return d!==Error.prototype},c=>c!=="isAxiosError");const l=e&&e.message?e.message:"Error",h=t==null&&e?e.code:t;return Z.call(i,l,h,a,r,n),e&&i.cause==null&&Object.defineProperty(i,"cause",{value:e,configurable:!0}),i.name=e&&e.name||"Error",o&&Object.assign(i,o),i};const Ci=null;function hs(e){return y.isPlainObject(e)||y.isArray(e)}function $a(e){return y.endsWith(e,"[]")?e.slice(0,-2):e}function Ka(e,t,a){return e?e.concat(t).map(function(n,o){return n=$a(n),!a&&o?"["+n+"]":n}).join(a?".":""):t}function yi(e){return y.isArray(e)&&!e.some(hs)}const Ni=y.toFlatObject(y,{},null,function(t){return/^is[A-Z]/.test(t)});function Tt(e,t,a){if(!y.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,a=y.toFlatObject(a,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,A){return!y.isUndefined(A[p])});const r=a.metaTokens,n=a.visitor||d,o=a.dots,i=a.indexes,h=(a.Blob||typeof Blob<"u"&&Blob)&&y.isSpecCompliantForm(t);if(!y.isFunction(n))throw new TypeError("visitor must be a function");function c(f){if(f===null)return"";if(y.isDate(f))return f.toISOString();if(y.isBoolean(f))return f.toString();if(!h&&y.isBlob(f))throw new Z("Blob is not supported. Use a Buffer instead.");return y.isArrayBuffer(f)||y.isTypedArray(f)?h&&typeof Blob=="function"?new Blob([f]):Buffer.from(f):f}function d(f,p,A){let v=f;if(f&&!A&&typeof f=="object"){if(y.endsWith(p,"{}"))p=r?p:p.slice(0,-2),f=JSON.stringify(f);else if(y.isArray(f)&&yi(f)||(y.isFileList(f)||y.endsWith(p,"[]"))&&(v=y.toArray(f)))return p=$a(p),v.forEach(function(S,E){!(y.isUndefined(S)||S===null)&&t.append(i===!0?Ka([p],E,o):i===null?p:p+"[]",c(S))}),!1}return hs(f)?!0:(t.append(Ka(A,p,o),c(f)),!1)}const u=[],m=Object.assign(Ni,{defaultVisitor:d,convertValue:c,isVisitable:hs});function g(f,p){if(!y.isUndefined(f)){if(u.indexOf(f)!==-1)throw Error("Circular reference detected in "+p.join("."));u.push(f),y.forEach(f,function(v,N){(!(y.isUndefined(v)||v===null)&&n.call(t,v,y.isString(N)?N.trim():N,p,m))===!0&&g(v,p?p.concat(N):[N])}),u.pop()}}if(!y.isObject(e))throw new TypeError("data must be an object");return g(e),t}function Ja(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function us(e,t){this._pairs=[],e&&Tt(e,this,t)}const Za=us.prototype;Za.append=function(t,a){this._pairs.push([t,a])},Za.toString=function(t){const a=t?function(r){return t.call(this,r,Ja)}:Ja;return this._pairs.map(function(n){return a(n[0])+"="+a(n[1])},"").join("&")};function Si(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Xa(e,t,a){if(!t)return e;const r=a&&a.encode||Si;y.isFunction(a)&&(a={serialize:a});const n=a&&a.serialize;let o;if(n?o=n(t,a):o=y.isURLSearchParams(t)?t.toString():new us(t,a).toString(r),o){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class Ra{constructor(){this.handlers=[]}use(t,a,r){return this.handlers.push({fulfilled:t,rejected:a,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){y.forEach(this.handlers,function(r){r!==null&&t(r)})}}const er={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Ei={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:us,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},ms=typeof window<"u"&&typeof document<"u",fs=typeof navigator=="object"&&navigator||void 0,Ti=ms&&(!fs||["ReactNative","NativeScript","NS"].indexOf(fs.product)<0),Ii=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Ui=ms&&window.location.href||"http://localhost",le={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ms,hasStandardBrowserEnv:Ti,hasStandardBrowserWebWorkerEnv:Ii,navigator:fs,origin:Ui},Symbol.toStringTag,{value:"Module"})),...Ei};function ki(e,t){return Tt(e,new le.classes.URLSearchParams,{visitor:function(a,r,n,o){return le.isNode&&y.isBuffer(a)?(this.append(r,a.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...t})}function Li(e){return y.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Pi(e){const t={},a=Object.keys(e);let r;const n=a.length;let o;for(r=0;r<n;r++)o=a[r],t[o]=e[o];return t}function tr(e){function t(a,r,n,o){let i=a[o++];if(i==="__proto__")return!0;const l=Number.isFinite(+i),h=o>=a.length;return i=!i&&y.isArray(n)?n.length:i,h?(y.hasOwnProp(n,i)?n[i]=[n[i],r]:n[i]=r,!l):((!n[i]||!y.isObject(n[i]))&&(n[i]=[]),t(a,r,n[i],o)&&y.isArray(n[i])&&(n[i]=Pi(n[i])),!l)}if(y.isFormData(e)&&y.isFunction(e.entries)){const a={};return y.forEachEntry(e,(r,n)=>{t(Li(r),n,a,0)}),a}return null}function xi(e,t,a){if(y.isString(e))try{return(t||JSON.parse)(e),y.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(a||JSON.stringify)(e)}const ot={transitional:er,adapter:["xhr","http","fetch"],transformRequest:[function(t,a){const r=a.getContentType()||"",n=r.indexOf("application/json")>-1,o=y.isObject(t);if(o&&y.isHTMLForm(t)&&(t=new FormData(t)),y.isFormData(t))return n?JSON.stringify(tr(t)):t;if(y.isArrayBuffer(t)||y.isBuffer(t)||y.isStream(t)||y.isFile(t)||y.isBlob(t)||y.isReadableStream(t))return t;if(y.isArrayBufferView(t))return t.buffer;if(y.isURLSearchParams(t))return a.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return ki(t,this.formSerializer).toString();if((l=y.isFileList(t))||r.indexOf("multipart/form-data")>-1){const h=this.env&&this.env.FormData;return Tt(l?{"files[]":t}:t,h&&new h,this.formSerializer)}}return o||n?(a.setContentType("application/json",!1),xi(t)):t}],transformResponse:[function(t){const a=this.transitional||ot.transitional,r=a&&a.forcedJSONParsing,n=this.responseType==="json";if(y.isResponse(t)||y.isReadableStream(t))return t;if(t&&y.isString(t)&&(r&&!this.responseType||n)){const i=!(a&&a.silentJSONParsing)&&n;try{return JSON.parse(t,this.parseReviver)}catch(l){if(i)throw l.name==="SyntaxError"?Z.from(l,Z.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:le.classes.FormData,Blob:le.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};y.forEach(["delete","get","head","post","put","patch"],e=>{ot.headers[e]={}});const Bi=y.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Oi=e=>{const t={};let a,r,n;return e&&e.split(`
|
|
121
|
+
</html>`},X=async e=>{const{SERVICE_DEBUG:t}=M();if(!t?.enabled)return;const a=Mo(e);if(typeof t.onReportHtml=="function")try{await t.onReportHtml(a,e);return}catch(r){console.error("[SERVICE_DEBUG] onReportHtml failed",r)}console.error("[SERVICE_DEBUG] Service error report (HTML):"),console.error(a)};class qo{exclude="keywords,gallery,related,relatedexternal,external,customfields";config={};imgSizes={};configVersion=".config";axiosApi=void 0;customMainImagesSize=void 0;constructor(t,a,r,n,o){this.config=t,this.imgSizes=a,this.axiosApi=r,this.customMainImagesSize=o,t.configVersion&&(this.configVersion=t.configVersion),n&&(this.exclude=n)}async getNewsListZone(t){if(this.axiosApi)return this.axiosApi.get("/news-list-zone",{params:t}).catch(a=>(console.log(`[/news-list-zone] Error: ${a.message}`),console.log(a),X({service:"MainComponentServices.getNewsListZone",endpoint:"/news-list-zone",method:"GET",params:t,message:a?.message??"Unknown error",status:a?.response?.status,error:a}),Promise.reject(a)))}async getOutstandingBlock(t){if(this.axiosApi)return this.axiosApi.get("/config/blocks",{params:{...t,path:this.config.servicePrefix+`/${this.configVersion}/columna_derecha.html`}}).catch(a=>(console.log(`[/config/blocks] Error: ${a.message}`),console.log(a),X({service:"MainComponentServices.getOutstandingBlock",endpoint:"/config/blocks",method:"GET",params:t,message:a?.message??"Unknown error",status:a?.response?.status,error:a}),Promise.reject(a)))}getNewsListZoneWrapper(t,a,r){return this.getNewsListZone({zone:"destacadas",size:a,onmainpage:t?"section":void 0,section:t,newstype:this.config.newsType,exclude:this.exclude,imagesizes:r})}async getNewsDestacadoDiario(t){try{const[a,r]=await Promise.all([await this.getNewsListZoneWrapper(t,1,this.customMainImagesSize||`${this.imgSizes.xl}${this.imgSizes.lg}`),await this.getNewsListZoneWrapper(t,5)]);return!a?.data?.data||!r?.data?.data?[]:(a.data.data=[...a.data.data,...r.data.data.slice(1)],a)}catch(a){return console.log(`[MainComponentServices.getNewsDestacadoDiario] Error: ${a?.message}`),X({service:"MainComponentServices.getNewsDestacadoDiario",endpoint:"[composite]/news-list-zone",method:"GET",params:{section:t},message:a?.message??"Unknown error",status:a?.response?.status,error:a}),[]}}async getNewsDestacadoDiarioImage(t){try{const[a,r]=await Promise.all([await this.getNewsListZoneWrapper(t,1,this.customMainImagesSize||"w:801,h:449,t:2;w:410,h:590,t:2;"),await this.getNewsListZoneWrapper(t,5,"w:180,h:180,t:2;")]);return!a?.data?.data||!r?.data?.data?[]:(a.data.data=[...a.data.data,...r.data.data.slice(1)],a)}catch(a){return console.log(`[MainComponentServices.getNewsDestacadoDiarioImage] Error: ${a?.message}`),X({service:"MainComponentServices.getNewsDestacadoDiarioImage",endpoint:"[composite]/news-list-zone",method:"GET",params:{section:t},message:a?.message??"Unknown error",status:a?.response?.status,error:a}),[]}}async getNewsAltoImpacto(t){try{return await this.getNewsListZoneWrapper(t,1,"w:1185,h:613,t:2;w:380,h:548,t:2;")}catch(a){console.log(`[MainComponentServices.getNewsAltoImpacto] Error: ${a?.message}`),X({service:"MainComponentServices.getNewsAltoImpacto",endpoint:"[composite]/news-list-zone",method:"GET",params:{section:t},message:a?.message??"Unknown error",status:a?.response?.status,error:a});return}}async getNewsDestacadoVertical(t){try{const[a,r]=await Promise.all([await this.getNewsListZoneWrapper(t,1,`w:590,h:512,t:2;${this.imgSizes.lg}`),await this.getNewsListZoneWrapper(t,3,`${this.imgSizes.lg}w:290,h:512,t:2;`)]);return!a?.data?.data||!r?.data?.data?[]:(a.data.data=[...a.data.data,...r.data.data.slice(1)],a)}catch(a){return console.log(`[MainComponentServices.getNewsDestacadoVertical] Error: ${a?.message}`),X({service:"MainComponentServices.getNewsDestacadoVertical",endpoint:"[composite]/news-list-zone",method:"GET",params:{section:t},message:a?.message??"Unknown error",status:a?.response?.status,error:a}),[]}}async getNewsDestacadoHorizontal(t){try{const[a,r]=await Promise.all([await this.getNewsListZoneWrapper(t,1,`w:843,h:512,t:2;${this.imgSizes.lg}`),await this.getNewsListZoneWrapper(t,3,"w:437,h:256,t:2;")]);return!a?.data?.data||!r?.data?.data?[]:(a.data.data=[...a.data.data,...r.data.data.slice(1)],a)}catch(a){return console.log(`[MainComponentServices.getNewsDestacadoHorizontal] Error: ${a?.message}`),X({service:"MainComponentServices.getNewsDestacadoHorizontal",endpoint:"[composite]/news-list-zone",method:"GET",params:{section:t},message:a?.message??"Unknown error",status:a?.response?.status,error:a}),[]}}GetByOptions={Diario:t=>this.getNewsDestacadoDiario(t),"Diario con imagen":t=>this.getNewsDestacadoDiarioImage(t),Super:t=>this.getNewsAltoImpacto(t),"3 notas verticales":t=>this.getNewsDestacadoVertical(t),"3 notas horizontales":t=>this.getNewsDestacadoHorizontal(t)};async getMainBlockData(t,a){try{const n=(await this.getOutstandingBlock(t))?.data.data[0]?.value||"";if(!n||!Object.keys(this.GetByOptions).includes(n))return{section:n,news:[]};const o=await this.GetByOptions[n](a);return{section:n,news:o.data}}catch(r){return console.log(`[MainComponentServices.getMainBlockData] Error: ${r?.message}`),X({service:"MainComponentServices.getMainBlockData",endpoint:"[composite]/main-block",method:"INTERNAL",params:{params:t,section:a},message:r?.message??"Unknown error",status:r?.response?.status,error:r}),{section:"",news:[]}}}}function Da(e,t){return function(){return e.apply(t,arguments)}}const{toString:Do}=Object.prototype,{getPrototypeOf:cs}=Object,{iterator:yt,toStringTag:_a}=Symbol,Nt=(e=>t=>{const a=Do.call(t);return e[a]||(e[a]=a.slice(8,-1).toLowerCase())})(Object.create(null)),be=e=>(e=e.toLowerCase(),t=>Nt(t)===e),St=e=>t=>typeof t===e,{isArray:ze}=Array,We=St("undefined");function at(e){return e!==null&&!We(e)&&e.constructor!==null&&!We(e.constructor)&&ue(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Ga=be("ArrayBuffer");function _o(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Ga(e.buffer),t}const Go=St("string"),ue=St("function"),ja=St("number"),rt=e=>e!==null&&typeof e=="object",jo=e=>e===!0||e===!1,Et=e=>{if(Nt(e)!=="object")return!1;const t=cs(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(_a in e)&&!(yt in e)},Qo=e=>{if(!rt(e)||at(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Fo=be("Date"),Vo=be("File"),Ho=be("Blob"),zo=be("FileList"),Wo=e=>rt(e)&&ue(e.pipe),Yo=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||ue(e.append)&&((t=Nt(e))==="formdata"||t==="object"&&ue(e.toString)&&e.toString()==="[object FormData]"))},$o=be("URLSearchParams"),[Ko,Jo,Zo,Xo]=["ReadableStream","Request","Response","Headers"].map(be),Ro=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function nt(e,t,{allOwnKeys:a=!1}={}){if(e===null||typeof e>"u")return;let r,n;if(typeof e!="object"&&(e=[e]),ze(e))for(r=0,n=e.length;r<n;r++)t.call(null,e[r],r,e);else{if(at(e))return;const o=a?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let l;for(r=0;r<i;r++)l=o[r],t.call(null,e[l],l,e)}}function Qa(e,t){if(at(e))return null;t=t.toLowerCase();const a=Object.keys(e);let r=a.length,n;for(;r-- >0;)if(n=a[r],t===n.toLowerCase())return n;return null}const _e=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Fa=e=>!We(e)&&e!==_e;function ds(){const{caseless:e,skipUndefined:t}=Fa(this)&&this||{},a={},r=(n,o)=>{const i=e&&Qa(a,o)||o;Et(a[i])&&Et(n)?a[i]=ds(a[i],n):Et(n)?a[i]=ds({},n):ze(n)?a[i]=n.slice():(!t||!We(n))&&(a[i]=n)};for(let n=0,o=arguments.length;n<o;n++)arguments[n]&&nt(arguments[n],r);return a}const ei=(e,t,a,{allOwnKeys:r}={})=>(nt(t,(n,o)=>{a&&ue(n)?e[o]=Da(n,a):e[o]=n},{allOwnKeys:r}),e),ti=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),si=(e,t,a,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),a&&Object.assign(e.prototype,a)},ai=(e,t,a,r)=>{let n,o,i;const l={};if(t=t||{},e==null)return t;do{for(n=Object.getOwnPropertyNames(e),o=n.length;o-- >0;)i=n[o],(!r||r(i,e,t))&&!l[i]&&(t[i]=e[i],l[i]=!0);e=a!==!1&&cs(e)}while(e&&(!a||a(e,t))&&e!==Object.prototype);return t},ri=(e,t,a)=>{e=String(e),(a===void 0||a>e.length)&&(a=e.length),a-=t.length;const r=e.indexOf(t,a);return r!==-1&&r===a},ni=e=>{if(!e)return null;if(ze(e))return e;let t=e.length;if(!ja(t))return null;const a=new Array(t);for(;t-- >0;)a[t]=e[t];return a},oi=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&cs(Uint8Array)),ii=(e,t)=>{const r=(e&&e[yt]).call(e);let n;for(;(n=r.next())&&!n.done;){const o=n.value;t.call(e,o[0],o[1])}},li=(e,t)=>{let a;const r=[];for(;(a=e.exec(t))!==null;)r.push(a);return r},ci=be("HTMLFormElement"),di=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(a,r,n){return r.toUpperCase()+n}),Va=(({hasOwnProperty:e})=>(t,a)=>e.call(t,a))(Object.prototype),hi=be("RegExp"),Ha=(e,t)=>{const a=Object.getOwnPropertyDescriptors(e),r={};nt(a,(n,o)=>{let i;(i=t(n,o,e))!==!1&&(r[o]=i||n)}),Object.defineProperties(e,r)},ui=e=>{Ha(e,(t,a)=>{if(ue(e)&&["arguments","caller","callee"].indexOf(a)!==-1)return!1;const r=e[a];if(ue(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+a+"'")})}})},mi=(e,t)=>{const a={},r=n=>{n.forEach(o=>{a[o]=!0})};return ze(e)?r(e):r(String(e).split(t)),a},fi=()=>{},gi=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function pi(e){return!!(e&&ue(e.append)&&e[_a]==="FormData"&&e[yt])}const Ai=e=>{const t=new Array(10),a=(r,n)=>{if(rt(r)){if(t.indexOf(r)>=0)return;if(at(r))return r;if(!("toJSON"in r)){t[n]=r;const o=ze(r)?[]:{};return nt(r,(i,l)=>{const h=a(i,n+1);!We(h)&&(o[l]=h)}),t[n]=void 0,o}}return r};return a(e,0)},wi=be("AsyncFunction"),bi=e=>e&&(rt(e)||ue(e))&&ue(e.then)&&ue(e.catch),za=((e,t)=>e?setImmediate:t?((a,r)=>(_e.addEventListener("message",({source:n,data:o})=>{n===_e&&o===a&&r.length&&r.shift()()},!1),n=>{r.push(n),_e.postMessage(a,"*")}))(`axios@${Math.random()}`,[]):a=>setTimeout(a))(typeof setImmediate=="function",ue(_e.postMessage)),vi=typeof queueMicrotask<"u"?queueMicrotask.bind(_e):typeof process<"u"&&process.nextTick||za,y={isArray:ze,isArrayBuffer:Ga,isBuffer:at,isFormData:Yo,isArrayBufferView:_o,isString:Go,isNumber:ja,isBoolean:jo,isObject:rt,isPlainObject:Et,isEmptyObject:Qo,isReadableStream:Ko,isRequest:Jo,isResponse:Zo,isHeaders:Xo,isUndefined:We,isDate:Fo,isFile:Vo,isBlob:Ho,isRegExp:hi,isFunction:ue,isStream:Wo,isURLSearchParams:$o,isTypedArray:oi,isFileList:zo,forEach:nt,merge:ds,extend:ei,trim:Ro,stripBOM:ti,inherits:si,toFlatObject:ai,kindOf:Nt,kindOfTest:be,endsWith:ri,toArray:ni,forEachEntry:ii,matchAll:li,isHTMLForm:ci,hasOwnProperty:Va,hasOwnProp:Va,reduceDescriptors:Ha,freezeMethods:ui,toObjectSet:mi,toCamelCase:di,noop:fi,toFiniteNumber:gi,findKey:Qa,global:_e,isContextDefined:Fa,isSpecCompliantForm:pi,toJSONObject:Ai,isAsyncFn:wi,isThenable:bi,setImmediate:za,asap:vi,isIterable:e=>e!=null&&ue(e[yt])};function Z(e,t,a,r,n){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),a&&(this.config=a),r&&(this.request=r),n&&(this.response=n,this.status=n.status?n.status:null)}y.inherits(Z,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:y.toJSONObject(this.config),code:this.code,status:this.status}}});const Wa=Z.prototype,Ya={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Ya[e]={value:e}}),Object.defineProperties(Z,Ya),Object.defineProperty(Wa,"isAxiosError",{value:!0}),Z.from=(e,t,a,r,n,o)=>{const i=Object.create(Wa);y.toFlatObject(e,i,function(d){return d!==Error.prototype},c=>c!=="isAxiosError");const l=e&&e.message?e.message:"Error",h=t==null&&e?e.code:t;return Z.call(i,l,h,a,r,n),e&&i.cause==null&&Object.defineProperty(i,"cause",{value:e,configurable:!0}),i.name=e&&e.name||"Error",o&&Object.assign(i,o),i};const Ci=null;function hs(e){return y.isPlainObject(e)||y.isArray(e)}function $a(e){return y.endsWith(e,"[]")?e.slice(0,-2):e}function Ka(e,t,a){return e?e.concat(t).map(function(n,o){return n=$a(n),!a&&o?"["+n+"]":n}).join(a?".":""):t}function yi(e){return y.isArray(e)&&!e.some(hs)}const Ni=y.toFlatObject(y,{},null,function(t){return/^is[A-Z]/.test(t)});function Tt(e,t,a){if(!y.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,a=y.toFlatObject(a,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,A){return!y.isUndefined(A[p])});const r=a.metaTokens,n=a.visitor||d,o=a.dots,i=a.indexes,h=(a.Blob||typeof Blob<"u"&&Blob)&&y.isSpecCompliantForm(t);if(!y.isFunction(n))throw new TypeError("visitor must be a function");function c(f){if(f===null)return"";if(y.isDate(f))return f.toISOString();if(y.isBoolean(f))return f.toString();if(!h&&y.isBlob(f))throw new Z("Blob is not supported. Use a Buffer instead.");return y.isArrayBuffer(f)||y.isTypedArray(f)?h&&typeof Blob=="function"?new Blob([f]):Buffer.from(f):f}function d(f,p,A){let v=f;if(f&&!A&&typeof f=="object"){if(y.endsWith(p,"{}"))p=r?p:p.slice(0,-2),f=JSON.stringify(f);else if(y.isArray(f)&&yi(f)||(y.isFileList(f)||y.endsWith(p,"[]"))&&(v=y.toArray(f)))return p=$a(p),v.forEach(function(S,E){!(y.isUndefined(S)||S===null)&&t.append(i===!0?Ka([p],E,o):i===null?p:p+"[]",c(S))}),!1}return hs(f)?!0:(t.append(Ka(A,p,o),c(f)),!1)}const u=[],m=Object.assign(Ni,{defaultVisitor:d,convertValue:c,isVisitable:hs});function g(f,p){if(!y.isUndefined(f)){if(u.indexOf(f)!==-1)throw Error("Circular reference detected in "+p.join("."));u.push(f),y.forEach(f,function(v,N){(!(y.isUndefined(v)||v===null)&&n.call(t,v,y.isString(N)?N.trim():N,p,m))===!0&&g(v,p?p.concat(N):[N])}),u.pop()}}if(!y.isObject(e))throw new TypeError("data must be an object");return g(e),t}function Ja(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function us(e,t){this._pairs=[],e&&Tt(e,this,t)}const Za=us.prototype;Za.append=function(t,a){this._pairs.push([t,a])},Za.toString=function(t){const a=t?function(r){return t.call(this,r,Ja)}:Ja;return this._pairs.map(function(n){return a(n[0])+"="+a(n[1])},"").join("&")};function Si(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Xa(e,t,a){if(!t)return e;const r=a&&a.encode||Si;y.isFunction(a)&&(a={serialize:a});const n=a&&a.serialize;let o;if(n?o=n(t,a):o=y.isURLSearchParams(t)?t.toString():new us(t,a).toString(r),o){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class Ra{constructor(){this.handlers=[]}use(t,a,r){return this.handlers.push({fulfilled:t,rejected:a,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){y.forEach(this.handlers,function(r){r!==null&&t(r)})}}const er={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Ei={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:us,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},ms=typeof window<"u"&&typeof document<"u",fs=typeof navigator=="object"&&navigator||void 0,Ti=ms&&(!fs||["ReactNative","NativeScript","NS"].indexOf(fs.product)<0),Ii=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Ui=ms&&window.location.href||"http://localhost",le={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ms,hasStandardBrowserEnv:Ti,hasStandardBrowserWebWorkerEnv:Ii,navigator:fs,origin:Ui},Symbol.toStringTag,{value:"Module"})),...Ei};function ki(e,t){return Tt(e,new le.classes.URLSearchParams,{visitor:function(a,r,n,o){return le.isNode&&y.isBuffer(a)?(this.append(r,a.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...t})}function Li(e){return y.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Pi(e){const t={},a=Object.keys(e);let r;const n=a.length;let o;for(r=0;r<n;r++)o=a[r],t[o]=e[o];return t}function tr(e){function t(a,r,n,o){let i=a[o++];if(i==="__proto__")return!0;const l=Number.isFinite(+i),h=o>=a.length;return i=!i&&y.isArray(n)?n.length:i,h?(y.hasOwnProp(n,i)?n[i]=[n[i],r]:n[i]=r,!l):((!n[i]||!y.isObject(n[i]))&&(n[i]=[]),t(a,r,n[i],o)&&y.isArray(n[i])&&(n[i]=Pi(n[i])),!l)}if(y.isFormData(e)&&y.isFunction(e.entries)){const a={};return y.forEachEntry(e,(r,n)=>{t(Li(r),n,a,0)}),a}return null}function xi(e,t,a){if(y.isString(e))try{return(t||JSON.parse)(e),y.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(a||JSON.stringify)(e)}const ot={transitional:er,adapter:["xhr","http","fetch"],transformRequest:[function(t,a){const r=a.getContentType()||"",n=r.indexOf("application/json")>-1,o=y.isObject(t);if(o&&y.isHTMLForm(t)&&(t=new FormData(t)),y.isFormData(t))return n?JSON.stringify(tr(t)):t;if(y.isArrayBuffer(t)||y.isBuffer(t)||y.isStream(t)||y.isFile(t)||y.isBlob(t)||y.isReadableStream(t))return t;if(y.isArrayBufferView(t))return t.buffer;if(y.isURLSearchParams(t))return a.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return ki(t,this.formSerializer).toString();if((l=y.isFileList(t))||r.indexOf("multipart/form-data")>-1){const h=this.env&&this.env.FormData;return Tt(l?{"files[]":t}:t,h&&new h,this.formSerializer)}}return o||n?(a.setContentType("application/json",!1),xi(t)):t}],transformResponse:[function(t){const a=this.transitional||ot.transitional,r=a&&a.forcedJSONParsing,n=this.responseType==="json";if(y.isResponse(t)||y.isReadableStream(t))return t;if(t&&y.isString(t)&&(r&&!this.responseType||n)){const i=!(a&&a.silentJSONParsing)&&n;try{return JSON.parse(t,this.parseReviver)}catch(l){if(i)throw l.name==="SyntaxError"?Z.from(l,Z.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:le.classes.FormData,Blob:le.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};y.forEach(["delete","get","head","post","put","patch"],e=>{ot.headers[e]={}});const Bi=y.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Oi=e=>{const t={};let a,r,n;return e&&e.split(`
|
|
122
122
|
`).forEach(function(i){n=i.indexOf(":"),a=i.substring(0,n).trim().toLowerCase(),r=i.substring(n+1).trim(),!(!a||t[a]&&Bi[a])&&(a==="set-cookie"?t[a]?t[a].push(r):t[a]=[r]:t[a]=t[a]?t[a]+", "+r:r)}),t},sr=Symbol("internals");function it(e){return e&&String(e).trim().toLowerCase()}function It(e){return e===!1||e==null?e:y.isArray(e)?e.map(It):String(e)}function Mi(e){const t=Object.create(null),a=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=a.exec(e);)t[r[1]]=r[2];return t}const qi=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function gs(e,t,a,r,n){if(y.isFunction(r))return r.call(this,t,a);if(n&&(t=a),!!y.isString(t)){if(y.isString(r))return t.indexOf(r)!==-1;if(y.isRegExp(r))return r.test(t)}}function Di(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,a,r)=>a.toUpperCase()+r)}function _i(e,t){const a=y.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+a,{value:function(n,o,i){return this[r].call(this,t,n,o,i)},configurable:!0})})}let me=class{constructor(t){t&&this.set(t)}set(t,a,r){const n=this;function o(l,h,c){const d=it(h);if(!d)throw new Error("header name must be a non-empty string");const u=y.findKey(n,d);(!u||n[u]===void 0||c===!0||c===void 0&&n[u]!==!1)&&(n[u||h]=It(l))}const i=(l,h)=>y.forEach(l,(c,d)=>o(c,d,h));if(y.isPlainObject(t)||t instanceof this.constructor)i(t,a);else if(y.isString(t)&&(t=t.trim())&&!qi(t))i(Oi(t),a);else if(y.isObject(t)&&y.isIterable(t)){let l={},h,c;for(const d of t){if(!y.isArray(d))throw TypeError("Object iterator must return a key-value pair");l[c=d[0]]=(h=l[c])?y.isArray(h)?[...h,d[1]]:[h,d[1]]:d[1]}i(l,a)}else t!=null&&o(a,t,r);return this}get(t,a){if(t=it(t),t){const r=y.findKey(this,t);if(r){const n=this[r];if(!a)return n;if(a===!0)return Mi(n);if(y.isFunction(a))return a.call(this,n,r);if(y.isRegExp(a))return a.exec(n);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,a){if(t=it(t),t){const r=y.findKey(this,t);return!!(r&&this[r]!==void 0&&(!a||gs(this,this[r],r,a)))}return!1}delete(t,a){const r=this;let n=!1;function o(i){if(i=it(i),i){const l=y.findKey(r,i);l&&(!a||gs(r,r[l],l,a))&&(delete r[l],n=!0)}}return y.isArray(t)?t.forEach(o):o(t),n}clear(t){const a=Object.keys(this);let r=a.length,n=!1;for(;r--;){const o=a[r];(!t||gs(this,this[o],o,t,!0))&&(delete this[o],n=!0)}return n}normalize(t){const a=this,r={};return y.forEach(this,(n,o)=>{const i=y.findKey(r,o);if(i){a[i]=It(n),delete a[o];return}const l=t?Di(o):String(o).trim();l!==o&&delete a[o],a[l]=It(n),r[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const a=Object.create(null);return y.forEach(this,(r,n)=>{r!=null&&r!==!1&&(a[n]=t&&y.isArray(r)?r.join(", "):r)}),a}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,a])=>t+": "+a).join(`
|
|
123
123
|
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...a){const r=new this(t);return a.forEach(n=>r.set(n)),r}static accessor(t){const r=(this[sr]=this[sr]={accessors:{}}).accessors,n=this.prototype;function o(i){const l=it(i);r[l]||(_i(n,i),r[l]=!0)}return y.isArray(t)?t.forEach(o):o(t),this}};me.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),y.reduceDescriptors(me.prototype,({value:e},t)=>{let a=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[a]=r}}}),y.freezeMethods(me);function ps(e,t){const a=this||ot,r=t||a,n=me.from(r.headers);let o=r.data;return y.forEach(e,function(l){o=l.call(a,o,n.normalize(),t?t.status:void 0)}),n.normalize(),o}function ar(e){return!!(e&&e.__CANCEL__)}function Ye(e,t,a){Z.call(this,e??"canceled",Z.ERR_CANCELED,t,a),this.name="CanceledError"}y.inherits(Ye,Z,{__CANCEL__:!0});function rr(e,t,a){const r=a.config.validateStatus;!a.status||!r||r(a.status)?e(a):t(new Z("Request failed with status code "+a.status,[Z.ERR_BAD_REQUEST,Z.ERR_BAD_RESPONSE][Math.floor(a.status/100)-4],a.config,a.request,a))}function Gi(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function ji(e,t){e=e||10;const a=new Array(e),r=new Array(e);let n=0,o=0,i;return t=t!==void 0?t:1e3,function(h){const c=Date.now(),d=r[o];i||(i=c),a[n]=h,r[n]=c;let u=o,m=0;for(;u!==n;)m+=a[u++],u=u%e;if(n=(n+1)%e,n===o&&(o=(o+1)%e),c-i<t)return;const g=d&&c-d;return g?Math.round(m*1e3/g):void 0}}function Qi(e,t){let a=0,r=1e3/t,n,o;const i=(c,d=Date.now())=>{a=d,n=null,o&&(clearTimeout(o),o=null),e(...c)};return[(...c)=>{const d=Date.now(),u=d-a;u>=r?i(c,d):(n=c,o||(o=setTimeout(()=>{o=null,i(n)},r-u)))},()=>n&&i(n)]}const Ut=(e,t,a=3)=>{let r=0;const n=ji(50,250);return Qi(o=>{const i=o.loaded,l=o.lengthComputable?o.total:void 0,h=i-r,c=n(h),d=i<=l;r=i;const u={loaded:i,total:l,progress:l?i/l:void 0,bytes:h,rate:c||void 0,estimated:c&&l&&d?(l-i)/c:void 0,event:o,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(u)},a)},nr=(e,t)=>{const a=e!=null;return[r=>t[0]({lengthComputable:a,total:e,loaded:r}),t[1]]},or=e=>(...t)=>y.asap(()=>e(...t)),Fi=le.hasStandardBrowserEnv?((e,t)=>a=>(a=new URL(a,le.origin),e.protocol===a.protocol&&e.host===a.host&&(t||e.port===a.port)))(new URL(le.origin),le.navigator&&/(msie|trident)/i.test(le.navigator.userAgent)):()=>!0,Vi=le.hasStandardBrowserEnv?{write(e,t,a,r,n,o,i){if(typeof document>"u")return;const l=[`${e}=${encodeURIComponent(t)}`];y.isNumber(a)&&l.push(`expires=${new Date(a).toUTCString()}`),y.isString(r)&&l.push(`path=${r}`),y.isString(n)&&l.push(`domain=${n}`),o===!0&&l.push("secure"),y.isString(i)&&l.push(`SameSite=${i}`),document.cookie=l.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function Hi(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function zi(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function ir(e,t,a){let r=!Hi(t);return e&&(r||a==!1)?zi(e,t):t}const lr=e=>e instanceof me?{...e}:e;function Ge(e,t){t=t||{};const a={};function r(c,d,u,m){return y.isPlainObject(c)&&y.isPlainObject(d)?y.merge.call({caseless:m},c,d):y.isPlainObject(d)?y.merge({},d):y.isArray(d)?d.slice():d}function n(c,d,u,m){if(y.isUndefined(d)){if(!y.isUndefined(c))return r(void 0,c,u,m)}else return r(c,d,u,m)}function o(c,d){if(!y.isUndefined(d))return r(void 0,d)}function i(c,d){if(y.isUndefined(d)){if(!y.isUndefined(c))return r(void 0,c)}else return r(void 0,d)}function l(c,d,u){if(u in t)return r(c,d);if(u in e)return r(void 0,c)}const h={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:l,headers:(c,d,u)=>n(lr(c),lr(d),u,!0)};return y.forEach(Object.keys({...e,...t}),function(d){const u=h[d]||n,m=u(e[d],t[d],d);y.isUndefined(m)&&u!==l||(a[d]=m)}),a}const cr=e=>{const t=Ge({},e);let{data:a,withXSRFToken:r,xsrfHeaderName:n,xsrfCookieName:o,headers:i,auth:l}=t;if(t.headers=i=me.from(i),t.url=Xa(ir(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),l&&i.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),y.isFormData(a)){if(le.hasStandardBrowserEnv||le.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if(y.isFunction(a.getHeaders)){const h=a.getHeaders(),c=["content-type","content-length"];Object.entries(h).forEach(([d,u])=>{c.includes(d.toLowerCase())&&i.set(d,u)})}}if(le.hasStandardBrowserEnv&&(r&&y.isFunction(r)&&(r=r(t)),r||r!==!1&&Fi(t.url))){const h=n&&o&&Vi.read(o);h&&i.set(n,h)}return t},Wi=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(a,r){const n=cr(e);let o=n.data;const i=me.from(n.headers).normalize();let{responseType:l,onUploadProgress:h,onDownloadProgress:c}=n,d,u,m,g,f;function p(){g&&g(),f&&f(),n.cancelToken&&n.cancelToken.unsubscribe(d),n.signal&&n.signal.removeEventListener("abort",d)}let A=new XMLHttpRequest;A.open(n.method.toUpperCase(),n.url,!0),A.timeout=n.timeout;function v(){if(!A)return;const S=me.from("getAllResponseHeaders"in A&&A.getAllResponseHeaders()),w={data:!l||l==="text"||l==="json"?A.responseText:A.response,status:A.status,statusText:A.statusText,headers:S,config:e,request:A};rr(function(P){a(P),p()},function(P){r(P),p()},w),A=null}"onloadend"in A?A.onloadend=v:A.onreadystatechange=function(){!A||A.readyState!==4||A.status===0&&!(A.responseURL&&A.responseURL.indexOf("file:")===0)||setTimeout(v)},A.onabort=function(){A&&(r(new Z("Request aborted",Z.ECONNABORTED,e,A)),A=null)},A.onerror=function(E){const w=E&&E.message?E.message:"Network Error",U=new Z(w,Z.ERR_NETWORK,e,A);U.event=E||null,r(U),A=null},A.ontimeout=function(){let E=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const w=n.transitional||er;n.timeoutErrorMessage&&(E=n.timeoutErrorMessage),r(new Z(E,w.clarifyTimeoutError?Z.ETIMEDOUT:Z.ECONNABORTED,e,A)),A=null},o===void 0&&i.setContentType(null),"setRequestHeader"in A&&y.forEach(i.toJSON(),function(E,w){A.setRequestHeader(w,E)}),y.isUndefined(n.withCredentials)||(A.withCredentials=!!n.withCredentials),l&&l!=="json"&&(A.responseType=n.responseType),c&&([m,f]=Ut(c,!0),A.addEventListener("progress",m)),h&&A.upload&&([u,g]=Ut(h),A.upload.addEventListener("progress",u),A.upload.addEventListener("loadend",g)),(n.cancelToken||n.signal)&&(d=S=>{A&&(r(!S||S.type?new Ye(null,e,A):S),A.abort(),A=null)},n.cancelToken&&n.cancelToken.subscribe(d),n.signal&&(n.signal.aborted?d():n.signal.addEventListener("abort",d)));const N=Gi(n.url);if(N&&le.protocols.indexOf(N)===-1){r(new Z("Unsupported protocol "+N+":",Z.ERR_BAD_REQUEST,e));return}A.send(o||null)})},Yi=(e,t)=>{const{length:a}=e=e?e.filter(Boolean):[];if(t||a){let r=new AbortController,n;const o=function(c){if(!n){n=!0,l();const d=c instanceof Error?c:this.reason;r.abort(d instanceof Z?d:new Ye(d instanceof Error?d.message:d))}};let i=t&&setTimeout(()=>{i=null,o(new Z(`timeout ${t} of ms exceeded`,Z.ETIMEDOUT))},t);const l=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(o):c.removeEventListener("abort",o)}),e=null)};e.forEach(c=>c.addEventListener("abort",o));const{signal:h}=r;return h.unsubscribe=()=>y.asap(l),h}},$i=function*(e,t){let a=e.byteLength;if(a<t){yield e;return}let r=0,n;for(;r<a;)n=r+t,yield e.slice(r,n),r=n},Ki=async function*(e,t){for await(const a of Ji(e))yield*$i(a,t)},Ji=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:a,value:r}=await t.read();if(a)break;yield r}}finally{await t.cancel()}},dr=(e,t,a,r)=>{const n=Ki(e,t);let o=0,i,l=h=>{i||(i=!0,r&&r(h))};return new ReadableStream({async pull(h){try{const{done:c,value:d}=await n.next();if(c){l(),h.close();return}let u=d.byteLength;if(a){let m=o+=u;a(m)}h.enqueue(new Uint8Array(d))}catch(c){throw l(c),c}},cancel(h){return l(h),n.return()}},{highWaterMark:2})},hr=64*1024,{isFunction:kt}=y,Zi=(({Request:e,Response:t})=>({Request:e,Response:t}))(y.global),{ReadableStream:ur,TextEncoder:mr}=y.global,fr=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Xi=e=>{e=y.merge.call({skipUndefined:!0},Zi,e);const{fetch:t,Request:a,Response:r}=e,n=t?kt(t):typeof fetch=="function",o=kt(a),i=kt(r);if(!n)return!1;const l=n&&kt(ur),h=n&&(typeof mr=="function"?(f=>p=>f.encode(p))(new mr):async f=>new Uint8Array(await new a(f).arrayBuffer())),c=o&&l&&fr(()=>{let f=!1;const p=new a(le.origin,{body:new ur,method:"POST",get duplex(){return f=!0,"half"}}).headers.has("Content-Type");return f&&!p}),d=i&&l&&fr(()=>y.isReadableStream(new r("").body)),u={stream:d&&(f=>f.body)};n&&["text","arrayBuffer","blob","formData","stream"].forEach(f=>{!u[f]&&(u[f]=(p,A)=>{let v=p&&p[f];if(v)return v.call(p);throw new Z(`Response type '${f}' is not supported`,Z.ERR_NOT_SUPPORT,A)})});const m=async f=>{if(f==null)return 0;if(y.isBlob(f))return f.size;if(y.isSpecCompliantForm(f))return(await new a(le.origin,{method:"POST",body:f}).arrayBuffer()).byteLength;if(y.isArrayBufferView(f)||y.isArrayBuffer(f))return f.byteLength;if(y.isURLSearchParams(f)&&(f=f+""),y.isString(f))return(await h(f)).byteLength},g=async(f,p)=>{const A=y.toFiniteNumber(f.getContentLength());return A??m(p)};return async f=>{let{url:p,method:A,data:v,signal:N,cancelToken:S,timeout:E,onDownloadProgress:w,onUploadProgress:U,responseType:P,headers:V,withCredentials:Y="same-origin",fetchOptions:F}=cr(f),x=t||fetch;P=P?(P+"").toLowerCase():"text";let H=Yi([N,S&&S.toAbortSignal()],E),te=null;const _=H&&H.unsubscribe&&(()=>{H.unsubscribe()});let L;try{if(U&&c&&A!=="get"&&A!=="head"&&(L=await g(V,v))!==0){let T=new a(p,{method:"POST",body:v,duplex:"half"}),q;if(y.isFormData(v)&&(q=T.headers.get("content-type"))&&V.setContentType(q),T.body){const[Q,j]=nr(L,Ut(or(U)));v=dr(T.body,hr,Q,j)}}y.isString(Y)||(Y=Y?"include":"omit");const k=o&&"credentials"in a.prototype,G={...F,signal:H,method:A.toUpperCase(),headers:V.normalize().toJSON(),body:v,duplex:"half",credentials:k?Y:void 0};te=o&&new a(p,G);let B=await(o?x(te,F):x(p,G));const W=d&&(P==="stream"||P==="response");if(d&&(w||W&&_)){const T={};["status","statusText","headers"].forEach(z=>{T[z]=B[z]});const q=y.toFiniteNumber(B.headers.get("content-length")),[Q,j]=w&&nr(q,Ut(or(w),!0))||[];B=new r(dr(B.body,hr,Q,()=>{j&&j(),_&&_()}),T)}P=P||"text";let C=await u[y.findKey(u,P)||"text"](B,f);return!W&&_&&_(),await new Promise((T,q)=>{rr(T,q,{data:C,headers:me.from(B.headers),status:B.status,statusText:B.statusText,config:f,request:te})})}catch(k){throw _&&_(),k&&k.name==="TypeError"&&/Load failed|fetch/i.test(k.message)?Object.assign(new Z("Network Error",Z.ERR_NETWORK,f,te),{cause:k.cause||k}):Z.from(k,k&&k.code,f,te)}}},Ri=new Map,gr=e=>{let t=e&&e.env||{};const{fetch:a,Request:r,Response:n}=t,o=[r,n,a];let i=o.length,l=i,h,c,d=Ri;for(;l--;)h=o[l],c=d.get(h),c===void 0&&d.set(h,c=l?new Map:Xi(t)),d=c;return c};gr();const As={http:Ci,xhr:Wi,fetch:{get:gr}};y.forEach(As,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const pr=e=>`- ${e}`,el=e=>y.isFunction(e)||e===null||e===!1;function tl(e,t){e=y.isArray(e)?e:[e];const{length:a}=e;let r,n;const o={};for(let i=0;i<a;i++){r=e[i];let l;if(n=r,!el(r)&&(n=As[(l=String(r)).toLowerCase()],n===void 0))throw new Z(`Unknown adapter '${l}'`);if(n&&(y.isFunction(n)||(n=n.get(t))))break;o[l||"#"+i]=n}if(!n){const i=Object.entries(o).map(([h,c])=>`adapter ${h} `+(c===!1?"is not supported by the environment":"is not available in the build"));let l=a?i.length>1?`since :
|
|
124
124
|
`+i.map(pr).join(`
|
|
@@ -144,7 +144,7 @@ j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
|
|
|
144
144
|
c0.6,0.2,1.1,0.2,1.5,0.1c0.5-0.1,1.4-0.6,1.6-1.1c0.2-0.5,0.2-1,0.1-1.1C19.7,17.1,19.6,17,19.4,16.9`})})})})},Se=e=>{const{PUBLIC_ENV:t}=M(),a=ne("/x.svg");return t!==""&&!e.forceSVG?s.jsx("img",{fetchPriority:"low",loading:"lazy",src:a,alt:"",width:23,height:23,...e}):s.jsx("svg",{...e,width:28,height:28,version:"1.1",baseProfile:"tiny",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 30 30",overflow:"visible",xmlSpace:"preserve",children:s.jsx("path",{fill:"currentColor",d:"M5.9,6.1l7.1,9.8l-7.1,7.9h1.6l6.2-7l5,7h5.4l-7.5-10.3l6.6-7.4h-1.6L16,12.5l-4.6-6.4L5.9,6.1L5.9,6.1zM8.2,7.4h2.5l11,15.3h-2.5L8.2,7.4z"})})},Ol=e=>{const{PUBLIC_ENV:t}=M(),a=ne("/youtube.svg");return t!==""&&!e.forceSVG?s.jsx("img",{fetchPriority:"low",loading:"lazy",width:32,height:20,src:a,alt:"",...e}):s.jsxs("svg",{version:"1.1",baseProfile:"tiny",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 30 30",overflow:"visible",xmlSpace:"preserve",...e,children:[s.jsx("path",{fill:"currentColor",d:`M15,23.9c-0.7,0-7.3,0-9.2-0.6C4.6,23,3.7,22,3.2,20.8c-0.4-2-0.4-5.6-0.4-5.8c0-0.2,0-3.8,0.6-5.8C3.7,7.9,4.7,7,5.9,6.5c1.9-0.4,8.9-0.4,9.2-0.4c0.7,0,7.3,0,9.2,0.6C25.5,7,26.4,8,26.9,9.2c0,0,0,0,0,0.1c0.5,1.9,0.3,5.7,0.3,5.9
|
|
145
145
|
c0,0.1,0,3.8-0.4,5.7c-0.4,1.3-1.3,2.2-2.6,2.6C22.2,23.9,15.3,23.9,15,23.9z M15.1,7.6c-2,0-7.4,0.1-8.8,0.4C6,8.1,5.1,8.5,4.8,9.5c-0.5,1.8-0.5,5.4-0.5,5.4s0,3.6,0.4,5.4c0.1,0.3,0.5,1.2,1.6,1.5c1.4,0.4,6.8,0.5,8.7,0.5c2,0,7.4-0.1,8.8-0.4
|
|
146
146
|
c0.3-0.1,1.2-0.5,1.5-1.6c0.4-1.6,0.4-5.3,0.4-5.3c0-0.1,0.2-3.7-0.2-5.4c-0.1-0.4-0.5-1.3-1.6-1.6C22.5,7.7,17.1,7.6,15.1,7.6zM12.8,19.2c-0.1,0-0.3,0-0.4-0.1c-0.2-0.1-0.4-0.4-0.4-0.7v-6.9c0-0.3,0.1-0.5,0.4-0.6c0.2-0.1,0.5-0.1,0.7,0l5.9,3.4
|
|
147
|
-
c0.2,0.1,0.4,0.4,0.4,0.6c0,0.3-0.1,0.5-0.4,0.7l-5.9,3.5C13.1,19.1,12.9,19.2,12.8,19.2z M13.6,12.9v4.3l3.7-2.2L13.6,12.9z`}),s.jsx("path",{fill:"currentColor",d:"M12.8,18.6v-6.9l5.9,3.4L12.8,18.6z"})]})},Ml=["telegram"],lt={facebook:e=>s.jsx(_t,{...e}),instagram:e=>s.jsx(Gt,{...e}),whatsapp:e=>s.jsx(Bl,{...e}),tiktok:e=>s.jsx(xl,{...e}),youtube:e=>s.jsx(Ol,{...e}),x:e=>s.jsx(Se,{...e}),gnews:e=>s.jsx(kl,{...e}),podcast:e=>s.jsx(Ll,{...e}),telegram:e=>s.jsx(Pl,{...e})},ql=e=>{const{freeZone:t,socials:a,menu:r,customBlock:n,custom_styles:o={}}=e;return s.jsxs("footer",{className:"su-flex su-flex-col su-items-center su-justify-center sass-com-ft-content",style:o,children:[s.jsxs("section",{className:"su-flex su-items-center su-gap-8 sass-com-ft-brandContent",children:[s.jsx(O,{href:"/","aria-label":"Ir a la home",children:s.jsx("span",{className:"sass-com-ft-logoStyled",children:e.logo})}),s.jsx("div",{className:"su-flex-center su-gap-4 sass-com-ft-socialMedia",children:Object.keys(a).map(i=>a[i]?.show&&s.jsx("a",{target:"_blank",rel:"noreferrer","aria-label":a[i].title+" link",className:"su-flex-center sass-com-ft-linkSocialNetwoks",href:a[i].url,children:lt[i]({className:`${`sass-com-ft-social${i.charAt(0).toUpperCase()+i.slice(1)}`}`})},i))})]}),s.jsxs("section",{className:"sass-com-ft-sectionContent",children:[s.jsx("div",{className:"sass-com-ft-section",children:r.filter(i=>!i.subitem).map((i,l)=>s.jsx(O,{block_subPublication:!0,href:i.link?i.link:void 0,target:i.target,className:"sass-com-ft-menuItem footer-menu-item","aria-label":i.description,children:i.description},l))}),s.jsx("div",{className:"sass-com-ft-section",children:t&&t.map((i,l)=>s.jsx(O,{block_subPublication:!0,href:i.link?i?.link:void 0,target:i.target,className:"sass-com-ft-otherItems",children:i.description},l))})]}),n&&s.jsx(s.Fragment,{children:n}),s.jsxs("section",{className:"sass-com-ft-copyrigth",children:[s.jsx("p",{className:"sass-com-ft-copyrigthText",children:e.copyrigth}),s.jsx(O,{"aria-label":"Bluestack link",href:"https://www.bluestack.la",title:"Plataforma BLUESTACK CMS (antes CMS MEDIOS)",target:"_blank",rel:"noreferrer",children:s.jsx(Ul,{})})]})]})},ct=e=>{const{PUBLIC_ENV:t}=M(),a=ne("/facebook-black.svg");return t!==""&&!e.forceSVG?s.jsx("img",{fetchPriority:"low",loading:"lazy",width:17,height:23,src:a,alt:"",...e}):s.jsx("svg",{width:"13",height:"23",viewBox:"0 0 13 23",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:s.jsx("path",{d:"M11.7376 0H8.80322C5.52359 0 3.36594 2.11766 3.36594 5.50591V8.0471H0.431531C0.172612 8.0471 0 8.21652 0 8.47064V12.113C0 12.3671 0.172612 12.5365 0.431531 12.5365H3.36594V21.7695C3.36594 22.0237 3.53855 22.1931 3.79747 22.1931H7.68125C7.94016 22.1931 8.11278 22.0237 8.11278 21.7695V12.5365H11.565C11.8239 12.5365 11.9966 12.3671 11.9966 12.113V8.47064C11.9966 8.38593 11.9102 8.21652 11.8239 8.13181C11.7376 8.0471 11.6513 7.9624 11.4787 7.9624H8.02647V5.84474C8.02647 4.82826 8.28539 4.32002 9.66629 4.32002H11.6513C11.9102 4.32002 12.0829 4.15061 12.0829 3.89649V0.508238C12.1692 0.169413 11.9966 0 11.7376 0Z",fill:"black"})})},Ue=e=>{const{PUBLIC_ENV:t}=M(),a=ne("/linkedin.svg");return t!==""&&!e.forceSVG?s.jsx("img",{fetchPriority:"low",loading:"lazy",src:a,alt:"",...e}):s.jsxs("svg",{width:"32",height:"32",viewBox:"0 0 42 42",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[s.jsx("path",{d:"M23.9693 19.7768C22.9443 20.1795 22.3065 21.1785 22.3043 22.2887L22.278 32.7258C22.278 33.1474 21.8 33.4956 21.4127 33.4956H16.1736C15.7995 33.4956 15.293 33.1629 15.293 32.7302V14.8898C15.293 14.4081 15.7995 14.0455 16.2229 14.0466L20.9335 14.051C21.3842 14.051 21.7814 14.5105 21.8065 14.9254L21.8481 15.6185C22.9082 14.4994 24.2166 13.803 25.7055 13.6316C26.5599 13.5338 27.3957 13.5326 28.2555 13.625C31.5769 13.9821 34 16.8678 34 20.2318V32.5678C34 33.0283 33.5602 33.4911 33.1216 33.4911L28.3792 33.4945C27.9295 33.4945 27.4766 33.0484 27.4766 32.57L27.4646 22.2298C27.4646 21.7247 27.3847 21.1908 27.1101 20.7769C26.445 19.7735 25.1169 19.3263 23.9704 19.7757L23.9693 19.7768ZM23.5788 18.9414C25.118 18.2683 26.9143 18.8068 27.8606 20.1751C28.261 20.7536 28.3452 21.4099 28.4021 22.1107L28.4481 32.5522H33.0712V20.3442C33.0898 17.3717 30.9664 14.7964 28.0455 14.5539C27.2742 14.4905 26.5347 14.4816 25.7799 14.585C24.3621 14.7775 23.1084 15.5262 22.266 16.6764L20.9423 18.0125L20.9292 14.9911L16.2677 15V32.5522L21.4007 32.5544L21.4028 22.2342C21.4794 20.7858 22.2441 19.5254 23.5777 18.9414H23.5788Z",fill:"currentColor",stroke:"currentColor","stroke-width":"0.5"}),s.jsx("path",{d:"M11.6141 33.4944L7.91316 33.5011C7.09486 33.5022 6.46473 32.847 6.46582 32.006L6.46801 15.4505C6.46801 14.6384 7.09158 14.0432 7.85627 14.0432L11.5211 14.041C12.3689 14.041 13.0023 14.6885 13.0023 15.5595L12.9925 32.1773C12.9925 32.9026 12.2978 33.4922 11.6152 33.4944H11.6141ZM11.6283 32.5544C11.8952 32.4932 12.067 32.3453 12.067 32.0605V15.5106C12.067 15.1835 11.8099 14.991 11.5233 14.991H7.85846C7.59809 14.9922 7.43728 15.1791 7.39789 15.4516V32.006C7.39789 32.2986 7.597 32.5511 7.88034 32.5511L11.6272 32.5555L11.6283 32.5544Z",fill:"currentColor",stroke:"currentColor","stroke-width":"0.5"}),s.jsx("path",{d:"M13.4654 9.03032C13.5595 10.9582 12.2708 12.6836 10.4296 13.0318C9.25798 13.2532 8.14212 12.9372 7.26804 12.1385C6.08982 11.0639 5.67082 9.39631 6.27142 7.88227C6.82716 6.48392 8.16072 5.51164 9.71855 5.4994C10.8103 5.4905 11.7829 5.93103 12.5038 6.75536C13.0628 7.3939 13.4206 8.12701 13.4654 9.03032ZM11.5094 11.5022C12.9447 10.2807 12.8058 8.12256 11.4645 7.05572C10.7119 6.45611 9.73058 6.29925 8.80289 6.61519C7.48464 7.06573 6.74621 8.42403 6.98141 9.82461C7.19255 11.0861 8.2012 11.9661 9.44068 12.1218C10.2097 12.2186 10.9022 12.0184 11.5094 11.5022Z",fill:"currentColor",stroke:"currentColor","stroke-width":"0.5"})]})},Br=e=>{const{PUBLIC_ENV:t}=M(),a=ne("/email.svg");return t!==""&&!e.forceSVG?s.jsx("img",{fetchPriority:"low",loading:"lazy",src:a,alt:"",...e}):s.jsxs("svg",{width:"25",height:"21",viewBox:"0 0 25 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[s.jsx("path",{d:"M21.6424 1H3.33879C2.11855 1 1 2.01687 1 3.33879V17.0665C1 18.2867 2.01687 19.4053 3.33879 19.4053H21.6424C22.8626 19.4053 23.9812 18.3884 23.9812 17.0665V3.33879C23.9812 2.01687 22.8626 1 21.6424 1Z",stroke:"black",strokeWidth:"1.6"}),s.jsx("path",{d:"M21.6425 5.57591L12.5923 11.2704L3.33887 5.57591V3.33881L12.5923 8.93157L21.6425 3.33881V5.57591Z",fill:"black"})]})},Or=e=>{const{PUBLIC_ENV:t}=M(),a=ne("/email-black.svg");return t!==""&&!e.forceSVG?s.jsx("img",{fetchPriority:"low",loading:"lazy",src:a,alt:"",...e}):s.jsxs("svg",{width:"24",height:"19",viewBox:"0 0 24 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[s.jsx("path",{d:"M20.8752 0.195801H2.96092C1.76664 0.195801 0.671875 1.19104 0.671875 2.48485V15.9206C0.671875 17.1149 1.66711 18.2096 2.96092 18.2096H20.8752C22.0695 18.2096 23.1643 17.2144 23.1643 15.9206V2.48485C23.1643 1.19104 22.0695 0.195801 20.8752 0.195801Z",fill:"black"}),s.jsx("path",{d:"M20.8752 4.67439L12.0176 10.2477L2.96094 4.67439V2.48486L12.0176 7.95868L20.8752 2.48486V4.67439Z",fill:"white"})]})},Ss=e=>{const{PUBLIC_ENV:t}=M(),a=ne("/facebook-note.svg");return t!==""&&!e.forceSVG?s.jsx("img",{fetchPriority:"low",loading:"lazy",width:17,height:23,src:a,alt:"",...e}):s.jsx("svg",{width:"13",height:"22",viewBox:"0 0 13 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:s.jsx("path",{className:e.className,d:"M11.6659 1H8.99942C6.01924 1 4.0586 2.9084 4.0586 5.96183V8.25191H1.39213C1.15685 8.25191 1 8.40458 1 8.63359V11.916C1 12.145 1.15685 12.2977 1.39213 12.2977H4.0586V20.6183C4.0586 20.8473 4.21545 21 4.45073 21H7.97989C8.21516 21 8.37202 20.8473 8.37202 20.6183V12.2977H11.509C11.7443 12.2977 11.9012 12.145 11.9012 11.916V8.63359C11.9012 8.55725 11.8227 8.40458 11.7443 8.32824C11.6659 8.25191 11.5875 8.17557 11.4306 8.17557H8.29359V6.26718C8.29359 5.35115 8.52887 4.89313 9.78368 4.89313H11.5875C11.8227 4.89313 11.9796 4.74046 11.9796 4.51145V1.45802C12.058 1.15267 11.9012 1 11.6659 1Z",stroke:"black",strokeWidth:"1.6"})})},Es=e=>s.jsx("svg",{width:"26",height:"25",viewBox:"0 0 22 23",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:s.jsx("path",{d:"M10 5C9.45 5 9 5.45 9 6V9H6C5.45 9 5 9.45 5 10C5 10.55 5.45 11 6 11H9V14C9 14.55 9.45 15 10 15C10.55 15 11 14.55 11 14V11H14C14.55 11 15 10.55 15 10C15 9.45 14.55 9 14 9H11V6C11 5.45 10.55 5 10 5ZM10 0C4.48 0 0 4.48 0 10C0 15.52 4.48 20 10 20C15.52 20 20 15.52 20 10C20 4.48 15.52 0 10 0ZM10 18C5.59 18 2 14.41 2 10C2 5.59 5.59 2 10 2C14.41 2 18 5.59 18 10C18 14.41 14.41 18 10 18Z",fill:"black"})}),Dl={FaceBook:{url:e=>`https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(e)}`,icon:{outline:e=>s.jsx(Ss,{className:e,forceSVG:!0}),solid:e=>s.jsx(ct,{className:e,forceSVG:!0})}},X:{url:e=>`https://twitter.com/intent/tweet?url=${encodeURIComponent(e)}`,icon:{outline:e=>s.jsx(Se,{className:e,forceSVG:!0}),solid:e=>s.jsx(Se,{className:e,forceSVG:!0})}},Whatsapp:{url:e=>`https://wa.me/?text=${encodeURIComponent(e)}`,icon:{outline:e=>s.jsx(Mt,{className:e,forceSVG:!0}),solid:e=>s.jsx(Ot,{className:e,forceSVG:!0})}},Email:{url:e=>`mailto:?body=${encodeURIComponent(e)}`,icon:{outline:e=>s.jsx(Br,{className:e,forceSVG:!0}),solid:e=>s.jsx(Or,{className:e,forceSVG:!0})}},LinkedIn:{url:e=>`https://www.linkedin.com/sharing/share-offsite/?url=${encodeURIComponent(e)}`,icon:{outline:e=>s.jsx(Ue,{className:e,forceSVG:!0}),solid:e=>s.jsx(Ue,{className:e,forceSVG:!0})}}};function Mr({noteShare:e}){const t=e&&e.url||(typeof window<"u"?window.location.href:"https://example.com");return e?s.jsxs("div",{className:"sass-com-ja3-socialNetworkSection",children:[e.options?.map(a=>{const r=Dl[a];if(!r)return null;const n=e.variant==="outline"?r.icon.outline:r.icon.solid,o=r.url(t);return s.jsx(O,{href:o,target:"_blank",rel:"noopener noreferrer","aria-label":`Compartir en ${a}`,className:`sass-com-ja3-socialButton sass-com-ja3-${a.toLowerCase()}Button sass-com-ja3-${a.toLowerCase()}Styled`,children:n("")},a)}),s.jsx("button",{type:"button","data-text":"Link copiado","data-active":"false","aria-label":"copy",className:["sass-com-ja3-clipboardButton","clipbtn-id"].join(" "),children:s.jsx(qt,{forceSVG:!0})}),s.jsx("button",{type:"button","aria-label":"share",className:["sass-com-ja3-clipboardButton","sharebtn-id"].join(" "),children:s.jsx(Es,{})})]}):null}const _l=e=>{const t=()=>e?.video.main.author?`${e?.video.main.author} - ${Ce(e.video.info.date.created)}`:e?.video.main.author;return s.jsx("div",{className:"sass-com-bv3-content",children:s.jsx(Bt,{children:s.jsxs("div",{className:"sass-com-bv3-videoContent",children:[s.jsx("p",{className:"sass-com-bv3-title",children:e.video.main.title}),e.type==="vy"&&s.jsx("iframe",{className:"sass-com-bv3-iframeStyled",src:`https://www.youtube.com/embed/${e.video.main.code}`,frameBorder:"0",allowFullScreen:!0}),e.type==="vf"&&s.jsx("iframe",{className:"sass-com-bv3-iframeStyled",src:e.video.main.code,frameBorder:"0",allowFullScreen:!0}),e.type==="ve"&&s.jsx("div",{className:"sass-com-bv3-contentFrame",dangerouslySetInnerHTML:{__html:e.video.main.code}}),s.jsxs("div",{className:"sass-com-bv3-articleSection",children:[s.jsx("p",{className:"sass-com-bv3-article",children:ye(e.video.main.description)}),s.jsx("p",{className:"sass-com-bv3-correspondent",children:t()})]})]})})})},Ts=e=>{const{currentPage:t,showNext:a,maxPages:r,pathname:n,query:o,block_subPublication:i}=e,l=(h,c,d)=>{let u="";const m=c.split("/");return m.indexOf("page")!==-1&&m.splice(u.indexOf("page")-1,m.length-1),m.forEach((g,f)=>{f!==0&&(u+=`/${g}`)}),h==="next"?u+=`/page/${t+1}${d?`?query=${d}`:""}`:u+=`/page/${t-1}${d?`?query=${d}`:""}`};return(t>1||a&&t<r)&&s.jsxs("section",{className:"sass-com-np-content",children:[t>1&&s.jsx(O,{block_subPublication:i,className:"sass-com-np-linkStyled",href:l("prev",n||"",o||""),children:e.texts.prevButtonText??"Anterior"}),a&&t<r&&s.jsx(O,{block_subPublication:i,className:"sass-com-np-linkStyled",href:l("next",n||"",o||""),children:e.texts.nextButtonText??"Siguiente"})]})},Is=e=>{const{grid:t=3}=e;return s.jsxs("section",{className:"sass-com-nc-content",children:[s.jsx("div",{className:`sass-com-nc-contentGrid ${e.className?e.className:""} ${t===3?"sass-com-nc-contentGrid3":"sass-com-nc-contentGrid4"} news-content`,children:e.children}),s.jsx(s.Fragment,{children:e.paginatorComponent})]})},Ee=e=>{const{main:t,authors:a,info:r,preview:n,share:o,isVideo:i,config:l,overImage:h="default",isTitle:c,priorityHigh:d=!1,isLarge:u,paths:m,keywords:g,speculationPrerenderClass:f}=e;return s.jsxs("section",{className:"sass-com-sc1-content",style:{...e.customSectionCardStyles},children:[s.jsx(O,{"aria-label":e.main?.title?.section,className:f?`${f} sass-com-sc1-image`:"sass-com-sc1-image",title:t?.title?.section,href:r?.link?.url,target:r?.link?.target,children:s.jsx(pe,{preview:n,isVideo:i,isLarge:u,priorityHigh:d})}),s.jsx("div",{className:"sass-com-sc1-newsDescription",children:s.jsx(Me,{main:t,authors:a,info:r,preview:n,share:o,config:l,overImage:h,isTitle:c,paths:m,keywords:g})})]})},dt=e=>{const{info:t,main:a,overImage:r="default",titleGradient:n=!1}=e,{SHOW_TAG_BY_SECTION:o,SUB_PUBLICATION_PREFIX_IN_ROUTES:i}=M(),l=()=>{if(o&&e.keywords?.tags?.length&&e.keywords.tags.length>0){const h=e.keywords.tags[0],c=h.name;return h.approved?s.jsx("h3",{children:s.jsx(O,{"aria-label":c,block_subPublication:i?.tema,className:"sass-com-sc2-sectionDescription",href:xe(h,e.paths),children:c})}):s.jsx("div",{className:"sass-com-sc2-sectionDescription",children:c})}else if(e.info?.section?.url)return s.jsx("h3",{children:s.jsx(O,{className:"sass-com-sc2-sectionDescription",href:e?.info?.link?.url,target:e?.info?.link?.target,children:e.info.section.name})});return null};return console.log("props-sc2 owl preview",e.preview),s.jsxs("section",{className:"sass-com-sc2-content",children:[s.jsx(O,{title:a?.title?.section,href:t.link.url,target:t.link.target,children:s.jsx(pe,{preview:e.preview})}),s.jsxs("div",{className:["sass-com-sc2-boxInformation",n?"sass-com-sc2-titleGradient":""].join(" "),style:{width:r!=="default"?"90%":"",left:r==="left"?0:r==="right"?"calc(10% - 1px)":"auto",top:r!=="default"?"-1rem":""},children:[s.jsx(l,{}),s.jsx("h2",{className:"sass-com-sc2-articule",children:s.jsx(O,{className:"sass-com-sc2-linkStyled",href:e?.info?.link?.url,target:e?.info?.link?.target,children:e.main?.title?.section})})]})]})},Gl=e=>s.jsx("div",{className:"sass-com-lt-content",children:s.jsx(Bt,{className:`sass-com-lt-contentLayout ${e.className}`,children:e.children})}),jl=e=>{const t=e.logo;return s.jsxs("section",{className:"sass-com-err-content",children:[e.backgroundImgURL&&s.jsx("img",{className:"sass-com-err-before su-absolute su-inset-0 su-size-full su-object-cover",src:e.backgroundImgURL,alt:"Imagen de fondo del error"}),s.jsxs("div",{className:"sass-com-err-textContent error-text-content",children:[s.jsx(t,{}),s.jsx("p",{className:"sass-com-err-title",children:e.title}),s.jsx("p",{className:"sass-com-err-description",children:e.description}),s.jsx(O,{className:"sass-com-err-linkStyled su-no-underline su-flex-center",href:"/",children:e.buttonText??"Inicio"})]})]})},Ql=e=>s.jsxs("div",{className:"sass-com-cin-content",children:[s.jsxs("div",{className:"sass-com-cin-contentLabel",children:[s.jsx("label",{className:"sass-com-cin-label",children:e.label}),e.required&&s.jsx("span",{className:"sass-com-cin-required",children:"*"})]}),s.jsx("input",{className:"sass-com-cin-input",...e})]}),Fl=e=>s.jsxs("div",{className:"sass-com-csel-content",children:[s.jsxs("div",{className:"sass-com-csel-contentLabel",children:[s.jsx("label",{className:"sass-com-csel-label",children:e.label}),e.required&&s.jsx("span",{className:"sass-com-csel-required",children:"*"})]}),s.jsxs("select",{className:"sass-com-csel-input",...e,children:[s.jsx("option",{value:"",children:"--Seleccione--"}),e.options.map((t,a)=>s.jsx("option",{value:t.value,children:t.label},a))]})]}),Vl=e=>s.jsxs("div",{className:"sass-com-cta-content",children:[s.jsx("label",{className:"sass-com-cta-label",children:e.label}),s.jsx("textarea",{className:"sass-com-cta-input",...e})]}),qr=e=>{let t="";return e.preview.description&&(t=e.preview.description),e.preview.copyright&&(t=`${t} ${e.preview.copyright}`),e.preview.photographer&&(t=`${t} ${e.preview.photographer}`),s.jsx("div",{className:"sass-com-in2-content",children:s.jsx(pe,{preview:e.preview,isLarge:!0,priorityHigh:!0,figCaption:t})})},Dr=e=>s.jsx(s.Fragment,{children:s.jsxs("div",{className:"sass-com-lbh-boxInformation sass-liveblog-header",children:[s.jsx(qr,{preview:e.preview}),s.jsxs("div",{className:"sass-com-lbh-textBox",children:[s.jsxs("div",{className:"sass-com-lbh-contentBox",children:[e?.info?.section&&s.jsx(O,{className:"sass-com-lbh-sectionDescription",href:e?.info?.section?.url,children:e?.info?.section?.name}),s.jsxs("div",{className:"sass-com-lbh-liveBox",children:[s.jsx("span",{className:"sass-com-lbh-dot"}),s.jsx("p",{children:"EN VIVO"})]})]}),s.jsx("h1",{className:"sass-com-lbh-articule",children:e.main?.title?.section}),e.config?.showsubtitle&&s.jsx("h2",{className:"sass-com-lbh-description",style:{"--fontSizeSubTitle":e.fontSizeSubTitle,"--lineHeightSubTitle":e.lineHeightSubTitle},children:e.main.subtitle.striped})]})]})}),_r=e=>s.jsx("section",{className:"sass-com-tl-content sass-liveblog-time-line",children:e.itemList[0]?.list.items.map((t,a)=>s.jsxs("div",{className:"sass-com-tl-contentLine",children:[s.jsx(O,{className:"sass-com-tl-dateLink",href:`#item-${a+1}`,children:ca(t.date)}),s.jsx("div",{className:"sass-com-tl-contentText",children:(e.itemList[0]?.list.integrated,t.title)})]},a))}),Gr=e=>{const{PUBLIC_ENV:t}=M(),a=ne("/linkedin-black.svg");return t!==""&&!e.forceSVG?s.jsx("img",{fetchPriority:"low",loading:"lazy",src:a,alt:"",...e}):s.jsx("svg",{version:"1.1",baseProfile:"tiny",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 30 30",overflow:"visible",xmlSpace:"preserve",...e,children:s.jsx("path",{fill:"currentColor",strokeWidth:"1.2656",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",d:`M10.2,8.3c0,1.1-0.9,2.1-2.2,2.1l0,0c-1.3,0-2.1-0.9-2.1-2.1c0-1.1,0.9-2.1,2.2-2.1C9.4,6.3,10.2,7.1,10.2,8.3z M6.1,23.7H10V11.9
|
|
147
|
+
c0.2,0.1,0.4,0.4,0.4,0.6c0,0.3-0.1,0.5-0.4,0.7l-5.9,3.5C13.1,19.1,12.9,19.2,12.8,19.2z M13.6,12.9v4.3l3.7-2.2L13.6,12.9z`}),s.jsx("path",{fill:"currentColor",d:"M12.8,18.6v-6.9l5.9,3.4L12.8,18.6z"})]})},Ml=["telegram"],lt={facebook:e=>s.jsx(_t,{...e}),instagram:e=>s.jsx(Gt,{...e}),whatsapp:e=>s.jsx(Bl,{...e}),tiktok:e=>s.jsx(xl,{...e}),youtube:e=>s.jsx(Ol,{...e}),x:e=>s.jsx(Se,{...e}),gnews:e=>s.jsx(kl,{...e}),podcast:e=>s.jsx(Ll,{...e}),telegram:e=>s.jsx(Pl,{...e})},ql=e=>{const{freeZone:t,socials:a,menu:r,customBlock:n,custom_styles:o={}}=e;return s.jsxs("footer",{className:"su-flex su-flex-col su-items-center su-justify-center sass-com-ft-content",style:o,children:[s.jsxs("section",{className:"su-flex su-items-center su-gap-8 sass-com-ft-brandContent",children:[s.jsx(O,{href:"/","aria-label":"Ir a la home",children:s.jsx("span",{className:"sass-com-ft-logoStyled",children:e.logo})}),s.jsx("div",{className:"su-flex-center su-gap-4 sass-com-ft-socialMedia",children:Object.keys(a).map(i=>a[i]?.show&&s.jsx("a",{target:"_blank",rel:"noreferrer","aria-label":a[i].title+" link",className:"su-flex-center sass-com-ft-linkSocialNetwoks",href:a[i].url,children:lt[i]({className:`${`sass-com-ft-social${i.charAt(0).toUpperCase()+i.slice(1)}`}`})},i))})]}),s.jsxs("section",{className:"sass-com-ft-sectionContent",children:[s.jsx("div",{className:"sass-com-ft-section",children:r.filter(i=>!i.subitem).map((i,l)=>s.jsx(O,{block_subPublication:!0,href:i.link?i.link:void 0,target:i.target,className:"sass-com-ft-menuItem footer-menu-item","aria-label":i.description,children:i.description},l))}),s.jsx("div",{className:"sass-com-ft-section",children:t&&t.map((i,l)=>s.jsx(O,{block_subPublication:!0,href:i.link?i?.link:void 0,target:i.target,className:"sass-com-ft-otherItems",children:i.description},l))})]}),n&&s.jsx(s.Fragment,{children:n}),s.jsxs("section",{className:"sass-com-ft-copyrigth",children:[s.jsx("p",{className:"sass-com-ft-copyrigthText",children:e.copyrigth}),s.jsx(O,{"aria-label":"Bluestack link",href:"https://www.bluestack.la",title:"Plataforma BLUESTACK CMS (antes CMS MEDIOS)",target:"_blank",rel:"noreferrer",children:s.jsx(Ul,{})})]})]})},ct=e=>{const{PUBLIC_ENV:t}=M(),a=ne("/facebook-black.svg");return t!==""&&!e.forceSVG?s.jsx("img",{fetchPriority:"low",loading:"lazy",width:17,height:23,src:a,alt:"",...e}):s.jsx("svg",{width:"13",height:"23",viewBox:"0 0 13 23",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:s.jsx("path",{d:"M11.7376 0H8.80322C5.52359 0 3.36594 2.11766 3.36594 5.50591V8.0471H0.431531C0.172612 8.0471 0 8.21652 0 8.47064V12.113C0 12.3671 0.172612 12.5365 0.431531 12.5365H3.36594V21.7695C3.36594 22.0237 3.53855 22.1931 3.79747 22.1931H7.68125C7.94016 22.1931 8.11278 22.0237 8.11278 21.7695V12.5365H11.565C11.8239 12.5365 11.9966 12.3671 11.9966 12.113V8.47064C11.9966 8.38593 11.9102 8.21652 11.8239 8.13181C11.7376 8.0471 11.6513 7.9624 11.4787 7.9624H8.02647V5.84474C8.02647 4.82826 8.28539 4.32002 9.66629 4.32002H11.6513C11.9102 4.32002 12.0829 4.15061 12.0829 3.89649V0.508238C12.1692 0.169413 11.9966 0 11.7376 0Z",fill:"black"})})},Ue=e=>{const{PUBLIC_ENV:t}=M(),a=ne("/linkedin.svg");return t!==""&&!e.forceSVG?s.jsx("img",{fetchPriority:"low",loading:"lazy",src:a,alt:"",...e}):s.jsxs("svg",{width:"32",height:"32",viewBox:"0 0 42 42",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[s.jsx("path",{d:"M23.9693 19.7768C22.9443 20.1795 22.3065 21.1785 22.3043 22.2887L22.278 32.7258C22.278 33.1474 21.8 33.4956 21.4127 33.4956H16.1736C15.7995 33.4956 15.293 33.1629 15.293 32.7302V14.8898C15.293 14.4081 15.7995 14.0455 16.2229 14.0466L20.9335 14.051C21.3842 14.051 21.7814 14.5105 21.8065 14.9254L21.8481 15.6185C22.9082 14.4994 24.2166 13.803 25.7055 13.6316C26.5599 13.5338 27.3957 13.5326 28.2555 13.625C31.5769 13.9821 34 16.8678 34 20.2318V32.5678C34 33.0283 33.5602 33.4911 33.1216 33.4911L28.3792 33.4945C27.9295 33.4945 27.4766 33.0484 27.4766 32.57L27.4646 22.2298C27.4646 21.7247 27.3847 21.1908 27.1101 20.7769C26.445 19.7735 25.1169 19.3263 23.9704 19.7757L23.9693 19.7768ZM23.5788 18.9414C25.118 18.2683 26.9143 18.8068 27.8606 20.1751C28.261 20.7536 28.3452 21.4099 28.4021 22.1107L28.4481 32.5522H33.0712V20.3442C33.0898 17.3717 30.9664 14.7964 28.0455 14.5539C27.2742 14.4905 26.5347 14.4816 25.7799 14.585C24.3621 14.7775 23.1084 15.5262 22.266 16.6764L20.9423 18.0125L20.9292 14.9911L16.2677 15V32.5522L21.4007 32.5544L21.4028 22.2342C21.4794 20.7858 22.2441 19.5254 23.5777 18.9414H23.5788Z",fill:"currentColor",stroke:"currentColor","stroke-width":"0.5"}),s.jsx("path",{d:"M11.6141 33.4944L7.91316 33.5011C7.09486 33.5022 6.46473 32.847 6.46582 32.006L6.46801 15.4505C6.46801 14.6384 7.09158 14.0432 7.85627 14.0432L11.5211 14.041C12.3689 14.041 13.0023 14.6885 13.0023 15.5595L12.9925 32.1773C12.9925 32.9026 12.2978 33.4922 11.6152 33.4944H11.6141ZM11.6283 32.5544C11.8952 32.4932 12.067 32.3453 12.067 32.0605V15.5106C12.067 15.1835 11.8099 14.991 11.5233 14.991H7.85846C7.59809 14.9922 7.43728 15.1791 7.39789 15.4516V32.006C7.39789 32.2986 7.597 32.5511 7.88034 32.5511L11.6272 32.5555L11.6283 32.5544Z",fill:"currentColor",stroke:"currentColor","stroke-width":"0.5"}),s.jsx("path",{d:"M13.4654 9.03032C13.5595 10.9582 12.2708 12.6836 10.4296 13.0318C9.25798 13.2532 8.14212 12.9372 7.26804 12.1385C6.08982 11.0639 5.67082 9.39631 6.27142 7.88227C6.82716 6.48392 8.16072 5.51164 9.71855 5.4994C10.8103 5.4905 11.7829 5.93103 12.5038 6.75536C13.0628 7.3939 13.4206 8.12701 13.4654 9.03032ZM11.5094 11.5022C12.9447 10.2807 12.8058 8.12256 11.4645 7.05572C10.7119 6.45611 9.73058 6.29925 8.80289 6.61519C7.48464 7.06573 6.74621 8.42403 6.98141 9.82461C7.19255 11.0861 8.2012 11.9661 9.44068 12.1218C10.2097 12.2186 10.9022 12.0184 11.5094 11.5022Z",fill:"currentColor",stroke:"currentColor","stroke-width":"0.5"})]})},Br=e=>{const{PUBLIC_ENV:t}=M(),a=ne("/email.svg");return t!==""&&!e.forceSVG?s.jsx("img",{fetchPriority:"low",loading:"lazy",src:a,alt:"",...e}):s.jsxs("svg",{width:"25",height:"21",viewBox:"0 0 25 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[s.jsx("path",{d:"M21.6424 1H3.33879C2.11855 1 1 2.01687 1 3.33879V17.0665C1 18.2867 2.01687 19.4053 3.33879 19.4053H21.6424C22.8626 19.4053 23.9812 18.3884 23.9812 17.0665V3.33879C23.9812 2.01687 22.8626 1 21.6424 1Z",stroke:"black",strokeWidth:"1.6"}),s.jsx("path",{d:"M21.6425 5.57591L12.5923 11.2704L3.33887 5.57591V3.33881L12.5923 8.93157L21.6425 3.33881V5.57591Z",fill:"black"})]})},Or=e=>{const{PUBLIC_ENV:t}=M(),a=ne("/email-black.svg");return t!==""&&!e.forceSVG?s.jsx("img",{fetchPriority:"low",loading:"lazy",src:a,alt:"",...e}):s.jsxs("svg",{width:"24",height:"19",viewBox:"0 0 24 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[s.jsx("path",{d:"M20.8752 0.195801H2.96092C1.76664 0.195801 0.671875 1.19104 0.671875 2.48485V15.9206C0.671875 17.1149 1.66711 18.2096 2.96092 18.2096H20.8752C22.0695 18.2096 23.1643 17.2144 23.1643 15.9206V2.48485C23.1643 1.19104 22.0695 0.195801 20.8752 0.195801Z",fill:"black"}),s.jsx("path",{d:"M20.8752 4.67439L12.0176 10.2477L2.96094 4.67439V2.48486L12.0176 7.95868L20.8752 2.48486V4.67439Z",fill:"white"})]})},Ss=e=>{const{PUBLIC_ENV:t}=M(),a=ne("/facebook-note.svg");return t!==""&&!e.forceSVG?s.jsx("img",{fetchPriority:"low",loading:"lazy",width:17,height:23,src:a,alt:"",...e}):s.jsx("svg",{width:"13",height:"22",viewBox:"0 0 13 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:s.jsx("path",{className:e.className,d:"M11.6659 1H8.99942C6.01924 1 4.0586 2.9084 4.0586 5.96183V8.25191H1.39213C1.15685 8.25191 1 8.40458 1 8.63359V11.916C1 12.145 1.15685 12.2977 1.39213 12.2977H4.0586V20.6183C4.0586 20.8473 4.21545 21 4.45073 21H7.97989C8.21516 21 8.37202 20.8473 8.37202 20.6183V12.2977H11.509C11.7443 12.2977 11.9012 12.145 11.9012 11.916V8.63359C11.9012 8.55725 11.8227 8.40458 11.7443 8.32824C11.6659 8.25191 11.5875 8.17557 11.4306 8.17557H8.29359V6.26718C8.29359 5.35115 8.52887 4.89313 9.78368 4.89313H11.5875C11.8227 4.89313 11.9796 4.74046 11.9796 4.51145V1.45802C12.058 1.15267 11.9012 1 11.6659 1Z",stroke:"black",strokeWidth:"1.6"})})},Es=e=>s.jsx("svg",{width:"26",height:"25",viewBox:"0 0 22 23",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:s.jsx("path",{d:"M10 5C9.45 5 9 5.45 9 6V9H6C5.45 9 5 9.45 5 10C5 10.55 5.45 11 6 11H9V14C9 14.55 9.45 15 10 15C10.55 15 11 14.55 11 14V11H14C14.55 11 15 10.55 15 10C15 9.45 14.55 9 14 9H11V6C11 5.45 10.55 5 10 5ZM10 0C4.48 0 0 4.48 0 10C0 15.52 4.48 20 10 20C15.52 20 20 15.52 20 10C20 4.48 15.52 0 10 0ZM10 18C5.59 18 2 14.41 2 10C2 5.59 5.59 2 10 2C14.41 2 18 5.59 18 10C18 14.41 14.41 18 10 18Z",fill:"black"})}),Dl={FaceBook:{url:e=>`https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(e)}`,icon:{outline:e=>s.jsx(Ss,{className:e,forceSVG:!0}),solid:e=>s.jsx(ct,{className:e,forceSVG:!0})}},X:{url:e=>`https://twitter.com/intent/tweet?url=${encodeURIComponent(e)}`,icon:{outline:e=>s.jsx(Se,{className:e,forceSVG:!0}),solid:e=>s.jsx(Se,{className:e,forceSVG:!0})}},Whatsapp:{url:e=>`https://wa.me/?text=${encodeURIComponent(e)}`,icon:{outline:e=>s.jsx(Mt,{className:e,forceSVG:!0}),solid:e=>s.jsx(Ot,{className:e,forceSVG:!0})}},Email:{url:e=>`mailto:?body=${encodeURIComponent(e)}`,icon:{outline:e=>s.jsx(Br,{className:e,forceSVG:!0}),solid:e=>s.jsx(Or,{className:e,forceSVG:!0})}},LinkedIn:{url:e=>`https://www.linkedin.com/sharing/share-offsite/?url=${encodeURIComponent(e)}`,icon:{outline:e=>s.jsx(Ue,{className:e,forceSVG:!0}),solid:e=>s.jsx(Ue,{className:e,forceSVG:!0})}}};function Mr({noteShare:e}){const t=e&&e.url||(typeof window<"u"?window.location.href:"https://example.com");return e?s.jsxs("div",{className:"sass-com-ja3-socialNetworkSection",children:[e.options?.map(a=>{const r=Dl[a];if(!r)return null;const n=e.variant==="outline"?r.icon.outline:r.icon.solid,o=r.url(t);return s.jsx(O,{href:o,target:"_blank",rel:"noopener noreferrer","aria-label":`Compartir en ${a}`,className:`sass-com-ja3-socialButton sass-com-ja3-${a.toLowerCase()}Button sass-com-ja3-${a.toLowerCase()}Styled`,children:n("")},a)}),s.jsx("button",{type:"button","data-text":"Link copiado","data-active":"false","aria-label":"copy",className:["sass-com-ja3-clipboardButton","clipbtn-id"].join(" "),children:s.jsx(qt,{forceSVG:!0})}),s.jsx("button",{type:"button","aria-label":"share",className:["sass-com-ja3-clipboardButton","sharebtn-id"].join(" "),children:s.jsx(Es,{})})]}):null}const _l=e=>{const t=()=>e?.video.main.author?`${e?.video.main.author} - ${Ce(e.video.info.date.created)}`:e?.video.main.author;return s.jsx("div",{className:"sass-com-bv3-content",children:s.jsx(Bt,{children:s.jsxs("div",{className:"sass-com-bv3-videoContent",children:[s.jsx("p",{className:"sass-com-bv3-title",children:e.video.main.title}),e.type==="vy"&&s.jsx("iframe",{className:"sass-com-bv3-iframeStyled",src:`https://www.youtube.com/embed/${e.video.main.code}`,frameBorder:"0",allowFullScreen:!0}),e.type==="vf"&&s.jsx("iframe",{className:"sass-com-bv3-iframeStyled",src:e.video.main.code,frameBorder:"0",allowFullScreen:!0}),e.type==="ve"&&s.jsx("div",{className:"sass-com-bv3-contentFrame",dangerouslySetInnerHTML:{__html:e.video.main.code}}),s.jsxs("div",{className:"sass-com-bv3-articleSection",children:[s.jsx("p",{className:"sass-com-bv3-article",children:ye(e.video.main.description)}),s.jsx("p",{className:"sass-com-bv3-correspondent",children:t()})]})]})})})},Ts=e=>{const{currentPage:t,showNext:a,maxPages:r,pathname:n,query:o,block_subPublication:i}=e,l=(h,c,d)=>{let u="";const m=c.split("/");return m.indexOf("page")!==-1&&m.splice(u.indexOf("page")-1,m.length-1),m.forEach((g,f)=>{f!==0&&(u+=`/${g}`)}),h==="next"?u+=`/page/${t+1}${d?`?query=${d}`:""}`:u+=`/page/${t-1}${d?`?query=${d}`:""}`};return(t>1||a&&t<r)&&s.jsxs("section",{className:"sass-com-np-content",children:[t>1&&s.jsx(O,{block_subPublication:i,className:"sass-com-np-linkStyled",href:l("prev",n||"",o||""),children:e.texts.prevButtonText??"Anterior"}),a&&t<r&&s.jsx(O,{block_subPublication:i,className:"sass-com-np-linkStyled",href:l("next",n||"",o||""),children:e.texts.nextButtonText??"Siguiente"})]})},Is=e=>{const{grid:t=3}=e;return s.jsxs("section",{className:"sass-com-nc-content",children:[s.jsx("div",{className:`sass-com-nc-contentGrid ${e.className?e.className:""} ${t===3?"sass-com-nc-contentGrid3":"sass-com-nc-contentGrid4"} news-content`,children:e.children}),s.jsx(s.Fragment,{children:e.paginatorComponent})]})},Ee=e=>{const{main:t,authors:a,info:r,preview:n,share:o,isVideo:i,config:l,overImage:h="default",isTitle:c,priorityHigh:d=!1,isLarge:u,paths:m,keywords:g,speculationPrerenderClass:f}=e;return s.jsxs("section",{className:"sass-com-sc1-content",style:{...e.customSectionCardStyles},children:[s.jsx(O,{"aria-label":e.main?.title?.section,className:f?`${f} sass-com-sc1-image`:"sass-com-sc1-image",title:t?.title?.section,href:r?.link?.url,target:r?.link?.target,children:s.jsx(pe,{preview:n,isVideo:i,isLarge:u,priorityHigh:d})}),s.jsx("div",{className:"sass-com-sc1-newsDescription",children:s.jsx(Me,{main:t,authors:a,info:r,preview:n,share:o,config:l,overImage:h,isTitle:c,paths:m,keywords:g})})]})},dt=e=>{const{isVideo:t,info:a,main:r,overImage:n="default",titleGradient:o=!1}=e,{SHOW_TAG_BY_SECTION:i,SUB_PUBLICATION_PREFIX_IN_ROUTES:l}=M(),h=()=>{if(i&&e.keywords?.tags?.length&&e.keywords.tags.length>0){const c=e.keywords.tags[0],d=c.name;return c.approved?s.jsx("h3",{children:s.jsx(O,{"aria-label":d,block_subPublication:l?.tema,className:"sass-com-sc2-sectionDescription",href:xe(c,e.paths),children:d})}):s.jsx("div",{className:"sass-com-sc2-sectionDescription",children:d})}else if(e.info?.section?.url)return s.jsx("h3",{children:s.jsx(O,{className:"sass-com-sc2-sectionDescription",href:e?.info?.link?.url,target:e?.info?.link?.target,children:e.info.section.name})});return null};return s.jsxs("section",{className:"sass-com-sc2-content",children:[s.jsx(O,{title:r?.title?.section,href:a.link.url,target:a.link.target,children:s.jsx(pe,{preview:e.preview,isVideo:t})}),s.jsxs("div",{className:["sass-com-sc2-boxInformation",o?"sass-com-sc2-titleGradient":""].join(" "),style:{width:n!=="default"?"90%":"",left:n==="left"?0:n==="right"?"calc(10% - 1px)":"auto",top:n!=="default"?"-1rem":""},children:[s.jsx(h,{}),s.jsx("h2",{className:"sass-com-sc2-articule",children:s.jsx(O,{className:"sass-com-sc2-linkStyled",href:e?.info?.link?.url,target:e?.info?.link?.target,children:e.main?.title?.section})})]})]})},Gl=e=>s.jsx("div",{className:"sass-com-lt-content",children:s.jsx(Bt,{className:`sass-com-lt-contentLayout ${e.className}`,children:e.children})}),jl=e=>{const t=e.logo;return s.jsxs("section",{className:"sass-com-err-content",children:[e.backgroundImgURL&&s.jsx("img",{className:"sass-com-err-before su-absolute su-inset-0 su-size-full su-object-cover",src:e.backgroundImgURL,alt:"Imagen de fondo del error"}),s.jsxs("div",{className:"sass-com-err-textContent error-text-content",children:[s.jsx(t,{}),s.jsx("p",{className:"sass-com-err-title",children:e.title}),s.jsx("p",{className:"sass-com-err-description",children:e.description}),s.jsx(O,{className:"sass-com-err-linkStyled su-no-underline su-flex-center",href:"/",children:e.buttonText??"Inicio"})]})]})},Ql=e=>s.jsxs("div",{className:"sass-com-cin-content",children:[s.jsxs("div",{className:"sass-com-cin-contentLabel",children:[s.jsx("label",{className:"sass-com-cin-label",children:e.label}),e.required&&s.jsx("span",{className:"sass-com-cin-required",children:"*"})]}),s.jsx("input",{className:"sass-com-cin-input",...e})]}),Fl=e=>s.jsxs("div",{className:"sass-com-csel-content",children:[s.jsxs("div",{className:"sass-com-csel-contentLabel",children:[s.jsx("label",{className:"sass-com-csel-label",children:e.label}),e.required&&s.jsx("span",{className:"sass-com-csel-required",children:"*"})]}),s.jsxs("select",{className:"sass-com-csel-input",...e,children:[s.jsx("option",{value:"",children:"--Seleccione--"}),e.options.map((t,a)=>s.jsx("option",{value:t.value,children:t.label},a))]})]}),Vl=e=>s.jsxs("div",{className:"sass-com-cta-content",children:[s.jsx("label",{className:"sass-com-cta-label",children:e.label}),s.jsx("textarea",{className:"sass-com-cta-input",...e})]}),qr=e=>{let t="";return e.preview.description&&(t=e.preview.description),e.preview.copyright&&(t=`${t} ${e.preview.copyright}`),e.preview.photographer&&(t=`${t} ${e.preview.photographer}`),s.jsx("div",{className:"sass-com-in2-content",children:s.jsx(pe,{preview:e.preview,isLarge:!0,priorityHigh:!0,figCaption:t})})},Dr=e=>s.jsx(s.Fragment,{children:s.jsxs("div",{className:"sass-com-lbh-boxInformation sass-liveblog-header",children:[s.jsx(qr,{preview:e.preview}),s.jsxs("div",{className:"sass-com-lbh-textBox",children:[s.jsxs("div",{className:"sass-com-lbh-contentBox",children:[e?.info?.section&&s.jsx(O,{className:"sass-com-lbh-sectionDescription",href:e?.info?.section?.url,children:e?.info?.section?.name}),s.jsxs("div",{className:"sass-com-lbh-liveBox",children:[s.jsx("span",{className:"sass-com-lbh-dot"}),s.jsx("p",{children:"EN VIVO"})]})]}),s.jsx("h1",{className:"sass-com-lbh-articule",children:e.main?.title?.section}),e.config?.showsubtitle&&s.jsx("h2",{className:"sass-com-lbh-description",style:{"--fontSizeSubTitle":e.fontSizeSubTitle,"--lineHeightSubTitle":e.lineHeightSubTitle},children:e.main.subtitle.striped})]})]})}),_r=e=>s.jsx("section",{className:"sass-com-tl-content sass-liveblog-time-line",children:e.itemList[0]?.list.items.map((t,a)=>s.jsxs("div",{className:"sass-com-tl-contentLine",children:[s.jsx(O,{className:"sass-com-tl-dateLink",href:`#item-${a+1}`,children:ca(t.date)}),s.jsx("div",{className:"sass-com-tl-contentText",children:(e.itemList[0]?.list.integrated,t.title)})]},a))}),Gr=e=>{const{PUBLIC_ENV:t}=M(),a=ne("/linkedin-black.svg");return t!==""&&!e.forceSVG?s.jsx("img",{fetchPriority:"low",loading:"lazy",src:a,alt:"",...e}):s.jsx("svg",{version:"1.1",baseProfile:"tiny",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 30 30",overflow:"visible",xmlSpace:"preserve",...e,children:s.jsx("path",{fill:"currentColor",strokeWidth:"1.2656",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",d:`M10.2,8.3c0,1.1-0.9,2.1-2.2,2.1l0,0c-1.3,0-2.1-0.9-2.1-2.1c0-1.1,0.9-2.1,2.2-2.1C9.4,6.3,10.2,7.1,10.2,8.3z M6.1,23.7H10V11.9
|
|
148
148
|
H6.1V23.7z M19.6,11.7c-2.1,0-3.5,2-3.5,2v-1.7h-3.9v11.8H16v-6.6c0-0.3,0-0.7,0.1-0.9c0.3-0.7,0.9-1.4,2-1.4c1.4,0,2,1.1,2,2.7v6.3
|
|
149
149
|
h3.9V17C24.1,13.3,22.2,11.7,19.6,11.7z`})})},jt=e=>{if(!e||e.trim()==="")return e;const t=e.trim();return t.startsWith("http://")||t.startsWith("https://")?t:`https://${t}`},Hl=e=>!e||e.trim()===""?!1:/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e.trim()),zl=async e=>{const{autor:t,autorIcon:a,socialIconsFilled:r=!1}=e,n=a,o=t?.info?.image?.sizes?.[0]?.url??"",i=t?.info?.fullname??"",l=t?.info?.email??"",h=t?.addtional?.USER_SHOWEMAIL??!1,c=t?.addtional?.USER_SHOWBIO??!1,d=t?.addtional?.USER_MIBIO??"",u=jt(t?.addtional?.USER_USERFB??""),m=jt(t?.addtional?.USER_USERIG??""),g=jt(t?.addtional?.USER_USERTWT??""),f=jt(t?.addtional?.USER_USERLIN??""),p=()=>!h||!l||l.trim()===""?!1:Hl(l),A=v=>`mailto:${v.trim()}`;return s.jsx("section",{className:`sass-com-ah1-content su-flex-center su-relative su-w-full ${e.className??""}`,children:s.jsxs("div",{className:"sass-com-ah1-info",children:[o?s.jsx("div",{className:"sass-com-ah1-image-container sass-image-autor-wrapper",children:s.jsx("img",{fetchPriority:"low",loading:"lazy",alt:"Imagen de perfil de "+i,className:"sass-com-ah1-image su-object-cover",src:await ie(o)})}):s.jsx("div",{className:"sass-com-ah1-icon-wrap sass-image-autor-wrapper su-flex-center",children:s.jsx(n,{})}),s.jsx("h1",{className:"sass-com-ah1-name",children:i}),p()&&s.jsx("a",{href:A(l),className:"sass-com-ah1-email","aria-label":`Enviar correo electrónico a ${l}`,title:`Enviar correo a ${l}`,children:l}),c&&s.jsx("p",{className:"sass-com-ah1-description",children:d}),s.jsxs("div",{className:"sass-com-ah1-social",children:[u&&s.jsx("a",{href:u,target:"_blank",className:`sass-com-ah1-social-link ${r?"sass-com-ah1-social-filled":"sass-com-ah1-social-stroke"}`,rel:"noreferrer",children:r?s.jsx(ct,{className:"sass-com-ah1-social-icon sass-social-icon-facebook",forceSVG:!0}):s.jsx(_t,{className:"sass-com-ah1-facebook-icon sass-com-ah1-social-icon-facebook",forceSVG:!0})}),m&&s.jsx("a",{href:m,target:"_blank",className:"sass-com-ah1-social-link",rel:"noreferrer",children:s.jsx(Gt,{className:"sass-com-ah1-social-icon sass-com-ah1-social-icon-instagram",forceSVG:!0})}),g&&s.jsx("a",{href:g,target:"_blank",className:"sass-com-ah1-social-link",rel:"noreferrer",children:s.jsx(Se,{className:"sass-com-ah1-social-icon sass-com-ah1-social-icon-x",forceSVG:!0})}),f&&s.jsx("a",{href:f,target:"_blank",className:`sass-com-ah1-social-link ${r?"sass-com-ah1-social-filled":"sass-com-ah1-social-stroke"}`,rel:"noreferrer",children:r?s.jsx(Gr,{className:"sass-com-ah1-social-icon sass-com-ah1-social-icon-linkedin",forceSVG:!0}):s.jsx(Ue,{className:"sass-com-ah1-social-icon sass-com-ah1-social-icon-linkedin",forceSVG:!0})})]})]})})},Wl=async e=>{const{autor:t,autorIcon:a,socialIconsFilled:r=!1}=e,n=a,o=t?.info?.image?.sizes?.[0]?.url??"",i=t?.info?.fullname??"",l=t?.info?.email??"",h=t?.addtional?.USER_SHOWEMAIL??!1,c=t?.addtional?.USER_SHOWBIO??!1,d=t?.addtional?.USER_MIBIO??"",u=t?.addtional?.USER_USERFB??"",m=t?.addtional?.USER_USERIG??"",g=t?.addtional?.USER_USERTWT??"",f=t?.addtional?.USER_USERLIN??"";return s.jsx("section",{className:"sass-com-ah2-content su-flex su-w-full su-items-center su-justify-end",children:s.jsxs("div",{className:"sass-com-ah2-contentInfo su-stack-center su-relative su-w-full su-gap-2 su-p-4",children:[o?s.jsx("img",{fetchPriority:"low",loading:"lazy",className:"sass-com-ah2-imageStyled su-object-cover",src:await ie(o)}):s.jsx("div",{className:"sass-com-ah2-contentIconStyled su-flex-center",children:s.jsx(n,{})}),s.jsxs("div",{className:"sass-com-ah2-contentAuthor su-stack-center su-md:items-start",children:[s.jsx("h1",{className:"sass-com-ah2-name",children:i}),h&&s.jsx("p",{className:"sass-com-ah2-email",children:l}),c&&s.jsx("p",{className:"sass-com-ah2-description",children:d}),s.jsxs("div",{className:"sass-com-ah2-contenSocialNetwork su-flex su-items-center su-gap-4 su-justify-start",children:[u&&s.jsx("a",{href:u,target:"_blank",className:r?"sass-com-ah2-socialIconFilled":"sass-com-ah2-socialIconStroke",rel:"noreferrer",children:r?s.jsx(ct,{className:"sass-com-ah2-blackIconFaceBook sass-com-ah2-socialIcon sass-com-ah2-social-icon-facebook",forceSVG:!0}):s.jsx(_t,{className:"sass-com-ah2-socialIcon sass-com-ah2-social-icon-facebook",forceSVG:!0})}),m&&s.jsx("a",{href:m,target:"_blank",rel:"noreferrer",children:s.jsx(Gt,{className:"sass-com-ah2-socialIcon sass-com-ah2-social-icon-instagram",forceSVG:!0})}),g&&s.jsx("a",{href:g,target:"_blank",rel:"noreferrer",children:s.jsx(Se,{className:"sass-com-ah2-socialIcon sass-com-ah2-social-icon-x",forceSVG:!0})}),f&&s.jsx("a",{href:f,target:"_blank",className:r?"sass-com-ah2-socialIconFilled":"sass-com-ah2-socialIconStroke",rel:"noreferrer",children:r?s.jsx(Gr,{className:"sass-com-ah2-socialIcon sass-com-ah2-social-icon-linkedin",forceSVG:!0}):s.jsx(Ue,{className:"sass-com-ah2-socialIcon sass-com-ah2-social-icon-linkedin",forceSVG:!0})})]})]})]})})},jr=e=>s.jsxs("section",{className:"sass-com-lnc-content",children:[e.children,s.jsxs("div",{className:"sass-com-lnc-bannerSection",style:e.readestCustomStyles,children:[e.bannerTop,s.jsx(Dt,{content:e.ranking,title:e.readestTitle,paths:e.paths,customNewsDescriptionStyles:{"--news-description-title-size-desk":"16px","--news-description-title-line-height-desk":"22px","--news-description-title-size-mobile":"16px","--news-description-title-line-height-mobile":"22px"}}),e.banner]})]}),Yl=async e=>{const t=Cs(),a={...e,main:{...e.main,title:{...e.main.title,article:ye(e.main.title.article,60)}}};return e&&e.info?s.jsxs("section",{className:"sass-com-sc7-content",children:[s.jsx("a",{className:"sass-com-sc7-linkImage",target:e?.info?.link?.target,title:e?.main?.title?.section,href:e.info.link.url,children:s.jsxs("div",{style:{position:"relative"},children:[s.jsx("img",{src:await ie(e.preview.sizes[0]?.url||"")}),s.jsx(t,{className:"sass-com-sc7-playStyled saas-image-play-icon"})]})}),s.jsx("div",{className:"sass-com-sc7-newsDescription",children:s.jsx(Me,{...a,paths:e.paths})})]}):null},$l=e=>{let t=[];return e.videoList&&e.videoList.length>0&&(t=e.videoList?.filter(a=>a.info.path!==e.video.info.path)??[]),s.jsx("div",{className:"sass-com-bv4-content",children:s.jsxs(Bt,{className:"sass-com-bv4-contentLayoutVideoSection",children:[s.jsxs("a",{className:"sass-com-bv4-header",href:e.goBackLink??"/videos",children:[s.jsx("svg",{width:"21",height:"20",viewBox:"0 0 21 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:s.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.6055 4.86193C12.8659 5.12228 12.8659 5.54439 12.6055 5.80474L8.41026 10L12.6055 14.1953C12.8659 14.4556 12.8659 14.8777 12.6055 15.1381C12.3452 15.3984 11.9231 15.3984 11.6627 15.1381L6.99604 10.4714C6.73569 10.2111 6.73569 9.78894 6.99604 9.52859L11.6627 4.86193C11.9231 4.60158 12.3452 4.60158 12.6055 4.86193Z",fill:"white"})}),e.titleGoBack??"VOLVER A VIDEOS"]}),s.jsxs("div",{className:"sass-com-bv4-videos",children:[s.jsxs("div",{className:"sass-com-bv4-videoContent",style:e.mainVideoStyles,children:[e.type==="vy"&&s.jsx("iframe",{className:"sass-com-bv4-iframeStyled",src:`https://www.youtube.com/embed/${e.video?.main?.code}`,frameBorder:"0",allowFullScreen:!0}),e.type==="vf"&&s.jsx("iframe",{className:"sass-com-bv4-iframeStyled",src:e.video?.main?.code,frameBorder:"0",allowFullScreen:!0,allow:"autoplay; fullscreen",sandbox:"allow-scripts allow-same-origin allow-presentation allow-popups"}),e.type==="ve"&&s.jsx("div",{className:"sass-com-bv4-contentFrame",dangerouslySetInnerHTML:{__html:e.video?.main?.code??""}}),s.jsx("div",{className:"sass-com-bv4-articleSection",children:s.jsx(Me,{isTitle:!0,cutSubtitle:!1,...He({...e?.video,info:{...e?.video?.info,link:{...e.video?.info?.link,url:""}}},!0,!!e.video?.main?.description,!0),paths:e.paths})})]}),s.jsxs("div",{className:"sass-com-bv4-sectionVideoList",style:e.listVideoStyles,children:[e.banner&&s.jsx(ge,{banners:e.banner.banners,name:e.banner.bannerName}),e.relatedName&&s.jsx("h2",{className:"sass-com-bv4-relatedTitle saas-video-related-title",children:e.relatedName}),Array.isArray(t)&&t.map((a,r)=>I.createElement(Yl,{...He(a,!0,!1,!1),key:r,paths:e.paths}))]})]})]})})},ce=I.forwardRef((e,t)=>{const{isTitle:a=!1,isOpinion:r=!1}=e,n=a?s.jsx("h1",{className:"sass-com-sec-title",children:e.title}):s.jsx("h2",{className:"sass-com-sec-title",children:e.title});return s.jsxs("section",{className:"sass-com-sec-content",children:[e.title&&s.jsxs("div",{className:["sass-com-sec-titleContent",e.className??""].join(" "),"data-after":`${r}`,children:[s.jsx("hr",{className:"sass-com-sec-startLine"}),e.titleUrl?s.jsx(O,{href:e.titleUrl,children:n}):n,s.jsx("hr",{className:"sass-com-sec-line"}),e.titleUrl&&s.jsx(O,{className:"sass-com-sec-readMore",href:e.titleUrl?.toString()??""})]}),e.title&&s.jsx("hr",{className:["sass-com-sec-bottomLine",e.className??""].join(" ")}),s.jsx("div",{className:"sass-com-sec-childrenContent",ref:t,children:e.children})]})}),Us=e=>s.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"var(--header-icons)",xmlns:"http://www.w3.org/2000/svg",...e,children:s.jsx("path",{d:"M10.5283 0.562859C13.1487 0.49118 15.6972 1.42576 17.6494 3.17516C19.6016 4.92465 20.8095 7.3565 21.0244 9.96911C21.2392 12.5816 20.4447 15.1772 18.8047 17.222L18.6641 17.3978L18.8232 17.556L23.1475 21.8451H23.1484C23.3137 22.016 23.4062 22.2451 23.4062 22.4828C23.4062 22.7194 23.3143 22.9469 23.1504 23.1175C23.0653 23.2033 22.964 23.2712 22.8525 23.3177C22.7409 23.3642 22.6209 23.388 22.5 23.3881C22.3791 23.3881 22.2591 23.3642 22.1475 23.3177C22.0358 23.2712 21.9338 23.2034 21.8486 23.1175L17.5547 18.8236L17.3965 18.6644L17.2217 18.805C15.1768 20.4451 12.5812 21.2395 9.96875 21.0248C7.35614 20.8099 4.9243 19.602 3.1748 17.6498C1.4254 15.6976 0.490821 13.149 0.5625 10.5287C0.634205 7.90823 1.70691 5.41454 3.56055 3.56091C5.41418 1.70727 7.90787 0.634563 10.5283 0.562859ZM14.0537 3.057C12.516 2.42011 10.8239 2.25385 9.19141 2.57848C7.55873 2.90324 6.05893 3.7051 4.88184 4.88219C3.70474 6.05929 2.90288 7.55909 2.57812 9.19176C2.25349 10.8242 2.41975 12.5163 3.05664 14.0541C3.69368 15.592 4.77311 16.9066 6.15723 17.8314C7.54131 18.7562 9.16841 19.2504 10.833 19.2504C13.0652 19.2504 15.2058 18.363 16.7842 16.7845C18.3626 15.2061 19.25 13.0656 19.25 10.8334C19.25 9.16877 18.7558 7.54167 17.8311 6.15759C16.9062 4.77347 15.5917 3.69404 14.0537 3.057Z",fill:"var(--header-icons)",stroke:"var(--header-icons)",strokeWidth:"0.5"})}),Qt=e=>s.jsx("svg",{width:"12",height:"13",viewBox:"0 0 12 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:s.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.862254 3.39448C1.1226 3.13413 1.54471 3.13413 1.80506 3.39448L6.00033 7.58974L10.1956 3.39448C10.4559 3.13413 10.878 3.13413 11.1384 3.39448C11.3987 3.65483 11.3987 4.07694 11.1384 4.33729L6.47173 9.00396C6.21138 9.26431 5.78927 9.26431 5.52892 9.00396L0.862254 4.33729C0.601905 4.07694 0.601905 3.65483 0.862254 3.39448Z",fill:"currentColor"})}),Kl=()=>s.jsx("div",{className:"sass-com-sb-buttonContent",children:s.jsx("label",{className:"sass-com-sb-buttonStyled",htmlFor:"side-bar-state",children:s.jsx(Ke,{className:"sass-com-sb-icon"})})}),Jl=({action:e,placeholder:t})=>s.jsx("div",{className:"sass-com-sb-inputContent",children:s.jsxs("form",{className:"sass-com-sb-inputStyled",action:e,method:"GET",children:[s.jsx("input",{className:"sass-com-sb-buscar",type:"text",name:"query",placeholder:t}),s.jsx("button",{type:"submit","aria-label":"Buscar from sidebar",className:"sass-com-sb-searchSubmit",children:s.jsx(Us,{color:"var(--search-input-icons)"})})]})}),Zl=({item:e,index:t})=>{const a=`accordion_${t}`,r=Array.isArray(e.subitem);return s.jsxs("div",{className:"sass-com-sb-accordionStyled",children:[s.jsx("input",{type:"checkbox",id:a,style:{display:"none"}}),s.jsx("h3",{className:"sass-com-sb-accordionHeading",children:r?s.jsxs("label",{className:"sass-com-sb-accordionSummeryStyled",htmlFor:a,children:[e.link?s.jsx(O,{block_subPublication:!0,className:"sass-com-sb-linkStyled",href:e.link,target:e.target,children:e.description}):s.jsx("div",{children:e.description}),s.jsx(Qt,{width:13,height:13,fill:"var(--side-bar-arrow-color)"})]}):s.jsx(O,{block_subPublication:!0,className:"sass-com-sb-linkStyled",href:e.link??void 0,target:e.target,children:e.description})}),r&&s.jsx("div",{className:"sass-com-sb-accordionDetailsStyled",style:{"--max-height":`${e.subitem.length*45}px`},children:e.subitem.map((n,o)=>s.jsx(O,{block_subPublication:!0,className:"sass-com-sb-subLinkStyled",href:n.link??void 0,target:n.target,children:n.description},o))})]})},Xl=({socials:e,copyright:t})=>s.jsxs("div",{className:"sass-com-sb-footerSlider",children:[s.jsx("div",{className:"sass-com-sb-socialMedia",children:Object.keys(e).map(a=>e[a]?.show?s.jsx("a",{href:e[a].url,target:"_blank",rel:"noreferrer","aria-label":`${e[a].title} link`,className:"sass-com-sb-linkSocialNetwork",children:lt[a]({className:`sass-com-sb-icon ${`sass-com-sb-icon-${a}`}`})},a):null)}),t&&s.jsx("p",{className:"sass-com-sb-copyRights",children:t})]}),Rl=({sidebar:e,socials:t,copyrigth:a,sidebarExtra:r,searchKeyWord:n,searchLink:o,custom_styles:i={}})=>{const{SUB_PUBLICATION_PREFIX_IN_ROUTES:l}=M(),h=l?.buscar?Ie():"";return s.jsxs("aside",{className:"sass-com-sb-drawerStyled",id:"sidebar-expandable",style:i,children:[s.jsx("input",{type:"checkbox",id:"side-bar-state"}),s.jsxs("section",{className:"sass-com-sb-sidebarCustom",children:[s.jsx(Kl,{}),s.jsx(Jl,{action:`${h}${o||"/buscar"}`,placeholder:`${n}...`}),s.jsxs("div",{className:"sass-com-sb-mainContent",children:[s.jsxs("div",{children:[r,e.map((c,d)=>s.jsx(Zl,{item:c,index:d},d))]}),s.jsx(Xl,{socials:t,copyright:a})]})]})]})},Qr=e=>s.jsx("svg",{width:"27",height:"18",viewBox:"0 0 27 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:s.jsx("path",{d:"M1.5 18H25.5C26.325 18 27 17.325 27 16.5C27 15.675 26.325 15 25.5 15H1.5C0.675 15 0 15.675 0 16.5C0 17.325 0.675 18 1.5 18ZM1.5 10.5H25.5C26.325 10.5 27 9.825 27 9C27 8.175 26.325 7.5 25.5 7.5H1.5C0.675 7.5 0 8.175 0 9C0 9.825 0.675 10.5 1.5 10.5ZM0 1.5C0 2.325 0.675 3 1.5 3H25.5C26.325 3 27 2.325 27 1.5C27 0.675 26.325 0 25.5 0H1.5C0.675 0 0 0.675 0 1.5Z",fill:e.color})}),Fr=e=>{const{alertZone:t,id:a="close-alert"}=e,r=()=>s.jsx(O,{className:"sass-com-hlm-headLine",href:t?.data[0]?.info.link.url,target:t?.data[0]?.info.link.target,title:t?.data[0]?.main.title.home,children:t?.data[0]?.main?.title.home??""});return s.jsxs(s.Fragment,{children:[s.jsx("input",{type:"checkbox",id:a,style:{display:"none"},defaultChecked:!(t&&t?.data&&t?.data[0]?.main?.title.home)}),t&&t?.data&&t?.data[0]?.main?.title.home&&s.jsxs("div",{id:"alert-chip",className:"sass-com-hlm-content",style:e.forceShow?{display:"flex",position:"sticky",top:100}:{},children:[s.jsxs("div",{className:"sass-com-hlm-live",children:[s.jsx("div",{className:"sass-com-hlm-chipStyled",children:t?.entity?.description}),e.forceShow&&s.jsx(r,{}),s.jsx("label",{htmlFor:a,children:s.jsx(Ke,{className:"sass-com-hlm-closeLiveStyled"})})]}),s.jsx(r,{})]})]})},Vr=e=>{const{cintillo:t,tapeTitle:a,socials:r}=e,n="",o=t?.findIndex(i=>i.link===n)??0;return(Array.isArray(t)||e.socialIcons)&&s.jsxs("section",{className:"sass-com-htape-content",children:[Array.isArray(t)&&s.jsxs("div",{className:"sass-com-htape-tabs header-page-tape-content",children:[a!==""&&s.jsx("p",{className:"sass-com-htape-title",children:`${a}`}),t&&t[o]&&s.jsx(O,{block_subPublication:!0,className:"sass-com-htape-linkStyled",target:t[o]?.target,href:t[o]?.link,style:{color:t[o]?.link===n?"var(--header-tape-active-link)":"var(--header-tape-icons)",fontWeight:t[o]?.link===n?"700":"400"},children:t[o]?.description},o),t&&t.map((i,l)=>{if(l!==o)return s.jsx(O,{block_subPublication:!0,className:"sass-com-htape-linkStyled",href:i?.link,style:{color:i?.link===n?"var(--header-tape-active-link)":"var(--header-tape-color)",fontWeight:i?.link===n?"700":"400"},children:i?.description},l)})]}),s.jsx("div",{className:"sass-com-htape-socialNetwork",children:Object.keys(r).map(i=>!i||!r[i]||!lt[i]?null:r[i]?.show&&s.jsx("a",{target:"_blank",rel:"noreferrer","aria-label":r[i].title+" link",className:"sass-com-htape-linkSocialNetwork",href:r[i].url,children:lt[i]({className:["sass-com-htape-icon",`sass-com-htape-${String(i)}`].join(" ")})},i))})]})},ec=e=>{const{alertZone:t,custom_styles:a={}}=e,{SUB_PUBLICATION_PREFIX_IN_ROUTES:r}=M();return s.jsxs("header",{className:"sass-com-h1sk-headerStyled",style:a,id:"saas-header-sticky",children:[e.socialIcons&&e.headerTape?.sticky&&s.jsx(Vr,{socialIcons:e.socialIcons,cintillo:e.cintillo,tapeTitle:e.tapeTitle,socials:e.socials}),s.jsxs("div",{className:`${t&&t?.data?"sass-com-h1sk-headerContentAlert":"sass-com-h1sk-headerContent"} center-mobile-header-icon`,children:[s.jsx(Ns,{id:"button-app",className:"sass-com-h1sk-menuButton",toggledrawerevent:"true","aria-label":"menu","aria-labelledby":"menu",title:"menu",children:s.jsx(Qr,{className:"sass-com-h1sk-startIcon",color:"var(--header-menu-icon-color, var(--header-icons))",width:27,height:27})}),s.jsxs("div",{className:"sass-com-h1sk-iconContent",children:[s.jsx(O,{href:"/","aria-label":"Home",className:"icon header-logo-link-sticky",style:{display:"flex"},children:I.createElement("span",{className:"sass-com-h1sk-logoStyled"},e.icon)}),e.mobileIcon?s.jsx(O,{href:"/","aria-label":"Home",className:"icon header-logo-link-sticky header-mobile-icon",style:{display:"flex"},children:I.createElement("span",{className:"sass-com-h1sk-logoStyled"},e.mobileIcon())}):null]}),!e.showAlertPop&&t?.data&&s.jsxs("div",{className:"sass-com-h1sk-headLineContent",children:[s.jsx("div",{className:"sass-com-h1sk-headLineTitle headLineTitle",children:t.entity.description?`${t.entity.description}`:""}),s.jsx(O,{className:"sass-com-h1sk-headLine",href:t.data[0]?.info.link.url,target:t.data[0]?.info.link.target,title:t.data[0]?.main.title.home,children:ye(t.data[0]?.main.title.home??"",120)})]}),s.jsxs("div",{style:e.showAlertPop?{marginLeft:"auto"}:{},className:["sass-com-h1sk-buttonSection",t?.data?"sass-com-h1sk-hasAlertZone":"","search-button"].join(" "),children:[s.jsx(O,{block_subPublication:r?.buscar,href:e.searchLink?e.searchLink:"/buscar","aria-label":e.searchKeyWord,className:"sass-com-h1sk-buttonSectionSearch search-button-icon",style:{display:"flex"},children:s.jsx(Us,{width:28,height:28,color:"currentColor"})}),e.rightZone]})]}),!e.showAlertPop&&s.jsx(Fr,{alertZone:t,forceShow:e.showAlertPop})]})},tc=e=>{const{items:t}=e;return s.jsx("ul",{className:"sass-com-mopt-ul",children:t.map((a,r)=>s.jsxs("li",{className:"sass-com-mopt-liBefore sass-com-mopt-li",children:[a.link?s.jsxs(O,{block_subPublication:!0,"aria-label":a.description,className:"sass-com-mopt-linkStyled",href:a.link?a.link:void 0,target:a.target,children:[a.description,Array.isArray(a.subitem)&&s.jsx(Qt,{})]}):s.jsxs("span",{"aria-label":a.description,className:"sass-com-mopt-linkStyled",children:[a.description,Array.isArray(a.subitem)&&s.jsx(Qt,{})]}),Array.isArray(a.subitem)&&s.jsx("ul",{className:"sass-com-mopt-ulContent",children:s.jsx("div",{className:"sass-com-mopt-contentModal",children:a.subitem.map((n,o)=>s.jsx("li",{className:"sass-com-mopt-li",children:s.jsx(O,{block_subPublication:!0,className:"sass-com-mopt-itemLink","aria-label":n.description,href:n.link?n.link:void 0,target:n.target,children:n.description})},o))})})]},r))})},sc=e=>{const{menu:t,alertZone:a,custom_styles:r={},prerender_classes:n}=e,{SUB_PUBLICATION_PREFIX_IN_ROUTES:o}=M();return s.jsxs("header",{className:"sass-com-h1st-headerStyled",id:"saas-header-static",style:{...r,top:e.cintillo||e.socialIcons&&!e.headerTape?.static?40:0},children:[e.socialIcons&&e.headerTape?.static&&s.jsx(Vr,{socialIcons:e.socialIcons,cintillo:e.cintillo,tapeTitle:e.tapeTitle,socials:e.socials}),s.jsxs("div",{style:e.showAlertPop?{gap:0}:{},className:["sass-com-h1st-headerContent",a?.data?"sass-com-h1st-hasAlertZone":""].join(" "),children:[s.jsx("div",{className:"sass-com-h1st-menuButtonSection sass-header-menu-button",children:s.jsxs(Ns,{className:"sass-com-h1st-menuButton",id:"button-app",toggledrawerevent:"true","aria-label":"menu","aria-labelledby":"menu",title:"menu",children:[s.jsx(Qr,{color:"var(--header-menu-icon-color, var(--header-icons))",width:27,height:27}),s.jsx("p",{className:"sass-com-h1st-buttonText",style:{lineHeight:0},children:e.menuText})]})}),s.jsx("div",{className:"sass-com-h1st-logoContent",children:s.jsx(O,{href:"/","aria-label":"Home",className:"header-logo-link",children:I.createElement("span",{className:"sass-com-h1st-logoStyled"},e.icon)})}),s.jsxs("div",{className:"sass-com-h1st-buttonSection sass-header-right-button-section",children:[s.jsx(O,{block_subPublication:o?.buscar,href:e.searchLink?e.searchLink:"/buscar",className:"sass-com-h1st-buttonSectionSearch","aria-label":e.searchKeyWord,style:{display:"flex"},children:s.jsx(Us,{width:28,height:28,color:"currentColor"})}),e.rightZone]}),!e.showAlertPop&&a?.data?s.jsxs("div",{className:"sass-com-h1st-headLineContent",children:[s.jsx("p",{className:"sass-com-h1st-headLineTitle headLineTitle",children:a.entity.description?`${a.entity.description}`:""}),s.jsx(O,{className:`sass-com-h1st-headLine ${n?.alert}`,href:a.data[0]?.info.link.url,target:a.data[0]?.info.link.target,title:a.data[0]?.main.title.home,children:ye(a.data[0]?.main.title.home??"",120)})]}):s.jsx("div",{className:"sass-com-h1st-line"}),s.jsx("div",{className:"sass-com-h1st-menuSection",style:e.showAlertPop?{"--showAlertPop":"0px"}:{},children:Array.isArray(t)&&s.jsx(tc,{items:t})})]})]})},ac=e=>{const{alertZone:t,children:a,sidebar:r,custom_styles:n={}}=e,o=e.childrenContentTag??"div",i=s.jsxs(o,{className:["sass-com-h1-childrenContent",e.showAlertPop?"sass-com-h1-op2":"",t?.data?"sass-com-h1-childrenContentAux":""].join(" "),style:e.showOnlyStickyHeader?{...n,"--hasAlertMargin":"3.6rem !important"}:n,id:"content-layout",children:[e.showAlertPop&&s.jsx(Fr,{alertZone:t,forceShow:e.showAlertPop,id:"static-alert-chip"}),a]});return s.jsxs(s.Fragment,{children:[e.childrenContentPosition==="before-headers"&&i,s.jsx(ec,{...e}),!e.showOnlyStickyHeader&&s.jsx(sc,{...e}),e.childrenContentPosition!=="before-headers"&&i,s.jsx(Rl,{sidebarExtra:e.sidebarExtra,searchKeyWord:e.searchKeyWord,sidebar:r,searchLink:e.searchLink,socials:e.socials,copyrigth:e.copyrigth,custom_styles:e.custom_styles})]})},Hr=e=>{const{SUB_PUBLICATION_PREFIX_IN_ROUTES:t}=M();return e?.tags&&e?.tags?.length>0&&s.jsx("section",{className:"sass-com-ts-content",children:Array.isArray(e.tags)&&s.jsxs("div",{className:"sass-com-ts-tags",children:[s.jsx("p",{className:"sass-com-ts-tagStyled",children:e.title?e.title:"Tags:"}),e.tags.map((a,r)=>a.approved?s.jsx(O,{block_subPublication:t?.tema,href:xe(a,e.paths),children:s.jsx("div",{className:"sass-com-ts-chipStyled sass-com-ts-tagLink",children:a.name})},r):s.jsx("div",{className:"sass-com-ts-chipStyled",children:a.name},r))]})})},zr=async e=>{const{autor:t}=e,{SUB_PUBLICATION_PREFIX_IN_ROUTES:a}=M(),r=Ie(),n=t?.addtional?.USER_SHOWBIO??!1,o=t?.info?.name??"",i=t?.info?.fullname??"",l=t?.info?.image?.sizes?.[0]?.url??"",h=t?.addtional?.USER_MIBIO??"",c=t?.addtional?.USER_USERFB??"",d=t?.addtional?.USER_USERIG??"",u=t?.addtional?.USER_USERTWT??"",m=t?.addtional?.USER_USERLIN??"",g=`${r}/${e.paths.autor}/${o}`;return n&&!!t&&s.jsx("section",{className:"sass-com-ja2-contentBox",children:s.jsxs("div",{className:"sass-com-ja2-content",children:[s.jsxs("div",{className:"sass-com-ja2-avatarContent",children:[s.jsx(O,{block_subPublication:a?.autor,className:"sass-com-ja2-journalistInfo su-no-underline",href:g,children:l?s.jsx("img",{fetchPriority:"low",loading:"lazy",alt:"Imagen de perfil de "+o,className:"sass-com-ja2-imageStyled",src:await ie(l)}):s.jsx("div",{className:"sass-com-ja2-contentIconStyled",children:e.autorIcon})}),s.jsxs("section",{className:"sass-com-ja2-journalistSection",children:[s.jsx("h3",{className:"sass-com-ja2-journalistInfo",children:s.jsx(O,{block_subPublication:a?.autor,className:"su-no-underline",href:g,children:i})}),s.jsxs("section",{className:"sass-com-ja2-socialNetworkSection",children:[c&&s.jsx("a",{href:c,target:"_blank","aria-label":h,rel:"noreferrer",children:s.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:s.jsx("path",{d:"M16.7266 4H14.545C12.1067 4 10.5025 5.52672 10.5025 7.96947V9.80153H8.32083C8.12833 9.80153 8 9.92366 8 10.1069V12.7328C8 12.916 8.12833 13.0382 8.32083 13.0382H10.5025V19.6947C10.5025 19.8779 10.6308 20 10.8233 20H13.7108C13.9033 20 14.0316 19.8779 14.0316 19.6947V13.0382H16.5983C16.7908 13.0382 16.9191 12.916 16.9191 12.7328V10.1069C16.9191 10.0458 16.855 9.92366 16.7908 9.8626C16.7266 9.80153 16.6625 9.74046 16.5341 9.74046H13.9675V8.21374C13.9675 7.48092 14.16 7.1145 15.1866 7.1145H16.6625C16.855 7.1145 16.9833 6.99237 16.9833 6.80916V4.36641C17.0475 4.12214 16.9191 4 16.7266 4Z",stroke:"black",strokeWidth:"1.4"})})}),d&&s.jsx("a",{href:d,target:"_blank","aria-label":h,rel:"noreferrer",children:s.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[s.jsxs("g",{clipPath:"url(#clip0_281_2357)",children:[s.jsx("path",{d:"M7.98634 4.06233C10.9335 4.1651 14.0152 3.89192 16.947 4.05106C19.1239 4.16908 20.8447 5.87246 20.9992 8.04131V17.0111C20.8646 19.1408 19.1378 20.8608 17.0113 21H8.04335C5.91354 20.8654 4.19406 19.1388 4.05551 17.0111C4.18345 14.0751 3.88383 10.9919 4.05353 8.07313C4.17682 5.95269 5.86648 4.21616 7.98634 4.06233ZM7.9532 5.4859C6.65331 5.64503 5.63713 6.68072 5.48201 7.97964L5.47804 17.0442C5.62586 18.3902 6.69175 19.4518 8.04136 19.5784L17.0445 19.5764C18.3901 19.4319 19.4514 18.3611 19.578 17.0131L19.576 8.00882C19.4321 6.67277 18.3788 5.6205 17.0445 5.47662L7.9532 5.4859Z",fill:"black"}),s.jsx("path",{d:"M15.527 9.52595C17.7019 11.7008 16.868 15.4802 13.9752 16.5079C10.6708 17.6815 7.47508 14.6354 8.47999 11.2771C9.38614 8.24892 13.2851 7.28484 15.5263 9.52662L15.527 9.52595ZM12.1894 9.72288C9.96615 9.94898 8.93936 12.6602 10.3771 14.3629C11.8149 16.0656 14.5877 15.4769 15.2168 13.3796C15.8458 11.2824 14.2529 9.51269 12.1894 9.72288Z",fill:"black"}),s.jsx("path",{d:"M17.0868 6.87507C18.5955 6.84324 18.4874 9.24614 16.8939 8.96965C15.7213 8.76609 15.8227 6.90159 17.0868 6.87507Z",fill:"black"})]}),s.jsx("defs",{children:s.jsx("clipPath",{id:"clip0_281_2357",children:s.jsx("rect",{width:"17",height:"17",fill:"white",transform:"translate(4 4)"})})})]})}),u&&s.jsx("a",{href:u,target:"_blank","aria-label":h,rel:"noreferrer",children:s.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:s.jsx("path",{d:"M3.43242 4.23888L10.0354 13.0628L3.39062 20.2389H4.88316L10.6981 13.9583L15.3966 20.2389H20.4832L13.51 10.9135L19.6951 4.23291H18.2026L12.8473 10.018L8.51898 4.23291H3.43242V4.23888ZM5.62943 5.33739H7.96973L18.2921 19.1404H15.9518L5.62943 5.33739Z",fill:"#010101"})})}),m&&s.jsx("a",{href:m,target:"_blank","aria-label":h,rel:"noreferrer",children:s.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[s.jsx("path",{d:"M13.1553 9.97173C13.2123 9.98635 13.2208 9.9478 13.2536 9.92189C13.9389 9.38958 14.1885 9.05464 15.1143 8.85195C17.735 8.27844 20.2954 9.68265 20.4618 12.5449C20.6046 15.0084 20.3504 17.6121 20.4618 20.0903C20.4316 20.4372 20.1892 20.6425 19.8557 20.6718C18.9876 20.7475 18.0154 20.6133 17.1361 20.6704C16.8583 20.6465 16.5825 20.4578 16.5609 20.1574C16.4875 18.1631 16.6637 16.0916 16.5642 14.1066C16.5334 13.4979 16.462 12.9835 15.9182 12.6353C14.805 11.9215 13.5333 12.6346 13.4495 13.9405C13.3197 15.9488 13.5484 18.1006 13.4521 20.1235C13.4383 20.4491 13.1795 20.6392 12.8768 20.6698C11.917 20.7675 10.8058 20.5967 9.82899 20.6718C9.59116 20.6478 9.35988 20.5422 9.2793 20.2989V9.41284C9.35006 9.20815 9.53219 9.08654 9.7353 9.04467C10.6604 9.10581 11.7061 8.95363 12.6161 9.04068C12.8126 9.05929 13.1553 9.2786 13.1553 9.49059V9.97239V9.97173ZM9.84668 20.1062H12.8768L12.926 20.0564V13.6766C12.926 12.7821 13.9657 11.877 14.8103 11.7999C16.2163 11.6717 17.0464 12.6253 17.1191 13.9763C17.2252 15.9468 17.0418 18.0115 17.1178 19.9919L17.1689 20.1062H19.8551L19.9062 19.9919L19.9042 12.5808C19.6992 9.46068 16.1671 8.36948 13.8924 10.104L12.6318 11.4005V9.60622H9.84733V20.1062H9.84668Z",fill:"black",stroke:"black",strokeWidth:"0.5"}),s.jsx("path",{d:"M4.6294 9.04917C5.38612 8.92822 6.41671 9.11629 7.2016 9.04917C7.53181 9.13755 7.79847 9.39274 7.8666 9.73698L7.88102 19.9233C7.84564 20.243 7.56326 20.5387 7.26581 20.6284C6.93888 20.7261 5.19219 20.7095 4.78926 20.667C4.38633 20.6244 4.10854 20.3958 3.99061 20.015L3.9834 9.75626C3.99781 9.43062 4.31885 9.09967 4.6294 9.04917ZM4.72702 9.61338C4.60319 9.64926 4.53243 9.75692 4.53833 9.88717L4.54685 19.8834C4.59729 20.0502 4.72767 20.0901 4.88426 20.1061C5.31012 20.1493 6.64078 20.1659 7.03781 20.0988C7.18064 20.0748 7.32085 19.9884 7.32478 19.825L7.31626 9.86392C7.29464 9.73831 7.20554 9.62933 7.07647 9.60872L4.72702 9.61404V9.61338Z",fill:"black",stroke:"black",strokeWidth:"0.5"}),s.jsx("path",{d:"M8.16428 6.20159C8.16428 7.45495 7.16252 8.47105 5.92687 8.47105C4.69121 8.47105 3.68945 7.45495 3.68945 6.20159C3.68945 4.94824 4.69121 3.93213 5.92687 3.93213C7.16252 3.93213 8.16428 4.94824 8.16428 6.20159ZM7.60345 6.20358C7.60345 5.2639 6.85263 4.50165 5.92556 4.50165C4.99849 4.50165 4.24766 5.26324 4.24766 6.20358C4.24766 7.14393 4.99849 7.90552 5.92556 7.90552C6.85263 7.90552 7.60345 7.14393 7.60345 6.20358Z",fill:"black",stroke:"black",strokeWidth:"0.5"})]})})]})]})]}),n&&s.jsx("p",{className:"sass-com-ja2-article",dangerouslySetInnerHTML:{__html:`${h} <a aria-label="${o}" href="${g}">${String(e.texts.authorViewMore??"Ver más")}</a>`}})]})})},Wr=async e=>{const{news:t,texts:a}=e;return t.config?.showauthor&&t.authors?.length>1&&s.jsx("div",{className:"sass-com-jg-content su-flex su-w-full su-flex-col su-items-center su-justify-evenly su-gap-0 su-md:flex-row",children:Array.isArray(t.authors)&&t.authors?.map(async r=>s.jsxs("div",{className:"sass-com-jg-contentCard",children:[r.image?s.jsx("img",{fetchPriority:"low",loading:"lazy",className:"sass-com-jg-imageStyled su-flex-center",src:await ie(r.image.sizes[0]?.url||"")},r.fullname):s.jsx("div",{className:"sass-com-jg-contentIconStyled su-flex-center",children:e.autorIcon},r.fullname),s.jsxs("div",{className:"sass-com-jg-contentInfo",children:[r.internaluser?s.jsx("a",{className:"sass-com-jg-fullName",href:`/${e.paths.autor}/${r.name}`,children:r.fullname}):s.jsx("p",{className:"sass-com-jg-fullName",children:r.fullname}),r.internaluser&&s.jsx("a",{className:"sass-com-jg-LearnMoreLink",href:`/${e.paths.autor}/${r.name}`,children:String(a.JournalistGroupLink??"")})]})]},`author-${r.firstname}`))})},Ft=e=>{if(!e||e.trim()==="")return e;const t=e.trim();return t.startsWith("http://")||t.startsWith("https://")?t:`https://${t}`},rc=async e=>{const t=e.img?await ie(e.img):"",a=Ft(e.social?.facebook??""),r=Ft(e.social?.instagram??""),n=Ft(e.social?.twitter??""),o=Ft(e.social?.linkedin??""),i=e.social&&(a||r||n||o);return s.jsx("section",{className:`sass-com-th-content ${e.className}`,children:s.jsxs("div",{className:`sass-com-th-contentInfo ${t?"":"sass-com-th-contentInfoWithoutImg"}`,children:[e.img&&s.jsx("div",{className:"sass-com-th-imageContainer sass-image-tag-wrapper",children:s.jsx("img",{fetchPriority:"low",loading:"lazy",className:"sass-com-th-imageStyled su-object-cover",src:t})}),s.jsx("h1",{className:"sass-com-th-name",children:e.tag}),e.description&&s.jsx("div",{className:"sass-com-th-description",dangerouslySetInnerHTML:{__html:e.description}}),e.url&&s.jsx("a",{className:"sass-com-th-urlTag",href:e.url,children:e.url}),i&&s.jsxs("div",{className:"sass-com-th-contenSocialNetwork",children:[a&&s.jsx("a",{href:a,target:"_blank",className:"sass-com-th-socialFacebookIcon sass-com-th-socialIconStroke",rel:"noreferrer",children:s.jsx(_t,{className:"sass-com-th-faceBookIcon",forceSVG:!0})}),r&&s.jsx("a",{href:r,target:"_blank",className:"sass-com-th-socialIconLink",rel:"noreferrer",children:s.jsx(Gt,{className:"sass-com-th-socialIcon",forceSVG:!0})}),n&&s.jsx("a",{href:n,target:"_blank",className:"sass-com-th-socialIconLink",rel:"noreferrer",children:s.jsx(Se,{className:"sass-com-th-socialIcon",forceSVG:!0})}),o&&s.jsx("a",{href:o,target:"_blank",className:"sass-com-th-socialIconLink sass-com-th-socialIconStroke",rel:"noreferrer",children:s.jsx(Ue,{className:"sass-com-th-socialIcon",forceSVG:!0})})]})]})})},ks=s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:"20px",viewBox:"0 -960 960 960",width:"20px",fill:"currentColor",children:s.jsx("path",{d:"M504-480 320-664l56-56 240 240-240 240-56-56 184-184Z"})});function nc({googleSourceShare:e,googleProfile:t,whatsAppShare:a,text:r}){return s.jsxs("div",{className:"sass-com-src-container",children:[e&&s.jsxs("a",{className:"sass-com-src-button",href:e,target:"_blank",rel:"noopener noreferrer",children:[s.jsx("img",{src:ne("/icono-google-plus-badge.svg"),loading:"lazy",fetchPriority:"low",alt:"Google Source",width:28,height:28}),r.sourceButtons?.googleSourceShare||"Añádenos como fuente preferida",ks]}),t&&s.jsxs("a",{className:"sass-com-src-button",href:t,target:"_blank",rel:"noopener noreferrer",children:[s.jsx("img",{src:ne("/icono-google-news-plus-badge.svg"),loading:"lazy",fetchPriority:"low",alt:"Google News",width:28,height:28}),r.sourceButtons?.googleProfile||"Google News",ks]}),a&&s.jsxs("a",{className:"sass-com-src-button",href:a,target:"_blank",rel:"noopener noreferrer",children:[s.jsx("img",{src:ne("/icono-whatsapp-plus-badge.svg"),loading:"lazy",fetchPriority:"low",alt:"WhatsApp",width:28,height:28}),r.sourceButtons?.whatsAppShare||"Sumate al canal de WhatsApp",ks]})]})}function oc(e){const{main:t,authors:a,info:r,preview:n,config:o,keywords:i,isVideo:l,isLarge:h,priorityHigh:c,share:d,overImage:u,isTitle:m,paths:g}=e,{CONFIG_videoClipUrl:f}=M(),p=o?.homepreview??"imagen",A=()=>{const w=e.videos?.[0]?.clip;return w?s.jsx("div",{className:"homeCardVideoClipContainer",children:s.jsx("video",{autoPlay:!0,loop:!0,muted:!0,playsInline:!0,width:"480",height:"535",children:s.jsx("source",{src:`${f}${w}`,type:"video/mp4"})})}):null},v=()=>{if(!e.videos)return null;const w=e.videos?.[0]?.code;return w?s.jsx("iframe",{className:"homeCardVideoIframeContainer",src:`https://www.youtube.com/embed/${w}`,frameBorder:"0",allowFullScreen:!0}):null},N=()=>{if(!e.videos)return null;const w=(e.videos??[]).find(H=>H.type==="video-embedded");if(!w?.code)return null;const P=/src\s*=\s*"([^"]+)"/.exec(w.code),V=P?P[1]:null;if(!V)return null;const Y=n.original?.url??n.sizes?.[0]?.url??"",F=De()??"",x=Y.startsWith("http")||Y.includes(F)||F===""?Y:F+Y;return s.jsx("iframe",{className:"homeCardEmbeddedIframeContainer",src:V,frameBorder:"0",allowFullScreen:!0,style:{"--thumbnail-url":`url(${x})`}})},S=()=>{const U=e.gallery??[];return U.length?s.jsx(Oe,{slot_id:"home-card_"+e.info.link.url,fullPageWidth:!0,visibleItems:1,pagination:!0,cardGap:0,children:U.map((P,V)=>{const Y=P?.url||P?.id||`gallery-${V}`;return s.jsx(O,{"aria-label":e.main?.title?.section,className:"homeCardImage",title:t?.title?.section,href:r?.link?.url,target:r?.link?.target,children:s.jsx(pe,{preview:P,isVideo:l,isLarge:h,priorityHigh:c})},Y)})}):null};let E=null;switch(p){case"fotogaleria":E=s.jsx(S,{});break;case"videoYouTube":E=s.jsx(v,{});break;case"videoEmbedded":E=s.jsx(N,{});break;case"clip":E=s.jsx(A,{});break;case"iframe":E=s.jsx("div",{className:"homeCardIframeContainer",dangerouslySetInnerHTML:{__html:e?.external?.iframe??""}});break;default:E=s.jsx(O,{"aria-label":e?.main?.title?.section,className:"homeCardImage",title:t?.title?.section,href:r?.link?.url,target:r?.link?.target,children:s.jsx(pe,{preview:n,isVideo:l,isLarge:h,priorityHigh:c})});break}return s.jsxs("section",{className:"homeCardContent",style:{...e.customSectionCardStyles},children:[s.jsx("div",{className:"homeCardContentWrapper",children:E}),s.jsx("div",{className:"homeCardNewsDescription",children:s.jsx(Me,{main:t,authors:a,info:r,preview:n,share:d,config:o,overImage:u,isTitle:m,paths:g,keywords:i})})]})}const Je=e=>{const{SHOW_TAG_BY_SECTION:t,SUB_PUBLICATION_PREFIX_IN_ROUTES:a}=M(),r=()=>{if(e?.config?.showtime&&e.config?.showauthor)return`${e?.authors[0]?.fullname} - ${Ce(e.info?.date?.modified)}`;if(e.config?.showauthor)return e?.authors[0]?.fullname;if(e?.config?.showtime)return Ce(e.info?.date?.modified)},n=()=>{if(t&&e.keywords?.tags?.length&&e.keywords.tags.length>0){const i=e.keywords.tags[0],l=i.name;return i.approved?s.jsxs("h3",{children:[" ",s.jsx(O,{"aria-label":l,className:"sass-bmd-sup-tagmx",block_subPublication:a?.tema,href:xe(i,e.paths),children:l})]}):s.jsx("div",{className:"sass-bmd-sup-tagmx",children:l})}else if(e.info?.section?.url)return s.jsx("h3",{children:s.jsx(O,{className:"sass-bmd-sup-tagmx",href:e?.info?.section?.url,children:e?.info?.section?.name})});return null},o=()=>{if(t&&e.keywords?.tags?.length&&e.keywords.tags.length>0){const i=e.keywords.tags[0],l=i.name;return i.approved?s.jsx("h3",{children:s.jsx(O,{"aria-label":l,className:"sass-bmd-sup-tag",block_subPublication:a?.tema,href:xe(i,e.paths),children:l})}):s.jsx("div",{className:"sass-bmd-sup-tag",children:l})}else if(e.info?.section?.url)return s.jsx("h3",{children:s.jsx(O,{className:"sass-bmd-sup-tag",href:e?.info?.section?.url,children:e?.info?.section?.name})});return null};return s.jsxs("section",{className:"sass-bmd-sup-content destacado-super-content",children:[s.jsx(O,{className:e.speculationPrerenderClass,href:e?.info?.link?.url,target:e?.info?.link?.target,style:{"--heightImageOverwrite":e.heightImageOverwrite?e.heightImageOverwrite:"51.8%","--heightImageOverwriteMobile":e.heightImageOverwriteMobile?e.heightImageOverwriteMobile:"491px","--fontSizeImageNewsTitleMobile":e.isVertical?"20px":"1.75rem","--lineHeightImageNewsTitleMobile":e.isVertical?"26px":"36px"},children:s.jsx(pe,{preview:e.preview,isLarge:!0,BackDropAuxHeigthMobile:"513px",priorityHigh:!0})}),s.jsxs("div",{className:"sass-bmd-sup-contentNews",style:{"--widthTextContent":e.textPosition==="start"?"100%":"80%"},children:[s.jsx(n,{}),s.jsxs("div",{style:{position:"relative"},children:[s.jsx(o,{}),s.jsx(O,{className:"sass-bmd-sup-linkTitle",href:e?.info?.link?.url,target:e?.info?.link?.target,children:s.jsx("h1",{className:"sass-bmd-sup-titular",style:{"--titlePosition":e.textPosition==="start"?"initial":"center"},children:e?.main?.title?.home})})]}),e.config?.showsubtitle&&s.jsx("div",{className:"sass-bmd-sup-description",dangerouslySetInnerHTML:{__html:e.main.subtitle.striped}}),e?.config?.showtime&&e.config?.showauthor&&s.jsx(s.Fragment,{children:e.authors[0]?.internaluser?s.jsx(O,{block_subPublication:a?.autor,href:`/${e.paths?.autor??"autor"}/${e?.authors[0]?.name}`,className:"sass-bmd-sup-correspondent",children:r()}):s.jsx("p",{className:"sass-bmd-sup-correspondentLink",children:r()})})]})]})},Yr=e=>{const{main:t,authors:a,info:r,preview:n,isVideo:o,config:i,itemReverseOrder:l,imageSize:h,showSuper:c,textPosition:d,heightImageOverwrite:u,heightImageOverwriteMobile:m}=e;return s.jsxs("section",{className:"su-grid su-w-full su-gap-8 sass-bmd-dd-content",children:[c?s.jsx("section",{style:{...e.customSectionCardStyles},children:s.jsx(Je,{main:t,authors:a,info:r,preview:n,isVideo:o,config:i,paths:e.paths,textPosition:d,heightImageOverwrite:u,heightImageOverwriteMobile:m,speculationPrerenderClass:e.speculationPrerenderClass})}):s.jsx(Ee,{...e,main:t,authors:a,info:r,preview:n,isVideo:o,config:i,speculationPrerenderClass:e.speculationPrerenderClass,priorityHigh:!0,isTitle:!0}),e.banners&&s.jsx(ge,{banners:e.banners,name:"main_block_"+(e.rightOnlyBanner?1:2)}),!e.rightOnlyBanner&&s.jsx(kr,{block:e.block,itemReverseOrder:l,priorityHigh:!0,imageSize:h,customNewsDescriptionStyles:e.customNewsDescriptionStyles,paths:e.paths,speculationPrerenderClass:e.speculationPrerenderClass})]})},ic=({content:e,customLargeSection:t,customSmallSection:a,paths:r,speculationPrerenderClass:n})=>{const o=e[0];return Array.isArray(e)&&e.length>0&&o&&s.jsxs("section",{className:"sass-bmd-dnh-content",children:[s.jsx("div",{style:t,className:"su-w-full sass-bmd-dnh-firstSection",children:s.jsx(Je,{...o,textPosition:"start",heightImageOverwrite:"512px",heightImageOverwriteMobile:"270px",paths:r,speculationPrerenderClass:n})}),s.jsx("div",{style:a,className:"su-flex su-flex-col su-gap-2 su-w-full su-h-auto su-md:gap-0 sass-bmd-dnh-secondSection",children:e.map((i,l)=>l>0&&I.createElement(Je,{...i,key:l,textPosition:"start",heightImageOverwrite:"256px",heightImageOverwriteMobile:"270px",paths:r,speculationPrerenderClass:n}))})]})},lc=({content:e,customLargeSection:t,customSlimSection:a,paths:r,speculationPrerenderClass:n})=>Array.isArray(e)&&e.length>0&&s.jsx("section",{className:"su-grid su-w-full su-gap-2 sass-bmd-dnv-content",children:e.map((o,i)=>i===0?s.jsx("div",{style:t,className:"su-w-full sass-bmd-dnv-firstSection",children:s.jsx(Je,{...o,isVertical:!0,textPosition:"start",heightImageOverwrite:"512px",heightImageOverwriteMobile:"270px",paths:r,speculationPrerenderClass:n})},i):s.jsx("section",{style:a,children:I.createElement(Je,{...o,key:i,isVertical:!0,textPosition:"start",heightImageOverwrite:"512px",heightImageOverwriteMobile:"270px",paths:r,speculationPrerenderClass:n})},i))}),$r=e=>{const{SHOW_TAG_BY_SECTION:t,SUB_PUBLICATION_PREFIX_IN_ROUTES:a}=M(),r=()=>{if(t&&e.mainNew.keywords?.tags?.length&&e.mainNew.keywords.tags.length>0){const n=e.mainNew.keywords.tags[0],o=n.name;return n.approved?s.jsx("h3",{className:"sass-com-bh-section",children:s.jsx(O,{"aria-label":o,className:"sass-com-bh-sectionDescription",block_subPublication:a?.tema,href:xe(n,e.paths),children:o})}):s.jsx("div",{className:"sass-com-bh-sectionDescription",children:o})}else if(e.mainNew.info?.section?.url)return s.jsx("h3",{className:"sass-com-bh-section",children:s.jsx(O,{className:"sass-com-bh-sectionDescription",href:e?.mainNew?.info?.section?.url,children:e?.mainNew?.info?.section?.name})});return null};return s.jsxs("div",{className:"sass-com-bh-content",children:[s.jsx(r,{}),s.jsx(O,{className:"sass-com-bh-title",href:e?.mainNew?.info?.link?.url,target:e?.mainNew?.info?.link?.target,children:e?.mainNew?.main?.title.home}),e?.mainNew?.main?.subtitle?.rendered&&s.jsx("p",{className:"sass-com-bh-subtitle",children:e?.mainNew?.main?.subtitle?.striped}),e.goTo&&s.jsx(O,{href:e.goTo.url,className:"sass-com-bh-linkStyled",children:e.goTo.description})]})},Kr=e=>{const{content:t,title:a,isVideo:r}=e;if(!t||!t[0]||t.length===0)return;const n=e.slot_id&&e.slot_id!=="Nota_1",o={...t[0],main:{...t[0].main,title:{...t[0].main.title,section:n?t[0].main.title.home:t[0].main.title.section}}},i=t.slice(1);return o&&i&&s.jsxs(ce,{title:a,titleUrl:e.titleUrl,children:[s.jsxs("div",{className:"su-flex su-flex-col-reverse su-overflow-hidden sass-bd-dn-headerSection",children:[s.jsx($r,{mainNew:o,goTo:e.goTo,paths:e.paths}),s.jsx(O,{className:"sass-bd-dn-headerSectionLink",href:o?.info?.link?.url,target:o?.info?.link?.target,children:s.jsx(pe,{preview:o.preview})})]}),s.jsxs("div",{className:"su-grid sass-bd-dn-newsContent",children:[s.jsx("div",{className:"banner-context",style:{order:1},children:e.banner}),Array.isArray(i)&&i.map((l,h)=>{const c={...l,main:{...l.main,title:{...l.main.title,section:n?l.main.title.home:l.main.title.section}}};return s.jsx("div",{style:{order:h},children:s.jsx(Ee,{...c,isVideo:r,paths:e.paths})},h)})]})]})},Vt=async e=>{const{data:t,autorIcon:a,speculationPrerenderClass:r}=e,{SUB_PUBLICATION_PREFIX_IN_ROUTES:n}=M(),o=()=>t?.config?.showtime?`${Ce(t.info?.date?.modified)}`:"",i=s.jsxs("div",{className:"sass-com-oc2-autorContent",children:[Array.isArray(t?.authors)&&Array.isArray(t?.authors[0]?.image?.sizes)&&t?.authors[0]?.image&&t?.authors[0]?.image?.sizes?.length>0?s.jsx("img",{fetchPriority:"low",loading:"lazy",className:"sass-com-oc2-image",src:await ie(t?.authors[0]?.image?.sizes[0]?.url||""),alt:t?.authors[0]?.fullname}):s.jsx("div",{className:"sass-com-oc2-contentIcon",children:a}),s.jsx("p",{className:"sass-com-oc2-autorName",children:ye(t?.authors[0]?.fullname??"Redacción",18)}),s.jsx("p",{className:"sass-com-oc2-time",children:o()})]});return s.jsxs("div",{className:"sass-com-oc2-content",children:[t?.authors[0]?.internaluser?s.jsx(O,{block_subPublication:n?.autor,href:t.authors[0]?.internaluser?`/${e.paths.autor}/${t?.authors[0]?.name}`:"#",children:i}):i,s.jsxs("div",{className:"sass-com-oc2-boxInformationContent",children:[s.jsx(O,{className:r?`${r} sass-com-oc2-title`:"sass-com-oc2-title",href:t?.info?.link?.url,target:t?.info?.link?.target,children:t?.main?.title?.home}),s.jsx("p",{className:"sass-com-oc2-comment",children:ye(t?.main?.subtitle?.striped||"")})]})]})};function cc(e){const t=new Array(e.length),a=e.length/2;for(let r=0;r<e.length;r++)r%2===0?t[Math.floor(r/2)]=e[r]:t[a+Math.floor(r/2)]=e[r];return t}const dc=e=>{const{isOpinion:t=!1}=e,a=o=>s.jsx("div",{className:"sass-bs-mo-boxPosition banner-context",style:{order:2},children:s.jsx("div",{className:"sass-bs-mo-bannerContentAux",children:s.jsx("div",{style:{position:"absolute",height:"270px",top:"0"},children:e.banner})})},o),r=[];for(let o=0;o<e.news.length;o++){const i=e.news[o];o===2&&r.push(a(o)),i&&r.push(s.jsx("div",{className:"sass-bs-mo-boxPosition",style:{order:o},children:s.jsx(Vt,{data:i,autorIcon:e.autorIcon,paths:e.paths})},`description-block-2-odd-${o}`))}const n=r.length%2===0?cc(r):r;return s.jsx("section",{style:e.customStyles,children:s.jsx(ce,{title:e.title,titleUrl:e.titleUrl,isOpinion:t,children:s.jsxs("div",{className:"sass-bs-mo-content",children:[s.jsx("div",{className:"sass-bs-mo-contentFlex",children:n}),s.jsx("div",{className:"sass-bs-mo-bannerContent",children:e.halfPageBanner})]})})})},hc=e=>{const{showTitle:t=!0}=e;return s.jsxs("div",{className:"sass-bs-eb1-content",children:[t&&s.jsx("p",{className:"sass-bs-eb1-title",children:"Editorial"}),s.jsx(Me,{...e,info:{...e.info,section:{name:"",slug:"",url:""}}})]})},uc=e=>{const{news:t}=e;return Array.isArray(t)&&s.jsxs("div",{className:"sass-bs-m2c-content",children:[s.jsxs("div",{className:"sass-bs-m2c-newsContent",children:[e.bannerArray&&e.bannerArray.map((a,r)=>s.jsx("div",{className:"sass-bs-m2c-boxPosition banner-context",style:{order:2+5*r},children:s.jsx("div",{className:"sass-bs-m2c-bannerContentAux",children:s.jsx("div",{style:{position:"absolute",height:"270px",top:"0"},children:a})})},r)),t.map((a,r)=>s.jsx("div",{className:"sass-bs-m2c-boxPosition",style:{order:r},children:s.jsx(Ee,{...a,share:e.share,paths:e.paths})},r))]}),s.jsx("div",{className:"sass-bs-m2c-bannerContent",children:e.halfPageBanner})]})},mc=e=>s.jsxs(s.Fragment,{children:[s.jsx(Pr,{className:"display-on-lower-900px",...e,termsLink:e.termsLink,submitFunction:e.submitFunction}),s.jsx(xr,{...e})]}),Jr=e=>{const{content:t}=e;if(!t||t.length===0)return;const a=i=>e.hasLines&&(i+1)%3!==0?"sass-bs-m3c-contentSeparator":"",r=[];let n=0,o=1;for(let i=0;i<t.length;i++){e.banners&&e.bannerPositionIndex?.includes(i)&&(r.push(s.jsx("section",{className:a(n),children:e.banners?.some(d=>d.key===`${e.slot_id}_${o}`)&&s.jsx(ge,{banners:e.banners,name:`${e.slot_id}_${o}`})},n)),n++,o++);const l=e.isVideo?He(t[i],e.showVideoTime,e.showVideosubtitle,e.showVideoAuthor):t[i];if(!l)continue;const h=e.slot_id&&e.slot_id!=="Nota_1",c={...l,main:{...l.main,title:{...l.main.title,section:h?l.main.title.home:l.main.title.section}}};r.push(s.jsx("section",{className:a(n),children:s.jsx(Ee,{...c,isVideo:e.isVideo,paths:e.paths,speculationPrerenderClass:e.speculationPrerender?.length&&n<e.speculationPrerender.length?e.speculationPrerender.class:void 0})},n)),n++}return r.length===2&&r.push(s.jsx("div",{},n)),s.jsx("div",{className:`${e.hasLines?"sass-bs-m3c-newsContentWithLines":"sass-bs-m3c-newsContentWithoutLines"} sass-bs-m3c-newsContent`,children:r})},Zr=e=>s.jsx(ce,{title:e.title,titleUrl:e.titleUrl,children:s.jsx(Jr,{content:e.content,paths:e.paths,slot_id:e.slot_id,hasLines:e.hasLines,bannerPositionIndex:e.bannerPositionIndex,isVideo:e.isVideo,banners:e.banners,showVideoTime:e.showVideoTime,showVideosubtitle:e.showVideosubtitle,speculationPrerender:e.speculationPrerender})}),Xr=e=>{const{content:t,title:a}=e;if(!(!t||t.length===0||!Array.isArray(t)))return s.jsx(ce,{title:a,titleUrl:e.titleUrl,children:s.jsx("div",{className:`su-grid su-justify-center sass-bd-m14-newsContent ${e.hasLines?"sass-bd-m14-contentSeparator":""}`,children:t?.map((r,n)=>{const o=e.slot_id&&e.slot_id!=="Nota_1",i={...r,main:{...r.main,title:{...r.main.title,section:o?r.main.title.home:r.main.title.section}}};return s.jsx("section",{children:s.jsx(Ee,{...i,share:e.share,paths:e.paths})},n)})})})},Rr=e=>{const{content:t,title:a}=e;if(!(!t||t.length===0))return s.jsx(ce,{title:a,titleUrl:e.titleUrl,children:s.jsx("div",{className:`su-grid su-justify-center sass-bd-m15-newsContent ${e.hasLines?"sass-bd-m15-contentSeparator":"sass-bd-m15-newsContentWhitoutLine"}`,children:t.map((r,n)=>{const o=e.slot_id&&e.slot_id!=="Nota_1",i={...r,main:{...r.main,title:{...r.main.title,section:o?r.main.title.home:r.main.title.section}}};return s.jsx("section",{children:s.jsx(Ee,{...i,share:e.share,paths:e.paths})},n)})})})},en=e=>{const{content:t,title:a,isVideo:r=!0}=e;if(!t||t.length===0)return;const n=t[0],o=e.slot_id&&e.slot_id!=="Nota_1",i=t.slice(1);return n&&i&&s.jsxs(ce,{title:a,titleUrl:e.titleUrl,children:[s.jsxs("div",{className:"sass-bd-dv-headerSection",children:[s.jsx($r,{goTo:e.goTo,mainNew:He(n),paths:e.paths}),s.jsx(O,{className:"sass-bd-dv-headerSectionLink",href:n?.info?.link.url,target:n?.info?.link.target,"aria-label":"Video",children:s.jsx(pe,{preview:{sizes:n?.main?.image.sizes,description:n?.main?.image.description},isVideo:r,isLarge:!0})})]}),s.jsxs("div",{className:"sass-bd-dv-newsContent",children:[s.jsx("div",{className:"banner-context",style:{order:1},children:e.banner}),Array.isArray(i)&&i.map((l,h)=>{const c=He(l),d={...c,main:{...c.main,title:{...c.main.title,section:o?c.main.title.home:c.main.title.section}}};return s.jsx("div",{style:{order:h},children:I.createElement(Ee,{...d,isVideo:r,key:h,paths:e.paths})},h)})]})]})},fc=async e=>{const{showNewsLikeTitle:t=!1}=e;return e&&e.info?s.jsxs("section",{className:"sass-com-sc6-content",style:{"--heightImageOverwrite":"100%"},children:[s.jsx(O,{className:"sass-com-sc6-linkImage",target:e?.info?.link?.target,title:e.main?.title?.section,href:t?e.info.link.url:e?.info?.section?.url,children:s.jsx(pe,{preview:e.preview})}),s.jsxs("div",{className:"sass-com-sc6-textContent",children:[s.jsx(O,{className:"sass-com-sc6-sectionDescription",target:e?.info?.link?.target,href:t?e.info.link.url:e?.info?.section?.url,children:(t?e?.main?.title?.section:e?.info?.section?.name)??""}),s.jsx("p",{className:"sass-com-sc6-dateText",children:Ce(e?.info?.date?.modified)})]})]}):null},tn=e=>{if(!e.content||e.content.length===0)return;const t=e.slot_id&&e.slot_id!=="Nota_1";return s.jsx(ce,{title:e.title,children:s.jsx("div",{className:`su-grid sass-bd-m13c-content ${e.hasLines?"sass-bd-m13c-contentSeparator":""}`,style:{gap:e.hasLines?"30px":"0px"},children:Array.isArray(e.content)&&e.content?.map((a,r)=>{const n={...a,main:{...a.main,title:{...a.main.title,section:t?a.main.title.home:a.main.title.section}}};return s.jsx("section",{className:e.hasLines?"sass-bd-m13-hasLinesBlock":"",children:I.createElement(fc,{...n,key:r,showNewsLikeTitle:e.showNewsLikeTitle})},r)})})})},sn=e=>{const{content:t,title:a,slot_id:r}=e,n=e.slot_id&&e.slot_id!=="Nota_1";return t&&t.length!==0&&s.jsx(ce,{title:a,titleUrl:e.titleUrl,children:s.jsx(Oe,{slot_id:r,cardWidth:e.cardWidth,cardGap:e.cardGap,visibleItems:e.visibleItems,pagination:e.pagination,children:t.map((o,i)=>{const l={...o,main:{...o.main,title:{...o.main.title,section:n?o.main.title.home:o.main.title.section}}};return s.jsx("div",{style:{"--heightImageOverwrite":e.heightImageOverwrite,"--heightImageOverwriteMobile":e.heightImageOverwriteMobile},children:s.jsx(dt,{...l,paths:e.paths})},i)})})})},gc=async e=>{const{SUB_PUBLICATION_PREFIX_IN_ROUTES:t}=M(),{data:a}=e;return s.jsxs("div",{className:"sass-com-opt1-content",children:[Array.isArray(a.authors)&&a?.authors[0]?.image?s.jsx("img",{fetchPriority:"low",loading:"lazy",className:"sass-com-opt1-imageStyled",src:await ie(a?.authors[0]?.image?.sizes[0]?.url||""),alt:a?.authors[0]?.fullname}):s.jsx("div",{className:"sass-com-opt1-contentIcon",children:e.autorIcon}),s.jsxs("div",{className:"sass-com-opt1-boxInformation",children:[s.jsx("p",{className:"sass-com-opt1-authorName",children:a?.authors[0]?.internaluser?s.jsx(O,{block_subPublication:t?.autor,href:a.authors[0]?.internaluser?`/${e.paths.autor}/${a?.authors[0]?.name}`:"#",children:a?.authors[0]?.fullname??"Redacción"}):a?.authors[0]?.fullname??"Redacción"}),s.jsx("p",{className:"sass-com-opt1-title",children:s.jsx(O,{className:"sass-com-opt1-linkStyled",href:a?.info?.link?.url,target:a?.info?.link?.target,children:ye(a?.main?.title?.home,40)})}),s.jsx("p",{className:"sass-com-opt1-comment",children:a?.main?.subtitle?.striped}),s.jsx("p",{className:"sass-com-opt1-dateText",children:de(a.info.date.modified).locale("es").format("DD [De] MMMM")})]})]})},an=e=>{const t=e.slot_id&&e.slot_id!=="Nota_1";return s.jsx(ce,{titleUrl:e.titleUrl,title:e.title,children:s.jsx(Oe,{slot_id:e.slot_id,cardGap:31,cardWidth:344,visibleItems:3,children:e.content&&e.content.map((a,r)=>{const n={...a,main:{...a.main,title:{...a.main.title,section:t?a.main.title.home:a.main.title.section}}};return s.jsx(gc,{autorIcon:e.autorIcon,data:n,paths:e.paths},r)})})})},Ls=e=>{const{item:t,option:a}=e;switch(a){case"ediciones":return s.jsx("div",{className:"sass-pg-sec-ItemCustomContent"});case"columnistasnacionales":return s.jsx("div",{className:"sass-pg-sec-ItemCustomContent",children:s.jsx(Vt,{data:t,autorIcon:e.autorIcon,paths:e.paths,speculationPrerenderClass:e.speculationPrerenderClass})});case"columnistaslocales":return s.jsx("div",{className:"sass-pg-sec-ItemCustomContent",children:s.jsx(Vt,{data:t,autorIcon:e.autorIcon,paths:e.paths,speculationPrerenderClass:e.speculationPrerenderClass})});case"columnistas":return s.jsx("div",{className:"sass-pg-sec-ItemCustomContent",children:s.jsx(Vt,{data:t,autorIcon:e.autorIcon,paths:e.paths,speculationPrerenderClass:e.speculationPrerenderClass})});default:return s.jsx("div",{className:"sass-pg-sec-ItemCustomContent",children:s.jsx(Ee,{...t,paths:e.paths,speculationPrerenderClass:e.speculationPrerenderClass})})}},pc=e=>{const{data:t,currentPage:a,banners:r,slug:n,ranking:o,pathname:i,texts:l={},custom_bannerPosition:h}=e,c=h||{3:1,8:2,13:3},d=c?Object.keys(c).map(u=>parseInt(u)):[];switch(e.option){case"op1":return s.jsx(jr,{ranking:o,readestTitle:l.readestTitle??"",paths:e.paths,readestCustomStyles:e.readestCustomStyles,bannerTop:s.jsx(ge,{banners:r??[],name:"right_1"}),banner:s.jsx(ge,{banners:r??[],name:"right_2"}),children:s.jsx("section",{className:"sass-pg-sec-content",children:t.length>0?s.jsx(Is,{className:["sass-pg-sec-newsContentSection","padding-0"].join(" "),paginatorComponent:s.jsx(Ts,{texts:l,pathname:i,query:"",currentPage:a,maxPages:e.PAGINATION_MAX_PAGES,showNext:!(t.length<e.NEWS_PER_SECTION)}),children:Array.isArray(t)&&t?.map((u,m)=>s.jsxs(I.Fragment,{children:[d.includes(m+1)&&s.jsx("div",{className:"sass-pg-sec-itemContent banner-context",children:s.jsx(ge,{banners:r??[],name:`block_2_${c[m+1]}`})}),s.jsx(Ls,{autorIcon:e.autorIcon,item:u,option:n,paths:e.paths,speculationPrerenderClass:e.speculationPrerender?.length&&m<e.speculationPrerender.length?e.speculationPrerender.class:void 0},m)]},m))}):s.jsx("div",{style:{width:"100%",display:"flex",flexDirection:"column",justifyContent:"center",gap:"2rem"},children:s.jsx("p",{style:{fontWeight:"var(--fw)",width:"100%",fontSize:"18px",lineHeight:"26px",textAlign:"center"},children:l.sectionNotResultMessage})})})});case"op2":return s.jsx(s.Fragment,{children:t.length>0?s.jsx(Is,{className:"padding-0",paginatorComponent:s.jsx(Ts,{texts:l,pathname:i,query:"",currentPage:a,maxPages:e.PAGINATION_MAX_PAGES,showNext:!(t.length<e.NEWS_PER_SECTION)}),children:Array.isArray(t)&&t?.map((u,m)=>s.jsxs(I.Fragment,{children:[d.includes(m+1)&&s.jsx("div",{className:"sass-pg-sec-ItemCustomContent",children:s.jsx(ge,{banners:r??[],name:`block_2_${c[m+1]}`})}),s.jsx(Ls,{autorIcon:e.autorIcon,item:u,option:n,paths:e.paths,speculationPrerenderClass:e.speculationPrerender?.length&&m<e.speculationPrerender.length?e.speculationPrerender.class:void 0},m)]},m))}):s.jsx("div",{style:{width:"100%",display:"flex",flexDirection:"column",justifyContent:"center",gap:"2rem"},children:s.jsx("p",{style:{fontWeight:"var(--fw)",width:"100%",fontSize:"18px",lineHeight:"26px",textAlign:"center"},children:l.sectionNotResultMessage})})});default:return s.jsx(s.Fragment,{})}},Ac=e=>{const{data:t}=e;return s.jsx("section",{className:"sass-pg-cont-content",children:t.map((a,r)=>s.jsx("div",{className:"sass-pg-cont-contactInfoContent",dangerouslySetInnerHTML:{__html:a.body.rendered}},r))})},wc=e=>s.jsxs("section",{className:"sass-com-lnoc-container",children:[s.jsx("div",{className:"sass-com-lnoc-note",children:e.children}),s.jsx("div",{className:"sass-com-lnoc-commercial",children:s.jsxs("div",{className:"sass-com-lnoc-commercialContent",children:[e.slug==="liveblogs"&&s.jsx(_r,{itemList:e.itemList}),e.bannerTop,s.jsx(Dt,{content:e.ranking,title:String(e.texts.readestTitle??""),paths:e.paths,customNewsDescriptionStyles:{"--news-description-title-size-desk":"16px","--news-description-title-line-height-desk":"22px","--news-description-title-size-mobile":"16px","--news-description-title-line-height-mobile":"22px",...e.readestCustomStyles}}),s.jsx("div",{style:{position:"sticky",top:"110px"},children:e.banner})]})}),s.jsx("div",{className:"sass-com-lnoc-complement",children:e.complement})]}),rn=async({newsformated:e,internal:t,commonServices:a})=>{if(!t)return null;try{const r=e?.preview?.sizes?.[0]?.scale??void 0,o=(await a.getNewsMultimedia({path:t,imagesizes:r}))?.data?.data;if(!Array.isArray(o)||o.length===0)return null;const i=o[0],h=(Array.isArray(i?.videos)?i.videos:[]).find(c=>c?.type==="video-embedded");return h?.code?s.jsxs("div",{className:"sass-pg-veh-content",children:[s.jsx("div",{dangerouslySetInnerHTML:{__html:typeof h.code=="string"?h.code:""}}),h?.title&&s.jsx("p",{className:"sass-pg-veh-title",children:h.title})]}):null}catch{return null}},nn=async({newsformated:e,internal:t,commonServices:a})=>{if(!t)return null;try{const r=e?.preview?.sizes?.[0]?.scale??void 0,o=(await a.getNewsMultimedia({path:t,imagesizes:r}))?.data?.data;if(!Array.isArray(o)||o.length===0)return null;const i=o[0],h=(Array.isArray(i?.videos)?i.videos:[]).find(c=>c?.type==="video-youtube");return!h?.code||typeof h.code!="string"?null:s.jsxs("div",{className:"sass-pg-vyh-content",children:[s.jsx("iframe",{className:"sass-pg-vyh-iframeStyled",src:`https://www.youtube.com/embed/${h.code}`,frameBorder:"0",allowFullScreen:!0}),h?.title&&s.jsx("p",{className:"sass-pg-vyh-title",children:h.title})]})}catch{return null}},on=async({newsformated:e,internal:t,commonServices:a})=>{if(!t)return null;try{const r=e?.preview?.sizes?.[0]?.scale??void 0,o=(await a.getNews({path:t,imagesizes:r}))?.data?.data;if(!Array.isArray(o)||o.length===0)return null;const l=o[0]?.external?.iframe;return typeof l!="string"||l.trim()===""?null:s.jsx("div",{className:"sass-pg-ifh-content",dangerouslySetInnerHTML:{__html:l}})}catch{return null}},Fe={videoEmbedded:"videoEmbedded",videoYouTube:"videoYouTube",iframe:"iframe",fotoGaleria:"fotogaleria"},bc={[Fe.videoEmbedded]:rn,[Fe.videoYouTube]:nn,[Fe.iframe]:on},vc=({news:e,commonServices:t})=>{const{config:a,info:r}=e,n=a.articlepreview,o=r.link.internal,i=n?bc[n]:null;return i?s.jsx("div",{className:"sass-pg-nap-content",children:s.jsx(i,{newsformated:e,internal:o,commonServices:t})}):null},ln=e=>{const t=e.option==="liveblogs",a=()=>{const r={...e.news[0],config:{zonehome:void 0,priorityhome:"",zonesection:"",prioritysection:",",homepreview:"",showcomments:!1,showtime:!1,showauthor:!1,showuppertitle:!1,showsubtitle:!0,showads:!1},main:{...e.news[0]?.main,title:{...e.news[0]?.main.title,section:e.news[0]?.main.title.article??""}},info:{...e.news[0]?.info,link:{url:void 0,target:void 0}}};switch(e.option){case"liveblogs":return s.jsx("header",{style:{"--news-description-title-size-desk":"38px","--news-description-title-size-mobile":"30px","--news-description-title-line-height-desk":"46px","--news-description-title-line-height-mobile":"38px","--news-image-height-desk":"600px","--news-image-height-mobile":"420px","--news-description-title-line-clamp":"none",...e.headerSectionStyles?.liveblogs},children:s.jsx(Dr,{...r,fontSizeSubTitle:"18px",lineHeightSubTitle:"28px"})});default:return s.jsx("header",{className:"sass-pg-news-contentHeader",style:{"--section-card-chip-padding":"0 0 0 6px","--uppertitle-display":"block","--news-description-title-size-desk":"38px","--news-description-title-size-mobile":"30px","--news-description-title-line-height-desk":"46px","--news-description-title-line-height-mobile":"38px","--news-description-content-gap":"0px","--news-description-title-line-clamp":"none",...e.headerSectionStyles?.common},children:s.jsx(Me,{...r,fontSizeSubTitle:"18px",lineHeightSubTitle:"28px",cutSubtitle:!1,colorSubTitle:"black",isTitle:!0,paths:e.paths,newsDescriptionSectionTag:e.newsDescriptionSectionTag})})}};return s.jsxs(s.Fragment,{children:[s.jsx(a,{}),s.jsx(Qe,{banners:e.banners,index:1,scope:e.scope}),!t&&e.commonServices&&s.jsx(vc,{news:e.news[0],commonServices:e.commonServices})]})},Cc=e=>s.jsx("section",{className:"su-w-full sass-com-ccard-content",id:e.id,children:e.children}),yc=async(e,t,a)=>{if(!a)return e;const r=/(<div[^>]*class=["'][^"']*ck-related-news[^"']*["'][^>]*>[\s\S]*?<span\b[^>]*data-src="([^"]+)"[^>]*>[\s\S]*?<\/span>[\s\S]*?<\/div>\s*<\/div>)/g,n=[...e.matchAll(r)];let o=e;for(const i of n){const l=i[1],h=i[2]??"";let c;if(a.forEach(w=>{Array.isArray(w)&&!c&&(c=w.find(U=>h.replaceAll("/","|").includes(U?.info.link.internal||"")))}),!c){const w=l.replace(/class=["']([^"']*ck-related-news[^"']*)["']/,'class="$1-empty"');o=o.replace(l,w);continue}const d=c.preview?.sizes?.[0],u=d?await ie(d.url):"",m=c.info.section?.url??"#",g=c.info.section?.name??"Sección",f=c.info.link?.url??"#",p=c.main?.title.article??"Título",A=(await Promise.all(c.preview?.sizes?.map(async w=>{const U=await ie(w.url);return w.width<200?`<source srcset="${U}" media="(width < 750px)"/>`:`<source srcset="${U}" media="(width >= 750px)"/>`})||[])).reduce((w,U)=>w+=U,""),v=l.match(/<span\b[^>]*data-src="[^"]+"[^>]*>[\s\S]*?<\/span>/),N=v?v[0]:"",S=`
|
|
150
150
|
<span data-src="${h}">
|
|
@@ -258,4 +258,4 @@ j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
|
|
|
258
258
|
<figcaption>${P}</figcaption>
|
|
259
259
|
</figure>
|
|
260
260
|
`}}catch(v){console.error("insertVideos error for",g,v),A=""}else A=m;r=u,a+=A,n.lastIndex=u}return a+=e.slice(r),a=Vc(a),a}async function Jc(e){const{news:t,banners:a,newsRelatedResponses:r,newsRelatedListResponses:n,slug:o,itemList:i,socials:l,getVideos:h,commonServices:c}=e,d=t?.info?.section?.slug,u=d?{type:"seccion",value:d}:{type:"general"};let m=t?.body?.rendered??"";m=m.replace(/<script[^>]*src=["']https:\/\/platform\.twitter\.com\/widgets\.js["'][^>]*><\/script>/gi,""),m=m.replace(/ /g,""),m=Wc(m,a,u),m=Yc(m),m=await Hc(m),m=await $c(m,e.texts,r),m=await Kc(m,h),m=Qc(m),m=Fc(m);const g=t.main.sources??[],{NEWS_JOURNALIST_COMPONENT:f,CONFIG_blockDefaultTwitterHydrator:p}=M(),A=t.config.articlepreview===Fe.fotoGaleria&&t.hascontent?.hasgalleryimages;return s.jsxs(s.Fragment,{children:[o!=="liveblogs"&&e.showHeaderImage?A?s.jsx(dn,{commonServices:c,newsformated:t,internal:t.info.link.internal}):s.jsx(qr,{preview:t.preview}):null,s.jsx(ge,{banners:a,name:"block_1",scope:u}),s.jsx("div",{className:"sass-pg-nrs-journalistArticleContent",children:f==="op1"?s.jsx(Pc,{autorIcon:e.autorIcon,socials:l,news:t,texts:e.texts,noteShare:e.noteShare,paths:e.paths}):f==="op2"?s.jsx(Dc,{autorIcon:e.autorIcon,socials:l,news:t,texts:e.texts,noteShare:e.noteShare,paths:e.paths}):s.jsx(jc,{autorIcon:e.autorIcon,socials:l,news:t,texts:e.texts,noteShare:e.noteShare,paths:e.paths})}),e.customSummary?e.customSummary:s.jsx(xc,{summary:t.main.summary}),s.jsx("main",{className:"sass-pg-nrs-contentNews",suppressHydrationWarning:!0,id:"content-news-section",dangerouslySetInnerHTML:{__html:m}}),s.jsx(Uc,{texts:e.texts,itemList:i,banners:a,slug:o,getVideos:h,newsRelatedListResponses:n??[],scope:u}),g.length>0&&s.jsxs("div",{className:"sass-pg-nrs-noteSource",children:[s.jsx(Oc,{}),s.jsx("p",{children:String(e.texts.noteSource??"")+(g.length===1?"":"s")+": "+g.map(v=>v.name).join(", ")})]}),!p&&t&&t.hascontent&&t.hascontent.hasembeddedtwitter&&s.jsx("script",{async:!0,defer:!0,src:"https://platform.twitter.com/widgets.js"})]})}const Zc=e=>{const{config:t}=e,a=t.articlepreview;return!![Fe.videoEmbedded,Fe.videoYouTube,Fe.iframe].includes(a)},hn=async e=>{const{texts:t,autorIcon:a,commonServices:r,slug:n,noteShare:o,paths:i,banners:l,news:h,newsRelatedResponses:c=[],newsRelatedListResponses:d=[],itemList:u=[],socials:m,getVideos:g,scope:f,customSummary:p}=e;if(h)return s.jsxs(s.Fragment,{children:[s.jsx(Jc,{texts:t,autorIcon:a,socials:m,news:h,banners:l,newsRelatedResponses:c,newsRelatedListResponses:d,itemList:u,slug:n,getVideos:g,noteShare:o,paths:i,showHeaderImage:!Zc(h),commonServices:r,customSummary:p}),s.jsx(ge,{banners:l??[],name:"block_3",scope:f})]})},Xc=async e=>{const{ranking:t=[],banners:a,autor:r=[],news:n=[],newsRelatedResponses:o=[],newsRelatedListResponses:i=[],itemList:l=[],socials:h,getVideos:c}=e;if(!n||!n[0])return;const d=n[0]?.info?.section?.slug,u=d?{type:"seccion",value:d}:{type:"general"};return s.jsxs(s.Fragment,{children:[s.jsx(ln,{option:e.slug,news:n,paths:e.paths,commonServices:e.commonServices,banners:e.banners,headerSectionStyles:e.headerSectionStyles,newsDescriptionSectionTag:e.newsDescriptionSectionTag,scope:u}),s.jsx(wc,{texts:e.texts,paths:e.paths,slug:e.slug,itemList:l,ranking:t,readestCustomStyles:e.readestCustomStyles,bannerTop:s.jsx(ge,{banners:a??[],name:"right_1",scope:u}),banner:s.jsx(ge,{banners:a??[],name:"right_2",scope:u}),complement:s.jsxs("div",{id:"comentarios",className:"sass-pg-news-complementContent",suppressHydrationWarning:!0,children:[r.length>0&&s.jsx(zr,{texts:e.texts,autorIcon:e.autorIcon,autor:r[0],paths:e.paths}),n[0].authors.length>1&&s.jsx(Wr,{news:n[0],autorIcon:e.autorIcon,paths:e.paths,texts:e.texts}),n[0]?.keywords?.tags&&n[0]?.keywords?.tags?.length>0&&s.jsx("div",{className:"sass-pg-news-tagContent sass-note-tags-content",children:s.jsx(Hr,{tags:n[0]?.keywords?.tags,paths:e.paths})})]}),children:s.jsx(hn,{texts:e.texts,autorIcon:e.autorIcon,socials:h,news:n[0],banners:a,newsRelatedResponses:o,newsRelatedListResponses:i,itemList:l,slug:e.slug,getVideos:c,noteShare:e.noteShare,paths:e.paths,commonServices:e.commonServices,scope:u,customSummary:e.customSummary})})]})},Rc=e=>s.jsx("svg",{width:"68",height:"68",viewBox:"0 0 68 68",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:s.jsx("g",{children:s.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"})})}),ed=e=>s.jsx("form",{className:"su-w-full su-flex su-justify-center su-gap-4 sass-pg-buscar-content",children:s.jsxs("div",{className:"sass-pg-buscar-inputStyled sass-buscar-form",children:[s.jsx("input",{className:"sass-pg-buscar-inputStyledTest",defaultValue:e.query,name:"query",placeholder:e.texts.searchKeyWord+"..."}),s.jsx("button",{className:"sass-pg-buscar-buttonStyled",type:"submit",children:s.jsx(Rc,{className:"sass-pg-buscar-searchStyled"})})]})}),Ze=({className:e})=>s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",width:"24",height:"24",viewBox:"0 0 32 32",className:e,children:s.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"})}),td={GoogleButtonText:"Continuar con Google",loginButtonText:"Iniciar sesión",noAccountText:"¿Ya tienes cuenta?",alreadyHasAccountText:"¿Ya tienes 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"},ht={email:{label:"Email"},given_name:{label:"Nombre"},family_name:{label:"Apellido"},password:{label:"Contraseña"},confirmPassword:{label:"Confirmar contraseña"}};function sd(e){return{email:{label:e?.email??ht.email.label,required:!0},given_name:{label:e?.given_name??ht.given_name.label,required:!0},family_name:{label:e?.family_name??ht.family_name.label,required:!0},password:{label:e?.password??ht.password.label,required:!0},confirmPassword:{label:e?.confirmPassword??ht.confirmPassword.label,required:!0}}}const Te=[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)],un=[{label:"La contraseña debe tener al menos 8 caracteres",test:Te[0]},{label:"Usa un número",test:Te[1]},{label:"Usa una letra minúscula",test:Te[2]},{label:"Usa una letra mayúscula",test:Te[3]},{label:"Usa un símbolo",test:Te[4]}];function ad({texts:e,API_ENV:t,termsAndConditionsUrl:a}){const r={...td,...e?.comentarios},n=I.useMemo(()=>sd(e?.comentarios?.registerForm),[e?.comentarios?.registerForm]),o=I.useMemo(()=>[{label:r.passwordRuleMinLength,test:Te[0]},{label:r.passwordRuleNumber,test:Te[1]},{label:r.passwordRuleLowercase,test:Te[2]},{label:r.passwordRuleUppercase,test:Te[3]},{label:r.passwordRuleSymbol,test:Te[4]}],[r.passwordRuleMinLength,r.passwordRuleNumber,r.passwordRuleLowercase,r.passwordRuleUppercase,r.passwordRuleSymbol]),[i,l]=I.useState({}),[h,c]=I.useState(!1),[d,u]=I.useState(!1),[m,g]=I.useState(null),[f,p]=I.useState("register"),A=async()=>{if(t.PUBLIC_ENV==="local"){await fetch("/api/auth/debug-login",{method:"GET",credentials:"include"});return}const w=encodeURIComponent(window.location.pathname);window.location.href=`/api/auth/login?redirect=${w}`},v=(w,U)=>{l(P=>({...P,[w]:U}))},N=async w=>{w.preventDefault(),g(null),u(!0);try{const U=Object.keys(n).filter(H=>!["username","password","confirmPassword"].includes(H)).map(H=>({Name:H,Value:i[H]}));if(U.some(H=>{if(!H.Value||H.Value.trim()==="")return!0}))return u(!1),g(r.errorCompleteFields);if(i.password!==i.confirmPassword){g(r.errorPasswordMismatch);return}const P=i.password||"";if(o.some(H=>!H.test(P))){g(r.errorPasswordInvalid);return}const Y=Math.floor(Date.now()/1e3);U.push({Name:"updated_at",Value:String(Y)});const F=t.PUBLIC_ENV==="local"?"token":await Js("comment_register",t.CAPTCHA_KEY??"");if(!F)throw new Error("Captcha token no generado");const x=await fetch("/api/auth/create-user",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:i.email,password:i.password,userAttributes:U,token:F})});if(!x.ok){const H=await x.json().catch(()=>({}));if(H.code==="UsernameExistsException"){await fetch("/api/auth/resend-code",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:i.email})}),p("confirm");return}throw new Error(H?.error||"Error al crear usuario")}p("confirm")}catch(U){console.log(U),g(U?.message||U?.error||r.errorUnexpected)}finally{u(!1)}},S=async w=>{if(w.preventDefault(),!i.confirmationCode){g(r.errorVerificationCodeRequired);return}g(null),u(!0);try{const U=await fetch("/api/auth/confirm-user",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:i.email,code:i.confirmationCode})});if(!U.ok){const P=await U.json().catch(()=>({}));throw new Error(P?.error||"Error al confirmar usuario")}p("success")}catch(U){g(U?.message||r.errorUnexpected)}finally{u(!1)}},E=i.password||"";return s.jsxs(s.Fragment,{children:[f==="register"&&s.jsxs(s.Fragment,{children:[s.jsxs("button",{onClick:A,className:"sass-pg-login-google",children:[s.jsx("img",{src:"https://www.gstatic.com/firebasejs/ui/2.0.0/images/auth/google.svg",alt:"",className:"sass-pg-login-googleIcon"}),s.jsx("span",{children:r.GoogleButtonText})]}),s.jsx("div",{className:"sass-pg-login-divider",children:s.jsx("span",{children:"o"})}),s.jsxs("form",{onSubmit:N,className:"sass-pg-login-form","data-error":m?"true":"false",children:[s.jsx("ul",{className:"sass-pg-login-formUl",children:Object.entries(n).map(([w,{label:U}])=>s.jsxs("div",{className:"sass-pg-login-field",children:[s.jsx("label",{className:"sass-pg-login-label",children:U}),s.jsx("input",{type:w.toLowerCase().includes("password")?h?"text":"password":w==="birthdate"?"date":w==="email"?"email":w==="phone_number"?"tel":"text",name:w,value:i[w]||"",onChange:P=>v(w,P.target.value),className:"sass-pg-login-input",placeholder:""}),w==="password"&&s.jsx("div",{className:"sass-pg-login-passwordChecker",children:o.map((P,V)=>{const Y=P.test(E);return s.jsxs("div",{className:Y?"sass-pg-login-valid":"sass-pg-login-invalid",children:[s.jsx("div",{children:Y?"✔":"○"}),s.jsx("div",{children:P.label})]},V)})}),w==="confirmPassword"&&s.jsxs("div",{className:"sass-pg-login-checkboxRow",children:[s.jsx("input",{id:"showPasswordRegister",type:"checkbox",checked:h,onChange:P=>c(P.target.checked)}),s.jsx("label",{htmlFor:"showPasswordRegister",className:"sass-pg-login-checkboxLabel",children:r.showPasswordsLabel})]})]},w))}),m&&s.jsx("p",{className:"sass-pg-login-error",children:m}),s.jsxs("p",{className:"sass-pg-login-terms",children:[r.termsPrefix," ",s.jsx("a",{href:a??"/pages/terminos-y-condiciones",target:"_blank",children:r.termsLinkText})," ",r.termsSuffix]}),s.jsx("button",{type:"submit",className:"sass-pg-login-primary",disabled:d,children:d?s.jsx(Ze,{}):r.createAccountButton})]})]}),f==="confirm"&&s.jsxs("form",{onSubmit:S,className:"sass-pg-login-form","data-error":m?"true":"false",children:[s.jsxs("div",{className:"sass-pg-login-field",children:[s.jsx("label",{className:"sass-pg-login-label",children:r.verificationCodeLabel}),s.jsx("input",{type:"text",name:"confirmationCode",value:i.confirmationCode||"",onChange:w=>v("confirmationCode",w.target.value),className:"sass-pg-login-input",required:!0})]}),m&&s.jsx("p",{className:"sass-pg-login-error",children:m}),s.jsx("button",{type:"submit",className:"sass-pg-login-primary",disabled:d,children:d?s.jsx(Ze,{}):r.confirmAccountButton}),s.jsxs("p",{className:"sass-pg-login-switch",children:[r.alreadyConfirmedText,s.jsx("a",{className:"sass-pg-login-toRegister",href:"./login",children:r.loginButtonText})]})]}),f==="success"&&s.jsxs("form",{className:"sass-pg-login-form",children:[s.jsxs("div",{className:"sass-pg-login-successContainer",children:[s.jsx("div",{className:"sass-pg-login-thumbsUp",children:s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:132,height:120,fill:"none",children:s.jsx("path",{fill:"currentColor",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"})})}),s.jsxs("div",{className:"sass-pg-login-successMessage",children:[s.jsx("p",{children:r.successTitle}),s.jsx("p",{children:r.successMessage})]})]}),s.jsx("a",{href:"./login",type:"submit",className:"sass-pg-login-primary",children:r.loginButtonText})]}),f==="register"&&s.jsxs("p",{className:"sass-pg-login-switch",children:[r.alreadyHasAccountText,s.jsx("a",{className:"sass-pg-login-toRegister",href:"./login",children:r.loginButtonText})]})]})}const rd={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?",alreadyHasAccountText:"¿Ya 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 nd({API_ENV:e,texts:t}){const a={...rd,...t?.comentarios},[r,n]=I.useState("login"),[o,i]=I.useState(""),[l,h]=I.useState(""),[c,d]=I.useState(""),[u,m]=I.useState(""),[g,f]=I.useState(""),[p,A]=I.useState(!1),[v,N]=I.useState(!1),[S,E]=I.useState(null);I.useEffect(()=>{if(typeof window>"u")return;window.location.hash.includes("forgot")&&r==="login"&&n("forgot"),r==="login"&&U()});const w=x=>document.cookie.split("; ").find(H=>H.startsWith(x+"="))?.split("=")[1],U=async()=>{if(document.cookie.search(e.COGNITO_AUTH_PREFIX+"IS_AUTH=true")!==-1){if(!window)return;const x=w("redirect_after_login_1");console.log("Redirect path after login:",x,document.cookie,document.cookie.search("redirect_after_login_1=")!==-1),x&&x!==""?(window.location.pathname=x,window.location.hash="comentarios"):window.location.pathname="/auth/success"}},P=async()=>{if(e.PUBLIC_ENV==="local"){await fetch("/api/auth/debug-login",{method:"GET",credentials:"include"});return}let x="/auth/login";const H=w("redirect_after_login_1");H&&H!==""&&(x=H),window.location.href=`/api/auth/login?redirect=${x}`},V=async x=>{if(!v){if(x.preventDefault(),o===""||l===""){E("Complete todos los campos");return}E(null),N(!0);try{const H=e.PUBLIC_ENV==="local"?"token":await Js("comment_login",e.CAPTCHA_KEY||"");if(!H)throw new Error("Captcha token no generado");const te=await fetch("/api/auth/login-password",{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({email:o,password:l,token:H})});if(!te.ok){const _=await te.json().catch(()=>({}));throw new Error(_?.error||"Ha ocurrido un error")}await U();return}catch(H){E(H?.message||"Error inesperado")}finally{N(!1)}}},Y=async x=>{if(!v){x.preventDefault(),E(null),N(!0);try{const H=await fetch("/api/auth/forgot-password",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:o})});if(!H.ok){const te=await H.json().catch(()=>({}));throw new Error(te?.error||"Error al enviar código")}h(""),n("changePassword")}catch(H){E(H?.message||"Error inesperado")}finally{N(!1)}}},F=async x=>{if(v)return;if(x.preventDefault(),u!==g){E("Las contraseñas no coinciden");return}if(un.some(te=>!te.test(u))){E("La contraseña no cumple con los requisitos");return}E(null),N(!0);try{const te=await fetch("/api/auth/confirm-forgot-password",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:o,code:c,newPassword:u})});if(!te.ok){const _=await te.json().catch(()=>({}));throw new Error(_?.error||"Error al cambiar contraseña")}n("feedback")}catch(te){E(te?.message||"Error inesperado")}finally{N(!1)}};return s.jsxs(s.Fragment,{children:[r==="login"&&s.jsx(od,{email:o,password:l,showPassword:p,loading:v,error:S,setEmail:i,setPassword:h,setShowPassword:A,onSubmit:V,onForgot:()=>{E(null),n("forgot")},handleGoogleLogin:P,t:a}),r==="forgot"&&s.jsx(id,{email:o,setEmail:i,loading:v,error:S,onSubmit:Y,onBack:()=>{E(null),n("login")},t:a}),r==="changePassword"&&s.jsx(cd,{email:o,confirmationCode:c,newPassword:u,confirmNewPassword:g,showPassword:p,loading:v,error:S,setConfirmationCode:d,setNewPassword:m,setConfirmNewPassword:f,setShowPassword:A,onSubmit:F,onBack:()=>{E(null),n("forgot")},t:a}),r==="feedback"&&s.jsx(dd,{onBackToLogin:()=>{E(null),n("login")},t:a})]})}function od({email:e,password:t,showPassword:a,loading:r,error:n,setEmail:o,setPassword:i,setShowPassword:l,onSubmit:h,onForgot:c,handleGoogleLogin:d,t:u}){return s.jsxs(s.Fragment,{children:[s.jsxs("button",{onClick:d,className:"sass-pg-login-google",children:[s.jsx("img",{src:"https://www.gstatic.com/firebasejs/ui/2.0.0/images/auth/google.svg",alt:"",className:"sass-pg-login-googleIcon"}),s.jsx("span",{children:u.GoogleButtonText})]}),s.jsx("div",{className:"sass-pg-login-divider",children:s.jsx("span",{children:"o"})}),s.jsxs("form",{onSubmit:h,className:"sass-pg-login-form","data-error":n?"true":"false",children:[s.jsxs("div",{className:"sass-pg-login-field",children:[s.jsx("label",{className:"sass-pg-login-label",children:u.email}),s.jsx("input",{type:"email",value:e,onChange:m=>o(m.target.value),className:"sass-pg-login-input",placeholder:""})]}),s.jsxs("div",{className:"sass-pg-login-field",children:[s.jsx("label",{className:"sass-pg-login-label",children:u.password}),s.jsx("input",{type:a?"text":"password",value:t,onChange:m=>i(m.target.value),className:"sass-pg-login-input",placeholder:""}),s.jsxs("div",{className:"sass-pg-login-checkboxRow",children:[s.jsx("input",{id:"showPasswordLogin",type:"checkbox",checked:a,onChange:m=>l(m.target.checked)}),s.jsx("label",{htmlFor:"showPasswordLogin",className:"sass-pg-login-checkboxLabel",children:u.showPassword})]})]}),n&&s.jsx("p",{className:"sass-pg-login-error",children:n}),s.jsx("button",{type:"submit",className:"sass-pg-login-primary",disabled:r,children:r?s.jsx(Ze,{className:"sass-pg-login-spin"}):u.loginButtonText})]}),s.jsxs("p",{className:"sass-pg-login-switch",children:[u.noAccountText,s.jsx("a",{className:"sass-pg-login-toRegister",href:"./register",children:u.registerButtonText})]}),s.jsx("button",{type:"button",className:"sass-pg-login-forgotPassword",onClick:c,children:u.forgotPasswordText})]})}function id({email:e,setEmail:t,loading:a,error:r,onSubmit:n,onBack:o,t:i}){return s.jsxs("form",{onSubmit:n,className:"sass-pg-login-form","data-error":r?"true":"false",children:[s.jsx("p",{className:"sass-pg-login-message",children:i.forgotMessage}),s.jsxs("div",{className:"sass-pg-login-field",children:[s.jsx("label",{className:"sass-pg-login-label",children:i.email}),s.jsx("input",{type:"email",value:e,name:"email",onChange:l=>t(l.target.value),className:"sass-pg-login-input",placeholder:""})]}),r&&s.jsx("p",{className:"sass-pg-login-error",children:r}),s.jsx("button",{type:"submit",className:"sass-pg-login-primary",disabled:a,children:a?s.jsx(Ze,{}):i.sendCodeButton}),s.jsx("p",{className:"sass-pg-login-switch",style:{margin:"0 0 16px"},children:s.jsx("button",{type:"button",onClick:o,children:i.backButton})})]})}function ld(e){const[t,a]=e.split("@");if(!t||!a)return e;let r="";t.length<=2?r=t[0]+"*":r=t[0]+"*".repeat(t.length-2)+t[t.length-1];const n=a.lastIndexOf(".");if(n===-1)return`${r}@${a}`;const o=a.slice(0,n),i=a.slice(n);let l="";return o.length<=2?l=o[0]+"*":l=o[0]+"*".repeat(o.length-2)+o[o.length-1],`${r}@${l}${i}`}function cd({email:e,confirmationCode:t,newPassword:a,confirmNewPassword:r,showPassword:n,loading:o,error:i,setConfirmationCode:l,setNewPassword:h,setConfirmNewPassword:c,setShowPassword:d,onSubmit:u,onBack:m,t:g}){const f=g.changePasswordMessage.replace("{{email}}",ld(e));return s.jsxs("form",{onSubmit:u,className:"sass-pg-login-form","data-error":i?"true":"false",children:[s.jsx("p",{className:"sass-pg-login-message",children:f}),s.jsxs("ul",{className:"sass-pg-login-formUl",children:[s.jsxs("div",{className:"sass-pg-login-field",children:[s.jsx("label",{className:"sass-pg-login-label",children:g.verificationCodeLabel}),s.jsx("input",{type:"text",value:t,onChange:p=>l(p.target.value),className:"sass-pg-login-input",placeholder:""})]}),s.jsxs("div",{className:"sass-pg-login-field",children:[s.jsx("label",{className:"sass-pg-login-label",children:g.newPasswordLabel}),s.jsx("input",{type:n?"text":"password",value:a,onChange:p=>h(p.target.value),className:"sass-pg-login-input",placeholder:"",name:"password"}),s.jsx("div",{className:"sass-pg-login-passwordChecker",children:un.map((p,A)=>{const v=p.test(a);return s.jsxs("div",{className:v?"sass-pg-login-valid":"sass-pg-login-invalid",children:[s.jsx("div",{children:v?"✔":"○"}),s.jsx("div",{children:p.label})]},A)})})]}),s.jsxs("div",{className:"sass-pg-login-field",children:[s.jsx("label",{className:"sass-pg-login-label",children:g.confirmPasswordLabel}),s.jsx("input",{type:n?"text":"password",value:r,onChange:p=>c(p.target.value),className:"sass-pg-login-input",placeholder:""}),s.jsxs("div",{className:"sass-pg-login-checkboxRow",children:[s.jsx("input",{id:"showPasswordForgot",type:"checkbox",checked:n,onChange:p=>d(p.target.checked)}),s.jsx("label",{htmlFor:"showPasswordForgot",className:"sass-pg-login-checkboxLabel",children:g.showPasswordsLabel})]})]})]}),i&&s.jsx("p",{className:"sass-pg-login-error",children:i}),s.jsx("button",{type:"submit",className:"sass-pg-login-primary",style:{maxWidth:o?"revert-layer":"fit-content"},disabled:o,children:o?s.jsx(Ze,{}):g.changePasswordButton}),s.jsx("p",{className:"sass-pg-login-switch",children:s.jsx("button",{type:"button",onClick:m,children:g.backButton})})]})}function dd({onBackToLogin:e,t}){return s.jsxs("div",{className:"sass-pg-login-form",children:[s.jsx("p",{className:"sass-pg-login-success",children:t.feedbackSuccessMessage}),s.jsx("button",{type:"submit",className:"sass-pg-login-primary",onClick:e,children:t.loginButtonText})]})}function hd({containerId:e,containerId2:t}){return I.useEffect(()=>{try{let a=function(){const d=window.twttr;d?.widgets?d.widgets.load(r):c<10?(c++,requestAnimationFrame(a)):console.warn("No se pudo cargar widgets de Twitter")};const r=document.getElementById(e),n=document.getElementById(t);if(!r&&!n)return;const o=r?.querySelectorAll("script[src]")??[],i=n?.querySelectorAll("script[src]")??[];[...o,...i].forEach(d=>{const u=document.createElement("script");Array.from(d.attributes).forEach(m=>{u.setAttribute(m.name,m.value)}),d.replaceWith(u)});const h=document.querySelectorAll('script[src*="platform.twitter.com/widgets.js"]');if(h)for(let d=0;d<h.length;d++)h[d]?.remove();let c=0;if(document.querySelector('script[src*="platform.twitter.com/widgets.js"]'))a();else{const d=document.createElement("script");d.src="https://platform.twitter.com/widgets.js",d.async=!0,d.onload=a,document.body.appendChild(d)}}catch(a){console.warn("Error al procesar embeds de Twitter",a)}},[e]),null}const ud=({currentNew:e})=>e&&e?.hascontent?.hasembeddedtwitter&&s.jsx("script",{src:"https://platform.twitter.com/widgets.js"}),md=e=>{const{isVideo:t=!1,isLarge:a=!1,hasShadow:r=!1,BackDropAuxHeigthMobile:n}=e,o=ys(),i=I.useMemo(()=>{const m=e?.preview?.sizes;if(m&&Array.isArray(m)&&m.length>0)return m;const g=e?.preview?.original;return g?.url?[{url:g.url,width:g.width||0,height:g.height||0}]:[]},[e?.preview?.sizes,e?.preview?.original]);if(!i.length||!i[0]?.url||i[0]?.url==="")return s.jsx("div",{className:"sass-com-img-imagePlaceholder"});const{PUBLIC_API_HOST:l="",PUBLIC_ASSETS_URL:h}=e.API_ENV,c=i[0]?.url,d=h&&h!=="false"?h:l,u=c?.startsWith("http")||c?.includes(d)?c:d+c;return s.jsx("figure",{className:"sass-com-img-figure",children:s.jsxs("span",{className:"sass-com-img-backdrop",children:[s.jsx("span",{className:"sass-com-img-backdropAux",style:{height:n||"56.25%"}}),s.jsxs("picture",{children:[s.jsx("img",{fetchPriority:"low",loading:"lazy",className:"sass-com-img-imageStyled",alt:e.preview?.description||"",src:u,style:{boxShadow:r?"0px 4px 8px 0px #00000033":"0px"}}),t&&s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"sass-com-img-boxPlayIcon",style:{height:a?"40%":"72px"}}),s.jsx(o,{className:"sass-com-img-playStyled",style:{width:a?"3rem":"27px",height:a?"3rem":"27px",marginBottom:a?"18px":".5rem",marginLeft:a?"30px":".5rem"}})]})]})]})})},fd=e=>s.jsx("svg",{width:"41",height:"33",viewBox:"0 0 41 33",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:s.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"})}),mn={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},gd=({section:e,internalPath:t,banner:a,isVisible:r=!1,stylesConfig:n,API_ENV:o,fetchConfig:i,paths:l})=>{const h=o.FETCH_SIZE_MORE_NEWS??6,[c,d]=I.useState({data:Array.from({length:h},()=>mn)}),[u,m]=I.useState(!1),g=I.useCallback(async()=>{if(!t)return;const A=new URLSearchParams({section:e,currentNewsLink:t}),v=await fetch(`/api/get-more-news?${A}`);if(!v.ok)throw new Error(`HTTP error! status: ${v.status}`);return await v.json()},[e,t]),f=I.useCallback(async()=>{const{PUBLIC_API_FRONT:A,PUBLIC_X_SECURITY_TOKEN:v,PUBLIC_API_PATH_VERSION:N,PUBLIC_PUBLICATION_ID:S}=o;if(!A||!v||!S||!N)throw new Error("Missing required environment variables");const E=await re.get(`${A}${N}/news-list-section`,{params:{size:h+1,newstype:i.newsType,section:e,imagesizes:i.imgSizes,publication:parseInt(S)},headers:{"x-api-token":v,"Content-Type":"application/json"}});return{...E.data,data:E.data.data.filter(w=>w.info.link.internal!==t)}},[e,t,o]),p=I.useCallback(async()=>{if(!(u||!t)){m(!0);try{let A;o.PUBLIC_ENV!=="prod"?A=await g():A=await f(),d({...A,data:A.data.slice(0,h)})}catch(A){console.error("[/api/get-more-news] Error:",A.message),d(void 0)}}},[u,t,o.PUBLIC_ENV,g,f]);return I.useEffect(()=>{r&&p()},[r,p]),!c?.data||c.data.length===0?null:s.jsx(pd,{news:c.data,title:"Más Noticias",...n["Modulo 1x3 Client"]??n["Modulo 1x3"],hasLines:!0,showSubtitle:!0,rounded:!0,banner:a,API_ENV:o,paths:l,isVisible:r})},pd=e=>{const{news:t,hasLines:a=!1,API_ENV:r}=e,n=o=>a&&(o+1)%3!==0?"sass-bd-m13-contentSeparator":"";return s.jsx("div",{className:"su-grid su-justify-center sass-bd-m13-newsContent",style:{gap:a?"30px":"20px","--gridTemplateModlule":a?"repeat(auto-fit, 343px);":"repeat(auto-fit, 380px);"},children:t.map((o,i)=>{const{main:l,authors:h,info:c,preview:d,isVideo:u=!1,config:m,overImage:g="default",isTitle:f=!1,isLarge:p=!1,keywords:A}=o;return console.log(o.info.link.url),s.jsx("div",{className:n(i),style:{order:i},children:s.jsxs("section",{className:"sass-com-sc1-content",children:[s.jsx(O,{title:l?.title?.section,href:c?.link?.url??"invalidUrl","aria-label":l?.title?.section??"nota",target:c?.link?.target,children:s.jsx(md,{isVisible:e.isVisible,preview:d,rounded:e.rounded,isVideo:u,isLarge:p,API_ENV:e.API_ENV,getImageUrl:e.getImageUrl})}),s.jsx("div",{className:"sass-com-sc1-newsDescription",children:s.jsx(Ad,{main:l,SHOW_TAG_BY_SECTION:r.SHOW_TAG_BY_SECTION,authors:h,info:c,preview:d,share:e.share,config:m,overImage:g,isTitle:f,paths:e.paths,isVisible:e.isVisible,DATE_CONFIG:e.API_ENV,keywords:A,API_ENV:r})})]})},i)})})},Ad=e=>{const{share:t=!1,cutSubtitle:a=!0,SHOW_TAG_BY_SECTION:r,keywords:n,info:o}=e,l=(()=>{if(!e?.authors||e.authors.length===0)return"";const d=e.authors[0],u=Ce(e.info?.date?.modified,e.DATE_CONFIG);return d&&e?.config?.showtime&&e.config?.showautho&&d.fullname?`${d.fullname} - ${u}`:d&&d.fullname&&e.config?.showauthor?d.fullname:(e?.config?.showtime,"")})(),h=()=>e.main.uppertitle?s.jsx("p",{className:"sass-com-nd-uppertitle",title:e.main.uppertitle,children:e.main.uppertitle}):null,c=()=>{if(r&&n?.tags?.length&&n.tags.length>0){const d=n.tags[0],u=d.name;return s.jsxs("h3",{className:"sass-com-nd-sectionDescriptionContainer",children:[d.approved?s.jsx(O,{"aria-label":u,block_subPublication:e.DATE_CONFIG?.SUB_PUBLICATION_PREFIX_IN_ROUTES?.tema,className:"sass-com-nd-sectionDescription",href:xe(d,e.paths),children:u}):s.jsx("div",{className:"sass-com-nd-sectionDescription",children:u}),h()]})}else if(o?.section?.url){const d=o.section.name;return s.jsxs("h3",{className:"sass-com-nd-sectionDescriptionContainer",children:[s.jsx(O,{"aria-label":d,className:"sass-com-nd-sectionDescription",href:o.section.url,children:d}),h()]})}return null};return s.jsxs("div",{className:"sass-com-nd-boxInformation",children:[t&&s.jsx(fd,{className:"sass-com-nd-dotStyles"}),s.jsx(c,{}),s.jsx("h2",{className:"sass-com-nd-articule",children:s.jsx(O,{className:"sass-com-nd-linkStyled",style:{"--isLink":e?.info?.link?.url?"underline":"none"},"aria-label":e.main?.title?.section??"nota",href:e?.info?.link?.url??"invalidUrl",target:e?.info?.link?.target,children:e.main?.title?.section})}),e.config?.showsubtitle&&e.main?.subtitle?.striped&&s.jsx("p",{className:"sass-com-nd-description",style:{"--fontSizeSubTitle":e.fontSizeSubTitle,"--lineHeightSubTitle":e.lineHeightSubTitle,"--colorSubTitle":e.colorSubTitle},children:a?ye(e.main?.subtitle?.striped):e.main?.subtitle?.striped}),(e?.config?.showtime||e.config?.showauthor)&&l&&s.jsx(s.Fragment,{children:e.authors?.[0]?.internaluser?s.jsx(O,{block_subPublication:e.DATE_CONFIG?.SUB_PUBLICATION_PREFIX_IN_ROUTES?.autor,className:"sass-com-nd-correspondentLink",href:`/${e.paths.autor}/${e.authors[0].name}`,children:l}):s.jsx("div",{className:"sass-com-nd-correspondent",children:l})})]})},wd={userGreeting:"Hola {{name}}!",logoutButton:"Cerrar Sesion"},bd=({user:e,handleLogout:t,message:a,texts:r})=>{const n={...wd,...r?.comentarios},o=()=>{const h=document.querySelector(".user-actions-options");h&&h.classList.toggle("show")},i=e.firstname??"Usuario",l=n.userGreeting.replace("{{name}}",i);return s.jsx("div",{className:"comment-item",children:s.jsxs("div",{style:{display:"flex",gap:"14px"},children:[e&&e.picture&&e.picture!==""?s.jsx("img",{className:"comment-avatar-img su-h-full",src:e.picture,alt:e.username}):s.jsx("div",{className:"comment-avatar su-flex-center su-rounded-full su-font-bold su-overflow-hidden",children:i.charAt(0).toUpperCase()}),s.jsxs("div",{style:{flex:1},children:[s.jsxs("div",{className:"comment-header su-flex su-items-center su-relative su-flex-wrap",children:[s.jsx("span",{className:"comment-username su-font-bold su-truncate user-welcome",children:l}),s.jsx("div",{className:"user-actions-options su-hidden su-absolute su-p-2",children:s.jsx("button",{className:"su-bg-transparent su-border-none",onClick:()=>{t()},children:n.logoutButton})}),s.jsx("button",{className:"user-actions-span",onClick:o,children:s.jsx(Qt,{width:13,height:13,fill:"black"})})]}),s.jsx("p",{className:"comment-text su-font-normal",children:a})]})]})})},fn=async(e,t)=>{if(!e)return!1;const{CAPTCHA_PROJECT:a,CAPTCHA_KEY_V2:r,COMMENTS_CAPTCHA_API_KEY:n}=t;try{const o=a,i=r,c=await(await fetch(`https://recaptchaenterprise.googleapis.com/v1/projects/${o}/assessments?key=${n}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({event:{token:e,siteKey:i}})})).json();return console.log("reCAPTCHA Enterprise verification result:",c),c.tokenProperties?.valid===!0}catch(o){return console.error("Error verificando reCAPTCHA Enterprise:",o),!1}};async function vd({publication:e,username:t,id:a,type:r,baseUrl:n,captchaToken:o,apiToken:i,securityToken:l,COMMENTS_VARS:h}){if(!e||!t||!a||!r||!o)throw new Error("Faltan parámetros requeridos: publication, username, id, type, captchaToken");if(typeof e!="string"||typeof t!="string"||typeof a!="string"||typeof r!="string"||typeof o!="string")throw new Error("Todos los parámetros deben ser strings");if(!await fn(o,h))throw new Error("Token de captcha inválido");if(!i)throw new Error("Falta el token de API del CMS");const c=`${n}/system/modules/com.tfsla.diario.base/templates/hit/5.0/1/newcomments/report`,d=encodeURIComponent(r),u=new URLSearchParams({publication:e,username:t??!1,id:a,type:d}),m=`${c}?${u.toString()}`;try{console.log("Reporting comment:",{publication:e,username:t,id:a,type:r,encodedType:d,url:m});const g=await re.get(m,{headers:{"User-Agent":"blu3st@ck-react","x-security-token":l,"x-api-token":i,"Content-Type":"application/json"}});if(console.log("Report response:",g.data),g.status===200||g.status===201)return{type:"success",message:"Comentario reportado exitosamente",status:g.status,data:g.data};throw new Error(`Respuesta inesperada del servidor: ${g.status}`)}catch(g){if(console.error("Error reporting comment:",g),re.isAxiosError(g)){const f=g.response?.status,p=g.response?.data;throw f===400?new Error("Datos inválidos para el reporte"):f===401?new Error("Token de API inválido"):f===403?new Error("Acceso denegado para reportar comentario"):f===404?new Error("Comentario no encontrado"):f===409?new Error("El comentario ya fue reportado por este usuario"):f===500?new Error("Error interno del servidor CMS"):new Error(p?.error||p?.message||`Error HTTP ${f}: No se pudo reportar el comentario`)}throw g}}const Wt={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 Cd(e){return Wt[e]}const ke=300,Le={username:"anonimo",firstname:"Usuario",lastname:"Anonimo"};function yd(e){const t=e.split(" ");if(t.length!==3)return e;const[a,r,n]=t,o=r.charAt(0).toUpperCase()+r.slice(1).toLowerCase();return`${a} ${o} ${n}`}const Yt=(e,t,a)=>{if(!e||!e.current)return{boolean:!1,text:""};const r=e.current?.value||"",n=r.length>ke,{PUBLIC_ENV:o}=a,i=o==="local",l=r.trim()!==""&&(i||t!=="")&&!n,h=n?`No debes exceder el limite de ${ke} caracteres.`:"Debes completar todos los campos para comentar.";return{boolean:l,text:h}},gn=e=>{const t=e.cookie.split("; ").find(a=>a.startsWith("reported="));if(!t)return[];try{return JSON.parse(decodeURIComponent(t.split("=")[1]??""))}catch{return[]}},Nd=(e,t)=>{const a=gn(e);a.includes(t)||(a.push(t),e.cookie=`reported=${encodeURIComponent(JSON.stringify(a))}; path=/; max-age=${3600*24*1}`)};var $t={exports:{}},Kt={exports:{}},se={};var pn;function Sd(){if(pn)return se;pn=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,a=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,n=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,h=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,u=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,g=e?Symbol.for("react.memo"):60115,f=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,A=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,N=e?Symbol.for("react.scope"):60119;function S(w){if(typeof w=="object"&&w!==null){var U=w.$$typeof;switch(U){case t:switch(w=w.type,w){case h:case c:case r:case o:case n:case u:return w;default:switch(w=w&&w.$$typeof,w){case l:case d:case f:case g:case i:return w;default:return U}}case a:return U}}}function E(w){return S(w)===c}return se.AsyncMode=h,se.ConcurrentMode=c,se.ContextConsumer=l,se.ContextProvider=i,se.Element=t,se.ForwardRef=d,se.Fragment=r,se.Lazy=f,se.Memo=g,se.Portal=a,se.Profiler=o,se.StrictMode=n,se.Suspense=u,se.isAsyncMode=function(w){return E(w)||S(w)===h},se.isConcurrentMode=E,se.isContextConsumer=function(w){return S(w)===l},se.isContextProvider=function(w){return S(w)===i},se.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===t},se.isForwardRef=function(w){return S(w)===d},se.isFragment=function(w){return S(w)===r},se.isLazy=function(w){return S(w)===f},se.isMemo=function(w){return S(w)===g},se.isPortal=function(w){return S(w)===a},se.isProfiler=function(w){return S(w)===o},se.isStrictMode=function(w){return S(w)===n},se.isSuspense=function(w){return S(w)===u},se.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===r||w===c||w===o||w===n||w===u||w===m||typeof w=="object"&&w!==null&&(w.$$typeof===f||w.$$typeof===g||w.$$typeof===i||w.$$typeof===l||w.$$typeof===d||w.$$typeof===A||w.$$typeof===v||w.$$typeof===N||w.$$typeof===p)},se.typeOf=S,se}var ae={};var An;function Ed(){return An||(An=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,r=e?Symbol.for("react.fragment"):60107,n=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,h=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,u=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,g=e?Symbol.for("react.memo"):60115,f=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,A=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,N=e?Symbol.for("react.scope"):60119;function S(D){return typeof D=="string"||typeof D=="function"||D===r||D===c||D===o||D===n||D===u||D===m||typeof D=="object"&&D!==null&&(D.$$typeof===f||D.$$typeof===g||D.$$typeof===i||D.$$typeof===l||D.$$typeof===d||D.$$typeof===A||D.$$typeof===v||D.$$typeof===N||D.$$typeof===p)}function E(D){if(typeof D=="object"&&D!==null){var he=D.$$typeof;switch(he){case t:var ss=D.type;switch(ss){case h:case c:case r:case o:case n:case u:return ss;default:var Mn=ss&&ss.$$typeof;switch(Mn){case l:case d:case f:case g:case i:return Mn;default:return he}}case a:return he}}}var w=h,U=c,P=l,V=i,Y=t,F=d,x=r,H=f,te=g,_=a,L=o,k=n,G=u,B=!1;function W(D){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.")),C(D)||E(D)===h}function C(D){return E(D)===c}function T(D){return E(D)===l}function q(D){return E(D)===i}function Q(D){return typeof D=="object"&&D!==null&&D.$$typeof===t}function j(D){return E(D)===d}function z(D){return E(D)===r}function $(D){return E(D)===f}function K(D){return E(D)===g}function R(D){return E(D)===a}function ee(D){return E(D)===o}function J(D){return E(D)===n}function oe(D){return E(D)===u}ae.AsyncMode=w,ae.ConcurrentMode=U,ae.ContextConsumer=P,ae.ContextProvider=V,ae.Element=Y,ae.ForwardRef=F,ae.Fragment=x,ae.Lazy=H,ae.Memo=te,ae.Portal=_,ae.Profiler=L,ae.StrictMode=k,ae.Suspense=G,ae.isAsyncMode=W,ae.isConcurrentMode=C,ae.isContextConsumer=T,ae.isContextProvider=q,ae.isElement=Q,ae.isForwardRef=j,ae.isFragment=z,ae.isLazy=$,ae.isMemo=K,ae.isPortal=R,ae.isProfiler=ee,ae.isStrictMode=J,ae.isSuspense=oe,ae.isValidElementType=S,ae.typeOf=E})()),ae}var wn;function Ps(){return wn||(wn=1,process.env.NODE_ENV==="production"?Kt.exports=Sd():Kt.exports=Ed()),Kt.exports}var xs,bn;function Td(){if(bn)return xs;bn=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;function r(o){if(o==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(o)}function n(){try{if(!Object.assign)return!1;var o=new String("abc");if(o[5]="de",Object.getOwnPropertyNames(o)[0]==="5")return!1;for(var i={},l=0;l<10;l++)i["_"+String.fromCharCode(l)]=l;var h=Object.getOwnPropertyNames(i).map(function(d){return i[d]});if(h.join("")!=="0123456789")return!1;var c={};return"abcdefghijklmnopqrst".split("").forEach(function(d){c[d]=d}),Object.keys(Object.assign({},c)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return xs=n()?Object.assign:function(o,i){for(var l,h=r(o),c,d=1;d<arguments.length;d++){l=Object(arguments[d]);for(var u in l)t.call(l,u)&&(h[u]=l[u]);if(e){c=e(l);for(var m=0;m<c.length;m++)a.call(l,c[m])&&(h[c[m]]=l[c[m]])}}return h},xs}var Bs,vn;function Os(){if(vn)return Bs;vn=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Bs=e,Bs}var Ms,Cn;function yn(){return Cn||(Cn=1,Ms=Function.call.bind(Object.prototype.hasOwnProperty)),Ms}var qs,Nn;function Id(){if(Nn)return qs;Nn=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Os(),a={},r=yn();e=function(o){var i="Warning: "+o;typeof console<"u"&&console.error(i);try{throw new Error(i)}catch{}}}function n(o,i,l,h,c){if(process.env.NODE_ENV!=="production"){for(var d in o)if(r(o,d)){var u;try{if(typeof o[d]!="function"){var m=Error((h||"React class")+": "+l+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw m.name="Invariant Violation",m}u=o[d](i,d,h,l,null,t)}catch(f){u=f}if(u&&!(u instanceof Error)&&e((h||"React class")+": type specification of "+l+" `"+d+"` 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 g=c?c():"";e("Failed "+l+" type: "+u.message+(g??""))}}}}return n.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(a={})},qs=n,qs}var Ds,Sn;function Ud(){if(Sn)return Ds;Sn=1;var e=Ps(),t=Td(),a=Os(),r=yn(),n=Id(),o=function(){};process.env.NODE_ENV!=="production"&&(o=function(l){var h="Warning: "+l;typeof console<"u"&&console.error(h);try{throw new Error(h)}catch{}});function i(){return null}return Ds=function(l,h){var c=typeof Symbol=="function"&&Symbol.iterator,d="@@iterator";function u(C){var T=C&&(c&&C[c]||C[d]);if(typeof T=="function")return T}var m="<<anonymous>>",g={array:v("array"),bigint:v("bigint"),bool:v("boolean"),func:v("function"),number:v("number"),object:v("object"),string:v("string"),symbol:v("symbol"),any:N(),arrayOf:S,element:E(),elementType:w(),instanceOf:U,node:F(),objectOf:V,oneOf:P,oneOfType:Y,shape:H,exact:te};function f(C,T){return C===T?C!==0||1/C===1/T:C!==C&&T!==T}function p(C,T){this.message=C,this.data=T&&typeof T=="object"?T:{},this.stack=""}p.prototype=Error.prototype;function A(C){if(process.env.NODE_ENV!=="production")var T={},q=0;function Q(z,$,K,R,ee,J,oe){if(R=R||m,J=J||K,oe!==a){if(h){var D=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 D.name="Invariant Violation",D}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var he=R+":"+K;!T[he]&&q<3&&(o("You are manually calling a React.PropTypes validation function for the `"+J+"` prop on `"+R+"`. 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."),T[he]=!0,q++)}}return $[K]==null?z?$[K]===null?new p("The "+ee+" `"+J+"` is marked as required "+("in `"+R+"`, but its value is `null`.")):new p("The "+ee+" `"+J+"` is marked as required in "+("`"+R+"`, but its value is `undefined`.")):null:C($,K,R,ee,J)}var j=Q.bind(null,!1);return j.isRequired=Q.bind(null,!0),j}function v(C){function T(q,Q,j,z,$,K){var R=q[Q],ee=k(R);if(ee!==C){var J=G(R);return new p("Invalid "+z+" `"+$+"` of type "+("`"+J+"` supplied to `"+j+"`, expected ")+("`"+C+"`."),{expectedType:C})}return null}return A(T)}function N(){return A(i)}function S(C){function T(q,Q,j,z,$){if(typeof C!="function")return new p("Property `"+$+"` of component `"+j+"` has invalid PropType notation inside arrayOf.");var K=q[Q];if(!Array.isArray(K)){var R=k(K);return new p("Invalid "+z+" `"+$+"` of type "+("`"+R+"` supplied to `"+j+"`, expected an array."))}for(var ee=0;ee<K.length;ee++){var J=C(K,ee,j,z,$+"["+ee+"]",a);if(J instanceof Error)return J}return null}return A(T)}function E(){function C(T,q,Q,j,z){var $=T[q];if(!l($)){var K=k($);return new p("Invalid "+j+" `"+z+"` of type "+("`"+K+"` supplied to `"+Q+"`, expected a single ReactElement."))}return null}return A(C)}function w(){function C(T,q,Q,j,z){var $=T[q];if(!e.isValidElementType($)){var K=k($);return new p("Invalid "+j+" `"+z+"` of type "+("`"+K+"` supplied to `"+Q+"`, expected a single ReactElement type."))}return null}return A(C)}function U(C){function T(q,Q,j,z,$){if(!(q[Q]instanceof C)){var K=C.name||m,R=W(q[Q]);return new p("Invalid "+z+" `"+$+"` of type "+("`"+R+"` supplied to `"+j+"`, expected ")+("instance of `"+K+"`."))}return null}return A(T)}function P(C){if(!Array.isArray(C))return process.env.NODE_ENV!=="production"&&(arguments.length>1?o("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])."):o("Invalid argument supplied to oneOf, expected an array.")),i;function T(q,Q,j,z,$){for(var K=q[Q],R=0;R<C.length;R++)if(f(K,C[R]))return null;var ee=JSON.stringify(C,function(oe,D){var he=G(D);return he==="symbol"?String(D):D});return new p("Invalid "+z+" `"+$+"` of value `"+String(K)+"` "+("supplied to `"+j+"`, expected one of "+ee+"."))}return A(T)}function V(C){function T(q,Q,j,z,$){if(typeof C!="function")return new p("Property `"+$+"` of component `"+j+"` has invalid PropType notation inside objectOf.");var K=q[Q],R=k(K);if(R!=="object")return new p("Invalid "+z+" `"+$+"` of type "+("`"+R+"` supplied to `"+j+"`, expected an object."));for(var ee in K)if(r(K,ee)){var J=C(K,ee,j,z,$+"."+ee,a);if(J instanceof Error)return J}return null}return A(T)}function Y(C){if(!Array.isArray(C))return process.env.NODE_ENV!=="production"&&o("Invalid argument supplied to oneOfType, expected an instance of array."),i;for(var T=0;T<C.length;T++){var q=C[T];if(typeof q!="function")return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+B(q)+" at index "+T+"."),i}function Q(j,z,$,K,R){for(var ee=[],J=0;J<C.length;J++){var oe=C[J],D=oe(j,z,$,K,R,a);if(D==null)return null;D.data&&r(D.data,"expectedType")&&ee.push(D.data.expectedType)}var he=ee.length>0?", expected one of type ["+ee.join(", ")+"]":"";return new p("Invalid "+K+" `"+R+"` supplied to "+("`"+$+"`"+he+"."))}return A(Q)}function F(){function C(T,q,Q,j,z){return _(T[q])?null:new p("Invalid "+j+" `"+z+"` supplied to "+("`"+Q+"`, expected a ReactNode."))}return A(C)}function x(C,T,q,Q,j){return new p((C||"React class")+": "+T+" type `"+q+"."+Q+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+j+"`.")}function H(C){function T(q,Q,j,z,$){var K=q[Q],R=k(K);if(R!=="object")return new p("Invalid "+z+" `"+$+"` of type `"+R+"` "+("supplied to `"+j+"`, expected `object`."));for(var ee in C){var J=C[ee];if(typeof J!="function")return x(j,z,$,ee,G(J));var oe=J(K,ee,j,z,$+"."+ee,a);if(oe)return oe}return null}return A(T)}function te(C){function T(q,Q,j,z,$){var K=q[Q],R=k(K);if(R!=="object")return new p("Invalid "+z+" `"+$+"` of type `"+R+"` "+("supplied to `"+j+"`, expected `object`."));var ee=t({},q[Q],C);for(var J in ee){var oe=C[J];if(r(C,J)&&typeof oe!="function")return x(j,z,$,J,G(oe));if(!oe)return new p("Invalid "+z+" `"+$+"` key `"+J+"` supplied to `"+j+"`.\nBad object: "+JSON.stringify(q[Q],null," ")+`
|
|
261
|
-
Valid keys: `+JSON.stringify(Object.keys(C),null," "));var D=oe(K,J,j,z,$+"."+J,a);if(D)return D}return null}return A(T)}function _(C){switch(typeof C){case"number":case"string":case"undefined":return!0;case"boolean":return!C;case"object":if(Array.isArray(C))return C.every(_);if(C===null||l(C))return!0;var T=u(C);if(T){var q=T.call(C),Q;if(T!==C.entries){for(;!(Q=q.next()).done;)if(!_(Q.value))return!1}else for(;!(Q=q.next()).done;){var j=Q.value;if(j&&!_(j[1]))return!1}}else return!1;return!0;default:return!1}}function L(C,T){return C==="symbol"?!0:T?T["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&T instanceof Symbol:!1}function k(C){var T=typeof C;return Array.isArray(C)?"array":C instanceof RegExp?"object":L(T,C)?"symbol":T}function G(C){if(typeof C>"u"||C===null)return""+C;var T=k(C);if(T==="object"){if(C instanceof Date)return"date";if(C instanceof RegExp)return"regexp"}return T}function B(C){var T=G(C);switch(T){case"array":case"object":return"an "+T;case"boolean":case"date":case"regexp":return"a "+T;default:return T}}function W(C){return!C.constructor||!C.constructor.name?m:C.constructor.name}return g.checkPropTypes=n,g.resetWarningCache=n.resetWarningCache,g.PropTypes=g,g},Ds}var _s,En;function kd(){if(En)return _s;En=1;var e=Os();function t(){}function a(){}return a.resetWarningCache=t,_s=function(){function r(i,l,h,c,d,u){if(u!==e){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}}r.isRequired=r;function n(){return r}var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:n,element:r,elementType:r,instanceOf:n,node:r,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n,checkPropTypes:a,resetWarningCache:t};return o.PropTypes=o,o},_s}var Tn;function Ld(){if(Tn)return $t.exports;if(Tn=1,process.env.NODE_ENV!=="production"){var e=Ps(),t=!0;$t.exports=Ud()(e.isElement,t)}else $t.exports=kd()();return $t.exports}var Pd=Ld();const Ae=Ve(Pd);var xd=["sitekey","onChange","theme","type","tabindex","onExpired","onErrored","size","stoken","grecaptcha","badge","hl","isolated"];function Gs(){return Gs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},Gs.apply(this,arguments)}function Bd(e,t){if(e==null)return{};var a={},r=Object.keys(e),n,o;for(o=0;o<r.length;o++)n=r[o],!(t.indexOf(n)>=0)&&(a[n]=e[n]);return a}function Jt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Od(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,js(e,t)}function js(e,t){return js=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},js(e,t)}var Zt=(function(e){Od(t,e);function t(){var r;return r=e.call(this)||this,r.handleExpired=r.handleExpired.bind(Jt(r)),r.handleErrored=r.handleErrored.bind(Jt(r)),r.handleChange=r.handleChange.bind(Jt(r)),r.handleRecaptchaRef=r.handleRecaptchaRef.bind(Jt(r)),r}var a=t.prototype;return a.getCaptchaFunction=function(n){return this.props.grecaptcha?this.props.grecaptcha.enterprise?this.props.grecaptcha.enterprise[n]:this.props.grecaptcha[n]:null},a.getValue=function(){var n=this.getCaptchaFunction("getResponse");return n&&this._widgetId!==void 0?n(this._widgetId):null},a.getWidgetId=function(){return this.props.grecaptcha&&this._widgetId!==void 0?this._widgetId:null},a.execute=function(){var n=this.getCaptchaFunction("execute");if(n&&this._widgetId!==void 0)return n(this._widgetId);this._executeRequested=!0},a.executeAsync=function(){var n=this;return new Promise(function(o,i){n.executionResolve=o,n.executionReject=i,n.execute()})},a.reset=function(){var n=this.getCaptchaFunction("reset");n&&this._widgetId!==void 0&&n(this._widgetId)},a.forceReset=function(){var n=this.getCaptchaFunction("reset");n&&n()},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(n){this.props.onChange&&this.props.onChange(n),this.executionResolve&&(this.executionResolve(n),delete this.executionReject,delete this.executionResolve)},a.explicitRender=function(){var n=this.getCaptchaFunction("render");if(n&&this._widgetId===void 0){var o=document.createElement("div");this._widgetId=n(o,{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(o)}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(n){this.captcha=n},a.render=function(){var n=this.props;n.sitekey,n.onChange,n.theme,n.type,n.tabindex,n.onExpired,n.onErrored,n.size,n.stoken,n.grecaptcha,n.badge,n.hl,n.isolated;var o=Bd(n,xd);return Xs.createElement("div",Gs({},o,{ref:this.handleRecaptchaRef}))},t})(Xs.Component);Zt.displayName="ReCAPTCHA",Zt.propTypes={sitekey:Ae.string.isRequired,onChange:Ae.func,grecaptcha:Ae.object,theme:Ae.oneOf(["dark","light"]),type:Ae.oneOf(["image","audio"]),tabindex:Ae.number,onExpired:Ae.func,onErrored:Ae.func,size:Ae.oneOf(["compact","normal","invisible"]),stoken:Ae.string,hl:Ae.string,badge:Ae.oneOf(["bottomright","bottomleft","inline"]),isolated:Ae.bool},Zt.defaultProps={onChange:function(){},theme:"light",type:"image",tabindex:0,size:"normal",badge:"bottomright"};var Qs,In;function Md(){if(In)return Qs;In=1;var e=Ps(),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},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},n={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};o[e.ForwardRef]=r,o[e.Memo]=n;function i(f){return e.isMemo(f)?n:o[f.$$typeof]||t}var l=Object.defineProperty,h=Object.getOwnPropertyNames,c=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,u=Object.getPrototypeOf,m=Object.prototype;function g(f,p,A){if(typeof p!="string"){if(m){var v=u(p);v&&v!==m&&g(f,v,A)}var N=h(p);c&&(N=N.concat(c(p)));for(var S=i(f),E=i(p),w=0;w<N.length;++w){var U=N[w];if(!a[U]&&!(A&&A[U])&&!(E&&E[U])&&!(S&&S[U])){var P=d(p,U);try{l(f,U,P)}catch{}}}}return f}return Qs=g,Qs}var qd=Md();const Dd=Ve(qd);function Fs(){return Fs=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},Fs.apply(this,arguments)}function _d(e,t){if(e==null)return{};var a={},r=Object.keys(e),n,o;for(o=0;o<r.length;o++)n=r[o],!(t.indexOf(n)>=0)&&(a[n]=e[n]);return a}function Gd(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var ve={},jd=0;function Qd(e,t){return t=t||{},function(r){var n=r.displayName||r.name||"Component",o=(function(l){Gd(h,l);function h(d,u){var m;return m=l.call(this,d,u)||this,m.state={},m.__scriptURL="",m}var c=h.prototype;return c.asyncScriptLoaderGetScriptLoaderID=function(){return this.__scriptLoaderID||(this.__scriptLoaderID="async-script-loader-"+jd++),this.__scriptLoaderID},c.setupScriptURL=function(){return this.__scriptURL=typeof e=="function"?e():e,this.__scriptURL},c.asyncScriptLoaderHandleLoad=function(u){var m=this;this.setState(u,function(){return m.props.asyncScriptOnLoad&&m.props.asyncScriptOnLoad(m.state)})},c.asyncScriptLoaderTriggerOnScriptLoaded=function(){var u=ve[this.__scriptURL];if(!u||!u.loaded)throw new Error("Script is not loaded.");for(var m in u.observers)u.observers[m](u);delete window[t.callbackName]},c.componentDidMount=function(){var u=this,m=this.setupScriptURL(),g=this.asyncScriptLoaderGetScriptLoaderID(),f=t,p=f.globalName,A=f.callbackName,v=f.scriptId;if(p&&typeof window[p]<"u"&&(ve[m]={loaded:!0,observers:{}}),ve[m]){var N=ve[m];if(N&&(N.loaded||N.errored)){this.asyncScriptLoaderHandleLoad(N);return}N.observers[g]=function(P){return u.asyncScriptLoaderHandleLoad(P)};return}var S={};S[g]=function(P){return u.asyncScriptLoaderHandleLoad(P)},ve[m]={loaded:!1,observers:S};var E=document.createElement("script");E.src=m,E.async=!0;for(var w in t.attributes)E.setAttribute(w,t.attributes[w]);v&&(E.id=v);var U=function(V){if(ve[m]){var Y=ve[m],F=Y.observers;for(var x in F)V(F[x])&&delete F[x]}};A&&typeof window<"u"&&(window[A]=function(){return u.asyncScriptLoaderTriggerOnScriptLoaded()}),E.onload=function(){var P=ve[m];P&&(P.loaded=!0,U(function(V){return A?!1:(V(P),!0)}))},E.onerror=function(){var P=ve[m];P&&(P.errored=!0,U(function(V){return V(P),!0}))},document.body.appendChild(E)},c.componentWillUnmount=function(){var u=this.__scriptURL;if(t.removeOnUnmount===!0)for(var m=document.getElementsByTagName("script"),g=0;g<m.length;g+=1)m[g].src.indexOf(u)>-1&&m[g].parentNode&&m[g].parentNode.removeChild(m[g]);var f=ve[u];f&&(delete f.observers[this.asyncScriptLoaderGetScriptLoaderID()],t.removeOnUnmount===!0&&delete ve[u])},c.render=function(){var u=t.globalName,m=this.props;m.asyncScriptOnLoad;var g=m.forwardedRef,f=_d(m,["asyncScriptOnLoad","forwardedRef"]);return u&&typeof window<"u"&&(f[u]=typeof window[u]<"u"?window[u]:void 0),f.ref=g,I.createElement(r,f)},h})(I.Component),i=I.forwardRef(function(l,h){return I.createElement(o,Fs({},l,{forwardedRef:h}))});return i.displayName="AsyncScriptLoader("+n+")",i.propTypes={asyncScriptOnLoad:Ae.func},Dd(i,r)}}var Vs="onloadcallback",Fd="grecaptcha";function Hs(){return typeof window<"u"&&window.recaptchaOptions||{}}function Vd(){var e=Hs(),t=e.useRecaptchaNet?"recaptcha.net":"www.google.com";return e.enterprise?"https://"+t+"/recaptcha/enterprise.js?onload="+Vs+"&render=explicit":"https://"+t+"/recaptcha/api.js?onload="+Vs+"&render=explicit"}const Un=Qd(Vd,{callbackName:Vs,globalName:Fd,attributes:Hs().nonce?{nonce:Hs().nonce}:{}})(Zt),zs=()=>s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",width:"24",height:"24",viewBox:"0 0 32 32",className:"sass-pg-cmt-lp-spin",children:s.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"})}),Hd={reportAbuseTitle:"Reportar Abuso",errorAlreadyReported:"Ya has reportado este comentario.",errorReportComment:"Error al reportar comentario",cancelButton:"Cancelar",reportButton:"Reportar",reportSuccessMessage:"¡Gracias por reportar!",reportCloseButton:"Cerrar"},zd=({isOpen:e,onClose:t,commentId:a,publication:r,username:n,CAPTCHA_KEY_V2:o,texts:i})=>{const l={...Hd,...i?.comentarios},h={...Wt,...l.reportReasons??{}},[c,d]=I.useState("form"),[u,m]=I.useState(""),[g,f]=I.useState(""),[p,A]=I.useState(""),v=[{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}],N=async()=>{if(!(!u||!a)){if(gn(document).includes(a)){f(l.errorAlreadyReported);return}d("loading"),f("");try{const w=await(await fetch("/api/comments-report",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({publication:r,username:n,id:a,captchaToken:p,type:Wt[u]})})).json();if(w.type==="success")Nd(document,a),d("success"),setTimeout(()=>{S()},3e3);else throw new Error(w.message||l.errorReportComment)}catch(E){console.error("Error reporting comment:",E),f(E.message||l.errorReportComment),d("form")}}},S=()=>{d("form"),m(""),f(""),t()};return!e||!a||!n?null:s.jsx("div",{className:"sass-pg-cmt-rp-overlay",children:s.jsxs("div",{className:"sass-pg-cmt-rp-popup",children:[s.jsx("button",{className:"close-reply-form su-flex su-absolute su-p-0 su-bg-transparent su-border-none",onClick:S,children:s.jsx(Ke,{})}),s.jsx("h2",{className:"sass-pg-cmt-rp-title",children:l.reportAbuseTitle}),c==="loading"&&s.jsx("div",{className:"sass-pg-cmt-rp-loadingContainer",children:s.jsx(zs,{})}),c==="form"||c==="loading"?s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"sass-pg-cmt-rp-optionsContainer",children:v.map(E=>s.jsxs("label",{className:"sass-pg-cmt-rp-option",children:[s.jsx("input",{type:"radio",name:"reportReason",value:E.id,checked:u===E.id,onChange:w=>m(w.target.value),className:"sass-pg-cmt-rp-radioInput"}),s.jsx("span",{className:"sass-pg-cmt-rp-radioCustom"}),s.jsx("span",{className:"sass-pg-cmt-rp-optionLabel",children:E.label})]},E.id))}),g&&s.jsx("div",{className:"sass-pg-cmt-rp-errorMessage",children:g}),s.jsx(Un,{sitekey:o,theme:"light",size:"normal",onChange:E=>A(E??""),onExpired:()=>A("")}),s.jsxs("div",{className:"sass-pg-cmt-rp-buttons",children:[s.jsx("button",{onClick:S,className:"sass-pg-cmt-rp-cancelButton",children:l.cancelButton}),s.jsx("button",{onClick:N,disabled:!u,className:"sass-pg-cmt-rp-reportButton",children:l.reportButton})]})]}):s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"sass-pg-cmt-rp-successContainer",children:[s.jsx("div",{className:"sass-pg-cmt-rp-thumbsUp",children:s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:132,height:120,fill:"none",children:s.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"})})}),s.jsx("p",{className:"sass-pg-cmt-rp-successMessage",children:l.reportSuccessMessage})]}),s.jsx("div",{className:"sass-pg-cmt-rp-buttons",children:s.jsx("button",{onClick:S,className:["sass-pg-cmt-rp-closeButton","sass-pg-cmt-rp-buttonAlone"].join(" "),children:l.reportCloseButton})})]})]})})};function Wd(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 Xt(e){const t=e.comments.map(a=>{if(a.user)return{...a,user:a.user,text:a.text,reply:a.reply?Xt({comments:a.reply}).comments:a.reply};const{user:r,text:n}=Wd(a.text);return{...a,user:r||!1,text:n,reply:a.reply?Xt({comments:a.reply}).comments:a.reply}});return{...e,comments:t}}async function Rt({publication:e,path:t,size:a=5,sizereply:r=2,id:n,lastid:o,state:i="5,6",apiToken:l,API_ENV:h}){const{PUBLIC_ENV:c}=h;if(c==="prod"){const d=await kn({publication:e,path:t,size:a,sizereply:r,id:n,lastid:o,state:i,apiToken:l,API_ENV:h});return Xt(d[0])}else{const d=await fetch(`/api/comments-get?publication=${e}&path=${t}&size=${a}&sizereply=${r}&lastid=${o}`);if(!d.ok)throw new Error(`Error al obtener comentarios: ${d.status}`);const u=await d.json();return Xt(u.data[0])}}async function kn({publication:e,path:t,size:a=5,sizereply:r=2,id:n,lastid:o,state:i="5,6",apiToken:l,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(!l)throw new Error("Missing CMS API token");const{PUBLIC_ENV:c,PUBLIC_API_HOST:d="dummy",PUBLIC_API_PATH:u,PUBLIC_API_PATH_VERSION:m}=h,g=parseInt(String(a),10),f=parseInt(String(r),10);if(isNaN(g)||g<=0)throw new Error("Invalid size parameter");if(isNaN(f)||f<0)throw new Error("Invalid sizereply parameter");const p=c!=="prod"?`${d}${u}`:"",A=new URLSearchParams({publication:e,path:t,size:g.toString(),sizereply:f.toString(),state:i});n&&A.append("id",n),o&&A.append("lastid",o);const v=`${p}${m}/newcomments/get?${A.toString()}`;try{const{data:N}=await re.get(v,{headers:{"x-api-token":l,"Cache-Control":"max-age=0, no-cache, no-store, must-revalidate",Pragma:"no-cache",Expires:"0"}});if(!N)throw new Error("No comments data received");return N.data||N||[]}catch(N){if(console.error("Error fetching comments:",N),re.isAxiosError(N)){const S=N.response?.status,E=N.response?.data;throw S===404?new Error("Comments not found"):S===403?new Error("Access forbidden - check API token"):S===401?new Error("Unauthorized - invalid API token"):S===500?new Error("Internal server error from CMS"):new Error(E?.error||E?.message||`HTTP ${S}: Failed to fetch comments`)}throw N}}const Yd=(e,t)=>{const[a,r]=I.useState(void 0),{PUBLIC_PUBLICATION_ID:n}=t,o=n;return I.useEffect(()=>{if(a)return;(async()=>{const{PUBLIC_X_SECURITY_TOKEN:l}=t;try{const h=await Rt({publication:o,path:e??"",size:5,sizereply:2,id:void 0,lastid:void 0,state:"5,6",apiToken:l,API_ENV:t});r(h??[])}catch{r({comments:[],morecomment:!1})}})()},[a]),{comments:a,setComments:r}},Ln=({username:e,date:t,DATE_CONFIG:a})=>s.jsxs("div",{className:"comment-header su-flex su-items-center su-relative su-flex-wrap",children:[s.jsx("span",{className:"comment-username su-font-bold su-truncate",children:e}),s.jsx("span",{className:"comment-header-dot",children:"•"}),s.jsx("span",{className:"comment-date su-truncate",children:yd(Ce(Number(t),a))})]}),Pn=({user:e})=>s.jsx("div",{className:"comment-avatar su-flex-center su-rounded-full su-font-bold su-overflow-hidden",children:e.picture?s.jsx("img",{className:"comment-avatar-img su-h-full",src:e.picture,alt:e.username}):e.firstname.charAt(0).toUpperCase()}),xn=({isReply:e=!1,onReply:t,onFlag:a})=>s.jsxs("div",{className:"comment-actions su-flex",children:[!e&&t&&s.jsx("button",{onClick:t,className:"comment-action-btn su-flex su-items-center su-gap-1 su-bg-transparent su-border-none",children:s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",children:[s.jsx("g",{clipPath:"url(#a)",children:s.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"})}),s.jsx("defs",{children:s.jsx("clipPath",{id:"a",children:s.jsx("path",{fill:"#fff",d:"M0 0h23.942v24H0z"})})})]})}),s.jsx("button",{onClick:a,className:"comment-action-btn su-flex su-items-center su-gap-1 su-bg-transparent su-border-none",children:s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:25,height:24,fill:"none",children:[s.jsx("g",{clipPath:"url(#a)",children:s.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"})}),s.jsx("defs",{children:s.jsx("clipPath",{id:"a",children:s.jsx("path",{fill:"#fff",d:"M.133 0h24v24h-24z"})})})]})})]}),$d={commentInputLabel:"Comentario",commentInputPlaceholder:"Ingresa un comentario"},Ws=({commentRef:e,captchaToken:t="",setIsDisabled:a,API_ENV:r,texts:n})=>{const o={...$d,...n?.comentarios};return I.useEffect(()=>{const i=e.current;if(!i)return;const l=()=>{const c=i.value.length;i.parentElement&&(i.parentElement.dataset.text=`${c}/${ke}`),i.classList.toggle("over-limit",c>ke),a(!Yt(e,t,r).boolean)};return i.addEventListener("input",l),l(),()=>i.removeEventListener("input",l)},[e,t,a]),s.jsxs("div",{className:"su-relative",children:[s.jsx("label",{className:"su-block su-font-normal comment-input-label",children:o.commentInputLabel}),s.jsx("textarea",{className:"su-w-full su-border-none su-outline-none",ref:e,name:"comment",placeholder:o.commentInputPlaceholder,rows:2})]})},Ys=({commentRef:e,captchaToken:t="",setCaptchaToken:a,children:r,API_ENV:n})=>{const o=Yt(e,t,n);return s.jsxs("div",{className:"form-actions su-flex-between",children:[s.jsx(Un,{sitekey:n.CAPTCHA_KEY_V2??"",theme:"light",size:"normal",onChange:i=>a(i??""),onExpired:()=>a("")}),s.jsxs("div",{className:"submit-zone su-relative su-flex su-flex-col su-items-end",children:[r,!o.boolean&&s.jsx("p",{className:"submit-warning su-hidden su-font-normal su-p-0",children:o.text})]})]})},Kd={anonimusContinueButton:"Continuar de forma anónima",anonimusDividerOr:"o",anonimusImageAlt:"Imagen incognito",popupCloseAriaLabel:"Cerrar"},Jd={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?",alreadyHasAccountText:"¿Ya 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 Zd({onClose:e,handleGoogleLogin:t,icon:a,texts:r,API_ENV:n}){const o={...Jd,...Kd,...r?.comentarios},i=d=>{!window||!window.location||(document.cookie=`redirect_after_login_1=${window.location.pathname}; path=/; max-age=10000`,window.location.pathname="/auth/login"+(d?"#forgot":""))},l=()=>{!window||!window.location||(document.cookie=`redirect_after_login_1=${window.location.pathname}; path=/; max-age=10000`,window.location.pathname="/auth/register")},{PUBLIC_ASSETS_URL:h}=n,c=(h&&h!=="false"?h:"")+"/versions/images/anonimus-img.png";return s.jsx("div",{className:"sass-pg-cmt-lp-overlay",role:"dialog","aria-modal":"true",id:"pop-overlay",onClick:d=>{const u=d.target;u&&u.id==="pop-overlay"&&e()},children:s.jsxs("div",{className:"sass-pg-cmt-lp-card",children:[s.jsxs("header",{className:"sass-pg-cmt-lp-header",children:[s.jsx("div",{className:"sass-pg-cmt-lp-logo",children:a?a():null}),s.jsx("button",{onClick:()=>{e()},className:"sass-pg-cmt-lp-close","aria-label":o.popupCloseAriaLabel,children:s.jsx(Ke,{})})]}),s.jsxs("div",{className:"sass-pg-cmt-lp-anonimusWrapper",children:[s.jsx("img",{className:"sass-pg-cmt-lp-anonimusImage",src:c,alt:o.anonimusImageAlt}),s.jsx("button",{onClick:()=>{e(!0)},className:"sass-pg-cmt-lp-anonimus",children:s.jsx("span",{children:o.anonimusContinueButton})})]}),s.jsx("div",{className:"sass-pg-cmt-lp-divider",children:s.jsx("span",{children:o.anonimusDividerOr})}),s.jsxs("button",{onClick:t,className:"sass-pg-cmt-lp-google",children:[s.jsx("img",{src:"https://www.gstatic.com/firebasejs/ui/2.0.0/images/auth/google.svg",alt:"",className:"sass-pg-cmt-lp-googleIcon"}),s.jsx("span",{children:o.GoogleButtonText})]}),s.jsx("button",{type:"submit",className:"sass-pg-cmt-lp-primary",onClick:()=>{i(!1)},children:o.loginButtonText}),s.jsxs("p",{className:"sass-pg-cmt-lp-switch",children:[o.noAccountText,s.jsx("button",{type:"button",onClick:l,children:o.registerButtonText})]}),s.jsx("button",{type:"button",className:"sass-pg-cmt-lp-forgotPassword",onClick:()=>{i(!0)},children:o.forgotPasswordText})]})})}const Xd={submitCommentButton:"Enviar Comentario"},$s=({onClick:e,isDisabled:t,API_ENV:a,icon:r,handleGoogleLogin:n,showAlert:o,texts:i})=>{const l={...Xd,...i?.comentarios},[h,c]=I.useState(!1),[d,u]=I.useState(!1),[m,g]=I.useState(!1);I.useEffect(()=>{let p=null;return h&&(p=setTimeout(()=>{c(!1)},2400)),()=>{p&&clearTimeout(p)}},[h]),I.useEffect(()=>{if(!d||!a.CONFIG_commentsV2||!o||!document)return;const p=document.getElementById("comment-button");if(!p)return;const A=p.closest(".comment-form"),v=A?.querySelector('input[name="username"]'),N=A?.querySelector('textarea[name="comment"]'),S=A?.querySelector("textarea.g-recaptcha-response")??document.querySelector("#g-recaptcha-response");v?.value?.trim()&&N?.value?.trim()&&S?.value?.trim()&&p.click()});const f=ne("/Success.gif");return h?s.jsx("div",{className:"success-gif-container su-flex-center su-relative",children:s.jsx("img",{className:"success-gif su-absolute",src:f})}):s.jsxs(s.Fragment,{children:[m&&a.CONFIG_commentsV2&&o&&s.jsx(Zd,{API_ENV:a,icon:r,handleGoogleLogin:n,texts:i,onClose:p=>{p&&u(!0),g(!1)}}),s.jsxs("button",{type:"button",onClick:async p=>{if(!d&&a.CONFIG_commentsV2&&o){g(!0),console.log("open popup");return}await e(p)&&(a.CONFIG_commentsV2&&o&&u(!1),c(!0))},id:"comment-button",className:`submit-btn su-bg-transparent su-font-bold ${t?"disabled":"active"}`,children:[l.submitCommentButton,s.jsx("svg",{style:{minWidth:16},width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:s.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"})})]})]})},Ks=async({path:e,ref:t,captchaToken:a,button:r,user:n,id:o,addComment:i,API_ENV:l,anonimusUser:h})=>{const c=t.current?.value||"",{PUBLIC_PUBLICATION_ID:d}=l,u=d;if(console.log("check",n,h),!Yt(t,a,l).boolean||!n&&!h){console.log("warn");const g=r.nextElementSibling;return g&&(g.style.display="block"),!1}if(!n&&!h)return;const m=n?c:"[["+h+"]] "+c;try{const g=Date.now(),f=await fetch("/api/comments-add",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({publication:u,path:e,id:o,username:n?n.username:!1,comment:m,recaptchaResponse:a})});let p=null;try{p=await f.json()}catch(E){console.error("Error parsing JSON response:",E)}if(!f.ok)throw new Error(`Error al enviar comentario: ${p?.message} status: ${f.status}`);const A=Date.now(),v=Math.max(0,2400+Math.abs(A-g)),N=n||{username:h,firstname:h},S={username:N.username,firstname:N.firstname,...N.lastname&&{lastname:N.lastname},...N.picture&&{picture:N.picture}};return i({id:A.toString(),text:c,user:S,date:{time:Date.now()},reply:[]}),t.current&&(t.current.value=""),v}catch(g){return console.error("Error enviando comentario:",g),alert(g.message||"Error al enviar el comentario."),!1}},Rd=({replyingTo:e,commentRef:t,user:a,path:r,addReply:n,closeForm:o,API_ENV:i,texts:l})=>{const[h,c]=I.useState(!0),[d,u]=I.useState(""),m=()=>{t.current?.parentElement&&(t.current.parentElement.dataset.text=`0/${ke}`),c(!0),o()};return s.jsxs("div",{className:"comment-form reply-form su-p-8 su-relative",children:[s.jsx("button",{className:"close-reply-form su-flex su-absolute su-p-0 su-bg-transparent su-border-none",onClick:m,children:s.jsx(Ke,{})}),s.jsx(Ws,{commentRef:t,captchaToken:d,setIsDisabled:c,API_ENV:i,texts:l}),s.jsx(Ys,{commentRef:t,captchaToken:d,setCaptchaToken:u,API_ENV:i,children:s.jsx($s,{onClick:async g=>{if(h)return;const f=await Ks({path:r,ref:t,captchaToken:d,button:g.currentTarget,user:a,id:e,addComment:n,API_ENV:i});return f&&typeof f=="number"?(setTimeout(()=>{m()},f),!0):!1},isDisabled:h,API_ENV:i,texts:l})})]})},e1={replyingToLabel:"Respondiendo a"},t1=({reply:e,replyingTo:t,user:a,onFlag:r,DATE_CONFIG:n,texts:o})=>{const i={...e1,...o?.comentarios},l=e.text;let h=`${Le.firstname} ${Le.lastname??""}`,c=Le.username;return e.user&&(h=`${e.user.firstname} ${e.user.lastname??""}`,c=e.user.username),s.jsx("div",{className:"comment-item reply",children:s.jsxs("div",{className:"comment-header-container su-flex su-relative",children:[s.jsx(Pn,{user:e.user?e.user:Le}),s.jsxs("div",{style:{flex:1},children:[s.jsx(Ln,{username:h,date:e.date.time,DATE_CONFIG:n}),s.jsxs("div",{className:"comment-reply-to",children:[i.replyingToLabel," ",s.jsx("strong",{children:t})]}),s.jsx("p",{className:"comment-text su-font-normal",children:l}),a?.username.toLowerCase()!==c.toLowerCase()&&s.jsx(xn,{isReply:!0,onFlag:()=>r(e.id)})]})]})})},s1={moreRepliesButton:"Más Respuestas"},a1=({comment:e,replyingTo:t,path:a,user:r,handleReplyingTo:n,onFlag:o,API_ENV:i,texts:l})=>{const h={...s1,...l?.comentarios},c={morereply:e.morereply??!1,reply:e.reply?e.reply:[]},[d,u]=I.useState(c),[m,g]=I.useState(!1),{PUBLIC_PUBLICATION_ID:f,PUBLIC_X_SECURITY_TOKEN:p}=i,A=e.text,v=I.useRef(null);let N=`${Le.firstname} ${Le.lastname??""}`,S=Le.username;e.user&&(N=`${e.user.firstname} ${e.user.lastname??""}`,S=e.user.username);const E=w=>{u({morereply:d.morereply,reply:[w,...d.reply]})};return s.jsx("div",{className:"comment-item",children:s.jsxs("div",{className:"comment-header-container su-flex su-relative","data-hasreplies":d.reply.length>0?"true":"false",children:[s.jsx(Pn,{user:e.user?e.user:Le}),s.jsxs("div",{style:{flex:1},children:[s.jsx(Ln,{username:N,date:e.date.time,DATE_CONFIG:i}),s.jsx("p",{className:"comment-text su-font-normal",children:A}),r?.username.toLowerCase()!==S.toLowerCase()&&s.jsx(xn,{onReply:()=>n(e.id),onFlag:()=>o(e.id)}),t===e.id&&r&&s.jsx(Rd,{replyingTo:t,commentRef:v,addReply:E,user:r,path:a,API_ENV:i,closeForm:()=>n(""),texts:l}),d.reply.length>0&&s.jsxs("div",{className:"comment-replies",children:[d.reply.map(w=>s.jsx(t1,{user:r,reply:w,replyingTo:N,onFlag:o,DATE_CONFIG:i,texts:l},w.id)),m?s.jsx("div",{style:{marginLeft:"4rem",position:"relative"},children:s.jsx(zs,{})}):d.morereply&&s.jsx("button",{className:"comment-replies-button reply-button su-flex-center su-rounded-full su-border-none su-relative",onClick:async()=>{const w=d.reply[d.reply.length-1]?.id;g(!0);try{const P=await Rt({publication:f??"",path:a??"",size:2,sizereply:2,id:e.id,lastid:w,state:"5,6",apiToken:p??"",API_ENV:i});g(!1),u({morereply:P.morecomment,reply:[...d.reply,...P.comments]})}catch(U){throw g(!1),new Error(`Error al obtener comentarios: ${U}`)}},children:h.moreRepliesButton})]})]})]})})},r1=({commentRef:e,user:t,path:a,addComment:r,API_ENV:n,texts:o})=>{const[i,l]=I.useState(!0),[h,c]=I.useState("");return s.jsxs("div",{className:"comment-form su-p-8 su-relative",children:[s.jsx(Ws,{commentRef:e,captchaToken:h,setIsDisabled:l,API_ENV:n,texts:o}),s.jsx(Ys,{API_ENV:n,commentRef:e,captchaToken:h,setCaptchaToken:c,children:s.jsx($s,{onClick:async d=>{if(i)return;const u=await Ks({path:a,ref:e,captchaToken:h,button:d.currentTarget,user:t,addComment:r,API_ENV:n});return u&&typeof u=="number"?(e.current?.parentElement&&(e.current.parentElement.dataset.text=`0/${ke}`),l(!0),setTimeout(()=>{e.current?.parentElement&&(e.current.parentElement.dataset.text=`0/${ke}`),l(!0)},u),!0):!1},isDisabled:i,API_ENV:n,texts:o})})]})},n1={usernameInputLabel:"Nombre",usernameInputPlaceholder:"Ingresa tu nombre"},o1=({usernameRef:e,texts:t})=>{const a={...n1,...t?.comentarios};return s.jsxs("div",{className:"comment-username su-font-bold su-truncate",children:[s.jsx("label",{className:"su-block su-font-normal comment-input-label",children:a.usernameInputLabel}),s.jsx("input",{ref:e,name:"username",className:"su-w-full su-border-none su-outline-none",placeholder:a.usernameInputPlaceholder})]})},i1=({usernameRef:e,commentRef:t,path:a,icon:r,handleGoogleLogin:n,addComment:o,API_ENV:i,texts:l})=>{const[h,c]=I.useState(!0),[d,u]=I.useState(""),m=async g=>{if(h){console.log("error");return}if(!Yt(t,d,i).boolean){console.log("invalidForm");return}const f=e.current.value,p=await Ks({path:a,ref:t,captchaToken:d,button:g.currentTarget,user:void 0,addComment:o,API_ENV:i,anonimusUser:f});return u(""),p&&typeof p=="number"?(t.current?.parentElement&&(t.current.parentElement.dataset.text=`0/${ke}`),c(!0),setTimeout(()=>{t.current?.parentElement&&(t.current.parentElement.dataset.text=`0/${ke}`),c(!0)},p),!0):!1};return s.jsx(s.Fragment,{children:s.jsxs("div",{className:"comment-form anoninus-form su-p-8 su-relative",children:[s.jsx(o1,{usernameRef:e,texts:l}),s.jsx(Ws,{commentRef:t,captchaToken:d,setIsDisabled:c,API_ENV:i,texts:l}),s.jsx(Ys,{API_ENV:i,commentRef:t,captchaToken:d,setCaptchaToken:u,children:s.jsx($s,{onClick:m,isDisabled:h,API_ENV:i,handleGoogleLogin:n,icon:r,showAlert:!0,texts:l})})]})})},l1={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",anonimusPromptPrefix:"¿Querés debatir con otros lectores? Comentá ahora de forma anónima o ",anonimusPromptLinkText:"INICIA SESIÓN AQUÍ",anonimusPromptSuffix:" para responder a otros usuarios y ser parte activa de nuestra comunidad."},c1=({isAuthenticated:e,path:t,user:a,handleLogout:r,icon:n,handleGoogleLogin:o,API_ENV:i,texts:l})=>{const h={...l1,...l?.comentarios},{PUBLIC_PUBLICATION_ID:c,PUBLIC_X_SECURITY_TOKEN:d}=i,u=c??"",m=t.replaceAll("/","|"),[g,f]=I.useState(void 0),[p,A]=I.useState(""),{comments:v,setComments:N}=Yd(m,i),[S,E]=I.useState(!1),w=I.useRef(null),U=I.useRef(null),P=L=>{A(p===L?"":L)},V=L=>{N(v?{...v,comments:[L,...v.comments??[]]}:void 0)},Y=L=>{f(L)},F=async()=>{if(!v||!v.morecomment||v.comments.length===0)return;const L=v.comments[v.comments.length-1];if(!L)return;E(!0);const k=L.id;try{const G=await Rt({publication:u,path:m??"",size:5,sizereply:2,id:void 0,lastid:k,state:"5,6",apiToken:d,API_ENV:i});N({morecomment:G.morecomment??!1,comments:[...v.comments,...G.comments]}),E(!1)}catch(G){throw E(!1),new Error(`Error al obtener comentarios: ${G}`)}},x=v?.comments&&v.comments.length>0,H=x?h.commentHeaderMessageWithComments:h.commentHeaderMessageEmpty,te=s.jsx("div",{style:{display:"flex",width:"100%",justifyContent:"center"},children:s.jsx(zs,{})}),_=()=>{!window||!window.location||(document.cookie=`redirect_after_login_1=${window.location.pathname}; path=/; max-age=10000`,window.location.pathname="/auth/login")};return s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"comments-container",children:s.jsx(ce,{title:i.CONFIG_commentsV2||x||e?h.commentsSectionTitle:!1,children:s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"comments-header",children:e&&a?s.jsxs(s.Fragment,{children:[s.jsx(bd,{user:a,handleLogout:r,message:H,texts:l}),s.jsx(r1,{commentRef:w,user:a,addComment:V,path:m,API_ENV:i,texts:l})]}):i.CONFIG_commentsV2?s.jsxs(s.Fragment,{children:[s.jsxs("p",{className:"anonimus-message",children:[h.anonimusPromptPrefix,s.jsx("button",{className:"su-border-none su-p-0",onClick:_,children:h.anonimusPromptLinkText}),h.anonimusPromptSuffix]}),s.jsx(i1,{usernameRef:U,commentRef:w,icon:n,handleGoogleLogin:o,addComment:V,path:m,API_ENV:i,texts:l})]}):null}),v?v.comments&&v.comments.length>0?s.jsxs("div",{className:"comments-list","data-isauthenticated":`${e}`,children:[v.comments.map(L=>s.jsx(a1,{comment:L,replyingTo:p,handleReplyingTo:P,onFlag:Y,user:a??Le,path:m,API_ENV:i,texts:l},L.id)),S&&te]}):null:te,v?.morecomment&&!S&&s.jsx("button",{className:"comment-replies-button su-flex-center su-rounded-full",onClick:F,children:h.loadMoreButton})]})})}),s.jsx(zd,{username:a?.username??void 0,publication:u,commentId:g,isOpen:g!==void 0,onClose:()=>f(void 0),CAPTCHA_KEY_V2:i.CAPTCHA_KEY_V2??"",texts:l})]})};function d1({isAuthenticated:e,setIsAuthenticated:t,loginUrl:a,user:r,path:n,checkAuth:o,icon:i,API_ENV:l,texts:h}){const c=async()=>{if(l.PUBLIC_ENV==="local")await fetch("/api/auth/logout",{method:"GET",credentials:"include"}),t(!1);else{const u=window.location.pathname;window.location.href=`${window.location.origin}/api/auth/logout?redirect=${encodeURIComponent(u)}`}},d=async()=>{if(l.PUBLIC_ENV==="local"){await fetch("/api/auth/debug-login",{method:"GET",credentials:"include"}),localStorage.setItem("cognito-login","success:"+Date.now()),o();return}if(!a)return;const u=encodeURIComponent(window.location.pathname);window.location.href=`/api/auth/login?redirect=${u}`};return s.jsx(s.Fragment,{children:s.jsx(c1,{isAuthenticated:e,handleLogout:c,handleGoogleLogin:d,icon:i,path:n,user:e?r:void 0,API_ENV:l,texts:h})})}function h1({isVisible:e,path:t,icon:a,API_ENV:r,texts:n}){const[o,i]=I.useState(null),[l,h]=I.useState(null),c=r?.COGNITO_AUTH_PREFIX??"ASTRO_",d=I.useCallback(async()=>{if(e){if(document.cookie.search(c+"IS_AUTH=true")===-1){i(!1),h(null);return}try{const p=await(await fetch("/api/auth/user",{credentials:"include"})).json();i(p.isAuthenticated??!1),h(p.user??null),document.cookie="redirect_after_login_1=; Max-Age=0; path=/"}catch(f){console.error("Error checking auth:",f),i(!1),h(null)}}},[e,c]);I.useEffect(()=>{d()},[d,e]),I.useEffect(()=>{if(!l||!e||typeof window>"u")return;const f=window;if(typeof f!="function"){console.warn("gtag no está disponible todavía");return}f.gtag("set",{user_id:l.username}),console.log("username setted successfully")},[l,e]);const u="/api/auth/login",m=s.jsx("div",{className:"su-flex-center su-relative",style:{minHeight:310}});if(o===null)return m;const g=t.replaceAll("|","/");return e?s.jsx(d1,{icon:a,isAuthenticated:o,setIsAuthenticated:i,loginUrl:u,user:l??void 0,checkAuth:d,path:g,API_ENV:r,texts:n}):m}const u1=({internalPath:e,icon:t,API_ENV:a,texts:r})=>(I.useEffect(()=>{if(!document)return;if(document.getElementById("recaptcha-enterprise-script"))return console.log("recaptcha already appended");const o=document.createElement("script");o.id="recaptcha-enterprise-script",o.defer=!0,o.async=!0,o.src=`https://www.google.com/recaptcha/enterprise.js?render=${a.CAPTCHA_KEY}`,document.body.appendChild(o),console.log("appended recaptcha")},[]),s.jsx("div",{className:"sass-pg-news-commentLazyLoader",style:{width:"100%"},suppressHydrationWarning:!0,children:s.jsx(h1,{path:e,icon:t,isVisible:!0,API_ENV:is(a),texts:r})})),m1=({section:e,internalPath:t,stylesConfig:a,paths:r,API_ENV:n,fetchConfig:o})=>s.jsx("div",{suppressHydrationWarning:!0,style:a["Modulo 1x3 Client"]??a["Modulo 1x3"],children:s.jsx(gd,{section:e,internalPath:t,stylesConfig:a,isVisible:!0,paths:r,fetchConfig:o,API_ENV:is(n)})});async function f1({publication:e,path:t,username:a,comment:r,id:n,recaptchaResponse:o,baseUrl:i,apiToken:l,securityToken:h,COMMENTS_VARS:c}){if(console.log("Adding comment with data:",{publication:e,path:t,username:a,comment:r,id:n,recaptchaResponse:o}),!e||!t||!r)return{type:"error",message:"Faltan campos obligatorios. Por favor, completa todos los campos.",status:400};if([e,t,r].some(f=>typeof f!="string"))return{type:"error",message:"Datos inválidos. Intenta de nuevo.",status:400};if(!r.trim())return{type:"error",message:"El comentario no puede estar vacío.",status:400};const d=await fn(o,c);if(console.log("Verifying captcha token...",d),!d)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`,m={publication:e,path:t.replace(/\|/gi,"/"),text:r.trim()};a&&(m.username=a),n&&(m.id=n);const g=new URLSearchParams(m);try{const{data:f}=await re.get(`${u}?${g.toString()}`,{headers:{"Content-Type":"application/json","x-security-token":h,"x-api-token":l,"User-Agent":"amplifyapp-comments-saas"}});return!f||f.error?(console.error("CMS error response:",f),{type:"error",message:"No se pudo guardar el comentario. Intenta nuevamente en unos minutos.",status:502}):(console.log("Comentario enviado con éxito",f),{type:"success",message:"Comentario enviado con éxito.",status:200})}catch(f){if(console.error("Error enviando comentario:",f),re.isAxiosError(f)){const p=f.response?.status??500,A=f.response?.data;return p===400?{type:"error",message:A?.message||"Solicitud inválida. Verifica que los campos sean correctos.",status:400}:p===403?{type:"error",message:"Captcha inválido o acceso prohibido.",status:403}:p===500?{type:"error",message:"Error interno del servidor del CMS.",status:500}:{type:"error",message:A?.message||"No se pudo enviar el comentario.",status:p}}return{type:"error",message:"Error inesperado. Intenta nuevamente.",status:500}}}const Js=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((r,n)=>{a.enterprise.ready(async()=>{try{const o=await a.enterprise.execute(t,{action:e});if(!o)throw new Error("Captcha token no generado");r(o)}catch(o){n(o)}})})},g1=async({token:e,projectId:t,captchaKey:a,apiKey:r,captchaAction:n})=>{if(!e)throw new Error("No token provided");if(!t||!a||!r)throw new Error("Missing project ID or site key");if(!n)throw new Error("No action provided");try{const i=await(await fetch(`https://recaptchaenterprise.googleapis.com/v1/projects/${t}/assessments?key=${r}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({event:{token:e,siteKey:a,expectedAction:n}})})).json();if(!i?.tokenProperties?.valid)throw new Error(`The token was: ${i?.tokenProperties?.invalidReason}`);if(i.tokenProperties.action!==n)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(o){throw console.error("Recaptcha verification failed",o),new Error(String(o))}},p1=e=>{const{content:t,title:a,slot_id:r}=e,n=e.slot_id&&e.slot_id!=="Nota_1";return t&&t.length!==0&&s.jsx(ce,{title:a,titleUrl:e.titleUrl,children:s.jsx(Oe,{slot_id:r,cardWidth:200,children:t.map((o,i)=>{const l={...o,main:{...o.main,title:{...o.main.title,section:n?o.main.title.home:o.main.title.section}}};return s.jsx(dt,{...l,titleGradient:!0,paths:e.paths},i)})})})},A1=e=>{const{content:t,title:a,slot_id:r}=e,n=e.slot_id&&e.slot_id!=="Nota_1";return t&&t.length!==0&&s.jsx(ce,{title:a,titleUrl:e.titleUrl,children:s.jsx(Oe,{slot_id:r,cardWidth:343,cardGap:32,visibleItems:3,children:t.map((o,i)=>{const l={...o,preview:{...o.preview},main:{...o.main,title:{...o.main.title,section:n?o.main.title.home:o.main.title.section}}};return s.jsx(dt,{...l,titleGradient:!0,paths:e.paths},i)})})})},w1=e=>{const{content:t,title:a,slot_id:r}=e,n=e.slot_id&&e.slot_id!=="Nota_1";return t&&t.length!==0&&s.jsx(ce,{title:a,titleUrl:e.titleUrl,children:s.jsx(Oe,{slot_id:r,fullPageWidth:!0,visibleItems:1,pagination:!0,cardGap:0,children:t.map((o,i)=>{const l={...o,main:{...o.main,title:{...o.main.title,section:n?o.main.title.home:o.main.title.section}}};return I.createElement(dt,{...l,key:i,titleGradient:!0,paths:e.paths})})})})},es=e=>{const t={};for(const a in e)a.startsWith("--")&&(t[a]=e[a]);return t},b1=e=>{const{content:t,title:a,isVideo:r}=e;if(!t||t.length===0)return;const n=t[0],o=t.slice(1),i=e.slot_id&&e.slot_id!=="Nota_1";return n&&o&&s.jsxs(ce,{title:a,titleUrl:e.titleUrl,children:[s.jsx("div",{className:"sass-bd-dnfw-headerSection",children:s.jsxs("a",{style:{"--heightImageOverwriteMobile":"200%"},className:"sass-bd-dnfw-image",href:n?.info?.link?.url,target:n?.info?.link?.target,children:[s.jsxs("div",{className:"sass-bd-dnfw-blockHeadContainer",children:[s.jsx("p",{className:"sass-bd-dnfw-title",children:n?.main?.title.home}),n?.main?.subtitle?.rendered&&s.jsx("p",{className:"sass-bd-dnfw-subtitle",children:n?.main?.subtitle?.striped})]}),s.jsx(pe,{preview:n.preview})]})}),s.jsxs("div",{className:"sass-bd-dnfw-containerCards",children:[s.jsx("div",{className:"banner-context",style:{order:1},children:e.banner}),s.jsx("div",{className:"sass-bd-dnfw-newsContent",children:Array.isArray(o)&&o.map((l,h)=>{const c={...l,main:{...l.main,title:{...l.main.title,section:i?l.main.title.home:l.main.title.section}}};return s.jsx("div",{style:{order:h},children:s.jsx(Ee,{...c,isVideo:r,paths:e.paths})},h)})})]})]})},v1=({printEdition:e,title:t})=>e&&s.jsx(ce,{title:t,children:s.jsx("div",{className:"sass-bd-mif-content iframe-container",dangerouslySetInnerHTML:{__html:e||""}})}),Bn={banner:e=>s.jsx(ge,{...e,name:e.slot_id.replace("Home","block")}),readest:e=>s.jsx(Dt,{...e}),"Modulo 1x3":e=>s.jsx(Zr,{...e}),"Modulo 1x4":e=>s.jsx(Xr,{...e}),"Modulo 1x5":e=>s.jsx(Rr,{...e}),"Destacado noticias":e=>s.jsx(Kr,{...e}),"Destacado full width":e=>s.jsx(b1,{...e}),"Destacado videos":e=>s.jsx(en,{...e}),"Carrusel card":e=>s.jsx(sn,{...e}),"Carrusel story":e=>s.jsx(p1,{...e}),"Carrusel owl":e=>s.jsx(A1,{...e}),"Modulo fotogaleria":e=>s.jsx(w1,{...e}),"Carrusel opinion":e=>s.jsx(an,{...e}),"Modulo 1x3 card":e=>s.jsx(tn,{...e}),"Modulo iframe":e=>s.jsx(v1,{...e})};function Zs({component:e,slot_id:t,data:a,banners:r}){if(r)return Bn[e]&&s.jsx("div",{className:"home-slot",style:es(a),children:Bn[e]({...a,banners:r,slot_id:t})})}function C1({children:e,stylesConfigEntry:t}){return s.jsx("div",{className:"home-slot",style:es(t),children:e})}const On={Diario:e=>{if(!e?.data||e.data.length===0)return;const t=e.data.slice(1);return s.jsx(Yr,{...e.data[0],itemReverseOrder:!0,isLarge:!0,block:t,banners:e.banners,showSuper:e.showSuper,heightImageOverwrite:e.heightImageOverwrite,heightImageOverwriteMobile:e.heightImageOverwriteMobile,rightOnlyBanner:e.rightOnlyBanner,customSectionCardStyles:e.customSectionCardStyles,customNewsDescriptionStyles:e.customNewsDescriptionStyles,paths:e.paths,textPosition:e.textPosition,speculationPrerenderClass:e.speculationPrerenderClass})},"Diario con imagen":e=>{if(!e?.data||e.data.length===0)return;const t=e.data.slice(1);return s.jsx(Yr,{...e.data[0],itemReverseOrder:!0,isLarge:!0,showSuper:e.showSuper,block:t,banners:e.banners,rightOnlyBanner:e.rightOnlyBanner,customSectionCardStyles:e.customSectionCardStyles,customNewsDescriptionStyles:e.customNewsDescriptionStyles,paths:e.paths,speculationPrerenderClass:e.speculationPrerenderClass})},Super:e=>s.jsx(Je,{...e.data[0],paths:e.paths,speculationPrerenderClass:e.speculationPrerenderClass}),"3 notas verticales":e=>s.jsx(lc,{content:e.data,customLargeSection:e.customLargeSection,customSlimSection:e.customSlimSection,paths:e.paths,speculationPrerenderClass:e.speculationPrerenderClass}),"3 notas horizontales":e=>s.jsx(ic,{content:e.data,customLargeSection:e.customLargeSection,customSmallSection:e.customSmallSection,paths:e.paths,speculationPrerenderClass:e.speculationPrerenderClass})},ts=({component:e,data:t,banners:a,rightOnlyBanner:r})=>s.jsx("div",{style:es(t),children:On[e]&&On[e]({...t,rightOnlyBanner:r,banners:a})}),y1=({slots:e,DYNAMIC_SLOT_SUBINDEXES:t,stylesConfig:a,AutorIcon:r,config:n,banners:o,showTagBySection:i})=>{const l=[],c=t,d=Object.keys(e).length/c;for(let u=1;u<=d;u++)for(let m=1;m<=c;m++){const g="Home_"+u+"_"+m;!e[g]||!e[g].blockSass||!e[g].blockSass[0]||!e[g].blockSass[0].value||!e[g].blockSass[0].block||e[g].blockSass[0].block==="No Mostrar"||(e[g].blockSass[0]?.block==="Modulo iframe"?l.push(s.jsxs(vs,{id:e[g].blockSass[0].key,show:!!e[g].blockSass[0].value,order:(u-1)*c+(m-1),children:[s.jsx(Zs,{component:e[g].blockSass[0].block,banners:o,slot_id:g,data:{printEdition:e[g]?.blockSass[0].value,title:e[g]?.blockSass[0].title??"",titleUrl:e[g].blockSass[0].link??void 0}}),s.jsx($e,{children:s.jsx(Qe,{banners:o,index:"dynamic_"+u+"_"+m})})]},u+"_"+m)):l.push(s.jsxs(vs,{id:e[g].blockSass[0].key,show:!!e[g].content?.data,order:(u-1)*c+(m-1),children:[s.jsx(Zs,{component:e[g].blockSass[0].block,banners:o,slot_id:g,data:{...e[g].blockSass[0].block?a[e[g].blockSass[0].block]:[],content:e[g].content?.data??[],title:e[g].blockSass[0].title??void 0,titleUrl:e[g].blockSass[0].link??void 0,autorIcon:s.jsx(r,{}),paths:n.paths,showTagBySection:i}}),s.jsx($e,{children:s.jsx(Qe,{banners:o,index:"dynamic_"+u+"_"+m})})]},u+"_"+m)))}return l},N1=({mainBlock:e,StylesConfigMain:t,config:a,banners:r})=>{const{PUBLIC_ENV:n}=M();if(n!=="local")return null;const o=e?.news?.data||[],i=(l,h)=>({...e?.news,...t[l],data:o.slice(0,h),paths:a.paths});return s.jsxs(s.Fragment,{children:[s.jsx(ts,{component:"Super",data:i("Super",1),banners:r}),s.jsx($e,{children:s.jsx(Qe,{banners:r,index:1})}),s.jsx(ts,{component:"3 notas verticales",data:i("3 notas verticales",3),banners:r}),s.jsx($e,{children:s.jsx(Qe,{banners:r,index:1})}),s.jsx(ts,{component:"3 notas horizontales",data:i("3 notas horizontales",3),banners:r}),s.jsx($e,{children:s.jsx(Qe,{banners:r,index:1})})]})};b.AssetsPreconnect=Ca,b.AutorHeader1=zl,b.AutorHeader2=Wl,b.BannerAdvertising=ge,b.BannerAdvertisingMiddle=Qe,b.CarrouselCSR=Al,b.CarrouselIRS=Oe,b.CarruselCard=sn,b.CarruselOpinion=an,b.CommentLazyLoader=u1,b.CommonServices=Be,b.Comscore=Rs,b.ContactInfoServer=Ac,b.ContactInput=Ql,b.ContactSelect=Fl,b.ContactTextarea=Vl,b.ContentLayout1=Bt,b.ContentLayoutTema=Gl,b.DEBUG_MainSlots=N1,b.DestacadoNoticias=Kr,b.DestacadoVideos=en,b.DynamicBlockServices=yr,b.DynamicComponents=y1,b.DynamicMainSlot=ts,b.DynamicSlot=Zs,b.EditorialBlock=hc,b.ErrorComponent=jl,b.Font=Oa,b.Footer=ql,b.FormatAfterScripts=va,b.FormatScripts=ns,b.GA4=ea,b.GTM=ta,b.GalleryHeader=dn,b.GenerateBody=ml,b.GenerateHead=ul,b.Header=ac,b.HeaderSectionComponent=ln,b.HomeCard=oc,b.IframeHeader=on,b.ImageOffline=Ur,b.ImageOnline=pe,b.ImageOnlineClient=Ir,b.IssuuServices=ol,b.ItemListSchema=Ua,b.JournalistArticule2=zr,b.JournalistGroup=Wr,b.LayoutNewsComponent=jr,b.LinkComponent=O,b.LiveBlogHeader=Dr,b.Location=gl,b.LoginForm=nd,b.MainComponentServices=qo,b.Marfeel=sa,b.MasNoticiasLazyLoader=m1,b.MiddleSection=$e,b.Modulo1x3=Zr,b.Modulo1x3Card=tn,b.Modulo1x4=Xr,b.Modulo1x5=Rr,b.Modulo2Columnas=uc,b.Modulo3Columnas=Jr,b.ModuloNewsletter=mc,b.ModuloOpinion=dc,b.NewListResponseDataPH=mn,b.NewsArticle=La,b.NewsComponent=Xc,b.NewsContent=Is,b.NewsDescriptionComponent=Me,b.News_Content=hn,b.NextPrev=Ts,b.OrgList=Pa,b.PreloadImages=os,b.REPORT_REASONS=Wt,b.ReCaptchaRender=jn,b.Readest=Dt,b.RegisterForm=ad,b.ScriptHydrator=hd,b.SearchSection=ed,b.Section=ce,b.SectionCard=Ee,b.SectionCard2=dt,b.SectionCard5=Cl,b.SectionCardServerComponent=Ls,b.SectionServerComponent=pc,b.ShowSection=vs,b.SocialNetworks=Ht,b.SoftwareApplication=ka,b.SourceButtons=nc,b.SpeculationRules=Ia,b.Spin=Ze,b.StaticSlotWrapper=C1,b.SubscribeColumn=Pr,b.SubscribeRow=xr,b.SubscribeWhatsAppColumn=Il,b.TagHeader=rc,b.TagSection=Hr,b.TimeLine=_r,b.TrimPathname=wo,b.TwitterHydration=ud,b.VideoBlock3=_l,b.VideoBlock4=$l,b.VideoEmbeddedHeader=rn,b.VideoYoutubeHeader=nn,b.VideosSchemas=Ba,b.WebsiteList=xa,b.addComment=f1,b.bannersReplace=Re,b.becomeVideoObject=He,b.buildTagUrl=xe,b.coloringByStrokeSVGs=Ml,b.compileStyleProps=es,b.createAssessment=So,b.cutString=ye,b.decodeApiEnv=is,b.encodeApiEnv=Io,b.extractMainSlug=we,b.extractRealtedNews=io,b.extractRelatedNews=wt,b.formatDate=Ce,b.formatDateEdiciones=ao,b.formatDateJournalistArticule=Xe,b.formatDateTimeline=ca,b.formatNewsMeta=ga,b.formatVideoData=ya,b.generalGetData=cl,b.getCaptchaToken=Js,b.getComments=kn,b.getConfig=M,b.getDynamicSlots=il,b.getEnvironmentUrl=De,b.getEnvironmentUrlFront=lo,b.getFrontPrefix=Ie,b.getHydratorPath=Co,b.getImageUrl=ie,b.getItemFormated=Uo,b.getNextMeta=et,b.getPage=st,b.getPlayIcon=Cs,b.getPreloadImages=Bo,b.getPrevMeta=tt,b.getRelatedNewsCarrousel=yo,b.getReportReasonLabel=Cd,b.getResponse=qe,b.getResponsePromise=da,b.getSchemas=vt,b.getScriptReplaces=ls,b.getServicePrefix=ko,b.getSlugs=qa,b.getTextsStringValue=Eo,b.getTypeOfNews=bo,b.getVideoRealPath=vo,b.handleGetComments=Rt,b.initLibrary=_n,b.isPhotoGallery=To,b.metadataToJSX=wa,b.metadata_defaults=Sr,b.new_speculationRules_home=Na,b.new_speculationRules_note=Ea,b.new_speculationRules_noteList=Ta,b.new_speculationRules_section=Sa,b.parseTags=rs,b.pathnameSplit=pa,b.pickBannerVariant=bt,b.processExtractedRelatedNews=ua,b.removePages=Ma,b.reportComment=vd,b.shareButtons=Mr,b.socialIcons=lt,b.toISOWithTimeZone=Pe,b.urlReplaces=Aa,b.usePlayIcon=ys,b.validateHttpUrl=ma,b.verifyCaptchaTokenEnterprise=g1,Object.defineProperty(b,Symbol.toStringTag,{value:"Module"})}));
|
|
261
|
+
Valid keys: `+JSON.stringify(Object.keys(C),null," "));var D=oe(K,J,j,z,$+"."+J,a);if(D)return D}return null}return A(T)}function _(C){switch(typeof C){case"number":case"string":case"undefined":return!0;case"boolean":return!C;case"object":if(Array.isArray(C))return C.every(_);if(C===null||l(C))return!0;var T=u(C);if(T){var q=T.call(C),Q;if(T!==C.entries){for(;!(Q=q.next()).done;)if(!_(Q.value))return!1}else for(;!(Q=q.next()).done;){var j=Q.value;if(j&&!_(j[1]))return!1}}else return!1;return!0;default:return!1}}function L(C,T){return C==="symbol"?!0:T?T["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&T instanceof Symbol:!1}function k(C){var T=typeof C;return Array.isArray(C)?"array":C instanceof RegExp?"object":L(T,C)?"symbol":T}function G(C){if(typeof C>"u"||C===null)return""+C;var T=k(C);if(T==="object"){if(C instanceof Date)return"date";if(C instanceof RegExp)return"regexp"}return T}function B(C){var T=G(C);switch(T){case"array":case"object":return"an "+T;case"boolean":case"date":case"regexp":return"a "+T;default:return T}}function W(C){return!C.constructor||!C.constructor.name?m:C.constructor.name}return g.checkPropTypes=n,g.resetWarningCache=n.resetWarningCache,g.PropTypes=g,g},Ds}var _s,En;function kd(){if(En)return _s;En=1;var e=Os();function t(){}function a(){}return a.resetWarningCache=t,_s=function(){function r(i,l,h,c,d,u){if(u!==e){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}}r.isRequired=r;function n(){return r}var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:n,element:r,elementType:r,instanceOf:n,node:r,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n,checkPropTypes:a,resetWarningCache:t};return o.PropTypes=o,o},_s}var Tn;function Ld(){if(Tn)return $t.exports;if(Tn=1,process.env.NODE_ENV!=="production"){var e=Ps(),t=!0;$t.exports=Ud()(e.isElement,t)}else $t.exports=kd()();return $t.exports}var Pd=Ld();const Ae=Ve(Pd);var xd=["sitekey","onChange","theme","type","tabindex","onExpired","onErrored","size","stoken","grecaptcha","badge","hl","isolated"];function Gs(){return Gs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},Gs.apply(this,arguments)}function Bd(e,t){if(e==null)return{};var a={},r=Object.keys(e),n,o;for(o=0;o<r.length;o++)n=r[o],!(t.indexOf(n)>=0)&&(a[n]=e[n]);return a}function Jt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Od(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,js(e,t)}function js(e,t){return js=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},js(e,t)}var Zt=(function(e){Od(t,e);function t(){var r;return r=e.call(this)||this,r.handleExpired=r.handleExpired.bind(Jt(r)),r.handleErrored=r.handleErrored.bind(Jt(r)),r.handleChange=r.handleChange.bind(Jt(r)),r.handleRecaptchaRef=r.handleRecaptchaRef.bind(Jt(r)),r}var a=t.prototype;return a.getCaptchaFunction=function(n){return this.props.grecaptcha?this.props.grecaptcha.enterprise?this.props.grecaptcha.enterprise[n]:this.props.grecaptcha[n]:null},a.getValue=function(){var n=this.getCaptchaFunction("getResponse");return n&&this._widgetId!==void 0?n(this._widgetId):null},a.getWidgetId=function(){return this.props.grecaptcha&&this._widgetId!==void 0?this._widgetId:null},a.execute=function(){var n=this.getCaptchaFunction("execute");if(n&&this._widgetId!==void 0)return n(this._widgetId);this._executeRequested=!0},a.executeAsync=function(){var n=this;return new Promise(function(o,i){n.executionResolve=o,n.executionReject=i,n.execute()})},a.reset=function(){var n=this.getCaptchaFunction("reset");n&&this._widgetId!==void 0&&n(this._widgetId)},a.forceReset=function(){var n=this.getCaptchaFunction("reset");n&&n()},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(n){this.props.onChange&&this.props.onChange(n),this.executionResolve&&(this.executionResolve(n),delete this.executionReject,delete this.executionResolve)},a.explicitRender=function(){var n=this.getCaptchaFunction("render");if(n&&this._widgetId===void 0){var o=document.createElement("div");this._widgetId=n(o,{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(o)}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(n){this.captcha=n},a.render=function(){var n=this.props;n.sitekey,n.onChange,n.theme,n.type,n.tabindex,n.onExpired,n.onErrored,n.size,n.stoken,n.grecaptcha,n.badge,n.hl,n.isolated;var o=Bd(n,xd);return Xs.createElement("div",Gs({},o,{ref:this.handleRecaptchaRef}))},t})(Xs.Component);Zt.displayName="ReCAPTCHA",Zt.propTypes={sitekey:Ae.string.isRequired,onChange:Ae.func,grecaptcha:Ae.object,theme:Ae.oneOf(["dark","light"]),type:Ae.oneOf(["image","audio"]),tabindex:Ae.number,onExpired:Ae.func,onErrored:Ae.func,size:Ae.oneOf(["compact","normal","invisible"]),stoken:Ae.string,hl:Ae.string,badge:Ae.oneOf(["bottomright","bottomleft","inline"]),isolated:Ae.bool},Zt.defaultProps={onChange:function(){},theme:"light",type:"image",tabindex:0,size:"normal",badge:"bottomright"};var Qs,In;function Md(){if(In)return Qs;In=1;var e=Ps(),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},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},n={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};o[e.ForwardRef]=r,o[e.Memo]=n;function i(f){return e.isMemo(f)?n:o[f.$$typeof]||t}var l=Object.defineProperty,h=Object.getOwnPropertyNames,c=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,u=Object.getPrototypeOf,m=Object.prototype;function g(f,p,A){if(typeof p!="string"){if(m){var v=u(p);v&&v!==m&&g(f,v,A)}var N=h(p);c&&(N=N.concat(c(p)));for(var S=i(f),E=i(p),w=0;w<N.length;++w){var U=N[w];if(!a[U]&&!(A&&A[U])&&!(E&&E[U])&&!(S&&S[U])){var P=d(p,U);try{l(f,U,P)}catch{}}}}return f}return Qs=g,Qs}var qd=Md();const Dd=Ve(qd);function Fs(){return Fs=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},Fs.apply(this,arguments)}function _d(e,t){if(e==null)return{};var a={},r=Object.keys(e),n,o;for(o=0;o<r.length;o++)n=r[o],!(t.indexOf(n)>=0)&&(a[n]=e[n]);return a}function Gd(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var ve={},jd=0;function Qd(e,t){return t=t||{},function(r){var n=r.displayName||r.name||"Component",o=(function(l){Gd(h,l);function h(d,u){var m;return m=l.call(this,d,u)||this,m.state={},m.__scriptURL="",m}var c=h.prototype;return c.asyncScriptLoaderGetScriptLoaderID=function(){return this.__scriptLoaderID||(this.__scriptLoaderID="async-script-loader-"+jd++),this.__scriptLoaderID},c.setupScriptURL=function(){return this.__scriptURL=typeof e=="function"?e():e,this.__scriptURL},c.asyncScriptLoaderHandleLoad=function(u){var m=this;this.setState(u,function(){return m.props.asyncScriptOnLoad&&m.props.asyncScriptOnLoad(m.state)})},c.asyncScriptLoaderTriggerOnScriptLoaded=function(){var u=ve[this.__scriptURL];if(!u||!u.loaded)throw new Error("Script is not loaded.");for(var m in u.observers)u.observers[m](u);delete window[t.callbackName]},c.componentDidMount=function(){var u=this,m=this.setupScriptURL(),g=this.asyncScriptLoaderGetScriptLoaderID(),f=t,p=f.globalName,A=f.callbackName,v=f.scriptId;if(p&&typeof window[p]<"u"&&(ve[m]={loaded:!0,observers:{}}),ve[m]){var N=ve[m];if(N&&(N.loaded||N.errored)){this.asyncScriptLoaderHandleLoad(N);return}N.observers[g]=function(P){return u.asyncScriptLoaderHandleLoad(P)};return}var S={};S[g]=function(P){return u.asyncScriptLoaderHandleLoad(P)},ve[m]={loaded:!1,observers:S};var E=document.createElement("script");E.src=m,E.async=!0;for(var w in t.attributes)E.setAttribute(w,t.attributes[w]);v&&(E.id=v);var U=function(V){if(ve[m]){var Y=ve[m],F=Y.observers;for(var x in F)V(F[x])&&delete F[x]}};A&&typeof window<"u"&&(window[A]=function(){return u.asyncScriptLoaderTriggerOnScriptLoaded()}),E.onload=function(){var P=ve[m];P&&(P.loaded=!0,U(function(V){return A?!1:(V(P),!0)}))},E.onerror=function(){var P=ve[m];P&&(P.errored=!0,U(function(V){return V(P),!0}))},document.body.appendChild(E)},c.componentWillUnmount=function(){var u=this.__scriptURL;if(t.removeOnUnmount===!0)for(var m=document.getElementsByTagName("script"),g=0;g<m.length;g+=1)m[g].src.indexOf(u)>-1&&m[g].parentNode&&m[g].parentNode.removeChild(m[g]);var f=ve[u];f&&(delete f.observers[this.asyncScriptLoaderGetScriptLoaderID()],t.removeOnUnmount===!0&&delete ve[u])},c.render=function(){var u=t.globalName,m=this.props;m.asyncScriptOnLoad;var g=m.forwardedRef,f=_d(m,["asyncScriptOnLoad","forwardedRef"]);return u&&typeof window<"u"&&(f[u]=typeof window[u]<"u"?window[u]:void 0),f.ref=g,I.createElement(r,f)},h})(I.Component),i=I.forwardRef(function(l,h){return I.createElement(o,Fs({},l,{forwardedRef:h}))});return i.displayName="AsyncScriptLoader("+n+")",i.propTypes={asyncScriptOnLoad:Ae.func},Dd(i,r)}}var Vs="onloadcallback",Fd="grecaptcha";function Hs(){return typeof window<"u"&&window.recaptchaOptions||{}}function Vd(){var e=Hs(),t=e.useRecaptchaNet?"recaptcha.net":"www.google.com";return e.enterprise?"https://"+t+"/recaptcha/enterprise.js?onload="+Vs+"&render=explicit":"https://"+t+"/recaptcha/api.js?onload="+Vs+"&render=explicit"}const Un=Qd(Vd,{callbackName:Vs,globalName:Fd,attributes:Hs().nonce?{nonce:Hs().nonce}:{}})(Zt),zs=()=>s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",width:"24",height:"24",viewBox:"0 0 32 32",className:"sass-pg-cmt-lp-spin",children:s.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"})}),Hd={reportAbuseTitle:"Reportar Abuso",errorAlreadyReported:"Ya has reportado este comentario.",errorReportComment:"Error al reportar comentario",cancelButton:"Cancelar",reportButton:"Reportar",reportSuccessMessage:"¡Gracias por reportar!",reportCloseButton:"Cerrar"},zd=({isOpen:e,onClose:t,commentId:a,publication:r,username:n,CAPTCHA_KEY_V2:o,texts:i})=>{const l={...Hd,...i?.comentarios},h={...Wt,...l.reportReasons??{}},[c,d]=I.useState("form"),[u,m]=I.useState(""),[g,f]=I.useState(""),[p,A]=I.useState(""),v=[{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}],N=async()=>{if(!(!u||!a)){if(gn(document).includes(a)){f(l.errorAlreadyReported);return}d("loading"),f("");try{const w=await(await fetch("/api/comments-report",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({publication:r,username:n,id:a,captchaToken:p,type:Wt[u]})})).json();if(w.type==="success")Nd(document,a),d("success"),setTimeout(()=>{S()},3e3);else throw new Error(w.message||l.errorReportComment)}catch(E){console.error("Error reporting comment:",E),f(E.message||l.errorReportComment),d("form")}}},S=()=>{d("form"),m(""),f(""),t()};return!e||!a||!n?null:s.jsx("div",{className:"sass-pg-cmt-rp-overlay",children:s.jsxs("div",{className:"sass-pg-cmt-rp-popup",children:[s.jsx("button",{className:"close-reply-form su-flex su-absolute su-p-0 su-bg-transparent su-border-none",onClick:S,children:s.jsx(Ke,{})}),s.jsx("h2",{className:"sass-pg-cmt-rp-title",children:l.reportAbuseTitle}),c==="loading"&&s.jsx("div",{className:"sass-pg-cmt-rp-loadingContainer",children:s.jsx(zs,{})}),c==="form"||c==="loading"?s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"sass-pg-cmt-rp-optionsContainer",children:v.map(E=>s.jsxs("label",{className:"sass-pg-cmt-rp-option",children:[s.jsx("input",{type:"radio",name:"reportReason",value:E.id,checked:u===E.id,onChange:w=>m(w.target.value),className:"sass-pg-cmt-rp-radioInput"}),s.jsx("span",{className:"sass-pg-cmt-rp-radioCustom"}),s.jsx("span",{className:"sass-pg-cmt-rp-optionLabel",children:E.label})]},E.id))}),g&&s.jsx("div",{className:"sass-pg-cmt-rp-errorMessage",children:g}),s.jsx(Un,{sitekey:o,theme:"light",size:"normal",onChange:E=>A(E??""),onExpired:()=>A("")}),s.jsxs("div",{className:"sass-pg-cmt-rp-buttons",children:[s.jsx("button",{onClick:S,className:"sass-pg-cmt-rp-cancelButton",children:l.cancelButton}),s.jsx("button",{onClick:N,disabled:!u,className:"sass-pg-cmt-rp-reportButton",children:l.reportButton})]})]}):s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"sass-pg-cmt-rp-successContainer",children:[s.jsx("div",{className:"sass-pg-cmt-rp-thumbsUp",children:s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:132,height:120,fill:"none",children:s.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"})})}),s.jsx("p",{className:"sass-pg-cmt-rp-successMessage",children:l.reportSuccessMessage})]}),s.jsx("div",{className:"sass-pg-cmt-rp-buttons",children:s.jsx("button",{onClick:S,className:["sass-pg-cmt-rp-closeButton","sass-pg-cmt-rp-buttonAlone"].join(" "),children:l.reportCloseButton})})]})]})})};function Wd(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 Xt(e){const t=e.comments.map(a=>{if(a.user)return{...a,user:a.user,text:a.text,reply:a.reply?Xt({comments:a.reply}).comments:a.reply};const{user:r,text:n}=Wd(a.text);return{...a,user:r||!1,text:n,reply:a.reply?Xt({comments:a.reply}).comments:a.reply}});return{...e,comments:t}}async function Rt({publication:e,path:t,size:a=5,sizereply:r=2,id:n,lastid:o,state:i="5,6",apiToken:l,API_ENV:h}){const{PUBLIC_ENV:c}=h;if(c==="prod"){const d=await kn({publication:e,path:t,size:a,sizereply:r,id:n,lastid:o,state:i,apiToken:l,API_ENV:h});return Xt(d[0])}else{const d=await fetch(`/api/comments-get?publication=${e}&path=${t}&size=${a}&sizereply=${r}&lastid=${o}`);if(!d.ok)throw new Error(`Error al obtener comentarios: ${d.status}`);const u=await d.json();return Xt(u.data[0])}}async function kn({publication:e,path:t,size:a=5,sizereply:r=2,id:n,lastid:o,state:i="5,6",apiToken:l,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(!l)throw new Error("Missing CMS API token");const{PUBLIC_ENV:c,PUBLIC_API_HOST:d="dummy",PUBLIC_API_PATH:u,PUBLIC_API_PATH_VERSION:m}=h,g=parseInt(String(a),10),f=parseInt(String(r),10);if(isNaN(g)||g<=0)throw new Error("Invalid size parameter");if(isNaN(f)||f<0)throw new Error("Invalid sizereply parameter");const p=c!=="prod"?`${d}${u}`:"",A=new URLSearchParams({publication:e,path:t,size:g.toString(),sizereply:f.toString(),state:i});n&&A.append("id",n),o&&A.append("lastid",o);const v=`${p}${m}/newcomments/get?${A.toString()}`;try{const{data:N}=await re.get(v,{headers:{"x-api-token":l,"Cache-Control":"max-age=0, no-cache, no-store, must-revalidate",Pragma:"no-cache",Expires:"0"}});if(!N)throw new Error("No comments data received");return N.data||N||[]}catch(N){if(console.error("Error fetching comments:",N),re.isAxiosError(N)){const S=N.response?.status,E=N.response?.data;throw S===404?new Error("Comments not found"):S===403?new Error("Access forbidden - check API token"):S===401?new Error("Unauthorized - invalid API token"):S===500?new Error("Internal server error from CMS"):new Error(E?.error||E?.message||`HTTP ${S}: Failed to fetch comments`)}throw N}}const Yd=(e,t)=>{const[a,r]=I.useState(void 0),{PUBLIC_PUBLICATION_ID:n}=t,o=n;return I.useEffect(()=>{if(a)return;(async()=>{const{PUBLIC_X_SECURITY_TOKEN:l}=t;try{const h=await Rt({publication:o,path:e??"",size:5,sizereply:2,id:void 0,lastid:void 0,state:"5,6",apiToken:l,API_ENV:t});r(h??[])}catch{r({comments:[],morecomment:!1})}})()},[a]),{comments:a,setComments:r}},Ln=({username:e,date:t,DATE_CONFIG:a})=>s.jsxs("div",{className:"comment-header su-flex su-items-center su-relative su-flex-wrap",children:[s.jsx("span",{className:"comment-username su-font-bold su-truncate",children:e}),s.jsx("span",{className:"comment-header-dot",children:"•"}),s.jsx("span",{className:"comment-date su-truncate",children:yd(Ce(Number(t),a))})]}),Pn=({user:e})=>s.jsx("div",{className:"comment-avatar su-flex-center su-rounded-full su-font-bold su-overflow-hidden",children:e.picture?s.jsx("img",{className:"comment-avatar-img su-h-full",src:e.picture,alt:e.username}):e.firstname.charAt(0).toUpperCase()}),xn=({isReply:e=!1,onReply:t,onFlag:a})=>s.jsxs("div",{className:"comment-actions su-flex",children:[!e&&t&&s.jsx("button",{onClick:t,className:"comment-action-btn su-flex su-items-center su-gap-1 su-bg-transparent su-border-none",children:s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",children:[s.jsx("g",{clipPath:"url(#a)",children:s.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"})}),s.jsx("defs",{children:s.jsx("clipPath",{id:"a",children:s.jsx("path",{fill:"#fff",d:"M0 0h23.942v24H0z"})})})]})}),s.jsx("button",{onClick:a,className:"comment-action-btn su-flex su-items-center su-gap-1 su-bg-transparent su-border-none",children:s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:25,height:24,fill:"none",children:[s.jsx("g",{clipPath:"url(#a)",children:s.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"})}),s.jsx("defs",{children:s.jsx("clipPath",{id:"a",children:s.jsx("path",{fill:"#fff",d:"M.133 0h24v24h-24z"})})})]})})]}),$d={commentInputLabel:"Comentario",commentInputPlaceholder:"Ingresa un comentario"},Ws=({commentRef:e,captchaToken:t="",setIsDisabled:a,API_ENV:r,texts:n})=>{const o={...$d,...n?.comentarios};return I.useEffect(()=>{const i=e.current;if(!i)return;const l=()=>{const c=i.value.length;i.parentElement&&(i.parentElement.dataset.text=`${c}/${ke}`),i.classList.toggle("over-limit",c>ke),a(!Yt(e,t,r).boolean)};return i.addEventListener("input",l),l(),()=>i.removeEventListener("input",l)},[e,t,a]),s.jsxs("div",{className:"su-relative",children:[s.jsx("label",{className:"su-block su-font-normal comment-input-label",children:o.commentInputLabel}),s.jsx("textarea",{className:"su-w-full su-border-none su-outline-none",ref:e,name:"comment",placeholder:o.commentInputPlaceholder,rows:2})]})},Ys=({commentRef:e,captchaToken:t="",setCaptchaToken:a,children:r,API_ENV:n})=>{const o=Yt(e,t,n);return s.jsxs("div",{className:"form-actions su-flex-between",children:[s.jsx(Un,{sitekey:n.CAPTCHA_KEY_V2??"",theme:"light",size:"normal",onChange:i=>a(i??""),onExpired:()=>a("")}),s.jsxs("div",{className:"submit-zone su-relative su-flex su-flex-col su-items-end",children:[r,!o.boolean&&s.jsx("p",{className:"submit-warning su-hidden su-font-normal su-p-0",children:o.text})]})]})},Kd={anonimusContinueButton:"Continuar de forma anónima",anonimusDividerOr:"o",anonimusImageAlt:"Imagen incognito",popupCloseAriaLabel:"Cerrar"},Jd={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?",alreadyHasAccountText:"¿Ya 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 Zd({onClose:e,handleGoogleLogin:t,icon:a,texts:r,API_ENV:n}){const o={...Jd,...Kd,...r?.comentarios},i=d=>{!window||!window.location||(document.cookie=`redirect_after_login_1=${window.location.pathname}; path=/; max-age=10000`,window.location.pathname="/auth/login"+(d?"#forgot":""))},l=()=>{!window||!window.location||(document.cookie=`redirect_after_login_1=${window.location.pathname}; path=/; max-age=10000`,window.location.pathname="/auth/register")},{PUBLIC_ASSETS_URL:h}=n,c=(h&&h!=="false"?h:"")+"/versions/images/anonimus-img.png";return s.jsx("div",{className:"sass-pg-cmt-lp-overlay",role:"dialog","aria-modal":"true",id:"pop-overlay",onClick:d=>{const u=d.target;u&&u.id==="pop-overlay"&&e()},children:s.jsxs("div",{className:"sass-pg-cmt-lp-card",children:[s.jsxs("header",{className:"sass-pg-cmt-lp-header",children:[s.jsx("div",{className:"sass-pg-cmt-lp-logo",children:a?a():null}),s.jsx("button",{onClick:()=>{e()},className:"sass-pg-cmt-lp-close","aria-label":o.popupCloseAriaLabel,children:s.jsx(Ke,{})})]}),s.jsxs("div",{className:"sass-pg-cmt-lp-anonimusWrapper",children:[s.jsx("img",{className:"sass-pg-cmt-lp-anonimusImage",src:c,alt:o.anonimusImageAlt}),s.jsx("button",{onClick:()=>{e(!0)},className:"sass-pg-cmt-lp-anonimus",children:s.jsx("span",{children:o.anonimusContinueButton})})]}),s.jsx("div",{className:"sass-pg-cmt-lp-divider",children:s.jsx("span",{children:o.anonimusDividerOr})}),s.jsxs("button",{onClick:t,className:"sass-pg-cmt-lp-google",children:[s.jsx("img",{src:"https://www.gstatic.com/firebasejs/ui/2.0.0/images/auth/google.svg",alt:"",className:"sass-pg-cmt-lp-googleIcon"}),s.jsx("span",{children:o.GoogleButtonText})]}),s.jsx("button",{type:"submit",className:"sass-pg-cmt-lp-primary",onClick:()=>{i(!1)},children:o.loginButtonText}),s.jsxs("p",{className:"sass-pg-cmt-lp-switch",children:[o.noAccountText,s.jsx("button",{type:"button",onClick:l,children:o.registerButtonText})]}),s.jsx("button",{type:"button",className:"sass-pg-cmt-lp-forgotPassword",onClick:()=>{i(!0)},children:o.forgotPasswordText})]})})}const Xd={submitCommentButton:"Enviar Comentario"},$s=({onClick:e,isDisabled:t,API_ENV:a,icon:r,handleGoogleLogin:n,showAlert:o,texts:i})=>{const l={...Xd,...i?.comentarios},[h,c]=I.useState(!1),[d,u]=I.useState(!1),[m,g]=I.useState(!1);I.useEffect(()=>{let p=null;return h&&(p=setTimeout(()=>{c(!1)},2400)),()=>{p&&clearTimeout(p)}},[h]),I.useEffect(()=>{if(!d||!a.CONFIG_commentsV2||!o||!document)return;const p=document.getElementById("comment-button");if(!p)return;const A=p.closest(".comment-form"),v=A?.querySelector('input[name="username"]'),N=A?.querySelector('textarea[name="comment"]'),S=A?.querySelector("textarea.g-recaptcha-response")??document.querySelector("#g-recaptcha-response");v?.value?.trim()&&N?.value?.trim()&&S?.value?.trim()&&p.click()});const f=ne("/Success.gif");return h?s.jsx("div",{className:"success-gif-container su-flex-center su-relative",children:s.jsx("img",{className:"success-gif su-absolute",src:f})}):s.jsxs(s.Fragment,{children:[m&&a.CONFIG_commentsV2&&o&&s.jsx(Zd,{API_ENV:a,icon:r,handleGoogleLogin:n,texts:i,onClose:p=>{p&&u(!0),g(!1)}}),s.jsxs("button",{type:"button",onClick:async p=>{if(!d&&a.CONFIG_commentsV2&&o){g(!0),console.log("open popup");return}await e(p)&&(a.CONFIG_commentsV2&&o&&u(!1),c(!0))},id:"comment-button",className:`submit-btn su-bg-transparent su-font-bold ${t?"disabled":"active"}`,children:[l.submitCommentButton,s.jsx("svg",{style:{minWidth:16},width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:s.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"})})]})]})},Ks=async({path:e,ref:t,captchaToken:a,button:r,user:n,id:o,addComment:i,API_ENV:l,anonimusUser:h})=>{const c=t.current?.value||"",{PUBLIC_PUBLICATION_ID:d}=l,u=d;if(console.log("check",n,h),!Yt(t,a,l).boolean||!n&&!h){console.log("warn");const g=r.nextElementSibling;return g&&(g.style.display="block"),!1}if(!n&&!h)return;const m=n?c:"[["+h+"]] "+c;try{const g=Date.now(),f=await fetch("/api/comments-add",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({publication:u,path:e,id:o,username:n?n.username:!1,comment:m,recaptchaResponse:a})});let p=null;try{p=await f.json()}catch(E){console.error("Error parsing JSON response:",E)}if(!f.ok)throw new Error(`Error al enviar comentario: ${p?.message} status: ${f.status}`);const A=Date.now(),v=Math.max(0,2400+Math.abs(A-g)),N=n||{username:h,firstname:h},S={username:N.username,firstname:N.firstname,...N.lastname&&{lastname:N.lastname},...N.picture&&{picture:N.picture}};return i({id:A.toString(),text:c,user:S,date:{time:Date.now()},reply:[]}),t.current&&(t.current.value=""),v}catch(g){return console.error("Error enviando comentario:",g),alert(g.message||"Error al enviar el comentario."),!1}},Rd=({replyingTo:e,commentRef:t,user:a,path:r,addReply:n,closeForm:o,API_ENV:i,texts:l})=>{const[h,c]=I.useState(!0),[d,u]=I.useState(""),m=()=>{t.current?.parentElement&&(t.current.parentElement.dataset.text=`0/${ke}`),c(!0),o()};return s.jsxs("div",{className:"comment-form reply-form su-p-8 su-relative",children:[s.jsx("button",{className:"close-reply-form su-flex su-absolute su-p-0 su-bg-transparent su-border-none",onClick:m,children:s.jsx(Ke,{})}),s.jsx(Ws,{commentRef:t,captchaToken:d,setIsDisabled:c,API_ENV:i,texts:l}),s.jsx(Ys,{commentRef:t,captchaToken:d,setCaptchaToken:u,API_ENV:i,children:s.jsx($s,{onClick:async g=>{if(h)return;const f=await Ks({path:r,ref:t,captchaToken:d,button:g.currentTarget,user:a,id:e,addComment:n,API_ENV:i});return f&&typeof f=="number"?(setTimeout(()=>{m()},f),!0):!1},isDisabled:h,API_ENV:i,texts:l})})]})},e1={replyingToLabel:"Respondiendo a"},t1=({reply:e,replyingTo:t,user:a,onFlag:r,DATE_CONFIG:n,texts:o})=>{const i={...e1,...o?.comentarios},l=e.text;let h=`${Le.firstname} ${Le.lastname??""}`,c=Le.username;return e.user&&(h=`${e.user.firstname} ${e.user.lastname??""}`,c=e.user.username),s.jsx("div",{className:"comment-item reply",children:s.jsxs("div",{className:"comment-header-container su-flex su-relative",children:[s.jsx(Pn,{user:e.user?e.user:Le}),s.jsxs("div",{style:{flex:1},children:[s.jsx(Ln,{username:h,date:e.date.time,DATE_CONFIG:n}),s.jsxs("div",{className:"comment-reply-to",children:[i.replyingToLabel," ",s.jsx("strong",{children:t})]}),s.jsx("p",{className:"comment-text su-font-normal",children:l}),a?.username.toLowerCase()!==c.toLowerCase()&&s.jsx(xn,{isReply:!0,onFlag:()=>r(e.id)})]})]})})},s1={moreRepliesButton:"Más Respuestas"},a1=({comment:e,replyingTo:t,path:a,user:r,handleReplyingTo:n,onFlag:o,API_ENV:i,texts:l})=>{const h={...s1,...l?.comentarios},c={morereply:e.morereply??!1,reply:e.reply?e.reply:[]},[d,u]=I.useState(c),[m,g]=I.useState(!1),{PUBLIC_PUBLICATION_ID:f,PUBLIC_X_SECURITY_TOKEN:p}=i,A=e.text,v=I.useRef(null);let N=`${Le.firstname} ${Le.lastname??""}`,S=Le.username;e.user&&(N=`${e.user.firstname} ${e.user.lastname??""}`,S=e.user.username);const E=w=>{u({morereply:d.morereply,reply:[w,...d.reply]})};return s.jsx("div",{className:"comment-item",children:s.jsxs("div",{className:"comment-header-container su-flex su-relative","data-hasreplies":d.reply.length>0?"true":"false",children:[s.jsx(Pn,{user:e.user?e.user:Le}),s.jsxs("div",{style:{flex:1},children:[s.jsx(Ln,{username:N,date:e.date.time,DATE_CONFIG:i}),s.jsx("p",{className:"comment-text su-font-normal",children:A}),r?.username.toLowerCase()!==S.toLowerCase()&&s.jsx(xn,{onReply:()=>n(e.id),onFlag:()=>o(e.id)}),t===e.id&&r&&s.jsx(Rd,{replyingTo:t,commentRef:v,addReply:E,user:r,path:a,API_ENV:i,closeForm:()=>n(""),texts:l}),d.reply.length>0&&s.jsxs("div",{className:"comment-replies",children:[d.reply.map(w=>s.jsx(t1,{user:r,reply:w,replyingTo:N,onFlag:o,DATE_CONFIG:i,texts:l},w.id)),m?s.jsx("div",{style:{marginLeft:"4rem",position:"relative"},children:s.jsx(zs,{})}):d.morereply&&s.jsx("button",{className:"comment-replies-button reply-button su-flex-center su-rounded-full su-border-none su-relative",onClick:async()=>{const w=d.reply[d.reply.length-1]?.id;g(!0);try{const P=await Rt({publication:f??"",path:a??"",size:2,sizereply:2,id:e.id,lastid:w,state:"5,6",apiToken:p??"",API_ENV:i});g(!1),u({morereply:P.morecomment,reply:[...d.reply,...P.comments]})}catch(U){throw g(!1),new Error(`Error al obtener comentarios: ${U}`)}},children:h.moreRepliesButton})]})]})]})})},r1=({commentRef:e,user:t,path:a,addComment:r,API_ENV:n,texts:o})=>{const[i,l]=I.useState(!0),[h,c]=I.useState("");return s.jsxs("div",{className:"comment-form su-p-8 su-relative",children:[s.jsx(Ws,{commentRef:e,captchaToken:h,setIsDisabled:l,API_ENV:n,texts:o}),s.jsx(Ys,{API_ENV:n,commentRef:e,captchaToken:h,setCaptchaToken:c,children:s.jsx($s,{onClick:async d=>{if(i)return;const u=await Ks({path:a,ref:e,captchaToken:h,button:d.currentTarget,user:t,addComment:r,API_ENV:n});return u&&typeof u=="number"?(e.current?.parentElement&&(e.current.parentElement.dataset.text=`0/${ke}`),l(!0),setTimeout(()=>{e.current?.parentElement&&(e.current.parentElement.dataset.text=`0/${ke}`),l(!0)},u),!0):!1},isDisabled:i,API_ENV:n,texts:o})})]})},n1={usernameInputLabel:"Nombre",usernameInputPlaceholder:"Ingresa tu nombre"},o1=({usernameRef:e,texts:t})=>{const a={...n1,...t?.comentarios};return s.jsxs("div",{className:"comment-username su-font-bold su-truncate",children:[s.jsx("label",{className:"su-block su-font-normal comment-input-label",children:a.usernameInputLabel}),s.jsx("input",{ref:e,name:"username",className:"su-w-full su-border-none su-outline-none",placeholder:a.usernameInputPlaceholder})]})},i1=({usernameRef:e,commentRef:t,path:a,icon:r,handleGoogleLogin:n,addComment:o,API_ENV:i,texts:l})=>{const[h,c]=I.useState(!0),[d,u]=I.useState(""),m=async g=>{if(h){console.log("error");return}if(!Yt(t,d,i).boolean){console.log("invalidForm");return}const f=e.current.value,p=await Ks({path:a,ref:t,captchaToken:d,button:g.currentTarget,user:void 0,addComment:o,API_ENV:i,anonimusUser:f});return u(""),p&&typeof p=="number"?(t.current?.parentElement&&(t.current.parentElement.dataset.text=`0/${ke}`),c(!0),setTimeout(()=>{t.current?.parentElement&&(t.current.parentElement.dataset.text=`0/${ke}`),c(!0)},p),!0):!1};return s.jsx(s.Fragment,{children:s.jsxs("div",{className:"comment-form anoninus-form su-p-8 su-relative",children:[s.jsx(o1,{usernameRef:e,texts:l}),s.jsx(Ws,{commentRef:t,captchaToken:d,setIsDisabled:c,API_ENV:i,texts:l}),s.jsx(Ys,{API_ENV:i,commentRef:t,captchaToken:d,setCaptchaToken:u,children:s.jsx($s,{onClick:m,isDisabled:h,API_ENV:i,handleGoogleLogin:n,icon:r,showAlert:!0,texts:l})})]})})},l1={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",anonimusPromptPrefix:"¿Querés debatir con otros lectores? Comentá ahora de forma anónima o ",anonimusPromptLinkText:"INICIA SESIÓN AQUÍ",anonimusPromptSuffix:" para responder a otros usuarios y ser parte activa de nuestra comunidad."},c1=({isAuthenticated:e,path:t,user:a,handleLogout:r,icon:n,handleGoogleLogin:o,API_ENV:i,texts:l})=>{const h={...l1,...l?.comentarios},{PUBLIC_PUBLICATION_ID:c,PUBLIC_X_SECURITY_TOKEN:d}=i,u=c??"",m=t.replaceAll("/","|"),[g,f]=I.useState(void 0),[p,A]=I.useState(""),{comments:v,setComments:N}=Yd(m,i),[S,E]=I.useState(!1),w=I.useRef(null),U=I.useRef(null),P=L=>{A(p===L?"":L)},V=L=>{N(v?{...v,comments:[L,...v.comments??[]]}:void 0)},Y=L=>{f(L)},F=async()=>{if(!v||!v.morecomment||v.comments.length===0)return;const L=v.comments[v.comments.length-1];if(!L)return;E(!0);const k=L.id;try{const G=await Rt({publication:u,path:m??"",size:5,sizereply:2,id:void 0,lastid:k,state:"5,6",apiToken:d,API_ENV:i});N({morecomment:G.morecomment??!1,comments:[...v.comments,...G.comments]}),E(!1)}catch(G){throw E(!1),new Error(`Error al obtener comentarios: ${G}`)}},x=v?.comments&&v.comments.length>0,H=x?h.commentHeaderMessageWithComments:h.commentHeaderMessageEmpty,te=s.jsx("div",{style:{display:"flex",width:"100%",justifyContent:"center"},children:s.jsx(zs,{})}),_=()=>{!window||!window.location||(document.cookie=`redirect_after_login_1=${window.location.pathname}; path=/; max-age=10000`,window.location.pathname="/auth/login")};return s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"comments-container",children:s.jsx(ce,{title:i.CONFIG_commentsV2||x||e?h.commentsSectionTitle:!1,children:s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"comments-header",children:e&&a?s.jsxs(s.Fragment,{children:[s.jsx(bd,{user:a,handleLogout:r,message:H,texts:l}),s.jsx(r1,{commentRef:w,user:a,addComment:V,path:m,API_ENV:i,texts:l})]}):i.CONFIG_commentsV2?s.jsxs(s.Fragment,{children:[s.jsxs("p",{className:"anonimus-message",children:[h.anonimusPromptPrefix,s.jsx("button",{className:"su-border-none su-p-0",onClick:_,children:h.anonimusPromptLinkText}),h.anonimusPromptSuffix]}),s.jsx(i1,{usernameRef:U,commentRef:w,icon:n,handleGoogleLogin:o,addComment:V,path:m,API_ENV:i,texts:l})]}):null}),v?v.comments&&v.comments.length>0?s.jsxs("div",{className:"comments-list","data-isauthenticated":`${e}`,children:[v.comments.map(L=>s.jsx(a1,{comment:L,replyingTo:p,handleReplyingTo:P,onFlag:Y,user:a??Le,path:m,API_ENV:i,texts:l},L.id)),S&&te]}):null:te,v?.morecomment&&!S&&s.jsx("button",{className:"comment-replies-button su-flex-center su-rounded-full",onClick:F,children:h.loadMoreButton})]})})}),s.jsx(zd,{username:a?.username??void 0,publication:u,commentId:g,isOpen:g!==void 0,onClose:()=>f(void 0),CAPTCHA_KEY_V2:i.CAPTCHA_KEY_V2??"",texts:l})]})};function d1({isAuthenticated:e,setIsAuthenticated:t,loginUrl:a,user:r,path:n,checkAuth:o,icon:i,API_ENV:l,texts:h}){const c=async()=>{if(l.PUBLIC_ENV==="local")await fetch("/api/auth/logout",{method:"GET",credentials:"include"}),t(!1);else{const u=window.location.pathname;window.location.href=`${window.location.origin}/api/auth/logout?redirect=${encodeURIComponent(u)}`}},d=async()=>{if(l.PUBLIC_ENV==="local"){await fetch("/api/auth/debug-login",{method:"GET",credentials:"include"}),localStorage.setItem("cognito-login","success:"+Date.now()),o();return}if(!a)return;const u=encodeURIComponent(window.location.pathname);window.location.href=`/api/auth/login?redirect=${u}`};return s.jsx(s.Fragment,{children:s.jsx(c1,{isAuthenticated:e,handleLogout:c,handleGoogleLogin:d,icon:i,path:n,user:e?r:void 0,API_ENV:l,texts:h})})}function h1({isVisible:e,path:t,icon:a,API_ENV:r,texts:n}){const[o,i]=I.useState(null),[l,h]=I.useState(null),c=r?.COGNITO_AUTH_PREFIX??"ASTRO_",d=I.useCallback(async()=>{if(e){if(document.cookie.search(c+"IS_AUTH=true")===-1){i(!1),h(null);return}try{const p=await(await fetch("/api/auth/user",{credentials:"include"})).json();i(p.isAuthenticated??!1),h(p.user??null),document.cookie="redirect_after_login_1=; Max-Age=0; path=/"}catch(f){console.error("Error checking auth:",f),i(!1),h(null)}}},[e,c]);I.useEffect(()=>{d()},[d,e]),I.useEffect(()=>{if(!l||!e||typeof window>"u")return;const f=window;if(typeof f!="function"){console.warn("gtag no está disponible todavía");return}f.gtag("set",{user_id:l.username}),console.log("username setted successfully")},[l,e]);const u="/api/auth/login",m=s.jsx("div",{className:"su-flex-center su-relative",style:{minHeight:310}});if(o===null)return m;const g=t.replaceAll("|","/");return e?s.jsx(d1,{icon:a,isAuthenticated:o,setIsAuthenticated:i,loginUrl:u,user:l??void 0,checkAuth:d,path:g,API_ENV:r,texts:n}):m}const u1=({internalPath:e,icon:t,API_ENV:a,texts:r})=>(I.useEffect(()=>{if(!document)return;if(document.getElementById("recaptcha-enterprise-script"))return console.log("recaptcha already appended");const o=document.createElement("script");o.id="recaptcha-enterprise-script",o.defer=!0,o.async=!0,o.src=`https://www.google.com/recaptcha/enterprise.js?render=${a.CAPTCHA_KEY}`,document.body.appendChild(o),console.log("appended recaptcha")},[]),s.jsx("div",{className:"sass-pg-news-commentLazyLoader",style:{width:"100%"},suppressHydrationWarning:!0,children:s.jsx(h1,{path:e,icon:t,isVisible:!0,API_ENV:is(a),texts:r})})),m1=({section:e,internalPath:t,stylesConfig:a,paths:r,API_ENV:n,fetchConfig:o})=>s.jsx("div",{suppressHydrationWarning:!0,style:a["Modulo 1x3 Client"]??a["Modulo 1x3"],children:s.jsx(gd,{section:e,internalPath:t,stylesConfig:a,isVisible:!0,paths:r,fetchConfig:o,API_ENV:is(n)})});async function f1({publication:e,path:t,username:a,comment:r,id:n,recaptchaResponse:o,baseUrl:i,apiToken:l,securityToken:h,COMMENTS_VARS:c}){if(console.log("Adding comment with data:",{publication:e,path:t,username:a,comment:r,id:n,recaptchaResponse:o}),!e||!t||!r)return{type:"error",message:"Faltan campos obligatorios. Por favor, completa todos los campos.",status:400};if([e,t,r].some(f=>typeof f!="string"))return{type:"error",message:"Datos inválidos. Intenta de nuevo.",status:400};if(!r.trim())return{type:"error",message:"El comentario no puede estar vacío.",status:400};const d=await fn(o,c);if(console.log("Verifying captcha token...",d),!d)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`,m={publication:e,path:t.replace(/\|/gi,"/"),text:r.trim()};a&&(m.username=a),n&&(m.id=n);const g=new URLSearchParams(m);try{const{data:f}=await re.get(`${u}?${g.toString()}`,{headers:{"Content-Type":"application/json","x-security-token":h,"x-api-token":l,"User-Agent":"amplifyapp-comments-saas"}});return!f||f.error?(console.error("CMS error response:",f),{type:"error",message:"No se pudo guardar el comentario. Intenta nuevamente en unos minutos.",status:502}):(console.log("Comentario enviado con éxito",f),{type:"success",message:"Comentario enviado con éxito.",status:200})}catch(f){if(console.error("Error enviando comentario:",f),re.isAxiosError(f)){const p=f.response?.status??500,A=f.response?.data;return p===400?{type:"error",message:A?.message||"Solicitud inválida. Verifica que los campos sean correctos.",status:400}:p===403?{type:"error",message:"Captcha inválido o acceso prohibido.",status:403}:p===500?{type:"error",message:"Error interno del servidor del CMS.",status:500}:{type:"error",message:A?.message||"No se pudo enviar el comentario.",status:p}}return{type:"error",message:"Error inesperado. Intenta nuevamente.",status:500}}}const Js=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((r,n)=>{a.enterprise.ready(async()=>{try{const o=await a.enterprise.execute(t,{action:e});if(!o)throw new Error("Captcha token no generado");r(o)}catch(o){n(o)}})})},g1=async({token:e,projectId:t,captchaKey:a,apiKey:r,captchaAction:n})=>{if(!e)throw new Error("No token provided");if(!t||!a||!r)throw new Error("Missing project ID or site key");if(!n)throw new Error("No action provided");try{const i=await(await fetch(`https://recaptchaenterprise.googleapis.com/v1/projects/${t}/assessments?key=${r}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({event:{token:e,siteKey:a,expectedAction:n}})})).json();if(!i?.tokenProperties?.valid)throw new Error(`The token was: ${i?.tokenProperties?.invalidReason}`);if(i.tokenProperties.action!==n)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(o){throw console.error("Recaptcha verification failed",o),new Error(String(o))}},p1=e=>{const{content:t,title:a,slot_id:r}=e,n=e.slot_id&&e.slot_id!=="Nota_1";return t&&t.length!==0&&s.jsx(ce,{title:a,titleUrl:e.titleUrl,children:s.jsx(Oe,{slot_id:r,cardWidth:200,children:t.map((o,i)=>{const l={...o,main:{...o.main,title:{...o.main.title,section:n?o.main.title.home:o.main.title.section}}};return s.jsx(dt,{...l,titleGradient:!0,paths:e.paths},i)})})})},A1=e=>{const{content:t,title:a,slot_id:r}=e,n=e.slot_id&&e.slot_id!=="Nota_1";return t&&t.length!==0&&s.jsx(ce,{title:a,titleUrl:e.titleUrl,children:s.jsx(Oe,{slot_id:r,cardWidth:343,cardGap:32,visibleItems:3,children:t.map((o,i)=>{const l={...o,main:{...o.main,title:{...o.main.title,section:n?o.main.title.home:o.main.title.section}}};return s.jsx(dt,{...l,titleGradient:!0,paths:e.paths},i)})})})},w1=e=>{const{content:t,title:a,slot_id:r}=e,n=e.slot_id&&e.slot_id!=="Nota_1";return t&&t.length!==0&&s.jsx(ce,{title:a,titleUrl:e.titleUrl,children:s.jsx(Oe,{slot_id:r,fullPageWidth:!0,visibleItems:1,pagination:!0,cardGap:0,children:t.map((o,i)=>{const l={...o,main:{...o.main,title:{...o.main.title,section:n?o.main.title.home:o.main.title.section}}};return I.createElement(dt,{...l,key:i,titleGradient:!0,paths:e.paths})})})})},es=e=>{const t={};for(const a in e)a.startsWith("--")&&(t[a]=e[a]);return t},b1=e=>{const{content:t,title:a,isVideo:r}=e;if(!t||t.length===0)return;const n=t[0],o=t.slice(1),i=e.slot_id&&e.slot_id!=="Nota_1";return n&&o&&s.jsxs(ce,{title:a,titleUrl:e.titleUrl,children:[s.jsx("div",{className:"sass-bd-dnfw-headerSection",children:s.jsxs("a",{style:{"--heightImageOverwriteMobile":"200%"},className:"sass-bd-dnfw-image",href:n?.info?.link?.url,target:n?.info?.link?.target,children:[s.jsxs("div",{className:"sass-bd-dnfw-blockHeadContainer",children:[s.jsx("p",{className:"sass-bd-dnfw-title",children:n?.main?.title.home}),n?.main?.subtitle?.rendered&&s.jsx("p",{className:"sass-bd-dnfw-subtitle",children:n?.main?.subtitle?.striped})]}),s.jsx(pe,{preview:n.preview})]})}),s.jsxs("div",{className:"sass-bd-dnfw-containerCards",children:[s.jsx("div",{className:"banner-context",style:{order:1},children:e.banner}),s.jsx("div",{className:"sass-bd-dnfw-newsContent",children:Array.isArray(o)&&o.map((l,h)=>{const c={...l,main:{...l.main,title:{...l.main.title,section:i?l.main.title.home:l.main.title.section}}};return s.jsx("div",{style:{order:h},children:s.jsx(Ee,{...c,isVideo:r,paths:e.paths})},h)})})]})]})},v1=({printEdition:e,title:t})=>e&&s.jsx(ce,{title:t,children:s.jsx("div",{className:"sass-bd-mif-content iframe-container",dangerouslySetInnerHTML:{__html:e||""}})}),Bn={banner:e=>s.jsx(ge,{...e,name:e.slot_id.replace("Home","block")}),readest:e=>s.jsx(Dt,{...e}),"Modulo 1x3":e=>s.jsx(Zr,{...e}),"Modulo 1x4":e=>s.jsx(Xr,{...e}),"Modulo 1x5":e=>s.jsx(Rr,{...e}),"Destacado noticias":e=>s.jsx(Kr,{...e}),"Destacado full width":e=>s.jsx(b1,{...e}),"Destacado videos":e=>s.jsx(en,{...e}),"Carrusel card":e=>s.jsx(sn,{...e}),"Carrusel story":e=>s.jsx(p1,{...e}),"Carrusel owl":e=>s.jsx(A1,{...e}),"Modulo fotogaleria":e=>s.jsx(w1,{...e}),"Carrusel opinion":e=>s.jsx(an,{...e}),"Modulo 1x3 card":e=>s.jsx(tn,{...e}),"Modulo iframe":e=>s.jsx(v1,{...e})};function Zs({component:e,slot_id:t,data:a,banners:r}){if(r)return Bn[e]&&s.jsx("div",{className:"home-slot",style:es(a),children:Bn[e]({...a,banners:r,slot_id:t})})}function C1({children:e,stylesConfigEntry:t}){return s.jsx("div",{className:"home-slot",style:es(t),children:e})}const On={Diario:e=>{if(!e?.data||e.data.length===0)return;const t=e.data.slice(1);return s.jsx(Yr,{...e.data[0],itemReverseOrder:!0,isLarge:!0,block:t,banners:e.banners,showSuper:e.showSuper,heightImageOverwrite:e.heightImageOverwrite,heightImageOverwriteMobile:e.heightImageOverwriteMobile,rightOnlyBanner:e.rightOnlyBanner,customSectionCardStyles:e.customSectionCardStyles,customNewsDescriptionStyles:e.customNewsDescriptionStyles,paths:e.paths,textPosition:e.textPosition,speculationPrerenderClass:e.speculationPrerenderClass})},"Diario con imagen":e=>{if(!e?.data||e.data.length===0)return;const t=e.data.slice(1);return s.jsx(Yr,{...e.data[0],itemReverseOrder:!0,isLarge:!0,showSuper:e.showSuper,block:t,banners:e.banners,rightOnlyBanner:e.rightOnlyBanner,customSectionCardStyles:e.customSectionCardStyles,customNewsDescriptionStyles:e.customNewsDescriptionStyles,paths:e.paths,speculationPrerenderClass:e.speculationPrerenderClass})},Super:e=>s.jsx(Je,{...e.data[0],paths:e.paths,speculationPrerenderClass:e.speculationPrerenderClass}),"3 notas verticales":e=>s.jsx(lc,{content:e.data,customLargeSection:e.customLargeSection,customSlimSection:e.customSlimSection,paths:e.paths,speculationPrerenderClass:e.speculationPrerenderClass}),"3 notas horizontales":e=>s.jsx(ic,{content:e.data,customLargeSection:e.customLargeSection,customSmallSection:e.customSmallSection,paths:e.paths,speculationPrerenderClass:e.speculationPrerenderClass})},ts=({component:e,data:t,banners:a,rightOnlyBanner:r})=>s.jsx("div",{style:es(t),children:On[e]&&On[e]({...t,rightOnlyBanner:r,banners:a})}),y1=({slots:e,DYNAMIC_SLOT_SUBINDEXES:t,stylesConfig:a,AutorIcon:r,config:n,banners:o,showTagBySection:i})=>{const l=[],c=t,d=Object.keys(e).length/c;for(let u=1;u<=d;u++)for(let m=1;m<=c;m++){const g="Home_"+u+"_"+m;!e[g]||!e[g].blockSass||!e[g].blockSass[0]||!e[g].blockSass[0].value||!e[g].blockSass[0].block||e[g].blockSass[0].block==="No Mostrar"||(e[g].blockSass[0]?.block==="Modulo iframe"?l.push(s.jsxs(vs,{id:e[g].blockSass[0].key,show:!!e[g].blockSass[0].value,order:(u-1)*c+(m-1),children:[s.jsx(Zs,{component:e[g].blockSass[0].block,banners:o,slot_id:g,data:{printEdition:e[g]?.blockSass[0].value,title:e[g]?.blockSass[0].title??"",titleUrl:e[g].blockSass[0].link??void 0}}),s.jsx($e,{children:s.jsx(Qe,{banners:o,index:"dynamic_"+u+"_"+m})})]},u+"_"+m)):l.push(s.jsxs(vs,{id:e[g].blockSass[0].key,show:!!e[g].content?.data,order:(u-1)*c+(m-1),children:[s.jsx(Zs,{component:e[g].blockSass[0].block,banners:o,slot_id:g,data:{...e[g].blockSass[0].block?a[e[g].blockSass[0].block]:[],content:e[g].content?.data??[],title:e[g].blockSass[0].title??void 0,titleUrl:e[g].blockSass[0].link??void 0,autorIcon:s.jsx(r,{}),paths:n.paths,showTagBySection:i}}),s.jsx($e,{children:s.jsx(Qe,{banners:o,index:"dynamic_"+u+"_"+m})})]},u+"_"+m)))}return l},N1=({mainBlock:e,StylesConfigMain:t,config:a,banners:r})=>{const{PUBLIC_ENV:n}=M();if(n!=="local")return null;const o=e?.news?.data||[],i=(l,h)=>({...e?.news,...t[l],data:o.slice(0,h),paths:a.paths});return s.jsxs(s.Fragment,{children:[s.jsx(ts,{component:"Super",data:i("Super",1),banners:r}),s.jsx($e,{children:s.jsx(Qe,{banners:r,index:1})}),s.jsx(ts,{component:"3 notas verticales",data:i("3 notas verticales",3),banners:r}),s.jsx($e,{children:s.jsx(Qe,{banners:r,index:1})}),s.jsx(ts,{component:"3 notas horizontales",data:i("3 notas horizontales",3),banners:r}),s.jsx($e,{children:s.jsx(Qe,{banners:r,index:1})})]})};b.AssetsPreconnect=Ca,b.AutorHeader1=zl,b.AutorHeader2=Wl,b.BannerAdvertising=ge,b.BannerAdvertisingMiddle=Qe,b.CarrouselCSR=Al,b.CarrouselIRS=Oe,b.CarruselCard=sn,b.CarruselOpinion=an,b.CommentLazyLoader=u1,b.CommonServices=Be,b.Comscore=Rs,b.ContactInfoServer=Ac,b.ContactInput=Ql,b.ContactSelect=Fl,b.ContactTextarea=Vl,b.ContentLayout1=Bt,b.ContentLayoutTema=Gl,b.DEBUG_MainSlots=N1,b.DestacadoNoticias=Kr,b.DestacadoVideos=en,b.DynamicBlockServices=yr,b.DynamicComponents=y1,b.DynamicMainSlot=ts,b.DynamicSlot=Zs,b.EditorialBlock=hc,b.ErrorComponent=jl,b.Font=Oa,b.Footer=ql,b.FormatAfterScripts=va,b.FormatScripts=ns,b.GA4=ea,b.GTM=ta,b.GalleryHeader=dn,b.GenerateBody=ml,b.GenerateHead=ul,b.Header=ac,b.HeaderSectionComponent=ln,b.HomeCard=oc,b.IframeHeader=on,b.ImageOffline=Ur,b.ImageOnline=pe,b.ImageOnlineClient=Ir,b.IssuuServices=ol,b.ItemListSchema=Ua,b.JournalistArticule2=zr,b.JournalistGroup=Wr,b.LayoutNewsComponent=jr,b.LinkComponent=O,b.LiveBlogHeader=Dr,b.Location=gl,b.LoginForm=nd,b.MainComponentServices=qo,b.Marfeel=sa,b.MasNoticiasLazyLoader=m1,b.MiddleSection=$e,b.Modulo1x3=Zr,b.Modulo1x3Card=tn,b.Modulo1x4=Xr,b.Modulo1x5=Rr,b.Modulo2Columnas=uc,b.Modulo3Columnas=Jr,b.ModuloNewsletter=mc,b.ModuloOpinion=dc,b.NewListResponseDataPH=mn,b.NewsArticle=La,b.NewsComponent=Xc,b.NewsContent=Is,b.NewsDescriptionComponent=Me,b.News_Content=hn,b.NextPrev=Ts,b.OrgList=Pa,b.PreloadImages=os,b.REPORT_REASONS=Wt,b.ReCaptchaRender=jn,b.Readest=Dt,b.RegisterForm=ad,b.ScriptHydrator=hd,b.SearchSection=ed,b.Section=ce,b.SectionCard=Ee,b.SectionCard2=dt,b.SectionCard5=Cl,b.SectionCardServerComponent=Ls,b.SectionServerComponent=pc,b.ShowSection=vs,b.SocialNetworks=Ht,b.SoftwareApplication=ka,b.SourceButtons=nc,b.SpeculationRules=Ia,b.Spin=Ze,b.StaticSlotWrapper=C1,b.SubscribeColumn=Pr,b.SubscribeRow=xr,b.SubscribeWhatsAppColumn=Il,b.TagHeader=rc,b.TagSection=Hr,b.TimeLine=_r,b.TrimPathname=wo,b.TwitterHydration=ud,b.VideoBlock3=_l,b.VideoBlock4=$l,b.VideoEmbeddedHeader=rn,b.VideoYoutubeHeader=nn,b.VideosSchemas=Ba,b.WebsiteList=xa,b.addComment=f1,b.bannersReplace=Re,b.becomeVideoObject=He,b.buildTagUrl=xe,b.coloringByStrokeSVGs=Ml,b.compileStyleProps=es,b.createAssessment=So,b.cutString=ye,b.decodeApiEnv=is,b.encodeApiEnv=Io,b.extractMainSlug=we,b.extractRealtedNews=io,b.extractRelatedNews=wt,b.formatDate=Ce,b.formatDateEdiciones=ao,b.formatDateJournalistArticule=Xe,b.formatDateTimeline=ca,b.formatNewsMeta=ga,b.formatVideoData=ya,b.generalGetData=cl,b.getCaptchaToken=Js,b.getComments=kn,b.getConfig=M,b.getDynamicSlots=il,b.getEnvironmentUrl=De,b.getEnvironmentUrlFront=lo,b.getFrontPrefix=Ie,b.getHydratorPath=Co,b.getImageUrl=ie,b.getItemFormated=Uo,b.getNextMeta=et,b.getPage=st,b.getPlayIcon=Cs,b.getPreloadImages=Bo,b.getPrevMeta=tt,b.getRelatedNewsCarrousel=yo,b.getReportReasonLabel=Cd,b.getResponse=qe,b.getResponsePromise=da,b.getSchemas=vt,b.getScriptReplaces=ls,b.getServicePrefix=ko,b.getSlugs=qa,b.getTextsStringValue=Eo,b.getTypeOfNews=bo,b.getVideoRealPath=vo,b.handleGetComments=Rt,b.initLibrary=_n,b.isPhotoGallery=To,b.metadataToJSX=wa,b.metadata_defaults=Sr,b.new_speculationRules_home=Na,b.new_speculationRules_note=Ea,b.new_speculationRules_noteList=Ta,b.new_speculationRules_section=Sa,b.parseTags=rs,b.pathnameSplit=pa,b.pickBannerVariant=bt,b.processExtractedRelatedNews=ua,b.removePages=Ma,b.reportComment=vd,b.shareButtons=Mr,b.socialIcons=lt,b.toISOWithTimeZone=Pe,b.urlReplaces=Aa,b.usePlayIcon=ys,b.validateHttpUrl=ma,b.verifyCaptchaTokenEnterprise=g1,Object.defineProperty(b,Symbol.toStringTag,{value:"Module"})}));
|