sass-template-common 0.2.67 → 0.2.68

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.
@@ -6830,7 +6830,7 @@ const Qd = "_content_r1co8_1", Gd = "_videoContent_r1co8_20", Hd = "_articleSect
6830
6830
  /* @__PURE__ */ a(Ue, { preview: e.preview, isLarge: !0, priorityHigh: !0 }),
6831
6831
  t && /* @__PURE__ */ a("div", { className: vn.description, children: t })
6832
6832
  ] });
6833
- }, Q1 = (e) => /* @__PURE__ */ a(J, { children: /* @__PURE__ */ f("div", { className: et.boxInformation, children: [
6833
+ }, Q1 = (e) => /* @__PURE__ */ a(J, { children: /* @__PURE__ */ f("div", { className: `${et.boxInformation} sass-liveblog-header`, children: [
6834
6834
  /* @__PURE__ */ a(Cr, { preview: e.preview }),
6835
6835
  /* @__PURE__ */ f("div", { className: et.textBox, children: [
6836
6836
  /* @__PURE__ */ f("div", { className: et.contentBox, children: [
@@ -9877,16 +9877,130 @@ const m0 = (e) => /* @__PURE__ */ a(
9877
9877
  }
9878
9878
  )
9879
9879
  }
9880
- ), h0 = (e) => e.replace(
9880
+ ), h0 = "_content_cu8lm_1", f0 = "_title_cu8lm_18", As = {
9881
+ content: h0,
9882
+ title: f0
9883
+ }, g0 = async ({
9884
+ newsformated: e,
9885
+ internal: t,
9886
+ commonServices: n
9887
+ }) => {
9888
+ if (!t) return null;
9889
+ try {
9890
+ const s = e?.preview?.sizes?.[0]?.scale ?? void 0, o = (await n.getNewsMultimedia({
9891
+ path: t,
9892
+ imagesizes: s
9893
+ }))?.data?.data;
9894
+ if (!Array.isArray(o) || o.length === 0) return null;
9895
+ const i = o[0], d = (Array.isArray(i?.videos) ? i.videos : []).find(
9896
+ (l) => l?.type === "video-embedded"
9897
+ );
9898
+ return d?.code ? /* @__PURE__ */ f("div", { className: As.content, children: [
9899
+ /* @__PURE__ */ a(
9900
+ "div",
9901
+ {
9902
+ dangerouslySetInnerHTML: {
9903
+ __html: typeof d.code == "string" ? d.code : ""
9904
+ }
9905
+ }
9906
+ ),
9907
+ d?.title && /* @__PURE__ */ a("p", { className: As.title, children: d.title })
9908
+ ] }) : null;
9909
+ } catch {
9910
+ return null;
9911
+ }
9912
+ }, p0 = "_content_cu8lm_1", A0 = "_title_cu8lm_18", Vn = {
9913
+ content: p0,
9914
+ title: A0
9915
+ }, y0 = async ({
9916
+ newsformated: e,
9917
+ internal: t,
9918
+ commonServices: n
9919
+ }) => {
9920
+ if (!t) return null;
9921
+ try {
9922
+ const s = e?.preview?.sizes?.[0]?.scale ?? void 0, o = (await n.getNewsMultimedia({
9923
+ path: t,
9924
+ imagesizes: s
9925
+ }))?.data?.data;
9926
+ if (!Array.isArray(o) || o.length === 0) return null;
9927
+ const i = o[0], d = (Array.isArray(i?.videos) ? i.videos : []).find(
9928
+ (l) => l?.type === "video-youtube"
9929
+ );
9930
+ return !d?.code || typeof d.code != "string" ? null : /* @__PURE__ */ f("div", { className: Vn.content, children: [
9931
+ /* @__PURE__ */ a(
9932
+ "iframe",
9933
+ {
9934
+ className: Vn.iframeStyled,
9935
+ src: `https://www.youtube.com/embed/${d.code}`,
9936
+ frameBorder: "0",
9937
+ allowFullScreen: !0
9938
+ }
9939
+ ),
9940
+ d?.title && /* @__PURE__ */ a("p", { className: Vn.title, children: d.title })
9941
+ ] });
9942
+ } catch {
9943
+ return null;
9944
+ }
9945
+ }, w0 = "_content_ezbiw_1", v0 = {
9946
+ content: w0
9947
+ }, b0 = async ({
9948
+ newsformated: e,
9949
+ internal: t,
9950
+ commonServices: n
9951
+ }) => {
9952
+ if (!t) return null;
9953
+ try {
9954
+ const s = e?.preview?.sizes?.[0]?.scale ?? void 0, o = (await n.getNews({
9955
+ path: t,
9956
+ imagesizes: s
9957
+ }))?.data?.data;
9958
+ if (!Array.isArray(o) || o.length === 0) return null;
9959
+ const c = o[0]?.external?.iframe;
9960
+ return typeof c != "string" || c.trim() === "" ? null : /* @__PURE__ */ a(
9961
+ "div",
9962
+ {
9963
+ className: v0.content,
9964
+ dangerouslySetInnerHTML: { __html: c }
9965
+ }
9966
+ );
9967
+ } catch {
9968
+ return null;
9969
+ }
9970
+ }, C0 = "_content_156j7_1", ys = {
9971
+ content: C0
9972
+ }, st = {
9973
+ videoEmbedded: "videoEmbedded",
9974
+ videoYouTube: "videoYouTube",
9975
+ iframe: "iframe",
9976
+ fotoGaleria: "fotogaleria"
9977
+ }, _0 = {
9978
+ [st.videoEmbedded]: g0,
9979
+ [st.videoYouTube]: y0,
9980
+ [st.iframe]: b0
9981
+ }, N0 = ({ news: e, commonServices: t }) => {
9982
+ const { config: n, hascontent: s, info: r } = e, o = n.articlepreview, i = r.link.internal, c = s?.hasgalleryimages;
9983
+ if (o === st.fotoGaleria && c)
9984
+ return /* @__PURE__ */ a("div", { className: ys.content, children: /* @__PURE__ */ a(Ir, { commonServices: t, newsformated: e, internal: i }) });
9985
+ const d = o ? _0[o] : null;
9986
+ return d ? /* @__PURE__ */ a("div", { className: ys.content, children: /* @__PURE__ */ a(
9987
+ d,
9988
+ {
9989
+ newsformated: e,
9990
+ internal: i,
9991
+ commonServices: t
9992
+ }
9993
+ ) }) : null;
9994
+ }, S0 = (e) => e.replace(
9881
9995
  /<iframe(?![^>]*\bloading=)[^>]*>/gi,
9882
9996
  (n) => n.replace("<iframe", '<iframe loading="lazy"')
9883
- ), f0 = (e) => e.replace(
9997
+ ), E0 = (e) => e.replace(
9884
9998
  /<iframe(?![^>]*\btitle=)[^>]*>/gi,
9885
9999
  (n) => n.replace("<iframe", '<iframe title="frame custom content"')
9886
- ), g0 = (e) => e.replace(
10000
+ ), x0 = (e) => e.replace(
9887
10001
  /<span\b[^>]*class=["'][^"']*video__title[^"']*["'][^>]*>[\s\S]*?<\/span>/gi,
9888
10002
  ""
9889
- ), p0 = async (e) => {
10003
+ ), T0 = async (e) => {
9890
10004
  const { PUBLIC_IS_OFFLINE: t } = Y();
9891
10005
  if (!(t === "true")) {
9892
10006
  const l = /<img\b[^>]*\bsrc=["']([^"']+)["']/g, u = [...e.matchAll(l)], m = {};
@@ -9972,7 +10086,7 @@ const m0 = (e) => /* @__PURE__ */ a(
9972
10086
  s = s.replace(u, b);
9973
10087
  }
9974
10088
  return s;
9975
- }, A0 = (e, t) => {
10089
+ }, I0 = (e, t) => {
9976
10090
  const n = {
9977
10091
  2: 1,
9978
10092
  4: 2,
@@ -10002,7 +10116,7 @@ const m0 = (e) => /* @__PURE__ */ a(
10002
10116
  return c;
10003
10117
  }
10004
10118
  ), r;
10005
- }, y0 = (e) => {
10119
+ }, k0 = (e) => {
10006
10120
  const t = /<div class="ck-image-gallery"[^>]*?>([\s\S]*?)<\/div>/g, n = [...e.matchAll(t)];
10007
10121
  let s = "", r = 0;
10008
10122
  for (const o of n) {
@@ -10021,7 +10135,7 @@ const m0 = (e) => /* @__PURE__ */ a(
10021
10135
  s += p, r = l;
10022
10136
  }
10023
10137
  return s += e.slice(r), s;
10024
- }, w0 = async (e, t, n) => {
10138
+ }, U0 = async (e, t, n) => {
10025
10139
  if (!n) return e;
10026
10140
  const s = /<span data-src="(.*?)"><\/span>/g, r = [...e.matchAll(s)];
10027
10141
  let o = e;
@@ -10051,7 +10165,7 @@ const m0 = (e) => /* @__PURE__ */ a(
10051
10165
  }
10052
10166
  return o;
10053
10167
  };
10054
- async function v0(e, t) {
10168
+ async function q0(e, t) {
10055
10169
  let n = "", s = 0;
10056
10170
  const r = /<div\b[^>]*\bclass=(["'])(?:(?!\1).)*\bck-video-player\b(?:(?!\1).)*\1[^>]*>/gi;
10057
10171
  let o;
@@ -10135,9 +10249,9 @@ async function v0(e, t) {
10135
10249
  y = h;
10136
10250
  s = m, n += y, r.lastIndex = m;
10137
10251
  }
10138
- return n += e.slice(s), n = g0(n), n;
10252
+ return n += e.slice(s), n = x0(n), n;
10139
10253
  }
10140
- async function b0(e) {
10254
+ async function R0(e) {
10141
10255
  const {
10142
10256
  news: t,
10143
10257
  banners: n,
@@ -10150,14 +10264,14 @@ async function b0(e) {
10150
10264
  commonServices: l
10151
10265
  } = e;
10152
10266
  let u = t?.body?.rendered ?? "";
10153
- u = u.replace(/&nbsp;/g, ""), u = A0(u, n), u = y0(u), u = await p0(u), u = await w0(
10267
+ u = u.replace(/&nbsp;/g, ""), u = I0(u, n), u = k0(u), u = await T0(u), u = await U0(
10154
10268
  u,
10155
10269
  e.texts,
10156
10270
  s
10157
- ), u = await v0(u, d), u = h0(u), u = f0(u);
10158
- const m = t.main.sources ?? [];
10271
+ ), u = await q0(u, d), u = S0(u), u = E0(u);
10272
+ const m = t.main.sources ?? [], h = t.config.articlepreview === st.fotoGaleria && t.hascontent?.hasgalleryimages;
10159
10273
  return /* @__PURE__ */ f("div", { className: nn.content, children: [
10160
- o !== "liveblogs" && e.showHeaderImage ? t.hascontent?.hasgalleryimages ? /* @__PURE__ */ a(
10274
+ o !== "liveblogs" && e.showHeaderImage ? h ? /* @__PURE__ */ a(
10161
10275
  Ir,
10162
10276
  {
10163
10277
  commonServices: l,
@@ -10200,125 +10314,11 @@ async function b0(e) {
10200
10314
  ),
10201
10315
  m.length > 0 && /* @__PURE__ */ f("div", { className: nn.noteSource, children: [
10202
10316
  /* @__PURE__ */ a(m0, {}),
10203
- /* @__PURE__ */ a("p", { children: e.texts.noteSource + (m.length === 1 ? "" : "s") + ": " + m.map((h) => h.name).join(", ") })
10317
+ /* @__PURE__ */ a("p", { children: e.texts.noteSource + (m.length === 1 ? "" : "s") + ": " + m.map((p) => p.name).join(", ") })
10204
10318
  ] })
10205
10319
  ] });
10206
10320
  }
10207
- const C0 = "_content_cu8lm_1", _0 = "_title_cu8lm_18", As = {
10208
- content: C0,
10209
- title: _0
10210
- }, N0 = async ({
10211
- newsformated: e,
10212
- internal: t,
10213
- commonServices: n
10214
- }) => {
10215
- if (!t) return null;
10216
- try {
10217
- const s = e?.preview?.sizes?.[0]?.scale ?? void 0, o = (await n.getNewsMultimedia({
10218
- path: t,
10219
- imagesizes: s
10220
- }))?.data?.data;
10221
- if (!Array.isArray(o) || o.length === 0) return null;
10222
- const i = o[0], d = (Array.isArray(i?.videos) ? i.videos : []).find(
10223
- (l) => l?.type === "video-embedded"
10224
- );
10225
- return d?.code ? /* @__PURE__ */ f("div", { className: As.content, children: [
10226
- /* @__PURE__ */ a(
10227
- "div",
10228
- {
10229
- dangerouslySetInnerHTML: {
10230
- __html: typeof d.code == "string" ? d.code : ""
10231
- }
10232
- }
10233
- ),
10234
- d?.title && /* @__PURE__ */ a("p", { className: As.title, children: d.title })
10235
- ] }) : null;
10236
- } catch {
10237
- return null;
10238
- }
10239
- }, S0 = "_content_cu8lm_1", E0 = "_title_cu8lm_18", Vn = {
10240
- content: S0,
10241
- title: E0
10242
- }, x0 = async ({
10243
- newsformated: e,
10244
- internal: t,
10245
- commonServices: n
10246
- }) => {
10247
- if (!t) return null;
10248
- try {
10249
- const s = e?.preview?.sizes?.[0]?.scale ?? void 0, o = (await n.getNewsMultimedia({
10250
- path: t,
10251
- imagesizes: s
10252
- }))?.data?.data;
10253
- if (!Array.isArray(o) || o.length === 0) return null;
10254
- const i = o[0], d = (Array.isArray(i?.videos) ? i.videos : []).find(
10255
- (l) => l?.type === "video-youtube"
10256
- );
10257
- return !d?.code || typeof d.code != "string" ? null : /* @__PURE__ */ f("div", { className: Vn.content, children: [
10258
- /* @__PURE__ */ a(
10259
- "iframe",
10260
- {
10261
- className: Vn.iframeStyled,
10262
- src: `https://www.youtube.com/embed/${d.code}`,
10263
- frameBorder: "0",
10264
- allowFullScreen: !0
10265
- }
10266
- ),
10267
- d?.title && /* @__PURE__ */ a("p", { className: Vn.title, children: d.title })
10268
- ] });
10269
- } catch {
10270
- return null;
10271
- }
10272
- }, T0 = "_content_ezbiw_1", I0 = {
10273
- content: T0
10274
- }, k0 = async ({
10275
- newsformated: e,
10276
- internal: t,
10277
- commonServices: n
10278
- }) => {
10279
- if (!t) return null;
10280
- try {
10281
- const s = e?.preview?.sizes?.[0]?.scale ?? void 0, o = (await n.getNews({
10282
- path: t,
10283
- imagesizes: s
10284
- }))?.data?.data;
10285
- if (!Array.isArray(o) || o.length === 0) return null;
10286
- const c = o[0]?.external?.iframe;
10287
- return typeof c != "string" || c.trim() === "" ? null : /* @__PURE__ */ a(
10288
- "div",
10289
- {
10290
- className: I0.content,
10291
- dangerouslySetInnerHTML: { __html: c }
10292
- }
10293
- );
10294
- } catch {
10295
- return null;
10296
- }
10297
- }, U0 = "_content_156j7_1", ys = {
10298
- content: U0
10299
- }, st = {
10300
- videoEmbedded: "videoEmbedded",
10301
- videoYouTube: "videoYouTube",
10302
- iframe: "iframe",
10303
- fotoGaleria: "fotogaleria"
10304
- }, q0 = {
10305
- [st.videoEmbedded]: N0,
10306
- [st.videoYouTube]: x0,
10307
- [st.iframe]: k0
10308
- }, R0 = ({ news: e, commonServices: t }) => {
10309
- const { config: n, hascontent: s, info: r } = e, o = n.articlepreview, i = r.link.internal, c = s?.hasgalleryimages;
10310
- if (o === st.fotoGaleria && c)
10311
- return /* @__PURE__ */ a("div", { className: ys.content, children: /* @__PURE__ */ a(Ir, { commonServices: t, newsformated: e, internal: i }) });
10312
- const d = o ? q0[o] : null;
10313
- return d ? /* @__PURE__ */ a("div", { className: ys.content, children: /* @__PURE__ */ a(
10314
- d,
10315
- {
10316
- newsformated: e,
10317
- internal: i,
10318
- commonServices: t
10319
- }
10320
- ) }) : null;
10321
- }, L0 = (e) => {
10321
+ const L0 = (e) => {
10322
10322
  const { content: t, title: n, slot_id: s } = e, r = e.slot_id && e.slot_id !== "Nota_1";
10323
10323
  return t && t.length !== 0 && /* @__PURE__ */ a(ge, { title: n, titleUrl: e.titleUrl, children: /* @__PURE__ */ a(Et, { slot_id: s, cardWidth: 200, children: t.map((o, i) => {
10324
10324
  const c = { ...o, main: {
@@ -10638,12 +10638,12 @@ const vs = {
10638
10638
  /* @__PURE__ */ a(ht, { children: /* @__PURE__ */ a(at, { banners: s, index: 1 }) })
10639
10639
  ] });
10640
10640
  }, V0 = (e) => {
10641
- const { config: t, hascontent: n } = e, s = t.articlepreview, r = [
10641
+ const { config: t } = e, n = t.articlepreview;
10642
+ return !![
10642
10643
  st.videoEmbedded,
10643
10644
  st.videoYouTube,
10644
10645
  st.iframe
10645
- ];
10646
- return !!(s === st.fotoGaleria && n?.hasgalleryimages || r.includes(s));
10646
+ ].includes(n);
10647
10647
  }, w3 = async (e) => {
10648
10648
  const {
10649
10649
  custom_complement: t,
@@ -10670,7 +10670,7 @@ const vs = {
10670
10670
  ),
10671
10671
  /* @__PURE__ */ a(at, { banners: s, index: 1 }),
10672
10672
  !m && e.commonServices && /* @__PURE__ */ a(
10673
- R0,
10673
+ N0,
10674
10674
  {
10675
10675
  news: o[0],
10676
10676
  commonServices: e.commonServices
@@ -10787,7 +10787,7 @@ const vs = {
10787
10787
  },
10788
10788
  children: [
10789
10789
  /* @__PURE__ */ a(
10790
- b0,
10790
+ R0,
10791
10791
  {
10792
10792
  texts: e.texts,
10793
10793
  autorIcon: e.autorIcon,
@@ -14520,7 +14520,7 @@ export {
14520
14520
  J9 as GenerateBody,
14521
14521
  K9 as GenerateHead,
14522
14522
  c3 as Header,
14523
- k0 as IframeHeader,
14523
+ b0 as IframeHeader,
14524
14524
  sl as ImageOffline,
14525
14525
  Ue as ImageOnline,
14526
14526
  al as ImageOnlineClient,
@@ -14574,9 +14574,9 @@ export {
14574
14574
  _9 as TrimPathname,
14575
14575
  n3 as VideoBlock3,
14576
14576
  i3 as VideoBlock4,
14577
- N0 as VideoEmbeddedHeader,
14577
+ g0 as VideoEmbeddedHeader,
14578
14578
  C3 as VideoSection,
14579
- x0 as VideoYoutubeHeader,
14579
+ y0 as VideoYoutubeHeader,
14580
14580
  Ro as VideosSchemas,
14581
14581
  qo as WebsiteList,
14582
14582
  T3 as addComment,
@@ -46,7 +46,7 @@ j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
46
46
  c0.3-0.1,1.2-0.5,1.5-1.6c0.4-1.6,0.4-5.3,0.4-5.3c0-0.1,0.2-3.7-0.2-5.4c-0.1-0.4-0.5-1.3-1.6-1.6C22.5,7.7,17.1,7.6,15.1,7.6zM12.8,19.2c-0.1,0-0.3,0-0.4-0.1c-0.2-0.1-0.4-0.4-0.4-0.7v-6.9c0-0.3,0.1-0.5,0.4-0.6c0.2-0.1,0.5-0.1,0.7,0l5.9,3.4
47
47
  c0.2,0.1,0.4,0.4,0.4,0.6c0,0.3-0.1,0.5-0.4,0.7l-5.9,3.5C13.1,19.1,12.9,19.2,12.8,19.2z M13.6,12.9v4.3l3.7-2.2L13.6,12.9z`}),n.jsx("path",{fill:"currentColor",d:"M12.8,18.6v-6.9l5.9,3.4L12.8,18.6z"})]}),ws=["telegram"],gn={facebook:e=>n.jsx(oa,{...e}),instagram:e=>n.jsx(sa,{...e}),whatsapp:e=>n.jsx(ll,{...e}),tiktok:e=>n.jsx(cl,{...e}),youtube:e=>n.jsx(dl,{...e}),x:e=>n.jsx(Pt,{...e}),gnews:e=>n.jsx(sl,{...e}),podcast:e=>n.jsx(rl,{...e}),telegram:e=>n.jsx(il,{...e})},hl=e=>{const{freeZone:t,socials:a,menu:o,customBlock:s}=e;return n.jsxs("footer",{className:pe.content,children:[n.jsxs("section",{className:pe.brandContent,children:[n.jsx(O,{href:"/","aria-label":"Ir a la home",children:n.jsx("span",{className:pe.logoStyled,children:e.logo})}),n.jsx("div",{className:pe.socialMedia,children:Object.keys(a).map(r=>a[r]?.show&&n.jsx("a",{target:"_blank",rel:"noreferrer","aria-label":a[r].title+" link",className:pe.linkSocialNetwoks,href:a[r].url,children:gn[r]({className:`${ws.includes(r)?pe.socialNetworkIcon_stroke:pe.socialNetworkIcon} ${r==="instagram"?pe.socialInstagram:""}`})},r))})]}),n.jsxs("section",{className:pe.sectionContent,children:[n.jsx("div",{className:pe.section,children:o.filter(r=>!r.subitem).map((r,i)=>n.jsx(O,{href:r.link?r.link:void 0,target:r.target,className:`${pe.menuItem} footer-menu-item`,"aria-label":r.description,children:r.description},i))}),n.jsx("div",{className:pe.section,children:t&&t.map((r,i)=>n.jsx(O,{href:r.link?r?.link:void 0,target:r.target,className:pe.otherItems,children:r.description},i))})]}),s&&n.jsx(n.Fragment,{children:s}),n.jsxs("section",{className:pe.copyrigth,children:[n.jsx("p",{className:pe.copyrigthText,children:e.copyrigth}),n.jsx(O,{"aria-label":"Bluestack link",href:"https://www.bluestack.la",title:"Plataforma BLUESTACK CMS (antes CMS MEDIOS)",target:"_blank",rel:"noreferrer",children:n.jsx(ol,{})})]})]})},le={content:"_content_1msij_1",imageContent:"_imageContent_1msij_9",width1Autor:"_width1Autor_1msij_18",width2Autor:"_width2Autor_1msij_22",width3Autor:"_width3Autor_1msij_26",imageAutor:"_imageAutor_1msij_30",imageStyled:"_imageStyled_1msij_69",contentIconStyled:"_contentIconStyled_1msij_70",avatarContent:"_avatarContent_1msij_87",journalistSection:"_journalistSection_1msij_101",journalistInfo:"_journalistInfo_1msij_109",journalistInfoLink:"_journalistInfoLink_1msij_110",socialNetworkSection:"_socialNetworkSection_1msij_146",avatarStyled:"_avatarStyled_1msij_158",article:"_article_1msij_163",socialButton:"_socialButton_1msij_167",facebookStyled:"_facebookStyled_1msij_183",emailStyled:"_emailStyled_1msij_187",xStyled:"_xStyled_1msij_191",linkedinStyled:"_linkedinStyled_1msij_195",whatsappStyled:"_whatsappStyled_1msij_199",whatsappLink:"_whatsappLink_1msij_203",clipboardButton:"_clipboardButton_1msij_219",googleProfileButton:"_googleProfileButton_1msij_255"},ul=e=>n.jsx("svg",{width:"13",height:"23",viewBox:"0 0 13 23",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:n.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"})}),pn=e=>n.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:n.jsx("path",{fill:"currentColor",strokeWidth:"1.2656",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",d:`M10.2,8.3c0,1.1-0.9,2.1-2.2,2.1l0,0c-1.3,0-2.1-0.9-2.1-2.1c0-1.1,0.9-2.1,2.2-2.1C9.4,6.3,10.2,7.1,10.2,8.3z M6.1,23.7H10V11.9
48
48
  H6.1V23.7z M19.6,11.7c-2.1,0-3.5,2-3.5,2v-1.7h-3.9v11.8H16v-6.6c0-0.3,0-0.7,0.1-0.9c0.3-0.7,0.9-1.4,2-1.4c1.4,0,2,1.1,2,2.7v6.3
49
- h3.9V17C24.1,13.3,22.2,11.7,19.6,11.7z`})}),fl=e=>n.jsxs("svg",{width:"25",height:"21",viewBox:"0 0 25 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[n.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"}),n.jsx("path",{d:"M21.6425 5.57591L12.5923 11.2704L3.33887 5.57591V3.33881L12.5923 8.93157L21.6425 3.33881V5.57591Z",fill:"black"})]}),ml=e=>n.jsxs("svg",{width:"24",height:"19",viewBox:"0 0 24 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[n.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"}),n.jsx("path",{d:"M20.8752 4.67439L12.0176 10.2477L2.96094 4.67439V2.48486L12.0176 7.95868L20.8752 2.48486V4.67439Z",fill:"white"})]}),gl=e=>n.jsx("svg",{width:"13",height:"22",viewBox:"0 0 13 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:n.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"})}),pl=e=>n.jsx("svg",{width:"26",height:"25",viewBox:"0 0 22 23",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:n.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"})}),Al={FaceBook:{url:e=>`https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(e)}`,icon:{outline:e=>n.jsx(gl,{className:e}),solid:e=>n.jsx(ul,{className:e})}},X:{url:e=>`https://twitter.com/intent/tweet?url=${encodeURIComponent(e)}`,icon:{outline:e=>n.jsx(Pt,{className:e}),solid:e=>n.jsx(Pt,{className:e})}},Whatsapp:{url:e=>`https://wa.me/?text=${encodeURIComponent(e)}`,icon:{outline:e=>n.jsx(cs,{className:e}),solid:e=>n.jsx(is,{className:e})}},Email:{url:e=>`mailto:?body=${encodeURIComponent(e)}`,icon:{outline:e=>n.jsx(fl,{className:e}),solid:e=>n.jsx(ml,{className:e})}},LinkedIn:{url:e=>`https://www.linkedin.com/sharing/share-offsite/?url=${encodeURIComponent(e)}`,icon:{outline:e=>n.jsx(pn,{className:e}),solid:e=>n.jsx(pn,{className:e})}}};function bs({noteShare:e}){const t=e&&e.url||(typeof window<"u"?window.location.href:"https://example.com");return e?n.jsxs("div",{className:le.socialNetworkSection,children:[e.options?.map(a=>{const o=Al[a];if(!o)return null;const s=e.variant==="outline"?o.icon.outline:o.icon.solid,r=o.url(t);return n.jsx(O,{href:r,target:"_blank",rel:"noopener noreferrer","aria-label":`Compartir en ${a}`,className:`${le.socialButton} ${le[`${a.toLowerCase()}Button`]??""} ${le[`${a.toLowerCase()}Styled`]}`,children:s("")},a)}),n.jsx("button",{type:"button","data-text":"Link copiado","data-active":"false","aria-label":"copy",className:[le.clipboardButton,"clipbtn-id"].join(" "),children:n.jsx(ls,{})}),n.jsx("button",{type:"button","aria-label":"share",className:[le.clipboardButton,"sharebtn-id"].join(" "),children:n.jsx(pl,{})})]}):null}const Qe={content:"_content_r1co8_1",videoContent:"_videoContent_r1co8_20",articleSection:"_articleSection_r1co8_27",title:"_title_r1co8_42",article:"_article_r1co8_27",correspondent:"_correspondent_r1co8_75",iframeStyled:"_iframeStyled_r1co8_84",contentFrame:"_contentFrame_r1co8_94"},yl=e=>{const t=()=>e?.video.main.author?`${e?.video.main.author} - ${ke(e.video.info.date.created)}`:e?.video.main.author;return n.jsx("div",{className:Qe.content,children:n.jsx(bt,{children:n.jsxs("div",{className:Qe.videoContent,children:[n.jsx("p",{className:Qe.title,children:e.video.main.title}),e.type==="vy"&&n.jsx("iframe",{className:Qe.iframeStyled,src:`https://www.youtube.com/embed/${e.video.main.code}`,frameBorder:"0",allowFullScreen:!0}),e.type==="vf"&&n.jsx("iframe",{className:Qe.iframeStyled,src:e.video.main.code,frameBorder:"0",allowFullScreen:!0}),e.type==="ve"&&n.jsx("div",{className:Qe.contentFrame,dangerouslySetInnerHTML:{__html:e.video.main.code}}),n.jsxs("div",{className:Qe.articleSection,children:[n.jsx("p",{className:Qe.article,children:xe(e.video.main.description)}),n.jsx("p",{className:Qe.correspondent,children:t()})]})]})})})},ra={content:"_content_wxhkd_1",linkStyled:"_linkStyled_wxhkd_9"},Ot=e=>{const{currentPage:t,showNext:a,maxPages:o,pathname:s,query:r}=e,i=(c,d,l)=>{let h="";const u=d.split("/");return u.indexOf("page")!==-1&&u.splice(h.indexOf("page")-1,u.length-1),u.forEach((f,g)=>{g!==0&&(h+=`/${f}`)}),c==="next"?h+=`/page/${t+1}${l?`?query=${l}`:""}`:h+=`/page/${t-1}${l?`?query=${l}`:""}`};return(t>1||a&&t<o)&&n.jsxs("section",{className:ra.content,children:[t>1&&n.jsx(O,{className:ra.linkStyled,href:i("prev",s||"",r||""),children:e.texts.prevButtonText??"Anterior"}),a&&t<o&&n.jsx(O,{className:ra.linkStyled,href:i("next",s||"",r||""),children:e.texts.nextButtonText??"Siguiente"})]})},An={content:"_content_zal5g_1",contentGrid:"_contentGrid_zal5g_8",contentGrid4:"_contentGrid4_zal5g_17",contentGrid3:"_contentGrid3_zal5g_21"},yn=e=>{const{grid:t=3}=e;return n.jsxs("section",{className:`${An.content}`,children:[n.jsx("div",{className:`${An.contentGrid} ${e.className?e.className:""} ${t===3?An.contentGrid3:An.contentGrid4} news-content`,children:e.children}),n.jsx(n.Fragment,{children:e.paginatorComponent})]})},Dt={content:"_content_15x47_1",newsDescription:"_newsDescription_15x47_15",image:"_image_15x47_41"},Oe=e=>{const{main:t,authors:a,info:o,preview:s,share:r,isVideo:i,config:c,overImage:d="default",isTitle:l,priorityHigh:h=!1,isLarge:u,paths:f,keywords:g}=e;return n.jsxs("section",{className:Dt.content,style:{...e.customSectionCardStyles},children:[n.jsx(O,{"aria-label":e.main?.title?.section,className:Dt.image,title:t?.title?.section,href:o?.link?.url,target:o?.link?.target,children:n.jsx(Se,{preview:s,isVideo:i,isLarge:u,priorityHigh:h})}),n.jsx("div",{className:Dt.newsDescription,children:n.jsx(ct,{main:t,authors:a,info:o,preview:s,share:r,config:c,overImage:d,isTitle:l,paths:f,keywords:g})})]})},Xe={content:"_content_14xk9_1",boxInformation:"_boxInformation_14xk9_12",titleGradient:"_titleGradient_14xk9_30",sectionDescription:"_sectionDescription_14xk9_58",articule:"_articule_14xk9_83",linkStyled:"_linkStyled_14xk9_116"},Mt=e=>{const{isVideo:t,info:a,main:o,overImage:s="default",titleGradient:r=!1}=e,{SHOW_TAG_BY_SECTION:i}=K(),c=()=>{if(i&&e.keywords?.tags?.length&&e.keywords.tags.length>0){const d=e.keywords.tags[0],l=d.name;return d.approved?n.jsx("h3",{children:n.jsx(O,{"aria-label":l,className:Xe.sectionDescription,href:at(d,e.paths),children:l})}):n.jsx("div",{className:Xe.sectionDescription,children:l})}else if(e.info?.section?.url)return n.jsx("h3",{children:n.jsx(O,{className:Xe.sectionDescription,href:e?.info?.link?.url,target:e?.info?.link?.target,children:e.info.section.name})});return null};return n.jsxs("section",{className:Xe.content,children:[n.jsx(O,{title:o?.title?.section,href:a.link.url,target:a.link.target,children:n.jsx(Se,{preview:e.preview,isVideo:t})}),n.jsxs("div",{className:[Xe.boxInformation,r?Xe.titleGradient:""].join(" "),style:{width:s!=="default"?"90%":"",left:s==="left"?0:s==="right"?"calc(10% - 1px)":"auto",top:s!=="default"?"-1rem":""},children:[n.jsx(c,{}),n.jsx("h2",{className:Xe.articule,children:n.jsx(O,{className:Xe.linkStyled,href:e?.info?.link?.url,target:e?.info?.link?.target,children:e.main?.title?.section})})]})]})},vs={content:"_content_kro73_1",contentLayout:"_contentLayout_kro73_5"},ia=e=>n.jsx("div",{className:vs.content,children:n.jsx(bt,{className:`${vs.contentLayout} ${e.className}`,children:e.children})}),Ct={content:"_content_1nqra_1",before:"_before_1nqra_11",textContent:"_textContent_1nqra_22",title:"_title_1nqra_37",description:"_description_1nqra_46",linkStyled:"_linkStyled_1nqra_57"},wl=e=>{const t=e.logo;return n.jsxs("section",{className:Ct.content,children:[e.backgroundImgURL&&n.jsx("img",{className:Ct.before,src:e.backgroundImgURL,alt:""}),n.jsxs("div",{className:`${Ct.textContent} error-text-content`,children:[n.jsx(t,{}),n.jsx("p",{className:Ct.title,children:e.title}),n.jsx("p",{className:Ct.description,children:e.description}),n.jsx(O,{className:Ct.linkStyled,href:"/",children:e.buttonText??"Inicio"})]})]})},jt={content:"_content_zxcog_1",contentLabel:"_contentLabel_zxcog_8",label:"_label_zxcog_13",required:"_required_zxcog_22",input:"_input_zxcog_28"},bl=e=>n.jsxs("div",{className:jt.content,children:[n.jsxs("div",{className:jt.contentLabel,children:[n.jsx("label",{className:jt.label,children:e.label}),e.required&&n.jsx("span",{className:jt.required,children:"*"})]}),n.jsx("input",{className:jt.input,...e})]}),$t={content:"_content_zgx5w_1",contentLabel:"_contentLabel_zgx5w_8",label:"_label_zgx5w_13",required:"_required_zgx5w_22",input:"_input_zgx5w_28"},vl=e=>n.jsxs("div",{className:$t.content,children:[n.jsxs("div",{className:$t.contentLabel,children:[n.jsx("label",{className:$t.label,children:e.label}),e.required&&n.jsx("span",{className:$t.required,children:"*"})]}),n.jsxs("select",{className:$t.input,...e,children:[n.jsx("option",{value:"",children:"--Seleccione--"}),e.options.map((t,a)=>n.jsx("option",{value:t.value,children:t.label},a))]})]}),ca={content:"_content_1mi9t_1",label:"_label_1mi9t_8",input:"_input_1mi9t_17"},Cl=e=>n.jsxs("div",{className:ca.content,children:[n.jsx("label",{className:ca.label,children:e.label}),n.jsx("textarea",{className:ca.input,...e})]}),Re={boxInformation:"_boxInformation_achvw_1",textBox:"_textBox_achvw_30",contentBox:"_contentBox_achvw_40",liveBox:"_liveBox_achvw_50",dot:"_dot_achvw_72",sectionDescription:"_sectionDescription_achvw_97",articule:"_articule_achvw_110",description:"_description_achvw_137"},wn={content:"_content_1ihav_1",description:"_description_1ihav_23"},Cs=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}`),n.jsxs("div",{className:wn.content,children:[n.jsx(Se,{preview:e.preview,isLarge:!0,priorityHigh:!0}),t&&n.jsx("div",{className:wn.description,children:t})]})},_s=e=>n.jsx(n.Fragment,{children:n.jsxs("div",{className:Re.boxInformation,children:[n.jsx(Cs,{preview:e.preview}),n.jsxs("div",{className:Re.textBox,children:[n.jsxs("div",{className:Re.contentBox,children:[e?.info?.section&&n.jsx(O,{className:Re.sectionDescription,href:e?.info?.section?.url,children:e?.info?.section?.name}),n.jsxs("div",{className:Re.liveBox,children:[n.jsx("span",{className:Re.dot}),n.jsx("p",{children:"EN VIVO"})]})]}),n.jsx("h1",{className:Re.articule,children:e.main?.title?.section}),e.config?.showsubtitle&&n.jsx("div",{className:Re.description,style:{"--fontSizeSubTitle":e.fontSizeSubTitle,"--lineHeightSubTitle":e.lineHeightSubTitle},children:e.main.subtitle.striped})]})]})}),bn={content:"_content_oipiy_1",contentLine:"_contentLine_oipiy_17",contentText:"_contentText_oipiy_24",dateLink:"_dateLink_oipiy_37"},Ss=e=>n.jsx("section",{className:bn.content,children:e.itemList[0]?.list.items.map((t,a)=>n.jsxs("div",{className:bn.contentLine,children:[n.jsx(O,{className:bn.dateLink,href:`#item-${a+1}`,children:Ja(t.date)}),n.jsx("div",{className:bn.contentText,children:(e.itemList[0]?.list.integrated,t.title)})]},a))}),me={content:"_content_7ul21_1",contentInfo:"_contentInfo_7ul21_11",imageContainer:"_imageContainer_7ul21_19",imageStyled:"_imageStyled_7ul21_28",contentIconStyled:"_contentIconStyled_7ul21_39",name:"_name_7ul21_65",email:"_email_7ul21_74",description:"_description_7ul21_90",contenSocialNetwork:"_contenSocialNetwork_7ul21_102",socialIcon:"_socialIcon_7ul21_112",socialIconLink:"_socialIconLink_7ul21_117"},vn=e=>{if(!e||e.trim()==="")return e;const t=e.trim();return t.startsWith("http://")||t.startsWith("https://")?t:`https://${t}`},Ns=async e=>{const{autor:t,autorIcon:a}=e,o=a,s=t?.info?.image?.sizes?.[0]?.url??"",r=t?.info?.fullname??"",i=t?.info?.email??"",c=t?.addtional?.USER_SHOWEMAIL??!1,d=t?.addtional?.USER_SHOWBIO??!1,l=t?.addtional?.USER_MIBIO??"",h=vn(t?.addtional?.USER_USERFB??""),u=vn(t?.addtional?.USER_USERIG??""),f=vn(t?.addtional?.USER_USERTWT??""),g=vn(t?.addtional?.USER_USERLIN??"");return n.jsx("section",{className:`${me.content} ${e.className?e.className:""}`,children:n.jsxs("div",{className:me.contentInfo,children:[s?n.jsx("div",{className:`${me.imageContainer} sass-image-autor-wrapper`,children:n.jsx("img",{fetchPriority:"low",loading:"lazy",alt:"",className:me.imageStyled,src:await de(s)})}):n.jsx("div",{className:`${me.contentIconStyled} sass-image-autor-wrapper`,children:n.jsx(o,{})}),n.jsx("h1",{className:me.name,children:r}),c&&n.jsx("p",{className:me.email,children:i}),d&&n.jsx("p",{className:me.description,children:l}),n.jsxs("div",{className:me.contenSocialNetwork,children:[h&&n.jsx("a",{href:h,target:"_blank",className:me.socialIconLink,rel:"noreferrer",children:n.jsx(oa,{className:me.socialIcon})}),u&&n.jsx("a",{href:u,target:"_blank",className:me.socialIconLink,rel:"noreferrer",children:n.jsx(sa,{className:me.socialIcon})}),f&&n.jsx("a",{href:f,target:"_blank",className:me.socialIconLink,rel:"noreferrer",children:n.jsx(Pt,{className:me.socialIcon})}),g&&n.jsx("a",{href:g,target:"_blank",className:me.socialIconLink,rel:"noreferrer",children:n.jsx(pn,{className:me.socialIcon})})]})]})})},Ne={content:"_content_18ozj_1",contentInfo:"_contentInfo_18ozj_13",contentAuthor:"_contentAuthor_18ozj_26",imageStyled:"_imageStyled_18ozj_33",contentIconStyled:"_contentIconStyled_18ozj_42",name:"_name_18ozj_64",email:"_email_18ozj_72",description:"_description_18ozj_82",contenSocialNetwork:"_contenSocialNetwork_18ozj_93",socialIcon:"_socialIcon_18ozj_103"},Es=async e=>{const{autor:t,autorIcon:a}=e,o=a,s=t?.info?.image?.sizes?.[0]?.url??"",r=t?.info?.fullname??"",i=t?.info?.email??"",c=t?.addtional?.USER_SHOWEMAIL??!1,d=t?.addtional?.USER_SHOWBIO??!1,l=t?.addtional?.USER_MIBIO??"",h=t?.addtional?.USER_USERFB??"",u=t?.addtional?.USER_USERIG??"",f=t?.addtional?.USER_USERTWT??"",g=t?.addtional?.USER_USERLIN??"";return n.jsx("section",{className:Ne.content,children:n.jsxs("div",{className:Ne.contentInfo,children:[s?n.jsx("img",{fetchPriority:"low",loading:"lazy",className:Ne.imageStyled,src:await de(s)}):n.jsx("div",{className:Ne.contentIconStyled,children:n.jsx(o,{})}),n.jsxs("div",{className:Ne.contentAuthor,children:[n.jsx("h1",{className:Ne.name,children:r}),c&&n.jsx("p",{className:Ne.email,children:i}),d&&n.jsx("p",{className:Ne.description,children:l}),n.jsxs("div",{className:Ne.contenSocialNetwork,children:[h&&n.jsx("a",{href:h,target:"_blank",rel:"noreferrer",children:n.jsx(oa,{className:Ne.socialIcon})}),u&&n.jsx("a",{href:u,target:"_blank",rel:"noreferrer",children:n.jsx(sa,{className:Ne.socialIcon,style:{padding:"4px"}})}),f&&n.jsx("a",{href:f,target:"_blank",rel:"noreferrer",children:n.jsx(Pt,{className:Ne.socialIcon})}),g&&n.jsx("a",{href:g,target:"_blank",rel:"noreferrer",children:n.jsx(pn,{className:Ne.socialIcon})})]})]})]})})},Ts={content:"_content_jg6i2_1",bannerSection:"_bannerSection_jg6i2_25"},la=e=>n.jsxs("section",{className:Ts.content,children:[e.children,n.jsxs("div",{className:Ts.bannerSection,children:[e.bannerTop,n.jsx(mn,{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]})]}),Le={content:"_content_kmqba_1",header:"_header_kmqba_30",videos:"_videos_kmqba_56",videoContent:"_videoContent_kmqba_63",articleSection:"_articleSection_kmqba_70",contentLayoutVideoSection:"_contentLayoutVideoSection_kmqba_85",sectionVideoList:"_sectionVideoList_kmqba_93",iframeStyled:"_iframeStyled_kmqba_166",contentFrame:"_contentFrame_kmqba_172"},da={content:"_content_1dj0q_1",linkImage:"_linkImage_1dj0q_12",playStyled:"_playStyled_1dj0q_19"},_l=async e=>{const t=fn(),a={...e,main:{...e.main,title:{...e.main.title,article:xe(e.main.title.article,60)}}};return e&&e.info?n.jsxs("section",{className:da.content,children:[n.jsx("a",{className:da.linkImage,target:e?.info?.link?.target,title:e?.main?.title?.section,href:e.info.link.url,children:n.jsxs("div",{style:{position:"relative"},children:[n.jsx("img",{src:await de(e.preview.sizes[0]?.url||"")}),n.jsx(t,{className:`${da.playStyled} saas-image-play-icon`})]})}),n.jsx("div",{children:n.jsx(ct,{...a,paths:e.paths})})]}):null},Sl=e=>n.jsx("div",{className:Le.content,children:n.jsxs(bt,{className:Le.contentLayoutVideoSection,children:[n.jsxs("a",{className:Le.header,href:e.goBackLink??"/videos",children:[n.jsx("svg",{width:"21",height:"20",viewBox:"0 0 21 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:n.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"]}),n.jsxs("div",{className:Le.videos,children:[n.jsxs("div",{className:Le.videoContent,style:e.mainVideoStyles,children:[e.type==="vy"&&n.jsx("iframe",{className:Le.iframeStyled,src:`https://www.youtube.com/embed/${e.video?.main?.code}`,frameBorder:"0",allowFullScreen:!0}),e.type==="vf"&&n.jsx("iframe",{className:Le.iframeStyled,src:e.video?.main?.code,frameBorder:"0",allowFullScreen:!0}),e.type==="ve"&&n.jsx("div",{className:Le.contentFrame,dangerouslySetInnerHTML:{__html:e.video?.main?.code??""}}),n.jsx("div",{className:Le.articleSection,children:n.jsx(ct,{isTitle:!0,cutSubtitle:!1,...gt({...e?.video,info:{...e?.video?.info,link:{...e.video?.info?.link,url:""}}},!0,!!e.video?.main?.description),paths:e.paths})})]}),n.jsxs("div",{className:Le.sectionVideoList,style:e.listVideoStyles,children:[e.banner&&n.jsx(fe,{banners:e.banner.banners,name:e.banner.bannerName}),e.relatedName&&n.jsx("h2",{className:`${Le.relatedTitle} saas-video-related-title`,children:e.relatedName}),Array.isArray(e.videoList)&&e.videoList.map((t,a)=>E.createElement(_l,{...gt(t,!0,!1,!1),key:a,paths:e.paths}))]})]})]})}),Ge={content:"_content_gcte1_1",titleContent:"_titleContent_gcte1_24",title:"_title_gcte1_24",startLine:"_startLine_gcte1_88",line:"_line_gcte1_93",bottomLine:"_bottomLine_gcte1_99",childrenContent:"_childrenContent_gcte1_118",readMore:"_readMore_gcte1_131"},ue=E.forwardRef((e,t)=>{const{isTitle:a=!1,isOpinion:o=!1}=e,s=a?n.jsx("h1",{className:Ge.title,children:e.title}):n.jsx("h2",{className:Ge.title,children:e.title});return n.jsxs("section",{className:Ge.content,children:[e.title&&n.jsxs("div",{className:[Ge.titleContent,e.className??""].join(" "),"data-after":`${o}`,children:[n.jsx("hr",{className:Ge.startLine}),e.titleUrl?n.jsx(O,{href:e.titleUrl,children:s}):s,n.jsx("hr",{className:Ge.line}),e.titleUrl&&n.jsx(O,{className:Ge.readMore,href:e.titleUrl?.toString()??""})]}),e.title&&n.jsx("hr",{className:[Ge.bottomLine,e.className??""].join(" ")}),n.jsx("div",{className:Ge.childrenContent,ref:t,children:e.children})]})}),ha=e=>n.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"var(--header-icons)",xmlns:"http://www.w3.org/2000/svg",...e,children:n.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"})}),Cn=e=>n.jsx("svg",{width:"12",height:"13",viewBox:"0 0 12 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:n.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.862254 3.39448C1.1226 3.13413 1.54471 3.13413 1.80506 3.39448L6.00033 7.58974L10.1956 3.39448C10.4559 3.13413 10.878 3.13413 11.1384 3.39448C11.3987 3.65483 11.3987 4.07694 11.1384 4.33729L6.47173 9.00396C6.21138 9.26431 5.78927 9.26431 5.52892 9.00396L0.862254 4.33729C0.601905 4.07694 0.601905 3.65483 0.862254 3.39448Z",fill:e.fill??"#7B888A"})}),ce={drawerStyled:"_drawerStyled_tm61w_1",sidebarCustom:"_sidebarCustom_tm61w_6",accordionStyled:"_accordionStyled_tm61w_24",accordionHeading:"_accordionHeading_tm61w_35",accordionSummeryStyled:"_accordionSummeryStyled_tm61w_44",linkStyled:"_linkStyled_tm61w_72",subLinkStyled:"_subLinkStyled_tm61w_92",inputContent:"_inputContent_tm61w_114",buttonContent:"_buttonContent_tm61w_115",inputStyled:"_inputStyled_tm61w_125",buscar:"_buscar_tm61w_141",buttonStyled:"_buttonStyled_tm61w_170",accordionDetailsStyled:"_accordionDetailsStyled_tm61w_185",footerSlider:"_footerSlider_tm61w_200",socialMedia:"_socialMedia_tm61w_211",copyRights:"_copyRights_tm61w_230",icon:"_icon_tm61w_241"},Nl=({sidebar:e,socials:t,copyrigth:a,sidebarExtra:o,searchKeyWord:s})=>n.jsxs("aside",{className:ce.drawerStyled,id:"sidebar-expandable",style:{"--header-icons":"var(--search-input-icons)"},children:[n.jsx("input",{type:"checkbox",id:"side-bar-state"}),n.jsxs("section",{className:ce.sidebarCustom,children:[n.jsx("div",{className:ce.buttonContent,children:n.jsx("label",{className:ce.buttonStyled,htmlFor:"side-bar-state",children:n.jsx(vt,{className:ce.icon})})}),n.jsx("div",{className:ce.inputContent,children:n.jsxs("form",{className:ce.inputStyled,action:"/buscar",method:"GET",children:[n.jsx("input",{className:ce.buscar,type:"text",name:"query",placeholder:s+"..."}),n.jsx("button",{type:"submit",style:{background:"transparent",border:"none",outline:"none",padding:0,margin:0},children:n.jsx(ha,{color:"var(--search-input-icons)"})})]})}),n.jsxs("div",{style:{display:"flex",flexDirection:"column",justifyContent:"space-between",height:"100%"},children:[n.jsxs("div",{children:[o,e.map((r,i)=>n.jsxs("div",{className:ce.accordionStyled,children:[n.jsx("input",{type:"checkbox",style:{display:"none"},id:"accordion_"+i}),n.jsx("h3",{className:ce.accordionHeading,children:Array.isArray(r.subitem)?n.jsxs("label",{className:ce.accordionSummeryStyled,htmlFor:"accordion_"+i,children:[r.link?n.jsx(O,{className:`${ce.linkStyledAccordion} ${ce.linkStyled}`,href:r.link?r.link:void 0,target:r.target,children:r.description}):n.jsx("div",{children:r.description}),n.jsx(Cn,{width:13,height:13,fill:"var(--side-bar-arrow-color)"})]}):n.jsx(O,{className:ce.linkStyled,href:r.link?r.link:void 0,target:r.target,children:r.description})}),Array.isArray(r.subitem)&&n.jsx("div",{className:ce.accordionDetailsStyled,style:{"--max-height":r.subitem.length*45+"px"},children:r.subitem.map((c,d)=>n.jsx(O,{className:ce.subLinkStyled,href:c.link?c.link:void 0,target:c.target,children:c.description},d))})]},i))]}),n.jsxs("div",{className:ce.footerSlider,children:[n.jsx("div",{className:ce.socialMedia,children:Object.keys(t).map(r=>t[r]?.show&&n.jsx("a",{target:"_blank",rel:"noreferrer","aria-label":t[r].title+" link",className:ce.linkSocialNetwork,href:t[r].url,children:gn[r]({className:ce.icon})},r))}),n.jsx("p",{className:ce.copyRights,children:a})]})]})]})]}),Is=e=>n.jsxs("svg",{width:"30",height:"30",viewBox:"0 0 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[n.jsx("path",{d:"M5 22.5H25C25.6875 22.5 26.25 21.9375 26.25 21.25C26.25 20.5625 25.6875 20 25 20H5C4.3125 20 3.75 20.5625 3.75 21.25C3.75 21.9375 4.3125 22.5 5 22.5ZM5 16.25H25C25.6875 16.25 26.25 15.6875 26.25 15C26.25 14.3125 25.6875 13.75 25 13.75H5C4.3125 13.75 3.75 14.3125 3.75 15C3.75 15.6875 4.3125 16.25 5 16.25ZM3.75 8.75C3.75 9.4375 4.3125 10 5 10H25C25.6875 10 26.25 9.4375 26.25 8.75C26.25 8.0625 25.6875 7.5 25 7.5H5C4.3125 7.5 3.75 8.0625 3.75 8.75Z",fill:e.color}),n.jsx("path",{d:"M5 22.5H25C25.6875 22.5 26.25 21.9375 26.25 21.25C26.25 20.5625 25.6875 20 25 20H5C4.3125 20 3.75 20.5625 3.75 21.25C3.75 21.9375 4.3125 22.5 5 22.5ZM5 16.25H25C25.6875 16.25 26.25 15.6875 26.25 15C26.25 14.3125 25.6875 13.75 25 13.75H5C4.3125 13.75 3.75 14.3125 3.75 15C3.75 15.6875 4.3125 16.25 5 16.25ZM3.75 8.75C3.75 9.4375 4.3125 10 5 10H25C25.6875 10 26.25 9.4375 26.25 8.75C26.25 8.0625 25.6875 7.5 25 7.5H5C4.3125 7.5 3.75 8.0625 3.75 8.75Z",fill:e.color})]}),Qt={content:"_content_y5b1f_1",chipStyled:"_chipStyled_y5b1f_17",headLine:"_headLine_y5b1f_17",live:"_live_y5b1f_25",closeLiveStyled:"_closeLiveStyled_y5b1f_87"},ks=e=>{const{alertZone:t,id:a="close-alert"}=e,o=()=>n.jsx(O,{className:Qt.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 n.jsxs(n.Fragment,{children:[n.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&&n.jsxs("div",{id:"alert-chip",className:Qt.content,style:e.forceShow?{display:"flex",position:"sticky",top:100}:{},children:[n.jsxs("div",{className:Qt.live,children:[n.jsx("div",{className:Qt.chipStyled,children:t?.entity?.description}),e.forceShow&&n.jsx(o,{}),n.jsx("label",{htmlFor:a,children:n.jsx(vt,{className:Qt.closeLiveStyled})})]}),n.jsx(o,{})]})]})},He={content:"_content_18yq5_1",linkStyled:"_linkStyled_18yq5_14",linkSocialNetwork:"_linkSocialNetwork_18yq5_28",title:"_title_18yq5_49",tabs:"_tabs_18yq5_60",socialNetwork:"_socialNetwork_18yq5_68",icon:"_icon_18yq5_78",facebook:"_facebook_18yq5_84",youtube:"_youtube_18yq5_88",x:"_x_18yq5_92",instagram:"_instagram_18yq5_96",gnews:"_gnews_18yq5_100",tiktok:"_tiktok_18yq5_104",whatsapp:"_whatsapp_18yq5_108"},xs=e=>{const{cintillo:t,tapeTitle:a,socials:o}=e,s="",r=t?.findIndex(i=>i.link===s)??0;return(Array.isArray(t)||e.socialIcons)&&n.jsxs("section",{className:He.content,children:[Array.isArray(t)&&n.jsxs("div",{className:`${He.tabs} header-page-tape-content`,children:[a!==""&&n.jsx("p",{className:He.title,children:`${a}`}),t&&t[r]&&n.jsx(O,{className:He.linkStyled,target:t[r]?.target,href:t[r]?.link,style:{color:t[r]?.link===s?"var(--header-tape-active-link)":"var(--header-tape-icons)",fontWeight:t[r]?.link===s?"700":"400"},children:t[r]?.description},r),t&&t.map((i,c)=>{if(c!==r)return n.jsx(O,{className:He.linkStyled,href:i?.link,style:{color:i?.link===s?"var(--header-tape-active-link)":"var(--header-tape-color)",fontWeight:i?.link===s?"700":"400"},children:i?.description},c)})]}),n.jsx("div",{className:He.socialNetwork,children:Object.keys(o).map(i=>o[i]?.show&&n.jsx("a",{target:"_blank",rel:"noreferrer","aria-label":o[i].title+" link",className:He.linkSocialNetwork,href:o[i].url,children:gn[i]({className:[He.icon,He[i]??""].join(" ")})},i))})]})},Ie={headerStyled:"_headerStyled_6yw62_1",headerContent:"_headerContent_6yw62_14",iconContent:"_iconContent_6yw62_25",menuButton:"_menuButton_6yw62_34",logoStyled:"_logoStyled_6yw62_66",buttonSection:"_buttonSection_6yw62_94",buttonSectionSearch:"_buttonSectionSearch_6yw62_109",headLineContent:"_headLineContent_6yw62_131",headLineTitle:"_headLineTitle_6yw62_144",headLine:"_headLine_6yw62_131",hasAlertZone:"_hasAlertZone_6yw62_197"},El=e=>{const{alertZone:t}=e;return n.jsxs("header",{className:Ie.headerStyled,children:[e.socialIcons&&e.headerTape?.sticky&&n.jsx(xs,{socialIcons:e.socialIcons,cintillo:e.cintillo,tapeTitle:e.tapeTitle,socials:e.socials}),n.jsxs("div",{className:`${Ie.headerContent} center-mobile-header-icon`,children:[n.jsx(aa,{id:"button-app",className:Ie.menuButton,toggledrawerevent:"true","aria-label":"menu","aria-labelledby":"menu",title:"menu",children:n.jsx(Is,{className:Ie.startIcon,color:"var(--header-icons)",width:27,height:27})}),n.jsx("div",{className:Ie.iconContent,children:n.jsx(O,{href:"/","aria-label":"Home",className:"icon header-logo-link-sticky",style:{display:"flex"},children:E.createElement("span",{className:Ie.logoStyled},e.icon)})}),!e.showAlertPop&&t?.data&&n.jsxs("div",{className:Ie.headLineContent,children:[n.jsx("div",{className:`${Ie.headLineTitle} headLineTitle`,children:t.entity.description?`${t.entity.description}`:""}),n.jsx(O,{className:Ie.headLine,href:t.data[0]?.info.link.url,target:t.data[0]?.info.link.target,title:t.data[0]?.main.title.home,children:xe(t.data[0]?.main.title.home??"",120)})]}),n.jsxs("div",{style:e.showAlertPop?{marginLeft:"auto"}:{},className:[Ie.buttonSection,t?.data?Ie.hasAlertZone:"","search-button"].join(" "),children:[n.jsx(O,{href:e.searchLink?e.searchLink:"/buscar","aria-label":e.searchKeyWord,className:`${Ie.buttonSectionSearch} search-button-icon`,style:{display:"flex"},children:n.jsx(ha,{width:28,height:28,color:"currentColor"})}),e.rightZone]})]}),!e.showAlertPop&&n.jsx(ks,{alertZone:t,forceShow:e.showAlertPop})]})},ze={ul:"_ul_oit7k_1",li:"_li_oit7k_10",liBefore:"_liBefore_oit7k_18",ulContent:"_ulContent_oit7k_29",contentModal:"_contentModal_oit7k_56",linkStyled:"_linkStyled_oit7k_68",itemLink:"_itemLink_oit7k_93"},Tl=e=>{const{items:t}=e;return n.jsx("ul",{className:ze.ul,children:t.map((a,o)=>n.jsxs("li",{className:`${ze.liBefore} ${ze.li}`,children:[a.link?n.jsxs(O,{"aria-label":a.description,className:ze.linkStyled,href:a.link?a.link:void 0,target:a.target,children:[a.description,Array.isArray(a.subitem)&&n.jsx(Cn,{})]}):n.jsxs("span",{"aria-label":a.description,className:ze.linkStyled,children:[a.description,Array.isArray(a.subitem)&&n.jsx(Cn,{})]}),Array.isArray(a.subitem)&&n.jsx("ul",{className:ze.ulContent,children:n.jsx("div",{className:ze.contentModal,children:a.subitem.map((s,r)=>n.jsx("li",{className:ze.li,children:n.jsx(O,{className:ze.itemLink,"aria-label":s.description,href:s.link?s.link:void 0,target:s.target,children:s.description})},r))})})]},o))})},Ae={headerStyled:"_headerStyled_q9qvi_1",headerContent:"_headerContent_q9qvi_23",menuButtonSection:"_menuButtonSection_q9qvi_33",menuButton:"_menuButton_q9qvi_33",buttonSection:"_buttonSection_q9qvi_84",buttonSectionSearch:"_buttonSectionSearch_q9qvi_101",hasAlertZone:"_hasAlertZone_q9qvi_112",buttonText:"_buttonText_q9qvi_131",logoContent:"_logoContent_q9qvi_141",logoStyled:"_logoStyled_q9qvi_149",headLineContent:"_headLineContent_q9qvi_173",headLineTitle:"_headLineTitle_q9qvi_188",menuSection:"_menuSection_q9qvi_204",headLine:"_headLine_q9qvi_173",line:"_line_q9qvi_256"},Il=e=>{const{menu:t,alertZone:a}=e;return n.jsxs("header",{className:Ae.headerStyled,style:{top:e.cintillo||e.socialIcons&&!e.headerTape?.static?40:0},children:[e.socialIcons&&e.headerTape?.static&&n.jsx(xs,{socialIcons:e.socialIcons,cintillo:e.cintillo,tapeTitle:e.tapeTitle,socials:e.socials}),n.jsxs("div",{style:e.showAlertPop?{gap:0}:{},className:[Ae.headerContent,a?.data?Ae.hasAlertZone:""].join(" "),children:[n.jsx("div",{className:Ae.menuButtonSection,children:n.jsxs(aa,{className:Ae.menuButton,id:"button-app",toggledrawerevent:"true","aria-label":"menu","aria-labelledby":"menu",title:"menu",children:[n.jsx(Is,{color:"var(--header-icons)",width:27,height:27}),n.jsx("p",{className:Ae.buttonText,style:{lineHeight:0},children:e.menuText})]})}),n.jsx("div",{className:Ae.logoContent,children:n.jsx(O,{href:"/","aria-label":"Home",className:"header-logo-link",children:E.createElement("span",{className:`${Ae.logoStyled}`},e.icon)})}),n.jsxs("div",{className:Ae.buttonSection,children:[n.jsx(O,{href:e.searchLink?e.searchLink:"/buscar",style:{display:"flex"},className:Ae.buttonSectionSearch,"aria-label":e.searchKeyWord,children:n.jsx(ha,{width:28,height:28,color:"currentColor"})}),e.rightZone]}),!e.showAlertPop&&a?.data?n.jsxs("div",{className:Ae.headLineContent,children:[n.jsx("p",{className:`${Ae.headLineTitle} headLineTitle`,children:a.entity.description?`${a.entity.description}`:""}),n.jsx(O,{className:Ae.headLine,href:a.data[0]?.info.link.url,target:a.data[0]?.info.link.target,title:a.data[0]?.main.title.home,children:xe(a.data[0]?.main.title.home??"",120)})]}):n.jsx("div",{className:Ae.line}),n.jsx("div",{className:Ae.menuSection,style:e.showAlertPop?{"--showAlertPop":"0px"}:{},children:Array.isArray(t)&&n.jsx(Tl,{items:t})})]})]})},ua={childrenContent:"_childrenContent_wqlb4_1",childrenContentAux:"_childrenContentAux_wqlb4_12",op2:"_op2_wqlb4_25"},kl=e=>{const{alertZone:t,children:a,sidebar:o}=e;return n.jsxs(n.Fragment,{children:[n.jsx(El,{...e}),!e.showOnlyStickyHeader&&n.jsx(Il,{...e}),n.jsxs("div",{className:[ua.childrenContent,e.showAlertPop?ua.op2:"",t?.data?ua.childrenContentAux:""].join(" "),style:e.showOnlyStickyHeader?{"--hasAlertMargin":"3.6rem !important"}:{},id:"content-layout",children:[e.showAlertPop&&n.jsx(ks,{alertZone:t,forceShow:e.showAlertPop,id:"static-alert-chip"}),a]}),n.jsx(Nl,{sidebarExtra:e.sidebarExtra,searchKeyWord:e.searchKeyWord,sidebar:o,socials:e.socials,copyrigth:e.copyrigth})]})},_t={content:"_content_16ydf_1",tags:"_tags_16ydf_10",chipStyled:"_chipStyled_16ydf_20",tagLink:"_tagLink_16ydf_47",tagStyled:"_tagStyled_16ydf_53"},Us=e=>n.jsx("section",{className:_t.content,children:Array.isArray(e.tags)&&n.jsxs("div",{className:_t.tags,children:[n.jsx("p",{className:_t.tagStyled,children:e.title?e.title:"Tags:"}),e.tags.map((t,a)=>t.approved?n.jsx(O,{href:at(t,e.paths),children:n.jsx("div",{className:`${_t.chipStyled} ${_t.tagLink}`,children:t.name})},a):n.jsx("div",{className:_t.chipStyled,children:t.name},a))]})}),De={contentBox:"_contentBox_1cum1_1",content:"_content_1cum1_1",imageStyled:"_imageStyled_1cum1_16",contentIconStyled:"_contentIconStyled_1cum1_23",avatarContent:"_avatarContent_1cum1_43",journalistSection:"_journalistSection_1cum1_50",journalistInfo:"_journalistInfo_1cum1_56",socialNetworkSection:"_socialNetworkSection_1cum1_75",article:"_article_1cum1_88"},qs=async e=>{const{autor:t}=e,a=t?.addtional?.USER_SHOWBIO??!1,o=t?.info?.name??"",s=t?.info?.fullname??"",r=t?.info?.image?.sizes?.[0]?.url??"",i=t?.addtional?.USER_MIBIO??"",c=t?.addtional?.USER_USERFB??"",d=t?.addtional?.USER_USERIG??"",l=t?.addtional?.USER_USERTWT??"",h=t?.addtional?.USER_USERLIN??"";return a&&n.jsx("section",{className:De.contentBox,children:n.jsxs("div",{className:De.content,children:[n.jsxs("div",{className:De.avatarContent,children:[n.jsx(O,{className:De.journalistInfo,href:`/${e.paths.autor}/${o}`,children:r?n.jsx("img",{fetchPriority:"low",loading:"lazy",alt:"autor-image",className:De.imageStyled,src:await de(r)}):n.jsx("div",{className:De.contentIconStyled,children:e.autorIcon()})}),n.jsxs("section",{className:De.journalistSection,children:[n.jsx("h3",{className:De.journalistInfo,children:n.jsx(O,{href:`/${e.paths.autor}/${o}`,children:s})}),n.jsxs("section",{className:De.socialNetworkSection,children:[c&&n.jsx("a",{href:c,target:"_blank","aria-label":i,rel:"noreferrer",children:n.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:n.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&&n.jsx("a",{href:d,target:"_blank","aria-label":i,rel:"noreferrer",children:n.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[n.jsxs("g",{clipPath:"url(#clip0_281_2357)",children:[n.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"}),n.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"}),n.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"})]}),n.jsx("defs",{children:n.jsx("clipPath",{id:"clip0_281_2357",children:n.jsx("rect",{width:"17",height:"17",fill:"white",transform:"translate(4 4)"})})})]})}),l&&n.jsx("a",{href:l,target:"_blank","aria-label":i,rel:"noreferrer",children:n.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:n.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"})})}),h&&n.jsx("a",{href:h,target:"_blank","aria-label":i,rel:"noreferrer",children:n.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[n.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"}),n.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"}),n.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"})]})})]})]})]}),a&&n.jsx("p",{className:De.article,dangerouslySetInnerHTML:{__html:`${i} <a aria-label="${o}" href="/${e.paths.autor}/${o}">${e.texts.authorViewMore??"Ver más"}</a>`}})]})})},et={content:"_content_vmnac_1",imageStyled:"_imageStyled_vmnac_20",contentIconStyled:"_contentIconStyled_vmnac_21",contentCard:"_contentCard_vmnac_31",contentInfo:"_contentInfo_vmnac_70",fullName:"_fullName_vmnac_76",LearnMoreLink:"_LearnMoreLink_vmnac_83"},Ls=async e=>{const{news:t,texts:a}=e;return t.config?.showauthor&&n.jsx("div",{className:et.content,children:Array.isArray(t.authors)&&t.authors?.map(async o=>n.jsxs("div",{className:et.contentCard,children:[o.image?n.jsx("img",{fetchPriority:"low",loading:"lazy",className:et.imageStyled,src:await de(o.image.sizes[0]?.url||"")},o.fullname):n.jsx("div",{className:et.contentIconStyled,children:e.autorIcon},o.fullname),n.jsxs("div",{className:et.contentInfo,children:[o.internaluser?n.jsx("a",{className:et.fullName,href:`/${e.paths.autor}/${o.name}`,children:o.fullname}):n.jsx("p",{className:et.fullName,children:o.fullname}),o.internaluser&&n.jsx("a",{className:et.LearnMoreLink,href:`/${e.paths.autor}/${o.name}`,children:a.JournalistGroupLink})]})]},`author-${o.firstname}`))})},lt={content:"_content_eqhtq_1",contentInfo:"_contentInfo_eqhtq_24",imageStyled:"_imageStyled_eqhtq_41",name:"_name_eqhtq_46",description:"_description_eqhtq_51",imageContainer:"_imageContainer_eqhtq_56",contentInfoWithoutImg:"_contentInfoWithoutImg_eqhtq_107"},xl=async e=>{const t=e.img?await de(e.img):"";return n.jsx("section",{className:`${lt.content} ${e.className}`,children:n.jsxs("div",{className:`${lt.contentInfo} ${t?"":lt.contentInfoWithoutImg}`,children:[e.img&&n.jsx("div",{className:`${lt.imageContainer} sass-image-tag-wrapper`,children:n.jsx("img",{fetchPriority:"low",loading:"lazy",className:lt.imageStyled,src:t})}),n.jsx("h1",{className:lt.name,children:e.tag}),e.description&&n.jsx("div",{className:lt.description,dangerouslySetInnerHTML:{__html:e.description}})]})})},Ee={content:"_content_1j0pj_1",contentNews:"_contentNews_1j0pj_10",linkTitle:"_linkTitle_1j0pj_27",tag:"_tag_1j0pj_35",tagmx:"_tagmx_1j0pj_55",titular:"_titular_1j0pj_70",correspondent:"_correspondent_1j0pj_85",correspondentLink:"_correspondentLink_1j0pj_96",description:"_description_1j0pj_107"},St=e=>{const{SHOW_TAG_BY_SECTION:t}=K(),a=()=>{if(e?.config?.showtime&&e.config?.showauthor)return`${e?.authors[0]?.fullname} - ${ke(e.info?.date?.modified)}`;if(e.config?.showauthor)return e?.authors[0]?.fullname;if(e?.config?.showtime)return ke(e.info?.date?.modified)},o=()=>{if(t&&e.keywords?.tags?.length&&e.keywords.tags.length>0){const r=e.keywords.tags[0],i=r.name;return r.approved?n.jsxs("h3",{children:[" ",n.jsx(O,{"aria-label":i,className:Ee.tagmx,href:at(r,e.paths),children:i})]}):n.jsx("div",{className:Ee.tagmx,children:i})}else if(e.info?.section?.url)return n.jsx("h3",{children:n.jsx(O,{className:Ee.tagmx,href:e?.info?.section?.url,children:e?.info?.section?.name})});return null},s=()=>{if(t&&e.keywords?.tags?.length&&e.keywords.tags.length>0){const r=e.keywords.tags[0],i=r.name;return r.approved?n.jsx("h3",{children:n.jsx(O,{"aria-label":i,className:Ee.tag,href:at(r,e.paths),children:i})}):n.jsx("div",{className:Ee.tag,children:i})}else if(e.info?.section?.url)return n.jsx("h3",{children:n.jsx(O,{className:Ee.tag,href:e?.info?.section?.url,children:e?.info?.section?.name})});return null};return n.jsxs("section",{className:`${Ee.content} destacado-super-content`,children:[n.jsx(O,{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:n.jsx(Se,{preview:e.preview,isLarge:!0,BackDropAuxHeigthMobile:"513px",priorityHigh:!0})}),n.jsxs("div",{className:Ee.contentNews,style:{"--widthTextContent":e.textPosition==="start"?"100%":"80%"},children:[n.jsx(o,{}),n.jsxs("div",{style:{position:"relative"},children:[n.jsx(s,{}),n.jsx(O,{className:Ee.linkTitle,href:e?.info?.link?.url,target:e?.info?.link?.target,children:n.jsx("h1",{className:Ee.titular,style:{"--titlePosition":e.textPosition==="start"?"initial":"center"},children:e?.main?.title?.home})})]}),e.config?.showsubtitle&&n.jsx("div",{className:Ee.description,dangerouslySetInnerHTML:{__html:e.main.subtitle.striped}}),e?.config?.showtime&&e.config?.showauthor&&n.jsx(n.Fragment,{children:e.authors[0]?.internaluser?n.jsx(O,{href:`/${e.paths?.autor??"autor"}/${e?.authors[0]?.name}`,className:Ee.correspondent,children:a()}):n.jsx("p",{className:Ee.correspondentLink,children:a()})})]})]})},Bs=e=>{const{main:t,authors:a,info:o,preview:s,isVideo:r,config:i,itemReverseOrder:c,imageSize:d,showSuper:l}=e;return n.jsxs("section",{className:Hc.content,children:[l?n.jsx("section",{style:{...e.customSectionCardStyles},children:n.jsx(St,{main:t,authors:a,info:o,preview:s,isVideo:r,config:i,paths:e.paths})}):n.jsx(Oe,{...e,main:t,authors:a,info:o,preview:s,isVideo:r,config:i,priorityHigh:!0}),e.banners&&n.jsx(fe,{banners:e.banners,name:"main_block_"+(e.rightOnlyBanner?1:2)}),!e.rightOnlyBanner&&n.jsx(ms,{block:e.block,itemReverseOrder:c,priorityHigh:!0,imageSize:d,customNewsDescriptionStyles:e.customNewsDescriptionStyles,paths:e.paths})]})},fa={content:"_content_1dcf7_1",firstSection:"_firstSection_1dcf7_10",secondSection:"_secondSection_1dcf7_16"},Ul=({content:e,customLargeSection:t,customSmallSection:a,paths:o})=>{const s=e[0];return Array.isArray(e)&&e.length>0&&s&&n.jsxs("section",{className:fa.content,children:[n.jsx("div",{style:t,className:fa.firstSection,children:n.jsx(St,{...s,textPosition:"start",heightImageOverwrite:"512px",heightImageOverwriteMobile:"270px",paths:o})}),n.jsx("div",{style:a,className:fa.secondSection,children:e.map((r,i)=>i>0&&E.createElement(St,{...r,key:i,textPosition:"start",heightImageOverwrite:"256px",heightImageOverwriteMobile:"270px",paths:o}))})]})},Ps={content:"_content_wsx1m_1",firstSection:"_firstSection_wsx1m_8"},ql=({content:e,customLargeSection:t,customSlimSection:a,paths:o})=>Array.isArray(e)&&e.length>0&&n.jsx("section",{className:Ps.content,children:e.map((s,r)=>r===0?n.jsx("div",{style:t,className:Ps.firstSection,children:n.jsx(St,{...s,isVertical:!0,textPosition:"start",heightImageOverwrite:"512px",heightImageOverwriteMobile:"270px",paths:o})},r):n.jsx("section",{style:a,children:E.createElement(St,{...s,key:r,isVertical:!0,textPosition:"start",heightImageOverwrite:"512px",heightImageOverwriteMobile:"270px",paths:o})},r))}),dt={content:"_content_1n73e_1",sectionDescription:"_sectionDescription_1n73e_13",title:"_title_1n73e_33",subtitle:"_subtitle_1n73e_47",linkStyled:"_linkStyled_1n73e_58"},Os=e=>{const{SHOW_TAG_BY_SECTION:t}=K(),a=()=>{if(t&&e.mainNew.keywords?.tags?.length&&e.mainNew.keywords.tags.length>0){const o=e.mainNew.keywords.tags[0],s=o.name;return o.approved?n.jsx("h3",{children:n.jsx(O,{"aria-label":s,className:dt.sectionDescription,href:at(o,e.paths),children:s})}):n.jsx("div",{className:dt.sectionDescription,children:s})}else if(e.mainNew.info?.section?.url)return n.jsx("h3",{children:n.jsx(O,{className:dt.sectionDescription,href:e?.mainNew?.info?.section?.url,children:e?.mainNew?.info?.section?.name})});return null};return n.jsxs("div",{className:dt.content,children:[n.jsx(a,{}),n.jsx(O,{className:dt.title,href:e?.mainNew?.info?.link?.url,target:e?.mainNew?.info?.link?.target,children:e?.mainNew?.main?.title.home}),e?.mainNew?.main?.subtitle?.rendered&&n.jsx("p",{className:dt.subtitle,children:e?.mainNew?.main?.subtitle?.striped}),e.goTo&&n.jsx(O,{href:e.goTo.url,className:dt.linkStyled,children:e.goTo.description})]})},ma={headerSection:"_headerSection_drjnj_1",headerSectionLink:"_headerSectionLink_drjnj_12",newsContent:"_newsContent_drjnj_17"},Ds=e=>{const{content:t,title:a,isVideo:o}=e;if(!t||!t[0]||t.length===0)return;const s=e.slot_id&&e.slot_id!=="Nota_1",r={...t[0],main:{...t[0].main,title:{...t[0].main.title,section:s?t[0].main.title.home:t[0].main.title.section}}},i=t.slice(1);return r&&i&&n.jsxs(ue,{title:a,titleUrl:e.titleUrl,children:[n.jsxs("div",{className:ma.headerSection,children:[n.jsx(Os,{mainNew:r,goTo:e.goTo,paths:e.paths}),n.jsx(O,{className:ma.headerSectionLink,href:r?.info?.link?.url,target:r?.info?.link?.target,children:n.jsx(Se,{preview:r.preview})})]}),n.jsxs("div",{className:ma.newsContent,children:[n.jsx("div",{className:"banner-context",style:{order:1},children:e.banner}),Array.isArray(i)&&i.map((c,d)=>{const l={...c,main:{...c.main,title:{...c.main.title,section:s?c.main.title.home:c.main.title.section}}};return n.jsx("div",{style:{order:d},children:n.jsx(Oe,{...l,isVideo:o,paths:e.paths})},d)})]})]})},Fe={content:"_content_1stvq_1",autorContent:"_autorContent_1stvq_8",image:"_image_1stvq_24",contentIcon:"_contentIcon_1stvq_25",boxInformationContent:"_boxInformationContent_1stvq_47",autorName:"_autorName_1stvq_53",time:"_time_1stvq_85",comment:"_comment_1stvq_98",title:"_title_1stvq_107"},_n=async e=>{const{data:t,autorIcon:a}=e,o=a,s=()=>t?.config?.showtime?`${ke(t.info?.date?.modified)}`:"",r=n.jsxs("div",{className:Fe.autorContent,children:[Array.isArray(t?.authors)&&Array.isArray(t?.authors[0]?.image?.sizes)&&t?.authors[0]?.image?.sizes?.length>0?n.jsx("img",{fetchPriority:"low",loading:"lazy",className:Fe.image,src:await de(t?.authors[0]?.image?.sizes[0]?.url||""),alt:t?.authors[0]?.fullname}):n.jsx("div",{className:Fe.contentIcon,children:n.jsx(o,{})}),n.jsx("p",{className:Fe.autorName,children:xe(t?.authors[0]?.fullname??"Redacción",18)}),n.jsx("p",{className:Fe.time,children:s()})]});return n.jsxs("div",{className:Fe.content,children:[t?.authors[0]?.internaluser?n.jsx(O,{href:t.authors[0]?.internaluser?`/${e.paths.autor}/${t?.authors[0]?.name}`:"#",children:r}):r,n.jsxs("div",{className:Fe.boxInformationContent,children:[n.jsx(O,{className:Fe.title,href:t?.info?.link?.url,target:t?.info?.link?.target,children:t?.main?.title?.home}),n.jsx("p",{className:Fe.comment,children:xe(t?.main?.subtitle?.striped||"")})]})]})},Nt={content:"_content_1d7mg_1",boxPosition:"_boxPosition_1d7mg_8",contentFlex:"_contentFlex_1d7mg_21",bannerContent:"_bannerContent_1d7mg_29",bannerContentAux:"_bannerContentAux_1d7mg_40"};function Ll(e){const t=new Array(e.length),a=e.length/2;for(let o=0;o<e.length;o++)o%2===0?t[Math.floor(o/2)]=e[o]:t[a+Math.floor(o/2)]=e[o];return t}const Bl=e=>{const{isOpinion:t=!1}=e,a=r=>n.jsx("div",{className:Nt.boxPosition+" banner-context",style:{order:2},children:n.jsx("div",{className:Nt.bannerContentAux,children:n.jsx("div",{style:{position:"absolute",height:"270px",top:"0"},children:e.banner})})},r),o=[];for(let r=0;r<e.news.length;r++){const i=e.news[r];r===2&&o.push(a(r)),i&&o.push(n.jsx("div",{className:Nt.boxPosition,style:{order:r},children:n.jsx(_n,{data:i,autorIcon:e.autorIcon,paths:e.paths})},`description-block-2-odd-${r}`))}const s=o.length%2===0?Ll(o):o;return n.jsx("section",{style:e.customStyles,children:n.jsx(ue,{title:e.title,titleUrl:e.titleUrl,isOpinion:t,children:n.jsxs("div",{className:Nt.content,children:[n.jsx("div",{className:Nt.contentFlex,children:s}),n.jsx("div",{className:Nt.bannerContent,children:e.halfPageBanner})]})})})},Ms={content:"_content_w9viv_1",title:"_title_w9viv_10"},Pl=e=>{const{showTitle:t=!0}=e;return n.jsxs("div",{className:Ms.content,children:[t&&n.jsx("p",{className:Ms.title,children:"Editorial"}),n.jsx(ct,{...e,info:{...e.info,section:{name:"",slug:"",url:""}}})]})},Et={content:"_content_1nd2h_1",newsContent:"_newsContent_1nd2h_8",boxPosition:"_boxPosition_1nd2h_17",bannerContent:"_bannerContent_1nd2h_23",bannerContentAux:"_bannerContentAux_1nd2h_33"},Ol=e=>{const{news:t}=e;return Array.isArray(t)&&n.jsxs("div",{className:Et.content,children:[n.jsxs("div",{className:Et.newsContent,children:[e.bannerArray&&e.bannerArray.map((a,o)=>n.jsx("div",{className:Et.boxPosition+" banner-context",style:{order:2+5*o},children:n.jsx("div",{className:Et.bannerContentAux,children:n.jsx("div",{style:{position:"absolute",height:"270px",top:"0"},children:a})})},o)),t.map((a,o)=>n.jsx("div",{className:Et.boxPosition,style:{order:o},children:n.jsx(Oe,{...a,share:e.share,paths:e.paths})},o))]}),n.jsx("div",{className:Et.bannerContent,children:e.halfPageBanner})]})},Dl=e=>n.jsxs(n.Fragment,{children:[n.jsx(As,{className:"display-on-lower-900px",...e,termsLink:e.termsLink,submitFunction:e.submitFunction}),n.jsx(ys,{...e})]}),Sn={newsContent:"_newsContent_gd57q_1",newsContentWithLines:"_newsContentWithLines_gd57q_8",newsContentWithoutLines:"_newsContentWithoutLines_gd57q_13",contentSeparator:"_contentSeparator_gd57q_18"},js=e=>{const{content:t}=e;if(!t||t.length===0)return;const a=i=>e.hasLines&&(i+1)%3!==0?Sn.contentSeparator:"",o=[];let s=0,r=1;for(let i=0;i<t.length;i++){e.banners&&e.bannerPositionIndex?.includes(i)&&(o.push(n.jsx("section",{className:a(s),children:e.banners?.some(h=>h.key===`${e.slot_id}_${r}`)&&n.jsx(fe,{banners:e.banners,name:`${e.slot_id}_${r}`})},s)),s++,r++);const c=e.isVideo?gt(t[i],e.showVideoTime,e.showVideosubtitle):t[i];if(!c)continue;const d=e.slot_id&&e.slot_id!=="Nota_1",l={...c,main:{...c.main,title:{...c.main.title,section:d?c.main.title.home:c.main.title.section}}};o.push(n.jsx("section",{className:a(s),children:n.jsx(Oe,{...l,isVideo:e.isVideo,paths:e.paths})},s)),s++}return o.length===2&&o.push(n.jsx("div",{},s)),n.jsx("div",{className:`${e.hasLines?Sn.newsContentWithLines:Sn.newsContentWithoutLines} ${Sn.newsContent}`,children:o})},ga=e=>n.jsx(ue,{title:e.title,titleUrl:e.titleUrl,children:n.jsx(js,{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})}),$s={newsContent:"_newsContent_1sb62_1",contentSeparator:"_contentSeparator_1sb62_8"},Qs=e=>{const{content:t,title:a}=e;if(!(!t||t.length===0||!Array.isArray(t)))return n.jsx(ue,{title:a,titleUrl:e.titleUrl,children:n.jsx("div",{className:`${$s.newsContent} ${e.hasLines?$s.contentSeparator:""}`,children:t?.map((o,s)=>{const r=e.slot_id&&e.slot_id!=="Nota_1",i={...o,main:{...o.main,title:{...o.main.title,section:r?o.main.title.home:o.main.title.section}}};return n.jsx("section",{children:n.jsx(Oe,{...i,share:e.share,paths:e.paths})},s)})})})},pa={newsContent:"_newsContent_1gbse_1",contentSeparator:"_contentSeparator_1gbse_8",newsContentWhitoutLine:"_newsContentWhitoutLine_1gbse_29"},Gs=e=>{const{content:t,title:a}=e;if(!(!t||t.length===0))return n.jsx(ue,{title:a,titleUrl:e.titleUrl,children:n.jsx("div",{className:`${pa.newsContent} ${e.hasLines?pa.contentSeparator:pa.newsContentWhitoutLine}`,children:t.map((o,s)=>{const r=e.slot_id&&e.slot_id!=="Nota_1",i={...o,main:{...o.main,title:{...o.main.title,section:r?o.main.title.home:o.main.title.section}}};return n.jsx("section",{children:n.jsx(Oe,{...i,share:e.share,paths:e.paths})},s)})})})},Aa={headerSection:"_headerSection_1m1sp_3",headerSectionLink:"_headerSectionLink_1m1sp_16",newsContent:"_newsContent_1m1sp_29"},Hs=e=>{const{content:t,title:a,isVideo:o=!0}=e;if(!t||t.length===0)return;const s=t[0],r=e.slot_id&&e.slot_id!=="Nota_1",i=t.slice(1);return s&&i&&n.jsxs(ue,{title:a,titleUrl:e.titleUrl,children:[n.jsxs("div",{className:Aa.headerSection,children:[n.jsx(Os,{goTo:e.goTo,mainNew:gt(s),paths:e.paths}),n.jsx(O,{className:Aa.headerSectionLink,href:s?.info?.link.url,target:s?.info?.link.target,"aria-label":"Video",children:n.jsx(Se,{preview:{sizes:s?.main?.image.sizes,description:s?.main?.image.description},isVideo:o,isLarge:!0})})]}),n.jsxs("div",{className:Aa.newsContent,children:[n.jsx("div",{className:"banner-context",style:{order:1},children:e.banner}),Array.isArray(i)&&i.map((c,d)=>{const l=gt(c),h={...l,main:{...l.main,title:{...l.main.title,section:r?l.main.title.home:l.main.title.section}}};return n.jsx("div",{style:{order:d},children:E.createElement(Oe,{...h,isVideo:o,key:d,paths:e.paths})},d)})]})]})},Gt={content:"_content_1qdkl_1",linkImage:"_linkImage_1qdkl_30",sectionDescription:"_sectionDescription_1qdkl_42",dateText:"_dateText_1qdkl_62",textContent:"_textContent_1qdkl_73"},Ml=async e=>{const{showNewsLikeTitle:t=!1}=e;return e&&e.info?n.jsxs("section",{className:Gt.content,style:{"--heightImageOverwrite":"100%"},children:[n.jsx(O,{className:Gt.linkImage,target:e?.info?.link?.target,title:e.main?.title?.section,href:t?e.info.link.url:e?.info?.section?.url,children:n.jsx(Se,{preview:e.preview})}),n.jsxs("div",{className:Gt.textContent,children:[n.jsx(O,{className:Gt.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)??""}),n.jsx("p",{className:Gt.dateText,children:ke(e?.info?.date?.modified)})]})]}):null},zs={content:"_content_yx3zm_1",contentSeparator:"_contentSeparator_yx3zm_7"},ya={newsContent:"_newsContent_1uamf_1",contentSeparator:"_contentSeparator_1uamf_8",hasLinesBlock:"_hasLinesBlock_1uamf_40"},Fs=e=>{if(!e.content||e.content.length===0)return;const t=e.slot_id&&e.slot_id!=="Nota_1";return n.jsx(ue,{title:e.title,children:n.jsx("div",{className:`${zs.content} ${e.hasLines?zs.contentSeparator:""}`,style:{gap:e.hasLines?"30px":"0px"},children:Array.isArray(e.content)&&e.content?.map((a,o)=>{const s={...a,main:{...a.main,title:{...a.main.title,section:t?a.main.title.home:a.main.title.section}}};return n.jsx("section",{className:e.hasLines?ya.hasLinesBlock:"",children:E.createElement(Ml,{...s,key:o,showNewsLikeTitle:e.showNewsLikeTitle})},o)})})})},Vs=e=>{const{content:t,title:a,slot_id:o}=e,s=e.slot_id&&e.slot_id!=="Nota_1";return t&&t.length!==0&&n.jsx(ue,{title:a,titleUrl:e.titleUrl,children:n.jsx(it,{slot_id:o,cardWidth:e.cardWidth,cardGap:e.cardGap,visibleItems:e.visibleItems,pagination:e.pagination,children:t.map((r,i)=>{const c={...r,main:{...r.main,title:{...r.main.title,section:s?r.main.title.home:r.main.title.section}}};return n.jsx("div",{style:{"--heightImageOverwrite":e.heightImageOverwrite,"--heightImageOverwriteMobile":e.heightImageOverwriteMobile},children:n.jsx(Mt,{...c,paths:e.paths})},i)})})})},tt={content:"_content_1mj79_1",imageStyled:"_imageStyled_1mj79_14",contentIcon:"_contentIcon_1mj79_23",boxInformation:"_boxInformation_1mj79_44",comment:"_comment_1mj79_51",title:"_title_1mj79_60",authorName:"_authorName_1mj79_81"},jl=async e=>{const{data:t}=e;return n.jsxs("div",{className:tt.content,children:[Array.isArray(t.authors)&&t?.authors[0]?.image?n.jsx("img",{fetchPriority:"low",loading:"lazy",className:tt.imageStyled,src:await de(t?.authors[0]?.image?.sizes[0]?.url||""),alt:t?.authors[0]?.fullname}):n.jsx("div",{className:tt.contentIcon,children:e.autorIcon}),n.jsxs("div",{className:tt.boxInformation,children:[n.jsx("p",{className:tt.authorName,children:t?.authors[0]?.internaluser?n.jsx(O,{href:t.authors[0]?.internaluser?`/${e.paths.autor}/${t?.authors[0]?.name}`:"#",children:t?.authors[0]?.fullname??"Redacción"}):t?.authors[0]?.fullname??"Redacción"}),n.jsx("p",{className:tt.title,children:n.jsx(O,{className:tt.linkStyled,href:t?.info?.link?.url,target:t?.info?.link?.target,children:xe(t?.main?.title?.home,40)})}),n.jsx("p",{className:tt.comment,children:t?.main?.subtitle?.striped})]})]})},Ws=e=>{const t=e.slot_id&&e.slot_id!=="Nota_1";return n.jsx(ue,{titleUrl:e.titleUrl,title:e.title,children:n.jsx(it,{slot_id:e.slot_id,cardGap:31,cardWidth:344,visibleItems:3,children:e.content&&e.content.map((a,o)=>{const s={...a,main:{...a.main,title:{...a.main.title,section:t?a.main.title.home:a.main.title.section}}};return n.jsx(jl,{autorIcon:e.autorIcon,data:s,paths:e.paths},o)})})})},Ve={content:"_content_1elhb_1",newsContentSection:"_newsContentSection_1elhb_5",itemContent:"_itemContent_1elhb_10",ItemCustomContent:"_ItemCustomContent_1elhb_16"},Nn=e=>{const{item:t,option:a}=e;switch(a){case"ediciones":return n.jsx("div",{className:Ve.ItemCustomContent});case"columnistasnacionales":return n.jsx("div",{className:Ve.ItemCustomContent,children:n.jsx(_n,{data:t,autorIcon:e.autorIcon,paths:e.paths})});case"columnistaslocales":return n.jsx("div",{className:Ve.ItemCustomContent,children:n.jsx(_n,{data:t,autorIcon:e.autorIcon,paths:e.paths})});case"columnistas":return n.jsx("div",{className:Ve.ItemCustomContent,children:n.jsx(_n,{data:t,autorIcon:e.autorIcon,paths:e.paths})});default:return n.jsx("div",{className:Ve.ItemCustomContent,children:n.jsx(Oe,{...t,paths:e.paths})})}},$l=e=>{const{data:t,currentPage:a,banners:o,slug:s,ranking:r,pathname:i,texts:c={}}=e,d=[3,8,13],l={3:1,8:2,13:3};switch(e.option){case"op1":return n.jsx(la,{ranking:r,readestTitle:c.readestTitle??"",paths:e.paths,bannerTop:n.jsx(fe,{banners:o??[],name:"right_1"}),banner:n.jsx(fe,{banners:o??[],name:"right_2"}),children:n.jsx("section",{className:Ve.content,children:t.length>0?n.jsx(yn,{className:[Ve.newsContentSection,"padding-0"].join(" "),paginatorComponent:n.jsx(Ot,{texts:c,pathname:i,query:"",currentPage:a,maxPages:e.PAGINATION_MAX_PAGES,showNext:!(t.length<e.NEWS_PER_SECTION)}),children:Array.isArray(t)&&t?.map((h,u)=>n.jsxs(E.Fragment,{children:[d.includes(u+1)&&n.jsx("div",{className:Ve.itemContent+" banner-context",children:n.jsx(fe,{banners:o??[],name:`block_2_${l[u+1]}`})}),n.jsx(Nn,{autorIcon:e.autorIcon,item:h,option:s,paths:e.paths},u)]},u))}):n.jsx("div",{style:{width:"100%",display:"flex",flexDirection:"column",justifyContent:"center",gap:"2rem"},children:n.jsx("p",{style:{fontWeight:"var(--fw)",width:"100%",fontSize:"18px",lineHeight:"26px",textAlign:"center"},children:c.sectionNotResultMessage})})})});case"op2":return n.jsx(n.Fragment,{children:t.length>0?n.jsx(yn,{className:"padding-0",paginatorComponent:n.jsx(Ot,{texts:c,pathname:i,query:"",currentPage:a,maxPages:e.PAGINATION_MAX_PAGES,showNext:!(t.length<e.NEWS_PER_SECTION)}),children:Array.isArray(t)&&t?.map((h,u)=>n.jsxs(E.Fragment,{children:[d.includes(u+1)&&n.jsx("div",{className:Ve.itemContent,children:n.jsx(fe,{banners:o??[],name:`block_2_${l[u+1]}`})}),n.jsx(Nn,{autorIcon:e.autorIcon,item:h,option:s,paths:e.paths},u)]},u))}):n.jsx("div",{style:{width:"100%",display:"flex",flexDirection:"column",justifyContent:"center",gap:"2rem"},children:n.jsx("p",{style:{fontWeight:"var(--fw)",width:"100%",fontSize:"18px",lineHeight:"26px",textAlign:"center"},children:c.sectionNotResultMessage})})});default:return n.jsx(n.Fragment,{})}},Ys={content:"_content_gwsqy_1",contactInfoContent:"_contactInfoContent_gwsqy_7"},Ql=e=>{const{data:t}=e;return n.jsx("section",{className:Ys.content,children:t.map((a,o)=>n.jsx("div",{className:Ys.contactInfoContent,dangerouslySetInnerHTML:{__html:a.body.rendered}},o))})},wa={tagContent:"_tagContent_ee6yw_1",contentLayout2:"_contentLayout2_ee6yw_9",contentHeader:"_contentHeader_ee6yw_42"},Gl={content:"_content_1rbrt_1"},Hl=({children:e,className:t=""})=>n.jsx("div",{className:`content-layout-2 ${Gl.content} ${t}`,children:e}),Ht={container:"_container_8w9ca_1",note:"_note_8w9ca_9",commercial:"_commercial_8w9ca_49",commercialContent:"_commercialContent_8w9ca_66",complement:"_complement_8w9ca_82"},zl=e=>n.jsxs("section",{className:Ht.container,children:[n.jsx("div",{className:Ht.note,children:e.children}),n.jsx("div",{className:Ht.commercial,children:n.jsxs("div",{className:Ht.commercialContent,children:[e.slug==="liveblogs"&&n.jsx(Ss,{itemList:e.itemList}),e.bannerTop,n.jsx(mn,{content:e.ranking,title:e.texts.readestTitle,paths:e.paths,customNewsDescriptionStyles:{"--news-description-title-size-desk":"16px","--news-description-title-line-height-desk":"22px","--news-description-title-size-mobile":"16px","--news-description-title-line-height-mobile":"22px",...e.readestCustomStyles}}),n.jsx("div",{style:{position:"sticky",top:"110px"},children:e.banner})]})}),n.jsx("div",{className:Ht.complement,children:e.complement})]}),Fl=e=>{const t={...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 n.jsx("div",{style:{"--news-description-title-size-desk":"38px","--news-description-title-size-mobile":"30px","--news-description-title-line-height-desk":"46px","--news-description-title-line-height-mobile":"38px","--news-image-height-desk":"600px","--news-image-height-mobile":"420px","--news-image-description-display":"none",...e.headerSectionStyles?.liveblogs},children:n.jsx(_s,{...t,fontSizeSubTitle:"18px",lineHeightSubTitle:"28px"})});default:return n.jsx("div",{className:wa.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",...e.headerSectionStyles?.common},children:n.jsx(ct,{...t,fontSizeSubTitle:"18px",lineHeightSubTitle:"28px",cutSubtitle:!1,colorSubTitle:"black",isTitle:!0,paths:e.paths})})}},We={content:"_content_exb5o_1",contentWithinCard:"_contentWithinCard_exb5o_7",contentDate:"_contentDate_exb5o_13",dateInfo:"_dateInfo_exb5o_20",dot:"_dot_exb5o_30",contentTitle:"_contentTitle_exb5o_38",contentTextList:"_contentTextList_exb5o_47",contentButton:"_contentButton_exb5o_65",linkStyled:"_linkStyled_exb5o_71"},Vl={content:"_content_ifkxj_1"},Wl=e=>n.jsx("section",{className:Vl.content,id:e.id,children:e.children}),Yl=async(e,t,a)=>{if(!a)return e;const o=/<span data-src="(.*?)"><\/span>/g,s=[...e.matchAll(o)];let r=e;for(const i of s){const c=i[0],d=i[1]??"";let l;if(a.forEach(S=>{Array.isArray(S)&&(l=S.find(_=>d.replaceAll("/","|").includes(_?.info.link.internal||"")))}),!l){r=r.replace("ck-related-news","ck-related-news-empty");break}const h=l.preview?.sizes?.[0],u=h?await de(h.url):"",f=l.info.section?.url??"#",g=l.info.section?.name??"Sección",m=l.info.link?.url??"#",p=l.main?.title.article??"Título",A=(await Promise.all(l.preview?.sizes?.map(async S=>{const _=await de(S.url);return S.width<200?`<source srcset="${_}" media="(width < 750px)"/>`:`<source srcset="${_}" media="(width >= 750px)"/>`}))).reduce((S,_)=>S+=_,""),b=`
49
+ h3.9V17C24.1,13.3,22.2,11.7,19.6,11.7z`})}),fl=e=>n.jsxs("svg",{width:"25",height:"21",viewBox:"0 0 25 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[n.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"}),n.jsx("path",{d:"M21.6425 5.57591L12.5923 11.2704L3.33887 5.57591V3.33881L12.5923 8.93157L21.6425 3.33881V5.57591Z",fill:"black"})]}),ml=e=>n.jsxs("svg",{width:"24",height:"19",viewBox:"0 0 24 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[n.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"}),n.jsx("path",{d:"M20.8752 4.67439L12.0176 10.2477L2.96094 4.67439V2.48486L12.0176 7.95868L20.8752 2.48486V4.67439Z",fill:"white"})]}),gl=e=>n.jsx("svg",{width:"13",height:"22",viewBox:"0 0 13 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:n.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"})}),pl=e=>n.jsx("svg",{width:"26",height:"25",viewBox:"0 0 22 23",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:n.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"})}),Al={FaceBook:{url:e=>`https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(e)}`,icon:{outline:e=>n.jsx(gl,{className:e}),solid:e=>n.jsx(ul,{className:e})}},X:{url:e=>`https://twitter.com/intent/tweet?url=${encodeURIComponent(e)}`,icon:{outline:e=>n.jsx(Pt,{className:e}),solid:e=>n.jsx(Pt,{className:e})}},Whatsapp:{url:e=>`https://wa.me/?text=${encodeURIComponent(e)}`,icon:{outline:e=>n.jsx(cs,{className:e}),solid:e=>n.jsx(is,{className:e})}},Email:{url:e=>`mailto:?body=${encodeURIComponent(e)}`,icon:{outline:e=>n.jsx(fl,{className:e}),solid:e=>n.jsx(ml,{className:e})}},LinkedIn:{url:e=>`https://www.linkedin.com/sharing/share-offsite/?url=${encodeURIComponent(e)}`,icon:{outline:e=>n.jsx(pn,{className:e}),solid:e=>n.jsx(pn,{className:e})}}};function bs({noteShare:e}){const t=e&&e.url||(typeof window<"u"?window.location.href:"https://example.com");return e?n.jsxs("div",{className:le.socialNetworkSection,children:[e.options?.map(a=>{const o=Al[a];if(!o)return null;const s=e.variant==="outline"?o.icon.outline:o.icon.solid,r=o.url(t);return n.jsx(O,{href:r,target:"_blank",rel:"noopener noreferrer","aria-label":`Compartir en ${a}`,className:`${le.socialButton} ${le[`${a.toLowerCase()}Button`]??""} ${le[`${a.toLowerCase()}Styled`]}`,children:s("")},a)}),n.jsx("button",{type:"button","data-text":"Link copiado","data-active":"false","aria-label":"copy",className:[le.clipboardButton,"clipbtn-id"].join(" "),children:n.jsx(ls,{})}),n.jsx("button",{type:"button","aria-label":"share",className:[le.clipboardButton,"sharebtn-id"].join(" "),children:n.jsx(pl,{})})]}):null}const Qe={content:"_content_r1co8_1",videoContent:"_videoContent_r1co8_20",articleSection:"_articleSection_r1co8_27",title:"_title_r1co8_42",article:"_article_r1co8_27",correspondent:"_correspondent_r1co8_75",iframeStyled:"_iframeStyled_r1co8_84",contentFrame:"_contentFrame_r1co8_94"},yl=e=>{const t=()=>e?.video.main.author?`${e?.video.main.author} - ${ke(e.video.info.date.created)}`:e?.video.main.author;return n.jsx("div",{className:Qe.content,children:n.jsx(bt,{children:n.jsxs("div",{className:Qe.videoContent,children:[n.jsx("p",{className:Qe.title,children:e.video.main.title}),e.type==="vy"&&n.jsx("iframe",{className:Qe.iframeStyled,src:`https://www.youtube.com/embed/${e.video.main.code}`,frameBorder:"0",allowFullScreen:!0}),e.type==="vf"&&n.jsx("iframe",{className:Qe.iframeStyled,src:e.video.main.code,frameBorder:"0",allowFullScreen:!0}),e.type==="ve"&&n.jsx("div",{className:Qe.contentFrame,dangerouslySetInnerHTML:{__html:e.video.main.code}}),n.jsxs("div",{className:Qe.articleSection,children:[n.jsx("p",{className:Qe.article,children:xe(e.video.main.description)}),n.jsx("p",{className:Qe.correspondent,children:t()})]})]})})})},ra={content:"_content_wxhkd_1",linkStyled:"_linkStyled_wxhkd_9"},Ot=e=>{const{currentPage:t,showNext:a,maxPages:o,pathname:s,query:r}=e,i=(c,d,l)=>{let h="";const u=d.split("/");return u.indexOf("page")!==-1&&u.splice(h.indexOf("page")-1,u.length-1),u.forEach((f,g)=>{g!==0&&(h+=`/${f}`)}),c==="next"?h+=`/page/${t+1}${l?`?query=${l}`:""}`:h+=`/page/${t-1}${l?`?query=${l}`:""}`};return(t>1||a&&t<o)&&n.jsxs("section",{className:ra.content,children:[t>1&&n.jsx(O,{className:ra.linkStyled,href:i("prev",s||"",r||""),children:e.texts.prevButtonText??"Anterior"}),a&&t<o&&n.jsx(O,{className:ra.linkStyled,href:i("next",s||"",r||""),children:e.texts.nextButtonText??"Siguiente"})]})},An={content:"_content_zal5g_1",contentGrid:"_contentGrid_zal5g_8",contentGrid4:"_contentGrid4_zal5g_17",contentGrid3:"_contentGrid3_zal5g_21"},yn=e=>{const{grid:t=3}=e;return n.jsxs("section",{className:`${An.content}`,children:[n.jsx("div",{className:`${An.contentGrid} ${e.className?e.className:""} ${t===3?An.contentGrid3:An.contentGrid4} news-content`,children:e.children}),n.jsx(n.Fragment,{children:e.paginatorComponent})]})},Dt={content:"_content_15x47_1",newsDescription:"_newsDescription_15x47_15",image:"_image_15x47_41"},Oe=e=>{const{main:t,authors:a,info:o,preview:s,share:r,isVideo:i,config:c,overImage:d="default",isTitle:l,priorityHigh:h=!1,isLarge:u,paths:f,keywords:g}=e;return n.jsxs("section",{className:Dt.content,style:{...e.customSectionCardStyles},children:[n.jsx(O,{"aria-label":e.main?.title?.section,className:Dt.image,title:t?.title?.section,href:o?.link?.url,target:o?.link?.target,children:n.jsx(Se,{preview:s,isVideo:i,isLarge:u,priorityHigh:h})}),n.jsx("div",{className:Dt.newsDescription,children:n.jsx(ct,{main:t,authors:a,info:o,preview:s,share:r,config:c,overImage:d,isTitle:l,paths:f,keywords:g})})]})},Xe={content:"_content_14xk9_1",boxInformation:"_boxInformation_14xk9_12",titleGradient:"_titleGradient_14xk9_30",sectionDescription:"_sectionDescription_14xk9_58",articule:"_articule_14xk9_83",linkStyled:"_linkStyled_14xk9_116"},Mt=e=>{const{isVideo:t,info:a,main:o,overImage:s="default",titleGradient:r=!1}=e,{SHOW_TAG_BY_SECTION:i}=K(),c=()=>{if(i&&e.keywords?.tags?.length&&e.keywords.tags.length>0){const d=e.keywords.tags[0],l=d.name;return d.approved?n.jsx("h3",{children:n.jsx(O,{"aria-label":l,className:Xe.sectionDescription,href:at(d,e.paths),children:l})}):n.jsx("div",{className:Xe.sectionDescription,children:l})}else if(e.info?.section?.url)return n.jsx("h3",{children:n.jsx(O,{className:Xe.sectionDescription,href:e?.info?.link?.url,target:e?.info?.link?.target,children:e.info.section.name})});return null};return n.jsxs("section",{className:Xe.content,children:[n.jsx(O,{title:o?.title?.section,href:a.link.url,target:a.link.target,children:n.jsx(Se,{preview:e.preview,isVideo:t})}),n.jsxs("div",{className:[Xe.boxInformation,r?Xe.titleGradient:""].join(" "),style:{width:s!=="default"?"90%":"",left:s==="left"?0:s==="right"?"calc(10% - 1px)":"auto",top:s!=="default"?"-1rem":""},children:[n.jsx(c,{}),n.jsx("h2",{className:Xe.articule,children:n.jsx(O,{className:Xe.linkStyled,href:e?.info?.link?.url,target:e?.info?.link?.target,children:e.main?.title?.section})})]})]})},vs={content:"_content_kro73_1",contentLayout:"_contentLayout_kro73_5"},ia=e=>n.jsx("div",{className:vs.content,children:n.jsx(bt,{className:`${vs.contentLayout} ${e.className}`,children:e.children})}),Ct={content:"_content_1nqra_1",before:"_before_1nqra_11",textContent:"_textContent_1nqra_22",title:"_title_1nqra_37",description:"_description_1nqra_46",linkStyled:"_linkStyled_1nqra_57"},wl=e=>{const t=e.logo;return n.jsxs("section",{className:Ct.content,children:[e.backgroundImgURL&&n.jsx("img",{className:Ct.before,src:e.backgroundImgURL,alt:""}),n.jsxs("div",{className:`${Ct.textContent} error-text-content`,children:[n.jsx(t,{}),n.jsx("p",{className:Ct.title,children:e.title}),n.jsx("p",{className:Ct.description,children:e.description}),n.jsx(O,{className:Ct.linkStyled,href:"/",children:e.buttonText??"Inicio"})]})]})},jt={content:"_content_zxcog_1",contentLabel:"_contentLabel_zxcog_8",label:"_label_zxcog_13",required:"_required_zxcog_22",input:"_input_zxcog_28"},bl=e=>n.jsxs("div",{className:jt.content,children:[n.jsxs("div",{className:jt.contentLabel,children:[n.jsx("label",{className:jt.label,children:e.label}),e.required&&n.jsx("span",{className:jt.required,children:"*"})]}),n.jsx("input",{className:jt.input,...e})]}),$t={content:"_content_zgx5w_1",contentLabel:"_contentLabel_zgx5w_8",label:"_label_zgx5w_13",required:"_required_zgx5w_22",input:"_input_zgx5w_28"},vl=e=>n.jsxs("div",{className:$t.content,children:[n.jsxs("div",{className:$t.contentLabel,children:[n.jsx("label",{className:$t.label,children:e.label}),e.required&&n.jsx("span",{className:$t.required,children:"*"})]}),n.jsxs("select",{className:$t.input,...e,children:[n.jsx("option",{value:"",children:"--Seleccione--"}),e.options.map((t,a)=>n.jsx("option",{value:t.value,children:t.label},a))]})]}),ca={content:"_content_1mi9t_1",label:"_label_1mi9t_8",input:"_input_1mi9t_17"},Cl=e=>n.jsxs("div",{className:ca.content,children:[n.jsx("label",{className:ca.label,children:e.label}),n.jsx("textarea",{className:ca.input,...e})]}),Re={boxInformation:"_boxInformation_achvw_1",textBox:"_textBox_achvw_30",contentBox:"_contentBox_achvw_40",liveBox:"_liveBox_achvw_50",dot:"_dot_achvw_72",sectionDescription:"_sectionDescription_achvw_97",articule:"_articule_achvw_110",description:"_description_achvw_137"},wn={content:"_content_1ihav_1",description:"_description_1ihav_23"},Cs=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}`),n.jsxs("div",{className:wn.content,children:[n.jsx(Se,{preview:e.preview,isLarge:!0,priorityHigh:!0}),t&&n.jsx("div",{className:wn.description,children:t})]})},_s=e=>n.jsx(n.Fragment,{children:n.jsxs("div",{className:`${Re.boxInformation} sass-liveblog-header`,children:[n.jsx(Cs,{preview:e.preview}),n.jsxs("div",{className:Re.textBox,children:[n.jsxs("div",{className:Re.contentBox,children:[e?.info?.section&&n.jsx(O,{className:Re.sectionDescription,href:e?.info?.section?.url,children:e?.info?.section?.name}),n.jsxs("div",{className:Re.liveBox,children:[n.jsx("span",{className:Re.dot}),n.jsx("p",{children:"EN VIVO"})]})]}),n.jsx("h1",{className:Re.articule,children:e.main?.title?.section}),e.config?.showsubtitle&&n.jsx("div",{className:Re.description,style:{"--fontSizeSubTitle":e.fontSizeSubTitle,"--lineHeightSubTitle":e.lineHeightSubTitle},children:e.main.subtitle.striped})]})]})}),bn={content:"_content_oipiy_1",contentLine:"_contentLine_oipiy_17",contentText:"_contentText_oipiy_24",dateLink:"_dateLink_oipiy_37"},Ss=e=>n.jsx("section",{className:bn.content,children:e.itemList[0]?.list.items.map((t,a)=>n.jsxs("div",{className:bn.contentLine,children:[n.jsx(O,{className:bn.dateLink,href:`#item-${a+1}`,children:Ja(t.date)}),n.jsx("div",{className:bn.contentText,children:(e.itemList[0]?.list.integrated,t.title)})]},a))}),me={content:"_content_7ul21_1",contentInfo:"_contentInfo_7ul21_11",imageContainer:"_imageContainer_7ul21_19",imageStyled:"_imageStyled_7ul21_28",contentIconStyled:"_contentIconStyled_7ul21_39",name:"_name_7ul21_65",email:"_email_7ul21_74",description:"_description_7ul21_90",contenSocialNetwork:"_contenSocialNetwork_7ul21_102",socialIcon:"_socialIcon_7ul21_112",socialIconLink:"_socialIconLink_7ul21_117"},vn=e=>{if(!e||e.trim()==="")return e;const t=e.trim();return t.startsWith("http://")||t.startsWith("https://")?t:`https://${t}`},Ns=async e=>{const{autor:t,autorIcon:a}=e,o=a,s=t?.info?.image?.sizes?.[0]?.url??"",r=t?.info?.fullname??"",i=t?.info?.email??"",c=t?.addtional?.USER_SHOWEMAIL??!1,d=t?.addtional?.USER_SHOWBIO??!1,l=t?.addtional?.USER_MIBIO??"",h=vn(t?.addtional?.USER_USERFB??""),u=vn(t?.addtional?.USER_USERIG??""),f=vn(t?.addtional?.USER_USERTWT??""),g=vn(t?.addtional?.USER_USERLIN??"");return n.jsx("section",{className:`${me.content} ${e.className?e.className:""}`,children:n.jsxs("div",{className:me.contentInfo,children:[s?n.jsx("div",{className:`${me.imageContainer} sass-image-autor-wrapper`,children:n.jsx("img",{fetchPriority:"low",loading:"lazy",alt:"",className:me.imageStyled,src:await de(s)})}):n.jsx("div",{className:`${me.contentIconStyled} sass-image-autor-wrapper`,children:n.jsx(o,{})}),n.jsx("h1",{className:me.name,children:r}),c&&n.jsx("p",{className:me.email,children:i}),d&&n.jsx("p",{className:me.description,children:l}),n.jsxs("div",{className:me.contenSocialNetwork,children:[h&&n.jsx("a",{href:h,target:"_blank",className:me.socialIconLink,rel:"noreferrer",children:n.jsx(oa,{className:me.socialIcon})}),u&&n.jsx("a",{href:u,target:"_blank",className:me.socialIconLink,rel:"noreferrer",children:n.jsx(sa,{className:me.socialIcon})}),f&&n.jsx("a",{href:f,target:"_blank",className:me.socialIconLink,rel:"noreferrer",children:n.jsx(Pt,{className:me.socialIcon})}),g&&n.jsx("a",{href:g,target:"_blank",className:me.socialIconLink,rel:"noreferrer",children:n.jsx(pn,{className:me.socialIcon})})]})]})})},Ne={content:"_content_18ozj_1",contentInfo:"_contentInfo_18ozj_13",contentAuthor:"_contentAuthor_18ozj_26",imageStyled:"_imageStyled_18ozj_33",contentIconStyled:"_contentIconStyled_18ozj_42",name:"_name_18ozj_64",email:"_email_18ozj_72",description:"_description_18ozj_82",contenSocialNetwork:"_contenSocialNetwork_18ozj_93",socialIcon:"_socialIcon_18ozj_103"},Es=async e=>{const{autor:t,autorIcon:a}=e,o=a,s=t?.info?.image?.sizes?.[0]?.url??"",r=t?.info?.fullname??"",i=t?.info?.email??"",c=t?.addtional?.USER_SHOWEMAIL??!1,d=t?.addtional?.USER_SHOWBIO??!1,l=t?.addtional?.USER_MIBIO??"",h=t?.addtional?.USER_USERFB??"",u=t?.addtional?.USER_USERIG??"",f=t?.addtional?.USER_USERTWT??"",g=t?.addtional?.USER_USERLIN??"";return n.jsx("section",{className:Ne.content,children:n.jsxs("div",{className:Ne.contentInfo,children:[s?n.jsx("img",{fetchPriority:"low",loading:"lazy",className:Ne.imageStyled,src:await de(s)}):n.jsx("div",{className:Ne.contentIconStyled,children:n.jsx(o,{})}),n.jsxs("div",{className:Ne.contentAuthor,children:[n.jsx("h1",{className:Ne.name,children:r}),c&&n.jsx("p",{className:Ne.email,children:i}),d&&n.jsx("p",{className:Ne.description,children:l}),n.jsxs("div",{className:Ne.contenSocialNetwork,children:[h&&n.jsx("a",{href:h,target:"_blank",rel:"noreferrer",children:n.jsx(oa,{className:Ne.socialIcon})}),u&&n.jsx("a",{href:u,target:"_blank",rel:"noreferrer",children:n.jsx(sa,{className:Ne.socialIcon,style:{padding:"4px"}})}),f&&n.jsx("a",{href:f,target:"_blank",rel:"noreferrer",children:n.jsx(Pt,{className:Ne.socialIcon})}),g&&n.jsx("a",{href:g,target:"_blank",rel:"noreferrer",children:n.jsx(pn,{className:Ne.socialIcon})})]})]})]})})},Ts={content:"_content_jg6i2_1",bannerSection:"_bannerSection_jg6i2_25"},la=e=>n.jsxs("section",{className:Ts.content,children:[e.children,n.jsxs("div",{className:Ts.bannerSection,children:[e.bannerTop,n.jsx(mn,{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]})]}),Le={content:"_content_kmqba_1",header:"_header_kmqba_30",videos:"_videos_kmqba_56",videoContent:"_videoContent_kmqba_63",articleSection:"_articleSection_kmqba_70",contentLayoutVideoSection:"_contentLayoutVideoSection_kmqba_85",sectionVideoList:"_sectionVideoList_kmqba_93",iframeStyled:"_iframeStyled_kmqba_166",contentFrame:"_contentFrame_kmqba_172"},da={content:"_content_1dj0q_1",linkImage:"_linkImage_1dj0q_12",playStyled:"_playStyled_1dj0q_19"},_l=async e=>{const t=fn(),a={...e,main:{...e.main,title:{...e.main.title,article:xe(e.main.title.article,60)}}};return e&&e.info?n.jsxs("section",{className:da.content,children:[n.jsx("a",{className:da.linkImage,target:e?.info?.link?.target,title:e?.main?.title?.section,href:e.info.link.url,children:n.jsxs("div",{style:{position:"relative"},children:[n.jsx("img",{src:await de(e.preview.sizes[0]?.url||"")}),n.jsx(t,{className:`${da.playStyled} saas-image-play-icon`})]})}),n.jsx("div",{children:n.jsx(ct,{...a,paths:e.paths})})]}):null},Sl=e=>n.jsx("div",{className:Le.content,children:n.jsxs(bt,{className:Le.contentLayoutVideoSection,children:[n.jsxs("a",{className:Le.header,href:e.goBackLink??"/videos",children:[n.jsx("svg",{width:"21",height:"20",viewBox:"0 0 21 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:n.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"]}),n.jsxs("div",{className:Le.videos,children:[n.jsxs("div",{className:Le.videoContent,style:e.mainVideoStyles,children:[e.type==="vy"&&n.jsx("iframe",{className:Le.iframeStyled,src:`https://www.youtube.com/embed/${e.video?.main?.code}`,frameBorder:"0",allowFullScreen:!0}),e.type==="vf"&&n.jsx("iframe",{className:Le.iframeStyled,src:e.video?.main?.code,frameBorder:"0",allowFullScreen:!0}),e.type==="ve"&&n.jsx("div",{className:Le.contentFrame,dangerouslySetInnerHTML:{__html:e.video?.main?.code??""}}),n.jsx("div",{className:Le.articleSection,children:n.jsx(ct,{isTitle:!0,cutSubtitle:!1,...gt({...e?.video,info:{...e?.video?.info,link:{...e.video?.info?.link,url:""}}},!0,!!e.video?.main?.description),paths:e.paths})})]}),n.jsxs("div",{className:Le.sectionVideoList,style:e.listVideoStyles,children:[e.banner&&n.jsx(fe,{banners:e.banner.banners,name:e.banner.bannerName}),e.relatedName&&n.jsx("h2",{className:`${Le.relatedTitle} saas-video-related-title`,children:e.relatedName}),Array.isArray(e.videoList)&&e.videoList.map((t,a)=>E.createElement(_l,{...gt(t,!0,!1,!1),key:a,paths:e.paths}))]})]})]})}),Ge={content:"_content_gcte1_1",titleContent:"_titleContent_gcte1_24",title:"_title_gcte1_24",startLine:"_startLine_gcte1_88",line:"_line_gcte1_93",bottomLine:"_bottomLine_gcte1_99",childrenContent:"_childrenContent_gcte1_118",readMore:"_readMore_gcte1_131"},ue=E.forwardRef((e,t)=>{const{isTitle:a=!1,isOpinion:o=!1}=e,s=a?n.jsx("h1",{className:Ge.title,children:e.title}):n.jsx("h2",{className:Ge.title,children:e.title});return n.jsxs("section",{className:Ge.content,children:[e.title&&n.jsxs("div",{className:[Ge.titleContent,e.className??""].join(" "),"data-after":`${o}`,children:[n.jsx("hr",{className:Ge.startLine}),e.titleUrl?n.jsx(O,{href:e.titleUrl,children:s}):s,n.jsx("hr",{className:Ge.line}),e.titleUrl&&n.jsx(O,{className:Ge.readMore,href:e.titleUrl?.toString()??""})]}),e.title&&n.jsx("hr",{className:[Ge.bottomLine,e.className??""].join(" ")}),n.jsx("div",{className:Ge.childrenContent,ref:t,children:e.children})]})}),ha=e=>n.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"var(--header-icons)",xmlns:"http://www.w3.org/2000/svg",...e,children:n.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"})}),Cn=e=>n.jsx("svg",{width:"12",height:"13",viewBox:"0 0 12 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:n.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.862254 3.39448C1.1226 3.13413 1.54471 3.13413 1.80506 3.39448L6.00033 7.58974L10.1956 3.39448C10.4559 3.13413 10.878 3.13413 11.1384 3.39448C11.3987 3.65483 11.3987 4.07694 11.1384 4.33729L6.47173 9.00396C6.21138 9.26431 5.78927 9.26431 5.52892 9.00396L0.862254 4.33729C0.601905 4.07694 0.601905 3.65483 0.862254 3.39448Z",fill:e.fill??"#7B888A"})}),ce={drawerStyled:"_drawerStyled_tm61w_1",sidebarCustom:"_sidebarCustom_tm61w_6",accordionStyled:"_accordionStyled_tm61w_24",accordionHeading:"_accordionHeading_tm61w_35",accordionSummeryStyled:"_accordionSummeryStyled_tm61w_44",linkStyled:"_linkStyled_tm61w_72",subLinkStyled:"_subLinkStyled_tm61w_92",inputContent:"_inputContent_tm61w_114",buttonContent:"_buttonContent_tm61w_115",inputStyled:"_inputStyled_tm61w_125",buscar:"_buscar_tm61w_141",buttonStyled:"_buttonStyled_tm61w_170",accordionDetailsStyled:"_accordionDetailsStyled_tm61w_185",footerSlider:"_footerSlider_tm61w_200",socialMedia:"_socialMedia_tm61w_211",copyRights:"_copyRights_tm61w_230",icon:"_icon_tm61w_241"},Nl=({sidebar:e,socials:t,copyrigth:a,sidebarExtra:o,searchKeyWord:s})=>n.jsxs("aside",{className:ce.drawerStyled,id:"sidebar-expandable",style:{"--header-icons":"var(--search-input-icons)"},children:[n.jsx("input",{type:"checkbox",id:"side-bar-state"}),n.jsxs("section",{className:ce.sidebarCustom,children:[n.jsx("div",{className:ce.buttonContent,children:n.jsx("label",{className:ce.buttonStyled,htmlFor:"side-bar-state",children:n.jsx(vt,{className:ce.icon})})}),n.jsx("div",{className:ce.inputContent,children:n.jsxs("form",{className:ce.inputStyled,action:"/buscar",method:"GET",children:[n.jsx("input",{className:ce.buscar,type:"text",name:"query",placeholder:s+"..."}),n.jsx("button",{type:"submit",style:{background:"transparent",border:"none",outline:"none",padding:0,margin:0},children:n.jsx(ha,{color:"var(--search-input-icons)"})})]})}),n.jsxs("div",{style:{display:"flex",flexDirection:"column",justifyContent:"space-between",height:"100%"},children:[n.jsxs("div",{children:[o,e.map((r,i)=>n.jsxs("div",{className:ce.accordionStyled,children:[n.jsx("input",{type:"checkbox",style:{display:"none"},id:"accordion_"+i}),n.jsx("h3",{className:ce.accordionHeading,children:Array.isArray(r.subitem)?n.jsxs("label",{className:ce.accordionSummeryStyled,htmlFor:"accordion_"+i,children:[r.link?n.jsx(O,{className:`${ce.linkStyledAccordion} ${ce.linkStyled}`,href:r.link?r.link:void 0,target:r.target,children:r.description}):n.jsx("div",{children:r.description}),n.jsx(Cn,{width:13,height:13,fill:"var(--side-bar-arrow-color)"})]}):n.jsx(O,{className:ce.linkStyled,href:r.link?r.link:void 0,target:r.target,children:r.description})}),Array.isArray(r.subitem)&&n.jsx("div",{className:ce.accordionDetailsStyled,style:{"--max-height":r.subitem.length*45+"px"},children:r.subitem.map((c,d)=>n.jsx(O,{className:ce.subLinkStyled,href:c.link?c.link:void 0,target:c.target,children:c.description},d))})]},i))]}),n.jsxs("div",{className:ce.footerSlider,children:[n.jsx("div",{className:ce.socialMedia,children:Object.keys(t).map(r=>t[r]?.show&&n.jsx("a",{target:"_blank",rel:"noreferrer","aria-label":t[r].title+" link",className:ce.linkSocialNetwork,href:t[r].url,children:gn[r]({className:ce.icon})},r))}),n.jsx("p",{className:ce.copyRights,children:a})]})]})]})]}),Is=e=>n.jsxs("svg",{width:"30",height:"30",viewBox:"0 0 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[n.jsx("path",{d:"M5 22.5H25C25.6875 22.5 26.25 21.9375 26.25 21.25C26.25 20.5625 25.6875 20 25 20H5C4.3125 20 3.75 20.5625 3.75 21.25C3.75 21.9375 4.3125 22.5 5 22.5ZM5 16.25H25C25.6875 16.25 26.25 15.6875 26.25 15C26.25 14.3125 25.6875 13.75 25 13.75H5C4.3125 13.75 3.75 14.3125 3.75 15C3.75 15.6875 4.3125 16.25 5 16.25ZM3.75 8.75C3.75 9.4375 4.3125 10 5 10H25C25.6875 10 26.25 9.4375 26.25 8.75C26.25 8.0625 25.6875 7.5 25 7.5H5C4.3125 7.5 3.75 8.0625 3.75 8.75Z",fill:e.color}),n.jsx("path",{d:"M5 22.5H25C25.6875 22.5 26.25 21.9375 26.25 21.25C26.25 20.5625 25.6875 20 25 20H5C4.3125 20 3.75 20.5625 3.75 21.25C3.75 21.9375 4.3125 22.5 5 22.5ZM5 16.25H25C25.6875 16.25 26.25 15.6875 26.25 15C26.25 14.3125 25.6875 13.75 25 13.75H5C4.3125 13.75 3.75 14.3125 3.75 15C3.75 15.6875 4.3125 16.25 5 16.25ZM3.75 8.75C3.75 9.4375 4.3125 10 5 10H25C25.6875 10 26.25 9.4375 26.25 8.75C26.25 8.0625 25.6875 7.5 25 7.5H5C4.3125 7.5 3.75 8.0625 3.75 8.75Z",fill:e.color})]}),Qt={content:"_content_y5b1f_1",chipStyled:"_chipStyled_y5b1f_17",headLine:"_headLine_y5b1f_17",live:"_live_y5b1f_25",closeLiveStyled:"_closeLiveStyled_y5b1f_87"},ks=e=>{const{alertZone:t,id:a="close-alert"}=e,o=()=>n.jsx(O,{className:Qt.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 n.jsxs(n.Fragment,{children:[n.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&&n.jsxs("div",{id:"alert-chip",className:Qt.content,style:e.forceShow?{display:"flex",position:"sticky",top:100}:{},children:[n.jsxs("div",{className:Qt.live,children:[n.jsx("div",{className:Qt.chipStyled,children:t?.entity?.description}),e.forceShow&&n.jsx(o,{}),n.jsx("label",{htmlFor:a,children:n.jsx(vt,{className:Qt.closeLiveStyled})})]}),n.jsx(o,{})]})]})},He={content:"_content_18yq5_1",linkStyled:"_linkStyled_18yq5_14",linkSocialNetwork:"_linkSocialNetwork_18yq5_28",title:"_title_18yq5_49",tabs:"_tabs_18yq5_60",socialNetwork:"_socialNetwork_18yq5_68",icon:"_icon_18yq5_78",facebook:"_facebook_18yq5_84",youtube:"_youtube_18yq5_88",x:"_x_18yq5_92",instagram:"_instagram_18yq5_96",gnews:"_gnews_18yq5_100",tiktok:"_tiktok_18yq5_104",whatsapp:"_whatsapp_18yq5_108"},xs=e=>{const{cintillo:t,tapeTitle:a,socials:o}=e,s="",r=t?.findIndex(i=>i.link===s)??0;return(Array.isArray(t)||e.socialIcons)&&n.jsxs("section",{className:He.content,children:[Array.isArray(t)&&n.jsxs("div",{className:`${He.tabs} header-page-tape-content`,children:[a!==""&&n.jsx("p",{className:He.title,children:`${a}`}),t&&t[r]&&n.jsx(O,{className:He.linkStyled,target:t[r]?.target,href:t[r]?.link,style:{color:t[r]?.link===s?"var(--header-tape-active-link)":"var(--header-tape-icons)",fontWeight:t[r]?.link===s?"700":"400"},children:t[r]?.description},r),t&&t.map((i,c)=>{if(c!==r)return n.jsx(O,{className:He.linkStyled,href:i?.link,style:{color:i?.link===s?"var(--header-tape-active-link)":"var(--header-tape-color)",fontWeight:i?.link===s?"700":"400"},children:i?.description},c)})]}),n.jsx("div",{className:He.socialNetwork,children:Object.keys(o).map(i=>o[i]?.show&&n.jsx("a",{target:"_blank",rel:"noreferrer","aria-label":o[i].title+" link",className:He.linkSocialNetwork,href:o[i].url,children:gn[i]({className:[He.icon,He[i]??""].join(" ")})},i))})]})},Ie={headerStyled:"_headerStyled_6yw62_1",headerContent:"_headerContent_6yw62_14",iconContent:"_iconContent_6yw62_25",menuButton:"_menuButton_6yw62_34",logoStyled:"_logoStyled_6yw62_66",buttonSection:"_buttonSection_6yw62_94",buttonSectionSearch:"_buttonSectionSearch_6yw62_109",headLineContent:"_headLineContent_6yw62_131",headLineTitle:"_headLineTitle_6yw62_144",headLine:"_headLine_6yw62_131",hasAlertZone:"_hasAlertZone_6yw62_197"},El=e=>{const{alertZone:t}=e;return n.jsxs("header",{className:Ie.headerStyled,children:[e.socialIcons&&e.headerTape?.sticky&&n.jsx(xs,{socialIcons:e.socialIcons,cintillo:e.cintillo,tapeTitle:e.tapeTitle,socials:e.socials}),n.jsxs("div",{className:`${Ie.headerContent} center-mobile-header-icon`,children:[n.jsx(aa,{id:"button-app",className:Ie.menuButton,toggledrawerevent:"true","aria-label":"menu","aria-labelledby":"menu",title:"menu",children:n.jsx(Is,{className:Ie.startIcon,color:"var(--header-icons)",width:27,height:27})}),n.jsx("div",{className:Ie.iconContent,children:n.jsx(O,{href:"/","aria-label":"Home",className:"icon header-logo-link-sticky",style:{display:"flex"},children:E.createElement("span",{className:Ie.logoStyled},e.icon)})}),!e.showAlertPop&&t?.data&&n.jsxs("div",{className:Ie.headLineContent,children:[n.jsx("div",{className:`${Ie.headLineTitle} headLineTitle`,children:t.entity.description?`${t.entity.description}`:""}),n.jsx(O,{className:Ie.headLine,href:t.data[0]?.info.link.url,target:t.data[0]?.info.link.target,title:t.data[0]?.main.title.home,children:xe(t.data[0]?.main.title.home??"",120)})]}),n.jsxs("div",{style:e.showAlertPop?{marginLeft:"auto"}:{},className:[Ie.buttonSection,t?.data?Ie.hasAlertZone:"","search-button"].join(" "),children:[n.jsx(O,{href:e.searchLink?e.searchLink:"/buscar","aria-label":e.searchKeyWord,className:`${Ie.buttonSectionSearch} search-button-icon`,style:{display:"flex"},children:n.jsx(ha,{width:28,height:28,color:"currentColor"})}),e.rightZone]})]}),!e.showAlertPop&&n.jsx(ks,{alertZone:t,forceShow:e.showAlertPop})]})},ze={ul:"_ul_oit7k_1",li:"_li_oit7k_10",liBefore:"_liBefore_oit7k_18",ulContent:"_ulContent_oit7k_29",contentModal:"_contentModal_oit7k_56",linkStyled:"_linkStyled_oit7k_68",itemLink:"_itemLink_oit7k_93"},Tl=e=>{const{items:t}=e;return n.jsx("ul",{className:ze.ul,children:t.map((a,o)=>n.jsxs("li",{className:`${ze.liBefore} ${ze.li}`,children:[a.link?n.jsxs(O,{"aria-label":a.description,className:ze.linkStyled,href:a.link?a.link:void 0,target:a.target,children:[a.description,Array.isArray(a.subitem)&&n.jsx(Cn,{})]}):n.jsxs("span",{"aria-label":a.description,className:ze.linkStyled,children:[a.description,Array.isArray(a.subitem)&&n.jsx(Cn,{})]}),Array.isArray(a.subitem)&&n.jsx("ul",{className:ze.ulContent,children:n.jsx("div",{className:ze.contentModal,children:a.subitem.map((s,r)=>n.jsx("li",{className:ze.li,children:n.jsx(O,{className:ze.itemLink,"aria-label":s.description,href:s.link?s.link:void 0,target:s.target,children:s.description})},r))})})]},o))})},Ae={headerStyled:"_headerStyled_q9qvi_1",headerContent:"_headerContent_q9qvi_23",menuButtonSection:"_menuButtonSection_q9qvi_33",menuButton:"_menuButton_q9qvi_33",buttonSection:"_buttonSection_q9qvi_84",buttonSectionSearch:"_buttonSectionSearch_q9qvi_101",hasAlertZone:"_hasAlertZone_q9qvi_112",buttonText:"_buttonText_q9qvi_131",logoContent:"_logoContent_q9qvi_141",logoStyled:"_logoStyled_q9qvi_149",headLineContent:"_headLineContent_q9qvi_173",headLineTitle:"_headLineTitle_q9qvi_188",menuSection:"_menuSection_q9qvi_204",headLine:"_headLine_q9qvi_173",line:"_line_q9qvi_256"},Il=e=>{const{menu:t,alertZone:a}=e;return n.jsxs("header",{className:Ae.headerStyled,style:{top:e.cintillo||e.socialIcons&&!e.headerTape?.static?40:0},children:[e.socialIcons&&e.headerTape?.static&&n.jsx(xs,{socialIcons:e.socialIcons,cintillo:e.cintillo,tapeTitle:e.tapeTitle,socials:e.socials}),n.jsxs("div",{style:e.showAlertPop?{gap:0}:{},className:[Ae.headerContent,a?.data?Ae.hasAlertZone:""].join(" "),children:[n.jsx("div",{className:Ae.menuButtonSection,children:n.jsxs(aa,{className:Ae.menuButton,id:"button-app",toggledrawerevent:"true","aria-label":"menu","aria-labelledby":"menu",title:"menu",children:[n.jsx(Is,{color:"var(--header-icons)",width:27,height:27}),n.jsx("p",{className:Ae.buttonText,style:{lineHeight:0},children:e.menuText})]})}),n.jsx("div",{className:Ae.logoContent,children:n.jsx(O,{href:"/","aria-label":"Home",className:"header-logo-link",children:E.createElement("span",{className:`${Ae.logoStyled}`},e.icon)})}),n.jsxs("div",{className:Ae.buttonSection,children:[n.jsx(O,{href:e.searchLink?e.searchLink:"/buscar",style:{display:"flex"},className:Ae.buttonSectionSearch,"aria-label":e.searchKeyWord,children:n.jsx(ha,{width:28,height:28,color:"currentColor"})}),e.rightZone]}),!e.showAlertPop&&a?.data?n.jsxs("div",{className:Ae.headLineContent,children:[n.jsx("p",{className:`${Ae.headLineTitle} headLineTitle`,children:a.entity.description?`${a.entity.description}`:""}),n.jsx(O,{className:Ae.headLine,href:a.data[0]?.info.link.url,target:a.data[0]?.info.link.target,title:a.data[0]?.main.title.home,children:xe(a.data[0]?.main.title.home??"",120)})]}):n.jsx("div",{className:Ae.line}),n.jsx("div",{className:Ae.menuSection,style:e.showAlertPop?{"--showAlertPop":"0px"}:{},children:Array.isArray(t)&&n.jsx(Tl,{items:t})})]})]})},ua={childrenContent:"_childrenContent_wqlb4_1",childrenContentAux:"_childrenContentAux_wqlb4_12",op2:"_op2_wqlb4_25"},kl=e=>{const{alertZone:t,children:a,sidebar:o}=e;return n.jsxs(n.Fragment,{children:[n.jsx(El,{...e}),!e.showOnlyStickyHeader&&n.jsx(Il,{...e}),n.jsxs("div",{className:[ua.childrenContent,e.showAlertPop?ua.op2:"",t?.data?ua.childrenContentAux:""].join(" "),style:e.showOnlyStickyHeader?{"--hasAlertMargin":"3.6rem !important"}:{},id:"content-layout",children:[e.showAlertPop&&n.jsx(ks,{alertZone:t,forceShow:e.showAlertPop,id:"static-alert-chip"}),a]}),n.jsx(Nl,{sidebarExtra:e.sidebarExtra,searchKeyWord:e.searchKeyWord,sidebar:o,socials:e.socials,copyrigth:e.copyrigth})]})},_t={content:"_content_16ydf_1",tags:"_tags_16ydf_10",chipStyled:"_chipStyled_16ydf_20",tagLink:"_tagLink_16ydf_47",tagStyled:"_tagStyled_16ydf_53"},Us=e=>n.jsx("section",{className:_t.content,children:Array.isArray(e.tags)&&n.jsxs("div",{className:_t.tags,children:[n.jsx("p",{className:_t.tagStyled,children:e.title?e.title:"Tags:"}),e.tags.map((t,a)=>t.approved?n.jsx(O,{href:at(t,e.paths),children:n.jsx("div",{className:`${_t.chipStyled} ${_t.tagLink}`,children:t.name})},a):n.jsx("div",{className:_t.chipStyled,children:t.name},a))]})}),De={contentBox:"_contentBox_1cum1_1",content:"_content_1cum1_1",imageStyled:"_imageStyled_1cum1_16",contentIconStyled:"_contentIconStyled_1cum1_23",avatarContent:"_avatarContent_1cum1_43",journalistSection:"_journalistSection_1cum1_50",journalistInfo:"_journalistInfo_1cum1_56",socialNetworkSection:"_socialNetworkSection_1cum1_75",article:"_article_1cum1_88"},qs=async e=>{const{autor:t}=e,a=t?.addtional?.USER_SHOWBIO??!1,o=t?.info?.name??"",s=t?.info?.fullname??"",r=t?.info?.image?.sizes?.[0]?.url??"",i=t?.addtional?.USER_MIBIO??"",c=t?.addtional?.USER_USERFB??"",d=t?.addtional?.USER_USERIG??"",l=t?.addtional?.USER_USERTWT??"",h=t?.addtional?.USER_USERLIN??"";return a&&n.jsx("section",{className:De.contentBox,children:n.jsxs("div",{className:De.content,children:[n.jsxs("div",{className:De.avatarContent,children:[n.jsx(O,{className:De.journalistInfo,href:`/${e.paths.autor}/${o}`,children:r?n.jsx("img",{fetchPriority:"low",loading:"lazy",alt:"autor-image",className:De.imageStyled,src:await de(r)}):n.jsx("div",{className:De.contentIconStyled,children:e.autorIcon()})}),n.jsxs("section",{className:De.journalistSection,children:[n.jsx("h3",{className:De.journalistInfo,children:n.jsx(O,{href:`/${e.paths.autor}/${o}`,children:s})}),n.jsxs("section",{className:De.socialNetworkSection,children:[c&&n.jsx("a",{href:c,target:"_blank","aria-label":i,rel:"noreferrer",children:n.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:n.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&&n.jsx("a",{href:d,target:"_blank","aria-label":i,rel:"noreferrer",children:n.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[n.jsxs("g",{clipPath:"url(#clip0_281_2357)",children:[n.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"}),n.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"}),n.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"})]}),n.jsx("defs",{children:n.jsx("clipPath",{id:"clip0_281_2357",children:n.jsx("rect",{width:"17",height:"17",fill:"white",transform:"translate(4 4)"})})})]})}),l&&n.jsx("a",{href:l,target:"_blank","aria-label":i,rel:"noreferrer",children:n.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:n.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"})})}),h&&n.jsx("a",{href:h,target:"_blank","aria-label":i,rel:"noreferrer",children:n.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[n.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"}),n.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"}),n.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"})]})})]})]})]}),a&&n.jsx("p",{className:De.article,dangerouslySetInnerHTML:{__html:`${i} <a aria-label="${o}" href="/${e.paths.autor}/${o}">${e.texts.authorViewMore??"Ver más"}</a>`}})]})})},et={content:"_content_vmnac_1",imageStyled:"_imageStyled_vmnac_20",contentIconStyled:"_contentIconStyled_vmnac_21",contentCard:"_contentCard_vmnac_31",contentInfo:"_contentInfo_vmnac_70",fullName:"_fullName_vmnac_76",LearnMoreLink:"_LearnMoreLink_vmnac_83"},Ls=async e=>{const{news:t,texts:a}=e;return t.config?.showauthor&&n.jsx("div",{className:et.content,children:Array.isArray(t.authors)&&t.authors?.map(async o=>n.jsxs("div",{className:et.contentCard,children:[o.image?n.jsx("img",{fetchPriority:"low",loading:"lazy",className:et.imageStyled,src:await de(o.image.sizes[0]?.url||"")},o.fullname):n.jsx("div",{className:et.contentIconStyled,children:e.autorIcon},o.fullname),n.jsxs("div",{className:et.contentInfo,children:[o.internaluser?n.jsx("a",{className:et.fullName,href:`/${e.paths.autor}/${o.name}`,children:o.fullname}):n.jsx("p",{className:et.fullName,children:o.fullname}),o.internaluser&&n.jsx("a",{className:et.LearnMoreLink,href:`/${e.paths.autor}/${o.name}`,children:a.JournalistGroupLink})]})]},`author-${o.firstname}`))})},lt={content:"_content_eqhtq_1",contentInfo:"_contentInfo_eqhtq_24",imageStyled:"_imageStyled_eqhtq_41",name:"_name_eqhtq_46",description:"_description_eqhtq_51",imageContainer:"_imageContainer_eqhtq_56",contentInfoWithoutImg:"_contentInfoWithoutImg_eqhtq_107"},xl=async e=>{const t=e.img?await de(e.img):"";return n.jsx("section",{className:`${lt.content} ${e.className}`,children:n.jsxs("div",{className:`${lt.contentInfo} ${t?"":lt.contentInfoWithoutImg}`,children:[e.img&&n.jsx("div",{className:`${lt.imageContainer} sass-image-tag-wrapper`,children:n.jsx("img",{fetchPriority:"low",loading:"lazy",className:lt.imageStyled,src:t})}),n.jsx("h1",{className:lt.name,children:e.tag}),e.description&&n.jsx("div",{className:lt.description,dangerouslySetInnerHTML:{__html:e.description}})]})})},Ee={content:"_content_1j0pj_1",contentNews:"_contentNews_1j0pj_10",linkTitle:"_linkTitle_1j0pj_27",tag:"_tag_1j0pj_35",tagmx:"_tagmx_1j0pj_55",titular:"_titular_1j0pj_70",correspondent:"_correspondent_1j0pj_85",correspondentLink:"_correspondentLink_1j0pj_96",description:"_description_1j0pj_107"},St=e=>{const{SHOW_TAG_BY_SECTION:t}=K(),a=()=>{if(e?.config?.showtime&&e.config?.showauthor)return`${e?.authors[0]?.fullname} - ${ke(e.info?.date?.modified)}`;if(e.config?.showauthor)return e?.authors[0]?.fullname;if(e?.config?.showtime)return ke(e.info?.date?.modified)},o=()=>{if(t&&e.keywords?.tags?.length&&e.keywords.tags.length>0){const r=e.keywords.tags[0],i=r.name;return r.approved?n.jsxs("h3",{children:[" ",n.jsx(O,{"aria-label":i,className:Ee.tagmx,href:at(r,e.paths),children:i})]}):n.jsx("div",{className:Ee.tagmx,children:i})}else if(e.info?.section?.url)return n.jsx("h3",{children:n.jsx(O,{className:Ee.tagmx,href:e?.info?.section?.url,children:e?.info?.section?.name})});return null},s=()=>{if(t&&e.keywords?.tags?.length&&e.keywords.tags.length>0){const r=e.keywords.tags[0],i=r.name;return r.approved?n.jsx("h3",{children:n.jsx(O,{"aria-label":i,className:Ee.tag,href:at(r,e.paths),children:i})}):n.jsx("div",{className:Ee.tag,children:i})}else if(e.info?.section?.url)return n.jsx("h3",{children:n.jsx(O,{className:Ee.tag,href:e?.info?.section?.url,children:e?.info?.section?.name})});return null};return n.jsxs("section",{className:`${Ee.content} destacado-super-content`,children:[n.jsx(O,{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:n.jsx(Se,{preview:e.preview,isLarge:!0,BackDropAuxHeigthMobile:"513px",priorityHigh:!0})}),n.jsxs("div",{className:Ee.contentNews,style:{"--widthTextContent":e.textPosition==="start"?"100%":"80%"},children:[n.jsx(o,{}),n.jsxs("div",{style:{position:"relative"},children:[n.jsx(s,{}),n.jsx(O,{className:Ee.linkTitle,href:e?.info?.link?.url,target:e?.info?.link?.target,children:n.jsx("h1",{className:Ee.titular,style:{"--titlePosition":e.textPosition==="start"?"initial":"center"},children:e?.main?.title?.home})})]}),e.config?.showsubtitle&&n.jsx("div",{className:Ee.description,dangerouslySetInnerHTML:{__html:e.main.subtitle.striped}}),e?.config?.showtime&&e.config?.showauthor&&n.jsx(n.Fragment,{children:e.authors[0]?.internaluser?n.jsx(O,{href:`/${e.paths?.autor??"autor"}/${e?.authors[0]?.name}`,className:Ee.correspondent,children:a()}):n.jsx("p",{className:Ee.correspondentLink,children:a()})})]})]})},Bs=e=>{const{main:t,authors:a,info:o,preview:s,isVideo:r,config:i,itemReverseOrder:c,imageSize:d,showSuper:l}=e;return n.jsxs("section",{className:Hc.content,children:[l?n.jsx("section",{style:{...e.customSectionCardStyles},children:n.jsx(St,{main:t,authors:a,info:o,preview:s,isVideo:r,config:i,paths:e.paths})}):n.jsx(Oe,{...e,main:t,authors:a,info:o,preview:s,isVideo:r,config:i,priorityHigh:!0}),e.banners&&n.jsx(fe,{banners:e.banners,name:"main_block_"+(e.rightOnlyBanner?1:2)}),!e.rightOnlyBanner&&n.jsx(ms,{block:e.block,itemReverseOrder:c,priorityHigh:!0,imageSize:d,customNewsDescriptionStyles:e.customNewsDescriptionStyles,paths:e.paths})]})},fa={content:"_content_1dcf7_1",firstSection:"_firstSection_1dcf7_10",secondSection:"_secondSection_1dcf7_16"},Ul=({content:e,customLargeSection:t,customSmallSection:a,paths:o})=>{const s=e[0];return Array.isArray(e)&&e.length>0&&s&&n.jsxs("section",{className:fa.content,children:[n.jsx("div",{style:t,className:fa.firstSection,children:n.jsx(St,{...s,textPosition:"start",heightImageOverwrite:"512px",heightImageOverwriteMobile:"270px",paths:o})}),n.jsx("div",{style:a,className:fa.secondSection,children:e.map((r,i)=>i>0&&E.createElement(St,{...r,key:i,textPosition:"start",heightImageOverwrite:"256px",heightImageOverwriteMobile:"270px",paths:o}))})]})},Ps={content:"_content_wsx1m_1",firstSection:"_firstSection_wsx1m_8"},ql=({content:e,customLargeSection:t,customSlimSection:a,paths:o})=>Array.isArray(e)&&e.length>0&&n.jsx("section",{className:Ps.content,children:e.map((s,r)=>r===0?n.jsx("div",{style:t,className:Ps.firstSection,children:n.jsx(St,{...s,isVertical:!0,textPosition:"start",heightImageOverwrite:"512px",heightImageOverwriteMobile:"270px",paths:o})},r):n.jsx("section",{style:a,children:E.createElement(St,{...s,key:r,isVertical:!0,textPosition:"start",heightImageOverwrite:"512px",heightImageOverwriteMobile:"270px",paths:o})},r))}),dt={content:"_content_1n73e_1",sectionDescription:"_sectionDescription_1n73e_13",title:"_title_1n73e_33",subtitle:"_subtitle_1n73e_47",linkStyled:"_linkStyled_1n73e_58"},Os=e=>{const{SHOW_TAG_BY_SECTION:t}=K(),a=()=>{if(t&&e.mainNew.keywords?.tags?.length&&e.mainNew.keywords.tags.length>0){const o=e.mainNew.keywords.tags[0],s=o.name;return o.approved?n.jsx("h3",{children:n.jsx(O,{"aria-label":s,className:dt.sectionDescription,href:at(o,e.paths),children:s})}):n.jsx("div",{className:dt.sectionDescription,children:s})}else if(e.mainNew.info?.section?.url)return n.jsx("h3",{children:n.jsx(O,{className:dt.sectionDescription,href:e?.mainNew?.info?.section?.url,children:e?.mainNew?.info?.section?.name})});return null};return n.jsxs("div",{className:dt.content,children:[n.jsx(a,{}),n.jsx(O,{className:dt.title,href:e?.mainNew?.info?.link?.url,target:e?.mainNew?.info?.link?.target,children:e?.mainNew?.main?.title.home}),e?.mainNew?.main?.subtitle?.rendered&&n.jsx("p",{className:dt.subtitle,children:e?.mainNew?.main?.subtitle?.striped}),e.goTo&&n.jsx(O,{href:e.goTo.url,className:dt.linkStyled,children:e.goTo.description})]})},ma={headerSection:"_headerSection_drjnj_1",headerSectionLink:"_headerSectionLink_drjnj_12",newsContent:"_newsContent_drjnj_17"},Ds=e=>{const{content:t,title:a,isVideo:o}=e;if(!t||!t[0]||t.length===0)return;const s=e.slot_id&&e.slot_id!=="Nota_1",r={...t[0],main:{...t[0].main,title:{...t[0].main.title,section:s?t[0].main.title.home:t[0].main.title.section}}},i=t.slice(1);return r&&i&&n.jsxs(ue,{title:a,titleUrl:e.titleUrl,children:[n.jsxs("div",{className:ma.headerSection,children:[n.jsx(Os,{mainNew:r,goTo:e.goTo,paths:e.paths}),n.jsx(O,{className:ma.headerSectionLink,href:r?.info?.link?.url,target:r?.info?.link?.target,children:n.jsx(Se,{preview:r.preview})})]}),n.jsxs("div",{className:ma.newsContent,children:[n.jsx("div",{className:"banner-context",style:{order:1},children:e.banner}),Array.isArray(i)&&i.map((c,d)=>{const l={...c,main:{...c.main,title:{...c.main.title,section:s?c.main.title.home:c.main.title.section}}};return n.jsx("div",{style:{order:d},children:n.jsx(Oe,{...l,isVideo:o,paths:e.paths})},d)})]})]})},Fe={content:"_content_1stvq_1",autorContent:"_autorContent_1stvq_8",image:"_image_1stvq_24",contentIcon:"_contentIcon_1stvq_25",boxInformationContent:"_boxInformationContent_1stvq_47",autorName:"_autorName_1stvq_53",time:"_time_1stvq_85",comment:"_comment_1stvq_98",title:"_title_1stvq_107"},_n=async e=>{const{data:t,autorIcon:a}=e,o=a,s=()=>t?.config?.showtime?`${ke(t.info?.date?.modified)}`:"",r=n.jsxs("div",{className:Fe.autorContent,children:[Array.isArray(t?.authors)&&Array.isArray(t?.authors[0]?.image?.sizes)&&t?.authors[0]?.image?.sizes?.length>0?n.jsx("img",{fetchPriority:"low",loading:"lazy",className:Fe.image,src:await de(t?.authors[0]?.image?.sizes[0]?.url||""),alt:t?.authors[0]?.fullname}):n.jsx("div",{className:Fe.contentIcon,children:n.jsx(o,{})}),n.jsx("p",{className:Fe.autorName,children:xe(t?.authors[0]?.fullname??"Redacción",18)}),n.jsx("p",{className:Fe.time,children:s()})]});return n.jsxs("div",{className:Fe.content,children:[t?.authors[0]?.internaluser?n.jsx(O,{href:t.authors[0]?.internaluser?`/${e.paths.autor}/${t?.authors[0]?.name}`:"#",children:r}):r,n.jsxs("div",{className:Fe.boxInformationContent,children:[n.jsx(O,{className:Fe.title,href:t?.info?.link?.url,target:t?.info?.link?.target,children:t?.main?.title?.home}),n.jsx("p",{className:Fe.comment,children:xe(t?.main?.subtitle?.striped||"")})]})]})},Nt={content:"_content_1d7mg_1",boxPosition:"_boxPosition_1d7mg_8",contentFlex:"_contentFlex_1d7mg_21",bannerContent:"_bannerContent_1d7mg_29",bannerContentAux:"_bannerContentAux_1d7mg_40"};function Ll(e){const t=new Array(e.length),a=e.length/2;for(let o=0;o<e.length;o++)o%2===0?t[Math.floor(o/2)]=e[o]:t[a+Math.floor(o/2)]=e[o];return t}const Bl=e=>{const{isOpinion:t=!1}=e,a=r=>n.jsx("div",{className:Nt.boxPosition+" banner-context",style:{order:2},children:n.jsx("div",{className:Nt.bannerContentAux,children:n.jsx("div",{style:{position:"absolute",height:"270px",top:"0"},children:e.banner})})},r),o=[];for(let r=0;r<e.news.length;r++){const i=e.news[r];r===2&&o.push(a(r)),i&&o.push(n.jsx("div",{className:Nt.boxPosition,style:{order:r},children:n.jsx(_n,{data:i,autorIcon:e.autorIcon,paths:e.paths})},`description-block-2-odd-${r}`))}const s=o.length%2===0?Ll(o):o;return n.jsx("section",{style:e.customStyles,children:n.jsx(ue,{title:e.title,titleUrl:e.titleUrl,isOpinion:t,children:n.jsxs("div",{className:Nt.content,children:[n.jsx("div",{className:Nt.contentFlex,children:s}),n.jsx("div",{className:Nt.bannerContent,children:e.halfPageBanner})]})})})},Ms={content:"_content_w9viv_1",title:"_title_w9viv_10"},Pl=e=>{const{showTitle:t=!0}=e;return n.jsxs("div",{className:Ms.content,children:[t&&n.jsx("p",{className:Ms.title,children:"Editorial"}),n.jsx(ct,{...e,info:{...e.info,section:{name:"",slug:"",url:""}}})]})},Et={content:"_content_1nd2h_1",newsContent:"_newsContent_1nd2h_8",boxPosition:"_boxPosition_1nd2h_17",bannerContent:"_bannerContent_1nd2h_23",bannerContentAux:"_bannerContentAux_1nd2h_33"},Ol=e=>{const{news:t}=e;return Array.isArray(t)&&n.jsxs("div",{className:Et.content,children:[n.jsxs("div",{className:Et.newsContent,children:[e.bannerArray&&e.bannerArray.map((a,o)=>n.jsx("div",{className:Et.boxPosition+" banner-context",style:{order:2+5*o},children:n.jsx("div",{className:Et.bannerContentAux,children:n.jsx("div",{style:{position:"absolute",height:"270px",top:"0"},children:a})})},o)),t.map((a,o)=>n.jsx("div",{className:Et.boxPosition,style:{order:o},children:n.jsx(Oe,{...a,share:e.share,paths:e.paths})},o))]}),n.jsx("div",{className:Et.bannerContent,children:e.halfPageBanner})]})},Dl=e=>n.jsxs(n.Fragment,{children:[n.jsx(As,{className:"display-on-lower-900px",...e,termsLink:e.termsLink,submitFunction:e.submitFunction}),n.jsx(ys,{...e})]}),Sn={newsContent:"_newsContent_gd57q_1",newsContentWithLines:"_newsContentWithLines_gd57q_8",newsContentWithoutLines:"_newsContentWithoutLines_gd57q_13",contentSeparator:"_contentSeparator_gd57q_18"},js=e=>{const{content:t}=e;if(!t||t.length===0)return;const a=i=>e.hasLines&&(i+1)%3!==0?Sn.contentSeparator:"",o=[];let s=0,r=1;for(let i=0;i<t.length;i++){e.banners&&e.bannerPositionIndex?.includes(i)&&(o.push(n.jsx("section",{className:a(s),children:e.banners?.some(h=>h.key===`${e.slot_id}_${r}`)&&n.jsx(fe,{banners:e.banners,name:`${e.slot_id}_${r}`})},s)),s++,r++);const c=e.isVideo?gt(t[i],e.showVideoTime,e.showVideosubtitle):t[i];if(!c)continue;const d=e.slot_id&&e.slot_id!=="Nota_1",l={...c,main:{...c.main,title:{...c.main.title,section:d?c.main.title.home:c.main.title.section}}};o.push(n.jsx("section",{className:a(s),children:n.jsx(Oe,{...l,isVideo:e.isVideo,paths:e.paths})},s)),s++}return o.length===2&&o.push(n.jsx("div",{},s)),n.jsx("div",{className:`${e.hasLines?Sn.newsContentWithLines:Sn.newsContentWithoutLines} ${Sn.newsContent}`,children:o})},ga=e=>n.jsx(ue,{title:e.title,titleUrl:e.titleUrl,children:n.jsx(js,{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})}),$s={newsContent:"_newsContent_1sb62_1",contentSeparator:"_contentSeparator_1sb62_8"},Qs=e=>{const{content:t,title:a}=e;if(!(!t||t.length===0||!Array.isArray(t)))return n.jsx(ue,{title:a,titleUrl:e.titleUrl,children:n.jsx("div",{className:`${$s.newsContent} ${e.hasLines?$s.contentSeparator:""}`,children:t?.map((o,s)=>{const r=e.slot_id&&e.slot_id!=="Nota_1",i={...o,main:{...o.main,title:{...o.main.title,section:r?o.main.title.home:o.main.title.section}}};return n.jsx("section",{children:n.jsx(Oe,{...i,share:e.share,paths:e.paths})},s)})})})},pa={newsContent:"_newsContent_1gbse_1",contentSeparator:"_contentSeparator_1gbse_8",newsContentWhitoutLine:"_newsContentWhitoutLine_1gbse_29"},Gs=e=>{const{content:t,title:a}=e;if(!(!t||t.length===0))return n.jsx(ue,{title:a,titleUrl:e.titleUrl,children:n.jsx("div",{className:`${pa.newsContent} ${e.hasLines?pa.contentSeparator:pa.newsContentWhitoutLine}`,children:t.map((o,s)=>{const r=e.slot_id&&e.slot_id!=="Nota_1",i={...o,main:{...o.main,title:{...o.main.title,section:r?o.main.title.home:o.main.title.section}}};return n.jsx("section",{children:n.jsx(Oe,{...i,share:e.share,paths:e.paths})},s)})})})},Aa={headerSection:"_headerSection_1m1sp_3",headerSectionLink:"_headerSectionLink_1m1sp_16",newsContent:"_newsContent_1m1sp_29"},Hs=e=>{const{content:t,title:a,isVideo:o=!0}=e;if(!t||t.length===0)return;const s=t[0],r=e.slot_id&&e.slot_id!=="Nota_1",i=t.slice(1);return s&&i&&n.jsxs(ue,{title:a,titleUrl:e.titleUrl,children:[n.jsxs("div",{className:Aa.headerSection,children:[n.jsx(Os,{goTo:e.goTo,mainNew:gt(s),paths:e.paths}),n.jsx(O,{className:Aa.headerSectionLink,href:s?.info?.link.url,target:s?.info?.link.target,"aria-label":"Video",children:n.jsx(Se,{preview:{sizes:s?.main?.image.sizes,description:s?.main?.image.description},isVideo:o,isLarge:!0})})]}),n.jsxs("div",{className:Aa.newsContent,children:[n.jsx("div",{className:"banner-context",style:{order:1},children:e.banner}),Array.isArray(i)&&i.map((c,d)=>{const l=gt(c),h={...l,main:{...l.main,title:{...l.main.title,section:r?l.main.title.home:l.main.title.section}}};return n.jsx("div",{style:{order:d},children:E.createElement(Oe,{...h,isVideo:o,key:d,paths:e.paths})},d)})]})]})},Gt={content:"_content_1qdkl_1",linkImage:"_linkImage_1qdkl_30",sectionDescription:"_sectionDescription_1qdkl_42",dateText:"_dateText_1qdkl_62",textContent:"_textContent_1qdkl_73"},Ml=async e=>{const{showNewsLikeTitle:t=!1}=e;return e&&e.info?n.jsxs("section",{className:Gt.content,style:{"--heightImageOverwrite":"100%"},children:[n.jsx(O,{className:Gt.linkImage,target:e?.info?.link?.target,title:e.main?.title?.section,href:t?e.info.link.url:e?.info?.section?.url,children:n.jsx(Se,{preview:e.preview})}),n.jsxs("div",{className:Gt.textContent,children:[n.jsx(O,{className:Gt.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)??""}),n.jsx("p",{className:Gt.dateText,children:ke(e?.info?.date?.modified)})]})]}):null},zs={content:"_content_yx3zm_1",contentSeparator:"_contentSeparator_yx3zm_7"},ya={newsContent:"_newsContent_1uamf_1",contentSeparator:"_contentSeparator_1uamf_8",hasLinesBlock:"_hasLinesBlock_1uamf_40"},Fs=e=>{if(!e.content||e.content.length===0)return;const t=e.slot_id&&e.slot_id!=="Nota_1";return n.jsx(ue,{title:e.title,children:n.jsx("div",{className:`${zs.content} ${e.hasLines?zs.contentSeparator:""}`,style:{gap:e.hasLines?"30px":"0px"},children:Array.isArray(e.content)&&e.content?.map((a,o)=>{const s={...a,main:{...a.main,title:{...a.main.title,section:t?a.main.title.home:a.main.title.section}}};return n.jsx("section",{className:e.hasLines?ya.hasLinesBlock:"",children:E.createElement(Ml,{...s,key:o,showNewsLikeTitle:e.showNewsLikeTitle})},o)})})})},Vs=e=>{const{content:t,title:a,slot_id:o}=e,s=e.slot_id&&e.slot_id!=="Nota_1";return t&&t.length!==0&&n.jsx(ue,{title:a,titleUrl:e.titleUrl,children:n.jsx(it,{slot_id:o,cardWidth:e.cardWidth,cardGap:e.cardGap,visibleItems:e.visibleItems,pagination:e.pagination,children:t.map((r,i)=>{const c={...r,main:{...r.main,title:{...r.main.title,section:s?r.main.title.home:r.main.title.section}}};return n.jsx("div",{style:{"--heightImageOverwrite":e.heightImageOverwrite,"--heightImageOverwriteMobile":e.heightImageOverwriteMobile},children:n.jsx(Mt,{...c,paths:e.paths})},i)})})})},tt={content:"_content_1mj79_1",imageStyled:"_imageStyled_1mj79_14",contentIcon:"_contentIcon_1mj79_23",boxInformation:"_boxInformation_1mj79_44",comment:"_comment_1mj79_51",title:"_title_1mj79_60",authorName:"_authorName_1mj79_81"},jl=async e=>{const{data:t}=e;return n.jsxs("div",{className:tt.content,children:[Array.isArray(t.authors)&&t?.authors[0]?.image?n.jsx("img",{fetchPriority:"low",loading:"lazy",className:tt.imageStyled,src:await de(t?.authors[0]?.image?.sizes[0]?.url||""),alt:t?.authors[0]?.fullname}):n.jsx("div",{className:tt.contentIcon,children:e.autorIcon}),n.jsxs("div",{className:tt.boxInformation,children:[n.jsx("p",{className:tt.authorName,children:t?.authors[0]?.internaluser?n.jsx(O,{href:t.authors[0]?.internaluser?`/${e.paths.autor}/${t?.authors[0]?.name}`:"#",children:t?.authors[0]?.fullname??"Redacción"}):t?.authors[0]?.fullname??"Redacción"}),n.jsx("p",{className:tt.title,children:n.jsx(O,{className:tt.linkStyled,href:t?.info?.link?.url,target:t?.info?.link?.target,children:xe(t?.main?.title?.home,40)})}),n.jsx("p",{className:tt.comment,children:t?.main?.subtitle?.striped})]})]})},Ws=e=>{const t=e.slot_id&&e.slot_id!=="Nota_1";return n.jsx(ue,{titleUrl:e.titleUrl,title:e.title,children:n.jsx(it,{slot_id:e.slot_id,cardGap:31,cardWidth:344,visibleItems:3,children:e.content&&e.content.map((a,o)=>{const s={...a,main:{...a.main,title:{...a.main.title,section:t?a.main.title.home:a.main.title.section}}};return n.jsx(jl,{autorIcon:e.autorIcon,data:s,paths:e.paths},o)})})})},Ve={content:"_content_1elhb_1",newsContentSection:"_newsContentSection_1elhb_5",itemContent:"_itemContent_1elhb_10",ItemCustomContent:"_ItemCustomContent_1elhb_16"},Nn=e=>{const{item:t,option:a}=e;switch(a){case"ediciones":return n.jsx("div",{className:Ve.ItemCustomContent});case"columnistasnacionales":return n.jsx("div",{className:Ve.ItemCustomContent,children:n.jsx(_n,{data:t,autorIcon:e.autorIcon,paths:e.paths})});case"columnistaslocales":return n.jsx("div",{className:Ve.ItemCustomContent,children:n.jsx(_n,{data:t,autorIcon:e.autorIcon,paths:e.paths})});case"columnistas":return n.jsx("div",{className:Ve.ItemCustomContent,children:n.jsx(_n,{data:t,autorIcon:e.autorIcon,paths:e.paths})});default:return n.jsx("div",{className:Ve.ItemCustomContent,children:n.jsx(Oe,{...t,paths:e.paths})})}},$l=e=>{const{data:t,currentPage:a,banners:o,slug:s,ranking:r,pathname:i,texts:c={}}=e,d=[3,8,13],l={3:1,8:2,13:3};switch(e.option){case"op1":return n.jsx(la,{ranking:r,readestTitle:c.readestTitle??"",paths:e.paths,bannerTop:n.jsx(fe,{banners:o??[],name:"right_1"}),banner:n.jsx(fe,{banners:o??[],name:"right_2"}),children:n.jsx("section",{className:Ve.content,children:t.length>0?n.jsx(yn,{className:[Ve.newsContentSection,"padding-0"].join(" "),paginatorComponent:n.jsx(Ot,{texts:c,pathname:i,query:"",currentPage:a,maxPages:e.PAGINATION_MAX_PAGES,showNext:!(t.length<e.NEWS_PER_SECTION)}),children:Array.isArray(t)&&t?.map((h,u)=>n.jsxs(E.Fragment,{children:[d.includes(u+1)&&n.jsx("div",{className:Ve.itemContent+" banner-context",children:n.jsx(fe,{banners:o??[],name:`block_2_${l[u+1]}`})}),n.jsx(Nn,{autorIcon:e.autorIcon,item:h,option:s,paths:e.paths},u)]},u))}):n.jsx("div",{style:{width:"100%",display:"flex",flexDirection:"column",justifyContent:"center",gap:"2rem"},children:n.jsx("p",{style:{fontWeight:"var(--fw)",width:"100%",fontSize:"18px",lineHeight:"26px",textAlign:"center"},children:c.sectionNotResultMessage})})})});case"op2":return n.jsx(n.Fragment,{children:t.length>0?n.jsx(yn,{className:"padding-0",paginatorComponent:n.jsx(Ot,{texts:c,pathname:i,query:"",currentPage:a,maxPages:e.PAGINATION_MAX_PAGES,showNext:!(t.length<e.NEWS_PER_SECTION)}),children:Array.isArray(t)&&t?.map((h,u)=>n.jsxs(E.Fragment,{children:[d.includes(u+1)&&n.jsx("div",{className:Ve.itemContent,children:n.jsx(fe,{banners:o??[],name:`block_2_${l[u+1]}`})}),n.jsx(Nn,{autorIcon:e.autorIcon,item:h,option:s,paths:e.paths},u)]},u))}):n.jsx("div",{style:{width:"100%",display:"flex",flexDirection:"column",justifyContent:"center",gap:"2rem"},children:n.jsx("p",{style:{fontWeight:"var(--fw)",width:"100%",fontSize:"18px",lineHeight:"26px",textAlign:"center"},children:c.sectionNotResultMessage})})});default:return n.jsx(n.Fragment,{})}},Ys={content:"_content_gwsqy_1",contactInfoContent:"_contactInfoContent_gwsqy_7"},Ql=e=>{const{data:t}=e;return n.jsx("section",{className:Ys.content,children:t.map((a,o)=>n.jsx("div",{className:Ys.contactInfoContent,dangerouslySetInnerHTML:{__html:a.body.rendered}},o))})},wa={tagContent:"_tagContent_ee6yw_1",contentLayout2:"_contentLayout2_ee6yw_9",contentHeader:"_contentHeader_ee6yw_42"},Gl={content:"_content_1rbrt_1"},Hl=({children:e,className:t=""})=>n.jsx("div",{className:`content-layout-2 ${Gl.content} ${t}`,children:e}),Ht={container:"_container_8w9ca_1",note:"_note_8w9ca_9",commercial:"_commercial_8w9ca_49",commercialContent:"_commercialContent_8w9ca_66",complement:"_complement_8w9ca_82"},zl=e=>n.jsxs("section",{className:Ht.container,children:[n.jsx("div",{className:Ht.note,children:e.children}),n.jsx("div",{className:Ht.commercial,children:n.jsxs("div",{className:Ht.commercialContent,children:[e.slug==="liveblogs"&&n.jsx(Ss,{itemList:e.itemList}),e.bannerTop,n.jsx(mn,{content:e.ranking,title:e.texts.readestTitle,paths:e.paths,customNewsDescriptionStyles:{"--news-description-title-size-desk":"16px","--news-description-title-line-height-desk":"22px","--news-description-title-size-mobile":"16px","--news-description-title-line-height-mobile":"22px",...e.readestCustomStyles}}),n.jsx("div",{style:{position:"sticky",top:"110px"},children:e.banner})]})}),n.jsx("div",{className:Ht.complement,children:e.complement})]}),Fl=e=>{const t={...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 n.jsx("div",{style:{"--news-description-title-size-desk":"38px","--news-description-title-size-mobile":"30px","--news-description-title-line-height-desk":"46px","--news-description-title-line-height-mobile":"38px","--news-image-height-desk":"600px","--news-image-height-mobile":"420px","--news-image-description-display":"none",...e.headerSectionStyles?.liveblogs},children:n.jsx(_s,{...t,fontSizeSubTitle:"18px",lineHeightSubTitle:"28px"})});default:return n.jsx("div",{className:wa.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",...e.headerSectionStyles?.common},children:n.jsx(ct,{...t,fontSizeSubTitle:"18px",lineHeightSubTitle:"28px",cutSubtitle:!1,colorSubTitle:"black",isTitle:!0,paths:e.paths})})}},We={content:"_content_exb5o_1",contentWithinCard:"_contentWithinCard_exb5o_7",contentDate:"_contentDate_exb5o_13",dateInfo:"_dateInfo_exb5o_20",dot:"_dot_exb5o_30",contentTitle:"_contentTitle_exb5o_38",contentTextList:"_contentTextList_exb5o_47",contentButton:"_contentButton_exb5o_65",linkStyled:"_linkStyled_exb5o_71"},Vl={content:"_content_ifkxj_1"},Wl=e=>n.jsx("section",{className:Vl.content,id:e.id,children:e.children}),Yl=async(e,t,a)=>{if(!a)return e;const o=/<span data-src="(.*?)"><\/span>/g,s=[...e.matchAll(o)];let r=e;for(const i of s){const c=i[0],d=i[1]??"";let l;if(a.forEach(S=>{Array.isArray(S)&&(l=S.find(_=>d.replaceAll("/","|").includes(_?.info.link.internal||"")))}),!l){r=r.replace("ck-related-news","ck-related-news-empty");break}const h=l.preview?.sizes?.[0],u=h?await de(h.url):"",f=l.info.section?.url??"#",g=l.info.section?.name??"Sección",m=l.info.link?.url??"#",p=l.main?.title.article??"Título",A=(await Promise.all(l.preview?.sizes?.map(async S=>{const _=await de(S.url);return S.width<200?`<source srcset="${_}" media="(width < 750px)"/>`:`<source srcset="${_}" media="(width >= 750px)"/>`}))).reduce((S,_)=>S+=_,""),b=`
50
50
  <span data-src="${d}">
51
51
  <picture style='display: flex'>
52
52
  ${A}
@@ -126,7 +126,7 @@ j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
126
126
  </div>
127
127
  ${i(t.length)}
128
128
  </div>
129
- `}const id=e=>n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"currentColor",...e,children:n.jsx("path",{fill:"currentColor",d:"M9.99 0C4.47 0 0 4.48 0 10s4.47 10 9.99 10C15.52 20 20 15.52 20 10S15.52 0 9.99 0Zm6.93 6h-2.95a15.65 15.65 0 0 0-1.38-3.56A8.03 8.03 0 0 1 16.92 6ZM10 2.04c.83 1.2 1.48 2.53 1.91 3.96H8.09C8.52 4.57 9.17 3.24 10 2.04ZM2.26 12C2.1 11.36 2 10.69 2 10s.1-1.36.26-2h3.38c-.08.66-.14 1.32-.14 2 0 .68.06 1.34.14 2H2.26Zm.82 2h2.95c.32 1.25.78 2.45 1.38 3.56A7.987 7.987 0 0 1 3.08 14Zm2.95-8H3.08a7.987 7.987 0 0 1 4.33-3.56A15.65 15.65 0 0 0 6.03 6ZM10 17.96c-.83-1.2-1.48-2.53-1.91-3.96h3.82c-.43 1.43-1.08 2.76-1.91 3.96ZM12.34 12H7.66c-.09-.66-.16-1.32-.16-2 0-.68.07-1.35.16-2h4.68c.09.65.16 1.32.16 2 0 .68-.07 1.34-.16 2Zm.25 5.56c.6-1.11 1.06-2.31 1.38-3.56h2.95a8.03 8.03 0 0 1-4.33 3.56ZM14.36 12c.08-.66.14-1.32.14-2 0-.68-.06-1.34-.14-2h3.38c.16.64.26 1.31.26 2s-.1 1.36-.26 2h-3.38Z"})}),cd=e=>e.replace(/<iframe(?![^>]*\bloading=)[^>]*>/gi,a=>a.replace("<iframe",'<iframe loading="lazy"')),ld=e=>e.replace(/<iframe(?![^>]*\btitle=)[^>]*>/gi,a=>a.replace("<iframe",'<iframe title="frame custom content"')),dd=e=>e.replace(/<span\b[^>]*class=["'][^"']*video__title[^"']*["'][^>]*>[\s\S]*?<\/span>/gi,""),hd=async e=>{const{PUBLIC_IS_OFFLINE:t}=K();if(!(t==="true")){const l=/<img\b[^>]*\bsrc=["']([^"']+)["']/g,h=[...e.matchAll(l)],u={};for(const f of h){const g=f[1]??"",m=e.includes(g)?{url:g}:null;if(m){const p=await de(m.url)||"";u[g]=p}}return e.replace(l,(f,g)=>`<img fetchPriority='low' loading='lazy' alt='imagen' src="${u[g]||g}"`)}let o=e;const s=/<figure\b[^>]*>([\s\S]*?)<img\b[^>]*\bsrc=["']([^"']+)["'][^>]*>([\s\S]*?)<\/figure>/g,r=[...e.matchAll(s)],i=new Set;for(const l of r){const h=l[0],u=l[2]??"";i.add(u);const f=h.match(/<img\b[^>]*\balt=["']([^"']*)["']/),g=f?f[1]:"imagen",m=u.match(/__scale=([^&"']+)/),p=m?decodeURIComponent(m[1]):null;let A=0,b=0;if(p){const k=p.match(/w:(\d+)/),L=p.match(/h:(\d+)/);A=k?parseInt(k[1]):0,b=L?parseInt(L[1]):0}const _={preview:{sizes:[{scale:p||`w:${A},h:${b},t:2`,url:u,width:A,height:b}],original:{url:u.split("?")[0],width:A,height:b},copyright:!1,description:g,photographer:!1},isLarge:!1,priorityHigh:!1},v=`<div data-hydrate="ImageOffline" data-props="${encodeURIComponent(JSON.stringify(_))}"><div class="_imagePlaceholder_ooa5j_98"></div></div>`;o=o.replace(h,v)}const c=/<img\b[^>]*\bsrc=["']([^"']+)["'][^>]*>/g,d=[...o.matchAll(c)];for(const l of d){const h=l[0],u=l[1]??"";if(i.has(u))continue;const f=h.match(/\balt=["']([^"']*)["']/),g=f?f[1]:"imagen",m=u.match(/__scale=([^&"']+)/),p=m?decodeURIComponent(m[1]):null;let A=0,b=0;if(p){const k=p.match(/w:(\d+)/),L=p.match(/h:(\d+)/);A=k?parseInt(k[1]):0,b=L?parseInt(L[1]):0}const _={preview:{sizes:[{scale:p||`w:${A},h:${b},t:2`,url:u,width:A,height:b}],original:{url:u.split("?")[0],width:A,height:b},copyright:!1,description:g,photographer:!1},isLarge:!1,priorityHigh:!1},v=`<div data-hydrate="ImageOffline" data-props="${encodeURIComponent(JSON.stringify(_))}"><div class="_imagePlaceholder_ooa5j_98"></div></div>`;o=o.replace(h,v)}return o},ud=(e,t)=>{const a={2:1,4:2,7:3,10:4,13:5};let o=0,s=e;const r=/<(p|li|ul|ol)>\s*<\/\1>/gi,i=/<(p|li|ul|ol)>(?:&(?:nbsp|#160|ensp|emsp|#8194|#8195);)*?<\/\1>/gi;do s=e.replace(r,"").replace(i,"");while(s.match(r)||s.match(i));return s=s.replace(/<p\b[^>]*?>[\s\S]*?<\/p>|<(ul|ol)[^>]*?>[\s\S]*?<\/\1>/g,c=>{const d=c.replace(/[.*+?^${}()|[\]\\/]/g,"\\$&");if(!new RegExp(`<blockquote[^>]*?>(?:(?!<\\/blockquote>)[\\s\\S])*?${d}[\\s\\S]*?<\\/blockquote>`,"gi").test(s)){o++;const h=t.find(u=>u.key===`block_2_${a[o]}`);return h?`${c}<div class="banner-context">${h.value}</div>`:c}return c}),s},fd=e=>{const t=/<div class="ck-image-gallery"[^>]*?>([\s\S]*?)<\/div>/g,a=[...e.matchAll(t)];let o="",s=0;for(const r of a){const[i,c=""]=r,d=r.index,l=d+i.length;o+=e.slice(s,d);const u=[...c.matchAll(/data-src="([^"]+)"/g)].map(m=>m[1]).map(m=>`<img fetchPriority='low' loading='lazy' alt='imagen' src="${m}" class="carrusel-note-item" width="800" height="469"/>`),f="gallery_embeded"+d.toString(),g=rd({slot_id:f,children:u,visibleItems:1,cardGap:0});o+=g,s=l}return o+=e.slice(s),o},md=async(e,t,a)=>{if(!a)return e;const o=/<span data-src="(.*?)"><\/span>/g,s=[...e.matchAll(o)];let r=e;for(const i of s){const c=i[0],d=i[1]??"",l=a.find(S=>d.includes(S?.[0]?.info.link.internal||""));if(!l||!l[0])continue;const h=l[0].preview?.sizes?.[0],u=h?await de(h.url):"",f=l[0].info.section?.url??"#",g=l[0].info.section?.name??"Sección",m=l[0].info.link?.url??"#",p=l[0].main?.title.article??"Título",A=(await Promise.all(l[0].preview?.sizes?.map(async(S,_)=>{const T=await de(S.url);return _===0?`<source srcset="${T}" media="(width >= 900px)"/>`:`<source srcset="${T}" media="(width < 900px)"/>`}))).reduce((S,_)=>S+=_,""),b=`
129
+ `}const id=e=>n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"currentColor",...e,children:n.jsx("path",{fill:"currentColor",d:"M9.99 0C4.47 0 0 4.48 0 10s4.47 10 9.99 10C15.52 20 20 15.52 20 10S15.52 0 9.99 0Zm6.93 6h-2.95a15.65 15.65 0 0 0-1.38-3.56A8.03 8.03 0 0 1 16.92 6ZM10 2.04c.83 1.2 1.48 2.53 1.91 3.96H8.09C8.52 4.57 9.17 3.24 10 2.04ZM2.26 12C2.1 11.36 2 10.69 2 10s.1-1.36.26-2h3.38c-.08.66-.14 1.32-.14 2 0 .68.06 1.34.14 2H2.26Zm.82 2h2.95c.32 1.25.78 2.45 1.38 3.56A7.987 7.987 0 0 1 3.08 14Zm2.95-8H3.08a7.987 7.987 0 0 1 4.33-3.56A15.65 15.65 0 0 0 6.03 6ZM10 17.96c-.83-1.2-1.48-2.53-1.91-3.96h3.82c-.43 1.43-1.08 2.76-1.91 3.96ZM12.34 12H7.66c-.09-.66-.16-1.32-.16-2 0-.68.07-1.35.16-2h4.68c.09.65.16 1.32.16 2 0 .68-.07 1.34-.16 2Zm.25 5.56c.6-1.11 1.06-2.31 1.38-3.56h2.95a8.03 8.03 0 0 1-4.33 3.56ZM14.36 12c.08-.66.14-1.32.14-2 0-.68-.06-1.34-.14-2h3.38c.16.64.26 1.31.26 2s-.1 1.36-.26 2h-3.38Z"})}),Zs={content:"_content_cu8lm_1",title:"_title_cu8lm_18"},Xs=async({newsformated:e,internal:t,commonServices:a})=>{if(!t)return null;try{const o=e?.preview?.sizes?.[0]?.scale??void 0,r=(await a.getNewsMultimedia({path:t,imagesizes:o}))?.data?.data;if(!Array.isArray(r)||r.length===0)return null;const i=r[0],d=(Array.isArray(i?.videos)?i.videos:[]).find(l=>l?.type==="video-embedded");return d?.code?n.jsxs("div",{className:Zs.content,children:[n.jsx("div",{dangerouslySetInnerHTML:{__html:typeof d.code=="string"?d.code:""}}),d?.title&&n.jsx("p",{className:Zs.title,children:d.title})]}):null}catch{return null}},va={content:"_content_cu8lm_1",title:"_title_cu8lm_18"},Rs=async({newsformated:e,internal:t,commonServices:a})=>{if(!t)return null;try{const o=e?.preview?.sizes?.[0]?.scale??void 0,r=(await a.getNewsMultimedia({path:t,imagesizes:o}))?.data?.data;if(!Array.isArray(r)||r.length===0)return null;const i=r[0],d=(Array.isArray(i?.videos)?i.videos:[]).find(l=>l?.type==="video-youtube");return!d?.code||typeof d.code!="string"?null:n.jsxs("div",{className:va.content,children:[n.jsx("iframe",{className:va.iframeStyled,src:`https://www.youtube.com/embed/${d.code}`,frameBorder:"0",allowFullScreen:!0}),d?.title&&n.jsx("p",{className:va.title,children:d.title})]})}catch{return null}},cd={content:"_content_ezbiw_1"},er=async({newsformated:e,internal:t,commonServices:a})=>{if(!t)return null;try{const o=e?.preview?.sizes?.[0]?.scale??void 0,r=(await a.getNews({path:t,imagesizes:o}))?.data?.data;if(!Array.isArray(r)||r.length===0)return null;const c=r[0]?.external?.iframe;return typeof c!="string"||c.trim()===""?null:n.jsx("div",{className:cd.content,dangerouslySetInnerHTML:{__html:c}})}catch{return null}},tr={content:"_content_156j7_1"},nt={videoEmbedded:"videoEmbedded",videoYouTube:"videoYouTube",iframe:"iframe",fotoGaleria:"fotogaleria"},ld={[nt.videoEmbedded]:Xs,[nt.videoYouTube]:Rs,[nt.iframe]:er},dd=({news:e,commonServices:t})=>{const{config:a,hascontent:o,info:s}=e,r=a.articlepreview,i=s.link.internal,c=o?.hasgalleryimages;if(r===nt.fotoGaleria&&c)return n.jsx("div",{className:tr.content,children:n.jsx(ba,{commonServices:t,newsformated:e,internal:i})});const d=r?ld[r]:null;return d?n.jsx("div",{className:tr.content,children:n.jsx(d,{newsformated:e,internal:i,commonServices:t})}):null},hd=e=>e.replace(/<iframe(?![^>]*\bloading=)[^>]*>/gi,a=>a.replace("<iframe",'<iframe loading="lazy"')),ud=e=>e.replace(/<iframe(?![^>]*\btitle=)[^>]*>/gi,a=>a.replace("<iframe",'<iframe title="frame custom content"')),fd=e=>e.replace(/<span\b[^>]*class=["'][^"']*video__title[^"']*["'][^>]*>[\s\S]*?<\/span>/gi,""),md=async e=>{const{PUBLIC_IS_OFFLINE:t}=K();if(!(t==="true")){const l=/<img\b[^>]*\bsrc=["']([^"']+)["']/g,h=[...e.matchAll(l)],u={};for(const f of h){const g=f[1]??"",m=e.includes(g)?{url:g}:null;if(m){const p=await de(m.url)||"";u[g]=p}}return e.replace(l,(f,g)=>`<img fetchPriority='low' loading='lazy' alt='imagen' src="${u[g]||g}"`)}let o=e;const s=/<figure\b[^>]*>([\s\S]*?)<img\b[^>]*\bsrc=["']([^"']+)["'][^>]*>([\s\S]*?)<\/figure>/g,r=[...e.matchAll(s)],i=new Set;for(const l of r){const h=l[0],u=l[2]??"";i.add(u);const f=h.match(/<img\b[^>]*\balt=["']([^"']*)["']/),g=f?f[1]:"imagen",m=u.match(/__scale=([^&"']+)/),p=m?decodeURIComponent(m[1]):null;let A=0,b=0;if(p){const k=p.match(/w:(\d+)/),L=p.match(/h:(\d+)/);A=k?parseInt(k[1]):0,b=L?parseInt(L[1]):0}const _={preview:{sizes:[{scale:p||`w:${A},h:${b},t:2`,url:u,width:A,height:b}],original:{url:u.split("?")[0],width:A,height:b},copyright:!1,description:g,photographer:!1},isLarge:!1,priorityHigh:!1},v=`<div data-hydrate="ImageOffline" data-props="${encodeURIComponent(JSON.stringify(_))}"><div class="_imagePlaceholder_ooa5j_98"></div></div>`;o=o.replace(h,v)}const c=/<img\b[^>]*\bsrc=["']([^"']+)["'][^>]*>/g,d=[...o.matchAll(c)];for(const l of d){const h=l[0],u=l[1]??"";if(i.has(u))continue;const f=h.match(/\balt=["']([^"']*)["']/),g=f?f[1]:"imagen",m=u.match(/__scale=([^&"']+)/),p=m?decodeURIComponent(m[1]):null;let A=0,b=0;if(p){const k=p.match(/w:(\d+)/),L=p.match(/h:(\d+)/);A=k?parseInt(k[1]):0,b=L?parseInt(L[1]):0}const _={preview:{sizes:[{scale:p||`w:${A},h:${b},t:2`,url:u,width:A,height:b}],original:{url:u.split("?")[0],width:A,height:b},copyright:!1,description:g,photographer:!1},isLarge:!1,priorityHigh:!1},v=`<div data-hydrate="ImageOffline" data-props="${encodeURIComponent(JSON.stringify(_))}"><div class="_imagePlaceholder_ooa5j_98"></div></div>`;o=o.replace(h,v)}return o},gd=(e,t)=>{const a={2:1,4:2,7:3,10:4,13:5};let o=0,s=e;const r=/<(p|li|ul|ol)>\s*<\/\1>/gi,i=/<(p|li|ul|ol)>(?:&(?:nbsp|#160|ensp|emsp|#8194|#8195);)*?<\/\1>/gi;do s=e.replace(r,"").replace(i,"");while(s.match(r)||s.match(i));return s=s.replace(/<p\b[^>]*?>[\s\S]*?<\/p>|<(ul|ol)[^>]*?>[\s\S]*?<\/\1>/g,c=>{const d=c.replace(/[.*+?^${}()|[\]\\/]/g,"\\$&");if(!new RegExp(`<blockquote[^>]*?>(?:(?!<\\/blockquote>)[\\s\\S])*?${d}[\\s\\S]*?<\\/blockquote>`,"gi").test(s)){o++;const h=t.find(u=>u.key===`block_2_${a[o]}`);return h?`${c}<div class="banner-context">${h.value}</div>`:c}return c}),s},pd=e=>{const t=/<div class="ck-image-gallery"[^>]*?>([\s\S]*?)<\/div>/g,a=[...e.matchAll(t)];let o="",s=0;for(const r of a){const[i,c=""]=r,d=r.index,l=d+i.length;o+=e.slice(s,d);const u=[...c.matchAll(/data-src="([^"]+)"/g)].map(m=>m[1]).map(m=>`<img fetchPriority='low' loading='lazy' alt='imagen' src="${m}" class="carrusel-note-item" width="800" height="469"/>`),f="gallery_embeded"+d.toString(),g=rd({slot_id:f,children:u,visibleItems:1,cardGap:0});o+=g,s=l}return o+=e.slice(s),o},Ad=async(e,t,a)=>{if(!a)return e;const o=/<span data-src="(.*?)"><\/span>/g,s=[...e.matchAll(o)];let r=e;for(const i of s){const c=i[0],d=i[1]??"",l=a.find(S=>d.includes(S?.[0]?.info.link.internal||""));if(!l||!l[0])continue;const h=l[0].preview?.sizes?.[0],u=h?await de(h.url):"",f=l[0].info.section?.url??"#",g=l[0].info.section?.name??"Sección",m=l[0].info.link?.url??"#",p=l[0].main?.title.article??"Título",A=(await Promise.all(l[0].preview?.sizes?.map(async(S,_)=>{const T=await de(S.url);return _===0?`<source srcset="${T}" media="(width >= 900px)"/>`:`<source srcset="${T}" media="(width < 900px)"/>`}))).reduce((S,_)=>S+=_,""),b=`
130
130
  <span data-src="${d}">
131
131
  <picture style='display: flex'>
132
132
  ${A}
@@ -137,7 +137,7 @@ j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
137
137
  <a class="title" href="${m}">${p}</a>
138
138
  </div>
139
139
  </span>
140
- `;r=r.replace(c,b)}return r};async function gd(e,t){let a="",o=0;const s=/<div\b[^>]*\bclass=(["'])(?:(?!\1).)*\bck-video-player\b(?:(?!\1).)*\1[^>]*>/gi;let r;for(;(r=s.exec(e))!==null;){const i=r.index,c=s.lastIndex;a+=e.slice(o,i);let d=1,l=c;const h=e.length;for(;l<h&&d>0;){const b=e.indexOf("<div",l),S=e.indexOf("</div>",l);if(S===-1){l=h;break}b!==-1&&b<S?(d+=1,l=b+4):(d-=1,l=S+6)}const u=l,f=e.slice(i,u);let g=null;const m=/<span\b([^>]*)>/gi;let p;for(;(p=m.exec(f))!==null;){const b=p[1];if(!b)break;if(/data-type\s*=\s*["']?video["']?/i.test(b)){const S=b.match(/data-src\s*=\s*["']([^"']+)["']/i);if(S){g=S[1]??"";break}}}if(!g){const b=f.match(/<span\b[^>]*data-src=["'][^"']+["'][^>]*>/i);if(b){const S=b[0].match(/data-src\s*=\s*["']([^"']+)["']/i);S&&(g=S[1]??"")}}let A="";if(g)try{const b=await t.iframe({path:g}),S=t.schema?await t.schema(g):null;if(b&&b.data){const _=b.data.data[0];let T="";const v=f.match(/<span\b[^>]*class=["']video__title["'][^>]*>([\s\S]*?)<\/span>/i),k=v&&v[1]?v[1].trim():"";_.info&&_.info.type==="video-youtube"?T=`<iframe
140
+ `;r=r.replace(c,b)}return r};async function yd(e,t){let a="",o=0;const s=/<div\b[^>]*\bclass=(["'])(?:(?!\1).)*\bck-video-player\b(?:(?!\1).)*\1[^>]*>/gi;let r;for(;(r=s.exec(e))!==null;){const i=r.index,c=s.lastIndex;a+=e.slice(o,i);let d=1,l=c;const h=e.length;for(;l<h&&d>0;){const b=e.indexOf("<div",l),S=e.indexOf("</div>",l);if(S===-1){l=h;break}b!==-1&&b<S?(d+=1,l=b+4):(d-=1,l=S+6)}const u=l,f=e.slice(i,u);let g=null;const m=/<span\b([^>]*)>/gi;let p;for(;(p=m.exec(f))!==null;){const b=p[1];if(!b)break;if(/data-type\s*=\s*["']?video["']?/i.test(b)){const S=b.match(/data-src\s*=\s*["']([^"']+)["']/i);if(S){g=S[1]??"";break}}}if(!g){const b=f.match(/<span\b[^>]*data-src=["'][^"']+["'][^>]*>/i);if(b){const S=b[0].match(/data-src\s*=\s*["']([^"']+)["']/i);S&&(g=S[1]??"")}}let A="";if(g)try{const b=await t.iframe({path:g}),S=t.schema?await t.schema(g):null;if(b&&b.data){const _=b.data.data[0];let T="";const v=f.match(/<span\b[^>]*class=["']video__title["'][^>]*>([\s\S]*?)<\/span>/i),k=v&&v[1]?v[1].trim():"";_.info&&_.info.type==="video-youtube"?T=`<iframe
141
141
  loading="lazy"
142
142
  frameborder="0"
143
143
  allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
@@ -157,5 +157,5 @@ j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
157
157
  ${T}
158
158
  <figcaption>${L}</figcaption>
159
159
  </figure>
160
- `}}catch(b){console.error("insertVideos error for",g,b),A=""}else A=f;o=u,a+=A,s.lastIndex=u}return a+=e.slice(o),a=dd(a),a}async function pd(e){const{news:t,banners:a,newsRelatedResponses:o,newsRelatedListResponses:s,slug:r,itemList:i,socials:c,getVideos:d,commonServices:l}=e;let h=t?.body?.rendered??"";h=h.replace(/&nbsp;/g,""),h=ud(h,a),h=fd(h),h=await hd(h),h=await md(h,e.texts,o),h=await gd(h,d),h=cd(h),h=ld(h);const u=t.main.sources??[];return n.jsxs("div",{className:En.content,children:[r!=="liveblogs"&&e.showHeaderImage?t.hascontent?.hasgalleryimages?n.jsx(ba,{commonServices:l,newsformated:t,internal:t.info.link.internal}):n.jsx(Cs,{preview:t.preview}):null,n.jsx(fe,{banners:a,name:"block_1"}),n.jsx("div",{className:En.journalistArticleContent,children:n.jsx(ad,{autorIcon:e.autorIcon,socials:c,news:t,texts:e.texts,noteShare:e.noteShare,paths:e.paths})}),n.jsx(sd,{summary:t.main.summary}),n.jsx("div",{className:En.contentNews,suppressHydrationWarning:!0,id:"content-news-section",dangerouslySetInnerHTML:{__html:h}}),n.jsx(ed,{texts:e.texts,itemList:i,banners:a,slug:r,getVideos:d,newsRelatedListResponses:s??[]}),u.length>0&&n.jsxs("div",{className:En.noteSource,children:[n.jsx(id,{}),n.jsx("p",{children:e.texts.noteSource+(u.length===1?"":"s")+": "+u.map(f=>f.name).join(", ")})]})]})}const Zs={content:"_content_cu8lm_1",title:"_title_cu8lm_18"},Xs=async({newsformated:e,internal:t,commonServices:a})=>{if(!t)return null;try{const o=e?.preview?.sizes?.[0]?.scale??void 0,r=(await a.getNewsMultimedia({path:t,imagesizes:o}))?.data?.data;if(!Array.isArray(r)||r.length===0)return null;const i=r[0],d=(Array.isArray(i?.videos)?i.videos:[]).find(l=>l?.type==="video-embedded");return d?.code?n.jsxs("div",{className:Zs.content,children:[n.jsx("div",{dangerouslySetInnerHTML:{__html:typeof d.code=="string"?d.code:""}}),d?.title&&n.jsx("p",{className:Zs.title,children:d.title})]}):null}catch{return null}},va={content:"_content_cu8lm_1",title:"_title_cu8lm_18"},Rs=async({newsformated:e,internal:t,commonServices:a})=>{if(!t)return null;try{const o=e?.preview?.sizes?.[0]?.scale??void 0,r=(await a.getNewsMultimedia({path:t,imagesizes:o}))?.data?.data;if(!Array.isArray(r)||r.length===0)return null;const i=r[0],d=(Array.isArray(i?.videos)?i.videos:[]).find(l=>l?.type==="video-youtube");return!d?.code||typeof d.code!="string"?null:n.jsxs("div",{className:va.content,children:[n.jsx("iframe",{className:va.iframeStyled,src:`https://www.youtube.com/embed/${d.code}`,frameBorder:"0",allowFullScreen:!0}),d?.title&&n.jsx("p",{className:va.title,children:d.title})]})}catch{return null}},Ad={content:"_content_ezbiw_1"},er=async({newsformated:e,internal:t,commonServices:a})=>{if(!t)return null;try{const o=e?.preview?.sizes?.[0]?.scale??void 0,r=(await a.getNews({path:t,imagesizes:o}))?.data?.data;if(!Array.isArray(r)||r.length===0)return null;const c=r[0]?.external?.iframe;return typeof c!="string"||c.trim()===""?null:n.jsx("div",{className:Ad.content,dangerouslySetInnerHTML:{__html:c}})}catch{return null}},tr={content:"_content_156j7_1"},nt={videoEmbedded:"videoEmbedded",videoYouTube:"videoYouTube",iframe:"iframe",fotoGaleria:"fotogaleria"},yd={[nt.videoEmbedded]:Xs,[nt.videoYouTube]:Rs,[nt.iframe]:er},wd=({news:e,commonServices:t})=>{const{config:a,hascontent:o,info:s}=e,r=a.articlepreview,i=s.link.internal,c=o?.hasgalleryimages;if(r===nt.fotoGaleria&&c)return n.jsx("div",{className:tr.content,children:n.jsx(ba,{commonServices:t,newsformated:e,internal:i})});const d=r?yd[r]:null;return d?n.jsx("div",{className:tr.content,children:n.jsx(d,{newsformated:e,internal:i,commonServices:t})}):null},bd=e=>{const{content:t,title:a,slot_id:o}=e,s=e.slot_id&&e.slot_id!=="Nota_1";return t&&t.length!==0&&n.jsx(ue,{title:a,titleUrl:e.titleUrl,children:n.jsx(it,{slot_id:o,cardWidth:200,children:t.map((r,i)=>{const c={...r,main:{...r.main,title:{...r.main.title,section:s?r.main.title.home:r.main.title.section}}};return n.jsx(Mt,{...c,titleGradient:!0,paths:e.paths},i)})})})},vd=e=>{const{content:t,title:a,slot_id:o}=e,s=e.slot_id&&e.slot_id!=="Nota_1";return t&&t.length!==0&&n.jsx(ue,{title:a,titleUrl:e.titleUrl,children:n.jsx(it,{slot_id:o,cardWidth:343,cardGap:32,visibleItems:3,children:t.map((r,i)=>{const c={...r,main:{...r.main,title:{...r.main.title,section:s?r.main.title.home:r.main.title.section}}};return n.jsx(Mt,{...c,titleGradient:!0,paths:e.paths},i)})})})},Cd=e=>{const{content:t,title:a,slot_id:o}=e,s=e.slot_id&&e.slot_id!=="Nota_1";return t&&t.length!==0&&n.jsx(ue,{title:a,titleUrl:e.titleUrl,children:n.jsx(it,{slot_id:o,fullPageWidth:!0,visibleItems:1,pagination:!0,cardGap:0,children:t.map((r,i)=>{const c={...r,main:{...r.main,title:{...r.main.title,section:s?r.main.title.home:r.main.title.section}}};return E.createElement(Mt,{...c,key:i,titleGradient:!0,paths:e.paths})})})})},Tn=e=>{const t={};for(const a in e)a.startsWith("--")&&(t[a]=e[a]);return t},ht={headerSection:"_headerSection_1c69w_1",title:"_title_1c69w_11",subtitle:"_subtitle_1c69w_23",newsContent:"_newsContent_1c69w_36",containerCards:"_containerCards_1c69w_44",image:"_image_1c69w_50",blockHeadContainer:"_blockHeadContainer_1c69w_56"},_d=e=>{const{content:t,title:a,isVideo:o}=e;if(!t||t.length===0)return;const s=t[0],r=t.slice(1),i=e.slot_id&&e.slot_id!=="Nota_1";return s&&r&&n.jsxs(ue,{title:a,titleUrl:e.titleUrl,children:[n.jsx("div",{className:ht.headerSection,children:n.jsxs("a",{style:{"--heightImageOverwriteMobile":"200%"},className:ht.image,href:s?.info?.link?.url,target:s?.info?.link?.target,children:[n.jsxs("div",{className:ht.blockHeadContainer,children:[n.jsx("p",{className:ht.title,children:s?.main?.title.home}),s?.main?.subtitle?.rendered&&n.jsx("p",{className:ht.subtitle,children:s?.main?.subtitle?.striped})]}),n.jsx(Se,{preview:s.preview})]})}),n.jsxs("div",{className:ht.containerCards,children:[n.jsx("div",{className:"banner-context",style:{order:1},children:e.banner}),n.jsx("div",{className:ht.newsContent,children:Array.isArray(r)&&r.map((c,d)=>{const l={...c,main:{...c.main,title:{...c.main.title,section:i?c.main.title.home:c.main.title.section}}};return n.jsx("div",{style:{order:d},children:n.jsx(Oe,{...l,isVideo:o,paths:e.paths})},d)})})]})]})},nr={banner:e=>n.jsx(fe,{...e,name:e.slot_id.replace("Home","block")}),readest:e=>n.jsx(mn,{...e}),"Modulo 1x3":e=>n.jsx(ga,{...e}),"Modulo 1x4":e=>n.jsx(Qs,{...e}),"Modulo 1x5":e=>n.jsx(Gs,{...e}),"Destacado noticias":e=>n.jsx(Ds,{...e}),"Destacado full width":e=>n.jsx(_d,{...e}),"Destacado videos":e=>n.jsx(Hs,{...e}),"Carrusel card":e=>n.jsx(Vs,{...e}),"Carrusel story":e=>n.jsx(bd,{...e}),"Carrusel owl":e=>n.jsx(vd,{...e}),"Modulo fotogaleria":e=>n.jsx(Cd,{...e}),"Carrusel opinion":e=>n.jsx(Ws,{...e}),"Modulo 1x3 card":e=>n.jsx(Fs,{...e})};function Ca({component:e,slot_id:t,data:a,banners:o}){if(o)return nr[e]&&n.jsx("div",{className:"home-slot",style:Tn(a),children:nr[e]({...a,banners:o,slot_id:t})})}function Sd({children:e,stylesConfigEntry:t}){return n.jsx("div",{className:"home-slot",style:Tn(t),children:e})}const ar={Diario:e=>{if(!e?.data||e.data.length===0)return;const t=e.data.slice(1);return n.jsx(Bs,{...e.data[0],itemReverseOrder:!0,isLarge:!0,block:t,banners:e.banners,showSuper:e.showSuper,rightOnlyBanner:e.rightOnlyBanner,customSectionCardStyles:e.customSectionCardStyles,customNewsDescriptionStyles:e.customNewsDescriptionStyles,paths:e.paths})},"Diario con imagen":e=>{if(!e?.data||e.data.length===0)return;const t=e.data.slice(1);return n.jsx(Bs,{...e.data[0],itemReverseOrder:!0,isLarge:!0,showSuper:e.showSuper,block:t,banners:e.banners,customSectionCardStyles:e.customSectionCardStyles,customNewsDescriptionStyles:e.customNewsDescriptionStyles,paths:e.paths})},Super:e=>n.jsx(St,{...e.data[0],paths:e.paths}),"3 notas verticales":e=>n.jsx(ql,{content:e.data,customLargeSection:e.customLargeSection,customSlimSection:e.customSlimSection,paths:e.paths}),"3 notas horizontales":e=>n.jsx(Ul,{content:e.data,customLargeSection:e.customLargeSection,customSmallSection:e.customSmallSection,paths:e.paths})},In=({component:e,data:t,banners:a,rightOnlyBanner:o})=>n.jsx("div",{style:Tn(t),children:ar[e]&&ar[e]({...t,rightOnlyBanner:o,banners:a})}),Nd=({slots:e,DYNAMIC_SLOT_SUBINDEXES:t,stylesConfig:a,AutorIcon:o,config:s,banners:r,showTagBySection:i})=>{const c=[],l=t,h=Object.keys(e).length/l;for(let u=1;u<=h;u++)for(let f=1;f<=l;f++){const g="Home_"+u+"_"+f;!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"||c.push(n.jsxs(rs,{show:!!e[g].content?.data,order:(u-1)*l+(f-1),children:[n.jsx(Ca,{component:e[g].blockSass[0].block,banners:r,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:n.jsx(o,{}),paths:s.paths,showTagBySection:i}}),n.jsx(Ze,{children:n.jsx(je,{banners:r,index:"dynamic_"+u+"_"+f})})]},u+"_"+f))}return c},Ed=({mainBlock:e,StylesConfigMain:t,config:a,banners:o})=>{const{PUBLIC_ENV:s}=K();if(s!=="local")return null;const r=e?.news?.data||[],i=(c,d)=>({...e?.news,...t[c],data:r.slice(0,d),paths:a.paths});return n.jsxs(n.Fragment,{children:[n.jsx(In,{component:"Super",data:i("Super",1),banners:o}),n.jsx(Ze,{children:n.jsx(je,{banners:o,index:1})}),n.jsx(In,{component:"3 notas verticales",data:i("3 notas verticales",3),banners:o}),n.jsx(Ze,{children:n.jsx(je,{banners:o,index:1})}),n.jsx(In,{component:"3 notas horizontales",data:i("3 notas horizontales",3),banners:o}),n.jsx(Ze,{children:n.jsx(je,{banners:o,index:1})})]})},Td=e=>{const{config:t,hascontent:a}=e,o=t.articlepreview,s=[nt.videoEmbedded,nt.videoYouTube,nt.iframe];return!!(o===nt.fotoGaleria&&a?.hasgalleryimages||s.includes(o))},Id=async e=>{const{custom_complement:t,ranking:a=[],banners:o,autor:s=[],news:r=[],newsRelatedResponses:i=[],newsRelatedListResponses:c=[],itemList:d=[],socials:l,getVideos:h}=e,u=e.slug==="liveblogs",{SHOW_NEWS_MORE_NEWS:f,SHOW_NEWS_RELATED_NEWS:g}=K();if(!(!r||!r[0]))return n.jsx(n.Fragment,{children:n.jsxs(Hl,{className:wa.contentLayout2,children:[n.jsx(Fl,{option:e.slug,news:r,paths:e.paths,headerSectionStyles:e.headerSectionStyles}),n.jsx(je,{banners:o,index:1}),!u&&e.commonServices&&n.jsx(wd,{news:r[0],commonServices:e.commonServices}),n.jsx(zl,{texts:e.texts,paths:e.paths,slug:e.slug,itemList:d,ranking:a,readestCustomStyles:e.readestCustomStyles,bannerTop:n.jsx(fe,{banners:o??[],name:"right_1"}),banner:n.jsx(fe,{banners:o??[],name:"right_2"}),complement:n.jsxs("div",{id:"comentarios",suppressHydrationWarning:!0,children:[s.length>0&&n.jsx(qs,{texts:e.texts,autorIcon:e.autorIcon,autor:s[0],paths:e.paths}),r[0].authors.length>1&&n.jsx(Ls,{news:r[0],autorIcon:e.autorIcon,paths:e.paths,texts:e.texts}),n.jsx("div",{className:wa.tagContent,children:n.jsx(Us,{tags:r[0]?.keywords?.tags,paths:e.paths})}),n.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"2rem"},suppressHydrationWarning:!0,children:[e.showComments&&n.jsx("div",{suppressHydrationWarning:!0,"data-hydrate":"LazyLoader","data-props":encodeURIComponent(JSON.stringify({render:"comment",internalPath:e.internalPath,COMMENTS_VARS:e.COMMENTS_VARS,DATE_CONFIG:e.DATE_CONFIG}))}),n.jsx(Ze,{children:n.jsx(je,{banners:o,index:2})}),g&&n.jsxs(n.Fragment,{children:[n.jsx(Ca,{component:"Carrusel card",banners:[],slot_id:"Nota_1",data:{...e.stylesConfig["Carrusel card"],content:e.relatedNewsList??[],title:e.texts.relatedNewsTitle,titleUrl:void 0}}),n.jsx(Ze,{children:n.jsx(je,{banners:o,index:3})})]}),f&&n.jsxs(n.Fragment,{children:[n.jsx(ue,{title:e.texts.moreNewsTitle,children:n.jsx("div",{suppressHydrationWarning:!0,"data-hydrate":"LazyLoader","data-props":encodeURIComponent(JSON.stringify({render:"more",stylesConfig:e.stylesConfig,section:r[0].info.section?.slug??"",currentNews:r[0]}))})}),n.jsx(Ze,{children:n.jsx(je,{banners:o,index:4})})]}),t&&t()]})]}),children:n.jsxs("section",{style:{"--avatar-content-align-items-desk":e.slug==="liveblogs"?"flex-start":"center"},children:[n.jsx(pd,{texts:e.texts,autorIcon:e.autorIcon,socials:l,news:r[0],banners:o,newsRelatedResponses:i,newsRelatedListResponses:c,itemList:d,slug:e.slug,getVideos:h,noteShare:e.noteShare,paths:e.paths,showHeaderImage:!Td(r[0]),commonServices:e.commonServices}),n.jsx(fe,{banners:o??[],name:"block_3"})]})})]})})},zt={content:"_content_1046n_1",buttonStyled:"_buttonStyled_1046n_9",searchStyled:"_searchStyled_1046n_20",inputStyled:"_inputStyled_1046n_36",inputStyledTest:"_inputStyledTest_1046n_55"},kd=e=>n.jsx("svg",{width:"68",height:"68",viewBox:"0 0 68 68",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:n.jsx("g",{children:n.jsx("path",{d:"M47.8043 46.6003L47.6635 46.7758L47.8232 46.9342L56.4762 55.5171C56.4768 55.5177 56.4774 55.5184 56.478 55.519C56.8524 55.9072 57.0616 56.4256 57.0616 56.965C57.0616 57.5048 56.8521 58.0234 56.4774 58.4117C56.2839 58.6065 56.0539 58.7611 55.8005 58.8667C55.5466 58.9724 55.2743 59.0269 54.9993 59.0269C54.7243 59.0269 54.452 58.9724 54.1981 58.8667C53.9442 58.7609 53.7138 58.6059 53.5201 58.4106L53.5194 58.4099L44.9327 49.8232L44.7743 49.6648L44.5995 49.805C40.4597 53.1252 35.2051 54.7331 29.9162 54.2981C24.6272 53.863 19.706 51.4181 16.1643 47.4661C12.6227 43.514 10.7298 38.3552 10.875 33.0503C11.0201 27.7455 13.1923 22.6979 16.9447 18.9455C20.6972 15.193 25.7448 13.0209 31.0496 12.8757C36.3544 12.7305 41.5133 14.6234 45.4653 18.165C49.4174 21.7067 51.8623 26.6279 52.2974 31.9169C52.7324 37.2058 51.1245 42.4604 47.8043 46.6003ZM22.4528 47.4552C25.1799 49.2774 28.3861 50.25 31.666 50.25C36.0641 50.25 40.2822 48.5029 43.3921 45.3929C46.5021 42.2829 48.2493 38.0649 48.2493 33.6667C48.2493 30.3868 47.2767 27.1806 45.4545 24.4535C43.6323 21.7264 41.0423 19.6008 38.0121 18.3457C34.9819 17.0905 31.6476 16.7621 28.4307 17.402C25.2139 18.0419 22.259 19.6213 19.9398 21.9405C17.6205 24.2597 16.0411 27.2146 15.4013 30.4314C14.7614 33.6483 15.0898 36.9827 16.345 40.0129C17.6001 43.0431 19.7256 45.633 22.4528 47.4552Z",fill:"white",stroke:"white",strokeWidth:"0.5"})})}),xd=e=>n.jsx("form",{className:zt.content,style:{height:e.hasContent?"218px":"50vh"},children:n.jsxs("div",{className:`${zt.inputStyled} sass-buscar-form`,children:[n.jsx("input",{className:zt.inputStyledTest,defaultValue:e.query,name:"query",placeholder:e.texts.searchKeyWord+"..."}),n.jsx("button",{className:zt.buttonStyled,type:"submit",children:n.jsx(kd,{className:zt.searchStyled})})]})}),_a={content:"_content_io3tv_1",newsContentSection:"_newsContentSection_io3tv_5",itemContent:"_itemContent_io3tv_10"},Ud=e=>{const{data:t,option:a,autor:o,page:s,banners:r,pathname:i,ranking:c,currentPage:d,slug:l,texts:h={}}=e,u=[5,10,15],f={5:1,10:2,15:3};switch(a){case"op1":return n.jsx(n.Fragment,{children:n.jsxs(ia,{children:[n.jsx(Ns,{autor:o[0],autorIcon:e.autorIcon}),n.jsx(la,{paths:e.paths,ranking:c,readestTitle:h.readestTitle??"",bannerTop:n.jsx(fe,{banners:r??[],name:"right_1"}),banner:n.jsx(fe,{banners:r??[],name:"right_2"}),children:n.jsx("section",{className:_a.content,children:t.length>0?n.jsx(yn,{className:[_a.newsContentSection,"padding-0"].join(" "),paginatorComponent:n.jsx(Ot,{texts:h,pathname:i,query:"",currentPage:d,maxPages:e.paginationLimit,showNext:!(t.length<e.newsListLimit)}),children:Array.isArray(t)&&t?.map((g,m)=>n.jsxs(E.Fragment,{children:[u.includes(m+1)&&n.jsx("div",{className:_a.itemContent+" banner-context",children:n.jsx(fe,{banners:r??[],name:`block_2_${f[m+1]}`})}),n.jsx(Nn,{autorIcon:e.autorIcon,item:g,option:l,paths:e.paths},m)]},m))}):n.jsx("div",{style:{width:"100%",display:"flex",flexDirection:"column",justifyContent:"center",gap:"2rem"},children:n.jsx("p",{style:{fontWeight:"var(--fw)",width:"100%",fontSize:"18px",lineHeight:"26px",textAlign:"center"},children:h.autorNotResultMessage})})})})]})});case"op2":return n.jsx(n.Fragment,{children:n.jsxs(ia,{children:[n.jsx(Es,{autor:o[0],autorIcon:e.autorIcon}),Array.isArray(t)?n.jsxs(n.Fragment,{children:[n.jsx(ga,{content:t,title:"",hasLines:!0,banners:e.banners,bannerPositionIndex:[1,6,12],paths:e.paths,slot_id:"block_2"}),n.jsx(Ot,{texts:h,query:"",pathname:i,maxPages:Number(e.paginationLimit),currentPage:Number(s),showNext:!((t.length??0)<Number(e.newsListLimit))})]}):n.jsx("div",{style:{width:"100%",display:"flex",flexDirection:"column",justifyContent:"center",gap:"2rem"},children:n.jsx("p",{style:{fontWeight:"var(--fw)",width:"100%",fontSize:"18px",lineHeight:"26px",textAlign:"center"},children:h.autorNotResultMessage})})]})});default:return n.jsx(n.Fragment,{})}},or={content:"_content_pq89v_1",videoContent:"_videoContent_pq89v_9"},Ft={container:"_container_1xr2t_1",playStyled:"_playStyled_1xr2t_6",imageStyled:"_imageStyled_1xr2t_13",longer:"_longer_1xr2t_26",contentNews:"_contentNews_1xr2t_31",tagContent:"_tagContent_1xr2t_51",tag:"_tag_1xr2t_51",titular:"_titular_1xr2t_68",small:"_small_1xr2t_81",figure:"_figure_1xr2t_87",backDrop:"_backDrop_1xr2t_92",backDropAux:"_backDropAux_1xr2t_100"},sr=async e=>{const{size:t="longer",video:a}=e,o=a.main.image.sizes[0]?.url??"";return n.jsx("figure",{className:Ft.figure,children:n.jsxs("span",{className:Ft.backdrop,children:[n.jsx("span",{className:Ft.backDropAux}),n.jsx(O,{href:a.info.link.url,target:a.info.link.target,children:n.jsxs("div",{children:[a.main.image.sizes.map(async(s,r)=>s.width>=580?n.jsx("source",{media:"(width >=900px)",srcSet:await de(s.url)},r):n.jsx("source",{media:"(width <900px)",srcSet:await de(s.url)},r)),n.jsx("img",{fetchPriority:"low",loading:"lazy",className:[Ft.imageStyled,Ft[t]].join(" "),alt:"",src:o?await de(o):""})]})})]})})},qd=e=>{const{videos:t}=e;return n.jsx("div",{className:or.content,children:n.jsx(bt,{children:n.jsx(ue,{title:"Videos",isTitle:!0,children:n.jsxs("div",{className:or.videoContent,children:[n.jsx(sr,{video:t[0]}),n.jsx("div",{style:{display:"flex",flexDirection:"column"},children:t.slice(1).map((a,o)=>n.jsx(sr,{size:"small",video:a},`video-small-${o}`))})]})})})})},ut={content:"_content_ruy5q_1",videoContent:"_videoContent_ruy5q_9",articleSection:"_articleSection_ruy5q_21",contentLatout:"_contentLatout_ruy5q_31",title:"_title_ruy5q_36",article:"_article_ruy5q_21",correspondent:"_correspondent_ruy5q_64"},rr={container:"_container_1rq2h_1",playStyled:"_playStyled_1rq2h_9"},Ld=e=>{const{video:t}=e,a=fn();return n.jsx(O,{href:t.info.link.url?t.info.link.url:void 0,target:t.info.link.target,children:n.jsxs("section",{className:rr.container,children:[n.jsx(Se,{isLarge:!0,preview:{sizes:t.main.image.sizes,description:t.main.description}}),n.jsx(a,{className:rr.playStyled})]})})},Bd=e=>{const t=()=>e?.video.main.author?`${e?.video.main.author} - ${ke(e.video.info.date.created)}`:e?.video.main.author;return n.jsx("div",{className:ut.content,children:n.jsx(bt,{className:ut.contentLatout,children:n.jsx(ue,{title:"Videos",isTitle:!0,children:n.jsxs("div",{className:ut.videoContent,children:[n.jsx(Ld,{video:e.video}),n.jsxs("div",{className:ut.articleSection,children:[n.jsx(O,{className:ut.title,href:e.video.info.link.url,target:e.video.info.link.target,children:e.video.main.title}),n.jsx("p",{className:ut.article,children:xe(e.video.main.description)}),n.jsx("p",{className:ut.correspondent,children:t()})]})]})})})})},Pd=e=>{switch(e.option){case"op1":return n.jsx(qd,{videos:e.data});case"op2":return n.jsx(Bd,{video:e.data[0]});default:return n.jsx(n.Fragment,{})}};function Od({containerId:e,containerId2:t}){return E.useEffect(()=>{try{let a=function(){const h=window.twttr;h?.widgets?h.widgets.load(o):l<10?(l++,requestAnimationFrame(a)):console.warn("No se pudo cargar widgets de Twitter")};const o=document.getElementById(e),s=document.getElementById(t);if(!o&&!s)return;const r=o?.querySelectorAll("script[src]")??[],i=s?.querySelectorAll("script[src]")??[];[...r,...i].forEach(h=>{const u=document.createElement("script");Array.from(h.attributes).forEach(f=>{u.setAttribute(f.name,f.value)}),h.replaceWith(u)});const d=document.querySelectorAll('script[src*="platform.twitter.com/widgets.js"]');if(d)for(let h=0;h<d.length;h++)d[h]?.remove();let l=0;if(document.querySelector('script[src*="platform.twitter.com/widgets.js"]'))a();else{const h=document.createElement("script");h.src="https://platform.twitter.com/widgets.js",h.async=!0,h.onload=a,document.body.appendChild(h)}}catch(a){console.warn("Error al procesar embeds de Twitter",a)}},[e]),null}const Dd=e=>{const{isVideo:t=!1,isLarge:a=!1,hasShadow:o=!1,BackDropAuxHeigthMobile:s}=e,r=na(),i=E.useMemo(()=>e?.preview?.sizes||[],[e?.preview?.sizes]);if(!i.length||!i[0]?.url||i[0]?.url==="")return n.jsx("div",{className:se.imagePlaceholder});const{PUBLIC_API_HOST:c,PUBLIC_ENV:d}=K();return n.jsx("figure",{className:se.figure,children:n.jsxs("span",{className:se.backdrop,children:[n.jsx("span",{className:se.backdropAux,style:{height:s||"56.25%"}}),n.jsxs("picture",{children:[n.jsx("img",{fetchPriority:"low",loading:"lazy",className:se.imageStyled,alt:e.preview?.description||"",src:(d==="local"?c:"")+i[0]?.url,style:{boxShadow:o?"0px 4px 8px 0px #00000033":"0px"}}),t&&n.jsxs(n.Fragment,{children:[n.jsx("div",{className:se.boxPlayIcon,style:{height:a?"40%":"72px"}}),n.jsx(r,{className:se.playStyled,style:{width:a?"3rem":"27px",height:a?"3rem":"27px",marginBottom:a?"18px":".5rem",marginLeft:a?"30px":".5rem"}})]})]})]})})},Md=e=>n.jsx("svg",{width:"41",height:"33",viewBox:"0 0 41 33",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:n.jsx("path",{d:"M17.9576 21.2985C16.8233 21.2985 15.9277 22.194 15.9277 23.3283C15.9277 24.4627 16.8233 25.3582 17.9576 25.3582C19.0919 25.3582 19.9874 24.4627 19.9874 23.3283C19.9874 22.194 19.0919 21.2985 17.9576 21.2985ZM17.9576 19.2686C19.0919 19.2686 19.9874 18.3731 19.9874 17.2388C19.9874 16.1045 19.0919 15.2089 17.9576 15.2089C16.8233 15.2089 15.9277 16.1045 15.9277 17.2388C15.9277 18.3731 16.8233 19.2686 17.9576 19.2686ZM17.9576 13.1791C19.0919 13.1791 19.9874 12.2836 19.9874 11.1492C19.9874 10.0149 19.0919 9.11938 17.9576 9.11938C16.8233 9.11938 15.9277 10.0149 15.9277 11.1492C15.9277 12.2836 16.8233 13.1791 17.9576 13.1791Z",fill:"#7B888A"})}),ir={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},cr=6,jd=({section:e,currentNews:t,banner:a,isVisible:o=!1,stylesConfig:s})=>{const[r,i]=E.useState({data:Array.from({length:cr},()=>ir)}),[c,d]=E.useState(!1),l=E.useCallback(async()=>{if(!(c||!t?.info?.link?.internal)){d(!0);try{const h=new URLSearchParams({section:e,currentNewsLink:t.info.link.internal}),u=await fetch(`/api/get-more-news?${h}`);if(!u.ok)throw i(void 0),new Error(`HTTP error! status: ${u.status}`);const f=await u.json();i({...f,data:f.data.slice(0,cr)})}catch(h){console.error("[/api/get-more-news] Error:",h.message),i(void 0)}}},[e,t.info.link.internal,c]);return E.useEffect(()=>{o&&l()},[o,r,l]),!r?.data||r.data.length===0?null:n.jsx($d,{news:r.data,title:"Más Noticias",...s["Modulo 1x3 Client"]??s["Modulo 1x3"],hasLines:!0,showSubtitle:!0,rounded:!0,banner:a,isVisible:o})},$d=e=>{const{news:t,hasLines:a=!1}=e,o=s=>a&&(s+1)%3!==0?ya.contentSeparator:"";return n.jsx("div",{className:ya.newsContent,style:{gap:a?"30px":"20px","--gridTemplateModlule":a?"repeat(auto-fit, 343px);":"repeat(auto-fit, 380px);"},children:t.map((s,r)=>{const{main:i,authors:c,info:d,preview:l,isVideo:h=!1,config:u,overImage:f="default",isTitle:g=!1,isLarge:m=!1}=s;return n.jsx("div",{className:o(r),style:{order:r},children:n.jsxs("section",{className:Dt.content,children:[n.jsx(O,{title:i?.title?.section,href:d?.link?.url??"invalidUrl","aria-label":i?.title?.section??"nota",target:d?.link?.target,children:n.jsx(Dd,{isVisible:e.isVisible,preview:l,rounded:e.rounded,isVideo:h,isLarge:m,getImageUrl:e.getImageUrl})}),n.jsx("div",{className:Dt.newsDescription,children:n.jsx(Qd,{main:i,authors:c,info:d,preview:l,share:e.share,config:u,overImage:f,isTitle:g,paths:s.paths,isVisible:e.isVisible})})]})},r)})})},Qd=e=>{const{share:t=!1,cutSubtitle:a=!0}=e,s=(()=>{if(!e?.authors||e.authors.length===0)return"";const r=e.authors[0],i=ke(e.info?.date?.modified);return r&&e?.config?.showtime&&e.config?.showauthor?`${r.fullname} - ${i}`:r&&e.config?.showauthor?r.fullname:e?.config?.showtime?i:""})();return n.jsxs("div",{className:ae.boxInformation,children:[t&&n.jsx(Md,{className:ae.dotStyles}),e?.info?.section?.url&&n.jsxs("div",{className:ae.sectionDescriptionContainer,children:[n.jsx(O,{className:ae.sectionDescription,href:e.info.section.url??"invalidUrl",children:e.info.section.name}),e?.main?.uppertitle&&n.jsx("p",{className:ae.uppertitle,children:e.main.uppertitle})]}),n.jsx("h2",{className:ae.articule,children:n.jsx(O,{className:ae.linkStyled,style:{"--isLink":e?.info?.link?.url?"underline":"none"},"aria-label":e.main?.title?.section??"nota",href:e?.info?.link?.url,target:e?.info?.link?.target,children:e.main?.title?.section})}),e.config?.showsubtitle&&e.main?.subtitle?.striped&&n.jsx("p",{className:ae.description,style:{"--fontSizeSubTitle":e.fontSizeSubTitle,"--lineHeightSubTitle":e.lineHeightSubTitle,"--colorSubTitle":e.colorSubTitle},children:a?xe(e.main.subtitle.striped):e.main.subtitle.striped}),(e?.config?.showtime||e.config?.showauthor)&&s&&n.jsx(n.Fragment,{children:e.authors?.[0]?.internaluser?n.jsx(O,{className:ae.correspondentLink,href:`/autor/${e.authors[0].name}`,children:s}):n.jsx("div",{className:ae.correspondent,children:s})})]})},Gd=({user:e,handleLogout:t,message:a})=>{const o=()=>{const r=document.querySelector(".user-actions-options");r&&r.classList.toggle("show")},s=e.firstname??"Usuario";return n.jsx("div",{className:"comment-item",children:n.jsxs("div",{style:{display:"flex",gap:"14px"},children:[e&&e.picture&&e.picture!==""?n.jsx("img",{className:"comment-avatar-img",src:e.picture,alt:e.username}):n.jsx("div",{className:"comment-avatar",children:s.charAt(0).toUpperCase()}),n.jsxs("div",{style:{flex:1},children:[n.jsxs("div",{className:"comment-header",children:[n.jsxs("span",{className:"comment-username user-welcome",children:["Hola ",s,"!"]}),n.jsx("div",{className:"user-actions-options",children:n.jsx("button",{onClick:()=>{t()},children:"Cerrar Sesion"})}),n.jsx("button",{className:"user-actions-span",onClick:o,children:n.jsx(Cn,{width:13,height:13,fill:"black"})})]}),n.jsx("p",{className:"comment-text",children:a})]})]})})},he={overlay:"_overlay_qj491_3",popup:"_popup_qj491_17",title:"_title_qj491_40",optionsContainer:"_optionsContainer_qj491_52",option:"_option_qj491_52",radioInput:"_radioInput_qj491_66",radioCustom:"_radioCustom_qj491_70",optionLabel:"_optionLabel_qj491_97",buttons:"_buttons_qj491_110",cancelButton:"_cancelButton_qj491_117",closeButton:"_closeButton_qj491_118",buttonAlone:"_buttonAlone_qj491_137",reportButton:"_reportButton_qj491_143",successContainer:"_successContainer_qj491_163",thumbsUp:"_thumbsUp_qj491_171",successMessage:"_successMessage_qj491_177",errorMessage:"_errorMessage_qj491_218",loadingContainer:"_loadingContainer_qj491_231"},lr=async(e,t)=>{if(!e)return!1;const{CAPTCHA_PROJECT:a,CAPTCHA_KEY_V2:o,COMMENTS_CAPTCHA_API_KEY:s}=t;try{const r=a,i=o,l=await(await fetch(`https://recaptchaenterprise.googleapis.com/v1/projects/${r}/assessments?key=${s}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({event:{token:e,siteKey:i}})})).json();return console.log("reCAPTCHA Enterprise verification result:",l),l.tokenProperties?.valid===!0}catch(r){return console.error("Error verificando reCAPTCHA Enterprise:",r),!1}};async function Hd({publication:e,username:t,id:a,type:o,baseUrl:s,captchaToken:r,apiToken:i,COMMENTS_VARS:c}){if(!e||!t||!a||!o||!r)throw new Error("Faltan parámetros requeridos: publication, username, id, type, captchaToken");if(typeof e!="string"||typeof t!="string"||typeof a!="string"||typeof o!="string"||typeof r!="string")throw new Error("Todos los parámetros deben ser strings");if(!await lr(r,c))throw new Error("Token de captcha inválido");if(!i)throw new Error("Falta el token de API del CMS");const d=`${s}/system/modules/com.tfsla.diario.base/templates/hit/5.0/1/newcomments/report`,l=encodeURIComponent(o),h=new URLSearchParams({publication:e,username:t,id:a,type:l}),u=`${d}?${h.toString()}`;try{console.log("Reporting comment:",{publication:e,username:t,id:a,type:o,encodedType:l,url:u});const f=await oe.post(u,null,{headers:{"User-Agent":"Bluestack","x-api-token":i,"Content-Type":"application/json"}});if(console.log("Report response:",f.data),f.status===200||f.status===201)return{type:"success",message:"Comentario reportado exitosamente",status:f.status,data:f.data};throw new Error(`Respuesta inesperada del servidor: ${f.status}`)}catch(f){if(console.error("Error reporting comment:",f),oe.isAxiosError(f)){const g=f.response?.status,m=f.response?.data;throw g===400?new Error("Datos inválidos para el reporte"):g===401?new Error("Token de API inválido"):g===403?new Error("Acceso denegado para reportar comentario"):g===404?new Error("Comentario no encontrado"):g===409?new Error("El comentario ya fue reportado por este usuario"):g===500?new Error("Error interno del servidor CMS"):new Error(m?.error||m?.message||`Error HTTP ${g}: No se pudo reportar el comentario`)}throw f}}const Me={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 zd(e){return Me[e]}const ft=300,Ye={username:"anonimo",firstname:"Usuario",lastname:"Anonimo"};function Fd(e){const t=e.split(" ");if(t.length!==3)return e;const[a,o,s]=t,r=o.charAt(0).toUpperCase()+o.slice(1).toLowerCase();return`${a} ${r} ${s}`}const Sa=(e,t)=>{if(!e||!e.current)return{boolean:!1,text:""};const a=e.current?.value||"",o=a.length>ft,{PUBLIC_ENV:s}=K(),r=s==="local",i=a.trim()!==""&&(r||t!=="")&&!o,c=o?`No debes exceder el limite de ${ft} caracteres.`:"Debes completar todos los campos para comentar.";return{boolean:i,text:c}},dr=e=>{const t=e.cookie.split("; ").find(a=>a.startsWith("reported="));if(!t)return[];try{return JSON.parse(decodeURIComponent(t.split("=")[1]??""))}catch{return[]}},Vd=(e,t)=>{const a=dr(e);a.includes(t)||(a.push(t),e.cookie=`reported=${encodeURIComponent(JSON.stringify(a))}; path=/; max-age=${3600*24*1}`)};function Wd(e){const[t,a]=e.split("@");if(!t||!a)return e;let o="";t.length<=2?o=t[0]+"*":o=t[0]+"*".repeat(t.length-2)+t[t.length-1];const s=a.lastIndexOf(".");if(s===-1)return`${o}@${a}`;const r=a.slice(0,s),i=a.slice(s);let c="";return r.length<=2?c=r[0]+"*":c=r[0]+"*".repeat(r.length-2)+r[r.length-1],`${o}@${c}${i}`}var kn={exports:{}},xn={exports:{}},te={};var hr;function Yd(){if(hr)return te;hr=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,a=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,r=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,u=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,g=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,A=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,S=e?Symbol.for("react.scope"):60119;function _(v){if(typeof v=="object"&&v!==null){var k=v.$$typeof;switch(k){case t:switch(v=v.type,v){case d:case l:case o:case r:case s:case u:return v;default:switch(v=v&&v.$$typeof,v){case c:case h:case m:case g:case i:return v;default:return k}}case a:return k}}}function T(v){return _(v)===l}return te.AsyncMode=d,te.ConcurrentMode=l,te.ContextConsumer=c,te.ContextProvider=i,te.Element=t,te.ForwardRef=h,te.Fragment=o,te.Lazy=m,te.Memo=g,te.Portal=a,te.Profiler=r,te.StrictMode=s,te.Suspense=u,te.isAsyncMode=function(v){return T(v)||_(v)===d},te.isConcurrentMode=T,te.isContextConsumer=function(v){return _(v)===c},te.isContextProvider=function(v){return _(v)===i},te.isElement=function(v){return typeof v=="object"&&v!==null&&v.$$typeof===t},te.isForwardRef=function(v){return _(v)===h},te.isFragment=function(v){return _(v)===o},te.isLazy=function(v){return _(v)===m},te.isMemo=function(v){return _(v)===g},te.isPortal=function(v){return _(v)===a},te.isProfiler=function(v){return _(v)===r},te.isStrictMode=function(v){return _(v)===s},te.isSuspense=function(v){return _(v)===u},te.isValidElementType=function(v){return typeof v=="string"||typeof v=="function"||v===o||v===l||v===r||v===s||v===u||v===f||typeof v=="object"&&v!==null&&(v.$$typeof===m||v.$$typeof===g||v.$$typeof===i||v.$$typeof===c||v.$$typeof===h||v.$$typeof===A||v.$$typeof===b||v.$$typeof===S||v.$$typeof===p)},te.typeOf=_,te}var ne={};var ur;function Kd(){return ur||(ur=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,a=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,r=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,u=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,g=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,A=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,S=e?Symbol.for("react.scope"):60119;function _(P){return typeof P=="string"||typeof P=="function"||P===o||P===l||P===r||P===s||P===u||P===f||typeof P=="object"&&P!==null&&(P.$$typeof===m||P.$$typeof===g||P.$$typeof===i||P.$$typeof===c||P.$$typeof===h||P.$$typeof===A||P.$$typeof===b||P.$$typeof===S||P.$$typeof===p)}function T(P){if(typeof P=="object"&&P!==null){var ye=P.$$typeof;switch(ye){case t:var On=P.type;switch(On){case d:case l:case o:case r:case s:case u:return On;default:var Br=On&&On.$$typeof;switch(Br){case c:case h:case m:case g:case i:return Br;default:return ye}}case a:return ye}}}var v=d,k=l,L=c,G=i,X=t,H=h,M=o,ee=m,ie=g,$=a,q=r,I=s,j=u,U=!1;function F(P){return U||(U=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),y(P)||T(P)===d}function y(P){return T(P)===l}function N(P){return T(P)===c}function B(P){return T(P)===i}function Q(P){return typeof P=="object"&&P!==null&&P.$$typeof===t}function D(P){return T(P)===h}function z(P){return T(P)===o}function V(P){return T(P)===m}function W(P){return T(P)===g}function Z(P){return T(P)===a}function R(P){return T(P)===r}function Y(P){return T(P)===s}function re(P){return T(P)===u}ne.AsyncMode=v,ne.ConcurrentMode=k,ne.ContextConsumer=L,ne.ContextProvider=G,ne.Element=X,ne.ForwardRef=H,ne.Fragment=M,ne.Lazy=ee,ne.Memo=ie,ne.Portal=$,ne.Profiler=q,ne.StrictMode=I,ne.Suspense=j,ne.isAsyncMode=F,ne.isConcurrentMode=y,ne.isContextConsumer=N,ne.isContextProvider=B,ne.isElement=Q,ne.isForwardRef=D,ne.isFragment=z,ne.isLazy=V,ne.isMemo=W,ne.isPortal=Z,ne.isProfiler=R,ne.isStrictMode=Y,ne.isSuspense=re,ne.isValidElementType=_,ne.typeOf=T})()),ne}var fr;function Na(){return fr||(fr=1,process.env.NODE_ENV==="production"?xn.exports=Yd():xn.exports=Kd()),xn.exports}var Ea,mr;function Jd(){if(mr)return Ea;mr=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;function o(r){if(r==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(r)}function s(){try{if(!Object.assign)return!1;var r=new String("abc");if(r[5]="de",Object.getOwnPropertyNames(r)[0]==="5")return!1;for(var i={},c=0;c<10;c++)i["_"+String.fromCharCode(c)]=c;var d=Object.getOwnPropertyNames(i).map(function(h){return i[h]});if(d.join("")!=="0123456789")return!1;var l={};return"abcdefghijklmnopqrst".split("").forEach(function(h){l[h]=h}),Object.keys(Object.assign({},l)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Ea=s()?Object.assign:function(r,i){for(var c,d=o(r),l,h=1;h<arguments.length;h++){c=Object(arguments[h]);for(var u in c)t.call(c,u)&&(d[u]=c[u]);if(e){l=e(c);for(var f=0;f<l.length;f++)a.call(c,l[f])&&(d[l[f]]=c[l[f]])}}return d},Ea}var Ta,gr;function Ia(){if(gr)return Ta;gr=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Ta=e,Ta}var ka,pr;function Ar(){return pr||(pr=1,ka=Function.call.bind(Object.prototype.hasOwnProperty)),ka}var xa,yr;function Zd(){if(yr)return xa;yr=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Ia(),a={},o=Ar();e=function(r){var i="Warning: "+r;typeof console<"u"&&console.error(i);try{throw new Error(i)}catch{}}}function s(r,i,c,d,l){if(process.env.NODE_ENV!=="production"){for(var h in r)if(o(r,h)){var u;try{if(typeof r[h]!="function"){var f=Error((d||"React class")+": "+c+" type `"+h+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof r[h]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw f.name="Invariant Violation",f}u=r[h](i,h,d,c,null,t)}catch(m){u=m}if(u&&!(u instanceof Error)&&e((d||"React class")+": type specification of "+c+" `"+h+"` 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=l?l():"";e("Failed "+c+" type: "+u.message+(g??""))}}}}return s.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(a={})},xa=s,xa}var Ua,wr;function Xd(){if(wr)return Ua;wr=1;var e=Na(),t=Jd(),a=Ia(),o=Ar(),s=Zd(),r=function(){};process.env.NODE_ENV!=="production"&&(r=function(c){var d="Warning: "+c;typeof console<"u"&&console.error(d);try{throw new Error(d)}catch{}});function i(){return null}return Ua=function(c,d){var l=typeof Symbol=="function"&&Symbol.iterator,h="@@iterator";function u(y){var N=y&&(l&&y[l]||y[h]);if(typeof N=="function")return N}var f="<<anonymous>>",g={array:b("array"),bigint:b("bigint"),bool:b("boolean"),func:b("function"),number:b("number"),object:b("object"),string:b("string"),symbol:b("symbol"),any:S(),arrayOf:_,element:T(),elementType:v(),instanceOf:k,node:H(),objectOf:G,oneOf:L,oneOfType:X,shape:ee,exact:ie};function m(y,N){return y===N?y!==0||1/y===1/N:y!==y&&N!==N}function p(y,N){this.message=y,this.data=N&&typeof N=="object"?N:{},this.stack=""}p.prototype=Error.prototype;function A(y){if(process.env.NODE_ENV!=="production")var N={},B=0;function Q(z,V,W,Z,R,Y,re){if(Z=Z||f,Y=Y||W,re!==a){if(d){var P=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 P.name="Invariant Violation",P}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var ye=Z+":"+W;!N[ye]&&B<3&&(r("You are manually calling a React.PropTypes validation function for the `"+Y+"` prop on `"+Z+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),N[ye]=!0,B++)}}return V[W]==null?z?V[W]===null?new p("The "+R+" `"+Y+"` is marked as required "+("in `"+Z+"`, but its value is `null`.")):new p("The "+R+" `"+Y+"` is marked as required in "+("`"+Z+"`, but its value is `undefined`.")):null:y(V,W,Z,R,Y)}var D=Q.bind(null,!1);return D.isRequired=Q.bind(null,!0),D}function b(y){function N(B,Q,D,z,V,W){var Z=B[Q],R=I(Z);if(R!==y){var Y=j(Z);return new p("Invalid "+z+" `"+V+"` of type "+("`"+Y+"` supplied to `"+D+"`, expected ")+("`"+y+"`."),{expectedType:y})}return null}return A(N)}function S(){return A(i)}function _(y){function N(B,Q,D,z,V){if(typeof y!="function")return new p("Property `"+V+"` of component `"+D+"` has invalid PropType notation inside arrayOf.");var W=B[Q];if(!Array.isArray(W)){var Z=I(W);return new p("Invalid "+z+" `"+V+"` of type "+("`"+Z+"` supplied to `"+D+"`, expected an array."))}for(var R=0;R<W.length;R++){var Y=y(W,R,D,z,V+"["+R+"]",a);if(Y instanceof Error)return Y}return null}return A(N)}function T(){function y(N,B,Q,D,z){var V=N[B];if(!c(V)){var W=I(V);return new p("Invalid "+D+" `"+z+"` of type "+("`"+W+"` supplied to `"+Q+"`, expected a single ReactElement."))}return null}return A(y)}function v(){function y(N,B,Q,D,z){var V=N[B];if(!e.isValidElementType(V)){var W=I(V);return new p("Invalid "+D+" `"+z+"` of type "+("`"+W+"` supplied to `"+Q+"`, expected a single ReactElement type."))}return null}return A(y)}function k(y){function N(B,Q,D,z,V){if(!(B[Q]instanceof y)){var W=y.name||f,Z=F(B[Q]);return new p("Invalid "+z+" `"+V+"` of type "+("`"+Z+"` supplied to `"+D+"`, expected ")+("instance of `"+W+"`."))}return null}return A(N)}function L(y){if(!Array.isArray(y))return process.env.NODE_ENV!=="production"&&(arguments.length>1?r("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):r("Invalid argument supplied to oneOf, expected an array.")),i;function N(B,Q,D,z,V){for(var W=B[Q],Z=0;Z<y.length;Z++)if(m(W,y[Z]))return null;var R=JSON.stringify(y,function(re,P){var ye=j(P);return ye==="symbol"?String(P):P});return new p("Invalid "+z+" `"+V+"` of value `"+String(W)+"` "+("supplied to `"+D+"`, expected one of "+R+"."))}return A(N)}function G(y){function N(B,Q,D,z,V){if(typeof y!="function")return new p("Property `"+V+"` of component `"+D+"` has invalid PropType notation inside objectOf.");var W=B[Q],Z=I(W);if(Z!=="object")return new p("Invalid "+z+" `"+V+"` of type "+("`"+Z+"` supplied to `"+D+"`, expected an object."));for(var R in W)if(o(W,R)){var Y=y(W,R,D,z,V+"."+R,a);if(Y instanceof Error)return Y}return null}return A(N)}function X(y){if(!Array.isArray(y))return process.env.NODE_ENV!=="production"&&r("Invalid argument supplied to oneOfType, expected an instance of array."),i;for(var N=0;N<y.length;N++){var B=y[N];if(typeof B!="function")return r("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+U(B)+" at index "+N+"."),i}function Q(D,z,V,W,Z){for(var R=[],Y=0;Y<y.length;Y++){var re=y[Y],P=re(D,z,V,W,Z,a);if(P==null)return null;P.data&&o(P.data,"expectedType")&&R.push(P.data.expectedType)}var ye=R.length>0?", expected one of type ["+R.join(", ")+"]":"";return new p("Invalid "+W+" `"+Z+"` supplied to "+("`"+V+"`"+ye+"."))}return A(Q)}function H(){function y(N,B,Q,D,z){return $(N[B])?null:new p("Invalid "+D+" `"+z+"` supplied to "+("`"+Q+"`, expected a ReactNode."))}return A(y)}function M(y,N,B,Q,D){return new p((y||"React class")+": "+N+" type `"+B+"."+Q+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+D+"`.")}function ee(y){function N(B,Q,D,z,V){var W=B[Q],Z=I(W);if(Z!=="object")return new p("Invalid "+z+" `"+V+"` of type `"+Z+"` "+("supplied to `"+D+"`, expected `object`."));for(var R in y){var Y=y[R];if(typeof Y!="function")return M(D,z,V,R,j(Y));var re=Y(W,R,D,z,V+"."+R,a);if(re)return re}return null}return A(N)}function ie(y){function N(B,Q,D,z,V){var W=B[Q],Z=I(W);if(Z!=="object")return new p("Invalid "+z+" `"+V+"` of type `"+Z+"` "+("supplied to `"+D+"`, expected `object`."));var R=t({},B[Q],y);for(var Y in R){var re=y[Y];if(o(y,Y)&&typeof re!="function")return M(D,z,V,Y,j(re));if(!re)return new p("Invalid "+z+" `"+V+"` key `"+Y+"` supplied to `"+D+"`.\nBad object: "+JSON.stringify(B[Q],null," ")+`
160
+ `}}catch(b){console.error("insertVideos error for",g,b),A=""}else A=f;o=u,a+=A,s.lastIndex=u}return a+=e.slice(o),a=fd(a),a}async function wd(e){const{news:t,banners:a,newsRelatedResponses:o,newsRelatedListResponses:s,slug:r,itemList:i,socials:c,getVideos:d,commonServices:l}=e;let h=t?.body?.rendered??"";h=h.replace(/&nbsp;/g,""),h=gd(h,a),h=pd(h),h=await md(h),h=await Ad(h,e.texts,o),h=await yd(h,d),h=hd(h),h=ud(h);const u=t.main.sources??[],f=t.config.articlepreview===nt.fotoGaleria&&t.hascontent?.hasgalleryimages;return n.jsxs("div",{className:En.content,children:[r!=="liveblogs"&&e.showHeaderImage?f?n.jsx(ba,{commonServices:l,newsformated:t,internal:t.info.link.internal}):n.jsx(Cs,{preview:t.preview}):null,n.jsx(fe,{banners:a,name:"block_1"}),n.jsx("div",{className:En.journalistArticleContent,children:n.jsx(ad,{autorIcon:e.autorIcon,socials:c,news:t,texts:e.texts,noteShare:e.noteShare,paths:e.paths})}),n.jsx(sd,{summary:t.main.summary}),n.jsx("div",{className:En.contentNews,suppressHydrationWarning:!0,id:"content-news-section",dangerouslySetInnerHTML:{__html:h}}),n.jsx(ed,{texts:e.texts,itemList:i,banners:a,slug:r,getVideos:d,newsRelatedListResponses:s??[]}),u.length>0&&n.jsxs("div",{className:En.noteSource,children:[n.jsx(id,{}),n.jsx("p",{children:e.texts.noteSource+(u.length===1?"":"s")+": "+u.map(g=>g.name).join(", ")})]})]})}const bd=e=>{const{content:t,title:a,slot_id:o}=e,s=e.slot_id&&e.slot_id!=="Nota_1";return t&&t.length!==0&&n.jsx(ue,{title:a,titleUrl:e.titleUrl,children:n.jsx(it,{slot_id:o,cardWidth:200,children:t.map((r,i)=>{const c={...r,main:{...r.main,title:{...r.main.title,section:s?r.main.title.home:r.main.title.section}}};return n.jsx(Mt,{...c,titleGradient:!0,paths:e.paths},i)})})})},vd=e=>{const{content:t,title:a,slot_id:o}=e,s=e.slot_id&&e.slot_id!=="Nota_1";return t&&t.length!==0&&n.jsx(ue,{title:a,titleUrl:e.titleUrl,children:n.jsx(it,{slot_id:o,cardWidth:343,cardGap:32,visibleItems:3,children:t.map((r,i)=>{const c={...r,main:{...r.main,title:{...r.main.title,section:s?r.main.title.home:r.main.title.section}}};return n.jsx(Mt,{...c,titleGradient:!0,paths:e.paths},i)})})})},Cd=e=>{const{content:t,title:a,slot_id:o}=e,s=e.slot_id&&e.slot_id!=="Nota_1";return t&&t.length!==0&&n.jsx(ue,{title:a,titleUrl:e.titleUrl,children:n.jsx(it,{slot_id:o,fullPageWidth:!0,visibleItems:1,pagination:!0,cardGap:0,children:t.map((r,i)=>{const c={...r,main:{...r.main,title:{...r.main.title,section:s?r.main.title.home:r.main.title.section}}};return E.createElement(Mt,{...c,key:i,titleGradient:!0,paths:e.paths})})})})},Tn=e=>{const t={};for(const a in e)a.startsWith("--")&&(t[a]=e[a]);return t},ht={headerSection:"_headerSection_1c69w_1",title:"_title_1c69w_11",subtitle:"_subtitle_1c69w_23",newsContent:"_newsContent_1c69w_36",containerCards:"_containerCards_1c69w_44",image:"_image_1c69w_50",blockHeadContainer:"_blockHeadContainer_1c69w_56"},_d=e=>{const{content:t,title:a,isVideo:o}=e;if(!t||t.length===0)return;const s=t[0],r=t.slice(1),i=e.slot_id&&e.slot_id!=="Nota_1";return s&&r&&n.jsxs(ue,{title:a,titleUrl:e.titleUrl,children:[n.jsx("div",{className:ht.headerSection,children:n.jsxs("a",{style:{"--heightImageOverwriteMobile":"200%"},className:ht.image,href:s?.info?.link?.url,target:s?.info?.link?.target,children:[n.jsxs("div",{className:ht.blockHeadContainer,children:[n.jsx("p",{className:ht.title,children:s?.main?.title.home}),s?.main?.subtitle?.rendered&&n.jsx("p",{className:ht.subtitle,children:s?.main?.subtitle?.striped})]}),n.jsx(Se,{preview:s.preview})]})}),n.jsxs("div",{className:ht.containerCards,children:[n.jsx("div",{className:"banner-context",style:{order:1},children:e.banner}),n.jsx("div",{className:ht.newsContent,children:Array.isArray(r)&&r.map((c,d)=>{const l={...c,main:{...c.main,title:{...c.main.title,section:i?c.main.title.home:c.main.title.section}}};return n.jsx("div",{style:{order:d},children:n.jsx(Oe,{...l,isVideo:o,paths:e.paths})},d)})})]})]})},nr={banner:e=>n.jsx(fe,{...e,name:e.slot_id.replace("Home","block")}),readest:e=>n.jsx(mn,{...e}),"Modulo 1x3":e=>n.jsx(ga,{...e}),"Modulo 1x4":e=>n.jsx(Qs,{...e}),"Modulo 1x5":e=>n.jsx(Gs,{...e}),"Destacado noticias":e=>n.jsx(Ds,{...e}),"Destacado full width":e=>n.jsx(_d,{...e}),"Destacado videos":e=>n.jsx(Hs,{...e}),"Carrusel card":e=>n.jsx(Vs,{...e}),"Carrusel story":e=>n.jsx(bd,{...e}),"Carrusel owl":e=>n.jsx(vd,{...e}),"Modulo fotogaleria":e=>n.jsx(Cd,{...e}),"Carrusel opinion":e=>n.jsx(Ws,{...e}),"Modulo 1x3 card":e=>n.jsx(Fs,{...e})};function Ca({component:e,slot_id:t,data:a,banners:o}){if(o)return nr[e]&&n.jsx("div",{className:"home-slot",style:Tn(a),children:nr[e]({...a,banners:o,slot_id:t})})}function Sd({children:e,stylesConfigEntry:t}){return n.jsx("div",{className:"home-slot",style:Tn(t),children:e})}const ar={Diario:e=>{if(!e?.data||e.data.length===0)return;const t=e.data.slice(1);return n.jsx(Bs,{...e.data[0],itemReverseOrder:!0,isLarge:!0,block:t,banners:e.banners,showSuper:e.showSuper,rightOnlyBanner:e.rightOnlyBanner,customSectionCardStyles:e.customSectionCardStyles,customNewsDescriptionStyles:e.customNewsDescriptionStyles,paths:e.paths})},"Diario con imagen":e=>{if(!e?.data||e.data.length===0)return;const t=e.data.slice(1);return n.jsx(Bs,{...e.data[0],itemReverseOrder:!0,isLarge:!0,showSuper:e.showSuper,block:t,banners:e.banners,customSectionCardStyles:e.customSectionCardStyles,customNewsDescriptionStyles:e.customNewsDescriptionStyles,paths:e.paths})},Super:e=>n.jsx(St,{...e.data[0],paths:e.paths}),"3 notas verticales":e=>n.jsx(ql,{content:e.data,customLargeSection:e.customLargeSection,customSlimSection:e.customSlimSection,paths:e.paths}),"3 notas horizontales":e=>n.jsx(Ul,{content:e.data,customLargeSection:e.customLargeSection,customSmallSection:e.customSmallSection,paths:e.paths})},In=({component:e,data:t,banners:a,rightOnlyBanner:o})=>n.jsx("div",{style:Tn(t),children:ar[e]&&ar[e]({...t,rightOnlyBanner:o,banners:a})}),Nd=({slots:e,DYNAMIC_SLOT_SUBINDEXES:t,stylesConfig:a,AutorIcon:o,config:s,banners:r,showTagBySection:i})=>{const c=[],l=t,h=Object.keys(e).length/l;for(let u=1;u<=h;u++)for(let f=1;f<=l;f++){const g="Home_"+u+"_"+f;!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"||c.push(n.jsxs(rs,{show:!!e[g].content?.data,order:(u-1)*l+(f-1),children:[n.jsx(Ca,{component:e[g].blockSass[0].block,banners:r,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:n.jsx(o,{}),paths:s.paths,showTagBySection:i}}),n.jsx(Ze,{children:n.jsx(je,{banners:r,index:"dynamic_"+u+"_"+f})})]},u+"_"+f))}return c},Ed=({mainBlock:e,StylesConfigMain:t,config:a,banners:o})=>{const{PUBLIC_ENV:s}=K();if(s!=="local")return null;const r=e?.news?.data||[],i=(c,d)=>({...e?.news,...t[c],data:r.slice(0,d),paths:a.paths});return n.jsxs(n.Fragment,{children:[n.jsx(In,{component:"Super",data:i("Super",1),banners:o}),n.jsx(Ze,{children:n.jsx(je,{banners:o,index:1})}),n.jsx(In,{component:"3 notas verticales",data:i("3 notas verticales",3),banners:o}),n.jsx(Ze,{children:n.jsx(je,{banners:o,index:1})}),n.jsx(In,{component:"3 notas horizontales",data:i("3 notas horizontales",3),banners:o}),n.jsx(Ze,{children:n.jsx(je,{banners:o,index:1})})]})},Td=e=>{const{config:t}=e,a=t.articlepreview;return!![nt.videoEmbedded,nt.videoYouTube,nt.iframe].includes(a)},Id=async e=>{const{custom_complement:t,ranking:a=[],banners:o,autor:s=[],news:r=[],newsRelatedResponses:i=[],newsRelatedListResponses:c=[],itemList:d=[],socials:l,getVideos:h}=e,u=e.slug==="liveblogs",{SHOW_NEWS_MORE_NEWS:f,SHOW_NEWS_RELATED_NEWS:g}=K();if(!(!r||!r[0]))return n.jsx(n.Fragment,{children:n.jsxs(Hl,{className:wa.contentLayout2,children:[n.jsx(Fl,{option:e.slug,news:r,paths:e.paths,headerSectionStyles:e.headerSectionStyles}),n.jsx(je,{banners:o,index:1}),!u&&e.commonServices&&n.jsx(dd,{news:r[0],commonServices:e.commonServices}),n.jsx(zl,{texts:e.texts,paths:e.paths,slug:e.slug,itemList:d,ranking:a,readestCustomStyles:e.readestCustomStyles,bannerTop:n.jsx(fe,{banners:o??[],name:"right_1"}),banner:n.jsx(fe,{banners:o??[],name:"right_2"}),complement:n.jsxs("div",{id:"comentarios",suppressHydrationWarning:!0,children:[s.length>0&&n.jsx(qs,{texts:e.texts,autorIcon:e.autorIcon,autor:s[0],paths:e.paths}),r[0].authors.length>1&&n.jsx(Ls,{news:r[0],autorIcon:e.autorIcon,paths:e.paths,texts:e.texts}),n.jsx("div",{className:wa.tagContent,children:n.jsx(Us,{tags:r[0]?.keywords?.tags,paths:e.paths})}),n.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"2rem"},suppressHydrationWarning:!0,children:[e.showComments&&n.jsx("div",{suppressHydrationWarning:!0,"data-hydrate":"LazyLoader","data-props":encodeURIComponent(JSON.stringify({render:"comment",internalPath:e.internalPath,COMMENTS_VARS:e.COMMENTS_VARS,DATE_CONFIG:e.DATE_CONFIG}))}),n.jsx(Ze,{children:n.jsx(je,{banners:o,index:2})}),g&&n.jsxs(n.Fragment,{children:[n.jsx(Ca,{component:"Carrusel card",banners:[],slot_id:"Nota_1",data:{...e.stylesConfig["Carrusel card"],content:e.relatedNewsList??[],title:e.texts.relatedNewsTitle,titleUrl:void 0}}),n.jsx(Ze,{children:n.jsx(je,{banners:o,index:3})})]}),f&&n.jsxs(n.Fragment,{children:[n.jsx(ue,{title:e.texts.moreNewsTitle,children:n.jsx("div",{suppressHydrationWarning:!0,"data-hydrate":"LazyLoader","data-props":encodeURIComponent(JSON.stringify({render:"more",stylesConfig:e.stylesConfig,section:r[0].info.section?.slug??"",currentNews:r[0]}))})}),n.jsx(Ze,{children:n.jsx(je,{banners:o,index:4})})]}),t&&t()]})]}),children:n.jsxs("section",{style:{"--avatar-content-align-items-desk":e.slug==="liveblogs"?"flex-start":"center"},children:[n.jsx(wd,{texts:e.texts,autorIcon:e.autorIcon,socials:l,news:r[0],banners:o,newsRelatedResponses:i,newsRelatedListResponses:c,itemList:d,slug:e.slug,getVideos:h,noteShare:e.noteShare,paths:e.paths,showHeaderImage:!Td(r[0]),commonServices:e.commonServices}),n.jsx(fe,{banners:o??[],name:"block_3"})]})})]})})},zt={content:"_content_1046n_1",buttonStyled:"_buttonStyled_1046n_9",searchStyled:"_searchStyled_1046n_20",inputStyled:"_inputStyled_1046n_36",inputStyledTest:"_inputStyledTest_1046n_55"},kd=e=>n.jsx("svg",{width:"68",height:"68",viewBox:"0 0 68 68",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:n.jsx("g",{children:n.jsx("path",{d:"M47.8043 46.6003L47.6635 46.7758L47.8232 46.9342L56.4762 55.5171C56.4768 55.5177 56.4774 55.5184 56.478 55.519C56.8524 55.9072 57.0616 56.4256 57.0616 56.965C57.0616 57.5048 56.8521 58.0234 56.4774 58.4117C56.2839 58.6065 56.0539 58.7611 55.8005 58.8667C55.5466 58.9724 55.2743 59.0269 54.9993 59.0269C54.7243 59.0269 54.452 58.9724 54.1981 58.8667C53.9442 58.7609 53.7138 58.6059 53.5201 58.4106L53.5194 58.4099L44.9327 49.8232L44.7743 49.6648L44.5995 49.805C40.4597 53.1252 35.2051 54.7331 29.9162 54.2981C24.6272 53.863 19.706 51.4181 16.1643 47.4661C12.6227 43.514 10.7298 38.3552 10.875 33.0503C11.0201 27.7455 13.1923 22.6979 16.9447 18.9455C20.6972 15.193 25.7448 13.0209 31.0496 12.8757C36.3544 12.7305 41.5133 14.6234 45.4653 18.165C49.4174 21.7067 51.8623 26.6279 52.2974 31.9169C52.7324 37.2058 51.1245 42.4604 47.8043 46.6003ZM22.4528 47.4552C25.1799 49.2774 28.3861 50.25 31.666 50.25C36.0641 50.25 40.2822 48.5029 43.3921 45.3929C46.5021 42.2829 48.2493 38.0649 48.2493 33.6667C48.2493 30.3868 47.2767 27.1806 45.4545 24.4535C43.6323 21.7264 41.0423 19.6008 38.0121 18.3457C34.9819 17.0905 31.6476 16.7621 28.4307 17.402C25.2139 18.0419 22.259 19.6213 19.9398 21.9405C17.6205 24.2597 16.0411 27.2146 15.4013 30.4314C14.7614 33.6483 15.0898 36.9827 16.345 40.0129C17.6001 43.0431 19.7256 45.633 22.4528 47.4552Z",fill:"white",stroke:"white",strokeWidth:"0.5"})})}),xd=e=>n.jsx("form",{className:zt.content,style:{height:e.hasContent?"218px":"50vh"},children:n.jsxs("div",{className:`${zt.inputStyled} sass-buscar-form`,children:[n.jsx("input",{className:zt.inputStyledTest,defaultValue:e.query,name:"query",placeholder:e.texts.searchKeyWord+"..."}),n.jsx("button",{className:zt.buttonStyled,type:"submit",children:n.jsx(kd,{className:zt.searchStyled})})]})}),_a={content:"_content_io3tv_1",newsContentSection:"_newsContentSection_io3tv_5",itemContent:"_itemContent_io3tv_10"},Ud=e=>{const{data:t,option:a,autor:o,page:s,banners:r,pathname:i,ranking:c,currentPage:d,slug:l,texts:h={}}=e,u=[5,10,15],f={5:1,10:2,15:3};switch(a){case"op1":return n.jsx(n.Fragment,{children:n.jsxs(ia,{children:[n.jsx(Ns,{autor:o[0],autorIcon:e.autorIcon}),n.jsx(la,{paths:e.paths,ranking:c,readestTitle:h.readestTitle??"",bannerTop:n.jsx(fe,{banners:r??[],name:"right_1"}),banner:n.jsx(fe,{banners:r??[],name:"right_2"}),children:n.jsx("section",{className:_a.content,children:t.length>0?n.jsx(yn,{className:[_a.newsContentSection,"padding-0"].join(" "),paginatorComponent:n.jsx(Ot,{texts:h,pathname:i,query:"",currentPage:d,maxPages:e.paginationLimit,showNext:!(t.length<e.newsListLimit)}),children:Array.isArray(t)&&t?.map((g,m)=>n.jsxs(E.Fragment,{children:[u.includes(m+1)&&n.jsx("div",{className:_a.itemContent+" banner-context",children:n.jsx(fe,{banners:r??[],name:`block_2_${f[m+1]}`})}),n.jsx(Nn,{autorIcon:e.autorIcon,item:g,option:l,paths:e.paths},m)]},m))}):n.jsx("div",{style:{width:"100%",display:"flex",flexDirection:"column",justifyContent:"center",gap:"2rem"},children:n.jsx("p",{style:{fontWeight:"var(--fw)",width:"100%",fontSize:"18px",lineHeight:"26px",textAlign:"center"},children:h.autorNotResultMessage})})})})]})});case"op2":return n.jsx(n.Fragment,{children:n.jsxs(ia,{children:[n.jsx(Es,{autor:o[0],autorIcon:e.autorIcon}),Array.isArray(t)?n.jsxs(n.Fragment,{children:[n.jsx(ga,{content:t,title:"",hasLines:!0,banners:e.banners,bannerPositionIndex:[1,6,12],paths:e.paths,slot_id:"block_2"}),n.jsx(Ot,{texts:h,query:"",pathname:i,maxPages:Number(e.paginationLimit),currentPage:Number(s),showNext:!((t.length??0)<Number(e.newsListLimit))})]}):n.jsx("div",{style:{width:"100%",display:"flex",flexDirection:"column",justifyContent:"center",gap:"2rem"},children:n.jsx("p",{style:{fontWeight:"var(--fw)",width:"100%",fontSize:"18px",lineHeight:"26px",textAlign:"center"},children:h.autorNotResultMessage})})]})});default:return n.jsx(n.Fragment,{})}},or={content:"_content_pq89v_1",videoContent:"_videoContent_pq89v_9"},Ft={container:"_container_1xr2t_1",playStyled:"_playStyled_1xr2t_6",imageStyled:"_imageStyled_1xr2t_13",longer:"_longer_1xr2t_26",contentNews:"_contentNews_1xr2t_31",tagContent:"_tagContent_1xr2t_51",tag:"_tag_1xr2t_51",titular:"_titular_1xr2t_68",small:"_small_1xr2t_81",figure:"_figure_1xr2t_87",backDrop:"_backDrop_1xr2t_92",backDropAux:"_backDropAux_1xr2t_100"},sr=async e=>{const{size:t="longer",video:a}=e,o=a.main.image.sizes[0]?.url??"";return n.jsx("figure",{className:Ft.figure,children:n.jsxs("span",{className:Ft.backdrop,children:[n.jsx("span",{className:Ft.backDropAux}),n.jsx(O,{href:a.info.link.url,target:a.info.link.target,children:n.jsxs("div",{children:[a.main.image.sizes.map(async(s,r)=>s.width>=580?n.jsx("source",{media:"(width >=900px)",srcSet:await de(s.url)},r):n.jsx("source",{media:"(width <900px)",srcSet:await de(s.url)},r)),n.jsx("img",{fetchPriority:"low",loading:"lazy",className:[Ft.imageStyled,Ft[t]].join(" "),alt:"",src:o?await de(o):""})]})})]})})},qd=e=>{const{videos:t}=e;return n.jsx("div",{className:or.content,children:n.jsx(bt,{children:n.jsx(ue,{title:"Videos",isTitle:!0,children:n.jsxs("div",{className:or.videoContent,children:[n.jsx(sr,{video:t[0]}),n.jsx("div",{style:{display:"flex",flexDirection:"column"},children:t.slice(1).map((a,o)=>n.jsx(sr,{size:"small",video:a},`video-small-${o}`))})]})})})})},ut={content:"_content_ruy5q_1",videoContent:"_videoContent_ruy5q_9",articleSection:"_articleSection_ruy5q_21",contentLatout:"_contentLatout_ruy5q_31",title:"_title_ruy5q_36",article:"_article_ruy5q_21",correspondent:"_correspondent_ruy5q_64"},rr={container:"_container_1rq2h_1",playStyled:"_playStyled_1rq2h_9"},Ld=e=>{const{video:t}=e,a=fn();return n.jsx(O,{href:t.info.link.url?t.info.link.url:void 0,target:t.info.link.target,children:n.jsxs("section",{className:rr.container,children:[n.jsx(Se,{isLarge:!0,preview:{sizes:t.main.image.sizes,description:t.main.description}}),n.jsx(a,{className:rr.playStyled})]})})},Bd=e=>{const t=()=>e?.video.main.author?`${e?.video.main.author} - ${ke(e.video.info.date.created)}`:e?.video.main.author;return n.jsx("div",{className:ut.content,children:n.jsx(bt,{className:ut.contentLatout,children:n.jsx(ue,{title:"Videos",isTitle:!0,children:n.jsxs("div",{className:ut.videoContent,children:[n.jsx(Ld,{video:e.video}),n.jsxs("div",{className:ut.articleSection,children:[n.jsx(O,{className:ut.title,href:e.video.info.link.url,target:e.video.info.link.target,children:e.video.main.title}),n.jsx("p",{className:ut.article,children:xe(e.video.main.description)}),n.jsx("p",{className:ut.correspondent,children:t()})]})]})})})})},Pd=e=>{switch(e.option){case"op1":return n.jsx(qd,{videos:e.data});case"op2":return n.jsx(Bd,{video:e.data[0]});default:return n.jsx(n.Fragment,{})}};function Od({containerId:e,containerId2:t}){return E.useEffect(()=>{try{let a=function(){const h=window.twttr;h?.widgets?h.widgets.load(o):l<10?(l++,requestAnimationFrame(a)):console.warn("No se pudo cargar widgets de Twitter")};const o=document.getElementById(e),s=document.getElementById(t);if(!o&&!s)return;const r=o?.querySelectorAll("script[src]")??[],i=s?.querySelectorAll("script[src]")??[];[...r,...i].forEach(h=>{const u=document.createElement("script");Array.from(h.attributes).forEach(f=>{u.setAttribute(f.name,f.value)}),h.replaceWith(u)});const d=document.querySelectorAll('script[src*="platform.twitter.com/widgets.js"]');if(d)for(let h=0;h<d.length;h++)d[h]?.remove();let l=0;if(document.querySelector('script[src*="platform.twitter.com/widgets.js"]'))a();else{const h=document.createElement("script");h.src="https://platform.twitter.com/widgets.js",h.async=!0,h.onload=a,document.body.appendChild(h)}}catch(a){console.warn("Error al procesar embeds de Twitter",a)}},[e]),null}const Dd=e=>{const{isVideo:t=!1,isLarge:a=!1,hasShadow:o=!1,BackDropAuxHeigthMobile:s}=e,r=na(),i=E.useMemo(()=>e?.preview?.sizes||[],[e?.preview?.sizes]);if(!i.length||!i[0]?.url||i[0]?.url==="")return n.jsx("div",{className:se.imagePlaceholder});const{PUBLIC_API_HOST:c,PUBLIC_ENV:d}=K();return n.jsx("figure",{className:se.figure,children:n.jsxs("span",{className:se.backdrop,children:[n.jsx("span",{className:se.backdropAux,style:{height:s||"56.25%"}}),n.jsxs("picture",{children:[n.jsx("img",{fetchPriority:"low",loading:"lazy",className:se.imageStyled,alt:e.preview?.description||"",src:(d==="local"?c:"")+i[0]?.url,style:{boxShadow:o?"0px 4px 8px 0px #00000033":"0px"}}),t&&n.jsxs(n.Fragment,{children:[n.jsx("div",{className:se.boxPlayIcon,style:{height:a?"40%":"72px"}}),n.jsx(r,{className:se.playStyled,style:{width:a?"3rem":"27px",height:a?"3rem":"27px",marginBottom:a?"18px":".5rem",marginLeft:a?"30px":".5rem"}})]})]})]})})},Md=e=>n.jsx("svg",{width:"41",height:"33",viewBox:"0 0 41 33",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:n.jsx("path",{d:"M17.9576 21.2985C16.8233 21.2985 15.9277 22.194 15.9277 23.3283C15.9277 24.4627 16.8233 25.3582 17.9576 25.3582C19.0919 25.3582 19.9874 24.4627 19.9874 23.3283C19.9874 22.194 19.0919 21.2985 17.9576 21.2985ZM17.9576 19.2686C19.0919 19.2686 19.9874 18.3731 19.9874 17.2388C19.9874 16.1045 19.0919 15.2089 17.9576 15.2089C16.8233 15.2089 15.9277 16.1045 15.9277 17.2388C15.9277 18.3731 16.8233 19.2686 17.9576 19.2686ZM17.9576 13.1791C19.0919 13.1791 19.9874 12.2836 19.9874 11.1492C19.9874 10.0149 19.0919 9.11938 17.9576 9.11938C16.8233 9.11938 15.9277 10.0149 15.9277 11.1492C15.9277 12.2836 16.8233 13.1791 17.9576 13.1791Z",fill:"#7B888A"})}),ir={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},cr=6,jd=({section:e,currentNews:t,banner:a,isVisible:o=!1,stylesConfig:s})=>{const[r,i]=E.useState({data:Array.from({length:cr},()=>ir)}),[c,d]=E.useState(!1),l=E.useCallback(async()=>{if(!(c||!t?.info?.link?.internal)){d(!0);try{const h=new URLSearchParams({section:e,currentNewsLink:t.info.link.internal}),u=await fetch(`/api/get-more-news?${h}`);if(!u.ok)throw i(void 0),new Error(`HTTP error! status: ${u.status}`);const f=await u.json();i({...f,data:f.data.slice(0,cr)})}catch(h){console.error("[/api/get-more-news] Error:",h.message),i(void 0)}}},[e,t.info.link.internal,c]);return E.useEffect(()=>{o&&l()},[o,r,l]),!r?.data||r.data.length===0?null:n.jsx($d,{news:r.data,title:"Más Noticias",...s["Modulo 1x3 Client"]??s["Modulo 1x3"],hasLines:!0,showSubtitle:!0,rounded:!0,banner:a,isVisible:o})},$d=e=>{const{news:t,hasLines:a=!1}=e,o=s=>a&&(s+1)%3!==0?ya.contentSeparator:"";return n.jsx("div",{className:ya.newsContent,style:{gap:a?"30px":"20px","--gridTemplateModlule":a?"repeat(auto-fit, 343px);":"repeat(auto-fit, 380px);"},children:t.map((s,r)=>{const{main:i,authors:c,info:d,preview:l,isVideo:h=!1,config:u,overImage:f="default",isTitle:g=!1,isLarge:m=!1}=s;return n.jsx("div",{className:o(r),style:{order:r},children:n.jsxs("section",{className:Dt.content,children:[n.jsx(O,{title:i?.title?.section,href:d?.link?.url??"invalidUrl","aria-label":i?.title?.section??"nota",target:d?.link?.target,children:n.jsx(Dd,{isVisible:e.isVisible,preview:l,rounded:e.rounded,isVideo:h,isLarge:m,getImageUrl:e.getImageUrl})}),n.jsx("div",{className:Dt.newsDescription,children:n.jsx(Qd,{main:i,authors:c,info:d,preview:l,share:e.share,config:u,overImage:f,isTitle:g,paths:s.paths,isVisible:e.isVisible})})]})},r)})})},Qd=e=>{const{share:t=!1,cutSubtitle:a=!0}=e,s=(()=>{if(!e?.authors||e.authors.length===0)return"";const r=e.authors[0],i=ke(e.info?.date?.modified);return r&&e?.config?.showtime&&e.config?.showauthor?`${r.fullname} - ${i}`:r&&e.config?.showauthor?r.fullname:e?.config?.showtime?i:""})();return n.jsxs("div",{className:ae.boxInformation,children:[t&&n.jsx(Md,{className:ae.dotStyles}),e?.info?.section?.url&&n.jsxs("div",{className:ae.sectionDescriptionContainer,children:[n.jsx(O,{className:ae.sectionDescription,href:e.info.section.url??"invalidUrl",children:e.info.section.name}),e?.main?.uppertitle&&n.jsx("p",{className:ae.uppertitle,children:e.main.uppertitle})]}),n.jsx("h2",{className:ae.articule,children:n.jsx(O,{className:ae.linkStyled,style:{"--isLink":e?.info?.link?.url?"underline":"none"},"aria-label":e.main?.title?.section??"nota",href:e?.info?.link?.url,target:e?.info?.link?.target,children:e.main?.title?.section})}),e.config?.showsubtitle&&e.main?.subtitle?.striped&&n.jsx("p",{className:ae.description,style:{"--fontSizeSubTitle":e.fontSizeSubTitle,"--lineHeightSubTitle":e.lineHeightSubTitle,"--colorSubTitle":e.colorSubTitle},children:a?xe(e.main.subtitle.striped):e.main.subtitle.striped}),(e?.config?.showtime||e.config?.showauthor)&&s&&n.jsx(n.Fragment,{children:e.authors?.[0]?.internaluser?n.jsx(O,{className:ae.correspondentLink,href:`/autor/${e.authors[0].name}`,children:s}):n.jsx("div",{className:ae.correspondent,children:s})})]})},Gd=({user:e,handleLogout:t,message:a})=>{const o=()=>{const r=document.querySelector(".user-actions-options");r&&r.classList.toggle("show")},s=e.firstname??"Usuario";return n.jsx("div",{className:"comment-item",children:n.jsxs("div",{style:{display:"flex",gap:"14px"},children:[e&&e.picture&&e.picture!==""?n.jsx("img",{className:"comment-avatar-img",src:e.picture,alt:e.username}):n.jsx("div",{className:"comment-avatar",children:s.charAt(0).toUpperCase()}),n.jsxs("div",{style:{flex:1},children:[n.jsxs("div",{className:"comment-header",children:[n.jsxs("span",{className:"comment-username user-welcome",children:["Hola ",s,"!"]}),n.jsx("div",{className:"user-actions-options",children:n.jsx("button",{onClick:()=>{t()},children:"Cerrar Sesion"})}),n.jsx("button",{className:"user-actions-span",onClick:o,children:n.jsx(Cn,{width:13,height:13,fill:"black"})})]}),n.jsx("p",{className:"comment-text",children:a})]})]})})},he={overlay:"_overlay_qj491_3",popup:"_popup_qj491_17",title:"_title_qj491_40",optionsContainer:"_optionsContainer_qj491_52",option:"_option_qj491_52",radioInput:"_radioInput_qj491_66",radioCustom:"_radioCustom_qj491_70",optionLabel:"_optionLabel_qj491_97",buttons:"_buttons_qj491_110",cancelButton:"_cancelButton_qj491_117",closeButton:"_closeButton_qj491_118",buttonAlone:"_buttonAlone_qj491_137",reportButton:"_reportButton_qj491_143",successContainer:"_successContainer_qj491_163",thumbsUp:"_thumbsUp_qj491_171",successMessage:"_successMessage_qj491_177",errorMessage:"_errorMessage_qj491_218",loadingContainer:"_loadingContainer_qj491_231"},lr=async(e,t)=>{if(!e)return!1;const{CAPTCHA_PROJECT:a,CAPTCHA_KEY_V2:o,COMMENTS_CAPTCHA_API_KEY:s}=t;try{const r=a,i=o,l=await(await fetch(`https://recaptchaenterprise.googleapis.com/v1/projects/${r}/assessments?key=${s}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({event:{token:e,siteKey:i}})})).json();return console.log("reCAPTCHA Enterprise verification result:",l),l.tokenProperties?.valid===!0}catch(r){return console.error("Error verificando reCAPTCHA Enterprise:",r),!1}};async function Hd({publication:e,username:t,id:a,type:o,baseUrl:s,captchaToken:r,apiToken:i,COMMENTS_VARS:c}){if(!e||!t||!a||!o||!r)throw new Error("Faltan parámetros requeridos: publication, username, id, type, captchaToken");if(typeof e!="string"||typeof t!="string"||typeof a!="string"||typeof o!="string"||typeof r!="string")throw new Error("Todos los parámetros deben ser strings");if(!await lr(r,c))throw new Error("Token de captcha inválido");if(!i)throw new Error("Falta el token de API del CMS");const d=`${s}/system/modules/com.tfsla.diario.base/templates/hit/5.0/1/newcomments/report`,l=encodeURIComponent(o),h=new URLSearchParams({publication:e,username:t,id:a,type:l}),u=`${d}?${h.toString()}`;try{console.log("Reporting comment:",{publication:e,username:t,id:a,type:o,encodedType:l,url:u});const f=await oe.post(u,null,{headers:{"User-Agent":"Bluestack","x-api-token":i,"Content-Type":"application/json"}});if(console.log("Report response:",f.data),f.status===200||f.status===201)return{type:"success",message:"Comentario reportado exitosamente",status:f.status,data:f.data};throw new Error(`Respuesta inesperada del servidor: ${f.status}`)}catch(f){if(console.error("Error reporting comment:",f),oe.isAxiosError(f)){const g=f.response?.status,m=f.response?.data;throw g===400?new Error("Datos inválidos para el reporte"):g===401?new Error("Token de API inválido"):g===403?new Error("Acceso denegado para reportar comentario"):g===404?new Error("Comentario no encontrado"):g===409?new Error("El comentario ya fue reportado por este usuario"):g===500?new Error("Error interno del servidor CMS"):new Error(m?.error||m?.message||`Error HTTP ${g}: No se pudo reportar el comentario`)}throw f}}const Me={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 zd(e){return Me[e]}const ft=300,Ye={username:"anonimo",firstname:"Usuario",lastname:"Anonimo"};function Fd(e){const t=e.split(" ");if(t.length!==3)return e;const[a,o,s]=t,r=o.charAt(0).toUpperCase()+o.slice(1).toLowerCase();return`${a} ${r} ${s}`}const Sa=(e,t)=>{if(!e||!e.current)return{boolean:!1,text:""};const a=e.current?.value||"",o=a.length>ft,{PUBLIC_ENV:s}=K(),r=s==="local",i=a.trim()!==""&&(r||t!=="")&&!o,c=o?`No debes exceder el limite de ${ft} caracteres.`:"Debes completar todos los campos para comentar.";return{boolean:i,text:c}},dr=e=>{const t=e.cookie.split("; ").find(a=>a.startsWith("reported="));if(!t)return[];try{return JSON.parse(decodeURIComponent(t.split("=")[1]??""))}catch{return[]}},Vd=(e,t)=>{const a=dr(e);a.includes(t)||(a.push(t),e.cookie=`reported=${encodeURIComponent(JSON.stringify(a))}; path=/; max-age=${3600*24*1}`)};function Wd(e){const[t,a]=e.split("@");if(!t||!a)return e;let o="";t.length<=2?o=t[0]+"*":o=t[0]+"*".repeat(t.length-2)+t[t.length-1];const s=a.lastIndexOf(".");if(s===-1)return`${o}@${a}`;const r=a.slice(0,s),i=a.slice(s);let c="";return r.length<=2?c=r[0]+"*":c=r[0]+"*".repeat(r.length-2)+r[r.length-1],`${o}@${c}${i}`}var kn={exports:{}},xn={exports:{}},te={};var hr;function Yd(){if(hr)return te;hr=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,a=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,r=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,u=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,g=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,A=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,S=e?Symbol.for("react.scope"):60119;function _(v){if(typeof v=="object"&&v!==null){var k=v.$$typeof;switch(k){case t:switch(v=v.type,v){case d:case l:case o:case r:case s:case u:return v;default:switch(v=v&&v.$$typeof,v){case c:case h:case m:case g:case i:return v;default:return k}}case a:return k}}}function T(v){return _(v)===l}return te.AsyncMode=d,te.ConcurrentMode=l,te.ContextConsumer=c,te.ContextProvider=i,te.Element=t,te.ForwardRef=h,te.Fragment=o,te.Lazy=m,te.Memo=g,te.Portal=a,te.Profiler=r,te.StrictMode=s,te.Suspense=u,te.isAsyncMode=function(v){return T(v)||_(v)===d},te.isConcurrentMode=T,te.isContextConsumer=function(v){return _(v)===c},te.isContextProvider=function(v){return _(v)===i},te.isElement=function(v){return typeof v=="object"&&v!==null&&v.$$typeof===t},te.isForwardRef=function(v){return _(v)===h},te.isFragment=function(v){return _(v)===o},te.isLazy=function(v){return _(v)===m},te.isMemo=function(v){return _(v)===g},te.isPortal=function(v){return _(v)===a},te.isProfiler=function(v){return _(v)===r},te.isStrictMode=function(v){return _(v)===s},te.isSuspense=function(v){return _(v)===u},te.isValidElementType=function(v){return typeof v=="string"||typeof v=="function"||v===o||v===l||v===r||v===s||v===u||v===f||typeof v=="object"&&v!==null&&(v.$$typeof===m||v.$$typeof===g||v.$$typeof===i||v.$$typeof===c||v.$$typeof===h||v.$$typeof===A||v.$$typeof===b||v.$$typeof===S||v.$$typeof===p)},te.typeOf=_,te}var ne={};var ur;function Kd(){return ur||(ur=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,a=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,r=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,u=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,g=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,A=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,S=e?Symbol.for("react.scope"):60119;function _(P){return typeof P=="string"||typeof P=="function"||P===o||P===l||P===r||P===s||P===u||P===f||typeof P=="object"&&P!==null&&(P.$$typeof===m||P.$$typeof===g||P.$$typeof===i||P.$$typeof===c||P.$$typeof===h||P.$$typeof===A||P.$$typeof===b||P.$$typeof===S||P.$$typeof===p)}function T(P){if(typeof P=="object"&&P!==null){var ye=P.$$typeof;switch(ye){case t:var On=P.type;switch(On){case d:case l:case o:case r:case s:case u:return On;default:var Br=On&&On.$$typeof;switch(Br){case c:case h:case m:case g:case i:return Br;default:return ye}}case a:return ye}}}var v=d,k=l,L=c,G=i,X=t,H=h,M=o,ee=m,ie=g,$=a,q=r,I=s,j=u,U=!1;function F(P){return U||(U=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),y(P)||T(P)===d}function y(P){return T(P)===l}function N(P){return T(P)===c}function B(P){return T(P)===i}function Q(P){return typeof P=="object"&&P!==null&&P.$$typeof===t}function D(P){return T(P)===h}function z(P){return T(P)===o}function V(P){return T(P)===m}function W(P){return T(P)===g}function Z(P){return T(P)===a}function R(P){return T(P)===r}function Y(P){return T(P)===s}function re(P){return T(P)===u}ne.AsyncMode=v,ne.ConcurrentMode=k,ne.ContextConsumer=L,ne.ContextProvider=G,ne.Element=X,ne.ForwardRef=H,ne.Fragment=M,ne.Lazy=ee,ne.Memo=ie,ne.Portal=$,ne.Profiler=q,ne.StrictMode=I,ne.Suspense=j,ne.isAsyncMode=F,ne.isConcurrentMode=y,ne.isContextConsumer=N,ne.isContextProvider=B,ne.isElement=Q,ne.isForwardRef=D,ne.isFragment=z,ne.isLazy=V,ne.isMemo=W,ne.isPortal=Z,ne.isProfiler=R,ne.isStrictMode=Y,ne.isSuspense=re,ne.isValidElementType=_,ne.typeOf=T})()),ne}var fr;function Na(){return fr||(fr=1,process.env.NODE_ENV==="production"?xn.exports=Yd():xn.exports=Kd()),xn.exports}var Ea,mr;function Jd(){if(mr)return Ea;mr=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;function o(r){if(r==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(r)}function s(){try{if(!Object.assign)return!1;var r=new String("abc");if(r[5]="de",Object.getOwnPropertyNames(r)[0]==="5")return!1;for(var i={},c=0;c<10;c++)i["_"+String.fromCharCode(c)]=c;var d=Object.getOwnPropertyNames(i).map(function(h){return i[h]});if(d.join("")!=="0123456789")return!1;var l={};return"abcdefghijklmnopqrst".split("").forEach(function(h){l[h]=h}),Object.keys(Object.assign({},l)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Ea=s()?Object.assign:function(r,i){for(var c,d=o(r),l,h=1;h<arguments.length;h++){c=Object(arguments[h]);for(var u in c)t.call(c,u)&&(d[u]=c[u]);if(e){l=e(c);for(var f=0;f<l.length;f++)a.call(c,l[f])&&(d[l[f]]=c[l[f]])}}return d},Ea}var Ta,gr;function Ia(){if(gr)return Ta;gr=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Ta=e,Ta}var ka,pr;function Ar(){return pr||(pr=1,ka=Function.call.bind(Object.prototype.hasOwnProperty)),ka}var xa,yr;function Zd(){if(yr)return xa;yr=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Ia(),a={},o=Ar();e=function(r){var i="Warning: "+r;typeof console<"u"&&console.error(i);try{throw new Error(i)}catch{}}}function s(r,i,c,d,l){if(process.env.NODE_ENV!=="production"){for(var h in r)if(o(r,h)){var u;try{if(typeof r[h]!="function"){var f=Error((d||"React class")+": "+c+" type `"+h+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof r[h]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw f.name="Invariant Violation",f}u=r[h](i,h,d,c,null,t)}catch(m){u=m}if(u&&!(u instanceof Error)&&e((d||"React class")+": type specification of "+c+" `"+h+"` 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=l?l():"";e("Failed "+c+" type: "+u.message+(g??""))}}}}return s.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(a={})},xa=s,xa}var Ua,wr;function Xd(){if(wr)return Ua;wr=1;var e=Na(),t=Jd(),a=Ia(),o=Ar(),s=Zd(),r=function(){};process.env.NODE_ENV!=="production"&&(r=function(c){var d="Warning: "+c;typeof console<"u"&&console.error(d);try{throw new Error(d)}catch{}});function i(){return null}return Ua=function(c,d){var l=typeof Symbol=="function"&&Symbol.iterator,h="@@iterator";function u(y){var N=y&&(l&&y[l]||y[h]);if(typeof N=="function")return N}var f="<<anonymous>>",g={array:b("array"),bigint:b("bigint"),bool:b("boolean"),func:b("function"),number:b("number"),object:b("object"),string:b("string"),symbol:b("symbol"),any:S(),arrayOf:_,element:T(),elementType:v(),instanceOf:k,node:H(),objectOf:G,oneOf:L,oneOfType:X,shape:ee,exact:ie};function m(y,N){return y===N?y!==0||1/y===1/N:y!==y&&N!==N}function p(y,N){this.message=y,this.data=N&&typeof N=="object"?N:{},this.stack=""}p.prototype=Error.prototype;function A(y){if(process.env.NODE_ENV!=="production")var N={},B=0;function Q(z,V,W,Z,R,Y,re){if(Z=Z||f,Y=Y||W,re!==a){if(d){var P=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 P.name="Invariant Violation",P}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var ye=Z+":"+W;!N[ye]&&B<3&&(r("You are manually calling a React.PropTypes validation function for the `"+Y+"` prop on `"+Z+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),N[ye]=!0,B++)}}return V[W]==null?z?V[W]===null?new p("The "+R+" `"+Y+"` is marked as required "+("in `"+Z+"`, but its value is `null`.")):new p("The "+R+" `"+Y+"` is marked as required in "+("`"+Z+"`, but its value is `undefined`.")):null:y(V,W,Z,R,Y)}var D=Q.bind(null,!1);return D.isRequired=Q.bind(null,!0),D}function b(y){function N(B,Q,D,z,V,W){var Z=B[Q],R=I(Z);if(R!==y){var Y=j(Z);return new p("Invalid "+z+" `"+V+"` of type "+("`"+Y+"` supplied to `"+D+"`, expected ")+("`"+y+"`."),{expectedType:y})}return null}return A(N)}function S(){return A(i)}function _(y){function N(B,Q,D,z,V){if(typeof y!="function")return new p("Property `"+V+"` of component `"+D+"` has invalid PropType notation inside arrayOf.");var W=B[Q];if(!Array.isArray(W)){var Z=I(W);return new p("Invalid "+z+" `"+V+"` of type "+("`"+Z+"` supplied to `"+D+"`, expected an array."))}for(var R=0;R<W.length;R++){var Y=y(W,R,D,z,V+"["+R+"]",a);if(Y instanceof Error)return Y}return null}return A(N)}function T(){function y(N,B,Q,D,z){var V=N[B];if(!c(V)){var W=I(V);return new p("Invalid "+D+" `"+z+"` of type "+("`"+W+"` supplied to `"+Q+"`, expected a single ReactElement."))}return null}return A(y)}function v(){function y(N,B,Q,D,z){var V=N[B];if(!e.isValidElementType(V)){var W=I(V);return new p("Invalid "+D+" `"+z+"` of type "+("`"+W+"` supplied to `"+Q+"`, expected a single ReactElement type."))}return null}return A(y)}function k(y){function N(B,Q,D,z,V){if(!(B[Q]instanceof y)){var W=y.name||f,Z=F(B[Q]);return new p("Invalid "+z+" `"+V+"` of type "+("`"+Z+"` supplied to `"+D+"`, expected ")+("instance of `"+W+"`."))}return null}return A(N)}function L(y){if(!Array.isArray(y))return process.env.NODE_ENV!=="production"&&(arguments.length>1?r("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):r("Invalid argument supplied to oneOf, expected an array.")),i;function N(B,Q,D,z,V){for(var W=B[Q],Z=0;Z<y.length;Z++)if(m(W,y[Z]))return null;var R=JSON.stringify(y,function(re,P){var ye=j(P);return ye==="symbol"?String(P):P});return new p("Invalid "+z+" `"+V+"` of value `"+String(W)+"` "+("supplied to `"+D+"`, expected one of "+R+"."))}return A(N)}function G(y){function N(B,Q,D,z,V){if(typeof y!="function")return new p("Property `"+V+"` of component `"+D+"` has invalid PropType notation inside objectOf.");var W=B[Q],Z=I(W);if(Z!=="object")return new p("Invalid "+z+" `"+V+"` of type "+("`"+Z+"` supplied to `"+D+"`, expected an object."));for(var R in W)if(o(W,R)){var Y=y(W,R,D,z,V+"."+R,a);if(Y instanceof Error)return Y}return null}return A(N)}function X(y){if(!Array.isArray(y))return process.env.NODE_ENV!=="production"&&r("Invalid argument supplied to oneOfType, expected an instance of array."),i;for(var N=0;N<y.length;N++){var B=y[N];if(typeof B!="function")return r("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+U(B)+" at index "+N+"."),i}function Q(D,z,V,W,Z){for(var R=[],Y=0;Y<y.length;Y++){var re=y[Y],P=re(D,z,V,W,Z,a);if(P==null)return null;P.data&&o(P.data,"expectedType")&&R.push(P.data.expectedType)}var ye=R.length>0?", expected one of type ["+R.join(", ")+"]":"";return new p("Invalid "+W+" `"+Z+"` supplied to "+("`"+V+"`"+ye+"."))}return A(Q)}function H(){function y(N,B,Q,D,z){return $(N[B])?null:new p("Invalid "+D+" `"+z+"` supplied to "+("`"+Q+"`, expected a ReactNode."))}return A(y)}function M(y,N,B,Q,D){return new p((y||"React class")+": "+N+" type `"+B+"."+Q+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+D+"`.")}function ee(y){function N(B,Q,D,z,V){var W=B[Q],Z=I(W);if(Z!=="object")return new p("Invalid "+z+" `"+V+"` of type `"+Z+"` "+("supplied to `"+D+"`, expected `object`."));for(var R in y){var Y=y[R];if(typeof Y!="function")return M(D,z,V,R,j(Y));var re=Y(W,R,D,z,V+"."+R,a);if(re)return re}return null}return A(N)}function ie(y){function N(B,Q,D,z,V){var W=B[Q],Z=I(W);if(Z!=="object")return new p("Invalid "+z+" `"+V+"` of type `"+Z+"` "+("supplied to `"+D+"`, expected `object`."));var R=t({},B[Q],y);for(var Y in R){var re=y[Y];if(o(y,Y)&&typeof re!="function")return M(D,z,V,Y,j(re));if(!re)return new p("Invalid "+z+" `"+V+"` key `"+Y+"` supplied to `"+D+"`.\nBad object: "+JSON.stringify(B[Q],null," ")+`
161
161
  Valid keys: `+JSON.stringify(Object.keys(y),null," "));var P=re(W,Y,D,z,V+"."+Y,a);if(P)return P}return null}return A(N)}function $(y){switch(typeof y){case"number":case"string":case"undefined":return!0;case"boolean":return!y;case"object":if(Array.isArray(y))return y.every($);if(y===null||c(y))return!0;var N=u(y);if(N){var B=N.call(y),Q;if(N!==y.entries){for(;!(Q=B.next()).done;)if(!$(Q.value))return!1}else for(;!(Q=B.next()).done;){var D=Q.value;if(D&&!$(D[1]))return!1}}else return!1;return!0;default:return!1}}function q(y,N){return y==="symbol"?!0:N?N["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&N instanceof Symbol:!1}function I(y){var N=typeof y;return Array.isArray(y)?"array":y instanceof RegExp?"object":q(N,y)?"symbol":N}function j(y){if(typeof y>"u"||y===null)return""+y;var N=I(y);if(N==="object"){if(y instanceof Date)return"date";if(y instanceof RegExp)return"regexp"}return N}function U(y){var N=j(y);switch(N){case"array":case"object":return"an "+N;case"boolean":case"date":case"regexp":return"a "+N;default:return N}}function F(y){return!y.constructor||!y.constructor.name?f:y.constructor.name}return g.checkPropTypes=s,g.resetWarningCache=s.resetWarningCache,g.PropTypes=g,g},Ua}var qa,br;function Rd(){if(br)return qa;br=1;var e=Ia();function t(){}function a(){}return a.resetWarningCache=t,qa=function(){function o(i,c,d,l,h,u){if(u!==e){var f=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw f.name="Invariant Violation",f}}o.isRequired=o;function s(){return o}var r={array:o,bigint:o,bool:o,func:o,number:o,object:o,string:o,symbol:o,any:o,arrayOf:s,element:o,elementType:o,instanceOf:s,node:o,objectOf:s,oneOf:s,oneOfType:s,shape:s,exact:s,checkPropTypes:a,resetWarningCache:t};return r.PropTypes=r,r},qa}var vr;function e1(){if(vr)return kn.exports;if(vr=1,process.env.NODE_ENV!=="production"){var e=Na(),t=!0;kn.exports=Xd()(e.isElement,t)}else kn.exports=Rd()();return kn.exports}var t1=e1();const Ce=mt(t1);var n1=["sitekey","onChange","theme","type","tabindex","onExpired","onErrored","size","stoken","grecaptcha","badge","hl","isolated"];function La(){return La=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(e[o]=a[o])}return e},La.apply(this,arguments)}function a1(e,t){if(e==null)return{};var a={},o=Object.keys(e),s,r;for(r=0;r<o.length;r++)s=o[r],!(t.indexOf(s)>=0)&&(a[s]=e[s]);return a}function Un(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function o1(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ba(e,t)}function Ba(e,t){return Ba=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,s){return o.__proto__=s,o},Ba(e,t)}var qn=(function(e){o1(t,e);function t(){var o;return o=e.call(this)||this,o.handleExpired=o.handleExpired.bind(Un(o)),o.handleErrored=o.handleErrored.bind(Un(o)),o.handleChange=o.handleChange.bind(Un(o)),o.handleRecaptchaRef=o.handleRecaptchaRef.bind(Un(o)),o}var a=t.prototype;return a.getCaptchaFunction=function(s){return this.props.grecaptcha?this.props.grecaptcha.enterprise?this.props.grecaptcha.enterprise[s]:this.props.grecaptcha[s]:null},a.getValue=function(){var s=this.getCaptchaFunction("getResponse");return s&&this._widgetId!==void 0?s(this._widgetId):null},a.getWidgetId=function(){return this.props.grecaptcha&&this._widgetId!==void 0?this._widgetId:null},a.execute=function(){var s=this.getCaptchaFunction("execute");if(s&&this._widgetId!==void 0)return s(this._widgetId);this._executeRequested=!0},a.executeAsync=function(){var s=this;return new Promise(function(r,i){s.executionResolve=r,s.executionReject=i,s.execute()})},a.reset=function(){var s=this.getCaptchaFunction("reset");s&&this._widgetId!==void 0&&s(this._widgetId)},a.forceReset=function(){var s=this.getCaptchaFunction("reset");s&&s()},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(s){this.props.onChange&&this.props.onChange(s),this.executionResolve&&(this.executionResolve(s),delete this.executionReject,delete this.executionResolve)},a.explicitRender=function(){var s=this.getCaptchaFunction("render");if(s&&this._widgetId===void 0){var r=document.createElement("div");this._widgetId=s(r,{sitekey:this.props.sitekey,callback:this.handleChange,theme:this.props.theme,type:this.props.type,tabindex:this.props.tabindex,"expired-callback":this.handleExpired,"error-callback":this.handleErrored,size:this.props.size,stoken:this.props.stoken,hl:this.props.hl,badge:this.props.badge,isolated:this.props.isolated}),this.captcha.appendChild(r)}this._executeRequested&&this.props.grecaptcha&&this._widgetId!==void 0&&(this._executeRequested=!1,this.execute())},a.componentDidMount=function(){this.explicitRender()},a.componentDidUpdate=function(){this.explicitRender()},a.handleRecaptchaRef=function(s){this.captcha=s},a.render=function(){var s=this.props;s.sitekey,s.onChange,s.theme,s.type,s.tabindex,s.onExpired,s.onErrored,s.size,s.stoken,s.grecaptcha,s.badge,s.hl,s.isolated;var r=a1(s,n1);return ja.createElement("div",La({},r,{ref:this.handleRecaptchaRef}))},t})(ja.Component);qn.displayName="ReCAPTCHA",qn.propTypes={sitekey:Ce.string.isRequired,onChange:Ce.func,grecaptcha:Ce.object,theme:Ce.oneOf(["dark","light"]),type:Ce.oneOf(["image","audio"]),tabindex:Ce.number,onExpired:Ce.func,onErrored:Ce.func,size:Ce.oneOf(["compact","normal","invisible"]),stoken:Ce.string,hl:Ce.string,badge:Ce.oneOf(["bottomright","bottomleft","inline"]),isolated:Ce.bool},qn.defaultProps={onChange:function(){},theme:"light",type:"image",tabindex:0,size:"normal",badge:"bottomright"};var Pa,Cr;function s1(){if(Cr)return Pa;Cr=1;var e=Na(),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},o={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},r={};r[e.ForwardRef]=o,r[e.Memo]=s;function i(m){return e.isMemo(m)?s:r[m.$$typeof]||t}var c=Object.defineProperty,d=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,u=Object.getPrototypeOf,f=Object.prototype;function g(m,p,A){if(typeof p!="string"){if(f){var b=u(p);b&&b!==f&&g(m,b,A)}var S=d(p);l&&(S=S.concat(l(p)));for(var _=i(m),T=i(p),v=0;v<S.length;++v){var k=S[v];if(!a[k]&&!(A&&A[k])&&!(T&&T[k])&&!(_&&_[k])){var L=h(p,k);try{c(m,k,L)}catch{}}}}return m}return Pa=g,Pa}var r1=s1();const i1=mt(r1);function Oa(){return Oa=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(e[o]=a[o])}return e},Oa.apply(this,arguments)}function c1(e,t){if(e==null)return{};var a={},o=Object.keys(e),s,r;for(r=0;r<o.length;r++)s=o[r],!(t.indexOf(s)>=0)&&(a[s]=e[s]);return a}function l1(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var Be={},d1=0;function h1(e,t){return t=t||{},function(o){var s=o.displayName||o.name||"Component",r=(function(c){l1(d,c);function d(h,u){var f;return f=c.call(this,h,u)||this,f.state={},f.__scriptURL="",f}var l=d.prototype;return l.asyncScriptLoaderGetScriptLoaderID=function(){return this.__scriptLoaderID||(this.__scriptLoaderID="async-script-loader-"+d1++),this.__scriptLoaderID},l.setupScriptURL=function(){return this.__scriptURL=typeof e=="function"?e():e,this.__scriptURL},l.asyncScriptLoaderHandleLoad=function(u){var f=this;this.setState(u,function(){return f.props.asyncScriptOnLoad&&f.props.asyncScriptOnLoad(f.state)})},l.asyncScriptLoaderTriggerOnScriptLoaded=function(){var u=Be[this.__scriptURL];if(!u||!u.loaded)throw new Error("Script is not loaded.");for(var f in u.observers)u.observers[f](u);delete window[t.callbackName]},l.componentDidMount=function(){var u=this,f=this.setupScriptURL(),g=this.asyncScriptLoaderGetScriptLoaderID(),m=t,p=m.globalName,A=m.callbackName,b=m.scriptId;if(p&&typeof window[p]<"u"&&(Be[f]={loaded:!0,observers:{}}),Be[f]){var S=Be[f];if(S&&(S.loaded||S.errored)){this.asyncScriptLoaderHandleLoad(S);return}S.observers[g]=function(L){return u.asyncScriptLoaderHandleLoad(L)};return}var _={};_[g]=function(L){return u.asyncScriptLoaderHandleLoad(L)},Be[f]={loaded:!1,observers:_};var T=document.createElement("script");T.src=f,T.async=!0;for(var v in t.attributes)T.setAttribute(v,t.attributes[v]);b&&(T.id=b);var k=function(G){if(Be[f]){var X=Be[f],H=X.observers;for(var M in H)G(H[M])&&delete H[M]}};A&&typeof window<"u"&&(window[A]=function(){return u.asyncScriptLoaderTriggerOnScriptLoaded()}),T.onload=function(){var L=Be[f];L&&(L.loaded=!0,k(function(G){return A?!1:(G(L),!0)}))},T.onerror=function(){var L=Be[f];L&&(L.errored=!0,k(function(G){return G(L),!0}))},document.body.appendChild(T)},l.componentWillUnmount=function(){var u=this.__scriptURL;if(t.removeOnUnmount===!0)for(var f=document.getElementsByTagName("script"),g=0;g<f.length;g+=1)f[g].src.indexOf(u)>-1&&f[g].parentNode&&f[g].parentNode.removeChild(f[g]);var m=Be[u];m&&(delete m.observers[this.asyncScriptLoaderGetScriptLoaderID()],t.removeOnUnmount===!0&&delete Be[u])},l.render=function(){var u=t.globalName,f=this.props;f.asyncScriptOnLoad;var g=f.forwardedRef,m=c1(f,["asyncScriptOnLoad","forwardedRef"]);return u&&typeof window<"u"&&(m[u]=typeof window[u]<"u"?window[u]:void 0),m.ref=g,E.createElement(o,m)},d})(E.Component),i=E.forwardRef(function(c,d){return E.createElement(r,Oa({},c,{forwardedRef:d}))});return i.displayName="AsyncScriptLoader("+s+")",i.propTypes={asyncScriptOnLoad:Ce.func},i1(i,o)}}var Da="onloadcallback",u1="grecaptcha";function Ma(){return typeof window<"u"&&window.recaptchaOptions||{}}function f1(){var e=Ma(),t=e.useRecaptchaNet?"recaptcha.net":"www.google.com";return e.enterprise?"https://"+t+"/recaptcha/enterprise.js?onload="+Da+"&render=explicit":"https://"+t+"/recaptcha/api.js?onload="+Da+"&render=explicit"}const _r=h1(f1,{callbackName:Da,globalName:u1,attributes:Ma().nonce?{nonce:Ma().nonce}:{}})(qn),x={overlay:"_overlay_18ksj_1",header:"_header_18ksj_18",logo:"_logo_18ksj_25",card:"_card_18ksj_32",close:"_close_18ksj_47",form:"_form_18ksj_71",formUl:"_formUl_18ksj_80",field:"_field_18ksj_92",label:"_label_18ksj_99",input:"_input_18ksj_108",error:"_error_18ksj_126",primary:"_primary_18ksj_132",divider:"_divider_18ksj_170",google:"_google_18ksj_196",googleIcon:"_googleIcon_18ksj_226",spin:"_spin_18ksj_259",checkboxRow:"_checkboxRow_18ksj_281",switch:"_switch_18ksj_310",terms:"_terms_18ksj_318",message:"_message_18ksj_349",passwordChecker:"_passwordChecker_18ksj_354",valid:"_valid_18ksj_373",invalid:"_invalid_18ksj_377",forgotPassword:"_forgotPassword_18ksj_381",successContainer:"_successContainer_18ksj_400",thumbsUp:"_thumbsUp_18ksj_408",successMessage:"_successMessage_18ksj_414"},Ke=()=>n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",width:"24",height:"24",viewBox:"0 0 32 32",className:x.spin,children:n.jsx("path",{d:"M18,4.181v2.021c4.559,0.929,8,4.97,8,9.798c0,5.514-4.486,10-10,10S6,21.514,6,16c0-4.829,3.441-8.869,8-9.798V4.181 C8.334,5.137,4,10.066,4,16c0,6.617,5.383,12,12,12s12-5.383,12-12C28,10.066,23.666,5.137,18,4.181z"})}),m1=({isOpen:e,onClose:t,commentId:a,publication:o,username:s,CAPTCHA_KEY_V2:r})=>{const[i,c]=E.useState("form"),[d,l]=E.useState(""),[h,u]=E.useState(""),[f,g]=E.useState(""),m=[{id:"spam",label:Me.spam},{id:"inappropriate",label:Me.inappropriate},{id:"hate",label:Me.hate},{id:"misinformation",label:Me.misinformation},{id:"terrorism",label:Me.terrorism},{id:"intellectual",label:Me.intellectual},{id:"bullying",label:Me.bullying}],p=async()=>{if(!(!d||!a)){if(dr(document).includes(a)){u("Ya has reportado este comentario.");return}c("loading"),u("");try{const S=await(await fetch("/api/comments-report",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({publication:o,username:s,id:a,captchaToken:f,type:Me[d]})})).json();if(S.type==="success")Vd(document,a),c("success"),setTimeout(()=>{A()},3e3);else throw new Error(S.message||"Error al reportar comentario")}catch(b){console.error("Error reporting comment:",b),u(b.message||"Error al reportar comentario"),c("form")}}},A=()=>{c("form"),l(""),u(""),t()};return!e||!a||!s?null:n.jsx("div",{className:he.overlay,children:n.jsxs("div",{className:he.popup,children:[n.jsx("button",{className:"close-reply-form",onClick:A,children:n.jsx(vt,{})}),n.jsx("h2",{className:he.title,children:"Reportar Abuso"}),i==="loading"&&n.jsx("div",{className:he.loadingContainer,children:n.jsx(Ke,{})}),i==="form"||i==="loading"?n.jsxs(n.Fragment,{children:[n.jsx("div",{className:he.optionsContainer,children:m.map(b=>n.jsxs("label",{className:he.option,children:[n.jsx("input",{type:"radio",name:"reportReason",value:b.id,checked:d===b.id,onChange:S=>l(S.target.value),className:he.radioInput}),n.jsx("span",{className:he.radioCustom}),n.jsx("span",{className:he.optionLabel,children:b.label})]},b.id))}),h&&n.jsx("div",{className:he.errorMessage,children:h}),n.jsx(_r,{sitekey:r,theme:"light",size:"normal",onChange:b=>g(b??""),onExpired:()=>g("")}),n.jsxs("div",{className:he.buttons,children:[n.jsx("button",{onClick:A,className:he.cancelButton,children:"Cancelar"}),n.jsx("button",{onClick:p,disabled:!d,className:he.reportButton,children:"Reportar"})]})]}):n.jsxs(n.Fragment,{children:[n.jsxs("div",{className:he.successContainer,children:[n.jsx("div",{className:he.thumbsUp,children:n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:132,height:120,fill:"none",children:n.jsx("path",{fill:"#0073BE",d:"M119.249 42.357H81.915l5.621-27.039.177-1.893a8.906 8.906 0 0 0-2.603-6.272L78.838.941 39.907 39.93c-2.19 2.13-3.491 5.089-3.491 8.343v59.167c0 6.508 5.325 11.833 11.833 11.833h53.25c4.911 0 9.112-2.958 10.887-7.218l17.868-41.713c.533-1.36.829-2.78.829-4.32V54.192c0-6.509-5.325-11.834-11.834-11.834Zm0 23.667-17.75 41.417h-53.25V48.274l25.679-25.678L67.36 54.19h51.889v11.833ZM.916 48.274h23.667v71H.916v-71Z"})})}),n.jsx("p",{className:he.successMessage,children:"¡Gracias por reportar!"})]}),n.jsx("div",{className:he.buttons,children:n.jsx("button",{onClick:A,className:[he.closeButton,he.buttonAlone].join(" "),children:"Cerrar"})})]})]})})};function g1(e){const t=/^\[\[([^\]]+)\]\]/,a=e.match(t);return a?{user:{username:a[1],firstname:a[1]},text:e.replace("[["+a[1]+"]]","")}:{user:!1,text:e}}function Ln(e){const t=e.comments.map(a=>{if(a.user)return{...a,user:a.user,text:a.text,reply:a.reply?Ln({comments:a.reply}).comments:a.reply};const{user:o,text:s}=g1(a.text);return{...a,user:o||!1,text:s,reply:a.reply?Ln({comments:a.reply}).comments:a.reply}});return{...e,comments:t}}async function Bn({publication:e,path:t,size:a=5,sizereply:o=2,id:s,lastid:r,state:i="5,6",apiToken:c}){const{PUBLIC_ENV:d}=K();if(d==="prod"){const l=await Sr({publication:e,path:t,size:a,sizereply:o,id:s,lastid:r,state:i,apiToken:c});return Ln(l[0])}else{const l=await fetch(`/api/comments-get?publication=${e}&path=${t}&size=${a}&sizereply=${o}&lastid=${r}`);if(!l.ok)throw new Error(`Error al obtener comentarios: ${l.status}`);const h=await l.json();return Ln(h.data[0])}}async function Sr({publication:e,path:t,size:a=5,sizereply:o=2,id:s,lastid:r,state:i="5,6",apiToken:c}){if(!e||!t)throw new Error("Missing required parameters: publication and path");if(typeof e!="string"||typeof t!="string")throw new Error("Invalid input types for publication or path");if(!c)throw new Error("Missing CMS API token");const{PUBLIC_ENV:d,PUBLIC_API_HOST:l,PUBLIC_API_PATH:h,PUBLIC_API_PATH_VERSION:u}=K(),f=parseInt(String(a),10),g=parseInt(String(o),10);if(isNaN(f)||f<=0)throw new Error("Invalid size parameter");if(isNaN(g)||g<0)throw new Error("Invalid sizereply parameter");const m=d!=="prod"?`${l}${h}`:Xa(),p=new URLSearchParams({publication:e,path:t,size:f.toString(),sizereply:g.toString(),state:i});s&&p.append("id",s),r&&p.append("lastid",r);const A=`${m}${u}/newcomments/get?${p.toString()}`;try{console.log("Fetching comments from:",A);const{data:b}=await oe.get(A,{headers:{"x-api-token":c,"Cache-Control":"max-age=0, no-cache, no-store, must-revalidate",Pragma:"no-cache",Expires:"0"}});if(!b)throw new Error("No comments data received");return b.data||b||[]}catch(b){if(console.error("Error fetching comments:",b),oe.isAxiosError(b)){const S=b.response?.status,_=b.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(_?.error||_?.message||`HTTP ${S}: Failed to fetch comments`)}throw b}}const{PUBLIC_PUBLICATION_ID:p1}=K(),A1=p1,y1=e=>{const[t,a]=E.useState(void 0);return E.useEffect(()=>{if(t)return;(async()=>{const{PUBLIC_X_SECURITY_TOKEN:s}=K();try{const r=await Bn({publication:A1,path:e??"",size:5,sizereply:2,id:void 0,lastid:void 0,state:"5,6",apiToken:s});a(r??[])}catch(r){console.error(r),a({comments:[],morecomment:!1})}})()},[t]),{comments:t,setComments:a}},Nr=({username:e,date:t,DATE_CONFIG:a})=>n.jsxs("div",{className:"comment-header",children:[n.jsx("span",{className:"comment-username",children:e}),n.jsx("span",{className:"comment-header-dot",children:"•"}),n.jsx("span",{className:"comment-date",children:Fd(ke(Number(t),a))})]}),Er=({user:e})=>n.jsx("div",{className:"comment-avatar",children:e.picture?n.jsx("img",{className:"comment-avatar-img",src:e.picture,alt:e.username}):e.firstname.charAt(0).toUpperCase()}),Tr=({isReply:e=!1,onReply:t,onFlag:a})=>n.jsxs("div",{className:"comment-actions",children:[!e&&t&&n.jsx("button",{onClick:t,className:"comment-action-btn",children:n.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",children:[n.jsx("g",{clipPath:"url(#a)",children:n.jsx("path",{fill:"#4D4E4E",d:"M9.976 9V5l-6.983 7 6.983 7v-4.1c4.988 0 8.48 1.6 10.973 5.1-.997-5-3.99-10-10.973-11Z"})}),n.jsx("defs",{children:n.jsx("clipPath",{id:"a",children:n.jsx("path",{fill:"#fff",d:"M0 0h23.942v24H0z"})})})]})}),n.jsx("button",{onClick:a,className:"comment-action-btn",children:n.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:25,height:24,fill:"none",children:[n.jsx("g",{clipPath:"url(#a)",children:n.jsx("path",{fill:"#4D4E4E",d:"M20.133 2h-16c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2Zm0 14H5.303l-1.17 1.17V4h16v12Zm-9-11h2v6h-2V5Zm0 8h2v2h-2v-2Z"})}),n.jsx("defs",{children:n.jsx("clipPath",{id:"a",children:n.jsx("path",{fill:"#fff",d:"M.133 0h24v24h-24z"})})})]})})]}),Ir=({commentRef:e,captchaToken:t="",setIsDisabled:a})=>(E.useEffect(()=>{const o=e.current;if(!o)return;const s=()=>{const i=o.value.length;o.parentElement&&(o.parentElement.dataset.text=`${i}/${ft}`),o.classList.toggle("over-limit",i>ft),a(!Sa(e,t).boolean)};return o.addEventListener("input",s),s(),()=>o.removeEventListener("input",s)},[e,t,a]),n.jsxs("div",{children:[n.jsx("label",{className:"comment-input-label",children:"Comentario"}),n.jsx("textarea",{ref:e,name:"comment",placeholder:"Ingresa un comentario",rows:2})]})),kr=({commentRef:e,captchaToken:t="",setCaptchaToken:a,children:o,CAPTCHA_KEY_V2:s})=>{const r=Sa(e,t);return n.jsxs("div",{className:"form-actions",children:[n.jsx(_r,{sitekey:s,theme:"light",size:"normal",onChange:i=>a(i??""),onExpired:()=>a("")}),n.jsxs("div",{className:"submit-zone",children:[o,!r.boolean&&n.jsx("p",{className:"submit-warning",children:r.text})]})]})},xr=({onClick:e,isDisabled:t})=>{const[a,o]=E.useState(!1),{S3_ID_DIR:s}=K();return E.useEffect(()=>{let r=null;return a&&(r=setTimeout(()=>{o(!1)},2400)),()=>{r&&clearTimeout(r)}},[a]),a?n.jsx("div",{className:"success-gif-container",children:n.jsx("img",{className:"success-gif",src:pt()+"/arte/"+s+"/Success.gif"})}):n.jsxs("button",{type:"button",onClick:async r=>{await e(r)&&o(!0)},id:"comment-button",className:`submit-btn ${t?"disabled":"active"}`,children:["Enviar Comentario",n.jsx("svg",{style:{minWidth:16},width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:n.jsx("path",{d:"M1.39258 8.99997H12.5626L7.68258 13.88C7.29258 14.27 7.29258 14.91 7.68258 15.3C8.07258 15.69 8.70258 15.69 9.09258 15.3L15.6826 8.70997C16.0726 8.31997 16.0726 7.68997 15.6826 7.29997L9.10258 0.699971C8.71258 0.309971 8.08258 0.309971 7.69258 0.699971C7.30258 1.08997 7.30258 1.71997 7.69258 2.10997L12.5626 6.99997H1.39258C0.842578 6.99997 0.392578 7.44997 0.392578 7.99997C0.392578 8.54997 0.842578 8.99997 1.39258 8.99997Z",fill:"currentColor"})})]})},{PUBLIC_PUBLICATION_ID:w1}=K(),b1=w1,Ur=async({path:e,ref:t,captchaToken:a,button:o,user:s,id:r,addComment:i})=>{const c=t.current?.value||"";if(!Sa(t,a).boolean||!s){const d=o.nextElementSibling;return d&&(d.style.display="block"),!1}try{const d=Date.now(),l=await fetch("/api/comments-add",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({publication:b1,path:e,id:r,username:s.username,comment:c,recaptchaResponse:a})});let h=null;try{h=await l.json()}catch(m){console.error("Error parsing JSON response:",m)}if(!l.ok)throw new Error(`Error al enviar comentario: ${h?.message} status: ${l.status}`);const u=Date.now(),f=Math.max(0,2400+Math.abs(u-d)),g={username:s.username,firstname:s.firstname,...s.lastname&&{lastname:s.lastname},...s.picture&&{picture:s.picture}};return i({id:u.toString(),text:c,user:g,date:{time:Date.now()},reply:[]}),t.current&&(t.current.value=""),f}catch(d){return console.error("Error enviando comentario:",d),alert(d.message||"Error al enviar el comentario."),!1}},v1=({replyingTo:e,commentRef:t,user:a,path:o,addReply:s,closeForm:r,CAPTCHA_KEY_V2:i})=>{const[c,d]=E.useState(!0),[l,h]=E.useState(""),u=()=>{t.current?.parentElement&&(t.current.parentElement.dataset.text=`0/${ft}`),d(!0),r()};return n.jsxs("div",{className:"comment-form reply-form",children:[n.jsx("button",{className:"close-reply-form",onClick:u,children:n.jsx(vt,{})}),n.jsx(Ir,{commentRef:t,captchaToken:l,setIsDisabled:d}),n.jsx(kr,{commentRef:t,captchaToken:l,setCaptchaToken:h,CAPTCHA_KEY_V2:i,children:n.jsx(xr,{onClick:async f=>{if(c)return;const g=await Ur({path:o,ref:t,captchaToken:l,button:f.currentTarget,user:a,id:e,addComment:s});return g&&typeof g=="number"?(setTimeout(()=>{u()},g),!0):!1},isDisabled:c})})]})},C1=({reply:e,replyingTo:t,user:a,onFlag:o,DATE_CONFIG:s})=>{const r=e.text;let i=`${Ye.firstname} ${Ye.lastname}`,c=Ye.username;return e.user&&(i=`${e.user.firstname} ${e.user.lastname}`,c=e.user.username),n.jsx("div",{className:"comment-item reply",children:n.jsxs("div",{className:"comment-header-container",children:[n.jsx(Er,{user:e.user?e.user:Ye}),n.jsxs("div",{style:{flex:1},children:[n.jsx(Nr,{username:i,date:e.date.time,DATE_CONFIG:s}),n.jsxs("div",{className:"comment-reply-to",children:["Respondiendo a ",n.jsx("strong",{children:t})]}),n.jsx("p",{className:"comment-text",children:r}),a?.username.toLowerCase()!==c.toLowerCase()&&n.jsx(Tr,{isReply:!0,onFlag:()=>o(e.id)})]})]})})},_1=({comment:e,replyingTo:t,path:a,user:o,handleReplyingTo:s,onFlag:r,CAPTCHA_KEY_V2:i,DATE_CONFIG:c})=>{const d={morereply:e.morereply??!1,reply:e.reply?e.reply:[]},[l,h]=E.useState(d),[u,f]=E.useState(!1),{PUBLIC_PUBLICATION_ID:g,PUBLIC_X_SECURITY_TOKEN:m}=K(),p=e.text,A=E.useRef(null);let b=`${Ye.firstname} ${Ye.lastname}`,S=Ye.username;e.user&&(b=`${e.user.firstname} ${e.user.lastname}`,S=e.user.username);const _=T=>{h({morereply:l.morereply,reply:[T,...l.reply]})};return n.jsx("div",{className:"comment-item",children:n.jsxs("div",{className:"comment-header-container","data-hasreplies":l.reply.length>0?"true":"false",children:[n.jsx(Er,{user:e.user?e.user:Ye}),n.jsxs("div",{style:{flex:1},children:[n.jsx(Nr,{username:b,date:e.date.time,DATE_CONFIG:c}),n.jsx("p",{className:"comment-text",children:p}),o?.username.toLowerCase()!==S.toLowerCase()&&n.jsx(Tr,{onReply:()=>s(e.id),onFlag:()=>r(e.id)}),t===e.id&&o&&n.jsx(v1,{replyingTo:t,commentRef:A,addReply:_,user:o,path:a,CAPTCHA_KEY_V2:i,closeForm:()=>s("")}),l.reply.length>0&&n.jsxs("div",{className:"comment-replies",children:[l.reply.map(T=>n.jsx(C1,{user:o,reply:T,replyingTo:b,onFlag:r,DATE_CONFIG:c},T.id)),u?n.jsx("div",{style:{marginLeft:"4rem",position:"relative"},children:n.jsx(Ke,{})}):l.morereply&&n.jsx("button",{className:"comment-replies-button reply-button",onClick:async()=>{const T=l.reply[l.reply.length-1]?.id;f(!0);try{const k=await Bn({publication:g??"",path:a??"",size:2,sizereply:2,id:e.id,lastid:T,state:"5,6",apiToken:m??""});f(!1),h({morereply:k.morecomment,reply:[...l.reply,...k.comments]})}catch(v){throw f(!1),new Error(`Error al obtener comentarios: ${v}`)}},children:"Más Respuestas"})]})]})]})})},S1=({commentRef:e,user:t,path:a,addComment:o,CAPTCHA_KEY_V2:s})=>{const[r,i]=E.useState(!0),[c,d]=E.useState("");return n.jsxs("div",{className:"comment-form",children:[n.jsx(Ir,{commentRef:e,captchaToken:c,setIsDisabled:i}),n.jsx(kr,{CAPTCHA_KEY_V2:s,commentRef:e,captchaToken:c,setCaptchaToken:d,children:n.jsx(xr,{onClick:async l=>{if(r)return;const h=await Ur({path:a,ref:e,captchaToken:c,button:l.currentTarget,user:t,addComment:o});return h&&typeof h=="number"?(e.current?.parentElement&&(e.current.parentElement.dataset.text=`0/${ft}`),i(!0),setTimeout(()=>{e.current?.parentElement&&(e.current.parentElement.dataset.text=`0/${ft}`),i(!0)},h),!0):!1},isDisabled:r})})]})},{PUBLIC_PUBLICATION_ID:N1,PUBLIC_X_SECURITY_TOKEN:E1}=K(),qr=N1??"",T1=({isAuthenticated:e,path:t,user:a,handleLogout:o,COMMENTS_VARS:s,DATE_CONFIG:r})=>{const i=t.replaceAll("/","|"),[c,d]=E.useState(void 0),[l,h]=E.useState(""),{comments:u,setComments:f}=y1(i),[g,m]=E.useState(!1),p=E.useRef(null),A=L=>{h(l===L?"":L)},b=L=>{f(u?{...u,comments:[L,...u.comments??[]]}:void 0)},S=L=>{d(L)},_=async()=>{if(!u||!u.morecomment||u.comments.length===0)return;const L=u.comments[u.comments.length-1];if(!L)return;m(!0);const G=L.id;try{const X=await Bn({publication:qr,path:i??"",size:5,sizereply:2,id:void 0,lastid:G,state:"5,6",apiToken:E1});f({morecomment:X.morecomment??!1,comments:[...u.comments,...X.comments]}),m(!1)}catch(X){throw m(!1),new Error(`Error al obtener comentarios: ${X}`)}},T=u?.comments&&u.comments.length>0,v=T?"Comparte tu opinión de este artículo.":"Se el primero en compartir tu opinión de este artículo.",k=n.jsx("div",{style:{display:"flex",width:"100%",justifyContent:"center"},children:n.jsx(Ke,{})});return n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"comments-container",children:n.jsx(ue,{title:T||e?"COMENTARIOS":!1,children:n.jsxs(n.Fragment,{children:[e&&a&&n.jsxs("div",{className:"comments-header",children:[n.jsx(Gd,{user:a,handleLogout:o,message:v}),n.jsx(S1,{commentRef:p,user:a,addComment:b,path:i,CAPTCHA_KEY_V2:s.CAPTCHA_KEY_V2})]}),u?u.comments&&u.comments.length>0?n.jsxs("div",{className:"comments-list","data-isauthenticated":`${e}`,children:[u.comments.map(L=>n.jsx(_1,{comment:L,replyingTo:l,handleReplyingTo:A,onFlag:S,user:a??Ye,path:i,DATE_CONFIG:r,CAPTCHA_KEY_V2:s.CAPTCHA_KEY_V2},L.id)),g&&k]}):null:k,u?.morecomment&&!g&&n.jsx("button",{className:"comment-replies-button",onClick:_,children:"Más"})]})})}),n.jsx(m1,{username:a?.username??void 0,publication:qr,commentId:c,isOpen:c!==void 0,onClose:()=>d(void 0),CAPTCHA_KEY_V2:s.CAPTCHA_KEY_V2})]})},I1=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((o,s)=>{a.enterprise.ready(async()=>{try{const r=await a.enterprise.execute(t,{action:e});if(!r)throw new Error("Captcha token no generado");o(r)}catch(r){s(r)}})})},Lr={email:{label:"Email",required:!0},given_name:{label:"Nombre",required:!0},family_name:{label:"Apellido",required:!0},password:{label:"Contraseña",required:!0},confirmPassword:{label:"Confirmar contraseña",required:!0}},Pn=[{label:"La contraseña debe tener al menos 8 caracteres",test:e=>e.length>=8},{label:"Usa un número",test:e=>/\d/.test(e)},{label:"Usa una letra minúscula",test:e=>/[a-z]/.test(e)},{label:"Usa una letra mayúscula",test:e=>/[A-Z]/.test(e)},{label:"Usa un símbolo",test:e=>/[^A-Za-z0-9]/.test(e)}];function k1({goToLogin:e,handleGoogleLogin:t,CAPTCHA_KEY:a}){const[o,s]=E.useState({}),[r,i]=E.useState(!1),[c,d]=E.useState(!1),[l,h]=E.useState(null),[u,f]=E.useState("register"),g=(b,S)=>{s(_=>({..._,[b]:S}))},m=async b=>{b.preventDefault(),h(null),d(!0);try{const S=Object.keys(Lr).filter(G=>!["username","password","confirmPassword"].includes(G)).map(G=>({Name:G,Value:o[G]}));if(S.some(G=>{if(!G.Value||G.Value.trim()==="")return!0}))return d(!1),h("Complete todos los campos");if(o.password!==o.confirmPassword){h("Las contraseñas no coinciden");return}const _=o.password||"";if(Pn.some(G=>!G.test(_))){h("La contraseña no es válida");return}const v=Math.floor(Date.now()/1e3);S.push({Name:"updated_at",Value:String(v)});const k="token",L=await fetch("/api/auth/create-user",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:o.email,password:o.password,userAttributes:S,token:k})});if(!L.ok){const G=await L.json().catch(()=>({}));if(G.code==="UsernameExistsException"){await fetch("/api/auth/resend-code",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:o.email})}),f("confirm");return}throw new Error(G?.error||"Error al crear usuario")}f("confirm")}catch(S){console.log(S),h(S?.message||S?.error||"Error inesperado")}finally{d(!1)}},p=async b=>{if(b.preventDefault(),!o.confirmationCode){h("Debes ingresar el código de verificación");return}h(null),d(!0);try{const S=await fetch("/api/auth/confirm-user",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:o.email,code:o.confirmationCode})});if(!S.ok){const _=await S.json().catch(()=>({}));throw new Error(_?.error||"Error al confirmar usuario")}f("success")}catch(S){h(S?.message||"Error inesperado")}finally{d(!1)}},A=o.password||"";return n.jsxs(n.Fragment,{children:[u==="register"&&n.jsxs(n.Fragment,{children:[n.jsxs("button",{onClick:t,className:x.google,children:[n.jsx("img",{src:"https://www.gstatic.com/firebasejs/ui/2.0.0/images/auth/google.svg",alt:"",className:x.googleIcon}),n.jsx("span",{children:"Continuar con Google"})]}),n.jsx("div",{className:x.divider,children:n.jsx("span",{children:"o"})}),n.jsxs("form",{onSubmit:m,className:x.form,"data-error":l?"true":"false",children:[n.jsx("ul",{className:x.formUl,children:Object.entries(Lr).map(([b,{label:S}])=>n.jsxs("div",{className:x.field,children:[n.jsx("label",{className:x.label,children:S}),n.jsx("input",{type:b.toLowerCase().includes("password")?r?"text":"password":b==="birthdate"?"date":b==="email"?"email":b==="phone_number"?"tel":"text",name:b,value:o[b]||"",onChange:_=>g(b,_.target.value),className:x.input,placeholder:""}),b==="password"&&n.jsx("div",{className:x.passwordChecker,children:Pn.map((_,T)=>{const v=_.test(A);return n.jsxs("div",{className:v?x.valid:x.invalid,children:[n.jsx("div",{children:v?"✔":"○"}),n.jsx("div",{children:_.label})]},T)})}),b==="confirmPassword"&&n.jsxs("div",{className:x.checkboxRow,children:[n.jsx("input",{id:"showPasswordRegister",type:"checkbox",checked:r,onChange:_=>i(_.target.checked)}),n.jsx("label",{htmlFor:"showPasswordRegister",className:x.checkboxLabel,children:"Mostrar contraseñas"})]})]},b))}),l&&n.jsx("p",{className:x.error,children:l}),n.jsxs("p",{className:x.terms,children:["Al continuar, confirmo que he leído y aceptado los",n.jsx("a",{href:"/pages/politicas-de-privacidad.html",target:"_blank",children:"Términos y Condiciones"}),"de nuestra comunidad"]}),n.jsx("button",{type:"submit",className:x.primary,disabled:c,children:c?n.jsx(Ke,{}):"Crear cuenta"})]})]}),u==="confirm"&&n.jsxs("form",{onSubmit:p,className:x.form,"data-error":l?"true":"false",children:[n.jsxs("div",{className:x.field,children:[n.jsx("label",{className:x.label,children:"Código de verificación"}),n.jsx("input",{type:"text",name:"confirmationCode",value:o.confirmationCode||"",onChange:b=>g("confirmationCode",b.target.value),className:x.input,required:!0})]}),l&&n.jsx("p",{className:x.error,children:l}),n.jsx("button",{type:"submit",className:x.primary,disabled:c,children:c?n.jsx(Ke,{}):"Confirmar cuenta"}),n.jsxs("p",{className:x.switch,children:["¿Ya confirmaste antes?",n.jsx("button",{type:"button",onClick:e,children:"Iniciar sesión"})]})]}),u==="success"&&n.jsxs("form",{className:x.form,children:[n.jsxs("div",{className:x.successContainer,children:[n.jsx("div",{className:x.thumbsUp,children:n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:132,height:120,fill:"none",children:n.jsx("path",{fill:"#0073BE",d:"M119.249 42.357H81.915l5.621-27.039.177-1.893a8.906 8.906 0 0 0-2.603-6.272L78.838.941 39.907 39.93c-2.19 2.13-3.491 5.089-3.491 8.343v59.167c0 6.508 5.325 11.833 11.833 11.833h53.25c4.911 0 9.112-2.958 10.887-7.218l17.868-41.713c.533-1.36.829-2.78.829-4.32V54.192c0-6.509-5.325-11.834-11.834-11.834Zm0 23.667-17.75 41.417h-53.25V48.274l25.679-25.678L67.36 54.19h51.889v11.833ZM.916 48.274h23.667v71H.916v-71Z"})})}),n.jsxs("div",{className:x.successMessage,children:[n.jsx("p",{children:"Confirmación completa."}),n.jsx("p",{children:"Ya eres parte de la comunidad!"})]})]}),n.jsx("button",{onClick:e,className:x.primary,children:"Iniciar sesión"})]}),u==="register"&&n.jsxs("p",{className:x.switch,children:["¿Ya tenés cuenta?",n.jsx("button",{type:"button",onClick:e,children:"Iniciar sesión"})]})]})}function x1({onClose:e,checkAuth:t,goToRegister:a,handleGoogleLogin:o,CAPTCHA_KEY:s}){const[r,i]=E.useState("login"),[c,d]=E.useState(""),[l,h]=E.useState(""),[u,f]=E.useState(""),[g,m]=E.useState(""),[p,A]=E.useState(""),[b,S]=E.useState(!1),[_,T]=E.useState(!1),[v,k]=E.useState(null);console.log("CAPTCHA_KEY",s);const L=async H=>{if(!_){H.preventDefault(),k(null),T(!0);try{console.log(!0,s);const M="token",ee=await fetch("/api/auth/login-password",{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({email:c,password:l,token:M})});if(!ee.ok){const ie=await ee.json().catch(()=>({}));throw new Error(ie?.error||"Ha ocurrido un error")}e(),await t()}catch(M){k(M?.message||"Error inesperado")}finally{T(!1)}}},G=async H=>{if(!_){H.preventDefault(),k(null),T(!0);try{const M=await fetch("/api/auth/forgot-password",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:c})});if(!M.ok){const ee=await M.json().catch(()=>({}));throw new Error(ee?.error||"Error al enviar código")}h(""),i("changePassword")}catch(M){k(M?.message||"Error inesperado")}finally{T(!1)}}},X=async H=>{if(_)return;if(H.preventDefault(),g!==p){k("Las contraseñas no coinciden");return}if(Pn.some(ee=>!ee.test(g))){k("La contraseña no cumple con los requisitos");return}k(null),T(!0);try{const ee=await fetch("/api/auth/confirm-forgot-password",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:c,code:u,newPassword:g})});if(!ee.ok){const ie=await ee.json().catch(()=>({}));throw new Error(ie?.error||"Error al cambiar contraseña")}i("feedback")}catch(ee){k(ee?.message||"Error inesperado")}finally{T(!1)}};return n.jsxs(n.Fragment,{children:[r==="login"&&n.jsx(U1,{email:c,password:l,showPassword:b,loading:_,error:v,setEmail:d,setPassword:h,setShowPassword:S,onSubmit:L,onForgot:()=>{k(null),i("forgot")},onRegister:a,handleGoogleLogin:o}),r==="forgot"&&n.jsx(q1,{email:c,setEmail:d,loading:_,error:v,onSubmit:G,onBack:()=>{k(null),i("login")}}),r==="changePassword"&&n.jsx(L1,{email:c,confirmationCode:u,newPassword:g,confirmNewPassword:p,showPassword:b,loading:_,error:v,setConfirmationCode:f,setNewPassword:m,setConfirmNewPassword:A,setShowPassword:S,onSubmit:X,onBack:()=>{k(null),i("forgot")}}),r==="feedback"&&n.jsx(B1,{onBackToLogin:()=>{k(null),i("login")}})]})}function U1({email:e,password:t,showPassword:a,loading:o,error:s,setEmail:r,setPassword:i,setShowPassword:c,onSubmit:d,onForgot:l,onRegister:h,handleGoogleLogin:u}){return n.jsxs(n.Fragment,{children:[n.jsxs("button",{onClick:u,className:x.google,children:[n.jsx("img",{src:"https://www.gstatic.com/firebasejs/ui/2.0.0/images/auth/google.svg",alt:"",className:x.googleIcon}),n.jsx("span",{children:"Continuar con Google"})]}),n.jsx("div",{className:x.divider,children:n.jsx("span",{children:"o"})}),n.jsxs("form",{onSubmit:d,className:x.form,"data-error":s?"true":"false",children:[n.jsxs("div",{className:x.field,children:[n.jsx("label",{className:x.label,children:"Email"}),n.jsx("input",{type:"email",value:e,onChange:f=>r(f.target.value),className:x.input,placeholder:""})]}),n.jsxs("div",{className:x.field,children:[n.jsx("label",{className:x.label,children:"Contraseña"}),n.jsx("input",{type:a?"text":"password",value:t,onChange:f=>i(f.target.value),className:x.input,placeholder:""}),n.jsxs("div",{className:x.checkboxRow,children:[n.jsx("input",{id:"showPasswordLogin",type:"checkbox",checked:a,onChange:f=>c(f.target.checked)}),n.jsx("label",{htmlFor:"showPasswordLogin",className:x.checkboxLabel,children:"Mostrar contraseña"})]})]}),s&&n.jsx("p",{className:x.error,children:s}),n.jsx("button",{type:"submit",className:x.primary,disabled:o,children:o?n.jsx(Ke,{}):"Iniciar Sesión"})]}),n.jsxs("p",{className:x.switch,children:["¿No tenés cuenta?",n.jsx("button",{type:"button",onClick:h,children:"Registrate"})]}),n.jsx("button",{type:"button",className:x.forgotPassword,onClick:l,children:"Olvidé mi contraseña"})]})}function q1({email:e,setEmail:t,loading:a,error:o,onSubmit:s,onBack:r}){return n.jsxs("form",{onSubmit:s,className:x.form,"data-error":o?"true":"false",children:[n.jsx("p",{className:x.message,children:"Ingrese su dirección de correo electrónico. Le enviaremos un mensaje con un código para restablecer la contraseña."}),n.jsxs("div",{className:x.field,children:[n.jsx("label",{className:x.label,children:"Email"}),n.jsx("input",{type:"email",value:e,name:"email",onChange:i=>t(i.target.value),className:x.input,placeholder:""})]}),o&&n.jsx("p",{className:x.error,children:o}),n.jsx("button",{type:"submit",className:x.primary,disabled:a,children:a?n.jsx(Ke,{}):"Enviar código"}),n.jsx("p",{className:x.switch,children:n.jsx("button",{type:"button",onClick:r,children:"Volver"})})]})}function L1({email:e,confirmationCode:t,newPassword:a,confirmNewPassword:o,showPassword:s,loading:r,error:i,setConfirmationCode:c,setNewPassword:d,setConfirmNewPassword:l,setShowPassword:h,onSubmit:u,onBack:f}){return n.jsxs("form",{onSubmit:u,className:x.form,"data-error":i?"true":"false",children:[n.jsxs("p",{className:x.message,children:["Hemos enviado un código de restablecimiento de contraseña en un mensaje de Correo electrónico a ",Wd(e),". Ingrese el código y la contraseña nueva."]}),n.jsxs("ul",{className:x.formUl,children:[n.jsxs("div",{className:x.field,children:[n.jsx("label",{className:x.label,children:"Código de verificación"}),n.jsx("input",{type:"text",value:t,onChange:g=>c(g.target.value),className:x.input,placeholder:""})]}),n.jsxs("div",{className:x.field,children:[n.jsx("label",{className:x.label,children:"Nueva contraseña"}),n.jsx("input",{type:s?"text":"password",value:a,onChange:g=>d(g.target.value),className:x.input,placeholder:"",name:"password"}),n.jsx("div",{className:x.passwordChecker,children:Pn.map((g,m)=>{const p=g.test(a);return n.jsxs("div",{className:p?x.valid:x.invalid,children:[n.jsx("div",{children:p?"✔":"○"}),n.jsx("div",{children:g.label})]},m)})})]}),n.jsxs("div",{className:x.field,children:[n.jsx("label",{className:x.label,children:"Confirmar contraseña"}),n.jsx("input",{type:s?"text":"password",value:o,onChange:g=>l(g.target.value),className:x.input,placeholder:""}),n.jsxs("div",{className:x.checkboxRow,children:[n.jsx("input",{id:"showPasswordForgot",type:"checkbox",checked:s,onChange:g=>h(g.target.checked)}),n.jsx("label",{htmlFor:"showPasswordForgot",className:x.checkboxLabel,children:"Mostrar contraseñas"})]})]})]}),i&&n.jsx("p",{className:x.error,children:i}),n.jsx("button",{type:"submit",className:x.primary,style:{maxWidth:r?"revert-layer":"fit-content"},disabled:r,children:r?n.jsx(Ke,{}):"Cambiar contraseña"}),n.jsx("p",{className:x.switch,children:n.jsx("button",{type:"button",onClick:f,children:"Volver"})})]})}function B1({onBackToLogin:e}){return n.jsxs("div",{className:x.form,children:[n.jsx("p",{className:x.success,children:"La contraseña fue cambiada con éxito"}),n.jsx("button",{type:"button",className:x.primary,onClick:e,children:"Iniciar Sesión"})]})}function P1({loginUrl:e,onClose:t,checkAuth:a,icon:o,COMMENTS_VARS:s}){const[r,i]=E.useState("login"),c=async()=>{if(!e)return;const d=encodeURIComponent(window.location.pathname);window.location.href=`/api/auth/login?redirect=${d}`};return n.jsx("div",{className:x.overlay,role:"dialog","aria-modal":"true",id:"pop-overlay",onClick:d=>{const l=d.target;l&&l.id==="pop-overlay"&&t()},children:n.jsxs("div",{className:x.card,children:[n.jsxs("header",{className:x.header,children:[n.jsx("div",{className:x.logo,children:o?o():null}),n.jsx("button",{onClick:t,className:x.close,"aria-label":"Cerrar",children:n.jsx(vt,{})})]}),r==="login"&&n.jsx(x1,{onClose:t,checkAuth:a,handleGoogleLogin:c,goToRegister:()=>i("register"),CAPTCHA_KEY:s.CAPTCHA_KEY}),r==="register"&&n.jsx(k1,{handleGoogleLogin:c,goToLogin:()=>i("login"),CAPTCHA_KEY:s.CAPTCHA_KEY})]})})}function O1({isAuthenticated:e,setIsAuthenticated:t,loginUrl:a,user:o,path:s,checkAuth:r,icon:i,COMMENTS_VARS:c,DATE_CONFIG:d}){const[l,h]=E.useState(!1),u=async()=>{{const g=window.location.pathname;window.location.href=`${window.location.origin}/api/auth/logout?redirect=${encodeURIComponent(g)}`}},f=async g=>{g.preventDefault(),a&&h(!0)};return n.jsxs(n.Fragment,{children:[l&&n.jsx(P1,{loginUrl:a,icon:i,checkAuth:r,COMMENTS_VARS:c,onClose:()=>{h(!1)}}),!e&&n.jsxs("div",{className:"auth-container",children:[n.jsx("p",{children:"Sumate a la comunidad para dejar tu comentario"}),n.jsx("a",{href:a,onClick:f,className:"login-button",children:"Iniciar Sesión"})]}),n.jsx(T1,{isAuthenticated:e,handleLogout:u,path:s,user:e?o:void 0,COMMENTS_VARS:c,DATE_CONFIG:d})]})}function D1({isVisible:e,path:t,icon:a,COMMENTS_VARS:o,DATE_CONFIG:s}){const[r,i]=E.useState(null),[c,d]=E.useState(null),l=o?.COGNITO_AUTH_PREFIX??"ASTRO_",h=E.useCallback(async()=>{if(e){if(console.log(l),document.cookie.search(l+"IS_AUTH=true")===-1){i(!1),d(null),console.log("user not logged");return}try{const m=await(await fetch("/api/auth/user",{credentials:"include"})).json();i(m.isAuthenticated??!1),d(m.user??null)}catch(g){console.error("Error checking auth:",g),i(!1),d(null)}}},[e,l]);E.useEffect(()=>{h()},[h,e]),E.useEffect(()=>{if(!c||!e||typeof window>"u")return;const g=window;if(typeof g!="function"){console.warn("gtag no está disponible todavía");return}g.gtag("set",{user_id:c.username}),console.log("username setted successfully")},[c,e]);const u="/api/auth/login",f=n.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:310,position:"relative"},children:n.jsx(Ke,{})});return r===null?f:e?n.jsx(O1,{icon:a,isAuthenticated:r,setIsAuthenticated:i,loginUrl:u,user:c??void 0,checkAuth:h,path:t,COMMENTS_VARS:o,DATE_CONFIG:s}):f}const M1=({render:e,internalPath:t,section:a,currentNews:o,stylesConfig:s,icon:r,isVisibleDefault:i=!1,COMMENTS_VARS:c,DATE_CONFIG:d={PUBLIC_LNG:"es",DATE_TIMEZONE:"America/Mexico_City"}})=>{const l=E.useRef(null),[h,u]=E.useState(i);E.useEffect(()=>{if(i||h)return;const g=new IntersectionObserver(([m])=>{m?.isIntersecting&&(u(!0),g.disconnect())},{rootMargin:"0px",threshold:.1});return l.current&&g.observe(l.current),()=>g.disconnect()},[]);const f={comment:n.jsx(D1,{path:t,icon:r,isVisible:h,COMMENTS_VARS:c,DATE_CONFIG:d}),more:n.jsx(jd,{section:a,currentNews:o,stylesConfig:s,isVisible:h})};return n.jsx("div",{ref:l,suppressHydrationWarning:!0,style:{...s?s["Modulo 1x3 Client"]?s["Modulo 1x3 Client"]:s["Modulo 1x3"]:{}},children:f[e]})};async function j1({publication:e,path:t,username:a,comment:o,id:s,recaptchaResponse:r,baseUrl:i,apiToken:c,securityToken:d,COMMENTS_VARS:l}){if(console.log("Adding comment with data:",{publication:e,path:t,username:a,comment:o,id:s,recaptchaResponse:r}),!e||!t||!o||!a)return{type:"error",message:"Faltan campos obligatorios. Por favor, completa todos los campos.",status:400};if([e,t,o,a].some(m=>typeof m!="string"))return{type:"error",message:"Datos inválidos. Intenta de nuevo.",status:400};if(!a.trim())return{type:"error",message:"El nombre no puede estar vacío.",status:400};if(!o.trim())return{type:"error",message:"El comentario no puede estar vacío.",status:400};const h=await lr(r,l);if(console.log("Verifying captcha token...",h),!h)return{type:"error",message:"Captcha inválido. Intenta nuevamente.",status:403};const u=`${i}/system/modules/com.tfsla.diario.base/templates/hit/5.0/1/newcomments/add`,f={publication:e,path:t.replace(/\|/gi,"/"),username:a??!1,text:o.trim()};s&&(f.id=s);const g=new URLSearchParams(f);try{const{data:m}=await oe.get(`${u}?${g.toString()}`,{headers:{"Content-Type":"application/json","x-security-token":d,"x-api-token":c,"User-Agent":"amplifyapp-comments-saas"}});return!m||m.error?(console.error("CMS error response:",m),{type:"error",message:"No se pudo guardar el comentario. Intenta nuevamente en unos minutos.",status:502}):(console.log("Comentario enviado con éxito",m),{type:"success",message:"Comentario enviado con éxito.",status:200})}catch(m){if(console.error("Error enviando comentario:",m),oe.isAxiosError(m)){const p=m.response?.status??500,A=m.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 $1=async({token:e,projectId:t,captchaKey:a,apiKey:o,captchaAction:s})=>{if(!e)throw new Error("No token provided");if(!t||!a||!o)throw new Error("Missing project ID or site key");if(!s)throw new Error("No action provided");try{const i=await(await fetch(`https://recaptchaenterprise.googleapis.com/v1/projects/${t}/assessments?key=${o}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({event:{token:e,siteKey:a,expectedAction:s}})})).json();if(!i?.tokenProperties?.valid)throw new Error(`The token was: ${i?.tokenProperties?.invalidReason}`);if(i.tokenProperties.action!==s)throw new Error("The action attribute in your reCAPTCHA tag does not match the action you are expecting to score");return i?.riskAnalysis?.score??0}catch(r){throw console.error("Recaptcha verification failed",r),new Error(String(r))}};w.AssetsPreconnect=oo,w.AutorComponent=Ud,w.AutorHeader1=Ns,w.AutorHeader2=Es,w.BannerAdvertising=fe,w.BannerAdvertisingMiddle=je,w.CarrouselCSR=Wc,w.CarrouselIRS=it,w.CarruselCard=Vs,w.CarruselOpinion=Ws,w.CommonServices=Je,w.Comscore=$a,w.ContactInfoServer=Ql,w.ContactInput=bl,w.ContactSelect=vl,w.ContactTextarea=Cl,w.ContentLayout1=bt,w.ContentLayoutTema=ia,w.DEBUG_MainSlots=Ed,w.DestacadoNoticias=Ds,w.DestacadoVideos=Hs,w.DynamicBlockServices=as,w.DynamicComponents=Nd,w.DynamicMainSlot=In,w.DynamicSlot=Ca,w.EditorialBlock=Pl,w.ErrorComponent=wl,w.Font=go,w.Footer=hl,w.FormatAfterScripts=ao,w.FormatScripts=Qn,w.GA4=Qa,w.GTM=Ga,w.GalleryHeader=ba,w.GenerateBody=Gc,w.GenerateHead=Qc,w.Header=kl,w.IframeHeader=er,w.ImageOffline=fs,w.ImageOnline=Se,w.ImageOnlineClient=us,w.IssuuServices=Dc,w.ItemListSchema=lo,w.JournalistArticule2=qs,w.JournalistGroup=Ls,w.LayoutNewsComponent=la,w.LazyLoader=M1,w.LinkComponent=O,w.LiveBlogHeader=_s,w.Location=Fc,w.MainComponentServices=fi,w.Marfeel=Ha,w.MiddleSection=Ze,w.Modulo1x3=ga,w.Modulo1x3Card=Fs,w.Modulo1x4=Qs,w.Modulo1x5=Gs,w.Modulo2Columnas=Ol,w.Modulo3Columnas=js,w.ModuloNewsletter=Dl,w.ModuloOpinion=Bl,w.NewListResponseDataPH=ir,w.NewsArticle=ho,w.NewsComponent=Id,w.NewsContent=yn,w.NewsDescriptionComponent=ct,w.NextPrev=Ot,w.OrgList=uo,w.PreloadImages=Hn,w.REPORT_REASONS=Me,w.Readest=mn,w.ScriptHydrator=Od,w.SearchSection=xd,w.Section=ue,w.SectionCard=Oe,w.SectionCard2=Mt,w.SectionCardServerComponent=Nn,w.SectionServerComponent=$l,w.ShowSection=rs,w.SocialNetworks=Js,w.SpeculationRules=co,w.StaticSlotWrapper=Sd,w.SubscribeColumn=As,w.SubscribeRow=ys,w.SubscribeWhatsAppColumn=al,w.TagHeader=xl,w.TagSection=Us,w.TimeLine=Ss,w.TrimPathname=si,w.VideoBlock3=yl,w.VideoBlock4=Sl,w.VideoEmbeddedHeader=Xs,w.VideoSection=Pd,w.VideoYoutubeHeader=Rs,w.VideosSchemas=mo,w.WebsiteList=fo,w.addComment=j1,w.bannersReplace=Xt,w.becomeVideoObject=gt,w.buildTagUrl=at,w.coloringByStrokeSVGs=ws,w.compileStyleProps=Tn,w.cutString=xe,w.extractRealtedNews=ni,w.formatDate=ke,w.formatDateEdiciones=ti,w.formatDateJournalistArticule=Mn,w.formatDateTimeline=Ja,w.formatNewsMeta=Ra,w.formatVideoData=so,w.generalGetData=$c,w.getCaptchaToken=I1,w.getComments=Sr,w.getConfig=K,w.getDynamicSlots=Mc,w.getEnvironmentUrl=pt,w.getEnvironmentUrlFront=Xa,w.getHydratorPath=li,w.getImageUrl=de,w.getNextMeta=Tt,w.getPage=kt,w.getPlayIcon=fn,w.getPreloadImages=ui,w.getPrevMeta=It,w.getReportReasonLabel=zd,w.getResponse=jn,w.getResponsePromise=Za,w.getSchemas=Rt,w.getScriptReplaces=zn,w.getSlugs=Ao,w.getTypeOfNews=ii,w.getVideoRealPath=ci,w.handleGetComments=Bn,w.initLibrary=Dr,w.metadataToJSX=no,w.metadata_defaults=os,w.parseTags=$n,w.pathnameSplit=eo,w.processExtractedRelatedNews=ai,w.removePages=po,w.reportComment=Hd,w.shareButtons=bs,w.socialIcons=gn,w.speculationRules=io,w.speculationRulesHome=ro,w.urlReplaces=to,w.usePlayIcon=na,w.verifyCaptchaTokenEnterprise=$1,Object.defineProperty(w,Symbol.toStringTag,{value:"Module"})}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sass-template-common",
3
- "version": "0.2.67",
3
+ "version": "0.2.68",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"